@salutejs/plasma-new-hope 0.174.0-dev.0 → 0.175.0-canary.1452.11541985977.0

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