import { n as cn } from "./utils-DXzSsU1e.js";
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
import { reactiveOmit } from "@vueuse/core";
import { Label } from "reka-ui";
import { cva } from "class-variance-authority";
//#endregion
//#region src/components/ui/label/Label.vue
var Label_default = /* @__PURE__ */ defineComponent({
	__name: "Label",
	props: {
		required: {},
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		for: {},
		asChild: { type: Boolean },
		as: {}
	},
	setup(__props) {
		const props = __props;
		const delegatedProps = reactiveOmit(props, "class", "required");
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(Label), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(labelVariants)({ required: __props.required }), props.class) }), {
				default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
				_: 3
			}, 16, ["class"]);
		};
	}
});
//#endregion
//#region src/components/ui/label/index.ts
var labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", {
	variants: { required: {
		true: "after:ml-0.5 after:text-destructive after:content-['*']",
		false: ""
	} },
	defaultVariants: { required: false }
});
//#endregion
export { Label_default as n, labelVariants as t };

//# sourceMappingURL=label-C5K3zowH.js.map