import{aasm,nasc}from"./utils-09ff0c0e.js";import{aasf,task,basp,fash,g,dasy,hasu,ias_,jasv,uasw,lasC,vasz}from"./lifecycle-9898a056.js";import{SasB,iasj}from"./index-d94d5794.js";functionV(o){lett,i,s,l,r;return{c(){t=f("button"),i=k(o[1]),this.h()},l(e){t=p(e,"BUTTON",{type:!0,class:!0,style:!0});varn=h(t);i=g(n,o[1]),n.forEach(y),this.h()},h(){u(t,"type","button"),u(t,"class",s=["storybook-button",`storybook-button--${o[0]}`,o[3]].join(" ")),u(t,"style",o[2])},m(e,n){_(e,t,n),v(t,i),l||(r=w(t,"click",o[6]),l=!0)},p(e,[n]){n&2&&C(i,e[1]),n&9&&s!==(s=["storybook-button",`storybook-button--${e[0]}`,e[3]].join(" "))&&u(t,"class",s),n&4&&u(t,"style",e[2])},i:c,o:c,d(e){e&&y(t),l=!1,r()}}}functionS(o,t,i){lets,l,{primary:r=!1}=t,{backgroundColor:e=void0}=t,{size:n="medium"}=t,{label:d=""}=t;functionb(a){z.call(this,o,a)}returno.$$set=a=>{"primary"ina&&i(4,r=a.primary),"backgroundColor"ina&&i(5,e=a.backgroundColor),"size"ina&&i(0,n=a.size),"label"ina&&i(1,d=a.label)},o.$$.update=()=>{o.$$.dirty&16&&i(3,s=r?"storybook-button--primary":"storybook-button--secondary"),o.$$.dirty&32&&i(2,l=e?`background-color: ${e}`:"")},[n,d,l,s,r,e,b]}classTextendsB{constructor(t){super(),j(this,t,S,V,m,{primary:4,backgroundColor:5,size:0,label:1})}}T.__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{TasB};