import{j as a,a as e}from"./jsx-runtime-5BUNAZ9W.js";import{B as t}from"./button-N5G3CLUW.js";import{M as wn}from"./mail-ZyB8J0Wx.js";import"./index-4g5l5LRQ.js";import"./_commonjsHelpers-4gQjN7DL.js";import"./cn-466VSCev.js";import"./index-dNGI4_9C.js";import"./extends-dGVwEr9R.js";import"./index-polp_dyw.js";import"./createLucideIcon-SOGh5HrW.js";const En={title:"ui/Button",component:t,tags:["autodocs"],argTypes:{}},r={render:n=>a(t,{...n,children:"Base"}),args:{}},i={render:n=>a(t,{...n,children:"Shadow"}),args:{variant:"shadow"}},o={render:n=>a(t,{...n,children:"Outline"}),args:{variant:"outline"}},s={render:n=>a(t,{...n,children:"Ghost"}),args:{variant:"ghost"}},d={render:n=>a(t,{...n,children:"Link"}),args:{variant:"link"}},l={render:n=>a(t,{...n,children:"Loading"}),args:{variant:"loading"}},u={render:n=>a(t,{...n,children:"Disabled"}),args:{disabled:!0}},c={render:n=>e(t,{...n,children:[a(wn,{className:"mr-2 h-4 w-4"})," Login with Email Button"]})},h={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"default"}},g={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"destructive"}},B={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"error"}},v={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"warning"}},m={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"info"}},p={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"success"}},f={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"indigo"}},w={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"pink"}},k={render:n=>e("div",{className:"flex items-center space-x-2",children:[a(t,{...n,variant:"default",children:"Default"}),a(t,{...n,variant:"shadow",children:"Shadow"}),a(t,{...n,variant:"outline",children:"Outline"}),a(t,{...n,variant:"ghost",children:"Ghost"}),a(t,{...n,variant:"link",children:"Link"}),a(t,{...n,variant:"loading",children:"Loading"}),a(t,{...n,disabled:!0,children:"Disabled"})]}),args:{intent:"purple"}};var L,D,b;r.parameters={...r.parameters,docs:{...(L=r.parameters)==null?void 0:L.docs,source:{originalSource:`{
  render: args => <Button {...args}>Base</Button>,
  args: {}
}`,...(b=(D=r.parameters)==null?void 0:D.docs)==null?void 0:b.source}}};var S,x,O;i.parameters={...i.parameters,docs:{...(S=i.parameters)==null?void 0:S.docs,source:{originalSource:`{
  render: args => <Button {...args}>Shadow</Button>,
  args: {
    variant: "shadow"
  }
}`,...(O=(x=i.parameters)==null?void 0:x.docs)==null?void 0:O.source}}};var G,N,I;o.parameters={...o.parameters,docs:{...(G=o.parameters)==null?void 0:G.docs,source:{originalSource:`{
  render: args => <Button {...args}>Outline</Button>,
  args: {
    variant: "outline"
  }
}`,...(I=(N=o.parameters)==null?void 0:N.docs)==null?void 0:I.source}}};var E,P,W;s.parameters={...s.parameters,docs:{...(E=s.parameters)==null?void 0:E.docs,source:{originalSource:`{
  render: args => <Button {...args}>Ghost</Button>,
  args: {
    variant: "ghost"
  }
}`,...(W=(P=s.parameters)==null?void 0:P.docs)==null?void 0:W.source}}};var j,M,_;d.parameters={...d.parameters,docs:{...(j=d.parameters)==null?void 0:j.docs,source:{originalSource:`{
  render: args => <Button {...args}>Link</Button>,
  args: {
    variant: "link"
  }
}`,...(_=(M=d.parameters)==null?void 0:M.docs)==null?void 0:_.source}}};var y,T,q;l.parameters={...l.parameters,docs:{...(y=l.parameters)==null?void 0:y.docs,source:{originalSource:`{
  render: args => <Button {...args}>Loading</Button>,
  args: {
    variant: "loading"
  }
}`,...(q=(T=l.parameters)==null?void 0:T.docs)==null?void 0:q.source}}};var z,A,C;u.parameters={...u.parameters,docs:{...(z=u.parameters)==null?void 0:z.docs,source:{originalSource:`{
  render: args => <Button {...args}>Disabled</Button>,
  args: {
    disabled: true
  }
}`,...(C=(A=u.parameters)==null?void 0:A.docs)==null?void 0:C.source}}};var F,H,J;c.parameters={...c.parameters,docs:{...(F=c.parameters)==null?void 0:F.docs,source:{originalSource:`{
  render: args => <Button {...args}>
      <Mail className="mr-2 h-4 w-4" /> Login with Email Button
    </Button>
}`,...(J=(H=c.parameters)==null?void 0:H.docs)==null?void 0:J.source}}};var K,Q,R;h.parameters={...h.parameters,docs:{...(K=h.parameters)==null?void 0:K.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "default"
  }
}`,...(R=(Q=h.parameters)==null?void 0:Q.docs)==null?void 0:R.source}}};var U,V,X;g.parameters={...g.parameters,docs:{...(U=g.parameters)==null?void 0:U.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "destructive"
  }
}`,...(X=(V=g.parameters)==null?void 0:V.docs)==null?void 0:X.source}}};var Y,Z,$;B.parameters={...B.parameters,docs:{...(Y=B.parameters)==null?void 0:Y.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "error"
  }
}`,...($=(Z=B.parameters)==null?void 0:Z.docs)==null?void 0:$.source}}};var nn,tn,an;v.parameters={...v.parameters,docs:{...(nn=v.parameters)==null?void 0:nn.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "warning"
  }
}`,...(an=(tn=v.parameters)==null?void 0:tn.docs)==null?void 0:an.source}}};var en,rn,on;m.parameters={...m.parameters,docs:{...(en=m.parameters)==null?void 0:en.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "info"
  }
}`,...(on=(rn=m.parameters)==null?void 0:rn.docs)==null?void 0:on.source}}};var sn,dn,ln;p.parameters={...p.parameters,docs:{...(sn=p.parameters)==null?void 0:sn.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "success"
  }
}`,...(ln=(dn=p.parameters)==null?void 0:dn.docs)==null?void 0:ln.source}}};var un,cn,hn;f.parameters={...f.parameters,docs:{...(un=f.parameters)==null?void 0:un.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "indigo"
  }
}`,...(hn=(cn=f.parameters)==null?void 0:cn.docs)==null?void 0:hn.source}}};var gn,Bn,vn;w.parameters={...w.parameters,docs:{...(gn=w.parameters)==null?void 0:gn.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "pink"
  }
}`,...(vn=(Bn=w.parameters)==null?void 0:Bn.docs)==null?void 0:vn.source}}};var mn,pn,fn;k.parameters={...k.parameters,docs:{...(mn=k.parameters)==null?void 0:mn.docs,source:{originalSource:`{
  render: args => <div className="flex items-center space-x-2">
      <Button {...args} variant="default">
        Default
      </Button>
      <Button {...args} variant="shadow">
        Shadow
      </Button>
      <Button {...args} variant="outline">
        Outline
      </Button>
      <Button {...args} variant="ghost">
        Ghost
      </Button>
      <Button {...args} variant="link">
        Link
      </Button>
      <Button {...args} variant="loading">
        Loading
      </Button>
      <Button {...args} disabled>
        Disabled
      </Button>
    </div>,
  args: {
    intent: "purple"
  }
}`,...(fn=(pn=k.parameters)==null?void 0:pn.docs)==null?void 0:fn.source}}};const Pn=["Base","Shadow","Outline","Ghost","Link","Loading","Disabled","WithIcon","Default","Destructive","Error","Warning","Info","Success","Indigo","Pink","Purple"];export{r as Base,h as Default,g as Destructive,u as Disabled,B as Error,s as Ghost,f as Indigo,m as Info,d as Link,l as Loading,o as Outline,w as Pink,k as Purple,i as Shadow,p as Success,v as Warning,c as WithIcon,Pn as __namedExportsOrder,En as default};
