Skip to content

Commit

Permalink
feat(plasma-*): fix TextField layer type
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanKuzmich committed Dec 10, 2024
1 parent 6d66b2e commit 4d5dda4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 7 additions & 3 deletions packages/plasma-b2c/src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ type HintProps =
hintContentLeft?: never;
};

export type CustomTextFieldProps = (TextFieldProps &
Pick<
export type CustomTextFieldProps = Omit<TextFieldProps, 'helperText'> & {
/**
* Подсказка для поля ввода.
*/
helperText?: ReactNode;
} & Pick<
newHopeTextFieldProps,
| 'enumerationType'
| 'chips'
Expand All @@ -106,7 +110,7 @@ export type CustomTextFieldProps = (TextFieldProps &
| 'optional'
| 'chipView'
| 'chipValidator'
>) &
> &
ClearProps &
HintProps;

Expand Down
8 changes: 7 additions & 1 deletion packages/plasma-web/src/components/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ type HintProps =
hintContentLeft?: never;
};

type TextFieldProps = TextFieldPropsOld & ClearProps & HintProps;
type TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {
/**
* Подсказка для поля ввода.
*/
helperText?: ReactNode;
} & ClearProps &
HintProps;

export type CustomTextFieldProps = TextFieldProps &
Pick<
Expand Down

0 comments on commit 4d5dda4

Please sign in to comment.