import { n as cn } from "./utils-DXzSsU1e.js";
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
import { Primitive } from "reka-ui";
import { cva } from "class-variance-authority";
//#endregion
//#region src/components/ui/badge/Badge.vue
var Badge_default = /* @__PURE__ */ defineComponent({
	__name: "Badge",
	props: {
		variant: {},
		size: {},
		class: { type: [
			Boolean,
			null,
			String,
			Object,
			Array
		] },
		asChild: { type: Boolean },
		as: { default: "div" }
	},
	setup(__props) {
		const props = __props;
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(Primitive), {
				as: __props.as,
				"as-child": __props.asChild,
				class: normalizeClass(unref(cn)(unref(badgeVariants)({
					variant: __props.variant,
					size: __props.size
				}), props.class))
			}, {
				default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
				_: 3
			}, 8, [
				"as",
				"as-child",
				"class"
			]);
		};
	}
});
//#endregion
//#region src/components/ui/badge/index.ts
var badgeVariants = cva("inline-flex items-center gap-1 rounded-full border font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:pointer-events-none [&_svg]:size-3 [&_svg]:shrink-0", {
	variants: {
		variant: {
			default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
			secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
			destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
			outline: "text-foreground",
			success: "border-transparent bg-success text-success-foreground hover:bg-success/80",
			warning: "border-transparent bg-warning text-warning-foreground hover:bg-warning/80",
			info: "border-transparent bg-info text-info-foreground hover:bg-info/80"
		},
		size: {
			default: "px-2.5 py-0.5 text-xs",
			sm: "px-2 py-0 text-[10px]",
			lg: "px-3 py-1 text-sm"
		}
	},
	defaultVariants: {
		variant: "default",
		size: "default"
	}
});
//#endregion
export { Badge_default as n, badgeVariants as t };

//# sourceMappingURL=badge-BbQrSqE-.js.map