UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

26 lines 1.09 kB
import MaskFormat from './utils/mask-format'; export interface HandlerResult { position: number; value: string; } /** * Handles character removal * * @param initialValue Current value of input * @param format MaskFormat object * @param selectionStart Starting index value of selection cursor * @param selectionEnd Ending Index value of selection cursor */ export declare const backspaceHandler: (initialValue: string, format: MaskFormat, selectionStart: number, selectionEnd: number) => HandlerResult; /** * Handle key down events * * @param initialValue Current value of input * @param key Key that was pressed * @param format MaskFormat object * @param selectionStart Starting index value of selection cursor * @param selectionEnd Ending Index value of selection cursor */ export declare const keyHandler: (initialValue: string, key: string, format: MaskFormat, selectionStart: number, selectionEnd: number) => HandlerResult; export declare const enterHandler: (value: string, format: MaskFormat) => HandlerResult; //# sourceMappingURL=keyboard-handler.d.ts.map