@bluemarble/bm-components 1.10.4 → 1.11.0

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/index.d.mts CHANGED
@@ -257,6 +257,7 @@ interface ColumnsProps<T extends object = Theme> {
257
257
  name?: string;
258
258
  width?: number;
259
259
  sx?: SxProps<T>;
260
+ props?: TableCellProps;
260
261
  canSort?: boolean;
261
262
  children?: ReactNode;
262
263
  }
package/dist/index.d.ts CHANGED
@@ -257,6 +257,7 @@ interface ColumnsProps<T extends object = Theme> {
257
257
  name?: string;
258
258
  width?: number;
259
259
  sx?: SxProps<T>;
260
+ props?: TableCellProps;
260
261
  canSort?: boolean;
261
262
  children?: ReactNode;
262
263
  }
package/dist/index.js CHANGED
@@ -3922,13 +3922,14 @@ function BaseGrid({
3922
3922
  var _a;
3923
3923
  return /* @__PURE__ */ React2.default.createElement(
3924
3924
  _material.TableCell,
3925
- {
3925
+ __spreadProps(__spreadValues({
3926
3926
  key: column.name,
3927
- padding: dense ? "none" : "normal",
3927
+ padding: dense ? "none" : "normal"
3928
+ }, column.props), {
3928
3929
  sx: __spreadValues({
3929
3930
  pl: 2
3930
3931
  }, column == null ? void 0 : column.sx)
3931
- },
3932
+ }),
3932
3933
  column.children ? column.children : /* @__PURE__ */ React2.default.createElement(
3933
3934
  _material.TableSortLabel,
3934
3935
  __spreadProps(__spreadValues({
@@ -4838,13 +4839,13 @@ function useGrid({
4838
4839
  },
4839
4840
  [sortedBy]
4840
4841
  );
4841
- const onPageChange = _react.useCallback.call(void 0, (pageNumber) => {
4842
+ const onPageChange = (pageNumber) => {
4842
4843
  if (pageNumber < 0)
4843
4844
  return;
4844
4845
  if (pageNumber > totalNumberOfPages)
4845
4846
  return;
4846
4847
  setCurrentPage(pageNumber);
4847
- }, []);
4848
+ };
4848
4849
  const onChangeRowsPerPage = _react.useCallback.call(void 0,
4849
4850
  (rows) => {
4850
4851
  let totalNumberOfPages2 = Math.round(filteredData.length / rows) - 1;