"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceCodeEditor",n="Code Editor",o="1.0.0",a="stable",r="editors",s="code",i="Monaco-based code editor with syntax highlighting, autocomplete, and error markers.",d="1.0.0",c=["web","desktop"],l=["code","editor","monaco","syntax","ide"],m=[{name:"value",type:"string",required:!1,description:"Code content."},{name:"language",type:"string",required:!1,default:"'javascript'",description:"Language for syntax highlighting (20+ supported)."},{name:"theme",type:"'vs' | 'vs-dark' | 'hc-black' | 'hc-light'",required:!1,default:"'vs'",description:"Editor theme."},{name:"readOnly",type:"boolean",required:!1,description:"Read-only mode."},{name:"minimap",type:"boolean",required:!1,default:"true",description:"Show minimap."},{name:"lineNumbers",type:"'on' | 'off' | 'relative'",required:!1,default:"'on'",description:"Line numbers display."},{name:"wordWrap",type:"'on' | 'off' | 'wordWrapColumn'",required:!1,description:"Word wrap mode."},{name:"tabSize",type:"number",required:!1,default:"2",description:"Tab size."},{name:"fontSize",type:"number",required:!1,default:"14",description:"Font size."},{name:"fontFamily",type:"string",required:!1,description:"Font family."},{name:"markers",type:"NiceCodeMarker[]",required:!1,description:"Error/warning decorations."},{name:"completionItems",type:"NiceCodeCompletionItem[]",required:!1,description:"Custom autocomplete items."}],p=[{name:"onChange",parameters:[{name:"value",type:"string"}],description:"Called on content change."}],u=[],y=[{title:"TypeScript Editor",code:`<NiceCodeEditor
  value={code}
  onChange={setCode}
  language="typescript"
  theme="vs-dark"
  minimap={false}
  markers={errors.map(e => ({
    line: e.line,
    severity: 'error',
    message: e.message
  }))}
/>`,language:"tsx"}],g=[{name:"NiceMarkdownEditor",relationship:"markdown"}],f={$schema:e,name:t,displayName:n,version:o,status:a,category:r,subcategory:s,package:"@nicetoDev/ui",description:i,since:d,platforms:c,keywords:l,props:m,events:p,cssVariables:u,examples:y,related:g};exports.$schema=e;exports.category=r;exports.cssVariables=u;exports.default=f;exports.description=i;exports.displayName=n;exports.events=p;exports.examples=y;exports.keywords=l;exports.name=t;exports.platforms=c;exports.props=m;exports.related=g;exports.since=d;exports.status=a;exports.subcategory=s;exports.version=o;
