@mdspl/mds-shared-ui 1.2.0 → 1.2.2

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.ts CHANGED
@@ -69,7 +69,7 @@ export declare interface DataTableAction<T> {
69
69
  export declare interface DataTableProps<T> {
70
70
  tableId: string;
71
71
  headers?: Column[];
72
- data?: T[];
72
+ data?: DataTableRow<T>[];
73
73
  loading?: boolean;
74
74
  emptyMessage?: string;
75
75
  actions?: DataTableAction<T>[];
@@ -87,6 +87,13 @@ export declare interface DataTableProps<T> {
87
87
  onRowSelectEvent?: 'left' | 'right';
88
88
  }
89
89
 
90
+ export declare type DataTableRow<T> = {
91
+ __key?: string | number;
92
+ __raw: T;
93
+ id?: string | number;
94
+ cells?: Record<string, default_2.ReactNode>;
95
+ };
96
+
90
97
  export declare type DateTimeVariant = 'date' | 'time' | 'dateTime' | 'full' | 'relative' | 'short';
91
98
 
92
99
  export declare const deletePreset: (pageKey: string, id: string) => void;