@trail-ui/react
Version:
25 lines (22 loc) • 957 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ColumnDef, getCoreRowModel, Column, Table as Table$1 } from '@tanstack/react-table';
import react__default from 'react';
import { CheckboxProps } from '../checkbox/checkbox.js';
import '@trail-ui/theme';
import 'react-aria-components';
import '../checkbox/checkbox-icon.js';
interface TableProps<T> {
columns: ColumnDef<T>[];
data: T[];
getCoreRowModel?: typeof getCoreRowModel;
}
declare function Table<T>(props: TableProps<T>): react_jsx_runtime.JSX.Element;
declare function Filter({ column, table }: {
column: Column<any, any>;
table: Table$1<any>;
}): react_jsx_runtime.JSX.Element;
declare const IndeterminateCheckbox: {
({ isIndeterminate, isSelected, className, ...rest }: CheckboxProps & react__default.RefAttributes<HTMLLabelElement>): react_jsx_runtime.JSX.Element;
displayName: string;
};
export { Filter, IndeterminateCheckbox, Table, TableProps };