"use strict";const e=require("./Menu-D-uhqnfk.cjs"),_=require("./jsx-runtime-Dszzpdy0.cjs"),d=require("./Button-C3dvpk52.cjs"),t=require("./css-HnNQMUzV.cjs"),n=require("./Animated-Ck-9v2gm.cjs"),M=({itemKey:o,className:s,onClick:r,size:u,...c})=>{const{onClick:C,selected:i,level:l="p",gap:T,background:E}=e.useContext(),x=S=>{C(o),r?.(S)},a=i===o;return _.jsxRuntimeExports.jsx(d.Button,{contrast:E,level:l,overflow:"nowrap",onClick:x,variant:"text",className:t.CSS(t.CSS.B("menu-item"),t.CSS.selected(a),s),size:u,gap:T,...c})},N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:n.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:n.CONTEXT_SELECTED,CONTEXT_TARGET:n.CONTEXT_TARGET,ContextMenu:e.ContextMenu,Divider:e.Divider,Item:M,Menu:e.Menu,useContext:e.useContext,useContextMenu:e.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.external=N;
