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
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
export type { GroupProps } from './Group';
|
|
|
|
export type { InputProps, InputRef } from './Input';
|
|
|
|
export type { PasswordProps } from './Password';
|
|
|
|
export type { SearchProps } from './Search';
|
|
|
|
export type { TextAreaProps } from './TextArea';
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2022-11-19 16:56:23 +08:00
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
|
|
InputProps & React.RefAttributes<InputRef>
|
|
|
|
> & {
|
2022-03-01 14:17:48 +08:00
|
|
|
Group: typeof Group;
|
|
|
|
Search: typeof Search;
|
|
|
|
TextArea: typeof TextArea;
|
|
|
|
Password: typeof Password;
|
2022-11-19 16:56:23 +08:00
|
|
|
};
|
2022-03-01 14:17:48 +08:00
|
|
|
|
|
|
|
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;
|