"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceOrganizationChart",t="Organization Chart",o="1.0.0",a="stable",r="charts",i="hierarchy",s="A hierarchical organization chart with customizable node rendering, selectable nodes, and collapsible branches.",c="1.0.0",l=["web","desktop"],d=["org","organization","hierarchy","tree","employees"],p=[{name:"data",type:"NiceOrgNode",required:!0,description:"Root node with key, label, and optional children."},{name:"renderNode",type:"(node: NiceOrgNode) => React.ReactNode",required:!1,description:"Custom node renderer."},{name:"selectable",type:"boolean",required:!1,default:"false",description:"Enable node selection."},{name:"selectedKey",type:"string",required:!1,description:"Currently selected node key."},{name:"onSelect",type:"(key: string) => void",required:!1,description:"Called when a node is selected."},{name:"direction",type:"'top-down' | 'left-right'",required:!1,default:"'top-down'",description:"Tree layout direction."},{name:"collapsible",type:"boolean",required:!1,default:"true",description:"Allow branches to be collapsed."}],y=[{name:"onSelect",parameters:[{name:"key",type:"string"}],description:"Fired when a node is selected."}],m=[{name:"--nice-org-node-bg",default:"var(--nice-surface-bg)",description:"Node background color"},{name:"--nice-org-line-color",default:"var(--nice-border-color)",description:"Connector line color"}],h=[{title:"Company Org Chart",code:`<NiceOrganizationChart
  data={{
    key: 'ceo', label: 'CEO', children: [
      { key: 'cto', label: 'CTO', children: [...] },
      { key: 'cfo', label: 'CFO' }
    ]
  }}
  selectable
  onSelect={(key) => showEmployeeDetails(key)}
/>`,language:"tsx"}],u=[{name:"NiceTreeView",relationship:"alternative"},{name:"NiceTreeMap",relationship:"similar"}],g={$schema:e,name:n,displayName:t,version:o,status:a,category:r,subcategory:i,package:"@nicetoDev/ui",description:s,since:c,platforms:l,keywords:d,props:p,events:y,cssVariables:m,examples:h,related:u};exports.$schema=e;exports.category=r;exports.cssVariables=m;exports.default=g;exports.description=s;exports.displayName=t;exports.events=y;exports.examples=h;exports.keywords=d;exports.name=n;exports.platforms=l;exports.props=p;exports.related=u;exports.since=c;exports.status=a;exports.subcategory=i;exports.version=o;
