freemium-ui 1.0.150 → 1.0.154
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.
|
@@ -11,6 +11,8 @@ declare type ConfirmationProps = {
|
|
|
11
11
|
footerStyles?: any;
|
|
12
12
|
confirmButtonText?: string;
|
|
13
13
|
cancelButtonText?: string;
|
|
14
|
+
confirmButtonDisabled?: boolean;
|
|
15
|
+
cancelButtonDisabled?: boolean;
|
|
14
16
|
onConfirm?: () => void;
|
|
15
17
|
};
|
|
16
18
|
export declare const Confirmation: React.ForwardRefExoticComponent<ConfirmationProps & React.RefAttributes<unknown>>;
|
|
File without changes
|
|
@@ -74,6 +74,7 @@ export declare type HeaderGroupProps = {
|
|
|
74
74
|
headers: Array<HeaderProps>;
|
|
75
75
|
};
|
|
76
76
|
export declare type ColumnOptions = {
|
|
77
|
+
id?: string;
|
|
77
78
|
Header?: string;
|
|
78
79
|
accessor?: string;
|
|
79
80
|
disableSortBy?: boolean;
|
|
@@ -97,6 +98,9 @@ declare type IdType = Extract<keyof any, string> | string;
|
|
|
97
98
|
declare type TableProps = {
|
|
98
99
|
onSelectAll?: (checked: boolean) => void;
|
|
99
100
|
onMenuOptionSelect?: (option: string, row: RowProps) => void;
|
|
101
|
+
onPageClick?: (pageNumber: number) => void;
|
|
102
|
+
onFirstClick?: (pageNumber?: number) => void;
|
|
103
|
+
onLastClick?: (pageNumber?: number) => void;
|
|
100
104
|
onPrevious?: (prev: string | boolean) => void;
|
|
101
105
|
onNext?: (prev: string | boolean) => void;
|
|
102
106
|
onRowSelect?: (selectedRowIds: Record<IdType, boolean>) => void;
|
|
@@ -105,13 +109,14 @@ declare type TableProps = {
|
|
|
105
109
|
hideTableHeaderOnEmpty?: boolean;
|
|
106
110
|
emptyComponent?: React.ReactNode;
|
|
107
111
|
headerComponent?: React.ReactNode;
|
|
112
|
+
loadingComponent?: React.ReactNode;
|
|
108
113
|
filterComponent?: React.ReactNode;
|
|
109
114
|
data?: Array<unknown>;
|
|
110
115
|
next?: string | boolean;
|
|
111
116
|
previous?: string | boolean;
|
|
112
117
|
count?: number;
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
perPage?: number;
|
|
119
|
+
pageNumber?: number;
|
|
115
120
|
sortable?: boolean;
|
|
116
121
|
showSelectAllInTable?: boolean;
|
|
117
122
|
showSelections?: boolean;
|
|
@@ -121,7 +126,7 @@ declare type TableProps = {
|
|
|
121
126
|
showPagination?: boolean;
|
|
122
127
|
name?: string;
|
|
123
128
|
id?: string;
|
|
124
|
-
rowMenuOptions?: (rowData
|
|
129
|
+
rowMenuOptions?: (rowData?: any) => any[];
|
|
125
130
|
paginationOptions?: Array<number>;
|
|
126
131
|
theme?: FreemiumUIThemes;
|
|
127
132
|
initialState?: TableInitialState;
|