import{Sasm,iasf,sask,nasd}from"./index-4ea67a12.js";import{easp,tash,casg,bas_,masv,hasy,iasu,jasw,kasC,pasz,nasB,qasj}from"./lifecycle-8571def4.js";functionV(o){lett,i,a,l,r;return{c(){t=p("button"),i=h(o[1]),this.h()},l(e){t=g(e,"BUTTON",{type:!0,class:!0,style:!0});varn=_(t);i=v(n,o[1]),n.forEach(y),this.h()},h(){u(t,"type","button"),u(t,"class",a=["storybook-button",`storybook-button--${o[0]}`,o[3]].join(" ")),u(t,"style",o[2])},m(e,n){w(e,t,n),C(t,i),l||(r=z(t,"click",o[6]),l=!0)},p(e,[n]){n&2&&B(i,e[1]),n&9&&a!==(a=["storybook-button",`storybook-button--${e[0]}`,e[3]].join(" "))&&u(t,"class",a),n&4&&u(t,"style",e[2])},i:d,o:d,d(e){e&&y(t),l=!1,r()}}}functionq(o,t,i){leta,l,{primary:r=!1}=t,{backgroundColor:e=void0}=t,{size:n="medium"}=t,{label:c=""}=t;functionb(s){j.call(this,o,s)}returno.$$set=s=>{"primary"ins&&i(4,r=s.primary),"backgroundColor"ins&&i(5,e=s.backgroundColor),"size"ins&&i(0,n=s.size),"label"ins&&i(1,c=s.label)},o.$$.update=()=>{o.$$.dirty&16&&i(3,a=r?"storybook-button--primary":"storybook-button--secondary"),o.$$.dirty&32&&i(2,l=e?`background-color: ${e}`:"")},[n,c,l,a,r,e,b]}classSextendsm{constructor(t){super(),f(this,t,q,V,k,{primary:4,backgroundColor:5,size:0,label:1})}}S.__docgen={version:3,name:"Button.svelte",data:[{keywords:[],visibility:"public",description:"Is this the principal call to action on the page?",name:"primary",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"boolean",type:"boolean"},defaultValue:!1},{keywords:[],visibility:"public",description:"What background color to use",name:"backgroundColor",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{keywords:[],visibility:"public",description:"How large should the button be?",name:"size",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"medium"},{keywords:[],visibility:"public",description:"Button contents",name:"label",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[{keywords:[],visibility:"public",description:"",name:"click",parent:"button",modificators:[],locations:null}],slots:[],refs:[]};export{SasB};