@salutejs/plasma-new-hope 0.175.0-canary.1452.11549482324.0 → 0.175.0-canary.1504.11549657359.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/cjs/components/Pagination/Pagination.css +13 -13
  2. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  3. package/cjs/components/Select/Select.css +13 -13
  4. package/cjs/components/Select/Select.styles.js +1 -1
  5. package/cjs/components/Select/Select.styles.js.map +1 -1
  6. package/cjs/components/Select/Select.styles_768h42.css +5 -0
  7. package/cjs/components/Select/Select.tokens.js +16 -4
  8. package/cjs/components/Select/Select.tokens.js.map +1 -1
  9. package/cjs/components/Select/ui/Inner/Inner.css +13 -13
  10. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  11. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  12. package/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  13. package/cjs/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
  14. package/cjs/components/Slider/Slider.css +13 -15
  15. package/cjs/components/Slider/Slider.js +2 -11
  16. package/cjs/components/Slider/Slider.js.map +1 -1
  17. package/cjs/components/Slider/Slider.tokens.js +17 -23
  18. package/cjs/components/Slider/Slider.tokens.js.map +1 -1
  19. package/cjs/components/Slider/components/Double/Double.css +8 -8
  20. package/cjs/components/Slider/components/Double/Double.js +23 -58
  21. package/cjs/components/Slider/components/Double/Double.js.map +1 -1
  22. package/cjs/components/Slider/components/Single/Single.css +14 -14
  23. package/cjs/components/Slider/components/Single/Single.js +33 -64
  24. package/cjs/components/Slider/components/Single/Single.js.map +1 -1
  25. package/cjs/components/Slider/components/Single/Single.styles.js +4 -4
  26. package/cjs/components/Slider/components/Single/Single.styles.js.map +1 -1
  27. package/cjs/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  28. package/cjs/components/Slider/components/SliderBase/SliderBase.css +5 -5
  29. package/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  30. package/cjs/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  31. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  32. package/cjs/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  33. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  34. package/cjs/components/Slider/ui/Handler/Handler.css +3 -3
  35. package/cjs/components/Slider/ui/Handler/Handler.js +88 -49
  36. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  37. package/cjs/components/Slider/ui/Handler/Handler.styles.js +7 -17
  38. package/cjs/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  39. package/cjs/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  40. package/cjs/components/Slider/ui/Thumb/Thumb.css +1 -1
  41. package/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  42. package/cjs/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  43. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  44. package/cjs/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  45. package/cjs/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  46. package/cjs/components/Slider/utils/index.js +10 -28
  47. package/cjs/components/Slider/utils/index.js.map +1 -1
  48. package/cjs/components/Slider/variations/_view/base.js +1 -1
  49. package/cjs/components/Slider/variations/_view/base.js.map +1 -1
  50. package/cjs/components/Slider/variations/_view/base_x642ct.css +1 -0
  51. package/cjs/index.css +26 -28
  52. package/cjs/utils/index.js.map +1 -1
  53. package/emotion/cjs/components/Select/Select.styles.js +5 -5
  54. package/emotion/cjs/components/Select/Select.tokens.js +16 -4
  55. package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  56. package/emotion/cjs/components/Slider/Slider.js +2 -10
  57. package/emotion/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  58. package/emotion/cjs/components/Slider/Slider.tokens.js +17 -23
  59. package/emotion/cjs/components/Slider/components/Double/Double.js +19 -54
  60. package/emotion/cjs/components/Slider/components/Single/Single.js +33 -64
  61. package/emotion/cjs/components/Slider/components/Single/Single.styles.js +9 -18
  62. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  63. package/emotion/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +10 -10
  64. package/emotion/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  65. package/emotion/cjs/components/Slider/ui/Handler/Handler.styles.js +15 -9
  66. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  67. package/emotion/cjs/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  68. package/emotion/cjs/components/Slider/utils/index.js +10 -28
  69. package/emotion/cjs/components/Slider/variations/_view/base.js +1 -2
  70. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.config.js +17 -17
  71. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +7 -7
  72. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  73. package/emotion/cjs/examples/plasma_web/components/Select/Select.config.js +17 -17
  74. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.config.js +7 -7
  75. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  76. package/emotion/es/components/Select/Select.styles.js +5 -5
  77. package/emotion/es/components/Select/Select.tokens.js +16 -4
  78. package/emotion/es/components/Select/ui/Inner/ui/Item/Item.styles.js +10 -10
  79. package/emotion/es/components/Slider/Slider.js +2 -11
  80. package/emotion/es/components/Slider/Slider.template-doc.mdx +0 -26
  81. package/emotion/es/components/Slider/Slider.tokens.js +17 -23
  82. package/emotion/es/components/Slider/components/Double/Double.js +19 -54
  83. package/emotion/es/components/Slider/components/Single/Single.js +34 -65
  84. package/emotion/es/components/Slider/components/Single/Single.styles.js +8 -17
  85. package/emotion/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  86. package/emotion/es/components/Slider/components/SliderBase/SliderBase.styles.js +11 -11
  87. package/emotion/es/components/Slider/ui/Handler/Handler.js +86 -51
  88. package/emotion/es/components/Slider/ui/Handler/Handler.styles.js +16 -10
  89. package/emotion/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  90. package/emotion/es/components/Slider/ui/Thumb/Thumb.styles.js +3 -3
  91. package/emotion/es/components/Slider/utils/index.js +10 -28
  92. package/emotion/es/components/Slider/variations/_view/base.js +1 -2
  93. package/emotion/es/examples/plasma_b2c/components/Select/Select.config.js +17 -17
  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 +16 -98
  96. package/emotion/es/examples/plasma_web/components/Select/Select.config.js +17 -17
  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 +15 -98
  99. package/es/components/Pagination/Pagination.css +13 -13
  100. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +13 -13
  101. package/es/components/Select/Select.css +13 -13
  102. package/es/components/Select/Select.styles.js +1 -1
  103. package/es/components/Select/Select.styles.js.map +1 -1
  104. package/es/components/Select/Select.styles_768h42.css +5 -0
  105. package/es/components/Select/Select.tokens.js +16 -4
  106. package/es/components/Select/Select.tokens.js.map +1 -1
  107. package/es/components/Select/ui/Inner/Inner.css +13 -13
  108. package/es/components/Select/ui/Inner/ui/Item/Item.css +13 -13
  109. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js +1 -1
  110. package/es/components/Select/ui/Inner/ui/Item/Item.styles.js.map +1 -1
  111. package/es/components/Select/ui/Inner/ui/Item/{Item.styles_baxa65.css → Item.styles_8oe5oy.css} +2 -2
  112. package/es/components/Slider/Slider.css +13 -15
  113. package/es/components/Slider/Slider.js +2 -11
  114. package/es/components/Slider/Slider.js.map +1 -1
  115. package/es/components/Slider/Slider.tokens.js +17 -23
  116. package/es/components/Slider/Slider.tokens.js.map +1 -1
  117. package/es/components/Slider/components/Double/Double.css +8 -8
  118. package/es/components/Slider/components/Double/Double.js +19 -54
  119. package/es/components/Slider/components/Double/Double.js.map +1 -1
  120. package/es/components/Slider/components/Single/Single.css +14 -14
  121. package/es/components/Slider/components/Single/Single.js +34 -65
  122. package/es/components/Slider/components/Single/Single.js.map +1 -1
  123. package/es/components/Slider/components/Single/Single.styles.js +4 -4
  124. package/es/components/Slider/components/Single/Single.styles.js.map +1 -1
  125. package/es/components/Slider/components/Single/Single.styles_1r9f1e0.css +6 -0
  126. package/es/components/Slider/components/SliderBase/SliderBase.css +5 -5
  127. package/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  128. package/es/components/Slider/components/SliderBase/SliderBase.js.map +1 -1
  129. package/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  130. package/es/components/Slider/components/SliderBase/SliderBase.styles.js.map +1 -1
  131. package/es/components/Slider/components/SliderBase/SliderBase.styles_9s4eb3.css +5 -0
  132. package/es/components/Slider/ui/Handler/Handler.css +3 -3
  133. package/es/components/Slider/ui/Handler/Handler.js +87 -48
  134. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  135. package/es/components/Slider/ui/Handler/Handler.styles.js +7 -17
  136. package/es/components/Slider/ui/Handler/Handler.styles.js.map +1 -1
  137. package/es/components/Slider/ui/Handler/Handler.styles_8crx5z.css +2 -0
  138. package/es/components/Slider/ui/Thumb/Thumb.css +1 -1
  139. package/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  140. package/es/components/Slider/ui/Thumb/Thumb.js.map +1 -1
  141. package/es/components/Slider/ui/Thumb/Thumb.styles.js +1 -1
  142. package/es/components/Slider/ui/Thumb/Thumb.styles.js.map +1 -1
  143. package/es/components/Slider/ui/Thumb/Thumb.styles_4w4gzn.css +1 -0
  144. package/es/components/Slider/utils/index.js +10 -28
  145. package/es/components/Slider/utils/index.js.map +1 -1
  146. package/es/components/Slider/variations/_view/base.js +1 -1
  147. package/es/components/Slider/variations/_view/base.js.map +1 -1
  148. package/es/components/Slider/variations/_view/base_x642ct.css +1 -0
  149. package/es/index.css +26 -28
  150. package/es/utils/index.js.map +1 -1
  151. package/package.json +2 -2
  152. package/styled-components/cjs/components/Select/Select.styles.js +2 -2
  153. package/styled-components/cjs/components/Select/Select.tokens.js +16 -4
  154. package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
  155. package/styled-components/cjs/components/Slider/Slider.js +2 -10
  156. package/styled-components/cjs/components/Slider/Slider.template-doc.mdx +0 -26
  157. package/styled-components/cjs/components/Slider/Slider.tokens.js +17 -23
  158. package/styled-components/cjs/components/Slider/components/Double/Double.js +19 -54
  159. package/styled-components/cjs/components/Slider/components/Single/Single.js +33 -64
  160. package/styled-components/cjs/components/Slider/components/Single/Single.styles.js +6 -6
  161. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.js +12 -31
  162. package/styled-components/cjs/components/Slider/components/SliderBase/SliderBase.styles.js +6 -6
  163. package/styled-components/cjs/components/Slider/ui/Handler/Handler.js +88 -52
  164. package/styled-components/cjs/components/Slider/ui/Handler/Handler.styles.js +4 -7
  165. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.js +2 -3
  166. package/styled-components/cjs/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  167. package/styled-components/cjs/components/Slider/utils/index.js +10 -28
  168. package/styled-components/cjs/components/Slider/variations/_view/base.js +1 -2
  169. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.config.js +14 -14
  170. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.config.js +3 -3
  171. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +16 -98
  172. package/styled-components/cjs/examples/plasma_web/components/Select/Select.config.js +14 -14
  173. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.config.js +3 -3
  174. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +15 -98
  175. package/styled-components/es/components/Select/Select.styles.js +2 -2
  176. package/styled-components/es/components/Select/Select.tokens.js +16 -4
  177. package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.styles.js +2 -2
  178. package/styled-components/es/components/Slider/Slider.js +2 -11
  179. package/styled-components/es/components/Slider/Slider.template-doc.mdx +0 -26
  180. package/styled-components/es/components/Slider/Slider.tokens.js +17 -23
  181. package/styled-components/es/components/Slider/components/Double/Double.js +19 -54
  182. package/styled-components/es/components/Slider/components/Single/Single.js +34 -65
  183. package/styled-components/es/components/Slider/components/Single/Single.styles.js +5 -5
  184. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.js +12 -31
  185. package/styled-components/es/components/Slider/components/SliderBase/SliderBase.styles.js +7 -7
  186. package/styled-components/es/components/Slider/ui/Handler/Handler.js +86 -51
  187. package/styled-components/es/components/Slider/ui/Handler/Handler.styles.js +5 -8
  188. package/styled-components/es/components/Slider/ui/Thumb/Thumb.js +2 -3
  189. package/styled-components/es/components/Slider/ui/Thumb/Thumb.styles.js +2 -2
  190. package/styled-components/es/components/Slider/utils/index.js +10 -28
  191. package/styled-components/es/components/Slider/variations/_view/base.js +1 -2
  192. package/styled-components/es/examples/plasma_b2c/components/Select/Select.config.js +14 -14
  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 +16 -98
  195. package/styled-components/es/examples/plasma_web/components/Select/Select.config.js +14 -14
  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 +15 -98
  198. package/types/components/Select/Select.tokens.d.ts +15 -3
  199. package/types/components/Select/Select.tokens.d.ts.map +1 -1
  200. package/types/components/Slider/Slider.d.ts.map +1 -1
  201. package/types/components/Slider/Slider.tokens.d.ts +16 -22
  202. package/types/components/Slider/Slider.tokens.d.ts.map +1 -1
  203. package/types/components/Slider/components/Double/Double.d.ts.map +1 -1
  204. package/types/components/Slider/components/Double/Double.types.d.ts +0 -1
  205. package/types/components/Slider/components/Double/Double.types.d.ts.map +1 -1
  206. package/types/components/Slider/components/Single/Single.d.ts.map +1 -1
  207. package/types/components/Slider/components/Single/Single.styles.d.ts +1 -1
  208. package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
  209. package/types/components/Slider/components/Single/Single.types.d.ts +7 -79
  210. package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
  211. package/types/components/Slider/components/SliderBase/SliderBase.d.ts.map +1 -1
  212. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +1 -1
  213. package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
  214. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +0 -6
  215. package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
  216. package/types/components/Slider/ui/Handler/Handler.d.ts.map +1 -1
  217. package/types/components/Slider/ui/Handler/Handler.styles.d.ts +2 -6
  218. package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
  219. package/types/components/Slider/ui/Handler/Handler.types.d.ts +1 -5
  220. package/types/components/Slider/ui/Handler/Handler.types.d.ts.map +1 -1
  221. package/types/components/Slider/ui/Thumb/Thumb.d.ts +1 -1
  222. package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
  223. package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
  224. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts +0 -1
  225. package/types/components/Slider/ui/Thumb/Thumb.types.d.ts.map +1 -1
  226. package/types/components/Slider/utils/index.d.ts +8 -26
  227. package/types/components/Slider/utils/index.d.ts.map +1 -1
  228. package/types/components/Slider/variations/_view/base.d.ts.map +1 -1
  229. package/types/examples/plasma_b2c/components/Select/Select.config.d.ts.map +1 -1
  230. package/types/examples/plasma_b2c/components/Slider/Slider.config.d.ts.map +1 -1
  231. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts +2 -80
  232. package/types/examples/plasma_b2c/components/Slider/Slider.d.ts.map +1 -1
  233. package/types/examples/plasma_web/components/Select/Select.config.d.ts.map +1 -1
  234. package/types/examples/plasma_web/components/Slider/Slider.config.d.ts.map +1 -1
  235. package/types/examples/plasma_web/components/Slider/Slider.d.ts +2 -80
  236. package/types/examples/plasma_web/components/Slider/Slider.d.ts.map +1 -1
  237. package/types/utils/index.d.ts +1 -1
  238. package/types/utils/index.d.ts.map +1 -1
  239. package/cjs/components/Select/Select.styles_1nzals0.css +0 -5
  240. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  241. package/cjs/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  242. package/cjs/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  243. package/cjs/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  244. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -122
  245. package/cjs/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  246. package/cjs/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  247. package/cjs/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  248. package/emotion/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  249. package/emotion/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  250. package/es/components/Select/Select.styles_1nzals0.css +0 -5
  251. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +0 -98
  252. package/es/components/Slider/components/Single/Single.styles_1h7n2s2.css +0 -6
  253. package/es/components/Slider/components/SliderBase/SliderBase.styles_1qt1224.css +0 -5
  254. package/es/components/Slider/ui/Handler/Handler.styles_irtcgm.css +0 -2
  255. package/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -118
  256. package/es/components/Slider/ui/Handler/computeKeyPressData.js.map +0 -1
  257. package/es/components/Slider/ui/Thumb/Thumb.styles_uyn20e.css +0 -1
  258. package/es/components/Slider/variations/_view/base_1s3f6q8.css +0 -1
  259. package/styled-components/cjs/components/Slider/ui/Handler/computeKeyPressData.js +0 -121
  260. package/styled-components/es/components/Slider/ui/Handler/computeKeyPressData.js +0 -115
  261. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts +0 -12
  262. package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +0 -1
@@ -3,19 +3,16 @@ import type { ComponentProps } from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { disableProps } from '@salutejs/plasma-sb-utils';
5
5
  import type { StoryObj, Meta } from '@storybook/react';
6
+ import { action } from '@storybook/addon-actions';
6
7
 
7
- import { IconMic } from '../../../../components/_Icon';
8
8
  import { WithTheme } from '../../../_helpers';
9
9
 
10
10
  import { Slider } from './Slider';
11
11
 
12
12
  const sizes = ['l', 'm', 's'];
13
- const pointerSizes = ['small', 'large', 'none'];
14
13
  const views = ['default', 'accent', 'gradient'];
15
- const sliderAligns = ['center', 'left', 'right', 'none'];
16
- const labelPlacements = ['top', 'left'];
17
- const scaleAligns = ['side', 'bottom'];
18
- const orientations: Array<string> = ['vertical', 'horizontal'];
14
+ const labelPlacements = ['outer', 'inner'];
15
+ const rangeValuesPlacement = ['outer', 'inner'];
19
16
 
20
17
  const meta: Meta<typeof Slider> = {
21
18
  title: 'plasma_b2c/Slider',
@@ -34,24 +31,9 @@ const meta: Meta<typeof Slider> = {
34
31
  type: 'inline-radio',
35
32
  },
36
33
  },
37
- pointerSize: {
38
- options: pointerSizes,
39
- control: {
40
- type: 'inline-radio',
41
- },
42
- },
43
- orientation: {
44
- options: orientations,
45
- control: {
46
- type: 'select',
47
- },
48
- },
49
34
  ...disableProps([
50
35
  'value',
51
36
  'onChangeCommitted',
52
- 'onChangeTextField',
53
- 'onBlurTextField',
54
- 'onKeyDownTextField',
55
37
  'ariaLabel',
56
38
  'onChange',
57
39
  'fontSizeMultiplier',
@@ -59,14 +41,6 @@ const meta: Meta<typeof Slider> = {
59
41
  'settings',
60
42
  'hasHoverAnimation',
61
43
  'type',
62
- 'labelContentLeft',
63
- 'rangeValuesPlacement',
64
- 'name',
65
- 'defaultValue',
66
- 'labelContent',
67
- 'showRangeValues',
68
- 'hideMinValueDiff',
69
- 'hideMaxValueDiff',
70
44
  ]),
71
45
  },
72
46
  };
@@ -79,9 +53,8 @@ type StorySingleProps = StoryProps;
79
53
  type StorySingle = StoryObj<StorySingleProps>;
80
54
  type StoryDouble = StoryObj<StoryProps>;
81
55
 
82
- const SliderWrapper = styled.div<{ isVertical?: boolean }>`
83
- width: ${({ isVertical }) => (isVertical ? 'auto' : '25rem')};
84
- height: ${({ isVertical }) => (isVertical ? '25rem' : 'auto')};
56
+ const SliderWrapper = styled.div`
57
+ width: 25rem;
85
58
  `;
86
59
 
87
60
  const StoryDefault = (args: StorySingleProps) => {
@@ -95,86 +68,41 @@ const StoryDefault = (args: StorySingleProps) => {
95
68
  setValue(values);
96
69
  };
97
70
 
98
- const { hasIcon, showIcon, orientation, labelPlacement, labelVerticalPlacement, ...rest } = args;
99
- const isVertical = orientation === 'vertical';
100
-
101
71
  return (
102
- <SliderWrapper isVertical={isVertical}>
103
- <Slider
104
- value={value}
105
- orientation={orientation}
106
- labelPlacement={labelPlacement}
107
- labelContent={showIcon ? <IconMic size={rest.size === 's' ? 'xs' : 's'} /> : null}
108
- onChangeCommitted={onChangeCommittedHandle}
109
- onChange={onChangeHandle}
110
- {...rest}
111
- />
72
+ <SliderWrapper>
73
+ <Slider value={value} onChangeCommitted={onChangeCommittedHandle} onChange={onChangeHandle} {...args} />
112
74
  </SliderWrapper>
113
75
  );
114
76
  };
115
77
 
116
78
  export const Default: StorySingle = {
117
79
  argTypes: {
118
- sliderAlign: {
119
- options: sliderAligns,
120
- control: {
121
- type: 'inline-radio',
122
- },
123
- if: { arg: 'orientation', eq: 'vertical' },
124
- },
125
80
  labelPlacement: {
126
81
  options: labelPlacements,
127
82
  control: {
128
83
  type: 'inline-radio',
129
84
  },
130
- if: { arg: 'orientation', eq: 'horizontal' },
131
- },
132
- labelReversed: {
133
- control: {
134
- type: 'boolean',
135
- expanded: true,
136
- },
137
- if: { arg: 'orientation', eq: 'vertical' },
138
- },
139
- scaleAlign: {
140
- options: scaleAligns,
141
- control: {
142
- type: 'inline-radio',
143
- },
144
- if: { arg: 'orientation', eq: 'horizontal' },
145
85
  },
146
- orientation: {
147
- options: orientations,
86
+ rangeValuesPlacement: {
87
+ options: rangeValuesPlacement,
148
88
  control: {
149
89
  type: 'inline-radio',
150
90
  },
151
91
  },
152
- reversed: {
153
- control: {
154
- type: 'boolean',
155
- },
156
- if: { arg: 'orientation', eq: 'vertical' },
157
- },
158
92
  },
159
93
  args: {
160
94
  view: 'default',
161
95
  size: 'm',
162
- pointerSize: 'small',
163
96
  min: 0,
164
97
  max: 100,
165
- orientation: 'horizontal',
166
- ariaLabel: 'Цена микрофона',
98
+ disabled: false,
99
+ ariaLabel: 'Цена товара',
167
100
  multipleStepSize: 10,
168
- label: 'Цена микрофона',
169
- labelPlacement: 'top',
170
- sliderAlign: 'center',
171
- scaleAlign: 'bottom',
172
- showScale: true,
101
+ label: 'Цена товара',
102
+ labelPlacement: 'outer',
103
+ rangeValuesPlacement: 'outer',
104
+ showRangeValues: true,
173
105
  showCurrentValue: false,
174
- showIcon: true,
175
- reversed: false,
176
- labelReversed: false,
177
- disabled: false,
178
106
  },
179
107
  render: (args) => <StoryDefault {...args} />,
180
108
  };
@@ -214,7 +142,7 @@ const StoryMultipleValues = (args: StoryProps) => {
214
142
  };
215
143
 
216
144
  return (
217
- <SliderWrapper isVertical={args.orientation === 'vertical'}>
145
+ <SliderWrapper>
218
146
  <Slider
219
147
  value={value}
220
148
  onKeyDownTextField={onKeyDownTextField}
@@ -231,7 +159,6 @@ export const MultipleValues: StoryDouble = {
231
159
  args: {
232
160
  view: 'default',
233
161
  size: 'm',
234
- pointerSize: 'small',
235
162
  min: 0,
236
163
  max: 100,
237
164
  disabled: false,
@@ -239,14 +166,5 @@ export const MultipleValues: StoryDouble = {
239
166
  ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
240
167
  multipleStepSize: 10,
241
168
  },
242
- argTypes: {
243
- pointerSize: {
244
- options: ['small', 'large'],
245
- control: {
246
- type: 'inline-radio',
247
- },
248
- },
249
- ...disableProps(['orientation']),
250
- },
251
169
  render: (args) => <StoryMultipleValues {...args} />,
252
170
  };