mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +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
32 lines
752 B
TypeScript
32 lines
752 B
TypeScript
import type * as React from 'react';
|
|
import Group from './group';
|
|
import type { RadioProps } from './interface';
|
|
import InternalRadio from './radio';
|
|
import Button from './radioButton';
|
|
|
|
export {
|
|
RadioChangeEvent,
|
|
RadioChangeEventTarget,
|
|
RadioGroupButtonStyle,
|
|
RadioGroupContextProps,
|
|
RadioGroupOptionType,
|
|
RadioGroupProps,
|
|
RadioProps,
|
|
} from './interface';
|
|
export { Button, Group };
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
RadioProps & React.RefAttributes<HTMLElement>
|
|
> & {
|
|
Group: typeof Group;
|
|
Button: typeof Button;
|
|
/** @internal */
|
|
__ANT_RADIO: boolean;
|
|
};
|
|
|
|
const Radio = InternalRadio as CompoundedComponent;
|
|
Radio.Button = Button;
|
|
Radio.Group = Group;
|
|
Radio.__ANT_RADIO = true;
|
|
export default Radio;
|