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