Update react-table to v8 (#2131)

Updating react-table to v8. 
- Migrating the existing table to v8
- Preserving the visuals and logic

What's done?
- Cell components are moved under `Cells` folder
- Old styles for react-table-6 is removed.
- Old types are removed
- All logic was preserved
- Some cell components are removed for simplicity


Fixes: https://github.com/grafana/oss-big-tent-squad/issues/125
This commit is contained in:
ismail simsek
2025-12-10 19:25:04 +01:00
committed by GitHub
parent e073382983
commit cc492b916d
20 changed files with 931 additions and 745 deletions

View File

@@ -125,50 +125,6 @@ export interface TriggerSeverity {
export type TriggerColor = string;
export interface RTRow<T> {
/** the materialized row of data */
row: any;
/** the original row of data */
original: T;
/** the index of the row in the original array */
index: number;
/** the index of the row relative to the current view */
viewIndex: number;
/** the nesting level of this row */
level: number;
/** the nesting path of this row */
nestingPath: number[];
/** true if this row's values were aggregated */
aggregated?: boolean;
/** true if this row was produced by a pivot */
groupedByPivot?: boolean;
/** any sub rows defined by the `subRowKey` prop */
subRows?: boolean;
}
export interface RTCell<T> extends RTRow<T> {
/** true if this row is expanded */
isExpanded?: boolean;
/** the materialized value of this cell */
value: any;
/** the resize information for this cell's column */
resized: any[];
/** true if the column is visible */
show?: boolean;
/** the resolved width of this cell */
width: number;
/** the resolved maxWidth of this cell */
maxWidth: number;
/** the resolved tdProps from `getTdProps` for this cell */
tdProps: any;
/** the resolved column props from 'getProps' for this cell's column */
columnProps: any;
/** the resolved array of classes for this cell */
classes: string[];
/** the resolved styles for this cell */
styles: any;
}
export interface RTResize {
id: string;
value: number;