import{n}from"./plugin-vue2_normalizer.000ba15c.js";const l="items-center justify-center font-medium capitalize rounded select-none focus:outline-none",i="flex w-full text-body",r="inline-flex text-small",a={primary:"bg-primary text-on-primary shadow",danger:"bg-danger text-on-danger shadow",secondary:"bg-surface-2 text-high-emphasis"},o={sm:"h-8 px-2",md:"h-10 px-5"},d={props:{as:{default:()=>"button"},href:{default:()=>null},block:{type:Boolean,default:()=>!1},variant:{type:String,default:()=>"primary",validator:s=>Object.keys(a).includes(s)},size:{type:String,default:"md"},loading:{default:!1},disabled:{default:!1}},data(){return{baseClasses:l,flexClasses:i,inlineFlexClasses:r,variantClasses:a,sizeClasses:o}}};var c=function(){var e=this,t=e._self._c;return t(e.as,{tag:"Component",class:[e.baseClasses,e.sizeClasses[e.size],e.variantClasses[e.variant],e.block?e.flexClasses:e.inlineFlexClasses,e.disabled||e.loading?"opacity-50":"",e.loading?"cursor-wait":""],attrs:{disabled:e.loading||e.disabled,href:e.href},on:{click:function(m){return e.$emit("click")}}},[e._t("default")],2)},f=[],u=n(d,c,f,!1,null,null,null,null);const x=u.exports;export{x as default};
