You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
import * as React from 'react';
|
|
import { Omit } from '../_util/types';
|
|
export declare type HTMLTableDataProps = Omit<React.HTMLProps<HTMLTableDataCellElement>, 'onClick'>;
|
|
export interface KeyboardItemProps extends HTMLTableDataProps {
|
|
prefixCls?: string;
|
|
tdRef?: React.Ref<HTMLTableDataCellElement>;
|
|
iconOnly?: boolean;
|
|
onClick: (event: React.MouseEvent<HTMLTableDataCellElement>, value: string) => void;
|
|
}
|
|
export declare class KeyboardItem extends React.Component<KeyboardItemProps, any> {
|
|
static defaultProps: {
|
|
prefixCls: string;
|
|
onClick: () => void;
|
|
disabled: boolean;
|
|
};
|
|
render(): JSX.Element;
|
|
}
|
|
declare class CustomKeyboard extends React.Component<any, any> {
|
|
static defaultProps: {
|
|
prefixCls: string;
|
|
disabledKeys: null;
|
|
};
|
|
linkedInput: any;
|
|
antmKeyboard: HTMLDivElement | null;
|
|
confirmDisabled: boolean;
|
|
confirmKeyboardItem: HTMLTableDataCellElement | null;
|
|
onKeyboardClick: (e: React.MouseEvent<HTMLTableDataCellElement, MouseEvent>, value?: string) => null | undefined;
|
|
renderKeyboardItem: (item: string, index: number) => JSX.Element;
|
|
render(): JSX.Element;
|
|
getAriaAttr(label: string): {
|
|
label: string;
|
|
iconOnly: boolean;
|
|
role?: undefined;
|
|
'aria-label'?: undefined;
|
|
} | {
|
|
role: string;
|
|
'aria-label': string;
|
|
label?: undefined;
|
|
iconOnly?: undefined;
|
|
};
|
|
}
|
|
export default CustomKeyboard;
|