@facter/ds-core 1.7.4 → 1.7.5

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.js CHANGED
@@ -1151,6 +1151,7 @@ function useDataTableInternal({
1151
1151
  pageIndex: 0,
1152
1152
  pageSize: 10
1153
1153
  });
1154
+ console.log("[useDataTableInternal] pagination state", pagination);
1154
1155
  const table = reactTable.useReactTable({
1155
1156
  data,
1156
1157
  columns,
@@ -1230,7 +1231,10 @@ function DataTableProvider({
1230
1231
  [density, setDensity]
1231
1232
  );
1232
1233
  const paginationValue = React49__namespace.useMemo(
1233
- () => ({ pageIndex, pageSize }),
1234
+ () => {
1235
+ console.log("[DataTableProvider] creating paginationValue", { pageIndex, pageSize });
1236
+ return { pageIndex, pageSize };
1237
+ },
1234
1238
  [pageIndex, pageSize]
1235
1239
  );
1236
1240
  const tableValue = table;
@@ -1647,6 +1651,7 @@ var DataTablePagination = React49__namespace.memo(function DataTablePagination2(
1647
1651
  }) {
1648
1652
  useDataTable();
1649
1653
  const { selectedRowCount, totalRows } = useDataTableMeta();
1654
+ const paginationHook = useDataTablePagination();
1650
1655
  const {
1651
1656
  pageIndex,
1652
1657
  pageSize,
@@ -1659,7 +1664,8 @@ var DataTablePagination = React49__namespace.memo(function DataTablePagination2(
1659
1664
  nextPage,
1660
1665
  firstPage,
1661
1666
  lastPage
1662
- } = useDataTablePagination();
1667
+ } = paginationHook;
1668
+ console.log("[DataTablePagination] render", { mode, pageIndex, pageSize, externalPageCount, internalPageCount });
1663
1669
  const pageCount = mode === "server" && externalPageCount !== void 0 ? externalPageCount : internalPageCount;
1664
1670
  const canGoPrevious = pageIndex > 0;
1665
1671
  const canGoNext = pageIndex < pageCount - 1;
@@ -1737,7 +1743,11 @@ var DataTablePagination = React49__namespace.memo(function DataTablePagination2(
1737
1743
  variant: "outline",
1738
1744
  size: "icon-sm",
1739
1745
  className: "h-8 w-8 p-0",
1740
- onClick: nextPage,
1746
+ onClick: () => {
1747
+ console.log("[DataTablePagination] nextPage clicked, current pageIndex:", pageIndex);
1748
+ nextPage();
1749
+ console.log("[DataTablePagination] nextPage called");
1750
+ },
1741
1751
  disabled: !canGoNext,
1742
1752
  "aria-label": "Pr\xF3xima p\xE1gina",
1743
1753
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })