import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
import React, { forwardRef } from 'react';
import { Checkbox as Checkbox$1 } from '@chakra-ui/react';

var Checkbox = forwardRef(function (_a, ref) {
    var name = _a.name, value = _a.value, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, onChange = _a.onChange, label = _a.label, isInvalid = _a.isInvalid, _d = _a.isIndeterminate, isIndeterminate = _d === void 0 ? false : _d, _e = _a.fontWeight, fontWeight = _e === void 0 ? 'regular' : _e, _f = _a.variant, variant = _f === void 0 ? 'alignCenter' : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.fullWidth, fullWidth = _h === void 0 ? false : _h, props = __rest(_a, ["name", "value", "isDisabled", "isChecked", "onChange", "label", "isInvalid", "isIndeterminate", "fontWeight", "variant", "readOnly", "fullWidth"]);
    return (React.createElement(Checkbox$1, __assign({}, props, { ref: ref, name: name, value: value, isDisabled: isDisabled, isChecked: isChecked, onChange: onChange, isInvalid: isInvalid, isIndeterminate: isIndeterminate, fontWeight: fontWeight, variant: variant, readOnly: readOnly, width: fullWidth ? 'full' : undefined }), label));
});
Checkbox.displayName = 'Checkbox';

export { Checkbox as default };
//# sourceMappingURL=index.js.map
