@salutejs/plasma-new-hope 0.176.0-canary.1511.11555353496.0 → 0.176.0-canary.1511.11570259013.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. package/cjs/components/NumberInput/NumberInput.css +1 -1
  2. package/cjs/components/NumberInput/NumberInput.tokens.js +2 -0
  3. package/cjs/components/NumberInput/NumberInput.tokens.js.map +1 -1
  4. package/cjs/components/NumberInput/ui/Input/Input.js +26 -24
  5. package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -1
  6. package/cjs/components/NumberInput/variations/_segmentation/base.js +1 -1
  7. package/cjs/components/NumberInput/variations/_segmentation/base.js.map +1 -1
  8. package/cjs/components/NumberInput/variations/_segmentation/base_3r9a58.css +1 -0
  9. package/cjs/components/Slider/Slider.css +15 -13
  10. package/cjs/components/Slider/Slider.js +11 -2
  11. package/cjs/components/Slider/Slider.js.map +1 -1
  12. package/cjs/components/Slider/Slider.tokens.js +23 -17
  13. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  14. package/cjs/components/Slider/components/Double/Double.css +8 -8
  15. package/cjs/components/Slider/components/Double/Double.js +58 -23
  16. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  17. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  18. package/cjs/components/Slider/components/Single/Single.css +14 -14
  19. package/cjs/components/Slider/components/Single/Single.js +64 -33
  20. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  21. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  22. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  23. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  24. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  25. package/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  26. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  27. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  28. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  29. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  30. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  31. package/cjs/components/Slider/ui/Handler/Handler.js +49 -88
  32. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  33. package/cjs/components/Slider/ui/Handler/Handler.styles.js +17 -7
  34. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  35. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  36. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +122 -0
  37. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  38. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  39. package/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  40. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  41. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  42. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  43. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  44. package/cjs/components/Slider/utils/index.js +28 -10
  45. package/cjs/components/Slider/utils/index.js.map +1 -1
  46. package/cjs/components/Slider/variations/_view/base.js +1 -1
  47. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  48. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  49. package/cjs/index.css +16 -14
  50. package/cjs/utils/index.js.map +1 -1
  51. package/emotion/cjs/components/NumberInput/NumberInput.tokens.js +2 -0
  52. package/emotion/cjs/components/NumberInput/ui/Input/Input.js +26 -24
  53. package/emotion/cjs/components/NumberInput/variations/_segmentation/base.js +1 -1
  54. package/emotion/cjs/components/Slider/Slider.js +10 -2
  55. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  56. package/emotion/cjs/components/Slider/Slider.tokens.js +23 -17
  57. package/emotion/cjs/components/Slider/components/Double/Double.js +54 -19
  58. package/emotion/cjs/components/Slider/components/Single/Single.js +64 -33
  59. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +18 -9
  60. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  61. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  62. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  63. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +9 -15
  64. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  65. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  66. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  67. package/emotion/cjs/components/Slider/utils/index.js +28 -10
  68. package/emotion/cjs/components/Slider/variations/_view/base.js +2 -1
  69. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +16 -16
  70. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  71. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  72. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +16 -16
  73. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  74. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  75. package/emotion/es/components/NumberInput/NumberInput.tokens.js +2 -0
  76. package/emotion/es/components/NumberInput/ui/Input/Input.js +26 -24
  77. package/emotion/es/components/NumberInput/variations/_segmentation/base.js +1 -1
  78. package/emotion/es/components/Slider/Slider.js +11 -2
  79. package/emotion/es/components/Slider/Slider.template-doc.mdx +26 -0
  80. package/emotion/es/components/Slider/Slider.tokens.js +23 -17
  81. package/emotion/es/components/Slider/components/Double/Double.js +54 -19
  82. package/emotion/es/components/Slider/components/Single/Single.js +65 -34
  83. package/emotion/es/components/Slider/components/Single/Single.styles.js +17 -8
  84. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  85. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  86. package/emotion/es/components/Slider/ui/Handler/Handler.js +51 -86
  87. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +10 -16
  88. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  89. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  90. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  91. package/emotion/es/components/Slider/utils/index.js +28 -10
  92. package/emotion/es/components/Slider/variations/_view/base.js +2 -1
  93. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +16 -16
  94. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  95. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  96. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +16 -16
  97. package/emotion/es/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  98. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  99. package/es/components/NumberInput/NumberInput.css +1 -1
  100. package/es/components/NumberInput/NumberInput.tokens.js +2 -0
  101. package/es/components/NumberInput/NumberInput.tokens.js.map +1 -1
  102. package/es/components/NumberInput/ui/Input/Input.js +26 -24
  103. package/es/components/NumberInput/ui/Input/Input.js.map +1 -1
  104. package/es/components/NumberInput/variations/_segmentation/base.js +1 -1
  105. package/es/components/NumberInput/variations/_segmentation/base.js.map +1 -1
  106. package/es/components/NumberInput/variations/_segmentation/base_3r9a58.css +1 -0
  107. package/es/components/Slider/Slider.css +15 -13
  108. package/es/components/Slider/Slider.js +11 -2
  109. package/es/components/Slider/Slider.js.map +1 -1
  110. package/es/components/Slider/Slider.tokens.js +23 -17
  111. package/es/components/Slider/Slider.tokens.js.map +1 -1
  112. package/es/components/Slider/components/Double/Double.css +8 -8
  113. package/es/components/Slider/components/Double/Double.js +54 -19
  114. package/es/components/Slider/components/Double/Double.js.map +1 -1
  115. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +98 -0
  116. package/es/components/Slider/components/Single/Single.css +14 -14
  117. package/es/components/Slider/components/Single/Single.js +65 -34
  118. package/es/components/Slider/components/Single/Single.js.map +1 -1
  119. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  120. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  121. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +6 -0
  122. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  123. package/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  124. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  125. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  126. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  127. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +5 -0
  128. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  129. package/es/components/Slider/ui/Handler/Handler.js +48 -87
  130. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  131. package/es/components/Slider/ui/Handler/Handler.styles.js +17 -7
  132. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  133. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +2 -0
  134. package/es/components/Slider/ui/Handler/computeKeyPressData.js +118 -0
  135. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +1 -0
  136. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  137. package/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  138. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  139. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  140. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  141. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +1 -0
  142. package/es/components/Slider/utils/index.js +28 -10
  143. package/es/components/Slider/utils/index.js.map +1 -1
  144. package/es/components/Slider/variations/_view/base.js +1 -1
  145. package/es/components/Slider/variations/_view/base.js.map +1 -1
  146. package/es/components/Slider/variations/_view/base_1s3f6q8.css +1 -0
  147. package/es/index.css +16 -14
  148. package/es/utils/index.js.map +1 -1
  149. package/package.json +2 -2
  150. package/styled-components/cjs/components/NumberInput/NumberInput.tokens.js +2 -0
  151. package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +26 -24
  152. package/styled-components/cjs/components/NumberInput/variations/_segmentation/base.js +1 -1
  153. package/styled-components/cjs/components/Slider/Slider.js +10 -2
  154. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +26 -0
  155. package/styled-components/cjs/components/Slider/Slider.tokens.js +23 -17
  156. package/styled-components/cjs/components/Slider/components/Double/Double.js +54 -19
  157. package/styled-components/cjs/components/Slider/components/Single/Single.js +64 -33
  158. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  159. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +31 -12
  160. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  161. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +52 -88
  162. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -4
  163. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +121 -0
  164. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +3 -2
  165. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  166. package/styled-components/cjs/components/Slider/utils/index.js +28 -10
  167. package/styled-components/cjs/components/Slider/variations/_view/base.js +2 -1
  168. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +4 -4
  169. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  170. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  171. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.config.js +4 -4
  172. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  173. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  174. package/styled-components/es/components/NumberInput/NumberInput.tokens.js +2 -0
  175. package/styled-components/es/components/NumberInput/ui/Input/Input.js +26 -24
  176. package/styled-components/es/components/NumberInput/variations/_segmentation/base.js +1 -1
  177. package/styled-components/es/components/Slider/Slider.js +11 -2
  178. package/styled-components/es/components/Slider/Slider.template-doc.mdx +26 -0
  179. package/styled-components/es/components/Slider/Slider.tokens.js +23 -17
  180. package/styled-components/es/components/Slider/components/Double/Double.js +54 -19
  181. package/styled-components/es/components/Slider/components/Single/Single.js +65 -34
  182. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  183. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +31 -12
  184. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  185. package/styled-components/es/components/Slider/ui/Handler/Handler.js +51 -86
  186. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +8 -5
  187. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +115 -0
  188. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +3 -2
  189. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  190. package/styled-components/es/components/Slider/utils/index.js +28 -10
  191. package/styled-components/es/components/Slider/variations/_view/base.js +2 -1
  192. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.config.js +4 -4
  193. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  194. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +98 -16
  195. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.config.js +4 -4
  196. package/styled-components/es/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  197. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +98 -15
  198. package/types/components/NumberInput/NumberInput.tokens.d.ts +2 -0
  199. package/types/components/NumberInput/NumberInput.tokens.d.ts.map +1 -1
  200. package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -1
  201. package/types/components/NumberInput/variations/_segmentation/base.d.ts.map +1 -1
  202. package/types/components/Slider/Slider.d.ts.map +1 -1
  203. package/types/components/Slider/Slider.tokens.d.ts +22 -16
  204. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  205. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  206. package/types/components/Slider/components/Double/Double.types.d.ts +1 -0
  207. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  208. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  209. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  210. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  211. package/types/components/Slider/components/Single/Single.types.d.ts +79 -7
  212. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  213. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  214. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  215. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  216. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +6 -0
  217. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  218. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  219. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +6 -2
  220. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  221. package/types/components/Slider/ui/Handler/Handler.types.d.ts +5 -1
  222. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  223. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +12 -0
  224. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -0
  225. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  226. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  227. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  228. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +1 -0
  229. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  230. package/types/components/Slider/utils/index.d.ts +26 -8
  231. package/types/components/Slider/utils/index.d.ts.map +1 -1
  232. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  233. package/types/examples/plasma_b2c/components/NumberInput/NumberInput.config.d.ts.map +1 -1
  234. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  235. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +80 -2
  236. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  237. package/types/examples/plasma_web/components/NumberInput/NumberInput.config.d.ts.map +1 -1
  238. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  239. package/types/examples/plasma_web/components/Slider/Slider.d.ts +80 -2
  240. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  241. package/types/utils/index.d.ts +1 -1
  242. package/types/utils/index.d.ts.map +1 -1
  243. package/cjs/components/NumberInput/variations/_segmentation/base_1mg9wqg.css +0 -1
  244. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  245. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  246. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  247. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  248. package/cjs/components/Slider/variations/_view/base_x642ct.css +0 -1
  249. package/es/components/NumberInput/variations/_segmentation/base_1mg9wqg.css +0 -1
  250. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +0 -6
  251. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +0 -5
  252. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +0 -2
  253. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +0 -1
  254. package/es/components/Slider/variations/_view/base_x642ct.css +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Slider/utils/index.ts"],"sourcesContent":["import { MutableRefObject } from 'react';\n\n/**\n * Расчитать значение слайдера с учетом его координат и шага изменений.\n * @param {number} handleCenterXRelative\n * @param {number} stepSize\n * @param {number} min\n * @param {number} max\n * @return {number}\n */\nexport function getSliderThumbValue(handleCenterXRelative: number, stepSize: number, min: number, max: number) {\n const newValue = Math.round(handleCenterXRelative / stepSize) + min;\n\n return Math.min(Math.max(newValue, min), max);\n}\n\n/**\n * Расчитывает значение отступа слайдера на основе его положения (справа, слева) на отрезке слайдера.\n * Значение используется для правильного расчета ограничения движения слайдера.\n * @param ref\n * @param {'left' | 'right'} side\n * @return Array<number>\n */\nexport function getOffsets(\n ref: ((instance: HTMLDivElement | null) => void) | MutableRefObject<HTMLDivElement | null> | null,\n side?: 'left' | 'right',\n): number[] {\n if (!ref || !('current' in ref) || !ref.current || !side) {\n return [0, 0];\n }\n\n const size = ref.current.clientWidth;\n\n if (side === 'left') {\n return [0, size];\n }\n\n if (side === 'right') {\n return [size, 0];\n }\n\n return [0, 0];\n}\n\nexport const sizeData = {\n s: {\n indent: 0.5,\n fontSizeMultiplier: 16,\n },\n m: {\n indent: 0.75,\n fontSizeMultiplier: 16,\n },\n l: {\n indent: 0.75,\n fontSizeMultiplier: 16,\n },\n};\n"],"names":["getSliderThumbValue","handleCenterXRelative","stepSize","min","max","newValue","Math","round","getOffsets","ref","side","current","size","clientWidth","sizeData","s","indent","fontSizeMultiplier","m","l"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,mBAAmBA,CAACC,qBAA6B,EAAEC,QAAgB,EAAEC,GAAW,EAAEC,GAAW,EAAE;EAC3G,IAAMC,QAAQ,GAAGC,IAAI,CAACC,KAAK,CAACN,qBAAqB,GAAGC,QAAQ,CAAC,GAAGC,GAAG,CAAA;AAEnE,EAAA,OAAOG,IAAI,CAACH,GAAG,CAACG,IAAI,CAACF,GAAG,CAACC,QAAQ,EAAEF,GAAG,CAAC,EAAEC,GAAG,CAAC,CAAA;AACjD,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,UAAUA,CACtBC,GAAiG,EACjGC,IAAuB,EACf;AACR,EAAA,IAAI,CAACD,GAAG,IAAI,EAAE,SAAS,IAAIA,GAAG,CAAC,IAAI,CAACA,GAAG,CAACE,OAAO,IAAI,CAACD,IAAI,EAAE;AACtD,IAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,GAAA;AAEA,EAAA,IAAME,IAAI,GAAGH,GAAG,CAACE,OAAO,CAACE,WAAW,CAAA;EAEpC,IAAIH,IAAI,KAAK,MAAM,EAAE;AACjB,IAAA,OAAO,CAAC,CAAC,EAAEE,IAAI,CAAC,CAAA;AACpB,GAAA;EAEA,IAAIF,IAAI,KAAK,OAAO,EAAE;AAClB,IAAA,OAAO,CAACE,IAAI,EAAE,CAAC,CAAC,CAAA;AACpB,GAAA;AAEA,EAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,CAAA;AAEO,IAAME,QAAQ,GAAG;AACpBC,EAAAA,CAAC,EAAE;AACCC,IAAAA,MAAM,EAAE,GAAG;AACXC,IAAAA,kBAAkB,EAAE,EAAA;GACvB;AACDC,EAAAA,CAAC,EAAE;AACCF,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,kBAAkB,EAAE,EAAA;GACvB;AACDE,EAAAA,CAAC,EAAE;AACCH,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,kBAAkB,EAAE,EAAA;AACxB,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Slider/utils/index.ts"],"sourcesContent":["import { MutableRefObject } from 'react';\n\n/**\n * Расчитать значение слайдера с учетом его координат и шага изменений.\n * @param {number} handleCenterXRelative\n * @param {number} stepSize\n * @param {number} min\n * @param {number} max\n * @return {number}\n */\nexport function getSliderThumbValue(handleCenterPosRelative: number, stepSize: number, min: number, max: number) {\n const newValue = Math.round(handleCenterPosRelative / stepSize) + min;\n\n return Math.min(Math.max(newValue, min), max);\n}\n\n/**\n * Расчитывает значение отступа слайдера на основе его положения (справа, слева) на отрезке слайдера.\n * Значение используется для правильного расчета ограничения движения слайдера.\n * @param ref\n * @param {'left' | 'right'} side\n * @return Array<number>\n */\nexport function getOffsets(\n ref: ((instance: HTMLDivElement | null) => void) | MutableRefObject<HTMLDivElement | null> | null,\n side?: 'left' | 'right',\n isVertical?: boolean,\n): number[] {\n if (!ref || !('current' in ref) || !ref.current || !side) {\n return [0, 0];\n }\n\n const size = isVertical ? ref.current.clientHeight : ref.current.clientWidth;\n\n if (side === 'left') {\n return [0, size];\n }\n\n if (side === 'right') {\n return [size, 0];\n }\n\n return [0, 0];\n}\n\nexport const sizeData = {\n s: {\n small: {\n indent: 0.5,\n fontSizeMultiplier: 16,\n },\n large: {\n indent: 0.625,\n fontSizeMultiplier: 16,\n },\n },\n m: {\n small: {\n indent: 0.5,\n fontSizeMultiplier: 16,\n },\n large: {\n indent: 0.625,\n fontSizeMultiplier: 16,\n },\n },\n l: {\n small: {\n indent: 0.5,\n fontSizeMultiplier: 16,\n },\n large: {\n indent: 0.625,\n fontSizeMultiplier: 16,\n },\n },\n};\n"],"names":["getSliderThumbValue","handleCenterPosRelative","stepSize","min","max","newValue","Math","round","getOffsets","ref","side","isVertical","current","size","clientHeight","clientWidth","sizeData","s","small","indent","fontSizeMultiplier","large","m","l"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,mBAAmBA,CAACC,uBAA+B,EAAEC,QAAgB,EAAEC,GAAW,EAAEC,GAAW,EAAE;EAC7G,IAAMC,QAAQ,GAAGC,IAAI,CAACC,KAAK,CAACN,uBAAuB,GAAGC,QAAQ,CAAC,GAAGC,GAAG,CAAA;AAErE,EAAA,OAAOG,IAAI,CAACH,GAAG,CAACG,IAAI,CAACF,GAAG,CAACC,QAAQ,EAAEF,GAAG,CAAC,EAAEC,GAAG,CAAC,CAAA;AACjD,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,UAAUA,CACtBC,GAAiG,EACjGC,IAAuB,EACvBC,UAAoB,EACZ;AACR,EAAA,IAAI,CAACF,GAAG,IAAI,EAAE,SAAS,IAAIA,GAAG,CAAC,IAAI,CAACA,GAAG,CAACG,OAAO,IAAI,CAACF,IAAI,EAAE;AACtD,IAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,GAAA;AAEA,EAAA,IAAMG,IAAI,GAAGF,UAAU,GAAGF,GAAG,CAACG,OAAO,CAACE,YAAY,GAAGL,GAAG,CAACG,OAAO,CAACG,WAAW,CAAA;EAE5E,IAAIL,IAAI,KAAK,MAAM,EAAE;AACjB,IAAA,OAAO,CAAC,CAAC,EAAEG,IAAI,CAAC,CAAA;AACpB,GAAA;EAEA,IAAIH,IAAI,KAAK,OAAO,EAAE;AAClB,IAAA,OAAO,CAACG,IAAI,EAAE,CAAC,CAAC,CAAA;AACpB,GAAA;AAEA,EAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACjB,CAAA;AAEO,IAAMG,QAAQ,GAAG;AACpBC,EAAAA,CAAC,EAAE;AACCC,IAAAA,KAAK,EAAE;AACHC,MAAAA,MAAM,EAAE,GAAG;AACXC,MAAAA,kBAAkB,EAAE,EAAA;KACvB;AACDC,IAAAA,KAAK,EAAE;AACHF,MAAAA,MAAM,EAAE,KAAK;AACbC,MAAAA,kBAAkB,EAAE,EAAA;AACxB,KAAA;GACH;AACDE,EAAAA,CAAC,EAAE;AACCJ,IAAAA,KAAK,EAAE;AACHC,MAAAA,MAAM,EAAE,GAAG;AACXC,MAAAA,kBAAkB,EAAE,EAAA;KACvB;AACDC,IAAAA,KAAK,EAAE;AACHF,MAAAA,MAAM,EAAE,KAAK;AACbC,MAAAA,kBAAkB,EAAE,EAAA;AACxB,KAAA;GACH;AACDG,EAAAA,CAAC,EAAE;AACCL,IAAAA,KAAK,EAAE;AACHC,MAAAA,MAAM,EAAE,GAAG;AACXC,MAAAA,kBAAkB,EAAE,EAAA;KACvB;AACDC,IAAAA,KAAK,EAAE;AACHF,MAAAA,MAAM,EAAE,KAAK;AACbC,MAAAA,kBAAkB,EAAE,EAAA;AACxB,KAAA;AACJ,GAAA;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- import './base_x642ct.css';
1
+ import './base_1s3f6q8.css';
2
2
  var base = "b1c93yiw";
3
3
 
4
4
  export { base };
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Slider/variations/_view/base.tsx"],"sourcesContent":["import { css } from '@linaria/core';\n\nexport const base = css``;\n"],"names":["base"],"mappings":"AAEO,IAAMA,IAAI,GAAQ;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Slider/variations/_view/base.tsx"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes } from '../../Slider.tokens';\n\nexport const base = css`\n &.${classes.verticalOrientation} {\n height: 100%;\n display: inline-flex;\n }\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAKhB;;;;"}
@@ -0,0 +1 @@
1
+ .b1c93yiw.slider-vertical-orientation{height:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
package/es/index.css CHANGED
@@ -657,18 +657,20 @@
657
657
 
658
658
  .Sheet_styles_o73i75_sqp1ccu__24445093{width:100%;z-index:1;padding-bottom:1rem;position:var(--sqp1ccu-0);bottom:var(--sqp1ccu-1);background-color:var(--sqp1ccu-2);}
659
659
 
660
- .SliderBase_styles_9s4eb3_s33crq1__d6fac54b{-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);}
661
- .SliderBase_styles_9s4eb3_rnaoqfb__d6fac54b{height:100%;}
662
- .SliderBase_styles_9s4eb3_r1bro5xo__d6fac54b{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%);}
663
- .SliderBase_styles_9s4eb3_fdg7yhg__d6fac54b{position:absolute;height:100%;top:0;left:0;background:var(--plasma-slider-fill-color);width:0;}
664
- .SliderBase_styles_9s4eb3_i17ya4q3__d6fac54b{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
660
+ .base_1s3f6q8_b1c93yiw__8f5ba4a1.base_1s3f6q8_sliderVerticalOrientation__8f5ba4a1{height:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
665
661
 
666
- .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);}
662
+ .SliderBase_styles_1qt1224_r33crq1__8fd7c64a{position:relative;top:50%;height:var(--plasma-slider-rail-thickness);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%);}
663
+ .SliderBase_styles_1qt1224_snaoqfb__8fd7c64a{-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-size);}.SliderBase_styles_1qt1224_snaoqfb__8fd7c64a.SliderBase_styles_1qt1224_sliderVerticalOrientation__8fd7c64a{width:var(--plasma-slider-size);height:auto;}.SliderBase_styles_1qt1224_snaoqfb__8fd7c64a.SliderBase_styles_1qt1224_sliderVerticalOrientation__8fd7c64a .SliderBase_styles_1qt1224_r33crq1__8fd7c64a{top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:var(--plasma-slider-rail-thickness);height:100%;}
664
+ .SliderBase_styles_1qt1224_r1bro5xo__8fd7c64a{height:100%;}
665
+ .SliderBase_styles_1qt1224_fdg7yhg__8fd7c64a{position:absolute;height:100%;top:0;left:0;background:var(--plasma-slider-fill-color);width:0;}
666
+ .SliderBase_styles_1qt1224_i17ya4q3__8fd7c64a{visibility:hidden;width:0;height:0;opacity:0;margin:0;padding:0;border:none;}
667
667
 
668
- .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);}
669
- .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);}
670
- .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);}
671
- .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);}
668
+ .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{color:var(--plasma-slider-label-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--plasma-slider-label-wrapper-gap);}
669
+ .Single_styles_1h7n2s2_ly2gexi__5fe9b6cf{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
670
+ .Single_styles_1h7n2s2_lozb535__5fe9b6cf{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);}
671
+ .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{color:var(--plasma-slider-range-value-color);font-family:var(--plasma-slider-value-font-family);font-size:var(--plasma-slider-value-font-size);font-style:var(--plasma-slider-value-font-style);font-weight:var(--plasma-slider-value-font-weight);-webkit-letter-spacing:var(--plasma-slider-value-letter-spacing);-moz-letter-spacing:var(--plasma-slider-value-letter-spacing);-ms-letter-spacing:var(--plasma-slider-value-letter-spacing);letter-spacing:var(--plasma-slider-value-letter-spacing);line-height:var(--plasma-slider-value-line-height);-webkit-transition:opacity 0.1s ease-in-out;transition:opacity 0.1s ease-in-out;}.Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderHideMinValue__5fe9b6cf,.Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderHideMaxValue__5fe9b6cf{opacity:0;}.Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderActiveRangeValue__5fe9b6cf{color:var(--plasma-slider-label-color);}
672
+ .Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;}.Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf.Single_styles_1h7n2s2_sliderRangeValuesPlacementOuter__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{position:absolute;bottom:calc(var(--plasma-slider-rail-thickness) * -1.5 - var(--plasma-slider-range-value-bottom-offset));left:0;}.Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf.Single_styles_1h7n2s2_sliderRangeValuesPlacementOuter__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderMaxRangeValue__5fe9b6cf{left:unset;right:0;}.Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf.Single_styles_1h7n2s2_sliderRangeValuesPlacementInner__5fe9b6cf{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf.Single_styles_1h7n2s2_sliderRangeValuesPlacementInner__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{margin-right:var(--plasma-slider-range-value-horizontal-margin);}.Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf.Single_styles_1h7n2s2_sliderRangeValuesPlacementInner__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderMaxRangeValue__5fe9b6cf{margin-right:0;margin-left:var(--plasma-slider-range-value-horizontal-margin);}
673
+ .Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;opacity:var(--plasma-slider-disabled-opacity);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementOuter__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementOuter__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{margin-bottom:var(--plasma-slider-label-wrapper-margin-bottom);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementInner__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{margin-right:var(--plasma-slider-label-wrapper-margin-right);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementBottom__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementBottom__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelContentReversed__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelContentReversed__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf .Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf{width:var(--plasma-slider-size);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementInner__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{margin-right:0;margin-bottom:var(--plasma-slider-label-wrapper-vertical-margin);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignLeft__5fe9b6cf{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignLeft__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignRight__5fe9b6cf{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementBottom__5fe9b6cf{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelPlacementBottom__5fe9b6cf .Single_styles_1h7n2s2_l1p4kc08__5fe9b6cf{margin-top:var(--plasma-slider-label-wrapper-vertical-margin);margin-right:0;margin-bottom:0;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf .Single_styles_1h7n2s2_s1d2sfgl__5fe9b6cf{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{position:static;bottom:0;left:0;margin-bottom:var(--plasma-slider-range-value-vertical-margin);}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignCenter__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderMaxRangeValue__5fe9b6cf{left:0;right:0;bottom:0;margin-top:var(--plasma-slider-range-value-vertical-margin);margin-bottom:0;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignLeft__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf,.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignRight__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{margin-right:0;margin-bottom:0;position:absolute;top:0;right:calc( var(--plasma-slider-rail-thickness) / 2 + var(--plasma-slider-size) / 2 + var(--plasma-slider-range-value-horizontal-offset) );}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignLeft__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderMaxRangeValue__5fe9b6cf,.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignRight__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf.Single_styles_1h7n2s2_sliderMaxRangeValue__5fe9b6cf{margin-right:0;margin-left:0;top:auto;bottom:0;}.Single_styles_1h7n2s2_ss3ujqx__5fe9b6cf.Single_styles_1h7n2s2_sliderVerticalOrientation__5fe9b6cf.Single_styles_1h7n2s2_sliderLabelAlignRight__5fe9b6cf .Single_styles_1h7n2s2_s1w9icbd__5fe9b6cf{left:calc(var(--plasma-slider-size) + var(--plasma-slider-rail-thickness));}
672
674
 
673
675
  .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);}
674
676
 
@@ -678,10 +680,10 @@
678
680
  .Double_styles_1jhda4u_d3kvcjo__5dc981f4{opacity:var(--plasma-slider-disabled-opacity);}
679
681
 
680
682
 
681
- .Handler_styles_8crx5z_h1tnrnip__2d4342c7{cursor:pointer;position:absolute;z-index:1;top:0;left:0;}
682
- .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);}
683
+ .Handler_styles_irtcgm_s1tnrnip__e8f853c5{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-value-font-family);font-size:var(--plasma-slider-value-font-size);font-style:var(--plasma-slider-value-font-style);font-weight:var(--plasma-slider-value-font-weight);-webkit-letter-spacing:var(--plasma-slider-value-letter-spacing);-moz-letter-spacing:var(--plasma-slider-value-letter-spacing);-ms-letter-spacing:var(--plasma-slider-value-letter-spacing);letter-spacing:var(--plasma-slider-value-letter-spacing);line-height:var(--plasma-slider-value-line-height);}
684
+ .Handler_styles_irtcgm_h12uu2lj__e8f853c5{cursor:pointer;position:absolute;z-index:1;top:0;left:0;bottom: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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;--thumb-size:var(--h12uu2lj-0);}.Handler_styles_irtcgm_h12uu2lj__e8f853c5.Handler_styles_irtcgm_sliderVerticalOrientation__e8f853c5{right:0;bottom:auto;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}.Handler_styles_irtcgm_h12uu2lj__e8f853c5.Handler_styles_irtcgm_sliderVerticalOrientation__e8f853c5 .Handler_styles_irtcgm_s1tnrnip__e8f853c5{margin:0;top:0;bottom:0;right:0;left:calc(var(--plasma-slider-size) - (var(--plasma-slider-size) - var(--thumb-size)) / 2 + 0.25rem);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}.Handler_styles_irtcgm_h12uu2lj__e8f853c5.Handler_styles_irtcgm_sliderValuePlacementLeft__e8f853c5 .Handler_styles_irtcgm_s1tnrnip__e8f853c5{left:auto;right:calc(var(--plasma-slider-size) - (var(--plasma-slider-size) - var(--thumb-size)) / 2 + 0.3125rem);-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
683
685
 
684
- .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);}
686
+ .Thumb_styles_uyn20e_tqbdf8b__de0962c7{width:var(--thumb-size);height:var(--thumb-size);min-width:var(--thumb-size);min-height:var(--thumb-size);position:relative;border-radius:50%;box-sizing:border-box;background:var(--plasma-slider-thumb-background-color);margin:0.0625rem;-webkit-transition:border-color 0.1s ease-in-out;transition:border-color 0.1s ease-in-out;position:relative;}.Thumb_styles_uyn20e_tqbdf8b__de0962c7:after{background:var(--plasma-slider-thumb-border-color);margin:-0.0625rem;content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;}.Thumb_styles_uyn20e_tqbdf8b__de0962c7:not([disabled]):hover:after,.Thumb_styles_uyn20e_tqbdf8b__de0962c7:not([disabled]):active:after{background:var(--plasma-slider-thumb-focus-border-color);}.Thumb_styles_uyn20e_tqbdf8b__de0962c7[disabled]{cursor:not-allowed;}.Thumb_styles_uyn20e_tqbdf8b__de0962c7:focus{outline:none;}.Thumb_styles_uyn20e_tqbdf8b__de0962c7::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.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_uyn20e_tqbdf8b__de0962c7.Thumb_styles_uyn20e_focusVisible__de0962c7:focus::before,.Thumb_styles_uyn20e_tqbdf8b__de0962c7[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 0.125rem var(--plasma-slider-thumb-focus-border-color);}
685
687
 
686
688
  .StepItem_styles_sp9rcd_snf9dn9__20446152{--plasma-spinner-size:var(--snf9dn9-0);--plasma-spinner-color:var(--plasma-step-item-active-indicator-color);}
687
689
  .StepItem_styles_sp9rcd_sv5tpso__20446152{padding-top:var(--plasma-step-item-title-padding-top);padding-right:var(--plasma-step-item-content-side-padding);font-family:var(--plasma-step-item-title-font-family);font-size:var(--plasma-step-item-title-font-size);font-style:var(--plasma-step-item-title-font-style);font-weight:var(--plasma-step-item-title-font-weight);-webkit-letter-spacing:var(--plasma-step-item-title-letter-spacing);-moz-letter-spacing:var(--plasma-step-item-title-letter-spacing);-ms-letter-spacing:var(--plasma-step-item-title-letter-spacing);letter-spacing:var(--plasma-step-item-title-letter-spacing);line-height:var(--plasma-step-item-title-line-height);word-break:break-word;}
@@ -824,6 +826,6 @@
824
826
 
825
827
  .base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c{background-color:var(--plasma-number-input_background-color);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color);}.base_dx9knv_b15uqx38__1d74109c .base_dx9knv_i1s8bsh6__1d74109c.base_dx9knv_manualInputNumberInput__1d74109c:hover{background-color:var(--plasma-number-input_background-color-hover);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-hover);}
826
828
 
827
- .base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_segmentedView__b0f7c19c,.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrement__b0f7c19c{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius) var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrement__b0f7c19c{border-radius:var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_segmentedView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c{position:relative;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c:before{content:'';position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:calc(100% - var(--plasma-number-input_icon-button_width) * 2);height:100%;background:var(--plasma-number-input_background-color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c{position:relative;color:var(--plasma-number-input_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1s8bsh6__b0f7c19c:not(error-animation).base_1mg9wqg_manualInputNumberInput__b0f7c19c:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:hover,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:hover,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:active,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:active{background-color:transparent;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c{opacity:1;}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:hover svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:hover svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonDecrementDisabled__b0f7c19c:active svg,.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c.base_1mg9wqg_clearView__b0f7c19c .base_1mg9wqg_sj0ab1b__b0f7c19c.base_1mg9wqg_actionButtonIncrementDisabled__b0f7c19c:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_s1ft73sv__b0f7c19c{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1tgbhg7__b0f7c19c{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_i1tgbhg7__b0f7c19c:not(.base_1mg9wqg_errorAnimation__b0f7c19c){color:var(--plasma-number-input_color-solid);}.base_1mg9wqg_bpps6rw__b0f7c19c.base_1mg9wqg_solidView__b0f7c19c .base_1mg9wqg_az36kha__b0f7c19c{color:var(--plasma-number-input_additional-text_color-solid);}
829
+ .base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_i1s8bsh6__58dbcb57{border-radius:var(--plasma-number-input_input-wrapper_border-radius);}.base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_radius);}.base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_segmentedView__58dbcb57,.base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_solidView__58dbcb57{--plasma_private-segemntation-border-radius:var(--plasma-number-input_icon-button_segmentation_radius,var(--plasma-number-input_icon-button_radius));}.base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrement__58dbcb57{border-radius:var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius) var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius);}.base_3r9a58_bpps6rw__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrement__58dbcb57{border-radius:var(--plasma_private-segemntation-border-radius) var(--plasma-number-input_icon-button_radius) var(--plasma-number-input_icon-button_radius) var(--plasma_private-segemntation-border-radius);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_segmentedView__58dbcb57 .base_3r9a58_i1s8bsh6__58dbcb57{border-radius:var(--plasma-number-input_icon-button_segmentation_radius);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57{position:relative;}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57:before{content:'';position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:calc(100% - var(--plasma-number-input_icon-button_width) * 2);height:100%;background:var(--plasma-number-input_background-color-solid);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_i1s8bsh6__58dbcb57{position:relative;color:var(--plasma-number-input_color-solid);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_i1s8bsh6__58dbcb57:not(error-animation).base_3r9a58_manualInputNumberInput__58dbcb57:focus-within{background-color:var(--plasma-number-input_background-color-solid-focus);box-shadow:inset 0 0 0 var(--plasma-number-input_input-wrapper_border-width) var(--plasma-number-input_border-color-solid-focus);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57:hover,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57:active{background-color:var(--plasma-number-input_icon-button_background-color);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57:hover{color:var(--plasma-number-input_icon-button_color_solid-hover);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57:active{color:var(--plasma-number-input_icon-button_color_solid-active);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57{opacity:1;}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57 svg,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57 svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:hover,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:hover,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:active,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:active{color:var(--plasma-number-input_icon-button_color);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:hover svg,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:hover svg,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:active svg,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:active svg{opacity:var(--plasma-number-input_action-button_disabled-opacity);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57.base_3r9a58_clearView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:hover,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57.base_3r9a58_clearView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:hover,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57.base_3r9a58_clearView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonDecrementDisabled__58dbcb57:active,.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57.base_3r9a58_clearView__58dbcb57 .base_3r9a58_sj0ab1b__58dbcb57.base_3r9a58_actionButtonIncrementDisabled__58dbcb57:active{background-color:transparent;}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_s1ft73sv__58dbcb57{--plasma-spinner-color:var(--plasma-number-input_loader-spinner_color-solid);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_i1tgbhg7__58dbcb57{caret-color:var(--plasma-number-input_caret_color-solid,var(--plasma-number-input_caret_color));}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_i1tgbhg7__58dbcb57:not(.base_3r9a58_errorAnimation__58dbcb57){color:var(--plasma-number-input_color-solid);}.base_3r9a58_bpps6rw__58dbcb57.base_3r9a58_solidView__58dbcb57 .base_3r9a58_az36kha__58dbcb57{color:var(--plasma-number-input_additional-text_color-solid);}
828
830
 
829
831
  .base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_bmqk5v5__e93ebd2b.base_1sl0mh8_numberInputDisabled__e93ebd2b{pointer-events:none;opacity:var(--plasma-number-input_disabled-opacity);cursor:not-allowed;}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":"AAaaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAA6BF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAE/FC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import { CSSProperties } from '@linaria/core';\n\nexport { canUseDOM } from './canUseDOM';\nexport { extractTextFrom } from './extractTextFrom';\nexport { getSizeValueFromProp } from './getSizeValueFromProp';\nexport { IS_REACT_18, safeUseId } from './react';\nexport { isNumber } from './isNumber';\nexport { mergeRefs, setRefList } from './setRefList';\nexport { isEmpty } from './isEmpty';\nexport * as constants from './constants';\nexport * from './getPopoverPlacement';\nexport { noop } from './noop';\n\nexport const cx = (...classes: (string | boolean | undefined)[]) => classes.filter((classItem) => classItem).join(' ');\n\nexport const composableStyle = (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>): string => {\n let res = '';\n for (let i = 0; i < Math.max(s.length, expr.length); ++i) {\n res += s[i] ?? '';\n res += expr[i] ?? '';\n }\n\n return res;\n};\n"],"names":["cx","_len","arguments","length","classes","Array","_key","filter","classItem","join","composableStyle","s","res","i","Math","max","_s$i","_ref","undefined"],"mappings":"AAaaA,IAAAA,EAAE,GAAG,SAALA,EAAEA,GAAA;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAOC,OAAO,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAPF,IAAAA,OAAO,CAAAE,IAAA,CAAAJ,GAAAA,SAAA,CAAAI,IAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAAuCF,OAAO,CAACG,MAAM,CAAC,UAACC,SAAS,EAAA;AAAA,IAAA,OAAKA,SAAS,CAAA;AAAA,GAAA,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAA;AAAA,EAAA;IAEzGC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,CAAuB,EAA8D;EACjH,IAAIC,GAAG,GAAG,EAAE,CAAA;EACZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACJ,CAAC,CAACR,MAAM,EAAAD,SAAA,CAAAC,MAAA,IAAA,CAAA,GAAA,CAAA,GAAAD,SAAA,CAAAC,MAAA,GAAA,CAAa,CAAC,EAAE,EAAEU,CAAC,EAAE;IAAA,IAAAG,IAAA,EAAAC,IAAA,CAAA;AACtDL,IAAAA,GAAG,IAAAI,CAAAA,IAAA,GAAIL,CAAC,CAACE,CAAC,CAAC,MAAA,IAAA,IAAAG,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAI,EAAE,CAAA;IACjBJ,GAAG,IAAA,CAAAK,IAAA,GAASJ,CAAC,YAAAX,SAAA,CAAAC,MAAA,IAADU,CAAC,OAAAK,SAAA,GAAAhB,SAAA,CAADW,CAAC,mBAAAI,IAAA,KAAA,KAAA,CAAA,GAAAA,IAAA,GAAK,EAAE,CAAA;AACxB,GAAA;AAEA,EAAA,OAAOL,GAAG,CAAA;AACd;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.176.0-canary.1511.11555353496.0",
3
+ "version": "0.176.0-canary.1511.11570259013.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -128,5 +128,5 @@
128
128
  "sideEffects": [
129
129
  "*.css"
130
130
  ],
131
- "gitHead": "9fb1511eed38fba88270160cae2b65d2a0b27cd6"
131
+ "gitHead": "36c1fa6457cc369bafa227fa5d427c97b088161e"
132
132
  }
@@ -31,8 +31,10 @@ var tokens = exports.tokens = {
31
31
  iconButtonColor: '--plasma-number-input_icon-button_color',
32
32
  iconButtonBackgroundColor: '--plasma-number-input_icon-button_background-color',
33
33
  iconButtonColorHover: '--plasma-number-input_icon-button_color-hover',
34
+ iconButtonColorSolidHover: '--plasma-number-input_icon-button_color_solid-hover',
34
35
  iconButtonBackgroundColorHover: '--plasma-number-input_icon-button_background-color-hover',
35
36
  iconButtonColorActive: '--plasma-number-input_icon-button_color-active',
37
+ iconButtonColorSolidActive: '--plasma-number-input_icon-button_color_solid-active',
36
38
  iconButtonBackgroundColorActive: '--plasma-number-input_icon-button_background-color-active',
37
39
  actionButtonDisabledOpacity: '--plasma-number-input_action-button_disabled-opacity',
38
40
  // Action button size tokens
@@ -88,6 +88,27 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
88
88
  onChange(event, newValue);
89
89
  }
90
90
  };
91
+ var validateValue = function validateValue(newValue) {
92
+ console.log(newValue);
93
+ if (!newValue || !(0, _utils.isNumber)(newValue)) {
94
+ setValues(null, lastValidValue);
95
+ return;
96
+ }
97
+ if (String(newValue).endsWith('.')) {
98
+ setValues(null, Number(newValue));
99
+ return;
100
+ }
101
+ var resValue = Number(newValue);
102
+ if (max && resValue > max) {
103
+ setErrorClass(_NumberInput.classes.errorAnimation);
104
+ setErrorValue(max);
105
+ return;
106
+ }
107
+ if (min && resValue < min) {
108
+ setErrorClass(_NumberInput.classes.errorAnimation);
109
+ setErrorValue(min);
110
+ }
111
+ };
91
112
  var handleManualInputChange = function handleManualInputChange(event) {
92
113
  var _textWrapperRef$curre, _wrapperRef$current;
93
114
  if (!isManualInput || disabled) {
@@ -114,21 +135,10 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
114
135
  setValues(event, lastValidValue);
115
136
  return;
116
137
  }
117
- var resValue = Number(cleanValue);
118
- if (max && resValue > max) {
119
- setErrorClass(_NumberInput.classes.errorAnimation);
120
- setErrorValue(max);
121
- return;
122
- }
123
- if (min && resValue < min) {
124
- setErrorClass(_NumberInput.classes.errorAnimation);
125
- setErrorValue(min);
126
- return;
127
- }
128
138
  if (textWrapperRef !== null && textWrapperRef !== void 0 && textWrapperRef.current && wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current && (textWrapperRef === null || textWrapperRef === void 0 || (_textWrapperRef$curre = textWrapperRef.current) === null || _textWrapperRef$curre === void 0 ? void 0 : _textWrapperRef$curre.clientWidth) > (wrapperRef === null || wrapperRef === void 0 || (_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.clientWidth)) {
129
139
  wrapperRef.current.scrollLeft = textWrapperRef.current.offsetWidth - textWrapperRef.current.offsetLeft || 0;
130
140
  }
131
- setValues(event, resValue);
141
+ setValues(event, Number(cleanValue));
132
142
  };
133
143
  var handleClickInputWrapper = function handleClickInputWrapper() {
134
144
  if (!isManualInput || !inputRef.current) {
@@ -141,11 +151,7 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
141
151
  };
142
152
  var handleBlur = function handleBlur(event) {
143
153
  setIsEditing(false);
144
- if (!value || !(0, _utils.isNumber)(value)) {
145
- setValues(null, lastValidValue);
146
- } else if (String(value).endsWith('.')) {
147
- setValues(null, Number(value));
148
- }
154
+ validateValue(value);
149
155
  if (onBlur) {
150
156
  onBlur(event);
151
157
  }
@@ -156,11 +162,7 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
156
162
  }
157
163
  if (event.keyCode === _constants.keyCodes.Enter) {
158
164
  event.preventDefault();
159
- if (!value || !(0, _utils.isNumber)(value)) {
160
- setValues(null, lastValidValue);
161
- } else if (String(value).endsWith('.')) {
162
- setValues(null, Number(value));
163
- }
165
+ validateValue(value);
164
166
  if (onKeyDown) {
165
167
  onKeyDown(event);
166
168
  }
@@ -183,7 +185,7 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
183
185
  onClick: handleClickInputWrapper
184
186
  }, /*#__PURE__*/_react["default"].createElement(_Input.TextWrapper, {
185
187
  ref: textWrapperRef
186
- }, textBefore && /*#__PURE__*/_react["default"].createElement(_Input.AdditionalText, {
188
+ }, !isLoading && textBefore && /*#__PURE__*/_react["default"].createElement(_Input.AdditionalText, {
187
189
  className: _NumberInput.classes.textBefore
188
190
  }, textBefore), isLoading ? /*#__PURE__*/_react["default"].createElement(_Input.Loader, null, loader || _StyledSpinner || (_StyledSpinner = /*#__PURE__*/_react["default"].createElement(_Input.StyledSpinner, null))) : /*#__PURE__*/_react["default"].createElement(_Input.DynamicInput, null, /*#__PURE__*/_react["default"].createElement(_Input.Input, _extends({
189
191
  ref: inputForkRef,
@@ -199,7 +201,7 @@ var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)(func
199
201
  }
200
202
  }, rest)), /*#__PURE__*/_react["default"].createElement(_Input.InputWidthHelper, {
201
203
  ref: inputHelperRef
202
- }, value)), textAfter && /*#__PURE__*/_react["default"].createElement(_Input.AdditionalText, {
204
+ }, value)), !isLoading && textAfter && /*#__PURE__*/_react["default"].createElement(_Input.AdditionalText, {
203
205
  className: _NumberInput.classes.textAfter
204
206
  }, textAfter)));
205
207
  });
@@ -9,4 +9,4 @@ var _NumberInput = /*#__PURE__*/require("../../NumberInput.tokens");
9
9
  var _ActionButton = /*#__PURE__*/require("../../ui/ActionButton/ActionButton.styles");
10
10
  var _Input = /*#__PURE__*/require("../../ui/Input/Input.styles");
11
11
  var _Spinner = /*#__PURE__*/require("../../../Spinner");
12
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{border-radius:var(", ");}", "{", ":var(", ");&.", ",&.", "{", ":var(", ",var(", "));}&.", "{border-radius:var(", ") var(", ") var(", ") var(", ");}&.", "{border-radius:var(", ") var(", ") var(", ") var(", ");}}&.", "{", "{border-radius:var(", ");}}&.", "{position:relative;&:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(100% - var(", ") * 2);height:100%;background:var(", ");}", "{position:relative;color:var(", ");&:not(", ").", ":focus-within{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");}}&.", "{", "{&.", ",&.", "{:hover,:active{background-color:transparent;}}&.", ",&.", "{opacity:1;svg{opacity:var(", ");}:hover,:active{svg{opacity:var(", ");}}}}}", "{", ":var(", ");}", "{caret-color:var(", ",var(", "));&:not(.", "){color:var(", ");}}", "{color:var(", ");}}"], _Input.InputWrapper, _NumberInput.tokens.inputWrapperBorderRadius, _ActionButton.StyledIconButton, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.segmentedView, _NumberInput.classes.solidView, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonSegmentationRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.actionButtonDecrement, _NumberInput.tokens.iconButtonRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.actionButtonIncrement, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.classes.segmentedView, _Input.InputWrapper, _NumberInput.tokens.iconButtonSegmentationRadius, _NumberInput.classes.solidView, _NumberInput.tokens.iconButtonWidth, _NumberInput.tokens.backgroundColorSolid, _Input.InputWrapper, _NumberInput.tokens.colorSolid, _NumberInput.classes.errorAnimation, _NumberInput.classes.manualInput, _NumberInput.tokens.backgroundColorSolidFocus, _NumberInput.tokens.inputWrapperBorderWidth, _NumberInput.tokens.borderColorSolidFocus, _NumberInput.classes.clearView, _ActionButton.StyledIconButton, _NumberInput.classes.actionButtonDecrementDisabled, _NumberInput.classes.actionButtonIncrementDisabled, _NumberInput.classes.actionButtonDecrementDisabled, _NumberInput.classes.actionButtonIncrementDisabled, _NumberInput.tokens.actionButtonDisabledOpacity, _NumberInput.tokens.actionButtonDisabledOpacity, _Input.StyledSpinner, _Spinner.spinnerTokens.color, _NumberInput.tokens.loaderSpinnerColorSolid, _Input.Input, _NumberInput.tokens.caretColorSolid, _NumberInput.tokens.caretColor, _NumberInput.classes.errorAnimation, _NumberInput.tokens.colorSolid, _Input.AdditionalText, _NumberInput.tokens.additionalTextColorSolid);
12
+ var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["", "{border-radius:var(", ");}", "{", ":var(", ");&.", ",&.", "{", ":var(", ",var(", "));}&.", "{border-radius:var(", ") var(", ") var(", ") var(", ");}&.", "{border-radius:var(", ") var(", ") var(", ") var(", ");}}&.", "{", "{border-radius:var(", ");}}&.", "{position:relative;&:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(100% - var(", ") * 2);height:100%;background:var(", ");}", "{position:relative;color:var(", ");&:not(", ").", ":focus-within{background-color:var(", ");box-shadow:inset 0 0 0 var(", ") var(", ");}}", "{:hover,:active{background-color:var(", ");}:hover{color:var(", ");}:active{color:var(", ");}&.", ",&.", "{opacity:1;svg{opacity:var(", ");}:hover,:active{color:var(", ");svg{opacity:var(", ");}}}}&.", "{", "{&.", ",&.", "{:hover,:active{background-color:transparent;}}}}", "{", ":var(", ");}", "{caret-color:var(", ",var(", "));&:not(.", "){color:var(", ");}}", "{color:var(", ");}}"], _Input.InputWrapper, _NumberInput.tokens.inputWrapperBorderRadius, _ActionButton.StyledIconButton, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.segmentedView, _NumberInput.classes.solidView, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonSegmentationRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.actionButtonDecrement, _NumberInput.tokens.iconButtonRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.classes.actionButtonIncrement, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.tokens.iconButtonRadius, _NumberInput.privateTokens.segmentationBorderRadius, _NumberInput.classes.segmentedView, _Input.InputWrapper, _NumberInput.tokens.iconButtonSegmentationRadius, _NumberInput.classes.solidView, _NumberInput.tokens.iconButtonWidth, _NumberInput.tokens.backgroundColorSolid, _Input.InputWrapper, _NumberInput.tokens.colorSolid, _NumberInput.classes.errorAnimation, _NumberInput.classes.manualInput, _NumberInput.tokens.backgroundColorSolidFocus, _NumberInput.tokens.inputWrapperBorderWidth, _NumberInput.tokens.borderColorSolidFocus, _ActionButton.StyledIconButton, _NumberInput.tokens.iconButtonBackgroundColor, _NumberInput.tokens.iconButtonColorSolidHover, _NumberInput.tokens.iconButtonColorSolidActive, _NumberInput.classes.actionButtonDecrementDisabled, _NumberInput.classes.actionButtonIncrementDisabled, _NumberInput.tokens.actionButtonDisabledOpacity, _NumberInput.tokens.iconButtonColor, _NumberInput.tokens.actionButtonDisabledOpacity, _NumberInput.classes.clearView, _ActionButton.StyledIconButton, _NumberInput.classes.actionButtonDecrementDisabled, _NumberInput.classes.actionButtonIncrementDisabled, _Input.StyledSpinner, _Spinner.spinnerTokens.color, _NumberInput.tokens.loaderSpinnerColorSolid, _Input.Input, _NumberInput.tokens.caretColorSolid, _NumberInput.tokens.caretColor, _NumberInput.classes.errorAnimation, _NumberInput.tokens.colorSolid, _Input.AdditionalText, _NumberInput.tokens.additionalTextColorSolid);
@@ -5,10 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sliderRoot = exports.sliderConfig = void 0;
7
7
  var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
8
+ var _utils = /*#__PURE__*/require("../../utils");
8
9
  var _base = /*#__PURE__*/require("./variations/_view/base");
9
10
  var _base2 = /*#__PURE__*/require("./variations/_size/base");
10
11
  var _base3 = /*#__PURE__*/require("./variations/_disabled/base");
11
12
  var _components = /*#__PURE__*/require("./components");
13
+ var _Slider = /*#__PURE__*/require("./Slider.tokens");
12
14
  var _excluded = ["type"];
13
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -29,9 +31,15 @@ var sliderRoot = exports.sliderRoot = function sliderRoot(Root) {
29
31
  var _ref$type = _ref.type,
30
32
  type = _ref$type === void 0 ? 'single' : _ref$type,
31
33
  props = _objectWithoutProperties(_ref, _excluded);
32
- return /*#__PURE__*/_react["default"].createElement(Root, _extends({}, props, {
34
+ if (isSingleValueProps(props, type)) {
35
+ return /*#__PURE__*/_react["default"].createElement(Root, _extends({}, props, {
36
+ className: (0, _utils.cx)(props.orientation === 'vertical' && _Slider.classes.verticalOrientation, props.className),
37
+ ref: ref
38
+ }), /*#__PURE__*/_react["default"].createElement(_components.SingleSlider, props));
39
+ }
40
+ return /*#__PURE__*/_react["default"].createElement(Root, _extends({
33
41
  ref: ref
34
- }), isSingleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.SingleSlider, props), isDoubleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.DoubleUncontrolled, props));
42
+ }, props), isDoubleValueProps(props, type) && /*#__PURE__*/_react["default"].createElement(_components.DoubleUncontrolled, props));
35
43
  });
36
44
  };
37
45
  var sliderConfig = exports.sliderConfig = {
@@ -76,3 +76,29 @@ export function App() {
76
76
  );
77
77
  }
78
78
  ```
79
+
80
+ # Вертикальное отображение
81
+
82
+ ```tsx live
83
+ import React from 'react';
84
+ import { Slider } from '@salutejs/{{ package }}';
85
+ import { IconMic } from '@salutejs/plasma-icons';
86
+
87
+ export function App() {
88
+ return (
89
+ <section style={{ height: '300px' }}>
90
+ <Slider
91
+ onChangeCommitted={() => {}}
92
+ min={0}
93
+ max={100}
94
+ value={30}
95
+ label="Громкость"
96
+ labelContent={<IconMic size="s" />}
97
+ orientation="vertical"
98
+ sliderAlign="center"
99
+ size="m"
100
+ />
101
+ </section>
102
+ );
103
+ }
104
+ ```
@@ -7,6 +7,12 @@ exports.tokens = exports.classes = void 0;
7
7
  var classes = exports.classes = {
8
8
  labelPlacementOuter: 'slider-label-placement-outer',
9
9
  labelPlacementInner: 'slider-label-placement-inner',
10
+ labelPlacementBottom: 'slider-label-placement-bottom',
11
+ labelAlignLeft: 'slider-label-align-left',
12
+ labelAlignCenter: 'slider-label-align-center',
13
+ labelAlignRight: 'slider-label-align-right',
14
+ labelAlignNone: 'slider-label-align-none',
15
+ labelContentReversed: 'slider-label-content-reversed',
10
16
  rangeValuesPlacementOuter: 'slider-range-values-placement-outer',
11
17
  rangeValuesPlacementInner: 'slider-range-values-placement-inner',
12
18
  maxRangeValue: 'slider-max-range-value',
@@ -15,13 +21,17 @@ var classes = exports.classes = {
15
21
  textFieldActive: 'slider-text-field-active',
16
22
  firstTextField: 'slider-first-text-field',
17
23
  secondTextField: 'slider-second-text-field',
18
- activeRangeValue: 'slider-active-range-value'
24
+ activeRangeValue: 'slider-active-range-value',
25
+ verticalOrientation: 'slider-vertical-orientation',
26
+ valuePlacementLeft: 'slider-value-placement-left',
27
+ reversed: 'slider-reversed'
19
28
  };
20
29
  var tokens = exports.tokens = {
21
- height: '--plasma-slider-height',
30
+ size: '--plasma-slider-size',
22
31
  labelWrapperGap: '--plasma-slider-label-wrapper-gap',
23
32
  labelWrapperMarginBottom: '--plasma-slider-label-wrapper-margin-bottom',
24
33
  labelWrapperMarginRight: '--plasma-slider-label-wrapper-margin-right',
34
+ labelWrapperVerticalMargin: '--plasma-slider-label-wrapper-vertical-margin',
25
35
  labelColor: '--plasma-slider-label-color',
26
36
  labelFontFamily: '--plasma-slider-label-font-family',
27
37
  labelFontSize: '--plasma-slider-label-font-size',
@@ -29,31 +39,27 @@ var tokens = exports.tokens = {
29
39
  labelFontWeight: '--plasma-slider-label-font-weight',
30
40
  labelLetterSpacing: '--plasma-slider-label-letter-spacing',
31
41
  labelLineHeight: '--plasma-slider-label-line-height',
32
- rangeMinValueMargin: '--plasma-slider-range-min-value-margin',
33
- rangeMaxValueMargin: '--plasma-slider-range-max-value-margin',
34
42
  rangeValueBottomOffset: '--plasma-slider-range-value-bottom-offset',
43
+ rangeValueHorizontalMargin: '--plasma-slider-range-value-horizontal-margin',
44
+ rangeValueHorizontalOffset: '--plasma-slider-range-value-horizontal-offset',
45
+ rangeValueVerticalMargin: '--plasma-slider-range-value-vertical-margin',
35
46
  rangeValueColor: '--plasma-slider-range-value-color',
36
- rangeValueFontFamily: '--plasma-slider-range-value-font-family',
37
- rangeValueFontSize: '--plasma-slider-range-value-font-size',
38
- rangeValueFontStyle: '--plasma-slider-range-value-font-style',
39
- rangeValueFontWeight: '--plasma-slider-range-value-font-weight',
40
- rangeValueLetterSpacing: '--plasma-slider-range-value-letter-spacing',
41
- rangeValueLineHeight: '--plasma-slider-range-value-line-height',
47
+ valueFontFamily: '--plasma-slider-value-font-family',
48
+ valueFontSize: '--plasma-slider-value-font-size',
49
+ valueFontStyle: '--plasma-slider-value-font-style',
50
+ valueFontWeight: '--plasma-slider-value-font-weight',
51
+ valueLetterSpacing: '--plasma-slider-value-letter-spacing',
52
+ valueLineHeight: '--plasma-slider-value-line-height',
42
53
  doubleWrapperGap: '--plasma-slider-double-wrapper-gap',
43
54
  thumbSize: '--plasma-slider-thumb-size',
55
+ thumbSizeLarge: '--plasma-slider-thumb-size-large',
44
56
  thumbBorder: '--plasma-slider-thumb-border',
45
57
  thumbBorderColor: '--plasma-slider-thumb-border-color',
46
58
  thumbBackgroundColor: '--plasma-slider-thumb-background-color',
47
59
  thumbFocusBorderColor: '--plasma-slider-thumb-focus-border-color',
48
60
  currentValueTopOffset: '--plasma-slider-current-value-top-offset',
49
- currentValueFontFamily: '--plasma-slider-current-value-font-family',
50
- currentValueFontSize: '--plasma-slider-current-value-font-size',
51
- currentValueFontStyle: '--plasma-slider-current-value-font-style',
52
- currentValueFontWeight: '--plasma-slider-current-value-font-weight',
53
- currentValueLetterSpacing: '--plasma-slider-current-value-letter-spacing',
54
- currentValueLineHeight: '--plasma-slider-current-value-line-height',
55
61
  railBackgroundColor: '--plasma-slider-rail-background-color',
56
- railHeight: '--plasma-slider-rail-height',
62
+ railThickness: '--plasma-slider-rail-thickness',
57
63
  railBorderRadius: '--plasma-slider-rail-border-radius',
58
64
  railIndent: '--plasma-slider-rail-indent',
59
65
  fillColor: '--plasma-slider-fill-color',