-
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
RadioField
component to Radio
#…
…DS-521 ## Migration Guide Rename and use `Radio` component instead of `RadioField`. - `<RadioField …>` → `<Radio …>` Please refer back to this guide or reach out to our team if you encounter any issues during migration.
- Loading branch information
Showing
29 changed files
with
125 additions
and
126 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
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: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/Radio/stories/RadioDefault.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 @@ | ||
<Radio | ||
id="radioDefault" | ||
label="Radio Label" | ||
name="radioDefault" | ||
/> | ||
<Radio | ||
id="radioDefaultChecked" | ||
isChecked | ||
label="Radio Label" | ||
name="radioDefault" | ||
/> |
15 changes: 15 additions & 0 deletions
15
packages/web-twig/src/Resources/components/Radio/stories/RadioDisabled.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,15 @@ | ||
<Radio | ||
id="radioDisabled" | ||
isDisabled | ||
label="Radio Label" | ||
name="radioDisabled" | ||
/> | ||
|
||
<Radio | ||
helperText="Helper text" | ||
id="radioDisabledHelperText" | ||
isChecked | ||
isDisabled | ||
label="Radio Label" | ||
name="radioDisabledHelperText" | ||
/> |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/Radio/stories/RadioHelperText.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,6 @@ | ||
<Radio | ||
helperText="Helper text" | ||
id="radioHelperText" | ||
label="Radio Label" | ||
name="radioHelperText" | ||
/> |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/Radio/stories/RadioHiddenLabel.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,6 @@ | ||
<Radio | ||
id="radioHiddenLabel" | ||
label="Radio Label" | ||
name="radioHiddenLabel" | ||
isLabelHidden | ||
/> |
20 changes: 10 additions & 10 deletions
20
...ts/RadioField/stories/RadioFieldItem.twig → ...s/components/Radio/stories/RadioItem.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
16 changes: 8 additions & 8 deletions
16
...ioField/stories/RadioFieldValidation.twig → ...onents/Radio/stories/RadioValidation.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
11 changes: 0 additions & 11 deletions
11
packages/web-twig/src/Resources/components/RadioField/stories/RadioFieldDefault.twig
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/web-twig/src/Resources/components/RadioField/stories/RadioFieldDisabled.twig
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/web-twig/src/Resources/components/RadioField/stories/RadioFieldHelperText.twig
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/web-twig/src/Resources/components/RadioField/stories/RadioFieldHiddenLabel.twig
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{% extends '@spirit/Radio/Radio.twig' %} |
1 change: 0 additions & 1 deletion
1
packages/web-twig/src/Resources/twig-components/radioField.twig
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
.../tests/__snapshots__/ComponentsSnapshotTest__test with data set radioDefault.twig__1.html
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,10 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
</title> | ||
</head> | ||
<body> | ||
<label for="example" class="Radio"><input data-validate="true" type="radio" name="example" class="Radio__input" id="example" checked> </label> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
...ts/__snapshots__/ComponentsSnapshotTest__test with data set radioDefaultPure.twig__1.html
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,10 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
</title> | ||
</head> | ||
<body> | ||
<label for="example" class="Radio"><input type="radio" name="example" class="Radio__input" id="example" checked> <span class="Radio__text"><span class="Radio__label">some label</span></span></label> | ||
</body> | ||
</html> |
10 changes: 0 additions & 10 deletions
10
...s/__snapshots__/ComponentsSnapshotTest__test with data set radioFieldDefault.twig__1.html
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...snapshots__/ComponentsSnapshotTest__test with data set radioFieldDefaultPure.twig__1.html
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ests/__snapshots__/ComponentsSnapshotTest__test with data set radioFieldItem.twig__1.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.