@salutejs/plasma-new-hope 0.84.0-canary.1213.9221965842.0 → 0.84.1-canary.1209.9214674427.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (468) 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/TextArea/TextArea.js +7 -5
  85. package/cjs/components/TextArea/TextArea.js.map +1 -1
  86. package/cjs/components/TextArea/TextArea.tokens.js +4 -0
  87. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  88. package/cjs/components/TextArea/TextArea_ob9y3r.css +1 -0
  89. package/cjs/components/TextField/TextField.js +12 -3
  90. package/cjs/components/TextField/TextField.js.map +1 -1
  91. package/cjs/components/Toast/Toast.css +6 -9
  92. package/cjs/components/Toast/ToastController.css +6 -9
  93. package/cjs/engines/common.js +4 -0
  94. package/cjs/engines/common.js.map +1 -1
  95. package/cjs/engines/index.js.map +1 -1
  96. package/cjs/hooks/useIsomorphicLayoutEffect.js +15 -0
  97. package/cjs/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  98. package/cjs/index.css +35 -13
  99. package/cjs/index.js +14 -0
  100. package/cjs/index.js.map +1 -1
  101. package/cjs/utils/canUseDOM.js +12 -0
  102. package/cjs/utils/canUseDOM.js.map +1 -0
  103. package/cjs/utils/index.js.map +1 -1
  104. package/es/components/Button/Button.css +6 -9
  105. package/es/components/Button/Button.js +3 -17
  106. package/es/components/Button/Button.js.map +1 -1
  107. package/es/components/Button/Button.styles.js +11 -29
  108. package/es/components/Button/Button.styles.js.map +1 -1
  109. package/es/components/Button/Button.styles_uqvh6u.css +5 -0
  110. package/es/components/Button/Button.tokens.js +0 -5
  111. package/es/components/Button/Button.tokens.js.map +1 -1
  112. package/es/components/Button/variations/_stretching/base.js +1 -1
  113. package/es/components/Button/variations/_stretching/base.js.map +1 -1
  114. package/{cjs/components/Button/variations/_stretching/base_hy8dc.css → es/components/Button/variations/_stretching/base_1lx0ute.css} +1 -1
  115. package/es/components/ButtonGroup/ButtonGroup.css +2 -2
  116. package/es/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  117. package/es/components/ButtonGroup/ButtonGroup.tokens.js.map +1 -1
  118. package/es/components/ButtonGroup/variations/_orientation/base.js +1 -1
  119. package/es/components/ButtonGroup/variations/_orientation/base.js.map +1 -1
  120. package/{cjs/components/ButtonGroup/variations/_orientation/base_y7z7cs.css → es/components/ButtonGroup/variations/_orientation/base_p85v51.css} +1 -1
  121. package/es/components/ButtonGroup/variations/_view/base.js +1 -1
  122. package/es/components/ButtonGroup/variations/_view/base.js.map +1 -1
  123. package/es/components/ButtonGroup/variations/_view/base_6k3uip.css +1 -0
  124. package/es/components/Combobox/hooks/useFocusController.js +1 -0
  125. package/es/components/Combobox/hooks/useFocusController.js.map +1 -1
  126. package/es/components/Drawer/Drawer.css +6 -9
  127. package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +6 -9
  128. package/es/components/Header/ui/HeaderArrow/HeaderArrow.css +6 -9
  129. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  130. package/es/components/Header/ui/HeaderArrow/HeaderArrow.js.map +1 -1
  131. package/es/components/IconButton/IconButton.css +7 -10
  132. package/es/components/IconButton/IconButton.styles.js +1 -1
  133. package/es/components/IconButton/{IconButton.styles_7v8g0e.css → IconButton.styles_1hknr37.css} +1 -1
  134. package/es/components/Notification/Notification.css +6 -9
  135. package/es/components/Notification/NotificationsProvider.css +6 -9
  136. package/es/components/Pagination/Pagination.css +8 -11
  137. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +6 -9
  138. package/es/components/Panel/ui/PanelHeader/PanelHeader.css +6 -9
  139. package/es/components/Select/Select.css +6 -9
  140. package/es/components/Select/ui/SelectTarget/SelectTarget.css +6 -9
  141. package/es/components/Slider/Slider.css +69 -0
  142. package/es/components/Slider/Slider.js +43 -0
  143. package/es/components/Slider/Slider.js.map +1 -0
  144. package/es/components/Slider/Slider.tokens.js +74 -0
  145. package/es/components/Slider/Slider.tokens.js.map +1 -0
  146. package/es/components/Slider/components/Double/Double.css +62 -0
  147. package/es/components/Slider/components/Double/Double.js +302 -0
  148. package/es/components/Slider/components/Double/Double.js.map +1 -0
  149. package/es/components/Slider/components/Double/Double.styles.js +51 -0
  150. package/es/components/Slider/components/Double/Double.styles.js.map +1 -0
  151. package/es/components/Slider/components/Double/Double.styles_1jhda4u.css +7 -0
  152. package/es/components/Slider/components/Single/Single.css +16 -0
  153. package/es/components/Slider/components/Single/Single.js +160 -0
  154. package/es/components/Slider/components/Single/Single.js.map +1 -0
  155. package/es/components/Slider/components/Single/Single.styles.js +36 -0
  156. package/es/components/Slider/components/Single/Single.styles.js.map +1 -0
  157. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  158. package/es/components/Slider/components/SliderBase/SliderBase.css +4 -0
  159. package/es/components/Slider/components/SliderBase/SliderBase.js +78 -0
  160. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -0
  161. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +26 -0
  162. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -0
  163. package/es/components/Slider/components/SliderBase/SliderBase.styles_7is2ll.css +4 -0
  164. package/es/components/Slider/ui/Handler/Handler.css +4 -0
  165. package/es/components/Slider/ui/Handler/Handler.js +164 -0
  166. package/es/components/Slider/ui/Handler/Handler.js.map +1 -0
  167. package/es/components/Slider/ui/Handler/Handler.styles.js +16 -0
  168. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -0
  169. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  170. package/es/components/Slider/ui/Thumb/Thumb.css +1 -0
  171. package/es/components/Slider/ui/Thumb/Thumb.js +27 -0
  172. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -0
  173. package/es/components/Slider/ui/Thumb/Thumb.styles.js +11 -0
  174. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -0
  175. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  176. package/es/components/Slider/utils/index.js +50 -0
  177. package/es/components/Slider/utils/index.js.map +1 -0
  178. package/es/components/Slider/variations/_disabled/base.js +5 -0
  179. package/es/components/Slider/variations/_disabled/base.js.map +1 -0
  180. package/es/components/Slider/variations/_disabled/base_x642ct.css +1 -0
  181. package/es/components/Slider/variations/_size/base.js +5 -0
  182. package/es/components/Slider/variations/_size/base.js.map +1 -0
  183. package/es/components/Slider/variations/_size/base_x642ct.css +1 -0
  184. package/es/components/Slider/variations/_view/base.js +5 -0
  185. package/es/components/Slider/variations/_view/base.js.map +1 -0
  186. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  187. package/es/components/TextArea/TextArea.js +7 -5
  188. package/es/components/TextArea/TextArea.js.map +1 -1
  189. package/es/components/TextArea/TextArea.tokens.js +4 -0
  190. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  191. package/es/components/TextArea/TextArea_ob9y3r.css +1 -0
  192. package/es/components/TextField/TextField.js +12 -3
  193. package/es/components/TextField/TextField.js.map +1 -1
  194. package/es/components/Toast/Toast.css +6 -9
  195. package/es/components/Toast/ToastController.css +6 -9
  196. package/es/engines/common.js +4 -0
  197. package/es/engines/common.js.map +1 -1
  198. package/es/engines/index.js.map +1 -1
  199. package/es/hooks/useIsomorphicLayoutEffect.js +11 -0
  200. package/es/hooks/useIsomorphicLayoutEffect.js.map +1 -0
  201. package/es/index.css +35 -13
  202. package/es/index.js +8 -0
  203. package/es/index.js.map +1 -1
  204. package/es/utils/canUseDOM.js +8 -0
  205. package/es/utils/canUseDOM.js.map +1 -0
  206. package/es/utils/index.js.map +1 -1
  207. package/package.json +3 -2
  208. package/styled-components/cjs/components/Button/Button.js +2 -16
  209. package/styled-components/cjs/components/Button/Button.styles.js +12 -20
  210. package/styled-components/cjs/components/Button/Button.template-doc.mdx +0 -42
  211. package/styled-components/cjs/components/Button/Button.tokens.js +0 -5
  212. package/styled-components/cjs/components/Button/variations/_stretching/base.js +1 -1
  213. package/styled-components/cjs/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  214. package/styled-components/cjs/components/ButtonGroup/variations/_orientation/base.js +1 -2
  215. package/styled-components/cjs/components/ButtonGroup/variations/_view/base.js +1 -1
  216. package/styled-components/cjs/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  217. package/styled-components/cjs/components/Slider/Slider.js +47 -0
  218. package/styled-components/cjs/components/Slider/Slider.tokens.js +77 -0
  219. package/styled-components/cjs/components/Slider/Slider.types.js +5 -0
  220. package/styled-components/cjs/components/Slider/components/Double/Double.js +318 -0
  221. package/styled-components/cjs/components/Slider/components/Double/Double.styles.js +36 -0
  222. package/styled-components/cjs/components/Slider/components/Double/Double.types.js +5 -0
  223. package/styled-components/cjs/components/Slider/components/Single/Single.js +176 -0
  224. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +27 -0
  225. package/styled-components/cjs/components/Slider/components/Single/Single.types.js +5 -0
  226. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +83 -0
  227. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +21 -0
  228. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.types.js +5 -0
  229. package/styled-components/cjs/components/Slider/components/index.js +27 -0
  230. package/styled-components/cjs/components/Slider/index.js +32 -0
  231. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +177 -0
  232. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -0
  233. package/styled-components/cjs/components/Slider/ui/Handler/Handler.types.js +5 -0
  234. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +32 -0
  235. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +18 -0
  236. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.types.js +5 -0
  237. package/styled-components/cjs/components/Slider/ui/index.js +63 -0
  238. package/styled-components/cjs/components/Slider/utils/index.js +55 -0
  239. package/styled-components/cjs/components/Slider/variations/_disabled/base.js +8 -0
  240. package/styled-components/cjs/components/Slider/variations/_disabled/tokens.json +4 -0
  241. package/styled-components/cjs/components/Slider/variations/_size/base.js +8 -0
  242. package/styled-components/cjs/components/Slider/variations/_size/tokens.json +0 -0
  243. package/styled-components/cjs/components/Slider/variations/_view/base.js +8 -0
  244. package/styled-components/cjs/components/Slider/variations/_view/tokens.json +0 -0
  245. package/styled-components/cjs/components/TextArea/TextArea.js +6 -4
  246. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +4 -0
  247. package/styled-components/cjs/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  248. package/styled-components/cjs/components/TextField/TextField.js +12 -3
  249. package/styled-components/cjs/engines/common.js +4 -0
  250. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  251. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +21 -67
  252. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  253. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  254. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +29 -0
  255. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.js +16 -0
  256. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +169 -0
  257. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +4 -4
  258. package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +19 -19
  259. package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +28 -90
  260. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  261. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  262. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +29 -0
  263. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.js +16 -0
  264. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +168 -0
  265. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +4 -4
  266. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +19 -19
  267. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +28 -90
  268. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  269. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  270. package/styled-components/cjs/hooks/index.js +8 -1
  271. package/styled-components/cjs/hooks/useIsomorphicLayoutEffect.js +12 -0
  272. package/styled-components/cjs/index.js +11 -0
  273. package/styled-components/cjs/utils/canUseDOM.js +11 -0
  274. package/styled-components/cjs/utils/index.js +7 -0
  275. package/styled-components/es/components/Button/Button.js +3 -17
  276. package/styled-components/es/components/Button/Button.styles.js +11 -19
  277. package/styled-components/es/components/Button/Button.template-doc.mdx +0 -42
  278. package/styled-components/es/components/Button/Button.tokens.js +0 -5
  279. package/styled-components/es/components/Button/variations/_stretching/base.js +1 -1
  280. package/styled-components/es/components/ButtonGroup/ButtonGroup.tokens.js +0 -1
  281. package/styled-components/es/components/ButtonGroup/variations/_orientation/base.js +2 -3
  282. package/styled-components/es/components/ButtonGroup/variations/_view/base.js +1 -1
  283. package/styled-components/es/components/Header/ui/HeaderArrow/HeaderArrow.js +2 -4
  284. package/styled-components/es/components/Slider/Slider.js +38 -0
  285. package/styled-components/es/components/Slider/Slider.tokens.js +71 -0
  286. package/styled-components/es/components/Slider/Slider.types.js +1 -0
  287. package/styled-components/es/components/Slider/components/Double/Double.js +310 -0
  288. package/styled-components/es/components/Slider/components/Double/Double.styles.js +29 -0
  289. package/styled-components/es/components/Slider/components/Double/Double.types.js +1 -0
  290. package/styled-components/es/components/Slider/components/Single/Single.js +168 -0
  291. package/styled-components/es/components/Slider/components/Single/Single.styles.js +20 -0
  292. package/styled-components/es/components/Slider/components/Single/Single.types.js +1 -0
  293. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +74 -0
  294. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +14 -0
  295. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.types.js +1 -0
  296. package/styled-components/es/components/Slider/components/index.js +3 -0
  297. package/styled-components/es/components/Slider/index.js +3 -0
  298. package/styled-components/es/components/Slider/ui/Handler/Handler.js +168 -0
  299. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -0
  300. package/styled-components/es/components/Slider/ui/Handler/Handler.types.js +1 -0
  301. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +25 -0
  302. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +11 -0
  303. package/styled-components/es/components/Slider/ui/Thumb/Thumb.types.js +1 -0
  304. package/styled-components/es/components/Slider/ui/index.js +5 -0
  305. package/styled-components/es/components/Slider/utils/index.js +47 -0
  306. package/styled-components/es/components/Slider/variations/_disabled/base.js +2 -0
  307. package/styled-components/es/components/Slider/variations/_disabled/tokens.json +4 -0
  308. package/styled-components/es/components/Slider/variations/_size/base.js +2 -0
  309. package/styled-components/es/components/Slider/variations/_size/tokens.json +0 -0
  310. package/styled-components/es/components/Slider/variations/_view/base.js +2 -0
  311. package/styled-components/es/components/Slider/variations/_view/tokens.json +0 -0
  312. package/styled-components/es/components/TextArea/TextArea.js +6 -4
  313. package/styled-components/es/components/TextArea/TextArea.tokens.js +4 -0
  314. package/styled-components/es/components/TextArea/mixins/applyDynamicLabel.js +1 -1
  315. package/styled-components/es/components/TextField/TextField.js +12 -3
  316. package/styled-components/es/engines/common.js +4 -0
  317. package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +19 -19
  318. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +21 -67
  319. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +10 -10
  320. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  321. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +23 -0
  322. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.js +10 -0
  323. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +169 -0
  324. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +4 -4
  325. package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +19 -19
  326. package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +28 -90
  327. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +10 -10
  328. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  329. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +23 -0
  330. package/styled-components/es/examples/plasma_web/components/Slider/Slider.js +10 -0
  331. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +168 -0
  332. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +4 -4
  333. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +19 -19
  334. package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +28 -90
  335. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +10 -10
  336. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  337. package/styled-components/es/hooks/index.js +2 -1
  338. package/styled-components/es/hooks/useIsomorphicLayoutEffect.js +7 -0
  339. package/styled-components/es/index.js +2 -1
  340. package/styled-components/es/utils/canUseDOM.js +5 -0
  341. package/styled-components/es/utils/index.js +1 -0
  342. package/types/components/Button/Button.d.ts.map +1 -1
  343. package/types/components/Button/Button.styles.d.ts +1 -5
  344. package/types/components/Button/Button.styles.d.ts.map +1 -1
  345. package/types/components/Button/Button.tokens.d.ts +0 -5
  346. package/types/components/Button/Button.tokens.d.ts.map +1 -1
  347. package/types/components/Button/Button.types.d.ts +4 -16
  348. package/types/components/Button/Button.types.d.ts.map +1 -1
  349. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts +0 -1
  350. package/types/components/ButtonGroup/ButtonGroup.tokens.d.ts.map +1 -1
  351. package/types/components/ButtonGroup/variations/_orientation/base.d.ts.map +1 -1
  352. package/types/components/ButtonGroup/variations/_view/base.d.ts.map +1 -1
  353. package/types/components/Header/ui/HeaderArrow/HeaderArrow.d.ts.map +1 -1
  354. package/types/components/Notification/Notification.styles.d.ts +1 -43
  355. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  356. package/types/components/Pagination/Pagination.styles.d.ts +2 -86
  357. package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
  358. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +1 -43
  359. package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts.map +1 -1
  360. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts +1 -43
  361. package/types/components/Select/ui/SelectTarget/SelectTarget.styles.d.ts.map +1 -1
  362. package/types/components/Slider/Slider.d.ts +27 -0
  363. package/types/components/Slider/Slider.d.ts.map +1 -0
  364. package/types/components/Slider/Slider.tokens.d.ts +72 -0
  365. package/types/components/Slider/Slider.tokens.d.ts.map +1 -0
  366. package/types/components/Slider/Slider.types.d.ts +3 -0
  367. package/types/components/Slider/Slider.types.d.ts.map +1 -0
  368. package/types/components/Slider/components/Double/Double.d.ts +4 -0
  369. package/types/components/Slider/components/Double/Double.d.ts.map +1 -0
  370. package/types/components/Slider/components/Double/Double.styles.d.ts +43 -0
  371. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -0
  372. package/types/components/Slider/components/Double/Double.types.d.ts +65 -0
  373. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -0
  374. package/types/components/Slider/components/Single/Single.d.ts +4 -0
  375. package/types/components/Slider/components/Single/Single.d.ts.map +1 -0
  376. package/types/components/Slider/components/Single/Single.styles.d.ts +8 -0
  377. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -0
  378. package/types/components/Slider/components/Single/Single.types.d.ts +55 -0
  379. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -0
  380. package/types/components/Slider/components/SliderBase/SliderBase.d.ts +4 -0
  381. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -0
  382. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +6 -0
  383. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -0
  384. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +45 -0
  385. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -0
  386. package/types/components/Slider/components/index.d.ts +6 -0
  387. package/types/components/Slider/components/index.d.ts.map +1 -0
  388. package/types/components/Slider/index.d.ts +6 -0
  389. package/types/components/Slider/index.d.ts.map +1 -0
  390. package/types/components/Slider/ui/Handler/Handler.d.ts +9 -0
  391. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -0
  392. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +4 -0
  393. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -0
  394. package/types/components/Slider/ui/Handler/Handler.types.d.ts +24 -0
  395. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -0
  396. package/types/components/Slider/ui/Thumb/Thumb.d.ts +4 -0
  397. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -0
  398. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts +5 -0
  399. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -0
  400. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +12 -0
  401. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -0
  402. package/types/components/Slider/ui/index.d.ts +6 -0
  403. package/types/components/Slider/ui/index.d.ts.map +1 -0
  404. package/types/components/Slider/utils/index.d.ts +33 -0
  405. package/types/components/Slider/utils/index.d.ts.map +1 -0
  406. package/types/components/Slider/variations/_disabled/base.d.ts +2 -0
  407. package/types/components/Slider/variations/_disabled/base.d.ts.map +1 -0
  408. package/types/components/Slider/variations/_size/base.d.ts +2 -0
  409. package/types/components/Slider/variations/_size/base.d.ts.map +1 -0
  410. package/types/components/Slider/variations/_view/base.d.ts +2 -0
  411. package/types/components/Slider/variations/_view/base.d.ts.map +1 -0
  412. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  413. package/types/components/TextArea/TextArea.tokens.d.ts +4 -0
  414. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  415. package/types/components/TextArea/mixins/applyDynamicLabel.d.ts.map +1 -1
  416. package/types/components/TextField/TextField.d.ts.map +1 -1
  417. package/types/components/Toast/Toast.styles.d.ts +1 -43
  418. package/types/components/Toast/Toast.styles.d.ts.map +1 -1
  419. package/types/components/Toast/utils.d.ts +1 -43
  420. package/types/components/Toast/utils.d.ts.map +1 -1
  421. package/types/engines/common.d.ts +3 -3
  422. package/types/engines/common.d.ts.map +1 -1
  423. package/types/engines/index.d.ts +1 -1
  424. package/types/engines/index.d.ts.map +1 -1
  425. package/types/engines/types.d.ts +4 -0
  426. package/types/engines/types.d.ts.map +1 -1
  427. package/types/examples/plasma_b2c/components/Button/Button.config.d.ts.map +1 -1
  428. package/types/examples/plasma_b2c/components/Button/Button.d.ts +1 -43
  429. package/types/examples/plasma_b2c/components/Button/Button.d.ts.map +1 -1
  430. package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  431. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts +1 -43
  432. package/types/examples/plasma_b2c/components/IconButton/IconButton.d.ts.map +1 -1
  433. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts +22 -0
  434. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -0
  435. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +21 -0
  436. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -0
  437. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  438. package/types/examples/plasma_web/components/Button/Button.config.d.ts.map +1 -1
  439. package/types/examples/plasma_web/components/Button/Button.d.ts +1 -43
  440. package/types/examples/plasma_web/components/Button/Button.d.ts.map +1 -1
  441. package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  442. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts +1 -43
  443. package/types/examples/plasma_web/components/IconButton/IconButton.d.ts.map +1 -1
  444. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts +22 -0
  445. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -0
  446. package/types/examples/plasma_web/components/Slider/Slider.d.ts +21 -0
  447. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -0
  448. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  449. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -1
  450. package/types/examples/sds_engineer/components/Button/Button.d.ts +1 -43
  451. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -1
  452. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -1
  453. package/types/hooks/index.d.ts +1 -0
  454. package/types/hooks/index.d.ts.map +1 -1
  455. package/types/hooks/useIsomorphicLayoutEffect.d.ts +6 -0
  456. package/types/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
  457. package/types/index.d.ts +1 -0
  458. package/types/index.d.ts.map +1 -1
  459. package/types/utils/canUseDOM.d.ts +6 -0
  460. package/types/utils/canUseDOM.d.ts.map +1 -0
  461. package/types/utils/index.d.ts +1 -0
  462. package/types/utils/index.d.ts.map +1 -1
  463. package/cjs/components/Button/Button.styles_1oz1dew.css +0 -8
  464. package/cjs/components/ButtonGroup/variations/_view/base_1n9gznw.css +0 -1
  465. package/cjs/components/TextArea/TextArea_qicm5y.css +0 -1
  466. package/es/components/Button/Button.styles_1oz1dew.css +0 -8
  467. package/es/components/ButtonGroup/variations/_view/base_1n9gznw.css +0 -1
  468. package/es/components/TextArea/TextArea_qicm5y.css +0 -1
@@ -0,0 +1,62 @@
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
+ .inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb{padding:var(--plasma-textfield-placement_inner__content-padding);}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:focus ~ .inner_gqlcj2_l13qvwoy__0d4c77cb,.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:not(:placeholder-shown) ~ .inner_gqlcj2_l13qvwoy__0d4c77cb{height:auto;padding:var(--plasma-textfield-placement_inner__label-padding);font-family:var(--plasma-textfield-placement_inner__label-font-family);font-size:var(--plasma-textfield-placement_inner__label-font-size);font-style:var(--plasma-textfield-placement_inner__label-font-style);font-weight:var(--plasma-textfield-placement_inner__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);letter-spacing:var(--plasma-textfield-placement_inner__label-letter-spacing);line-height:var(--plasma-textfield-placement_inner__label-line-height);}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:not(:focus)::-webkit-input-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:not(:focus)::-moz-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:not(:focus):-ms-input-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:not(:focus)::placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:focus::-webkit-input-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:focus::-moz-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:focus:-ms-input-placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_io4bpie__0d4c77cb:focus::placeholder{color:transparent;}.inner_gqlcj2_l8oinlg__0d4c77cb .inner_gqlcj2_l13qvwoy__0d4c77cb{color:var(--plasma-textfield__placeholder-color);pointer-events:none;position:absolute;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-transition:padding 0.1s ease-in-out,height 0s;transition:padding 0.1s ease-in-out,height 0s;height:var(--plasma-textfield-height);padding-top:calc(var(--plasma-textfield-height) / 4);padding-bottom:calc(var(--plasma-textfield-height) / 4);}
12
+
13
+ .outer_is41nj_la46t0i__fd2d2cf4 .outer_is41nj_l13qvwoy__fd2d2cf4{display:block;margin-bottom:var(--plasma-textfield__label-offset);color:var(--plasma-textfield__label-color);}
14
+
15
+ .base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_io4bpie__4e32753c{font-family:var(--plasma-textfield-font-family);font-size:var(--plasma-textfield-font-size);font-style:var(--plasma-textfield-font-style);font-weight:var(--plasma-textfield-font-weight);-webkit-letter-spacing:var(--plasma-textfield-letter-spacing);-moz-letter-spacing:var(--plasma-textfield-letter-spacing);-ms-letter-spacing:var(--plasma-textfield-letter-spacing);letter-spacing:var(--plasma-textfield-letter-spacing);line-height:var(--plasma-textfield-line-height);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_iq39zt5__4e32753c{height:var(--plasma-textfield-height);border-radius:var(--plasma-textfield-border-radius);padding:var(--plasma-textfield-padding);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_iq39zt5__4e32753c.base_1khzr9t_hasChips__4e32753c{padding-top:var(--plasma-textfield-padding-with-chips);padding-bottom:var(--plasma-textfield-padding-with-chips);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_iq39zt5__4e32753c.base_1khzr9t_hasEmptyContentLeft__4e32753c{padding-left:var(--plasma-textfield-padding-with-chips);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_iq39zt5__4e32753c.base_1khzr9t_hasEmptyContentRight__4e32753c{padding-right:var(--plasma-textfield-padding-with-chips);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_l13qvwoy__4e32753c{font-family:var(--plasma-textfield__label-font-family);font-size:var(--plasma-textfield__label-font-size);font-style:var(--plasma-textfield__label-font-style);font-weight:var(--plasma-textfield__label-font-weight);-webkit-letter-spacing:var(--plasma-textfield__label-letter-spacing);-moz-letter-spacing:var(--plasma-textfield__label-letter-spacing);-ms-letter-spacing:var(--plasma-textfield__label-letter-spacing);letter-spacing:var(--plasma-textfield__label-letter-spacing);line-height:var(--plasma-textfield__label-line-height);}.base_1khzr9t_b13ve66i__4e32753c .base_1khzr9t_llv9av6__4e32753c{margin-top:var(--plasma-textfield__left-helper-offset);font-family:var(--plasma-textfield__left-helper-font-family);font-size:var(--plasma-textfield__left-helper-font-size);font-style:var(--plasma-textfield__left-helper-font-style);font-weight:var(--plasma-textfield__left-helper-font-weight);-webkit-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);-moz-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);-ms-letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);letter-spacing:var(--plasma-textfield__left-helper-letter-spacing);line-height:var(--plasma-textfield__left-helper-line-height);}
16
+
17
+ .base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_iq39zt5__3c6defb4{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color);--plasma_private-textfield-bg-color:var(--plasma-textfield-bg-color);color:var(--plasma-textfield-color);background-color:var(--plasma_private-textfield-bg-color);box-shadow:inset 0 0 0 var(--plasmas-textfield-border-width) var(--plasma_private-textfield-border-color);caret-color:var(--plasma-textfield__caret-color);-webkit-transition:background-color 0.1s ease-in,color 0.1s ease-in,box-shadow 0.1s ease-in;transition:background-color 0.1s ease-in,color 0.1s ease-in,box-shadow 0.1s ease-in;}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_iq39zt5__3c6defb4:hover{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color-hover,var(--plasma-textfield-border-color));--plasma_private-textfield-bg-color:var( --plasma-textfield-bg-color-hover, var(--plasma-textfield-bg-color) );}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_iq39zt5__3c6defb4:focus-within{--plasma_private-textfield-border-color:var(--plasma-textfield-border-color-focus,var(--plasma-textfield-border-color));--plasma_private-textfield-bg-color:var( --plasma-textfield-bg-color-focus, var(--plasma-textfield-bg-color) );}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_io4bpie__3c6defb4::-webkit-input-placeholder{color:var(--plasma-textfield__placeholder-color);}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_io4bpie__3c6defb4::-moz-placeholder{color:var(--plasma-textfield__placeholder-color);}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_io4bpie__3c6defb4:-ms-input-placeholder{color:var(--plasma-textfield__placeholder-color);}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_io4bpie__3c6defb4::placeholder{color:var(--plasma-textfield__placeholder-color);}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_io4bpie__3c6defb4{color:var(--plasma-textfield-color);}.base_1qd77x6_bptx5xt__3c6defb4 .base_1qd77x6_llv9av6__3c6defb4{color:var(--plasma-textfield__left-helper-color);}
18
+
19
+ .base_1tnjoy9_b15zsg4z__de8f837b[disabled]{opacity:var(--plasma-textfield-disabled-opacity);cursor:not-allowed;}.base_1tnjoy9_b15zsg4z__de8f837b[disabled] .base_1tnjoy9_io4bpie__de8f837b{cursor:not-allowed;min-width:unset;}
20
+
21
+ .base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_iq39zt5__3851a304{color:var(--plasma-textfield-color-readonly);background-color:var(--plasma-textfield-bg-color-readonly);box-shadow:inset 0 0 0 var(--plasmas-textfield-border-width) var(--plasma-textfield-border-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_iq39zt5__3851a304:hover{background-color:var(--plasma-textfield-bg-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_io4bpie__3851a304::-webkit-input-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_io4bpie__3851a304::-moz-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_io4bpie__3851a304:-ms-input-placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_io4bpie__3851a304::placeholder{color:var(--plasma-textfield__placeholder-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_io4bpie__3851a304{color:var(--plasma-textfield-color-readonly);cursor:default;min-width:unset;}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_llv9av6__3851a304{color:var(--plasma-textfield__left-helper-color-readonly);}.base_134hshp_b1w985rt__3851a304[readonly] .base_134hshp_l13qvwoy__3851a304{color:var(--plasma-textfield__label-color-readonly);}
22
+
23
+ .TextField_styles_1b1mddp_iq39zt5__552d9a4a{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;}
24
+ .TextField_styles_1b1mddp_i1j28rg8__552d9a4a{-webkit-flex:1;-ms-flex:1;flex:1;overflow:scroll;position:relative;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;overscroll-behavior:contain;}.TextField_styles_1b1mddp_i1j28rg8__552d9a4a::-webkit-scrollbar{display:none;}.TextField_styles_1b1mddp_i1j28rg8__552d9a4a.TextField_styles_1b1mddp_hasChips__552d9a4a{height:var(--plasma-textfield__chip-height);border-radius:var(--plasma-textfield__chip-border-radius);}
25
+ .TextField_styles_1b1mddp_s13zudoe__552d9a4a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-textfield__chip-gap);margin-right:var(--plasma-textfield__chip-gap);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
26
+ .TextField_styles_1b1mddp_io4bpie__552d9a4a{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background-color:transparent;outline:none;-webkit-flex:1;-ms-flex:1;flex:1;min-width:60%;}
27
+
28
+ .TextField_styles_1b1mddp_s19ry60d__552d9a4a{margin:var(--plasma-textfield__left-content-margin);}
29
+ .TextField_styles_1b1mddp_sbt1ohz__552d9a4a{margin:var(--plasma-textfield__right-content-margin);}
30
+
31
+
32
+ .IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
33
+
34
+ .base_1lwlv7t_b13tc97x__334a4e59{color:var(--plasma-chip-color);background-color:var(--plasma-chip-background);}.base_1lwlv7t_b13tc97x__334a4e59:hover{color:var(--plasma-chip-color-hover);background-color:var(--plasma-chip-background-hover);scale:var(--plasma-chip-scale-hover);}.base_1lwlv7t_b13tc97x__334a4e59:active{color:var(--plasma-chip-color-active);background-color:var(--plasma-chip-background-active);scale:var(--plasma-chip-scale-active);}
35
+
36
+ .base_fcgkys_b1pde8v1__0b4d127a{font-family:var(--plasma-chip-font-family);font-size:var(--plasma-chip-font-size);font-style:var(--plasma-chip-font-style);font-weight:var(--plasma-chip-font-weight);-webkit-letter-spacing:var(--plasma-chip-letter-spacing);-moz-letter-spacing:var(--plasma-chip-letter-spacing);-ms-letter-spacing:var(--plasma-chip-letter-spacing);letter-spacing:var(--plasma-chip-letter-spacing);line-height:var(--plasma-chip-lineheight);border-radius:var(--plasma-chip-border-radius);width:var(--plasma-chip-width);height:var(--plasma-chip-height);padding-top:var(--plasma-chip-padding-top);padding-right:var(--plasma-chip-padding-right);padding-bottom:var(--plasma-chip-padding-bottom);padding-left:var(--plasma-chip-padding-left);}.base_fcgkys_b1pde8v1__0b4d127a:hover{scale:var(--plasma-chip-scale-hover);}.base_fcgkys_b1pde8v1__0b4d127a:active{scale:var(--plasma-chip-scale-active);}
37
+
38
+ .base_rmcs0j_b16ulzzx__f8cae226[disabled]{opacity:var(--plasma-chip-disabled-opacity);cursor:not-allowed;}.base_rmcs0j_b16ulzzx__f8cae226[disabled]:hover,.base_rmcs0j_b16ulzzx__f8cae226[disabled]:active{scale:none;color:var(--plasma-chip-color);background-color:var(--plasma-chip-background);}
39
+
40
+ .base_1nfit77_b10y1phq__6aaec899[readonly]{color:var(--plasma-chip-color-readonly);background-color:var(--plasma-chip-background-readonly);}.base_1nfit77_b10y1phq__6aaec899[readonly]:hover,.base_1nfit77_b10y1phq__6aaec899[readonly]:active{scale:none;cursor:default;color:var(--plasma-chip-color-readonly-hover);background-color:var(--plasma-chip-background-readonly-hover);}
41
+
42
+ .base_kgtz8x_b16hf96__46a206b1{--plasma_private-chip-outline-size:var(--plasma-chip-outline-size,0.125rem);position:relative;}.base_kgtz8x_b16hf96__46a206b1:focus{outline:none;}.base_kgtz8x_b16hf96__46a206b1::before{content:'';position:absolute;top:calc(-1 * var(--plasma_private-chip-outline-size));left:calc(-1 * var(--plasma_private-chip-outline-size));right:calc(-1 * var(--plasma_private-chip-outline-size));bottom:calc(-1 * var(--plasma_private-chip-outline-size));z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-chip-outline-size) solid transparent;border-radius:calc(var(--plasma-chip-border-radius) + var(--plasma_private-chip-outline-size));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_kgtz8x_b16hf96__46a206b1.base_kgtz8x_focusVisible__46a206b1:focus::before,.base_kgtz8x_b16hf96__46a206b1[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-chip-outline-size) var(--plasma-chip-focus-color);}
43
+
44
+ .base_3kce4h_bvcavwi__c6ad5ca5.base_3kce4h_chipPilled__c6ad5ca5{border-radius:var(--plasma-chip-pilled-border-radius);}
45
+
46
+ .Chip_styles_1mwwhiw_bol5daj__07da4d18{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);}
47
+ .Chip_styles_1mwwhiw_sj20on5__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-left-content-margin-left);margin-right:var(--plasma-chip-left-content-margin-right);}
48
+ .Chip_styles_1mwwhiw_s1ror4o9__07da4d18{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
49
+ .Chip_styles_1mwwhiw_swddmyi__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-right-content-margin-left);margin-right:var(--plasma-chip-right-content-margin-right);}
50
+ .Chip_styles_1mwwhiw_s1pcflhj__07da4d18{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-chip-clear-content-margin-left);margin-right:var(--plasma-chip-clear-content-margin-right);color:var(--plasma-chip-close-icon-color);}
51
+
52
+ .TextFieldChip_styles_1y8n7la_s32p7ut__8f291676{--plasma-chip-color:var(--plasma-textfield__chip-color);--plasma-chip-background:var(--plasma-textfield__chip-background);--plasma-chip-color-hover:var(--plasma-textfield__chip-color-hover);--plasma-chip-background-hover:var(--plasma-textfield__chip-background-hover);--plasma-chip-color-active:var(--plasma-textfield__chip-color-active);--plasma-chip-background-active:var(--plasma-textfield__chip-background-active);--plasma-chip-background-readonly:var(--plasma-textfield__chip-background-readonly);--plasma-chip-color-readonly:var(--plasma-textfield__chip-color-readonly);--plasma-chip-background-readonly-hover:var(--plasma-textfield__chip-background-readonly-hover);--plasma-chip-color-readonly-hover:var(--plasma-textfield__chip-color-readonly-hover);--plasma-chip-border-radius:var(--plasma-textfield__chip-border-radius);--plasma-chip-width:var(--plasma-textfield__chip-width);--plasma-chip-height:var(--plasma-textfield__chip-height);--plasma-chip-padding-right:var(--plasma-textfield__chip-padding-right);--plasma-chip-padding-left:var(--plasma-textfield__chip-padding-left);--plasma-chip-font-family:var(--plasma-textfield__chip-font-family);--plasma-chip-font-size:var(--plasma-textfield__chip-font-size);--plasma-chip-font-style:var(--plasma-textfield__chip-font-style);--plasma-chip-font-weight:var(--plasma-textfield__chip-font-weight);--plasma-chip-letter-spacing:var(--plasma-textfield__chip-letter-spacing);--plasma-chip-lineheight:var(--plasma-textfield__chip-line-height);--plasma-chip-clear-content-margin-left:var(--plasma-textfield__chip-clear-content-margin-left);--plasma-chip-clear-content-margin-right:var(--plasma-textfield__chip-clear-content-margin-right);--plasma-chip-scale-hover:var(--plasma-textfield__chip-scale-hover);--plasma-chip-scale-active:var(--plasma-textfield__chip-scale-active);--plasma-chip-close-icon-size:var(--plasma-textfield__chip-close-icon-size);--plasma-chip-close-icon-color:var(--plasma-textfield__chip-close-icon-color);--plasma-chip-focus-color:var(--plasma-textfield-focus-color);-webkit-scroll-snap-align:center;-moz-scroll-snap-align:center;-ms-scroll-snap-align:center;scroll-snap-align:center;-webkit-scroll-snap-stop:normal;-moz-scroll-snap-stop:normal;-ms-scroll-snap-stop:normal;scroll-snap-stop:normal;position:relative;}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676::before{content:'';position:absolute;top:0.0625rem;left:0.0625rem;right:0.0625rem;bottom:0.0625rem;z-index:1;display:block;box-sizing:content-box;border:0.0625rem solid transparent;border-radius:calc(var(--plasma-textfield__chip-border-radius) - 0.1rem);-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676.TextFieldChip_styles_1y8n7la_focusVisible__8f291676:focus::before,.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.0625rem var(--plasma-textfield-focus-color);}.TextFieldChip_styles_1y8n7la_s32p7ut__8f291676[readonly]{opacity:var(--plasma-textfield__chip-opacity-readonly);}
53
+
54
+ .TextField_wctd2m_bpunezx__bc8b464c{display:block;overflow:hidden;}
55
+
56
+ .Double_styles_1jhda4u_lcs82cd__5dc981f4{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);}
57
+
58
+ .Double_styles_1jhda4u_l1at2q9b__5dc981f4{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);}
59
+ .Double_styles_1jhda4u_i11dc2og__5dc981f4{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);}
60
+ .Double_styles_1jhda4u_s4zvp7i__5dc981f4{-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);}.Double_styles_1jhda4u_s4zvp7i__5dc981f4.Double_styles_1jhda4u_sliderFirstTextField__5dc981f4 > div{border-top-right-radius:0;border-bottom-right-radius:0;}.Double_styles_1jhda4u_s4zvp7i__5dc981f4.Double_styles_1jhda4u_sliderSecondTextField__5dc981f4 > div{border-top-left-radius:0;border-bottom-left-radius:0;}.Double_styles_1jhda4u_s4zvp7i__5dc981f4 input:focus,.Double_styles_1jhda4u_s4zvp7i__5dc981f4.Double_styles_1jhda4u_sliderTextFieldActive__5dc981f4{--plasma-textfield-color:var(--plasma-slider-text-field-focus-color);}
61
+ .Double_styles_1jhda4u_d3kvcjo__5dc981f4{opacity:var(--plasma-slider-disabled-opacity);}
62
+
@@ -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,KA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AEC,EAAE,CAAC7D,OAAO,CAAC8D,cAAc,EAAE/D,qBAAqB,CAAE;AAC7DgE,IAAAA,eAAe,EAAC,OAAO;AACvBnH,IAAAA,QAAQ,EAAEA,QAAS;AACnBD,IAAAA,KAAK,EAAE0B,UAAW;AAClBhB,IAAAA,QAAQ,EAAEgE,sBAAuB;AACjC2C,IAAAA,MAAM,EAAEtC,oBAAqB;AAC7BuC,IAAAA,SAAS,EAAEjC,kBAAAA;AAAmB,GACjC,CAAC,eACFM,KAAA,CAAAC,aAAA,CAACoB,WAAW,EAAA;IACRC,SAAS,EAAEC,EAAE,CAAC7D,OAAO,CAACkE,eAAe,EAAE/D,sBAAsB,CAAE;AAC/D4D,IAAAA,eAAe,EAAC,OAAO;AACvBnH,IAAAA,QAAQ,EAAEA,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,gBAAG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;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);}