mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 21:48:19 +08:00
f0c105d262
* feat: remove the hardcode of `use client` * chore: update `@ant-design/tools` * test: update * fix: incorrect dictionary * chore: update dep * ci: check use client * chore: update ci * fix: should be LIB_DIR * ci: should only run in dist * chore: update check tsx files
35 lines
971 B
TypeScript
35 lines
971 B
TypeScript
import type * as React from 'react';
|
|
import Group from './Group';
|
|
import type { InputProps, InputRef } from './Input';
|
|
import InternalInput from './Input';
|
|
import Password from './Password';
|
|
import Search from './Search';
|
|
import TextArea from './TextArea';
|
|
|
|
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';
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
InputProps & React.RefAttributes<InputRef>
|
|
> & {
|
|
Group: typeof Group;
|
|
Search: typeof Search;
|
|
TextArea: typeof TextArea;
|
|
Password: typeof Password;
|
|
};
|
|
|
|
const Input = InternalInput as CompoundedComponent;
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
Input.displayName = 'Input';
|
|
}
|
|
|
|
Input.Group = Group;
|
|
Input.Search = Search;
|
|
Input.TextArea = TextArea;
|
|
Input.Password = Password;
|
|
export default Input;
|