"use client";
import { ark } from "../factory.js";
import { useLocaleContext } from "../../providers/locale/use-locale-context.js";
import { useColorPickerContext } from "./use-color-picker-context.js";
import { useColorPickerChannelPropsContext } from "./use-color-picker-channel-props-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-value-text.tsx
var ColorPickerChannelSliderValueText = forwardRef((props, ref) => {
	const { locale } = useLocaleContext();
	const colorPicker = useColorPickerContext();
	const channelProps = useColorPickerChannelPropsContext();
	const mergedProps = mergeProps(colorPicker.getChannelSliderValueTextProps(channelProps), props);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref,
		children: props.children || colorPicker.getChannelValueText(channelProps.channel, locale)
	});
});
ColorPickerChannelSliderValueText.displayName = "ColorPickerChannelSliderValueText";
//#endregion
export { ColorPickerChannelSliderValueText };
