@cimpress/react-components
Version:
React components to support the MCP styleguide
20 lines • 945 B
JavaScript
import React from 'react';
import { Checkbox } from '../Checkbox';
export const TableSelect = ({ checked, id, row, selectType, onClick }) => {
const input = (React.createElement("div", { style: { textAlign: 'left' } },
React.createElement(Checkbox, { checked: checked || false, label: "", type: selectType, onClick: e => {
const { shiftKey } = e;
e.stopPropagation();
onClick(id, shiftKey, row);
}, onChange: () => { } })));
return input;
};
export const TableSelectAll = ({ checked, selectType, onClick }) => {
const input = (React.createElement("div", { style: { textAlign: 'left' } },
React.createElement(Checkbox, { checked: checked || false, label: "", type: selectType, onClick: e => {
e.stopPropagation();
onClick();
}, onChange: () => { } })));
return input;
};
//# sourceMappingURL=TableSelect.js.map