import{j as r,a as i}from"./jsx-runtime-5BUNAZ9W.js";import{c as m}from"./cn-466VSCev.js";import{c as F}from"./index-polp_dyw.js";import{r as A}from"./index-4g5l5LRQ.js";import{c as v}from"./createLucideIcon-SOGh5HrW.js";import"./_commonjsHelpers-4gQjN7DL.js";const R=v("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),z=v("FileWarning",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),B=v("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),H=F("relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-text",{variants:{variant:{default:""},intent:{default:"bg-background text-text",destructive:"border-border-destructive text-text-destructive [&>svg]:text-text-destructive",error:"border-border-error text-text-error [&>svg]:text-text-error",warning:"border-border-warning text-text-warning [&>svg]:text-text-warning",info:"border-border-info text-text-info [&>svg]:text-text-info",success:"border-border-success text-text-success [&>svg]:text-text-success"}},defaultVariants:{variant:"default",intent:"default"}}),t=A.forwardRef(({className:e,variant:a,intent:c,...q},C)=>r("div",{ref:C,role:"alert",className:m(H({variant:a,intent:c}),e),"data-variant":a??"default",...q}));t.displayName="Alert";const n=A.forwardRef(({className:e,...a},c)=>r("h5",{ref:c,className:m("mb-1 font-medium leading-none tracking-tight",e),...a}));n.displayName="AlertTitle";const s=A.forwardRef(({className:e,...a},c)=>r("div",{ref:c,className:m("text-sm [&_p]:leading-relaxed",e),...a}));s.displayName="AlertDescription";try{t.displayName="Alert",t.__docgenInfo={description:"",displayName:"Alert",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:'"default"'}},intent:{defaultValue:null,description:"",name:"intent",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"destructive"'},{value:'"error"'},{value:'"warning"'},{value:'"info"'},{value:'"success"'}]}}}}}catch{}const P={title:"ui/Alert",component:t,tags:["autodocs"],argTypes:{}},l={render:e=>i(t,{...e,children:[r(n,{children:"Title"}),r(s,{children:"Description"})]}),args:{}},o={render:e=>i(t,{...e,children:[r(B,{className:"h-4 w-4"}),r(n,{children:"Destructive"}),r(s,{children:"Destructive Alert Description"})]}),args:{intent:"destructive"}},d={render:e=>i(t,{...e,children:[r(R,{className:"h-4 w-4"}),r(n,{children:"Error"}),r(s,{children:"Error Alert Description"})]}),args:{intent:"error"}},p={render:e=>i(t,{...e,children:[r(z,{className:"h-4 w-4"}),r(n,{children:"Warning"}),r(s,{children:"Warning Alert Description"})]}),args:{intent:"warning"}},u={render:e=>i(t,{...e,children:[r(n,{children:"Info"}),r(s,{children:"Info Alert Description"})]}),args:{intent:"info"}},g={render:e=>i(t,{...e,children:[r(n,{children:"Success"}),r(s,{children:"Success Alert Description"})]}),args:{intent:"success"}};var f,x,h;l.parameters={...l.parameters,docs:{...(f=l.parameters)==null?void 0:f.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <AlertTitle>Title</AlertTitle>
      <AlertDescription>Description</AlertDescription>
    </Alert>,
  args: {}
}`,...(h=(x=l.parameters)==null?void 0:x.docs)==null?void 0:h.source}}};var y,D,T;o.parameters={...o.parameters,docs:{...(y=o.parameters)==null?void 0:y.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <Trash2Icon className="h-4 w-4" />
      <AlertTitle>Destructive</AlertTitle>
      <AlertDescription>Destructive Alert Description</AlertDescription>
    </Alert>,
  args: {
    intent: "destructive"
  }
}`,...(T=(D=o.parameters)==null?void 0:D.docs)==null?void 0:T.source}}};var w,b,k;d.parameters={...d.parameters,docs:{...(w=d.parameters)==null?void 0:w.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <AlertCircle className="h-4 w-4" />
      <AlertTitle>Error</AlertTitle>
      <AlertDescription>Error Alert Description</AlertDescription>
    </Alert>,
  args: {
    intent: "error"
  }
}`,...(k=(b=d.parameters)==null?void 0:b.docs)==null?void 0:k.source}}};var N,S,_;p.parameters={...p.parameters,docs:{...(N=p.parameters)==null?void 0:N.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <FileWarning className="h-4 w-4" />
      <AlertTitle>Warning</AlertTitle>
      <AlertDescription>Warning Alert Description</AlertDescription>
    </Alert>,
  args: {
    intent: "warning"
  }
}`,...(_=(S=p.parameters)==null?void 0:S.docs)==null?void 0:_.source}}};var I,W,E;u.parameters={...u.parameters,docs:{...(I=u.parameters)==null?void 0:I.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <AlertTitle>Info</AlertTitle>
      <AlertDescription>Info Alert Description</AlertDescription>
    </Alert>,
  args: {
    intent: "info"
  }
}`,...(E=(W=u.parameters)==null?void 0:W.docs)==null?void 0:E.source}}};var V,M,j;g.parameters={...g.parameters,docs:{...(V=g.parameters)==null?void 0:V.docs,source:{originalSource:`{
  render: args => <Alert {...args}>
      <AlertTitle>Success</AlertTitle>
      <AlertDescription>Success Alert Description</AlertDescription>
    </Alert>,
  args: {
    intent: "success"
  }
}`,...(j=(M=g.parameters)==null?void 0:M.docs)==null?void 0:j.source}}};const Q=["Base","Destructive","Error","Warning","Info","Success"];export{l as Base,o as Destructive,d as Error,u as Info,g as Success,p as Warning,Q as __namedExportsOrder,P as default};
