@bluemarble/bm-components 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3837,7 +3837,7 @@ const Td = memo(CustomTableCell);
|
|
|
3837
3837
|
|
|
3838
3838
|
const CustomTableRow = (props) => {
|
|
3839
3839
|
const { children, sx, striped = true, bordered = undefined } = props, rest = __rest(props, ["children", "sx", "striped", "bordered"]);
|
|
3840
|
-
return (React__default.createElement(TableRow, Object.assign({ sx: Object.assign({ '&:nth-of-type(even)': { bgcolor: striped ? 'action.selected' : '' } }, sx) }, rest),
|
|
3840
|
+
return (React__default.createElement(TableRow, Object.assign({ sx: Object.assign({ '&:nth-of-type(even)': { bgcolor: striped ? 'action.selected' : '' } }, sx) }, rest), children));
|
|
3841
3841
|
};
|
|
3842
3842
|
const Tr = memo(CustomTableRow);
|
|
3843
3843
|
|
|
@@ -14988,13 +14988,13 @@ function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps,
|
|
|
14988
14988
|
py: dense ? 0.23 : 0.7,
|
|
14989
14989
|
border: bordered ? '1px solid' : '',
|
|
14990
14990
|
borderColor: 'divider'
|
|
14991
|
-
}, 'tr:nth-of-type(even)': {
|
|
14991
|
+
}, 'tbody tr:nth-of-type(even)': {
|
|
14992
14992
|
transition: 'background-color ease 200ms',
|
|
14993
14993
|
bgcolor: striped ? 'divider' : 'initial'
|
|
14994
14994
|
}, width: fixedColumns ? 'fit-content' : '100' }, paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
|
|
14995
14995
|
React__default.createElement(Table, Object.assign({ size: "small", stickyHeader: true }, tableProps, { sx: Object.assign({}, tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) }),
|
|
14996
14996
|
React__default.createElement(TableHead, Object.assign({}, tableHeadProps),
|
|
14997
|
-
React__default.createElement(TableRow, null, columns.map((column) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? 'none' : 'normal', sx: Object.assign({ pl: 2 }, column === null || column === void 0 ? void 0 : column.sx) },
|
|
14997
|
+
React__default.createElement(TableRow, null, columns.map((column) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? 'none' : 'normal', sx: Object.assign({ pl: 2, fontWeight: 'bold' }, column === null || column === void 0 ? void 0 : column.sx) },
|
|
14998
14998
|
React__default.createElement(TableSortLabel, { active: sortedBy === column.name, direction: sortedDirection, onClick: () => onSortBy(column.name), disabled: column.canSort === false, sx: { position: 'relative', right: '-9px' } }, column.label)))))),
|
|
14999
14999
|
React__default.createElement(TableBody, Object.assign({}, tableBodyProps), children)),
|
|
15000
15000
|
React__default.createElement(GridPagination, { rowsPerPageOptions: rowsPerPageOptions, currentPage: currentPage, totalNumberOfPages: totalNumberOfPages, onPageChange: onPageChange, setRowsPerPage: setRowsPerPage, rowsPerPage: rowsPerPage, dense: dense })));
|