import { jsx } from "react/jsx-runtime";
import FormControlLabel from "../../node_modules/@mui/material/FormControlLabel/FormControlLabel.js";
import Checkbox from "../../node_modules/@mui/material/Checkbox/Checkbox.js";
function Dashed({
  defaultChecked,
  checked,
  onChange,
  isRequired = false,
  isDisabled = false,
  label,
  ...args
}) {
  const isChecked = checked ?? defaultChecked;
  return /* @__PURE__ */ jsx(
    FormControlLabel,
    {
      className: `impact-form-checkbox-container ${isChecked ? "checked" : ""}`,
      control: /* @__PURE__ */ jsx(
        Checkbox,
        {
          ...args,
          disableRipple: true,
          checked,
          className: "impact-checkbox-container dashed-variant",
          defaultChecked,
          disabled: isDisabled,
          onChange
        }
      ),
      disabled: isDisabled,
      label,
      required: isRequired
    }
  );
}
export {
  Dashed as default
};
