import { u as o, C as T, D as E, M as _, a as d } from "./Menu-DqkB9vpH.js";
import { j as f } from "./jsx-runtime-OVHDjVDe.js";
import { B as S } from "./Button-BFoGC4WW.js";
import { C as e } from "./css-D6ZBcSwh.js";
import { C as M, a as O, b } from "./Animated-M9ynNzcI.js";
const j = ({
  itemKey: t,
  className: s,
  onClick: n,
  size: a,
  ...r
}) => {
  const { onClick: c, selected: l, level: C = "p", gap: i, background: m } = o(), u = (x) => {
    c(t), n?.(x);
  }, p = l === t;
  return /* @__PURE__ */ f.jsx(
    S,
    {
      contrast: m,
      level: C,
      overflow: "nowrap",
      onClick: u,
      variant: "text",
      className: e(e.B("menu-item"), e.selected(p), s),
      size: a,
      gap: i,
      ...r
    }
  );
}, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  CONTEXT_MENU_CLASS: M,
  CONTEXT_SELECTED: O,
  CONTEXT_TARGET: b,
  ContextMenu: T,
  Divider: E,
  Item: j,
  Menu: _,
  useContext: o,
  useContextMenu: d
}, Symbol.toStringTag, { value: "Module" }));
export {
  D as e
};
