@hackplan/polaris
Version:
Shopify’s product component library
28 lines (27 loc) • 824 B
TypeScript
export declare type SortDirection = 'ascending' | 'descending' | 'none';
export interface ColumnVisibilityData {
leftEdge: number;
rightEdge: number;
isVisible?: boolean;
}
interface ScrollPosition {
left?: number;
top?: number;
}
export interface ResourceTableState {
selectMode: boolean;
collapsed: boolean;
columnVisibilityData: ColumnVisibilityData[];
previousColumn?: ColumnVisibilityData;
currentColumn?: ColumnVisibilityData;
sortedColumnIndex?: number;
sortDirection?: SortDirection;
heights: number[];
preservedScrollPosition: ScrollPosition;
isScrolledFarthestLeft?: boolean;
isScrolledFarthestRight?: boolean;
isDragging: boolean;
}
export declare const SELECT_ALL_ITEMS = "All";
export declare type SelectedIndex = number[] | 'All';
export {};