| 7 | type InputRef = HTMLInputElement | HTMLTextAreaElement; |
| 8 | |
| 9 | interface InputProps { |
| 10 | prefixCls: string; |
| 11 | id: string; |
| 12 | inputElement: React.ReactElement; |
| 13 | disabled: boolean; |
| 14 | autoFocus: boolean; |
| 15 | autoComplete: string; |
| 16 | editable: boolean; |
| 17 | activeDescendantId?: string; |
| 18 | value: string; |
| 19 | maxLength?: number; |
| 20 | open: boolean; |
| 21 | tabIndex: number; |
| 22 | /** Pass accessibility props to input */ |
| 23 | attrs: Record<string, unknown>; |
| 24 | |
| 25 | onKeyDown: React.KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLElement>; |
| 26 | onMouseDown: React.MouseEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLElement>; |
| 27 | onChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLElement>; |
| 28 | onPaste: React.ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLElement>; |
| 29 | onBlur: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLElement>; |
| 30 | onCompositionStart: React.CompositionEventHandler< |
| 31 | HTMLInputElement | HTMLTextAreaElement | HTMLElement |
| 32 | >; |
| 33 | onCompositionEnd: React.CompositionEventHandler< |
| 34 | HTMLInputElement | HTMLTextAreaElement | HTMLElement |
| 35 | >; |
| 36 | } |
| 37 | |
| 38 | const Input: React.ForwardRefRenderFunction<InputRef, InputProps> = (props, ref) => { |
| 39 | const { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…