Buckets:
Quantumbraid/trainingdata / ui /node_modules /@headlessui /react /dist /utils /focus-management.d.ts
| import type { MutableRefObject } from 'react'; | |
| export declare let focusableSelector: string; | |
| export declare enum Focus { | |
| /** Focus the first non-disabled element */ | |
| First = 1, | |
| /** Focus the previous non-disabled element */ | |
| Previous = 2, | |
| /** Focus the next non-disabled element */ | |
| Next = 4, | |
| /** Focus the last non-disabled element */ | |
| Last = 8, | |
| /** Wrap tab around */ | |
| WrapAround = 16, | |
| /** Prevent scrolling the focusable elements into view */ | |
| NoScroll = 32, | |
| /** Focus the first focusable element with the `data-autofocus` attribute. */ | |
| AutoFocus = 64 | |
| } | |
| export declare enum FocusResult { | |
| /** Something went wrong while trying to focus. */ | |
| Error = 0, | |
| /** When `Focus.WrapAround` is enabled, going from position `N` to `N+1` where `N` is the last index in the array, then we overflow. */ | |
| Overflow = 1, | |
| /** Focus was successful. */ | |
| Success = 2, | |
| /** When `Focus.WrapAround` is enabled, going from position `N` to `N-1` where `N` is the first index in the array, then we underflow. */ | |
| Underflow = 3 | |
| } | |
| export declare function getFocusableElements(container?: HTMLElement | null): HTMLElement[]; | |
| export declare function getAutoFocusableElements(container?: HTMLElement | null): HTMLElement[]; | |
| export declare enum FocusableMode { | |
| /** The element itself must be focusable. */ | |
| Strict = 0, | |
| /** The element should be inside of a focusable element. */ | |
| Loose = 1 | |
| } | |
| export declare function isFocusableElement(element: HTMLElement, mode?: FocusableMode): boolean; | |
| export declare function restoreFocusIfNecessary(element: HTMLElement | null): void; | |
| export declare function focusElement(element: HTMLElement | null): void; | |
| export declare function sortByDomNode<T>(nodes: T[], resolveKey?: (item: T) => HTMLElement | null): T[]; | |
| export declare function focusFrom(current: HTMLElement | null, focus: Focus): FocusResult; | |
| export declare function focusIn(container: HTMLElement | HTMLElement[], focus: Focus, { sorted, relativeTo, skipElements, }?: Partial<{ | |
| sorted: boolean; | |
| relativeTo: HTMLElement | null; | |
| skipElements: (HTMLElement | MutableRefObject<HTMLElement | null>)[]; | |
| }>): FocusResult; | |
Xet Storage Details
- Size:
- 2.19 kB
- Xet hash:
- d3adeb0b6b633cfb379a02fbcb5266220555d0112b155fdaa0e88d0ea9b96580
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.