import{j as c}from"./jsx-runtime-5BUNAZ9W.js";import{c as u}from"./cn-466VSCev.js";import{$ as b,_ as p}from"./index-VfKohXEB.js";import{r as n}from"./index-4g5l5LRQ.js";import{$ as m}from"./index-pbeB-vsG.js";import{$ as g}from"./index-nyvS1vus.js";import{c as v}from"./index-polp_dyw.js";const x=n.forwardRef((e,a)=>{const{pressed:t,defaultPressed:r=!1,onPressedChange:s,...l}=e,[o=!1,f]=g({prop:t,onChange:s,defaultProp:r});return n.createElement(b.button,p({type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0},l,{ref:a,onClick:m(e.onClick,()=>{e.disabled||f(!o)})}))}),i=x,$=v("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-background-stronger hover:text-text-weak focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-info focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background-stronger data-[state=on]:text-text-weak",{variants:{variant:{default:"bg-transparent",outline:"border border-border-primary-weak bg-transparent hover:bg-background-stronger hover:text-text-weak"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef(({className:e,variant:a,size:t,...r},s)=>c(i,{ref:s,className:u($({variant:a,size:t,className:e})),...r}));d.displayName=i.displayName;try{d.displayName="Toggle",d.__docgenInfo={description:"",displayName:"Toggle",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"outline"'}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"sm"'},{value:'"lg"'}]}}}}}catch{}export{x as $,d as T,$ as t};
