freemium-ui 1.0.151 → 1.0.155
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
|
|
@@ -98,21 +98,25 @@ declare type IdType = Extract<keyof any, string> | string;
|
|
|
98
98
|
declare type TableProps = {
|
|
99
99
|
onSelectAll?: (checked: boolean) => void;
|
|
100
100
|
onMenuOptionSelect?: (option: string, row: RowProps) => void;
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
onPageClick?: (pageNumber: number) => void;
|
|
102
|
+
onFirstClick?: (pageNumber?: number) => void;
|
|
103
|
+
onLastClick?: (pageNumber?: number) => void;
|
|
104
|
+
onPrevious?: (pageNumber?: number) => void;
|
|
105
|
+
onNext?: (pageNumber?: number) => void;
|
|
103
106
|
onRowSelect?: (selectedRowIds: Record<IdType, boolean>) => void;
|
|
104
107
|
onRowClick?: (row: RowProps, column: HeaderProps) => void;
|
|
105
108
|
columns?: Array<ColumnOptions> | Array<ColumnGroupOptions>;
|
|
106
109
|
hideTableHeaderOnEmpty?: boolean;
|
|
107
110
|
emptyComponent?: React.ReactNode;
|
|
108
111
|
headerComponent?: React.ReactNode;
|
|
112
|
+
loadingComponent?: React.ReactNode;
|
|
109
113
|
filterComponent?: React.ReactNode;
|
|
110
114
|
data?: Array<unknown>;
|
|
111
115
|
next?: string | boolean;
|
|
112
116
|
previous?: string | boolean;
|
|
113
117
|
count?: number;
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
perPage?: number;
|
|
119
|
+
pageNumber?: number;
|
|
116
120
|
sortable?: boolean;
|
|
117
121
|
showSelectAllInTable?: boolean;
|
|
118
122
|
showSelections?: boolean;
|
|
@@ -122,7 +126,7 @@ declare type TableProps = {
|
|
|
122
126
|
showPagination?: boolean;
|
|
123
127
|
name?: string;
|
|
124
128
|
id?: string;
|
|
125
|
-
rowMenuOptions?: (rowData
|
|
129
|
+
rowMenuOptions?: (rowData?: any) => any[];
|
|
126
130
|
paginationOptions?: Array<number>;
|
|
127
131
|
theme?: FreemiumUIThemes;
|
|
128
132
|
initialState?: TableInitialState;
|