import{j as l,b8 as b,bv as d}from"./index-Db-xuq0b.js";import{a as o}from"./Checkbox-IILksgz0.js";const c=d("",{variants:{variant:{default:"",subtle:"border-muted bg-muted/20",soft:"rounded-full border-2 border-primary"},size:{sm:"!w-3 !h-3",md:"!w-4 !h-4",lg:"!w-5 !h-5"}},defaultVariants:{variant:"default",size:"md"}});function n({className:i,variant:m="default",size:u="md",checked:s,onCheckedChange:t,disabled:e,...f}){const r=s==="indeterminate";return l.jsx(o,{checked:r?!1:s??!1,indeterminate:r,onChange:a=>{t==null||t(a.currentTarget.checked)},disabled:e,classNames:{input:b(c({variant:m,size:u}),i)},...f})}export{n as C};
