react-better-html 1.1.142 → 1.1.143

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
@@ -733,6 +733,7 @@ type TableProps<DataItem> = {
733
733
  pageSize?: number;
734
734
  pageCount?: number;
735
735
  isInsideTableExpandRow?: boolean;
736
+ getRowStyle?: (item: DataItem, index: number) => ComponentStyle;
736
737
  onClickRow?: (item: DataItem, index: number) => void;
737
738
  onClickAllCheckboxes?: (checked: boolean) => void;
738
739
  onChangePage?: (page: number) => void;
package/dist/index.d.ts CHANGED
@@ -733,6 +733,7 @@ type TableProps<DataItem> = {
733
733
  pageSize?: number;
734
734
  pageCount?: number;
735
735
  isInsideTableExpandRow?: boolean;
736
+ getRowStyle?: (item: DataItem, index: number) => ComponentStyle;
736
737
  onClickRow?: (item: DataItem, index: number) => void;
737
738
  onClickAllCheckboxes?: (checked: boolean) => void;
738
739
  onChangePage?: (page: number) => void;
package/dist/index.js CHANGED
@@ -7491,6 +7491,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
7491
7491
  pageSize,
7492
7492
  pageCount,
7493
7493
  isInsideTableExpandRow,
7494
+ getRowStyle,
7494
7495
  onClickRow,
7495
7496
  onClickAllCheckboxes,
7496
7497
  onChangePage,
@@ -7919,6 +7920,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
7919
7920
  "tr",
7920
7921
  {
7921
7922
  className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
7923
+ style: getRowStyle?.(item, rowIndex),
7922
7924
  onClick: () => onClickRowElement(item, rowIndex),
7923
7925
  children: columns.map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7924
7926
  TdStyledComponent,