From 98be05aa0897ac479ff13d26e7902f129ac9a749 Mon Sep 17 00:00:00 2001 From: Brian Ingles Date: Tue, 4 Jun 2024 16:45:05 -0500 Subject: [PATCH] fix: Exporting correct Radio prop types (#2058) Looks like I exported the incorrect Radio component prop types in previous PR. There are apparently extended ones for Spectrum. https://github.com/adobe/react-spectrum/blob/7da3d384aa0c6bdc14449c4f138e963a094a7a38/packages/%40react-types/radio/src/index.d.ts#L58-L71 #2020 --- packages/components/src/spectrum/forms.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/components/src/spectrum/forms.ts b/packages/components/src/spectrum/forms.ts index f39a33a3c1..3c8d54c01f 100644 --- a/packages/components/src/spectrum/forms.ts +++ b/packages/components/src/spectrum/forms.ts @@ -20,7 +20,10 @@ export { type SpectrumTextFieldProps as TextFieldProps, } from '@adobe/react-spectrum'; -export type { RadioGroupProps, RadioProps } from '@react-types/radio'; +export type { + SpectrumRadioGroupProps as RadioGroupProps, + SpectrumRadioProps as RadioProps, +} from '@react-types/radio'; // @react-types/textfield is unecessary if https://github.com/adobe/react-spectrum/pull/6090 merge export type { SpectrumTextAreaProps as TextAreaProps } from '@react-types/textfield';