import{t as e}from"./circle-check-BqIK9ymt.js";import{t}from"./circle-x-CwRaDtL5.js";import{t as n}from"./info-CKXMLsCK.js";import{t as r}from"./triangle-alert-_Trdz8l6.js";import{_ as i}from"./vendor-flow-IzlrcDx6.js";import{Sn as a,rn as o}from"./index-HkVQGc9M.js";var s=i(),c={info:{bg:`bg-blue-50 dark:bg-blue-950/40`,border:`border-blue-200 dark:border-blue-900`,icon:n,iconColor:`text-blue-600`},success:{bg:`bg-emerald-50 dark:bg-emerald-950/40`,border:`border-emerald-200 dark:border-emerald-900`,icon:e,iconColor:`text-emerald-600`},warning:{bg:`bg-amber-50 dark:bg-amber-950/40`,border:`border-amber-200 dark:border-amber-900`,icon:r,iconColor:`text-amber-600`},error:{bg:`bg-red-50 dark:bg-red-950/40`,border:`border-red-200 dark:border-red-900`,icon:t,iconColor:`text-red-600`}};function l({variant:e=`info`,title:t,children:n,dismissible:r,onDismiss:i,className:l}){let u=c[e],d=u.icon;return(0,s.jsxs)(`div`,{className:o(`flex gap-3 rounded-lg border px-4 py-3`,u.bg,u.border,l),role:`alert`,children:[(0,s.jsx)(d,{className:o(`w-5 h-5 flex-shrink-0 mt-0.5`,u.iconColor)}),(0,s.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[t&&(0,s.jsx)(`h4`,{className:`text-sm font-semibold text-[var(--color-text-primary)] mb-0.5`,children:t}),(0,s.jsx)(`div`,{className:`text-sm text-[var(--color-text-secondary)]`,children:n})]}),r&&i&&(0,s.jsx)(`button`,{onClick:i,className:`flex-shrink-0 p-1 rounded hover:bg-black/5 transition-colors`,"aria-label":`Dismiss`,children:(0,s.jsx)(a,{className:`w-4 h-4 text-[var(--color-text-muted)]`})})]})}export{l as t};