import { jsx as i } from "react/jsx-runtime";
import { c as g } from "../../../index-UgeK3A8s.js";
import { cn as l } from "../../../lib/utils.js";
const c = g(
  "absolute rounded-full ring-background",
  {
    variants: {
      variant: {
        warning: "bg-warning",
        success: "bg-success",
        error: "bg-destructive",
        info: "bg-primary",
        neutral: "bg-muted-foreground"
      },
      size: {
        sm: "size-2 ring-1",
        lg: "size-2.5 ring-2"
      },
      position: {
        "top-right": "top-0 right-0",
        "top-left": "top-0 left-0",
        "bottom-right": "right-0 bottom-0",
        "bottom-left": "bottom-0 left-0"
      }
    },
    compoundVariants: [
      { size: "lg", position: "top-right", className: "-top-0.5 -right-0.5" },
      { size: "lg", position: "top-left", className: "-top-0.5 -left-0.5" },
      {
        size: "lg",
        position: "bottom-right",
        className: "-right-0.5 -bottom-0.5"
      },
      {
        size: "lg",
        position: "bottom-left",
        className: "-bottom-0.5 -left-0.5"
      }
    ],
    defaultVariants: {
      variant: "warning",
      size: "sm",
      position: "top-right"
    }
  }
), m = {
  warning: "Warning notification",
  success: "Success notification",
  error: "Error notification",
  info: "Info notification",
  neutral: "Notification"
};
function b({
  variant: o = "warning",
  size: n,
  position: r,
  ariaLabel: a,
  decorative: t = !0,
  className: s
}) {
  const e = a ?? m[o];
  return /* @__PURE__ */ i(
    "span",
    {
      "aria-hidden": t,
      className: l(
        c({ variant: o, size: n, position: r }),
        s
      ),
      role: t ? void 0 : "status",
      children: !t && /* @__PURE__ */ i("span", { className: "sr-only", children: e })
    }
  );
}
export {
  b as AvatarNotificationBadge,
  c as avatarBadgeVariants
};
