import { type HTMLAttributes, type ReactElement, type Ref } from "react";
import { sliderTrack } from "./sliderStyles.js";
import {
type ClosestThumbEventHandlersOptions,
type ThumbOffsetsOptions,
getClosestThumbEventHandlers,
getThumbOffsets,
} from "./sliderUtils.js";
/**
* @internal
* @since 2.5.0
* @since 6.0.0 Updated to be internal only.
*/
export interface SliderTrackProps
extends
HTMLAttributes,
ClosestThumbEventHandlersOptions,
ThumbOffsetsOptions {
ref?: Ref;
animate: boolean;
disabled: boolean;
}
/**
* @internal
* @since 2.5.0
* @since 6.0.0 Updated to be internal only.
*/
export function SliderTrack(props: SliderTrackProps): ReactElement {
const {
ref,
style,
className,
animate,
vertical,
disabled,
min,
max,
thumb1Ref,
thumb1Value,
thumb1Dragging,
thumb1DragPercentage,
thumb1OnMouseUp,
thumb1OnMouseDown,
thumb1OnMouseMove,
thumb1OnTouchStart,
thumb1OnTouchMove,
thumb2Ref,
thumb2Value,
thumb2Dragging,
thumb2DragPercentage,
thumb2OnMouseUp,
thumb2OnMouseDown,
thumb2OnMouseMove,
thumb2OnTouchStart,
thumb2OnTouchMove,
isRangeSlider,
children,
...remaining
} = props;
return (
{children}
);
}