(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],e):(t=typeof globalThis<"u"?globalThis:t||self,t["safe-ui"]=e(t.vue,t.ElementPlus))})(this,function(t,e){"use strict";const p="",d="",r=t.defineComponent({name:"sf-button",components:{ElButton:e.ElButton}}),i=[t.defineComponent({...r,props:{label:{},primary:{type:Boolean,default:!1},size:{},backgroundColor:{}},emits:["click"],setup(s,{emit:o}){const n=s,c=t.computed(()=>({"storybook-button":!0,"storybook-button--primary":n.primary,"storybook-button--secondary":!n.primary,[`storybook-button--${n.size||"medium"}`]:!0})),l=t.computed(()=>({backgroundColor:n.backgroundColor})),u=()=>{o("click",1)};return(a,y)=>(t.openBlock(),t.createBlock(t.unref(e.ElButton),{type:"button",class:t.normalizeClass(c.value),onClick:u,style:t.normalizeStyle(l.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.label),1)]),_:1},8,["class","style"]))}})];return{install(s){i.forEach(o=>{s.component(o.name,o)})}}});