@algorithm-shift/design-system 1.2.73 → 1.2.74

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.d.mts CHANGED
@@ -306,6 +306,11 @@ interface CustomPaginationProps {
306
306
 
307
307
  type PaginationMode = 'client' | 'server';
308
308
 
309
+ interface CellClickProps {
310
+ id: string;
311
+ column: any;
312
+ }
313
+
309
314
  interface ExtendedTableProps extends TableProps {
310
315
  paginationMode?: PaginationMode;
311
316
  page?: number;
@@ -314,6 +319,7 @@ interface ExtendedTableProps extends TableProps {
314
319
  onSortChange?: (props: SortChangeProps) => void;
315
320
  onFilterChange?: (props: FilterChangeProps) => void;
316
321
  onGlobalSearch?: (props: SearchChangeProps) => void;
322
+ onCellClick?: (props: CellClickProps) => void;
317
323
  sort_by?: string;
318
324
  sort_order?: string;
319
325
  }
package/dist/index.d.ts CHANGED
@@ -306,6 +306,11 @@ interface CustomPaginationProps {
306
306
 
307
307
  type PaginationMode = 'client' | 'server';
308
308
 
309
+ interface CellClickProps {
310
+ id: string;
311
+ column: any;
312
+ }
313
+
309
314
  interface ExtendedTableProps extends TableProps {
310
315
  paginationMode?: PaginationMode;
311
316
  page?: number;
@@ -314,6 +319,7 @@ interface ExtendedTableProps extends TableProps {
314
319
  onSortChange?: (props: SortChangeProps) => void;
315
320
  onFilterChange?: (props: FilterChangeProps) => void;
316
321
  onGlobalSearch?: (props: SearchChangeProps) => void;
322
+ onCellClick?: (props: CellClickProps) => void;
317
323
  sort_by?: string;
318
324
  sort_order?: string;
319
325
  }
package/dist/index.js CHANGED
@@ -28790,7 +28790,10 @@ var Table4 = ({
28790
28790
  onSortChange: (col, dir) => onSortChange?.({ sort_by: col, sort_order: dir }),
28791
28791
  onFilterChange: (filters) => onFilterChange?.({ columnKey: filters.columnKey, columnTerm: filters.columnTerm }),
28792
28792
  onGlobalSearch: (term) => onGlobalSearch?.({ searchTerm: term }),
28793
- globalSearch
28793
+ globalSearch,
28794
+ onCellClick: (cell) => {
28795
+ props.onCellClick?.({ id: cell.id, column: cell });
28796
+ }
28794
28797
  }
28795
28798
  ) });
28796
28799
  };