"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceAutocomplete",s="Autocomplete",i="1.0.0",n="stable",o="editors",a="text",c="Text input with filtered suggestion dropdown, multi-select tag mode, and highlight matching.",r="1.0.0",l=["web","mobile","desktop"],p=["autocomplete","typeahead","suggestions","search"],d=[{name:"options",type:"NiceOption[]",required:!0,description:"Available options."},{name:"value",type:"string | string[]",required:!0,description:"Single or array of values."},{name:"minSearchLength",type:"number",required:!1,default:"1",description:"Min chars before showing suggestions."},{name:"maxResults",type:"number",required:!1,default:"10",description:"Max suggestions shown."},{name:"clearable",type:"boolean",required:!1,description:"Show clear button."},{name:"loading",type:"boolean",required:!1,description:"Loading state."},{name:"multiple",type:"boolean",required:!1,description:"Enable multi-select tag mode."},{name:"renderOption",type:"(option, query) => ReactNode",required:!1,description:"Custom suggestion renderer."},{name:"highlightMatch",type:"boolean",required:!1,default:"true",description:"Highlight matching text."}],u=[{name:"onChange",parameters:[{name:"value",type:"string | string[]"}],description:"Fires on selection."},{name:"onSearch",parameters:[{name:"query",type:"string"}],description:"Async search callback."}],m=[],g={aria:['role="combobox"','aria-autocomplete="list"',"aria-expanded"],keyboard:[{key:"ArrowDown",action:"Open suggestions"},{key:"Enter",action:"Select highlighted"}]},h=[{title:"City Search",code:`<NiceAutocomplete
  label="City"
  options={cities}
  value={city}
  onChange={setCity}
  highlightMatch
/>`,language:"tsx"},{title:"Multi-select Tags",code:`<NiceAutocomplete
  label="Skills"
  options={skillOptions}
  value={skills}
  onChange={setSkills}
  multiple
  clearable
/>`,language:"tsx"}],y=[{name:"NiceSelect",relationship:"similar"},{name:"NiceTagBox",relationship:"specialized"}],b={$schema:e,name:t,displayName:s,version:i,status:n,category:o,subcategory:a,package:"@nicetoDev/ui",description:c,since:r,platforms:l,keywords:p,props:d,events:u,cssVariables:m,accessibility:g,examples:h,related:y};exports.$schema=e;exports.accessibility=g;exports.category=o;exports.cssVariables=m;exports.default=b;exports.description=c;exports.displayName=s;exports.events=u;exports.examples=h;exports.keywords=p;exports.name=t;exports.platforms=l;exports.props=d;exports.related=y;exports.since=r;exports.status=n;exports.subcategory=a;exports.version=i;
