import{j as p,F as G}from"./jsx-runtime-5BUNAZ9W.js";import{A as r}from"./index-5y8TP4qj.js";import{B as J}from"./button-N5G3CLUW.js";import"./index-4g5l5LRQ.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./index-zaNpaTzt.js";import"./cn-466VSCev.js";import"./index-dNGI4_9C.js";import"./extends-dGVwEr9R.js";import"./index-polp_dyw.js";import"./createLucideIcon-SOGh5HrW.js";const K=({message:s,data:a,variant:z="default"})=>p(G,{children:p(J,{variant:"outline",onClick:()=>{switch(z){case"default":r(s,a);break;case"success":r.success(s,a);break;case"error":r.error(s,a);break;case"loading":r.loading(s,a);break;case"warning":r.warning(s,a);break;case"info":r.info(s,a);break}},children:"Show Toast"})}),as={title:"ui/Toast",component:K,tags:["autodocs"],argTypes:{}},e={args:{message:"Hello World"}},n={args:{message:"Hello World",data:{description:"This is a description."}}},o={args:{message:"There was a problem with your request.",variant:"error"}},i={args:{message:"Your request was successful.",variant:"success",data:{description:"This is a description."}}},c={args:{message:"This is an informational message.",variant:"info"}},t={args:{message:"This is a warning message.",variant:"warning"}},m={args:{message:"Loading...",variant:"loading"}},g={args:{message:"This is an informational message.",variant:"success",data:{action:{label:"Action",onClick:()=>{console.info("Action clicked")}},duration:4e5}}},l={args:{message:"This is an informational message.",variant:"info",data:{cancel:{label:"Cancel"}}}};var d,u,f;e.parameters={...e.parameters,docs:{...(d=e.parameters)==null?void 0:d.docs,source:{originalSource:`{
  args: {
    message: "Hello World"
  }
}`,...(f=(u=e.parameters)==null?void 0:u.docs)==null?void 0:f.source}}};var h,T,v;n.parameters={...n.parameters,docs:{...(h=n.parameters)==null?void 0:h.docs,source:{originalSource:`{
  args: {
    message: "Hello World",
    data: {
      description: "This is a description."
    }
  }
}`,...(v=(T=n.parameters)==null?void 0:T.docs)==null?void 0:v.source}}};var w,S,b;o.parameters={...o.parameters,docs:{...(w=o.parameters)==null?void 0:w.docs,source:{originalSource:`{
  args: {
    message: "There was a problem with your request.",
    variant: "error"
  }
}`,...(b=(S=o.parameters)==null?void 0:S.docs)==null?void 0:b.source}}};var k,A,C;i.parameters={...i.parameters,docs:{...(k=i.parameters)==null?void 0:k.docs,source:{originalSource:`{
  args: {
    message: "Your request was successful.",
    variant: "success",
    data: {
      description: "This is a description."
    }
  }
}`,...(C=(A=i.parameters)==null?void 0:A.docs)==null?void 0:C.source}}};var W,q,H;c.parameters={...c.parameters,docs:{...(W=c.parameters)==null?void 0:W.docs,source:{originalSource:`{
  args: {
    message: "This is an informational message.",
    variant: "info"
  }
}`,...(H=(q=c.parameters)==null?void 0:q.docs)==null?void 0:H.source}}};var L,x,y;t.parameters={...t.parameters,docs:{...(L=t.parameters)==null?void 0:L.docs,source:{originalSource:`{
  args: {
    message: "This is a warning message.",
    variant: "warning"
  }
}`,...(y=(x=t.parameters)==null?void 0:x.docs)==null?void 0:y.source}}};var D,E,j;m.parameters={...m.parameters,docs:{...(D=m.parameters)==null?void 0:D.docs,source:{originalSource:`{
  args: {
    message: "Loading...",
    variant: "loading"
  }
}`,...(j=(E=m.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};var B,F,I;g.parameters={...g.parameters,docs:{...(B=g.parameters)==null?void 0:B.docs,source:{originalSource:`{
  args: {
    message: "This is an informational message.",
    variant: "success",
    data: {
      action: {
        label: "Action",
        onClick: () => {
          console.info("Action clicked");
        }
      },
      duration: 400000
    }
  }
}`,...(I=(F=g.parameters)==null?void 0:F.docs)==null?void 0:I.source}}};var Y,_,O;l.parameters={...l.parameters,docs:{...(Y=l.parameters)==null?void 0:Y.docs,source:{originalSource:`{
  args: {
    message: "This is an informational message.",
    variant: "info",
    data: {
      cancel: {
        label: "Cancel"
      }
    }
  }
}`,...(O=(_=l.parameters)==null?void 0:_.docs)==null?void 0:O.source}}};const rs=["Simple","Description","Error","Success","Info","Warning","Loading","Action","Close"];export{g as Action,l as Close,n as Description,o as Error,c as Info,m as Loading,e as Simple,i as Success,t as Warning,rs as __namedExportsOrder,as as default};
