2016-05-30 07:59:44 +03:00
|
|
|
import { themr } from 'react-css-themr';
|
|
|
|
import { TABLE } from '../identifiers.js';
|
|
|
|
import { Checkbox } from '../checkbox';
|
|
|
|
import { tableFactory } from './Table.js';
|
|
|
|
import tableHeadFactory from './TableHead.js';
|
|
|
|
import tableRowFactory from './TableRow.js';
|
|
|
|
import theme from './theme.scss';
|
|
|
|
|
|
|
|
const applyTheme = (Component) => themr(TABLE, theme)(Component);
|
|
|
|
const ThemedTableHead = applyTheme(tableHeadFactory(Checkbox));
|
|
|
|
const ThemedTableRow = applyTheme(tableRowFactory(Checkbox));
|
|
|
|
const ThemedTable = applyTheme(tableFactory(ThemedTableHead, ThemedTableRow));
|
|
|
|
|
|
|
|
export default ThemedTable;
|
|
|
|
export { ThemedTable as Table };
|