"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_radio_group_context = require("./use-radio-group-context.cjs");
const require_use_radio_group = require("./use-radio-group.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/radio-group/radio-group-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var RadioGroupRoot = (0, react.forwardRef)((props, ref) => {
	const [useRadioGroupProps, localProps] = splitRootProps(props, [
		"defaultValue",
		"disabled",
		"form",
		"id",
		"ids",
		"invalid",
		"name",
		"onValueChange",
		"orientation",
		"readOnly",
		"required",
		"value"
	]);
	const radioGroup = require_use_radio_group.useRadioGroup(useRadioGroupProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(radioGroup.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_radio_group_context.RadioGroupProvider, {
		value: radioGroup,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
RadioGroupRoot.displayName = "RadioGroupRoot";
//#endregion
exports.RadioGroupRoot = RadioGroupRoot;
