react-virtuoso 2.8.1 → 2.8.2
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/Table.d.ts +18 -18
- package/dist/components.d.ts +9 -18
- package/dist/interfaces.d.ts +7 -1
- package/package.json +1 -1
package/dist/Table.d.ts
CHANGED
|
@@ -5482,9 +5482,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5482
5482
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5483
5483
|
context?: unknown;
|
|
5484
5484
|
}> | null | undefined>;
|
|
5485
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5486
|
-
ref?: ((instance:
|
|
5487
|
-
}, "ref" | "style" | "children"> & {
|
|
5485
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5486
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5487
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5488
5488
|
'data-test-id': string;
|
|
5489
5489
|
} & {
|
|
5490
5490
|
context?: unknown;
|
|
@@ -5589,9 +5589,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5589
5589
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5590
5590
|
context?: unknown;
|
|
5591
5591
|
}> | null | undefined>;
|
|
5592
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5593
|
-
ref?: ((instance:
|
|
5594
|
-
}, "ref" | "style" | "children"> & {
|
|
5592
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5593
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5594
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5595
5595
|
'data-test-id': string;
|
|
5596
5596
|
} & {
|
|
5597
5597
|
context?: unknown;
|
|
@@ -5626,9 +5626,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5626
5626
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5627
5627
|
context?: unknown;
|
|
5628
5628
|
}> | null | undefined>;
|
|
5629
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5630
|
-
ref?: ((instance:
|
|
5631
|
-
}, "ref" | "style" | "children"> & {
|
|
5629
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5630
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5631
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5632
5632
|
'data-test-id': string;
|
|
5633
5633
|
} & {
|
|
5634
5634
|
context?: unknown;
|
|
@@ -5779,9 +5779,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5779
5779
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5780
5780
|
context?: unknown;
|
|
5781
5781
|
}> | null | undefined>;
|
|
5782
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5783
|
-
ref?: ((instance:
|
|
5784
|
-
}, "ref" | "style" | "children"> & {
|
|
5782
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5783
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5784
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5785
5785
|
'data-test-id': string;
|
|
5786
5786
|
} & {
|
|
5787
5787
|
context?: unknown;
|
|
@@ -5885,9 +5885,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5885
5885
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5886
5886
|
context?: unknown;
|
|
5887
5887
|
}> | null | undefined>;
|
|
5888
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5889
|
-
ref?: ((instance:
|
|
5890
|
-
}, "ref" | "style" | "children"> & {
|
|
5888
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5889
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5890
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5891
5891
|
'data-test-id': string;
|
|
5892
5892
|
} & {
|
|
5893
5893
|
context?: unknown;
|
|
@@ -5991,9 +5991,9 @@ export declare const Table: React.ForwardRefExoticComponent<{} & {
|
|
|
5991
5991
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<{
|
|
5992
5992
|
context?: unknown;
|
|
5993
5993
|
}> | null | undefined>;
|
|
5994
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<
|
|
5995
|
-
ref?: ((instance:
|
|
5996
|
-
}, "ref" | "style" | "children"> & {
|
|
5994
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | React.ComponentType<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & {
|
|
5995
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
5996
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
5997
5997
|
'data-test-id': string;
|
|
5998
5998
|
} & {
|
|
5999
5999
|
context?: unknown;
|
package/dist/components.d.ts
CHANGED
|
@@ -7529,12 +7529,9 @@ export declare const TableVirtuoso: <ItemData extends unknown = any, Context ext
|
|
|
7529
7529
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<{
|
|
7530
7530
|
context?: unknown;
|
|
7531
7531
|
}> | null | undefined>;
|
|
7532
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
7533
|
-
ref?: ((instance:
|
|
7534
|
-
}, "ref" | "style" | "children"> & {
|
|
7535
|
-
/**
|
|
7536
|
-
* Additional context available in the custom components and content callbacks
|
|
7537
|
-
*/
|
|
7532
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableSectionElement>> & {
|
|
7533
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
7534
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
7538
7535
|
'data-test-id': string;
|
|
7539
7536
|
} & {
|
|
7540
7537
|
context?: unknown;
|
|
@@ -7655,12 +7652,9 @@ export declare const TableVirtuoso: <ItemData extends unknown = any, Context ext
|
|
|
7655
7652
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<{
|
|
7656
7653
|
context?: unknown;
|
|
7657
7654
|
}> | null | undefined>;
|
|
7658
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
7659
|
-
ref?: ((instance:
|
|
7660
|
-
}, "ref" | "style" | "children"> & {
|
|
7661
|
-
/**
|
|
7662
|
-
* Additional context available in the custom components and content callbacks
|
|
7663
|
-
*/
|
|
7655
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableSectionElement>> & {
|
|
7656
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
7657
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
7664
7658
|
'data-test-id': string;
|
|
7665
7659
|
} & {
|
|
7666
7660
|
context?: unknown;
|
|
@@ -7695,12 +7689,9 @@ export declare const TableVirtuoso: <ItemData extends unknown = any, Context ext
|
|
|
7695
7689
|
TableHeadComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<{
|
|
7696
7690
|
context?: unknown;
|
|
7697
7691
|
}> | null | undefined>;
|
|
7698
|
-
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
7699
|
-
ref?: ((instance:
|
|
7700
|
-
}, "ref" | "style" | "children"> & {
|
|
7701
|
-
/**
|
|
7702
|
-
* Additional context available in the custom components and content callbacks
|
|
7703
|
-
*/
|
|
7692
|
+
TableBodyComponent: import("@virtuoso.dev/urx").StatefulStream<"div" | "table" | "tbody" | "thead" | "tr" | import("react").ComponentType<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableSectionElement>> & {
|
|
7693
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
7694
|
+
}, "ref" | "style" | "className" | "children"> & {
|
|
7704
7695
|
'data-test-id': string;
|
|
7705
7696
|
} & {
|
|
7706
7697
|
context?: unknown;
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -26,6 +26,12 @@ export interface GroupProps {
|
|
|
26
26
|
}
|
|
27
27
|
export declare type TopItemListProps = Pick<ComponentPropsWithRef<'div'>, 'style' | 'children'>;
|
|
28
28
|
export declare type TableProps = Pick<ComponentPropsWithRef<'table'>, 'style'>;
|
|
29
|
+
/**
|
|
30
|
+
* Passed to the Components.TableBody custom component
|
|
31
|
+
*/
|
|
32
|
+
export declare type TableBodyProps = Pick<ComponentPropsWithRef<'tbody'>, 'style' | 'children' | 'ref' | 'className'> & {
|
|
33
|
+
'data-test-id': string;
|
|
34
|
+
};
|
|
29
35
|
/**
|
|
30
36
|
* Passed to the Components.List custom component
|
|
31
37
|
*/
|
|
@@ -157,7 +163,7 @@ export interface TableComponents<Context = unknown> {
|
|
|
157
163
|
/**
|
|
158
164
|
* Set to customize the items wrapper. Default is `tbody`.
|
|
159
165
|
*/
|
|
160
|
-
TableBody?: ComponentType<
|
|
166
|
+
TableBody?: ComponentType<TableBodyProps & {
|
|
161
167
|
context?: Context;
|
|
162
168
|
}>;
|
|
163
169
|
/**
|