@algorithm-shift/design-system 1.2.24 → 1.2.25

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
@@ -2077,8 +2077,9 @@ var Table2 = ({ columns, data, rowActions, className, style, pagination = false,
2077
2077
  setCurrentPage(page);
2078
2078
  onPageChange?.(page);
2079
2079
  };
2080
+ const paginatedData = enablePagination ? rawData.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage) : rawData;
2080
2081
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: `${className} space-y-3`, style, children: [
2081
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DataTable, { columns: rawColumns, data: rawData, rowActions: rawRowActions }),
2082
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DataTable, { columns: rawColumns, data: paginatedData, rowActions: rawRowActions }),
2082
2083
  enablePagination && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2083
2084
  Pagination_default,
2084
2085
  {