/** @jsxRuntime classic */ /** @jsx jsx */ import { Fragment, type InputHTMLAttributes, type ReactNode, forwardRef } from 'react' import { jsx, VisuallyHidden } from '@keystone-ui/core' import { ControlLabel } from './components/ControlLabel' import { DotIcon } from './components/Icons' import { useIndicatorStyles, useIndicatorTokens } from './hooks/indicators' import type { SizeType } from './types' type RadioProps = { /** The radio label content. */ children: ReactNode } & RadioControlProps export const Radio = forwardRef( ({ children, className, size, ...props }, ref) => { return ( } > {children} ) } ) type RadioControlProps = { /** When true, the radio will be checked. */ checked?: boolean /** When true, the radio will be disabled. */ disabled?: boolean /** The size of the Radio */ size?: SizeType /** The value of the Radio. */ value?: string } & Omit, 'size'> export const RadioControl = forwardRef( ({ size, ...props }, ref) => ( ) ) const Indicator = ({ size, ...props }: { size?: SizeType, children?: ReactNode }) => { const tokens = useIndicatorTokens({ type: 'radio', size: size || 'medium' }) const styles = useIndicatorStyles({ tokens }) return
}