@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 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
- labelProps: T["label"];
247
- rootProps: T["element"];
248
- valueTextProps: T["element"];
249
- trackProps: T["element"];
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
- rangeProps: T["element"];
253
- controlProps: T["element"];
254
- markerGroupProps: T["element"];
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" | "value" | "dir" | "id" | "getRootNode" | "form" | "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" | "value" | "dir" | "id" | "getRootNode" | "form" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize">];
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
- labelProps: T["label"];
247
- rootProps: T["element"];
248
- valueTextProps: T["element"];
249
- trackProps: T["element"];
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
- rangeProps: T["element"];
253
- controlProps: T["element"];
254
- markerGroupProps: T["element"];
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" | "value" | "dir" | "id" | "getRootNode" | "form" | "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" | "value" | "dir" | "id" | "getRootNode" | "form" | "name" | "disabled" | "step" | "aria-label" | "aria-labelledby" | "max" | "min" | "origin" | "orientation" | "ids" | "readOnly" | "onValueChange" | "onValueChangeEnd" | "onFocusChange" | "getAriaValueText" | "minStepsBetweenThumbs" | "thumbAlignment" | "thumbSize">];
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