-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE(web-twig): Rename message prop to validationText in F…
…orm Fields #DS-676 ## Migration Guide - Instead of the `message` prop, use `validationText`. - The `validationState` prop is now required when using `validationText`. If `validationState` is not set, `validationText` won't render. - To show a permanent helper, use `helperText`. ## Other Notable Changes - Introduce `ValidationText` component. - Improve demos of related components. - `<… validationState="danger" message="error" …>` → `<… validationState="danger" validationText="error" …>` - `<… message="Check this field" …>` → `<… helperText="Check this field" …>` List of affected components: - Checkbox - TextField - TextArea - TextFieldBase - Select Please refer back to these instructions or reach out to our team if you encounter any issues during migration.
- Loading branch information
Showing
100 changed files
with
1,058 additions
and
1,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
packages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxField.twig
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldDefault.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<CheckboxField | ||
id="checkboxfieldDefault" | ||
label="Checkbox Label" | ||
name="checkboxfieldDefault" | ||
/> | ||
<CheckboxField | ||
id="checkboxfieldDefaultChecked" | ||
isChecked | ||
label="Checkbox Label" | ||
name="checkboxfieldDefaultChecked" | ||
/> |
22 changes: 16 additions & 6 deletions
22
packages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldDisabled.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
<CheckboxField | ||
id="checkboxfield3" | ||
id="checkboxfieldDisabled" | ||
isDisabled | ||
label="Checkbox unselected" | ||
name="checkboxfield3" | ||
label="Checkbox Label" | ||
name="checkboxfieldDisabled" | ||
/> | ||
|
||
<CheckboxField | ||
id="checkboxfield7" | ||
helperText="Helper text" | ||
id="checkboxfieldDisabledHelperText" | ||
isChecked | ||
isDisabled | ||
label="Checkbox selected" | ||
name="checkboxfield7" | ||
isRequired | ||
label="Checkbox Label" | ||
name="checkboxfieldDisabledHelperText" | ||
/> | ||
|
||
<CheckboxField | ||
id="checkboxFieldDisabledIndeterminate" | ||
isDisabled | ||
label="Checkbox Label" | ||
name="checkboxFieldDisabledIndeterminate" | ||
/> |
58 changes: 3 additions & 55 deletions
58
...ages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldHelperText.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,6 @@ | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield20" | ||
isItem | ||
label="Checkbox Item with helper text" | ||
name="checkboxfield20" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield21" | ||
isChecked | ||
isItem | ||
label="Checkbox Item with helper text checked" | ||
name="checkboxfield21" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield2" | ||
label="Checkbox unselected with helper text" | ||
name="checkboxfield2" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield4" | ||
isDisabled | ||
label="Checkbox disabled unselected with helper text" | ||
name="checkboxfield4" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield6" | ||
isChecked | ||
label="Checkbox selected with helper text" | ||
name="checkboxfield6" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield8" | ||
isChecked | ||
isDisabled | ||
label="Checkbox disabled selected with helper text" | ||
name="checkboxfield8" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield12" | ||
isDisabled | ||
isRequired | ||
label="Label of disabled input" | ||
name="checkboxfield12" | ||
/> | ||
<CheckboxField | ||
helperText="Helper text" | ||
id="checkboxfield17" | ||
isDisabled | ||
label="Label of input with indeterminate" | ||
name="checkboxfield17" | ||
id="checkboxfieldHelperText" | ||
label="Checkbox Label" | ||
name="checkboxfieldHelperText" | ||
/> |
8 changes: 4 additions & 4 deletions
8
...ges/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldHiddenLabel.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<CheckboxField | ||
id="checkboxfield10" | ||
label="Label Hidden" | ||
name="checkboxfield10" | ||
value="Filled" | ||
id="checkboxfieldHiddenLabel" | ||
label="Checkbox Label" | ||
name="checkboxfieldHiddenLabel" | ||
isLabelHidden | ||
/> |
Oops, something went wrong.