@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.mjs CHANGED
@@ -2008,8 +2008,9 @@ var Table2 = ({ columns, data, rowActions, className, style, pagination = false,
2008
2008
  setCurrentPage(page);
2009
2009
  onPageChange?.(page);
2010
2010
  };
2011
+ const paginatedData = enablePagination ? rawData.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage) : rawData;
2011
2012
  return /* @__PURE__ */ jsxs23("div", { className: `${className} space-y-3`, style, children: [
2012
- /* @__PURE__ */ jsx41(DataTable, { columns: rawColumns, data: rawData, rowActions: rawRowActions }),
2013
+ /* @__PURE__ */ jsx41(DataTable, { columns: rawColumns, data: paginatedData, rowActions: rawRowActions }),
2013
2014
  enablePagination && /* @__PURE__ */ jsx41(
2014
2015
  Pagination_default,
2015
2016
  {