freemium-ui 1.0.139 → 1.0.140
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.
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FreemiumUIThemes from '../../theme';
|
|
3
|
-
declare type
|
|
3
|
+
export declare type SelectableHeaderProps = {
|
|
4
|
+
getToggleAllRowsSelectedProps: () => GetToggleRow;
|
|
5
|
+
toggleAllRowsSelected: (checked: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare type HooksProps = {
|
|
8
|
+
visibleColumns: Array<unknown>;
|
|
9
|
+
};
|
|
10
|
+
export declare type GetToggleRow = {
|
|
4
11
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
12
|
style: React.CSSProperties;
|
|
6
13
|
title: string;
|
|
7
14
|
checked: boolean;
|
|
8
15
|
indeterminate: boolean;
|
|
9
16
|
};
|
|
10
|
-
declare type CellProps = {
|
|
17
|
+
export declare type CellProps = {
|
|
11
18
|
getCellProps: () => {
|
|
12
19
|
key: string;
|
|
13
20
|
role: string;
|
|
@@ -16,7 +23,7 @@ declare type CellProps = {
|
|
|
16
23
|
row: RowProps;
|
|
17
24
|
column: HeaderProps;
|
|
18
25
|
};
|
|
19
|
-
declare type RowProps = {
|
|
26
|
+
export declare type RowProps = {
|
|
20
27
|
getRowProps: () => {
|
|
21
28
|
key: string;
|
|
22
29
|
role: string;
|
|
@@ -30,7 +37,7 @@ declare type RowProps = {
|
|
|
30
37
|
index: number;
|
|
31
38
|
cells: Array<CellProps>;
|
|
32
39
|
};
|
|
33
|
-
declare type GetSort = {
|
|
40
|
+
export declare type GetSort = {
|
|
34
41
|
className?: string;
|
|
35
42
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
36
43
|
style?: React.CSSProperties;
|
|
@@ -41,7 +48,7 @@ interface GetHeader extends GetSort {
|
|
|
41
48
|
key: string;
|
|
42
49
|
colSpan: number;
|
|
43
50
|
}
|
|
44
|
-
declare type HeaderProps = {
|
|
51
|
+
export declare type HeaderProps = {
|
|
45
52
|
getHeaderProps: (prop?: GetSort) => GetHeader;
|
|
46
53
|
render: (type: string) => JSX.Element;
|
|
47
54
|
getSortByToggleProps: () => GetSort;
|
|
@@ -56,13 +63,23 @@ declare type HeaderProps = {
|
|
|
56
63
|
sortType?: string;
|
|
57
64
|
sortedIndex?: number;
|
|
58
65
|
};
|
|
59
|
-
declare type
|
|
66
|
+
export declare type HeaderGroupProps = {
|
|
67
|
+
getHeaderGroupProps: () => {
|
|
68
|
+
key: string;
|
|
69
|
+
role: string;
|
|
70
|
+
};
|
|
71
|
+
getFooterGroupProps: () => {
|
|
72
|
+
key: string;
|
|
73
|
+
};
|
|
74
|
+
headers: Array<HeaderProps>;
|
|
75
|
+
};
|
|
76
|
+
export declare type ColumnOptions = {
|
|
60
77
|
Header?: string;
|
|
61
78
|
accessor?: string;
|
|
62
79
|
disableSortBy?: boolean;
|
|
63
80
|
sortDescFirst?: boolean;
|
|
64
81
|
};
|
|
65
|
-
declare type TableInitialState = {
|
|
82
|
+
export declare type TableInitialState = {
|
|
66
83
|
pageIndex?: number;
|
|
67
84
|
columnOrder?: Array<string>;
|
|
68
85
|
hiddenColumns?: Array<string>;
|