@zag-js/slider 0.53.0 → 0.55.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 +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +871 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +851 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
- package/src/slider.connect.ts +98 -84
- package/src/slider.types.ts +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -243,15 +243,15 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
243
243
|
* Function to focus the slider. This focuses the first thumb.
|
|
244
244
|
*/
|
|
245
245
|
focus(): void;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
getLabelProps(): T["label"];
|
|
247
|
+
getRootProps(): T["element"];
|
|
248
|
+
getValueTextProps(): T["element"];
|
|
249
|
+
getTrackProps(): T["element"];
|
|
250
250
|
getThumbProps(props: ThumbProps): T["element"];
|
|
251
251
|
getHiddenInputProps(props: ThumbProps): T["input"];
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
getRangeProps(): T["element"];
|
|
253
|
+
getControlProps(): T["element"];
|
|
254
|
+
getMarkerGroupProps(): T["element"];
|
|
255
255
|
getMarkerProps(props: MarkerProps): T["element"];
|
|
256
256
|
}
|
|
257
257
|
|
|
@@ -259,8 +259,8 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
259
259
|
|
|
260
260
|
declare function machine(userContext: UserDefinedContext): _zag_js_core.Machine<MachineContext, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
|
|
261
261
|
|
|
262
|
-
declare const props: ("invalid" | "
|
|
263
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "invalid" | "
|
|
262
|
+
declare const props: ("invalid" | "form" | "value" | "dir" | "id" | "getRootNode" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize")[];
|
|
263
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "invalid" | "form" | "value" | "dir" | "id" | "getRootNode" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize">];
|
|
264
264
|
declare const thumbProps: (keyof ThumbProps)[];
|
|
265
265
|
declare const splitThumbProps: <Props extends ThumbProps>(props: Props) => [ThumbProps, Omit<Props, keyof ThumbProps>];
|
|
266
266
|
|
package/dist/index.d.ts
CHANGED
|
@@ -243,15 +243,15 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
243
243
|
* Function to focus the slider. This focuses the first thumb.
|
|
244
244
|
*/
|
|
245
245
|
focus(): void;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
getLabelProps(): T["label"];
|
|
247
|
+
getRootProps(): T["element"];
|
|
248
|
+
getValueTextProps(): T["element"];
|
|
249
|
+
getTrackProps(): T["element"];
|
|
250
250
|
getThumbProps(props: ThumbProps): T["element"];
|
|
251
251
|
getHiddenInputProps(props: ThumbProps): T["input"];
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
getRangeProps(): T["element"];
|
|
253
|
+
getControlProps(): T["element"];
|
|
254
|
+
getMarkerGroupProps(): T["element"];
|
|
255
255
|
getMarkerProps(props: MarkerProps): T["element"];
|
|
256
256
|
}
|
|
257
257
|
|
|
@@ -259,8 +259,8 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
259
259
|
|
|
260
260
|
declare function machine(userContext: UserDefinedContext): _zag_js_core.Machine<MachineContext, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
|
|
261
261
|
|
|
262
|
-
declare const props: ("invalid" | "
|
|
263
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "invalid" | "
|
|
262
|
+
declare const props: ("invalid" | "form" | "value" | "dir" | "id" | "getRootNode" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize")[];
|
|
263
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "invalid" | "form" | "value" | "dir" | "id" | "getRootNode" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize">];
|
|
264
264
|
declare const thumbProps: (keyof ThumbProps)[];
|
|
265
265
|
declare const splitThumbProps: <Props extends ThumbProps>(props: Props) => [ThumbProps, Omit<Props, keyof ThumbProps>];
|
|
266
266
|
|