import{g as p,E as s,G as g,j as o,H as c,Q as h,R as v,S as m}from"./entry.eb978f24.js";const b=p({props:{size:{type:String,default:null,validator(d){return Object.keys(s.ui.button.size).includes(d)}},ui:{type:Object,default:()=>s.ui.buttonGroup}},setup(d,{slots:i}){const a=g(),u=o(()=>c({},d.ui,a.ui.buttonGroup)),r=o(()=>h(i)),t=o(()=>({"rounded-none":{left:"rounded-s-none",right:"rounded-e-none"},"rounded-sm":{left:"rounded-s-sm",right:"rounded-e-sm"},rounded:{left:"rounded-s",right:"rounded-e"},"rounded-md":{left:"rounded-s-md",right:"rounded-e-md"},"rounded-lg":{left:"rounded-s-lg",right:"rounded-e-lg"},"rounded-xl":{left:"rounded-s-xl",right:"rounded-e-xl"},"rounded-2xl":{left:"rounded-s-2xl",right:"rounded-e-2xl"},"rounded-3xl":{left:"rounded-s-3xl",right:"rounded-e-3xl"},"rounded-full":{left:"rounded-s-full",right:"rounded-e-full"}})[u.value.rounded]),f=o(()=>r.value.map((n,l)=>{const e={};return d.size&&(e.size=d.size),e.class=n.props?.class||"",e.class+=" !shadow-none",e.ui=n.props?.ui||{},e.ui.rounded="",l===0&&(e.ui.rounded=t.value.left),l===r.value.length-1&&(e.ui.rounded=t.value.right),v(n,e)}));return()=>m("div",{class:[u.value.wrapper,u.value.rounded,u.value.shadow]},f.value)}});export{b as default};
