import * as React from 'react'; import {PropsWithChildren} from "react"; export interface RadioGroupProps { dataHook?: string; onChange?: RadioButtonProps['onChange']; value?: RadioButtonProps['value']; disabledRadios?: RadioButtonProps['value'][]; vAlign?: RadioButtonProps['vAlign']; disabled?: RadioButtonProps['disabled']; type?: RadioButtonProps['type']; display?: RadioGroupDisplay; selectionArea?: RadioButtonProps['selectionArea']; selectionAreaSkin?: RadioButtonProps['selectionAreaSkin']; selectionAreaPadding?: RadioButtonProps['selectionAreaPadding']; spacing?: string; lineHeight?: string; name?: string; } export type RadioGroupDisplay = 'vertical' | 'horizontal'; export interface RadioButtonProps { dataHook?: string; value?: string | number; vAlign?: RadioButtonVAlign; name?: string; onChange?: (value: RadioButtonProps['value']) => void; checked?: boolean; disabled?: boolean; style?: React.CSSProperties; type?: RadioButtonType; lineHeight?: string; tabIndex?: number; selectionArea?: RadioButtonSelectionArea; selectionAreaSkin?: RadioButtonSelectionAreaSkin; selectionAreaPadding?: React.CSSProperties['padding']; content?: React.ReactNode; className?: string; } export type RadioButtonVAlign = 'center' | 'top'; export type RadioButtonType = 'default' | 'button'; export type RadioButtonSelectionArea = 'none' | 'hover' | 'always'; export type RadioButtonSelectionAreaSkin = 'filled' | 'outlined'; export class RadioButton extends React.PureComponent> {} export default class RadioGroup extends React.PureComponent> { static Radio: typeof RadioButton; }