2022-05-07 14:31:54 +08:00
|
|
|
import type * as React from 'react';
|
2022-06-22 14:57:09 +08:00
|
|
|
import Group from './Group';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { InputProps, InputRef } from './Input';
|
|
|
|
import InternalInput from './Input';
|
2022-06-22 14:57:09 +08:00
|
|
|
import Password from './Password';
|
2016-11-24 14:03:57 +08:00
|
|
|
import Search from './Search';
|
2017-05-22 14:44:58 +08:00
|
|
|
import TextArea from './TextArea';
|
2015-10-09 13:53:04 +08:00
|
|
|
|
2017-09-25 22:14:49 +08:00
|
|
|
export { GroupProps } from './Group';
|
2022-06-22 14:57:09 +08:00
|
|
|
export { InputProps, InputRef } from './Input';
|
|
|
|
export { PasswordProps } from './Password';
|
2017-09-25 22:14:49 +08:00
|
|
|
export { SearchProps } from './Search';
|
|
|
|
export { TextAreaProps } from './TextArea';
|
|
|
|
|
2022-03-01 14:17:48 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
|
|
|
|
Group: typeof Group;
|
|
|
|
Search: typeof Search;
|
|
|
|
TextArea: typeof TextArea;
|
|
|
|
Password: typeof Password;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Input = InternalInput as CompoundedComponent;
|
|
|
|
|
2016-03-31 17:46:35 +08:00
|
|
|
Input.Group = Group;
|
2016-11-24 14:03:57 +08:00
|
|
|
Input.Search = Search;
|
2017-05-22 14:44:58 +08:00
|
|
|
Input.TextArea = TextArea;
|
2018-11-29 10:03:16 +08:00
|
|
|
Input.Password = Password;
|
2016-03-31 17:46:35 +08:00
|
|
|
export default Input;
|