import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { bem } from "../@utils/bem.js";
const { b, e } = bem("gd-ui-kit-checkbox");
/**
 * @internal
 */
export function UiCheckbox({ checked, onChange = () => { }, preventDefault = false, indeterminate = false, disabled = false, }) {
    return (_jsxs("label", { className: b(), children: [_jsx("input", { type: "checkbox", className: e("input"), checked: checked, onChange: onChange, disabled: disabled, onClick: (e) => preventDefault && e.stopPropagation() }), _jsx("span", { className: e("box", { checked, indeterminate, disabled }) })] }));
}
//# sourceMappingURL=UiCheckbox.js.map