gantri-components 2.90.0-beta.5 → 2.90.0-beta.6

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.
@@ -2,11 +2,11 @@ import { RowData, RowSelectionState } from '@tanstack/react-table';
2
2
  import React, { PropsWithChildren } from 'react';
3
3
  export declare const RowSelectionProviders: ({ children, }: PropsWithChildren<Record<never, never>>) => JSX.Element;
4
4
  /** If you need to call any of these helpers outside of the `Table` component, you must wrap your code in `RowSelectionProviders` at a higher level */
5
- export declare const useTableContext: <TData extends RowData<import("./table.types").CustomTData>>() => {
5
+ export declare const useTableContext: () => {
6
6
  clearSelectedRows: () => void;
7
7
  deselectRows: (rowIds: (string | number)[]) => void;
8
8
  getIsRowSelected: (rowId: number | string) => boolean;
9
- getSelectedRowData: (props: {
9
+ getSelectedRowData: <TData extends RowData<import("./table.types").CustomTData>>(props: {
10
10
  idProperty: keyof TData;
11
11
  records: TData[];
12
12
  }) => (TData | undefined)[];