import { B as n, C as i } from "./Copy-COWBkO_v.js";
import { j as l } from "./jsx-runtime-tc70JA_2.js";
const u = ({
  value: o,
  onClick: s,
  onChange: e,
  checkedVariant: a = "filled",
  uncheckedVariant: p,
  rightClickToggle: r = !1,
  ...f
}) => /* @__PURE__ */ l.jsx(
  n,
  {
    onClick: (t) => {
      s?.(t), !r && e(!o);
    },
    onContextMenu: (t) => {
      r && (t.preventDefault(), t.stopPropagation(), e(!o));
    },
    variant: o ? a : p,
    ...f
  }
), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  Button: n,
  Copy: i,
  Toggle: u
}, Symbol.toStringTag, { value: "Module" }));
export {
  u as T,
  j as e
};
