@@ -7,24 +7,26 @@ import { useController } from 'react-hook-form'
77import { useErrors } from '../../providers'
88import type { BaseFieldProps } from '../../types'
99
10+ type SelectableCardOptionGroupUI = typeof SelectableCardOptionGroup
11+
1012type SelectableCardOptionGroupFieldProps <
1113 TFieldValues extends FieldValues ,
1214 TFieldName extends FieldPath < TFieldValues > ,
1315> = Omit <
14- ComponentProps < typeof SelectableCardOptionGroup > ,
16+ ComponentProps < SelectableCardOptionGroupUI > ,
1517 'onChange' | 'onChangeOption'
1618> &
1719 Partial <
1820 Pick <
19- ComponentProps < typeof SelectableCardOptionGroup > ,
21+ ComponentProps < SelectableCardOptionGroupUI > ,
2022 'onChangeOption' | 'onChange'
2123 >
2224 > &
2325 Omit < BaseFieldProps < TFieldValues , TFieldName > , 'label' > & {
2426 optionName ?: string
2527 }
2628
27- export const SelectableCardOptionGroupField = <
29+ const SelectableCardOptionGroupField = <
2830 TFieldValues extends FieldValues ,
2931 TFieldName extends FieldPath < TFieldValues > = FieldPath < TFieldValues > ,
3032> ( {
@@ -88,3 +90,5 @@ export const SelectableCardOptionGroupField = <
8890}
8991
9092SelectableCardOptionGroupField . Option = SelectableCardOptionGroup . Option
93+
94+ export { SelectableCardOptionGroupField }
0 commit comments