Latest updates from IceHrmPro
This commit is contained in:
22
web/node_modules/antd/lib/_util/transButton.d.ts
generated
vendored
Normal file
22
web/node_modules/antd/lib/_util/transButton.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Wrap of sub component which need use as Button capacity (like Icon component).
|
||||
* This helps accessibility reader to tread as a interactive button to operation.
|
||||
*/
|
||||
import * as React from 'react';
|
||||
interface TransButtonProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
||||
noStyle?: boolean;
|
||||
autoFocus?: boolean;
|
||||
}
|
||||
declare class TransButton extends React.Component<TransButtonProps> {
|
||||
div?: HTMLDivElement;
|
||||
lastKeyCode?: number;
|
||||
componentDidMount(): void;
|
||||
onKeyDown: React.KeyboardEventHandler<HTMLDivElement>;
|
||||
onKeyUp: React.KeyboardEventHandler<HTMLDivElement>;
|
||||
setRef: (btn: HTMLDivElement) => void;
|
||||
focus(): void;
|
||||
blur(): void;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default TransButton;
|
||||
Reference in New Issue
Block a user