@bluemarble/bm-components 0.0.38 → 0.0.40

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
@@ -15048,7 +15048,7 @@ function Grid({ columns: columnsData, children, fixedColumns, paperProps, tableB
15048
15048
  }, "tr:nth-of-type(even)": {
15049
15049
  transition: "background-color ease 200ms",
15050
15050
  bgcolor: striped ? "divider" : "initial",
15051
- } }, paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
15051
+ }, width: fixedColumns ? "fit-content" : "initial" }, paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx) }),
15052
15052
  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) }),
15053
15053
  React__default.createElement(TableHead, Object.assign({}, tableHeadProps),
15054
15054
  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, pl: 2, zIndex: columns.length - index }, column === null || column === void 0 ? void 0 : column.sx) },
@@ -15222,7 +15222,7 @@ function useGrid({ columns, filters = [], rowsPerPageOptions = [30, 60, 100], })
15222
15222
  sortedDirection,
15223
15223
  columns,
15224
15224
  currentPage,
15225
- totalNumberOfPages: totalNumberOfPages,
15225
+ totalNumberOfPages: totalNumberOfPages === 0 ? 1 : totalNumberOfPages,
15226
15226
  onPageChange,
15227
15227
  setRowsPerPage: onChangeRowsPerPage,
15228
15228
  rowsPerPageOptions,