@harpercollins/harpercollins-design-system 1.27.0 → 1.27.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.
- package/dist/cjs/index.cjs +55 -55
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/data-display/Table/Table.types.d.ts +2 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/data-display/Table/Table.types.d.ts +2 -4
- package/dist/index.d.ts +2 -4
- package/package.json +1 -1
|
@@ -8,10 +8,8 @@ export interface InfiniteScrollOptions {
|
|
|
8
8
|
enabled: boolean;
|
|
9
9
|
hasNextPage?: boolean;
|
|
10
10
|
isFetchingNextPage?: boolean;
|
|
11
|
-
fetchNextPage?: () => Promise<void
|
|
11
|
+
fetchNextPage?: (options?: any) => Promise<unknown> | void;
|
|
12
12
|
loadingText?: string;
|
|
13
|
-
/** Estimated row height in px used by the row virtualizer. Defaults to 40. */
|
|
14
|
-
estimateRowHeight?: number;
|
|
15
13
|
}
|
|
16
14
|
export interface TableProps<TData = unknown> {
|
|
17
15
|
id: string;
|
|
@@ -32,5 +30,5 @@ export interface TableProps<TData = unknown> {
|
|
|
32
30
|
toolbar?: TableToolbarOptions;
|
|
33
31
|
footer?: boolean;
|
|
34
32
|
isError?: boolean;
|
|
35
|
-
errorMessage?: string;
|
|
33
|
+
errorMessage?: string | JSX.Element;
|
|
36
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -118,10 +118,8 @@ interface InfiniteScrollOptions {
|
|
|
118
118
|
enabled: boolean;
|
|
119
119
|
hasNextPage?: boolean;
|
|
120
120
|
isFetchingNextPage?: boolean;
|
|
121
|
-
fetchNextPage?: () => Promise<void
|
|
121
|
+
fetchNextPage?: (options?: any) => Promise<unknown> | void;
|
|
122
122
|
loadingText?: string;
|
|
123
|
-
/** Estimated row height in px used by the row virtualizer. Defaults to 40. */
|
|
124
|
-
estimateRowHeight?: number;
|
|
125
123
|
}
|
|
126
124
|
interface TableProps<TData = unknown> {
|
|
127
125
|
id: string;
|
|
@@ -142,7 +140,7 @@ interface TableProps<TData = unknown> {
|
|
|
142
140
|
toolbar?: TableToolbarOptions;
|
|
143
141
|
footer?: boolean;
|
|
144
142
|
isError?: boolean;
|
|
145
|
-
errorMessage?: string;
|
|
143
|
+
errorMessage?: string | JSX.Element;
|
|
146
144
|
}
|
|
147
145
|
|
|
148
146
|
declare module "@tanstack/react-table" {
|