@mdspl/mds-shared-ui 1.0.0 → 1.0.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
@@ -83,7 +83,7 @@ export declare interface DataTableProps<T = unknown> {
83
83
  loadingChildren?: JSX.Element;
84
84
  skeletonLoading?: boolean;
85
85
  pageSizeOptions?: number[];
86
- onRowSelect?: (row: T) => void;
86
+ onRowSelect?: (row: T, event?: default_2.MouseEvent) => void;
87
87
  onRowSelectEvent?: 'left' | 'right';
88
88
  }
89
89
 
@@ -104,6 +104,8 @@ export declare interface FormatDateTimeProps {
104
104
  fallback?: string;
105
105
  }
106
106
 
107
+ export declare const getColumnWidthKey: (tableId: string) => string;
108
+
107
109
  /**
108
110
  * getOption – outside React
109
111
  */
@@ -391,6 +393,8 @@ export declare const savePresets: (pageKey: string, items: PresetItem[]) => void
391
393
 
392
394
  export declare const setActionsConfig: (actionsConfig: ActionHeaderProps) => void;
393
395
 
396
+ export declare function setColumnWidth(columnId: string, width: number): void;
397
+
394
398
  export declare function setData(newData: any[], headers?: Column[]): void;
395
399
 
396
400
  export declare function setTableId(tableId: string): void;
@@ -423,6 +427,7 @@ declare interface TableState {
423
427
  sortColumn: string | null;
424
428
  sortDirection: 'asc' | 'desc';
425
429
  visibility: Record<string, boolean>;
430
+ columnWidths: Record<string, number>;
426
431
  columnOrder: Column[];
427
432
  data: any[];
428
433
  sortableColumns: {