@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
72 lines (63 loc) • 1.99 kB
text/typescript
/**
* MUI TanStack DataTable
*
* A comprehensive, highly customizable data table component built with:
* - Material-UI (MUI) for styling
* - TanStack Table for table logic
* - TypeScript for type safety
*
* Features:
* - Column sorting, filtering, resizing, reordering, and pinning
* - Row selection, expansion, and virtualization
* - Pagination with customizable page sizes
* - Global and column-specific search/filtering
* - Export functionality (CSV, XLSX, JSON)
* - Responsive design with mobile support
* - Accessibility features
* - Customizable toolbar and actions
* - Loading states and empty data handling
*/
// Main components - be specific to avoid conflicts
export { DataTable } from './lib/data-table';
// Other component exports
export * from './lib/components/headers';
export * from './lib/components/rows';
export * from './lib/components/filters';
export * from './lib/components/pagination';
export * from './lib/components/droupdown/menu-dropdown';
// Individual toolbar components for custom toolbars
export {
ColumnVisibilityControl,
ColumnPinningControl,
ColumnResetControl,
TableExportControl,
TableSizeControl,
BulkActionsToolbar,
DataTableToolbar,
} from './lib/components/toolbar';
// Export bulk action types
export type { BulkActionsToolbarProps } from './lib/components/toolbar';
// Utilities and helpers
export * from './lib/utils/styling-helpers';
export * from './lib/utils/column-helpers';
export * from './lib/utils/table-helpers';
export * from './lib/utils/logger';
// Custom hooks
export * from './lib/types';
// Re-export commonly used types from TanStack Table
export type {
Column,
ColumnDef,
Row,
Table,
Header,
Cell,
SortingState,
ColumnFiltersState,
VisibilityState,
ColumnOrderState,
ColumnPinningState,
PaginationState,
} from '@tanstack/react-table';
// Custom features (this includes SelectMode from features)
export * from './lib/features';