@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
45 lines (44 loc) • 1.91 kB
TypeScript
import { Dispatch, SetStateAction } from "react";
export declare const VirtualFocusDescendantsProvider: import("react").Provider<import("../../hooks").DescendantsManager<HTMLDivElement, {
handleOnSelect: () => void;
handleOnActive: () => void;
}>>, useVirtualFocusDescendantsContext: <S extends boolean = true>(strict?: S | undefined) => S extends true ? import("../../hooks").DescendantsManager<HTMLDivElement, {
handleOnSelect: () => void;
handleOnActive: () => void;
}> : import("../../hooks").DescendantsManager<HTMLDivElement, {
handleOnSelect: () => void;
handleOnActive: () => void;
}> | undefined, useVirtualFocusDescendantInitializer: () => import("../../hooks").DescendantsManager<HTMLDivElement, {
handleOnSelect: () => void;
handleOnActive: () => void;
}>, useVirtualFocusDescendant: (options?: import("../../hooks/descendants/descendant").DescendantOptions<{
handleOnSelect: () => void;
handleOnActive: () => void;
}> | undefined) => {
descendants: import("../../hooks").DescendantsManager<HTMLDivElement, {
handleOnSelect: () => void;
handleOnActive: () => void;
}>;
index: number;
enabledIndex: number;
register: ((instance: HTMLDivElement | null) => void) | null;
};
export declare const VirtualFocusInternalContextProvider: import("react").FC<{
virtualFocusIdx: number;
setVirtualFocusIdx: Dispatch<SetStateAction<number>>;
loop: boolean;
uniqueId: string;
} & {
children: React.ReactNode;
ref?: never;
}>, useVirtualFocusInternalContext: <S extends boolean = true>(strict?: S | undefined) => S extends true ? {
virtualFocusIdx: number;
setVirtualFocusIdx: Dispatch<SetStateAction<number>>;
loop: boolean;
uniqueId: string;
} : {
virtualFocusIdx: number;
setVirtualFocusIdx: Dispatch<SetStateAction<number>>;
loop: boolean;
uniqueId: string;
} | undefined;