UNPKG

@trellixio/roaster-coffee

Version:
30 lines 1.3 kB
/// <reference types="react" /> import type { SelectionType, SELECT_ALL_ITEMS } from './types'; export interface TableContextType { /** * Indicates the bulk selection state of the table. * It can be a boolean or the string 'indeterminate'. */ bulkSelectState?: boolean | 'indeterminate'; /** * The number of selected items in the table. * This can be a number or the string 'All' (which means that all items are selected). */ selectedItemsCount: typeof SELECT_ALL_ITEMS | number; /** Indicates whether the table is in select mode. */ selectMode: boolean; /** The total number of items in the table. */ itemCount: number; /** Indicates whether the table is selectable. */ selectable?: boolean; } export declare const TableContext: import("react").Context<TableContextType>; export declare const TableSelectionChangeContext: import("react").Context<(selectionType: SelectionType, selection?: string) => void>; export interface TableRowContextType { /** Indicates whether the table is selectable. */ selectable: boolean; /** Indicates whether the table is in select mode. */ selectMode: boolean; } export declare const TableRowContext: import("react").Context<TableRowContextType>; //# sourceMappingURL=context.d.ts.map