"use client";
import { ark } from "../factory.js";
import { useColorPickerContext } from "./use-color-picker-context.js";
import { useColorPickerChannelPropsContext } from "./use-color-picker-channel-props-context.js";
import { useColorPickerFormatPropsContext } from "./use-color-picker-format-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/color-picker/color-picker-channel-slider-thumb.tsx
var ColorPickerChannelSliderThumb = forwardRef((props, ref) => {
	const colorPicker = useColorPickerContext();
	const channelProps = useColorPickerChannelPropsContext();
	const formatProps = useColorPickerFormatPropsContext();
	const channelSliderProps = {
		...channelProps,
		...formatProps
	};
	const mergedProps = mergeProps(colorPicker.getChannelSliderThumbProps(channelSliderProps), props);
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref
	});
});
ColorPickerChannelSliderThumb.displayName = "ColorPickerChannelSliderThumb";
//#endregion
export { ColorPickerChannelSliderThumb };
