import { jsxs as h, jsx as e } from "react/jsx-runtime";
import { i as x } from "../../icons-06oXnjRF.js";
import { Loading as k } from "../loading/index.js";
import '../../assets/index33.css';const b = "_checkbox_1e5vl_1", m = {
  checkbox: b
}, d = ({
  checked: t,
  disabled: s,
  isLoading: c,
  label: o,
  onChange: r,
  ...i
}) => {
  const n = {
    "--icon-svg": x("check")
  };
  return /* @__PURE__ */ h("label", { className: m.checkbox, "data-component": "checkbox", children: [
    c && /* @__PURE__ */ e(k, { size: 24, sticky: !0 }),
    /* @__PURE__ */ e("input", { checked: t, disabled: s || c, onChange: r, type: "checkbox", style: n, ...i }),
    o && o
  ] });
};
export {
  d as Checkbox
};
//# sourceMappingURL=index.js.map
