@espresso-lab/mantine-data-table 2.1.7 → 2.1.9

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.
@@ -96,6 +96,7 @@ export interface DataTableProps<T extends BaseEntity> {
96
96
  event: React.MouseEvent;
97
97
  }) => void;
98
98
  mobileCards?: boolean;
99
+ deleteConfirmMessage?: (records: T[]) => React.ReactNode;
99
100
  }
100
- export declare function DataTableInner<T extends BaseEntity>({ title, queryKey, connectedQueryKeys, apiPath, mutationApiPath, buttons, fields, selection, pagination, filters, actions, steps, defaultSort, onSortChange, createButtonText, queryParams, tabs, defaultTab, activeTab: controlledActiveTab, onActiveTabChange, canUpdate, canDelete, showRefresh, rowExpansion, onRowClick, mobileCards, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
101
+ export declare function DataTableInner<T extends BaseEntity>({ title, queryKey, connectedQueryKeys, apiPath, mutationApiPath, buttons, fields, selection, pagination, filters, actions, steps, defaultSort, onSortChange, createButtonText, queryParams, tabs, defaultTab, activeTab: controlledActiveTab, onActiveTabChange, canUpdate, canDelete, showRefresh, rowExpansion, onRowClick, mobileCards, deleteConfirmMessage, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
101
102
  export {};
@@ -1,8 +1,10 @@
1
1
  import { BaseEntity } from '../Hooks/useApi';
2
+ import { ReactNode } from 'react';
2
3
  export interface DeleteModalProps<T> {
3
4
  onClose: () => void;
4
5
  queryKey: (string | number)[];
5
6
  apiPath: string;
6
7
  selectedRecords: T[];
8
+ confirmMessage?: (records: T[]) => ReactNode;
7
9
  }
8
- export declare function DeleteModal<T extends BaseEntity>({ queryKey, apiPath, onClose, selectedRecords, }: DeleteModalProps<T>): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DeleteModal<T extends BaseEntity>({ queryKey, apiPath, onClose, selectedRecords, confirmMessage, }: DeleteModalProps<T>): import("react/jsx-runtime").JSX.Element;