From d07b23be922d9a6e7c14b0826110b9e3b3d6e31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Fri, 9 Jun 2023 23:14:22 +0200 Subject: [PATCH] BREAKING CHANGE(web-react): Remove `error` Validation State in favor of `danger` #DS-677 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Migration Guide Instead of the `error` value of the validationState prop, use `danger`. This applies to Checkbox, Radio, TextField, TextArea, and TextFieldBase. - `` → `` Please refer back to these instructions or reach out to our team if you encounter any issues during migration. --- .../CheckboxField/CheckboxField.tsx | 10 ----- .../src/components/CheckboxField/README.md | 31 +++++++------- .../Field/__tests__/useValidationText.test.ts | 2 +- .../stories/FileUploaderValidationState.tsx | 2 +- .../stories/FormWithFileUploader.tsx | 2 +- .../FormWithUncontrolledFileUploader.tsx | 2 +- .../src/components/RadioField/README.md | 2 +- .../src/components/RadioField/RadioField.tsx | 13 +----- .../src/components/TextArea/README.md | 39 +++++++++--------- .../src/components/TextField/README.md | 41 +++++++++---------- .../src/components/TextFieldBase/README.md | 39 +++++++++--------- .../TextFieldBase/TextFieldBase.tsx | 10 ----- packages/web-react/src/types/shared/inputs.ts | 3 +- 13 files changed, 80 insertions(+), 116 deletions(-) diff --git a/packages/web-react/src/components/CheckboxField/CheckboxField.tsx b/packages/web-react/src/components/CheckboxField/CheckboxField.tsx index 0350b8b4e6..e1ca522637 100644 --- a/packages/web-react/src/components/CheckboxField/CheckboxField.tsx +++ b/packages/web-react/src/components/CheckboxField/CheckboxField.tsx @@ -13,16 +13,6 @@ const _CheckboxField = (props: SpiritCheckboxFieldProps, ref: ForwardedRef