react-better-html 1.1.105 → 1.1.107

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
@@ -6823,7 +6823,7 @@ var TableStyledComponent = styled10.table.withConfig({
6823
6823
  ${(props) => props.withHover ? css2`
6824
6824
  transition: ${props.theme.styles.transition};
6825
6825
 
6826
- &:not(.isHeader):hover {
6826
+ &:not(.isHeader):not(.isFooter):not(.withoutHover):hover {
6827
6827
  filter: brightness(${props.colorTheme === "light" ? "0.95" : "0.85"});
6828
6828
  }
6829
6829
  ` : ""}
@@ -7118,10 +7118,11 @@ var TableComponent = forwardRef15(function Table({
7118
7118
  );
7119
7119
  const dataAfterPagination = useMemo7(() => {
7120
7120
  if (pageSize === void 0) return dataAfterFilter;
7121
+ if (pageCount !== void 0) return dataAfterFilter;
7121
7122
  const pageStartItemIndex = (currentPage - 1) * (pageSize ?? 0);
7122
7123
  const pageEndItemIndex = pageStartItemIndex + (pageSize ?? 0);
7123
7124
  return dataAfterFilter.slice(pageStartItemIndex, pageEndItemIndex);
7124
- }, [dataAfterFilter, pageSize, currentPage]);
7125
+ }, [dataAfterFilter, pageSize, currentPage, pageCount]);
7125
7126
  const everythingIsChecked = useMemo7(() => {
7126
7127
  return checkedItems.every((checked) => checked) && checkedItems.length === data.length;
7127
7128
  }, [data, checkedItems]);
@@ -7249,7 +7250,7 @@ var TableComponent = forwardRef15(function Table({
7249
7250
  },
7250
7251
  column.type + column.label + index
7251
7252
  )) }) }),
7252
- /* @__PURE__ */ jsx20("tbody", { children: isLoading ? /* @__PURE__ */ jsx20("tr", { children: /* @__PURE__ */ jsx20("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx20(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ jsx20(
7253
+ /* @__PURE__ */ jsx20("tbody", { children: isLoading ? /* @__PURE__ */ jsx20("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx20("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx20(Loader_default.box, {}) }) }) : dataAfterPagination.length > 0 ? dataAfterPagination.map((item, rowIndex) => /* @__PURE__ */ jsx20(
7253
7254
  "tr",
7254
7255
  {
7255
7256
  className: onClickRow ? "isClickable" : void 0,
@@ -7257,7 +7258,7 @@ var TableComponent = forwardRef15(function Table({
7257
7258
  children: columns.map((column, colIndex) => /* @__PURE__ */ jsx20(TdStyledComponent, { textAlign: column.align, children: renderCellContent(column, item, rowIndex) }, column.type + column.label + colIndex))
7258
7259
  },
7259
7260
  JSON.stringify(item) + rowIndex
7260
- )) : /* @__PURE__ */ jsx20("tr", { children: /* @__PURE__ */ jsx20("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx20(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
7261
+ )) : /* @__PURE__ */ jsx20("tr", { className: "withoutHover", children: /* @__PURE__ */ jsx20("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ jsx20(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
7261
7262
  pageSize !== void 0 && /* @__PURE__ */ jsx20("tfoot", { children: /* @__PURE__ */ jsx20("tr", { className: "isFooter", children: /* @__PURE__ */ jsx20("td", { colSpan: columns.length, children: /* @__PURE__ */ jsxs16(
7262
7263
  Div_default.column,
7263
7264
  {