import { jsx } from "react/jsx-runtime";
import { forwardRef } from "react";
import Dashed from "./Dashed.js";
import Default from "./Default.js";
/* empty css                     */
const Checkbox = forwardRef(
  ({
    label,
    variant = "default",
    disabled = false,
    required = false,
    defaultChecked,
    checked,
    onChange,
    withoutFormLabel = false,
    withDropDown = false,
    dropDownData,
    onDropDownCheckBoxClick,
    ...args
  }) => {
    if (variant === "dashed") {
      return /* @__PURE__ */ jsx(
        Dashed,
        {
          ...args,
          checked,
          defaultChecked,
          isDisabled: disabled,
          isRequired: required,
          label,
          onChange
        }
      );
    }
    return /* @__PURE__ */ jsx(
      Default,
      {
        ...args,
        checked,
        defaultChecked,
        dropDownData,
        isDisabled: disabled,
        isRequired: required,
        label,
        withDropDown,
        withoutFormLabel,
        onChange,
        onDropDownCheckBoxClick
      }
    );
  }
);
Checkbox.displayName = "Checkbox";
export {
  Checkbox
};
