@zag-js/slider 1.47.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +16 -38
- package/dist/index.mjs +2 -7
- package/dist/slider.anatomy.d.mts +2 -6
- package/dist/slider.anatomy.d.ts +2 -6
- package/dist/slider.anatomy.js +8 -44
- package/dist/slider.anatomy.mjs +4 -18
- package/dist/slider.connect.d.mts +3 -7
- package/dist/slider.connect.d.ts +3 -7
- package/dist/slider.connect.js +371 -351
- package/dist/slider.connect.mjs +366 -330
- package/dist/slider.dom.d.mts +27 -30
- package/dist/slider.dom.d.ts +27 -30
- package/dist/slider.dom.js +93 -137
- package/dist/slider.dom.mjs +70 -93
- package/dist/slider.machine.d.mts +2 -7
- package/dist/slider.machine.d.ts +2 -7
- package/dist/slider.machine.js +322 -367
- package/dist/slider.machine.mjs +318 -351
- package/dist/slider.props.d.mts +7 -12
- package/dist/slider.props.d.ts +7 -12
- package/dist/slider.props.js +45 -73
- package/dist/slider.props.mjs +36 -43
- package/dist/slider.style.d.mts +15 -17
- package/dist/slider.style.d.ts +15 -17
- package/dist/slider.style.js +126 -156
- package/dist/slider.style.mjs +114 -123
- package/dist/slider.types.d.mts +307 -309
- package/dist/slider.types.d.ts +307 -309
- package/dist/slider.types.js +4 -18
- package/dist/slider.types.mjs +1 -0
- package/dist/slider.utils.d.mts +18 -21
- package/dist/slider.utils.d.ts +18 -21
- package/dist/slider.utils.js +144 -168
- package/dist/slider.utils.mjs +132 -135
- package/package.json +8 -8
package/dist/slider.types.d.mts
CHANGED
|
@@ -1,326 +1,324 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
value: number[];
|
|
1
|
+
import { EventObject, Machine, Service } from "@zag-js/core";
|
|
2
|
+
import { CommonProperties, DirectionProperty, PropTypes, RequiredBy } from "@zag-js/types";
|
|
3
|
+
export type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
4
|
+
export type ThumbAlignment = "contain" | "center";
|
|
5
|
+
export interface ValueChangeDetails {
|
|
6
|
+
value: number[];
|
|
8
7
|
}
|
|
9
|
-
interface FocusChangeDetails {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export interface FocusChangeDetails {
|
|
9
|
+
focusedIndex: number;
|
|
10
|
+
value: number[];
|
|
12
11
|
}
|
|
13
|
-
interface ValueTextDetails {
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export interface ValueTextDetails {
|
|
13
|
+
value: number;
|
|
14
|
+
index: number;
|
|
16
15
|
}
|
|
17
|
-
interface ElementIds {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
export interface ElementIds {
|
|
17
|
+
root?: string | undefined;
|
|
18
|
+
thumb?: ((index: number) => string) | undefined;
|
|
19
|
+
hiddenInput?: ((index: number) => string) | undefined;
|
|
20
|
+
control?: string | undefined;
|
|
21
|
+
track?: string | undefined;
|
|
22
|
+
range?: string | undefined;
|
|
23
|
+
label?: string | undefined;
|
|
24
|
+
valueText?: string | undefined;
|
|
25
|
+
marker?: ((index: number) => string) | undefined;
|
|
27
26
|
}
|
|
28
|
-
interface SliderProps extends DirectionProperty, CommonProperties {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
27
|
+
export interface SliderProps extends DirectionProperty, CommonProperties {
|
|
28
|
+
/**
|
|
29
|
+
* The ids of the elements in the slider. Useful for composition.
|
|
30
|
+
*/
|
|
31
|
+
ids?: ElementIds | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The aria-label of each slider thumb. Useful for providing an accessible name to the slider
|
|
34
|
+
*/
|
|
35
|
+
"aria-label"?: string[] | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The `id` of the elements that labels each slider thumb. Useful for providing an accessible name to the slider
|
|
38
|
+
*/
|
|
39
|
+
"aria-labelledby"?: string[] | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The name associated with each slider thumb (when used in a form)
|
|
42
|
+
*/
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The associate form of the underlying input element.
|
|
46
|
+
*/
|
|
47
|
+
form?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* The controlled value of the slider
|
|
50
|
+
*/
|
|
51
|
+
value?: number[] | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The initial value of the slider when rendered.
|
|
54
|
+
* Use when you don't need to control the value of the slider.
|
|
55
|
+
*/
|
|
56
|
+
defaultValue?: number[] | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the slider is disabled
|
|
59
|
+
*/
|
|
60
|
+
disabled?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the slider is read-only
|
|
63
|
+
*/
|
|
64
|
+
readOnly?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the slider is invalid
|
|
67
|
+
*/
|
|
68
|
+
invalid?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Function invoked when the value of the slider changes
|
|
71
|
+
*/
|
|
72
|
+
onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Function invoked when the slider value change is done
|
|
75
|
+
*/
|
|
76
|
+
onValueChangeEnd?: ((details: ValueChangeDetails) => void) | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Function invoked when the slider's focused index changes
|
|
79
|
+
*/
|
|
80
|
+
onFocusChange?: ((details: FocusChangeDetails) => void) | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Function that returns a human readable value for the slider thumb
|
|
83
|
+
*/
|
|
84
|
+
getAriaValueText?: ((details: ValueTextDetails) => string) | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* The minimum value of the slider
|
|
87
|
+
* @default 0
|
|
88
|
+
*/
|
|
89
|
+
min?: number | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* The maximum value of the slider
|
|
92
|
+
* @default 100
|
|
93
|
+
*/
|
|
94
|
+
max?: number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The step value of the slider
|
|
97
|
+
* @default 1
|
|
98
|
+
*/
|
|
99
|
+
step?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* The step value of the slider when the `Shift` key is held, or the
|
|
102
|
+
* `PageUp`/`PageDown` keys are used.
|
|
103
|
+
* @default 10 * step
|
|
104
|
+
*/
|
|
105
|
+
largeStep?: number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The minimum permitted steps between multiple thumbs.
|
|
108
|
+
*
|
|
109
|
+
* `minStepsBetweenThumbs` * `step` should reflect the gap between the thumbs.
|
|
110
|
+
*
|
|
111
|
+
* - `step: 1` and `minStepsBetweenThumbs: 10` => gap is `10`
|
|
112
|
+
* - `step: 10` and `minStepsBetweenThumbs: 2` => gap is `20`
|
|
113
|
+
*
|
|
114
|
+
* @default 0
|
|
115
|
+
*/
|
|
116
|
+
minStepsBetweenThumbs?: number | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* The orientation of the slider
|
|
119
|
+
* @default "horizontal"
|
|
120
|
+
*/
|
|
121
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* The origin of the slider range. The track is filled from the origin
|
|
124
|
+
* to the thumb for single values.
|
|
125
|
+
* - "start": Useful when the value represents an absolute value
|
|
126
|
+
* - "center": Useful when the value represents an offset (relative)
|
|
127
|
+
* - "end": Useful when the value represents an offset from the end
|
|
128
|
+
*
|
|
129
|
+
* @default "start"
|
|
130
|
+
*/
|
|
131
|
+
origin?: "start" | "center" | "end" | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* The alignment of the slider thumb relative to the track
|
|
134
|
+
* - `center`: the thumb will extend beyond the bounds of the slider track.
|
|
135
|
+
* - `contain`: the thumb will be contained within the bounds of the track.
|
|
136
|
+
*
|
|
137
|
+
* @default "contain"
|
|
138
|
+
*/
|
|
139
|
+
thumbAlignment?: "contain" | "center" | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* The slider thumbs dimensions
|
|
142
|
+
*/
|
|
143
|
+
thumbSize?: {
|
|
144
|
+
width: number;
|
|
145
|
+
height: number;
|
|
146
|
+
} | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Controls how thumbs behave when they collide during pointer interactions.
|
|
149
|
+
* - `none` (default): Thumbs cannot move past each other; excess movement is ignored.
|
|
150
|
+
* - `push`: Thumbs push each other without restoring their previous positions when dragged back.
|
|
151
|
+
* - `swap`: Thumbs swap places when dragged past each other.
|
|
152
|
+
*
|
|
153
|
+
* @default "none"
|
|
154
|
+
*/
|
|
155
|
+
thumbCollisionBehavior?: "none" | "push" | "swap" | undefined;
|
|
157
156
|
}
|
|
158
157
|
type PropsWithDefault = "dir" | "min" | "max" | "step" | "largeStep" | "orientation" | "defaultValue" | "origin" | "thumbAlignment" | "minStepsBetweenThumbs" | "thumbCollisionBehavior";
|
|
159
158
|
type Computed = Readonly<{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
159
|
+
/**
|
|
160
|
+
* @computed
|
|
161
|
+
* Whether the slider thumb has been measured
|
|
162
|
+
*/
|
|
163
|
+
hasMeasuredThumbSize: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* @computed
|
|
166
|
+
* Whether the slider is interactive
|
|
167
|
+
*/
|
|
168
|
+
isInteractive: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* @computed
|
|
171
|
+
* Whether the slider is vertical
|
|
172
|
+
*/
|
|
173
|
+
isVertical: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* @computed
|
|
176
|
+
* Whether the slider is horizontal
|
|
177
|
+
*/
|
|
178
|
+
isHorizontal: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* @computed
|
|
181
|
+
* Whether the slider is in RTL mode
|
|
182
|
+
*/
|
|
183
|
+
isRtl: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* @computed
|
|
186
|
+
* The percentage of the slider value relative to the slider min/max
|
|
187
|
+
*/
|
|
188
|
+
valuePercent: number[];
|
|
189
|
+
/**
|
|
190
|
+
* @computed
|
|
191
|
+
* Whether the slider is disabled
|
|
192
|
+
*/
|
|
193
|
+
isDisabled: boolean;
|
|
195
194
|
}>;
|
|
196
195
|
interface Context {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
196
|
+
/**
|
|
197
|
+
* The active index of the range slider. This represents
|
|
198
|
+
* the currently dragged/focused thumb.
|
|
199
|
+
*/
|
|
200
|
+
focusedIndex: number;
|
|
201
|
+
/**
|
|
202
|
+
* The value of the range slider
|
|
203
|
+
*/
|
|
204
|
+
value: number[];
|
|
205
|
+
/**
|
|
206
|
+
* The size of the slider thumbs
|
|
207
|
+
*/
|
|
208
|
+
thumbSize: Size | null;
|
|
210
209
|
}
|
|
211
|
-
interface SliderSchema {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
210
|
+
export interface SliderSchema {
|
|
211
|
+
state: "idle" | "dragging" | "focus";
|
|
212
|
+
props: RequiredBy<SliderProps, PropsWithDefault>;
|
|
213
|
+
context: Context;
|
|
214
|
+
refs: {
|
|
215
|
+
/**
|
|
216
|
+
* The offset from the thumb center when pointer down occurs.
|
|
217
|
+
* Used to maintain constant offset during drag.
|
|
218
|
+
*/
|
|
219
|
+
thumbDragOffset: {
|
|
220
|
+
x: number;
|
|
221
|
+
y: number;
|
|
222
|
+
} | null;
|
|
223
|
+
/**
|
|
224
|
+
* The values when a thumb drag starts.
|
|
225
|
+
* Used for swap collision behavior to determine swap direction.
|
|
226
|
+
*/
|
|
227
|
+
thumbDragStartValue: number[] | null;
|
|
228
|
+
};
|
|
229
|
+
computed: Computed;
|
|
230
|
+
event: EventObject;
|
|
231
|
+
action: string;
|
|
232
|
+
effect: string;
|
|
233
|
+
guard: string;
|
|
235
234
|
}
|
|
236
|
-
type SliderService = Service<SliderSchema>;
|
|
237
|
-
type SliderMachine = Machine<SliderSchema>;
|
|
235
|
+
export type SliderService = Service<SliderSchema>;
|
|
236
|
+
export type SliderMachine = Machine<SliderSchema>;
|
|
238
237
|
interface Size {
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
width: number;
|
|
239
|
+
height: number;
|
|
241
240
|
}
|
|
242
|
-
interface MarkerProps {
|
|
243
|
-
|
|
241
|
+
export interface MarkerProps {
|
|
242
|
+
value: number;
|
|
244
243
|
}
|
|
245
|
-
interface ThumbProps {
|
|
246
|
-
|
|
247
|
-
|
|
244
|
+
export interface ThumbProps {
|
|
245
|
+
index: number;
|
|
246
|
+
name?: string | undefined;
|
|
248
247
|
}
|
|
249
|
-
interface DraggingIndicatorProps {
|
|
250
|
-
|
|
248
|
+
export interface DraggingIndicatorProps {
|
|
249
|
+
index: number;
|
|
251
250
|
}
|
|
252
|
-
interface SliderApi<T extends PropTypes = PropTypes> {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
251
|
+
export interface SliderApi<T extends PropTypes = PropTypes> {
|
|
252
|
+
/**
|
|
253
|
+
* The value of the slider.
|
|
254
|
+
*/
|
|
255
|
+
value: number[];
|
|
256
|
+
/**
|
|
257
|
+
* Whether the slider is being dragged.
|
|
258
|
+
*/
|
|
259
|
+
dragging: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Whether the slider is focused.
|
|
262
|
+
*/
|
|
263
|
+
focused: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Function to set the value of the slider.
|
|
266
|
+
*/
|
|
267
|
+
setValue: (value: number[]) => void;
|
|
268
|
+
/**
|
|
269
|
+
* Returns the value of the thumb at the given index.
|
|
270
|
+
*/
|
|
271
|
+
getThumbValue: (index: number) => number;
|
|
272
|
+
/**
|
|
273
|
+
* Sets the value of the thumb at the given index.
|
|
274
|
+
*/
|
|
275
|
+
setThumbValue: (index: number, value: number) => void;
|
|
276
|
+
/**
|
|
277
|
+
* Returns the percent of the thumb at the given index.
|
|
278
|
+
*/
|
|
279
|
+
getValuePercent: (value: number) => number;
|
|
280
|
+
/**
|
|
281
|
+
* Returns the value of the thumb at the given percent.
|
|
282
|
+
*/
|
|
283
|
+
getPercentValue: (percent: number) => number;
|
|
284
|
+
/**
|
|
285
|
+
* Returns the percent of the thumb at the given index.
|
|
286
|
+
*/
|
|
287
|
+
getThumbPercent: (index: number) => number;
|
|
288
|
+
/**
|
|
289
|
+
* Sets the percent of the thumb at the given index.
|
|
290
|
+
*/
|
|
291
|
+
setThumbPercent: (index: number, percent: number) => void;
|
|
292
|
+
/**
|
|
293
|
+
* Returns the min value of the thumb at the given index.
|
|
294
|
+
*/
|
|
295
|
+
getThumbMin: (index: number) => number;
|
|
296
|
+
/**
|
|
297
|
+
* Returns the max value of the thumb at the given index.
|
|
298
|
+
*/
|
|
299
|
+
getThumbMax: (index: number) => number;
|
|
300
|
+
/**
|
|
301
|
+
* Function to increment the value of the slider at the given index.
|
|
302
|
+
*/
|
|
303
|
+
increment: (index: number) => void;
|
|
304
|
+
/**
|
|
305
|
+
* Function to decrement the value of the slider at the given index.
|
|
306
|
+
*/
|
|
307
|
+
decrement: (index: number) => void;
|
|
308
|
+
/**
|
|
309
|
+
* Function to focus the slider. This focuses the first thumb.
|
|
310
|
+
*/
|
|
311
|
+
focus: VoidFunction;
|
|
312
|
+
getLabelProps: () => T["label"];
|
|
313
|
+
getRootProps: () => T["element"];
|
|
314
|
+
getValueTextProps: () => T["element"];
|
|
315
|
+
getTrackProps: () => T["element"];
|
|
316
|
+
getThumbProps: (props: ThumbProps) => T["element"];
|
|
317
|
+
getHiddenInputProps: (props: ThumbProps) => T["input"];
|
|
318
|
+
getRangeProps: () => T["element"];
|
|
319
|
+
getControlProps: () => T["element"];
|
|
320
|
+
getMarkerGroupProps: () => T["element"];
|
|
321
|
+
getMarkerProps: (props: MarkerProps) => T["element"];
|
|
322
|
+
getDraggingIndicatorProps: (props: DraggingIndicatorProps) => T["element"];
|
|
324
323
|
}
|
|
325
|
-
|
|
326
|
-
export type { DraggingIndicatorProps, ElementIds, FocusChangeDetails, MarkerProps, SliderApi, SliderMachine, SliderProps, SliderSchema, SliderService, ThumbAlignment, ThumbCollisionBehavior, ThumbProps, ValueChangeDetails, ValueTextDetails };
|
|
324
|
+
export {};
|