react-better-html 1.1.213 → 1.1.214

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
@@ -8533,28 +8533,31 @@ var TableComponent = forwardRef15(function Table({
8533
8533
  },
8534
8534
  column.type + column.label + index
8535
8535
  )) }) }),
8536
- /* @__PURE__ */ jsx23("tbody", { children: isLoading ? /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ jsxs19(Fragment6, { children: [
8537
- /* @__PURE__ */ jsx23(
8538
- "tr",
8539
- {
8540
- className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
8541
- style: getRowStyle?.(item, rowIndex),
8542
- onClick: () => onClickRowElement(item, rowIndex),
8543
- children: readyColumns.map((column, colIndex) => /* @__PURE__ */ jsx23(
8544
- TdStyledComponent,
8545
- {
8546
- textAlign: column.align,
8547
- onClick: (event) => {
8548
- if (column.clickStopPropagation) event.stopPropagation();
8536
+ /* @__PURE__ */ jsx23("tbody", { children: isLoading ? /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => {
8537
+ const realRowIndex = rowIndex + (pageSize ? (currentPage - 1) * pageSize : 0);
8538
+ return /* @__PURE__ */ jsxs19(Fragment6, { children: [
8539
+ /* @__PURE__ */ jsx23(
8540
+ "tr",
8541
+ {
8542
+ className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
8543
+ style: getRowStyle?.(item, realRowIndex),
8544
+ onClick: () => onClickRowElement(item, realRowIndex),
8545
+ children: readyColumns.map((column, colIndex) => /* @__PURE__ */ jsx23(
8546
+ TdStyledComponent,
8547
+ {
8548
+ textAlign: column.align,
8549
+ onClick: (event) => {
8550
+ if (column.clickStopPropagation) event.stopPropagation();
8551
+ },
8552
+ children: renderCellContent(column, item, realRowIndex)
8549
8553
  },
8550
- children: renderCellContent(column, item, rowIndex)
8551
- },
8552
- column.type + column.label + colIndex
8553
- ))
8554
- }
8555
- ),
8556
- expandedRows[rowIndex] && /* @__PURE__ */ jsx23("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, rowIndex) }) })
8557
- ] }, JSON.stringify(item) + rowIndex)) : /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8554
+ column.type + column.label + colIndex
8555
+ ))
8556
+ }
8557
+ ),
8558
+ expandedRows[realRowIndex] && /* @__PURE__ */ jsx23("tr", { className: "withoutHover isExpandRow", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: renderExpandedRow(item, realRowIndex) }) })
8559
+ ] }, JSON.stringify(item) + realRowIndex);
8560
+ }) : /* @__PURE__ */ jsx23("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx23("td", { className: "noData", colSpan: readyColumns.length, children: /* @__PURE__ */ jsx23(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
8558
8561
  withFooter && /* @__PURE__ */ jsx23("tfoot", { children: /* @__PURE__ */ jsx23("tr", { className: "isFooter", children: /* @__PURE__ */ jsx23("td", { colSpan: readyColumns.length, children: /* @__PURE__ */ jsxs19(
8559
8562
  Div_default.column,
8560
8563
  {