-
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
CheckboxField
component to `Check…
…box` #DS-522 ## Migration Guide Rename and use `Checkbox` component instead of `CheckboxField`. - `<CheckboxField …>` → `<Checkbox …>` Please refer back to this guide or reach out to our team if you encounter any issues during migration.
- Loading branch information
Showing
40 changed files
with
188 additions
and
211 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
11 changes: 11 additions & 0 deletions
11
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxDefault.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 @@ | ||
<Checkbox | ||
id="checkboxDefault" | ||
label="Checkbox Label" | ||
name="checkboxDefault" | ||
/> | ||
<Checkbox | ||
id="checkboxDefaultChecked" | ||
isChecked | ||
label="Checkbox Label" | ||
name="checkboxDefaultChecked" | ||
/> |
23 changes: 23 additions & 0 deletions
23
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxDisabled.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,23 @@ | ||
<Checkbox | ||
id="checkboxDisabled" | ||
isDisabled | ||
label="Checkbox Label" | ||
name="checkboxDisabled" | ||
/> | ||
|
||
<Checkbox | ||
helperText="Helper text" | ||
id="checkboxDisabledHelperText" | ||
isChecked | ||
isDisabled | ||
isRequired | ||
label="Checkbox Label" | ||
name="checkboxDisabledHelperText" | ||
/> | ||
|
||
<Checkbox | ||
id="checkboxDisabledIndeterminate" | ||
isDisabled | ||
label="Checkbox Label" | ||
name="checkboxDisabledIndeterminate" | ||
/> |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxHelperText.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 @@ | ||
<Checkbox | ||
helperText="Helper text" | ||
id="checkboxHelperText" | ||
label="Checkbox Label" | ||
name="checkboxHelperText" | ||
/> |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxHiddenLabel.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 @@ | ||
<Checkbox | ||
id="checkboxHiddenLabel" | ||
label="Checkbox Label" | ||
name="checkboxHiddenLabel" | ||
isLabelHidden | ||
/> |
5 changes: 5 additions & 0 deletions
5
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxIndeterminate.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,5 @@ | ||
<Checkbox | ||
id="checkboxIndeterminate" | ||
label="Checkbox Label" | ||
name="checkboxIndeterminate" | ||
/> |
42 changes: 42 additions & 0 deletions
42
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxItem.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,42 @@ | ||
<Checkbox | ||
id="checkboxItemDefault" | ||
isItem | ||
label="Checkbox Label" | ||
name="checkboxItemDefault" | ||
/> | ||
|
||
<Checkbox | ||
id="checkboxItemDefaultChecked" | ||
isChecked | ||
isItem | ||
label="Checkbox Label" | ||
name="checkboxItemDefaultChecked" | ||
/> | ||
|
||
<Checkbox | ||
helperText="Helper text" | ||
id="checkboxItemHelperText" | ||
isItem | ||
label="Checkbox Label" | ||
name="checkboxItemHelperText" | ||
/> | ||
|
||
<Checkbox | ||
id="checkboxItemDisabled" | ||
isDisabled | ||
isItem | ||
label="Checkbox Label" | ||
name="checkboxItemDisabled" | ||
/> | ||
|
||
<Checkbox | ||
helperText="Helper text" | ||
id="checkboxItemDisabledHelperText" | ||
isChecked | ||
isDisabled | ||
isChecked | ||
isItem | ||
isRequired | ||
label="Checkbox Label" | ||
name="checkboxItemDisabledHelperText" | ||
/> |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/Checkbox/stories/CheckboxRequired.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 @@ | ||
<Checkbox | ||
id="checkboxRequired" | ||
isRequired | ||
label="Checkbox Label" | ||
name="checkboxRequired" | ||
/> |
24 changes: 12 additions & 12 deletions
24
...ield/stories/CheckboxFieldValidation.twig → .../Checkbox/stories/CheckboxValidation.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,32 +1,32 @@ | ||
<CheckboxField | ||
id="checkboxfieldSuccess" | ||
<Checkbox | ||
id="checkboxSuccess" | ||
label="Checkbox Label" | ||
name="checkboxfieldSuccess" | ||
name="checkboxSuccess" | ||
validationState="success" | ||
/> | ||
|
||
<CheckboxField | ||
id="checkboxfieldWarning" | ||
<Checkbox | ||
id="checkboxWarning" | ||
label="Checkbox Label" | ||
validationText="Warning validation text" | ||
name="checkboxfieldWarning" | ||
name="checkboxWarning" | ||
validationState="warning" | ||
/> | ||
|
||
<CheckboxField | ||
id="checkboxfieldDanger" | ||
<Checkbox | ||
id="checkboxDanger" | ||
label="Checkbox Label" | ||
validationText="{{ ['First validation text', 'Second validation text'] }}" | ||
name="checkboxfieldDanger" | ||
name="checkboxDanger" | ||
validationState="danger" | ||
/> | ||
|
||
<CheckboxField | ||
<Checkbox | ||
helperText="Helper text" | ||
id="checkboxfieldWarningHelperText" | ||
id="checkboxWarningHelperText" | ||
isChecked | ||
label="Checkbox Label" | ||
validationText="Warning validation text" | ||
name="checkboxfieldWarningHelperText" | ||
name="checkboxWarningHelperText" | ||
validationState="warning" | ||
/> |
11 changes: 0 additions & 11 deletions
11
packages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldDefault.twig
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
packages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldDisabled.twig
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...ages/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldHelperText.twig
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...ges/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldHiddenLabel.twig
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...s/web-twig/src/Resources/components/CheckboxField/stories/CheckboxFieldIndeterminate.twig
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.