2020-09-16 11:43:55 +08:00
|
|
|
import * as React from 'react';
|
2020-06-02 14:12:04 +08:00
|
|
|
import InternalRadio from './radio';
|
2015-08-21 18:24:09 +08:00
|
|
|
import Group from './group';
|
2015-11-06 22:03:09 +08:00
|
|
|
import Button from './radioButton';
|
2020-06-02 14:12:04 +08:00
|
|
|
import { RadioProps } from './interface';
|
2015-07-16 22:41:27 +08:00
|
|
|
|
2020-07-27 10:41:32 +08:00
|
|
|
export {
|
|
|
|
RadioGroupButtonStyle,
|
|
|
|
RadioGroupOptionType,
|
|
|
|
RadioGroupProps,
|
|
|
|
RadioGroupContextProps,
|
|
|
|
RadioProps,
|
|
|
|
RadioChangeEventTarget,
|
|
|
|
RadioChangeEvent,
|
|
|
|
} from './interface';
|
2020-06-02 14:12:04 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
|
|
|
|
Group: typeof Group;
|
2020-06-02 20:56:23 +08:00
|
|
|
Button: typeof Button;
|
2020-06-02 14:12:04 +08:00
|
|
|
}
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2020-06-02 14:12:04 +08:00
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
2016-03-21 21:16:38 +08:00
|
|
|
Radio.Button = Button;
|
|
|
|
Radio.Group = Group;
|
2016-08-19 17:11:06 +08:00
|
|
|
export { Button, Group };
|
2016-03-21 21:16:38 +08:00
|
|
|
export default Radio;
|