const e=require("../_util/props-util/index.js"),t=require("../theme/internal.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("../vc-util/devWarning.js"),i=require("../_util/createContext.js");let a=require("vue");var o=()=>({prefixCls:String,size:{type:String}}),s=i.default(),c=(0,a.defineComponent)({compatConfig:{MODE:3},name:`AButtonGroup`,props:o(),setup(i,{slots:o}){let{prefixCls:c,direction:l}=n.default(`btn-group`,i),[,,u]=t.useToken();s.useProvide((0,a.reactive)({size:(0,a.computed)(()=>i.size)}));let d=(0,a.computed)(()=>{let{size:e}=i,t=``;switch(e){case`large`:t=`lg`;break;case`small`:t=`sm`;break;case`middle`:case void 0:break;default:r.default(!e,`Button.Group`,"Invalid prop `size`.")}return{[`${c.value}`]:!0,[`${c.value}-${t}`]:t,[`${c.value}-rtl`]:l.value===`rtl`,[u.value]:!0}});return()=>(0,a.createVNode)(`div`,{class:d.value},[e.flattenChildren(o.default?.())])}});exports.GroupSizeContext=s,exports.buttonGroupProps=o,exports.default=c;