import { j as c } from "../../node_modules/react/jsx-runtime.js";
import { forwardRef as i } from "react";
import { cva as l } from "../../node_modules/class-variance-authority/dist/index.js";
import { cn as n } from "../../utils/index.js";
const u = l(["badge"], {
  variants: {
    variant: {
      success: "",
      warning: "",
      critical: ""
    },
    subtle: {
      true: ""
    }
  },
  compoundVariants: [
    {
      variant: "success",
      subtle: !1,
      class: "badge-success"
    },
    {
      variant: "warning",
      subtle: !1,
      class: "badge-warning"
    },
    {
      variant: "critical",
      subtle: !1,
      class: "badge-critical"
    },
    {
      variant: "success",
      subtle: !0,
      class: "badge-success-subtle"
    },
    {
      variant: "warning",
      subtle: !0,
      class: "badge-warning-subtle"
    },
    {
      variant: "critical",
      subtle: !0,
      class: "badge-critical-subtle"
    }
  ],
  defaultVariants: {
    variant: "success",
    subtle: !1
  }
}), f = i(
  ({ variant: a, subtle: s, className: t, ...e }, r) => /* @__PURE__ */ c.jsx(
    "span",
    {
      ref: r,
      className: n(u({ variant: a, subtle: s }), t),
      ...e
    }
  )
);
export {
  f as Badge
};
