import { n as cn } from "./utils-DXzSsU1e.js";
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
import { reactiveOmit } from "@vueuse/core";
import { RadioGroupIndicator, RadioGroupItem, RadioGroupRoot, useForwardProps, useForwardPropsEmits } from "reka-ui";
import { Circle } from "@lucide/vue";
//#endregion
//#region src/components/ui/radio-group/RadioGroup.vue
var RadioGroup_default = /* @__PURE__ */ defineComponent({
	__name: "RadioGroup",
	props: {
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		modelValue: {},
		defaultValue: {},
		disabled: { type: Boolean },
		orientation: {},
		dir: {},
		loop: { type: Boolean },
		asChild: { type: Boolean },
		as: {},
		name: {},
		required: { type: Boolean }
	},
	emits: ["update:modelValue"],
	setup(__props, { emit: __emit }) {
		const props = __props;
		const emits = __emit;
		const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps(unref(forwarded), { class: unref(cn)("grid gap-2", props.class) }), {
				default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
				_: 3
			}, 16, ["class"]);
		};
	}
});
//#endregion
//#region src/components/ui/radio-group/RadioGroupItem.vue
var RadioGroupItem_default = /* @__PURE__ */ defineComponent({
	__name: "RadioGroupItem",
	props: {
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		id: {},
		value: {},
		disabled: { type: Boolean },
		asChild: { type: Boolean },
		as: {},
		name: {},
		required: { type: Boolean }
	},
	setup(__props) {
		const props = __props;
		const forwardedProps = useForwardProps(reactiveOmit(props, "class"));
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(RadioGroupItem), mergeProps(unref(forwardedProps), { class: unref(cn)("peer aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", props.class) }), {
				default: withCtx(() => [createVNode(unref(RadioGroupIndicator), { class: "flex items-center justify-center" }, {
					default: withCtx(() => [createVNode(unref(Circle), { class: "h-2.5 w-2.5 fill-current text-current" })]),
					_: 1
				})]),
				_: 1
			}, 16, ["class"]);
		};
	}
});
//#endregion
export { RadioGroup_default as n, RadioGroupItem_default as t };

//# sourceMappingURL=radio-group-CGiUFEWB.js.map