UNPKG

@mui/x-date-pickers

Version:

The community edition of the Date and Time Picker components (MUI X).

14 lines (13 loc) 924 B
import * as React from 'react'; export declare function arrayIncludes<T>(array: T[] | readonly T[], itemOrItems: T | T[]): boolean; export declare const onSpaceOrEnter: (innerFn: (ev: React.MouseEvent<any> | React.KeyboardEvent<any>) => void, externalEvent?: (event: React.KeyboardEvent<any>) => void) => (event: React.KeyboardEvent) => void; export declare const executeInTheNextEventLoopTick: (fn: () => void) => void; export declare const getActiveElement: (root?: Document | ShadowRoot) => Element | null; /** * Gets the index of the focused list item in a given ul list element. * * @param {HTMLUListElement} listElement - The list element to search within. * @returns {number} The index of the focused list item, or -1 if none is focused. */ export declare const getFocusedListItemIndex: (listElement: HTMLUListElement) => number; export declare const DEFAULT_DESKTOP_MODE_MEDIA_QUERY = "@media (pointer: fine)";