@popmenu/table 0.68.0 → 0.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,9 +6,9 @@ declare const defaultTableProps: {
|
|
|
6
6
|
sortable: boolean;
|
|
7
7
|
searchable: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare type DefaultTableProps = TableProps & typeof defaultTableProps;
|
|
9
|
+
declare type DefaultTableProps<T> = TableProps<T> & typeof defaultTableProps;
|
|
10
10
|
export declare const Table: {
|
|
11
|
-
(props: DefaultTableProps): JSX.Element;
|
|
11
|
+
<T>(props: DefaultTableProps<T>): JSX.Element;
|
|
12
12
|
defaultProps: {
|
|
13
13
|
enableSortingRemoval: boolean;
|
|
14
14
|
fullWidth: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextFieldProps } from '@material-ui/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ColumnDef, ColumnFiltersState, PaginationState, SortingState } from '@tanstack/react-table';
|
|
3
3
|
import { Dispatch, SetStateAction } from 'react';
|
|
4
4
|
export interface ColumnFilter {
|
|
5
5
|
id: string;
|
|
@@ -9,7 +9,7 @@ export interface TableProps<T = unknown> {
|
|
|
9
9
|
/** List of objects representing the rows of a Table. */
|
|
10
10
|
data: Array<T>;
|
|
11
11
|
/** List of column definitions. */
|
|
12
|
-
columns: Array<
|
|
12
|
+
columns: Array<ColumnDef<T, any>>;
|
|
13
13
|
/** Change column sorting change pattern - true: 'none' -> 'desc' -> 'asc' -> 'none' -> ..., false: 'none' -> 'desc' -> 'asc' -> 'desc' -> 'asc' -> ... */
|
|
14
14
|
enableSortingRemoval?: boolean;
|
|
15
15
|
/** Controls table loading state. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TableProps } from './TableProps';
|
|
2
|
-
export declare const useStyles: (props: TableProps<
|
|
2
|
+
export declare const useStyles: (props: TableProps<any>) => import("@material-ui/styles").ClassNameMap<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popmenu/table",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Popmenu Design System Team",
|
|
6
6
|
"description": "React components for all Popmenu apps on the web.",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"react": "17.x"
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "e8967545979ceb5bc05b5ab53532d47a1b8bab22"
|
|
32
32
|
}
|