{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notice-alert",
  "title": "Notice Alert",
  "description": "A restrained alert wrapper with info, success, warning, and destructive tones.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "alert"
  ],
  "files": [
    {
      "path": "registry/corr/components/notice-alert.tsx",
      "content": "import { AlertCircle, CheckCircle2, Info, TriangleAlert } from \"lucide-react\"\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\"\nimport { cn } from \"@/lib/utils\"\n\nexport type NoticeAlertTone =\n  | \"primary\"\n  | \"info\"\n  | \"success\"\n  | \"warning\"\n  | \"destructive\"\n\nexport function NoticeAlert({\n  title,\n  description,\n  tone = \"info\",\n  className,\n}: {\n  title: string\n  description?: string\n  tone?: NoticeAlertTone\n  className?: string\n}) {\n  const Icon =\n    tone === \"success\"\n      ? CheckCircle2\n      : tone === \"warning\"\n        ? TriangleAlert\n        : tone === \"destructive\"\n          ? AlertCircle\n          : Info\n\n  return (\n    <Alert\n      variant={tone === \"destructive\" ? \"destructive\" : \"default\"}\n      className={cn(\n        \"items-start gap-3 rounded-md border bg-background py-2.5 pb-2 shadow-none\",\n        tone === \"primary\" && \"border-primary/25 bg-primary/10 text-primary\",\n        tone === \"success\" &&\n          \"border-emerald-500/25 bg-emerald-500/10 text-emerald-950 dark:text-emerald-100\",\n        tone === \"warning\" &&\n          \"border-amber-500/25 bg-amber-500/10 text-amber-950 dark:text-amber-100\",\n        tone === \"info\" &&\n          \"border-blue-500/25 bg-blue-500/10 text-blue-950 dark:text-blue-100\",\n        tone === \"destructive\" &&\n          \"border-destructive/35 bg-destructive/10 text-destructive dark:bg-destructive/15\",\n        className\n      )}\n    >\n      <Icon className=\"size-4\" />\n      <div className=\"min-w-0\">\n        <AlertTitle>{title}</AlertTitle>\n        {description ? (\n          <AlertDescription>{description}</AlertDescription>\n        ) : null}\n      </div>\n    </Alert>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}