"use client";
import { ark } from "../factory.js";
import { useNumberInputContext } from "./use-number-input-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/number-input/number-input-value-text.tsx
var NumberInputValueText = forwardRef((props, ref) => {
	const { children, ...localProps } = props;
	const numberInput = useNumberInputContext();
	const mergedProps = mergeProps(numberInput.getValueTextProps(), localProps);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref,
		children: children || numberInput.value
	});
});
NumberInputValueText.displayName = "NumberInputValueText";
//#endregion
export { NumberInputValueText };
