"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceContextMenu",n="Context Menu",s="1.0.0",i="stable",o="navigation",c="menu",a="Right-click popup menu attached to a target element.",r="1.0.0",m=["web","desktop"],l=["context-menu","right-click","popup","menu"],p=[{name:"items",type:"NiceMenuItem[]",required:!0,description:"Menu items."},{name:"target",type:"RefObject<HTMLElement>",required:!0,description:"Element ref that triggers menu."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Size variant."}],u=[{name:"onItemClick",parameters:[{name:"item",type:"NiceMenuItem"}],description:"Called when item selected."}],d=[],y={aria:['role="menu"','role="menuitem"'],keyboard:[{key:"Escape",action:"Close menu"},{key:"ArrowUp/Down",action:"Navigate items"}]},g=[{title:"File Context Menu",code:`const targetRef = useRef<HTMLDivElement>(null);

<div ref={targetRef}>Right-click me</div>
<NiceContextMenu
  target={targetRef}
  items={[
    { key: 'copy', text: 'Copy', icon: <CopyIcon /> },
    { key: 'paste', text: 'Paste', icon: <PasteIcon /> },
    { key: 'delete', text: 'Delete', icon: <DeleteIcon /> }
  ]}
  onItemClick={handleAction}
/>`,language:"tsx"}],k=[{name:"NiceMenu",relationship:"similar"},{name:"NicePopover",relationship:"base"}],v={$schema:e,name:t,displayName:n,version:s,status:i,category:o,subcategory:c,package:"@nicetoDev/ui",description:a,since:r,platforms:m,keywords:l,props:p,events:u,cssVariables:d,accessibility:y,examples:g,related:k};exports.$schema=e;exports.accessibility=y;exports.category=o;exports.cssVariables=d;exports.default=v;exports.description=a;exports.displayName=n;exports.events=u;exports.examples=g;exports.keywords=l;exports.name=t;exports.platforms=m;exports.props=p;exports.related=k;exports.since=r;exports.status=i;exports.subcategory=c;exports.version=s;
