2022-05-07 14:31:54 +08:00
|
|
|
import type * as React from 'react';
|
|
|
|
import type { CheckboxProps } from './Checkbox';
|
|
|
|
import InternalCheckbox from './Checkbox';
|
2017-03-13 10:20:25 +08:00
|
|
|
import Group from './Group';
|
2016-06-30 10:05:29 +08:00
|
|
|
|
2022-06-22 14:57:09 +08:00
|
|
|
export { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
|
2017-09-25 22:14:49 +08:00
|
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
|
2023-01-03 11:46:48 +08:00
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
|
|
CheckboxProps & React.RefAttributes<HTMLInputElement>
|
|
|
|
> & {
|
2020-11-20 08:58:14 +08:00
|
|
|
Group: typeof Group;
|
2022-09-30 14:26:41 +08:00
|
|
|
/** @internal */
|
2020-11-20 08:58:14 +08:00
|
|
|
__ANT_CHECKBOX: boolean;
|
2023-01-03 11:46:48 +08:00
|
|
|
};
|
2020-11-20 08:58:14 +08:00
|
|
|
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
Checkbox.Group = Group;
|
2020-11-20 08:58:14 +08:00
|
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
|
2017-03-13 10:20:25 +08:00
|
|
|
export default Checkbox;
|