"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { RadioGroupProvider } from "./use-radio-group-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/radio-group/radio-group-root-provider.tsx
var splitRootProviderProps = createSplitProps();
var RadioGroupRootProvider = forwardRef((props, ref) => {
	const [{ value: radioGroup }, localProps] = splitRootProviderProps(props, ["value"]);
	const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);
	return /* @__PURE__ */ jsx(RadioGroupProvider, {
		value: radioGroup,
		children: /* @__PURE__ */ jsx(ark.div, {
			...mergedProps,
			ref
		})
	});
});
RadioGroupRootProvider.displayName = "RadioGroupRootProvider";
//#endregion
export { RadioGroupRootProvider };
