diff --git a/packages/plasma-b2c/src/components/TextField/TextField.tsx b/packages/plasma-b2c/src/components/TextField/TextField.tsx index 1bd8b0e88e..67782e2999 100644 --- a/packages/plasma-b2c/src/components/TextField/TextField.tsx +++ b/packages/plasma-b2c/src/components/TextField/TextField.tsx @@ -91,8 +91,12 @@ type HintProps = hintContentLeft?: never; }; -export type CustomTextFieldProps = (TextFieldProps & - Pick< +export type CustomTextFieldProps = Omit & { + /** + * Подсказка для поля ввода. + */ + helperText?: ReactNode; +} & Pick< newHopeTextFieldProps, | 'enumerationType' | 'chips' @@ -106,7 +110,7 @@ export type CustomTextFieldProps = (TextFieldProps & | 'optional' | 'chipView' | 'chipValidator' - >) & + > & ClearProps & HintProps; diff --git a/packages/plasma-web/src/components/TextField/TextField.tsx b/packages/plasma-web/src/components/TextField/TextField.tsx index 6ccec9b78d..3080813fb9 100644 --- a/packages/plasma-web/src/components/TextField/TextField.tsx +++ b/packages/plasma-web/src/components/TextField/TextField.tsx @@ -91,7 +91,13 @@ type HintProps = hintContentLeft?: never; }; -type TextFieldProps = TextFieldPropsOld & ClearProps & HintProps; +type TextFieldProps = Omit & { + /** + * Подсказка для поля ввода. + */ + helperText?: ReactNode; +} & ClearProps & + HintProps; export type CustomTextFieldProps = TextFieldProps & Pick<