@trail-ui/react
Version:
25 lines (22 loc) • 983 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import react__default from 'react';
import { UseFocusHandlerProps, TableContextType } from '../types.js';
import { Table } from '@tanstack/react-table';
import '../constants.js';
import 'react-select';
import '../../pagination/pagination.js';
import '../../select/customSelect.js';
import '@trail-ui/theme';
import '../../overlay/overlay.js';
interface FocusHandlerProviderProps<TData> {
table: Table<TData>;
children: react__default.ReactNode;
groupData: TableContextType<TData>['groupData'];
}
declare function FocusHandlerContextProvider<TData>(props: FocusHandlerProviderProps<TData>): react_jsx_runtime.JSX.Element;
declare function useFocusHandler({ cellType, columnIndex, groupId, rowId, rowIndex, }: UseFocusHandlerProps): {
isCurrentCellFocused: boolean | undefined;
focusCurrentCell: () => void;
resetFocus: () => void;
};
export { FocusHandlerContextProvider as default, useFocusHandler };