import { __rest } from "tslib";
import * as React from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/DataList/data-list';
export const DataListCheck = (_a) => {
    var { className = '', 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onChange = (checked, event) => { }, isValid = true, isDisabled = false, isChecked = null, checked = null } = _a, props = __rest(_a, ["className", "onChange", "isValid", "isDisabled", "isChecked", "checked"]);
    return (React.createElement("div", { className: css(styles.dataListItemControl, className) },
        React.createElement("div", { className: css('pf-c-data-list__check') },
            React.createElement("input", Object.assign({}, props, { type: "checkbox", onChange: event => onChange(event.currentTarget.checked, event), "aria-invalid": !isValid, disabled: isDisabled, checked: isChecked || checked })))));
};
//# sourceMappingURL=DataListCheck.js.map