import { default as React, ReactNode } from 'react'; import { NextSortDirection, SortState, TableColumn, TableSelectionProps, TableVariant } from './types'; import { TableMini } from './TableMini'; export type TableProps = { /** * className for the element. */ className?: string; /** * The columns to display. */ columns: TableColumn[]; /** * The data to display. */ data: T[]; /** * The footer of the Table. */ footer?: ReactNode; /** * The maximum height of the Table (will allow the rows to be scrollable). */ maxHeight?: number | string; /** * The size of the rows. * @default normal */ rowHeight?: 'normal' | 'compact'; /** * Function to get a row's unique identifier. */ getRowId?: (row: T) => string; /** * Function to get whether a row is active. */ getIsRowActive?(row: T): boolean; /** * Function to get whether a row is disabled. */ getIsRowDisabled?(row: T): boolean; /** * Get whether a given row should be checkable. * By default, all options can be checked. */ getIsRowCheckable?: (option: T) => boolean; /** * Function to get the row's visual style. */ getRowVariant?(row: T): TableVariant | undefined; /** * Handler that is called when a row is clicked. */ onRowClick?(row: T): void; /** * Defines the default sort state (direction and column id). * Sorting capability is disabled when groupBy is provided. */ defaultSortState?: SortState; /** * Defines the direction following each sort direction. * Sorting capability is disabled when groupBy is provided. */ nextSortDirection?: NextSortDirection; /** * The content to display if the data is empty. */ emptyState?: { title: string; subtitle?: ReactNode; }; /** * Function to group row together. * Disable sorting capability. */ groupBy?: (row: T) => string; /** * Render function for grouped option. * If not provided, the key returned by groupBy will be displayed */ renderGroupedRowHeader?: (value: string, aggregatedRows: T[]) => ReactNode; } & TableSelectionProps; declare function Table({ className, columns, data, footer, maxHeight, rowHeight, selectedRowIds, getIsRowActive, getIsRowDisabled, getIsRowCheckable, getRowVariant, getRowId, groupBy, renderGroupedRowHeader, onRowClick, onRowSelectionChange, onAllRowsSelectionChange, defaultSortState, nextSortDirection, emptyState, ...rest }: TableProps): React.JSX.Element; declare namespace Table { var Mini: typeof TableMini; } export { Table }; //# sourceMappingURL=Table.d.ts.map