@bluemarble/bm-components 0.0.41 → 0.0.43
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
CHANGED
|
@@ -15066,17 +15066,17 @@ function Grid({ columns: columnsData, children, fixedColumns, paperProps, tableB
|
|
|
15066
15066
|
useEvent("mouseup", () => {
|
|
15067
15067
|
setDraggingColumn(-1);
|
|
15068
15068
|
});
|
|
15069
|
-
return (React__default.createElement(Paper, Object.assign({}, paperProps, { sx: Object.assign({ "tr td": {
|
|
15069
|
+
return (React__default.createElement(Paper, Object.assign({}, paperProps, { sx: Object.assign({ "tbody tr td": {
|
|
15070
15070
|
py: dense ? 0.23 : 0.7,
|
|
15071
15071
|
border: bordered ? "1px solid" : "",
|
|
15072
15072
|
borderColor: "divider",
|
|
15073
|
-
}, "tr:nth-of-type(even)": {
|
|
15073
|
+
}, "tbody tr:nth-of-type(even)": {
|
|
15074
15074
|
transition: "background-color ease 200ms",
|
|
15075
15075
|
bgcolor: striped ? "divider" : "initial",
|
|
15076
|
-
}, width: "fit-content" }, paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
|
|
15076
|
+
}, width: fixedColumns ? "fit-content" : "100%" }, paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
|
|
15077
15077
|
React__default.createElement(Table, Object.assign({ size: "small", stickyHeader: true }, tableProps, { sx: Object.assign(Object.assign({}, getTableWidth()), tableProps === null || tableProps === void 0 ? void 0 : tableProps.sx) }),
|
|
15078
15078
|
React__default.createElement(TableHead, Object.assign({}, tableHeadProps),
|
|
15079
|
-
React__default.createElement(TableRow, { ref: columnsRef }, columns.map((column, index) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? "none" : "normal", sx: Object.assign({ border: "1px solid", borderColor: "divider", width: column.width || 100, minWidth: getColWidth((column === null || column === void 0 ? void 0 : column.width) || 100), maxWidth: getColWidth((column === null || column === void 0 ? void 0 : column.width) || 100), pl: 2, zIndex: columns.length - index }, column === null || column === void 0 ? void 0 : column.sx) },
|
|
15079
|
+
React__default.createElement(TableRow, { ref: columnsRef }, columns.map((column, index) => (React__default.createElement(TableCell, { key: column.name, padding: dense ? "none" : "normal", sx: Object.assign(Object.assign({ border: "1px solid", borderColor: "divider", width: column.width || 100, minWidth: getColWidth((column === null || column === void 0 ? void 0 : column.width) || 100), maxWidth: getColWidth((column === null || column === void 0 ? void 0 : column.width) || 100), pl: 2, zIndex: columns.length - index }, column === null || column === void 0 ? void 0 : column.sx), { position: tableProps.stickyHeader ? "sticky" : "relative" }) },
|
|
15080
15080
|
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),
|
|
15081
15081
|
index < columns.length && (React__default.createElement(Box$2, { id: `resize-col-${index}`, sx: {
|
|
15082
15082
|
width: "4px",
|