react-better-html 1.1.142 → 1.1.144

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.mjs CHANGED
@@ -7415,6 +7415,7 @@ var TableComponent = forwardRef15(function Table({
7415
7415
  pageSize,
7416
7416
  pageCount,
7417
7417
  isInsideTableExpandRow,
7418
+ getRowStyle,
7418
7419
  onClickRow,
7419
7420
  onClickAllCheckboxes,
7420
7421
  onChangePage,
@@ -7526,8 +7527,10 @@ var TableComponent = forwardRef15(function Table({
7526
7527
  if (oldValue[index] === void 0) {
7527
7528
  const newValue = expandColumn.onlyOneExpanded ? [] : [...oldValue];
7528
7529
  newValue[index] = true;
7530
+ expandColumn.onExpand?.(item, index);
7529
7531
  return newValue;
7530
7532
  }
7533
+ expandColumn.onCollapse?.(item, index);
7531
7534
  return oldValue.map((isExpanded, internalIndex) => internalIndex === index ? !isExpanded : isExpanded);
7532
7535
  });
7533
7536
  } else onClickRow?.(item, index);
@@ -7843,6 +7846,7 @@ var TableComponent = forwardRef15(function Table({
7843
7846
  "tr",
7844
7847
  {
7845
7848
  className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
7849
+ style: getRowStyle?.(item, rowIndex),
7846
7850
  onClick: () => onClickRowElement(item, rowIndex),
7847
7851
  children: columns.map((column, colIndex) => /* @__PURE__ */ jsx22(
7848
7852
  TdStyledComponent,