"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_item_context = require("./use-radio-group-item-context.cjs");
const require_use_radio_group_item_props_context = require("./use-radio-group-item-props-context.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-item.tsx
var splitItemProps = require_create_split_props.createSplitProps();
var RadioGroupItem = (0, react.forwardRef)((props, ref) => {
	const [itemProps, localProps] = splitItemProps(props, [
		"value",
		"disabled",
		"invalid"
	]);
	const radioGroup = require_use_radio_group_context.useRadioGroupContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(radioGroup.getItemProps(itemProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_radio_group_item_context.RadioGroupItemProvider, {
		value: radioGroup.getItemState(itemProps),
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_radio_group_item_props_context.RadioGroupItemPropsProvider, {
			value: itemProps,
			children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.label, {
				...mergedProps,
				ref
			})
		})
	});
});
RadioGroupItem.displayName = "RadioGroupItem";
//#endregion
exports.RadioGroupItem = RadioGroupItem;
