import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{D as t,K as n,Lt as r,M as i,Nt as a,Ot as o,R as s,U as c,_t as l,et as u,k as d,rt as f,tt as p}from"./vendor-vue-core-IZuWV8u3.js";import{O as m}from"./vendor-other-DOjudfJ1.js";import{a as h,i as g,vt as _,yt as v}from"./vendor-reka-ui-NsM8zEZd.js";import{t as y}from"./src-B6n4nS3q.js";const b=Symbol(`toggleGroupVariant`),x=m({base:`flex items-center justify-center gap-1`,variants:{variant:{default:`bg-transparent`,outline:`bg-transparent`}},defaultVariants:{variant:`default`}}),S=m({base:[`inline-flex items-center justify-center rounded`,`border-none cursor-pointer appearance-none`,`text-center font-normal`,`transition-all duration-150 ease-in-out`,`focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,`disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed`,`data-[state=on]:bg-interface-menu-component-surface-selected data-[state=on]:text-text-primary`],variants:{variant:{default:`bg-transparent text-text-secondary hover:bg-interface-menu-component-surface-selected/50`,outline:`border border-border-default bg-transparent text-text-secondary hover:bg-secondary-background`},size:{default:`h-7 px-3 text-sm`,sm:`h-6 px-5 py-[5px] text-xs`,lg:`h-9 px-4 text-sm`}},defaultVariants:{variant:`default`,size:`default`}});var C=s({__name:`ToggleGroup`,props:{class:{},variant:{default:`default`},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},type:{},modelValue:{},defaultValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let o=_(i(e,[`class`,`variant`]),t);return p(b,a(()=>e.variant)),(t,i)=>(u(),d(r(h),n(r(o),{class:r(y)(r(x)({variant:t.variant}),e.class)}),{default:l(()=>[f(t.$slots,`default`)]),_:3},16,[`class`]))}}),w=s({__name:`ToggleGroupItem`,props:{class:{},variant:{},size:{default:`default`},value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){let a=i(e,[`class`,`variant`,`size`]),s=c(b,o(`default`)),p=v(a),m=t(()=>e.variant??s.value??`default`);return(t,i)=>(u(),d(r(g),n(r(p),{class:r(y)(r(S)({variant:m.value,size:t.size}),`min-w-0 flex-1 truncate`,e.class)}),{default:l(()=>[f(t.$slots,`default`)]),_:3},16,[`class`]))}});export{C as n,w as t};
//# sourceMappingURL=toggle-group-5CC18T7G.js.map