@etsoo/react 1.8.55 → 1.8.56
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/lib/cjs/components/ScrollerGrid.d.ts +4 -0
- package/lib/cjs/components/ScrollerList.d.ts +4 -0
- package/lib/mjs/components/ScrollerGrid.d.ts +4 -0
- package/lib/mjs/components/ScrollerList.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/ScrollerGrid.tsx +7 -0
- package/src/components/ScrollerList.tsx +7 -0
|
@@ -17,6 +17,10 @@ export type ScrollToCellParam = {
|
|
|
17
17
|
rowAlign?: ScrollToRowParam["align"];
|
|
18
18
|
rowIndex: number;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* On cells rendered data
|
|
22
|
+
*/
|
|
23
|
+
export type OnCellsRenderedData = Parameters<NonNullable<GridProps<object>["onCellsRendered"]>>[0];
|
|
20
24
|
/**
|
|
21
25
|
* Scroller vertical grid props
|
|
22
26
|
*/
|
|
@@ -6,6 +6,10 @@ import { GridMethodRef } from "./GridMethodRef";
|
|
|
6
6
|
type ScrollerListRowProps<T extends object> = {
|
|
7
7
|
items: T[];
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* On rows rendered data
|
|
11
|
+
*/
|
|
12
|
+
export type OnRowsRenderedData = Parameters<NonNullable<ListProps<object>["onRowsRendered"]>>[0];
|
|
9
13
|
/**
|
|
10
14
|
* Scroller list forward ref
|
|
11
15
|
*/
|
|
@@ -17,6 +17,10 @@ export type ScrollToCellParam = {
|
|
|
17
17
|
rowAlign?: ScrollToRowParam["align"];
|
|
18
18
|
rowIndex: number;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* On cells rendered data
|
|
22
|
+
*/
|
|
23
|
+
export type OnCellsRenderedData = Parameters<NonNullable<GridProps<object>["onCellsRendered"]>>[0];
|
|
20
24
|
/**
|
|
21
25
|
* Scroller vertical grid props
|
|
22
26
|
*/
|
|
@@ -6,6 +6,10 @@ import { GridMethodRef } from "./GridMethodRef";
|
|
|
6
6
|
type ScrollerListRowProps<T extends object> = {
|
|
7
7
|
items: T[];
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* On rows rendered data
|
|
11
|
+
*/
|
|
12
|
+
export type OnRowsRenderedData = Parameters<NonNullable<ListProps<object>["onRowsRendered"]>>[0];
|
|
9
13
|
/**
|
|
10
14
|
* Scroller list forward ref
|
|
11
15
|
*/
|
package/package.json
CHANGED
|
@@ -27,6 +27,13 @@ export type ScrollToCellParam = {
|
|
|
27
27
|
rowIndex: number;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* On cells rendered data
|
|
32
|
+
*/
|
|
33
|
+
export type OnCellsRenderedData = Parameters<
|
|
34
|
+
NonNullable<GridProps<object>["onCellsRendered"]>
|
|
35
|
+
>[0];
|
|
36
|
+
|
|
30
37
|
/**
|
|
31
38
|
* Scroller vertical grid props
|
|
32
39
|
*/
|
|
@@ -14,6 +14,13 @@ type ScrollerListRowProps<T extends object> = {
|
|
|
14
14
|
items: T[];
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* On rows rendered data
|
|
19
|
+
*/
|
|
20
|
+
export type OnRowsRenderedData = Parameters<
|
|
21
|
+
NonNullable<ListProps<object>["onRowsRendered"]>
|
|
22
|
+
>[0];
|
|
23
|
+
|
|
17
24
|
/**
|
|
18
25
|
* Scroller list forward ref
|
|
19
26
|
*/
|