"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceCheckbox",a="Checkbox",c="1.0.0",o="stable",s="editors",n="boolean",i="Checkbox with indeterminate (tri-state) support for boolean selection.",l="1.0.0",r=["web","mobile","desktop"],d=["checkbox","boolean","toggle","check"],p=[{name:"label",type:"ReactNode",required:!1,description:"Checkbox label."},{name:"checked",type:"boolean",required:!1,default:"false",description:"Controlled checked state."},{name:"indeterminate",type:"boolean",required:!1,default:"false",description:"Show horizontal dash (tri-state)."},{name:"disabled",type:"boolean",required:!1,description:"Disables the checkbox."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Visual size."},{name:"name",type:"string",required:!1,description:"HTML name attribute."},{name:"error",type:"string",required:!1,description:"Validation error message."}],b=[{name:"onChange",parameters:[{name:"checked",type:"boolean"}],description:"Called with new checked value on toggle."}],h=[{name:"--nice-checkbox-size",default:"18px",description:"Checkbox size"},{name:"--nice-checkbox-checked-bg",default:"var(--nice-primary)",description:"Checked background"}],m={aria:['role="checkbox"',"aria-checked"],keyboard:[{key:"Space",action:"Toggle checkbox"}]},k=[{title:"Basic Checkbox",code:`<NiceCheckbox
  label="I agree to the terms"
  checked={agreed}
  onChange={setAgreed}
/>`,language:"tsx"},{title:"Indeterminate",code:`<NiceCheckbox
  label="Select all"
  checked={allSelected}
  indeterminate={someSelected && !allSelected}
  onChange={handleSelectAll}
/>`,language:"tsx"}],g=[{name:"NiceToggle",relationship:"alternative"},{name:"NiceRadioGroup",relationship:"similar"}],u={$schema:e,name:t,displayName:a,version:c,status:o,category:s,subcategory:n,package:"@nicetoDev/ui",description:i,since:l,platforms:r,keywords:d,props:p,events:b,cssVariables:h,accessibility:m,examples:k,related:g};exports.$schema=e;exports.accessibility=m;exports.category=s;exports.cssVariables=h;exports.default=u;exports.description=i;exports.displayName=a;exports.events=b;exports.examples=k;exports.keywords=d;exports.name=t;exports.platforms=r;exports.props=p;exports.related=g;exports.since=l;exports.status=o;exports.subcategory=n;exports.version=c;
