@algorithm-shift/design-system 1.2.29 → 1.2.31

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
@@ -2154,7 +2154,7 @@ var Pagination_default = CustomPagination;
2154
2154
  // src/components/DataDisplay/Table/Table.tsx
2155
2155
  import { useState as useState13 } from "react";
2156
2156
  import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
2157
- var Table2 = ({ columns, data, rowActions, className, style, pagination = false, itemsPerPage = 10, onPageChange }) => {
2157
+ var Table2 = ({ columns, data, rowActions, className, style, pagination = false, itemsPerPage = 10, onPageChange, loading = false }) => {
2158
2158
  const rawColumns = Array.isArray(columns) ? columns : [];
2159
2159
  const rawData = Array.isArray(data) ? data : [];
2160
2160
  const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
@@ -2166,7 +2166,7 @@ var Table2 = ({ columns, data, rowActions, className, style, pagination = false,
2166
2166
  };
2167
2167
  const paginatedData = enablePagination ? rawData.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage) : rawData;
2168
2168
  return /* @__PURE__ */ jsxs24("div", { className: `${className} space-y-3`, style, children: [
2169
- /* @__PURE__ */ jsx41(DataTable, { columns: rawColumns, data: paginatedData, rowActions: rawRowActions }),
2169
+ /* @__PURE__ */ jsx41(DataTable, { columns: rawColumns, data: paginatedData, rowActions: rawRowActions, loading }),
2170
2170
  enablePagination && /* @__PURE__ */ jsx41(
2171
2171
  Pagination_default,
2172
2172
  {