@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
@@ -4,14 +4,18 @@ import styled from 'styled-components';
4
4
  import { disableProps } from '@salutejs/plasma-sb-utils';
5
5
  import type { StoryObj, Meta } from '@storybook/react';
6
6
 
7
+ import { IconMic } from '../../../../components/_Icon';
7
8
  import { WithTheme } from '../../../_helpers';
8
9
 
9
10
  import { Slider } from './Slider';
10
11
 
11
12
  const sizes = ['l', 'm', 's'];
13
+ const pointerSizes = ['small', 'large', 'none'];
12
14
  const views = ['default', 'accent', 'gradient'];
13
- const labelPlacements = ['outer', 'inner'];
14
- 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'];
15
19
 
16
20
  const meta: Meta<typeof Slider> = {
17
21
  title: 'plasma_web/Slider',
@@ -30,9 +34,24 @@ const meta: Meta<typeof Slider> = {
30
34
  type: 'inline-radio',
31
35
  },
32
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
+ },
33
49
  ...disableProps([
34
50
  'value',
35
51
  'onChangeCommitted',
52
+ 'onChangeTextField',
53
+ 'onBlurTextField',
54
+ 'onKeyDownTextField',
36
55
  'ariaLabel',
37
56
  'onChange',
38
57
  'fontSizeMultiplier',
@@ -40,6 +59,14 @@ const meta: Meta<typeof Slider> = {
40
59
  'settings',
41
60
  'hasHoverAnimation',
42
61
  'type',
62
+ 'labelContentLeft',
63
+ 'rangeValuesPlacement',
64
+ 'name',
65
+ 'defaultValue',
66
+ 'labelContent',
67
+ 'showRangeValues',
68
+ 'hideMinValueDiff',
69
+ 'hideMaxValueDiff',
43
70
  ]),
44
71
  },
45
72
  };
@@ -52,8 +79,9 @@ type StorySingleProps = StoryProps;
52
79
  type StorySingle = StoryObj<StorySingleProps>;
53
80
  type StoryDouble = StoryObj<StoryProps>;
54
81
 
55
- const SliderWrapper = styled.div`
56
- width: 25rem;
82
+ const SliderWrapper = styled.div<{ isVertical?: boolean }>`
83
+ width: ${({ isVertical }) => (isVertical ? 'auto' : '25rem')};
84
+ height: ${({ isVertical }) => (isVertical ? '25rem' : 'auto')};
57
85
  `;
58
86
 
59
87
  const StoryDefault = (args: StorySingleProps) => {
@@ -67,41 +95,86 @@ const StoryDefault = (args: StorySingleProps) => {
67
95
  setValue(values);
68
96
  };
69
97
 
98
+ const { hasIcon, showIcon, orientation, labelPlacement, labelVerticalPlacement, ...rest } = args;
99
+ const isVertical = orientation === 'vertical';
100
+
70
101
  return (
71
- <SliderWrapper>
72
- <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
+ />
73
112
  </SliderWrapper>
74
113
  );
75
114
  };
76
115
 
77
116
  export const Default: StorySingle = {
78
117
  argTypes: {
118
+ sliderAlign: {
119
+ options: sliderAligns,
120
+ control: {
121
+ type: 'inline-radio',
122
+ },
123
+ if: { arg: 'orientation', eq: 'vertical' },
124
+ },
79
125
  labelPlacement: {
80
126
  options: labelPlacements,
81
127
  control: {
82
128
  type: 'inline-radio',
83
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' },
84
145
  },
85
- rangeValuesPlacement: {
86
- options: rangeValuesPlacement,
146
+ orientation: {
147
+ options: orientations,
87
148
  control: {
88
149
  type: 'inline-radio',
89
150
  },
90
151
  },
152
+ reversed: {
153
+ control: {
154
+ type: 'boolean',
155
+ },
156
+ if: { arg: 'orientation', eq: 'vertical' },
157
+ },
91
158
  },
92
159
  args: {
93
160
  view: 'default',
94
161
  size: 'm',
162
+ pointerSize: 'small',
95
163
  min: 0,
96
164
  max: 100,
97
- disabled: false,
98
- ariaLabel: 'Цена товара',
165
+ orientation: 'horizontal',
166
+ ariaLabel: 'Цена микрофона',
99
167
  multipleStepSize: 10,
100
- label: 'Цена товара',
101
- labelPlacement: 'outer',
102
- rangeValuesPlacement: 'outer',
103
- showRangeValues: true,
168
+ label: 'Цена микрофона',
169
+ labelPlacement: 'top',
170
+ sliderAlign: 'center',
171
+ scaleAlign: 'bottom',
172
+ showScale: true,
104
173
  showCurrentValue: false,
174
+ showIcon: true,
175
+ reversed: false,
176
+ labelReversed: false,
177
+ disabled: false,
105
178
  },
106
179
  render: (args) => <StoryDefault {...args} />,
107
180
  };
@@ -141,7 +214,7 @@ const StoryMultipleValues = (args: StoryProps) => {
141
214
  };
142
215
 
143
216
  return (
144
- <SliderWrapper>
217
+ <SliderWrapper isVertical={args.orientation === 'vertical'}>
145
218
  <Slider
146
219
  value={value}
147
220
  onKeyDownTextField={onKeyDownTextField}
@@ -158,6 +231,7 @@ export const MultipleValues: StoryDouble = {
158
231
  args: {
159
232
  view: 'default',
160
233
  size: 'm',
234
+ pointerSize: 'small',
161
235
  min: 0,
162
236
  max: 100,
163
237
  disabled: false,
@@ -165,5 +239,14 @@ export const MultipleValues: StoryDouble = {
165
239
  ariaLabel: ['Минимальная цена товара', 'Максимальная цена товара'],
166
240
  multipleStepSize: 10,
167
241
  },
242
+ argTypes: {
243
+ pointerSize: {
244
+ options: ['small', 'large'],
245
+ control: {
246
+ type: 'inline-radio',
247
+ },
248
+ },
249
+ ...disableProps(['orientation']),
250
+ },
168
251
  render: (args) => <StoryMultipleValues {...args} />,
169
252
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AAO1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAU7C,eAAO,MAAM,UAAU,SAAU,qCAAqC,cAAc,EAAE,WAAW,CAAC,uFAQ5F,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBAVQ,qCAAqC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;CA+BjG,CAAC"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AAQ1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAW7C,eAAO,MAAM,UAAU,SAAU,qCAAqC,cAAc,EAAE,WAAW,CAAC,uFAmB5F,CAAC;AAEP,eAAO,MAAM,YAAY;;;mBArBQ,qCAAqC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;CA0CjG,CAAC"}
@@ -1,6 +1,12 @@
1
1
  export declare const classes: {
2
2
  labelPlacementOuter: string;
3
3
  labelPlacementInner: string;
4
+ labelPlacementBottom: string;
5
+ labelAlignLeft: string;
6
+ labelAlignCenter: string;
7
+ labelAlignRight: string;
8
+ labelAlignNone: string;
9
+ labelContentReversed: string;
4
10
  rangeValuesPlacementOuter: string;
5
11
  rangeValuesPlacementInner: string;
6
12
  maxRangeValue: string;
@@ -10,12 +16,16 @@ export declare const classes: {
10
16
  firstTextField: string;
11
17
  secondTextField: string;
12
18
  activeRangeValue: string;
19
+ verticalOrientation: string;
20
+ valuePlacementLeft: string;
21
+ reversed: string;
13
22
  };
14
23
  export declare const tokens: {
15
- height: string;
24
+ size: string;
16
25
  labelWrapperGap: string;
17
26
  labelWrapperMarginBottom: string;
18
27
  labelWrapperMarginRight: string;
28
+ labelWrapperVerticalMargin: string;
19
29
  labelColor: string;
20
30
  labelFontFamily: string;
21
31
  labelFontSize: string;
@@ -23,31 +33,27 @@ export declare const tokens: {
23
33
  labelFontWeight: string;
24
34
  labelLetterSpacing: string;
25
35
  labelLineHeight: string;
26
- rangeMinValueMargin: string;
27
- rangeMaxValueMargin: string;
28
36
  rangeValueBottomOffset: string;
37
+ rangeValueHorizontalMargin: string;
38
+ rangeValueHorizontalOffset: string;
39
+ rangeValueVerticalMargin: string;
29
40
  rangeValueColor: string;
30
- rangeValueFontFamily: string;
31
- rangeValueFontSize: string;
32
- rangeValueFontStyle: string;
33
- rangeValueFontWeight: string;
34
- rangeValueLetterSpacing: string;
35
- rangeValueLineHeight: string;
41
+ valueFontFamily: string;
42
+ valueFontSize: string;
43
+ valueFontStyle: string;
44
+ valueFontWeight: string;
45
+ valueLetterSpacing: string;
46
+ valueLineHeight: string;
36
47
  doubleWrapperGap: string;
37
48
  thumbSize: string;
49
+ thumbSizeLarge: string;
38
50
  thumbBorder: string;
39
51
  thumbBorderColor: string;
40
52
  thumbBackgroundColor: string;
41
53
  thumbFocusBorderColor: string;
42
54
  currentValueTopOffset: string;
43
- currentValueFontFamily: string;
44
- currentValueFontSize: string;
45
- currentValueFontStyle: string;
46
- currentValueFontWeight: string;
47
- currentValueLetterSpacing: string;
48
- currentValueLineHeight: string;
49
55
  railBackgroundColor: string;
50
- railHeight: string;
56
+ railThickness: string;
51
57
  railBorderRadius: string;
52
58
  railIndent: string;
53
59
  fillColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyElB,CAAC"}
1
+ {"version":3,"file":"Slider.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;CAqBnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqElB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Double.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAA0C,MAAM,OAAO,CAAC;AAUxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAkBnD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4U9C,CAAC"}
1
+ {"version":3,"file":"Double.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAA0C,MAAM,OAAO,CAAC;AAUxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAkBnD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAwW9C,CAAC"}
@@ -63,5 +63,6 @@ export interface DoubleSliderProps extends SliderBaseProps, SliderInternalProps,
63
63
  size?: 's' | 'm' | 'l';
64
64
  name?: string;
65
65
  type?: 'double';
66
+ pointerSize?: 'small' | 'large';
66
67
  }
67
68
  //# sourceMappingURL=Double.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Double.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE3F,MAAM,WAAW,iBACb,SAAQ,eAAe,EACnB,mBAAmB,EACnB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IACrE;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACpF;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjF;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACvF;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB"}
1
+ {"version":3,"file":"Double.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE3F,MAAM,WAAW,iBACb,SAAQ,eAAe,EACnB,mBAAmB,EACnB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IACrE;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACpF;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjF;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACvF;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Single.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAWhC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAUxD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA6L9C,CAAC"}
1
+ {"version":3,"file":"Single.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAWhC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA8P9C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const LabelContentLeft: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const LabelContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const Label: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
5
5
  export declare const StyledRangeValue: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
6
6
  export declare const SliderBaseWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Single.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAKxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAkB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKA8B7B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAiBzB,CAAC"}
1
+ {"version":3,"file":"Single.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAKxB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAExB,CAAC;AAEF,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAkB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKA8B7B,CAAC;AAEF,eAAO,MAAM,aAAa,qKA2IzB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
2
  import type { SliderBaseProps, SliderInternalProps } from '../SliderBase/SliderBase.types';
3
3
  import { FormTypeNumber } from '../../../../types/FormType';
4
4
  declare type SingleSliderPropsUnion = {
@@ -36,7 +36,54 @@ declare type SingleSliderPropsUnion = {
36
36
  */
37
37
  defaultValue?: never;
38
38
  };
39
- export declare type SingleSliderProps = SliderBaseProps & SliderInternalProps & SingleSliderPropsUnion & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
39
+ declare type SingleSliderOrientationPropsUnion = {
40
+ /**
41
+ * Ориентация Slider.
42
+ * @default `horizontal`
43
+ */
44
+ orientation?: 'horizontal';
45
+ /**
46
+ * Расположение подписи.
47
+ * @default top
48
+ * @description
49
+ * Может принимать три значения:
50
+ * top - отображение справа
51
+ * left - отображение слева
52
+ * none - скрывает подпись
53
+ */
54
+ labelPlacement?: 'top' | 'left' | 'none';
55
+ /**
56
+ * Расположение значений минимума и максимума интервала.
57
+ * @default top
58
+ * @description
59
+ * Может принимать три значения:
60
+ * side - отображение по сторонам
61
+ * bottom - отображение снизу
62
+ * none - скрывает значения
63
+ */
64
+ scaleAlign?: 'side' | 'bottom' | 'none';
65
+ /**
66
+ * Выравнивание элементов в Slider.
67
+ */
68
+ sliderAlign?: never | 'none';
69
+ reversed?: never;
70
+ labelReversed?: never;
71
+ } | {
72
+ /**
73
+ * Ориентация Slider.
74
+ * @default `horizontal`
75
+ */
76
+ orientation: 'vertical';
77
+ /**
78
+ * Выравнивание элементов в Slider.
79
+ * @default 'left'
80
+ */
81
+ sliderAlign?: 'center' | 'left' | 'right' | 'none';
82
+ scaleAlign?: never;
83
+ reversed?: boolean;
84
+ labelReversed?: boolean;
85
+ };
86
+ export declare type SingleSliderProps = SliderBaseProps & SliderInternalProps & SingleSliderPropsUnion & SingleSliderOrientationPropsUnion & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
40
87
  /**
41
88
  * Вызывается при отпускании ползунка
42
89
  */
@@ -51,8 +98,18 @@ export declare type SingleSliderProps = SliderBaseProps & SliderInternalProps &
51
98
  showCurrentValue?: boolean;
52
99
  /**
53
100
  * Отображать ли значения минимума и максимума интервала.
101
+ * @deprecated
54
102
  */
55
103
  showRangeValues?: boolean;
104
+ /**
105
+ * Расположение значений минимума и максимума интервала.
106
+ * @deprecated
107
+ */
108
+ rangeValuesPlacement?: string;
109
+ /**
110
+ * Отображать ли значения минимума и максимума интервала.
111
+ */
112
+ showScale?: boolean;
56
113
  /**
57
114
  * Разница между текущим значением и минимальным, при котором минимальное будет скрыто.
58
115
  */
@@ -61,16 +118,21 @@ export declare type SingleSliderProps = SliderBaseProps & SliderInternalProps &
61
118
  * Разница между текущим значением и максимальным, при котором максимальное будет скрыто.
62
119
  */
63
120
  hideMaxValueDiff?: number;
64
- /**
65
- * Расположение значений минимума и максимума интервала.
66
- * @default `outer`
67
- */
68
- rangeValuesPlacement?: 'inner' | 'outer';
69
121
  /**
70
122
  * Расположение подписи.
123
+ * @deprecated
71
124
  * @default `outer`
72
125
  */
73
126
  labelPlacement?: 'inner' | 'outer';
127
+ /**
128
+ * Слот под контент слева от подписи (например, иконку)
129
+ * @deprecated
130
+ */
131
+ labelContentLeft?: ReactNode;
132
+ /**
133
+ * Слот под контент рядом с подписью (например, иконку)
134
+ */
135
+ labelContent?: ReactNode;
74
136
  /**
75
137
  * Размера увеличенного шага (для клавиш PageUp, PageDown).
76
138
  * Указывает процентное отношение от максимально возможного значения.
@@ -80,6 +142,16 @@ export declare type SingleSliderProps = SliderBaseProps & SliderInternalProps &
80
142
  view?: string;
81
143
  size?: 's' | 'm' | 'l';
82
144
  type?: 'single';
145
+ /**
146
+ * Размер ползунка
147
+ * @default small
148
+ * @description
149
+ * Может принимать три значения:
150
+ * small - размер s;
151
+ * large - размер l;
152
+ * none - скрыть ползунок
153
+ */
154
+ pointerSize?: 'small' | 'large' | 'none';
83
155
  };
84
156
  export {};
85
157
  //# sourceMappingURL=Single.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Single.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,aAAK,sBAAsB,GACrB;IACI;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,GACD;IACI;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,CAAC;AAER,oBAAY,iBAAiB,GAAG,eAAe,GAC3C,mBAAmB,GACnB,sBAAsB,GACtB,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,GAAG;IAChE;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"Single.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Single/Single.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,aAAK,sBAAsB,GACrB;IACI;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,GACD;IACI;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,CAAC;AAER,aAAK,iCAAiC,GAChC;IACI;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAE7B,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,aAAa,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACI;;;OAGG;IACH,WAAW,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACnD,UAAU,CAAC,EAAE,KAAK,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAER,oBAAY,iBAAiB,GAAG,eAAe,GAC3C,mBAAmB,GACnB,sBAAsB,GACtB,iCAAiC,GACjC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,GAAG;IAChE;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAEnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SliderBase.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwC,MAAM,OAAO,CAAC;AAKvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA2EnE,CAAC"}
1
+ {"version":3,"file":"SliderBase.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwC,MAAM,OAAO,CAAC;AAOvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CA2FnE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
+ export declare const Rail: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
2
3
  export declare const Slider: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
4
  export declare const RailWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Rail: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
5
  export declare const Fill: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
6
  export declare const InputHidden: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
7
7
  //# sourceMappingURL=SliderBase.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliderBase.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,MAAM,qKAKlB,CAAC;AAEF,eAAO,MAAM,QAAQ,qKAEpB,CAAC;AAEF,eAAO,MAAM,IAAI,qKAWhB,CAAC;AAEF,eAAO,MAAM,IAAI,qKAOhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAEvB,CAAC"}
1
+ {"version":3,"file":"SliderBase.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,IAAI,qKAWhB,CAAC;AAEF,eAAO,MAAM,MAAM,qKAkBlB,CAAC;AAEF,eAAO,MAAM,QAAQ,qKAEpB,CAAC;AAEF,eAAO,MAAM,IAAI,qKAOhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAEvB,CAAC"}
@@ -28,6 +28,9 @@ export interface SliderBaseProps {
28
28
  */
29
29
  disabled?: boolean;
30
30
  labelPlacement?: string;
31
+ /**
32
+ * Расположение значений минимума и максимума интервала.
33
+ */
31
34
  rangeValuesPlacement?: string;
32
35
  }
33
36
  export interface SliderInternalProps {
@@ -37,6 +40,9 @@ export interface SliderInternalProps {
37
40
  settings?: SliderSettings;
38
41
  }
39
42
  export interface SliderViewProps extends SliderBaseProps, SliderInternalProps {
43
+ orientation: 'horizontal' | 'vertical';
44
+ size: string;
45
+ sliderAlign?: string;
40
46
  railFillWidth: number;
41
47
  setStepSize(stepSize: number): void;
42
48
  railFillXPosition?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SliderBase.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,cAAc,GAAG,OAAO,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,mBAAmB;IACzE,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;CACvD"}
1
+ {"version":3,"file":"SliderBase.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/SliderBase/SliderBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,oBAAY,cAAc,GAAG,OAAO,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,mBAAmB;IACzE,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;CACvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Handler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAOjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,OAAO,QAAQ,iBAAiB,CAAC;IAC7B,UAAiB,cAAc;QAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;KAC7B;CACJ;AAaD,eAAO,MAAM,OAAO,qFAyInB,CAAC"}
1
+ {"version":3,"file":"Handler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,QAAQ,iBAAiB,CAAC;IAC7B,UAAiB,cAAc;QAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;KAC7B;CACJ;AAED,eAAO,MAAM,OAAO,qFAmInB,CAAC"}
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
- export declare const HandlerStyled: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const StyledValue: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
2
+ export declare const StyledValue: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
3
+ isLargeThumb?: boolean | undefined;
4
+ }>;
5
+ export declare const HandlerStyled: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
6
+ isLarge?: boolean | undefined;
7
+ }>;
4
8
  //# sourceMappingURL=Handler.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Handler.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa,qKAMzB,CAAC;AAEF,eAAO,MAAM,WAAW,uKAevB,CAAC"}
1
+ {"version":3,"file":"Handler.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,WAAW;;EAevB,CAAC;AAEF,eAAO,MAAM,aAAa;;EAqCzB,CAAC"}
@@ -6,8 +6,10 @@ export interface HandlerProps {
6
6
  multipleStepSize: number;
7
7
  onChangeCommitted?(value: number, data: DraggableData): void;
8
8
  side?: 'left' | 'right';
9
+ size?: 'small' | 'large' | 'none';
10
+ orientation: 'horizontal' | 'vertical';
9
11
  bounds?: number[];
10
- xPosition?: number;
12
+ position?: number;
11
13
  zIndex?: number;
12
14
  disabled?: boolean;
13
15
  value?: number;
@@ -15,9 +17,11 @@ export interface HandlerProps {
15
17
  ariaValueMin?: number;
16
18
  hasHoverAnimation?: boolean;
17
19
  showCurrentValue?: boolean;
20
+ valuePlacement?: 'left' | 'right';
18
21
  startOffset?: number;
19
22
  endOffset?: number;
20
23
  onChange?(value: number, data: DraggableData): void;
24
+ onMouseDown?(): void;
21
25
  onMouseEnter?(): void;
22
26
  onMouseLeave?(): void;
23
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Handler.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IACpD,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,YAAY,CAAC,IAAI,IAAI,CAAC;CACzB"}
1
+ {"version":3,"file":"Handler.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/Handler.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IACpD,WAAW,CAAC,IAAI,IAAI,CAAC;IACrB,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,YAAY,CAAC,IAAI,IAAI,CAAC;CACzB"}
@@ -0,0 +1,12 @@
1
+ import { KeyboardEvent } from 'react';
2
+ import type { DraggableData } from 'react-draggable';
3
+ interface Params {
4
+ isVertical: boolean;
5
+ stepSize: number;
6
+ position: number;
7
+ max: number;
8
+ computedMultipleSteps: number;
9
+ }
10
+ export declare const computeKeyPressData: (event: KeyboardEvent<HTMLDivElement>, params: Params) => DraggableData | null;
11
+ export {};
12
+ //# sourceMappingURL=computeKeyPressData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeKeyPressData.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Handler/computeKeyPressData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAarD,UAAU,MAAM;IACZ,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB,EAAE,MAAM,CAAC;CACjC;AAkGD,eAAO,MAAM,mBAAmB,UAAW,cAAc,cAAc,CAAC,UAAU,MAAM,yBAQvF,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { ThumbProps } from './Thumb.types';
3
- export declare const Thumb: ({ min, max, value, ariaValueMin, ariaLabel, disabled, ...rest }: ThumbProps) => JSX.Element;
3
+ export declare const Thumb: ({ min, max, value, ariaValueMin, ariaLabel, disabled, orientation, ...rest }: ThumbProps) => JSX.Element;
4
4
  //# sourceMappingURL=Thumb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Thumb.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,KAAK,oEAA2E,UAAU,gBAatG,CAAC"}
1
+ {"version":3,"file":"Thumb.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,KAAK,iFASf,UAAU,gBAaZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Thumb.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,SAAS;;EAyCrB,CAAC"}
1
+ {"version":3,"file":"Thumb.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,SAAS;;EA0CrB,CAAC"}
@@ -8,5 +8,6 @@ export interface ThumbProps {
8
8
  ariaValueMin?: number;
9
9
  hasHoverAnimation?: boolean;
10
10
  disabled?: boolean;
11
+ orientation: 'horizontal' | 'vertical';
11
12
  }
12
13
  //# sourceMappingURL=Thumb.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Thumb.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"Thumb.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/ui/Thumb/Thumb.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;CAC1C"}