-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependencies/9/update-lighthouse
- Loading branch information
Showing
36 changed files
with
759 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...s_example-checkboxes-with-revealed-checkboxes-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es_example-checkboxes-with-revealed-checkboxes-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es_example-checkboxes-with-revealed-checkboxes-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...boxes_example-checkboxes-with-revealed-radios-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...kboxes_example-checkboxes-with-revealed-radios-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...kboxes_example-checkboxes-with-revealed-radios-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...boxes_example-checkboxes-with-revealed-select-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...kboxes_example-checkboxes-with-revealed-select-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...kboxes_example-checkboxes-with-revealed-select-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...s_example-checkboxes-with-revealed-text-input-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es_example-checkboxes-with-revealed-text-input-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...es_example-checkboxes-with-revealed-text-input-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nents_radios_example-radios-with-clear-button-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...onents_radios_example-radios-with-clear-button-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...onents_radios_example-radios-with-clear-button-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...adios_example-radios-with-revealed-checkboxes-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...radios_example-radios-with-revealed-checkboxes-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...radios_example-radios-with-revealed-checkboxes-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ts_radios_example-radios-with-revealed-radios-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nts_radios_example-radios-with-revealed-radios-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nts_radios_example-radios-with-revealed-radios-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ts_radios_example-radios-with-revealed-select-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nts_radios_example-radios-with-revealed-select-expanded_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...nts_radios_example-radios-with-revealed-select-expanded_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...adios_example-radios-with-revealed-text-input-expanded_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...radios_example-radios-with-revealed-text-input-expanded_0_document_1_tablet.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...radios_example-radios-with-revealed-text-input-expanded_0_document_2_mobile.png
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
src/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk
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,88 @@ | ||
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %} | ||
|
||
{{ | ||
onsCheckboxes({ | ||
"legend": "Content type", | ||
"checkboxesLabel": "Show only:", | ||
"borderless": true, | ||
"name": "dietary", | ||
"checkboxes": [ | ||
{ | ||
"id": "data", | ||
"label": { | ||
"text": "Data (309)" | ||
}, | ||
"value": "data", | ||
"checked": true, | ||
"other": { | ||
"otherType": "checkboxes", | ||
"selectAllChildren": true, | ||
"legend": "Data type", | ||
"legendClasses": "ons-u-vh", | ||
"name": "name", | ||
"checkboxes": [ | ||
{ | ||
"id": "datasets", | ||
"label": { | ||
"text": "Datasets (100)" | ||
}, | ||
"value": "datasets" | ||
}, | ||
{ | ||
"id": "timeseries", | ||
"label": { | ||
"text": "Timeseries (20)" | ||
}, | ||
"value": "timeseries" | ||
}, | ||
{ | ||
"id": "requested", | ||
"label": { | ||
"text": "User requested data (17)" | ||
}, | ||
"value": "requested" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "publications", | ||
"label": { | ||
"text": "Publications (137)" | ||
}, | ||
"value": "publications", | ||
"checked": true, | ||
"other": { | ||
"otherType": "checkboxes", | ||
"selectAllChildren": true, | ||
"legend": "Publication type", | ||
"legendClasses": "ons-u-vh", | ||
"name": "name", | ||
"checkboxes": [ | ||
{ | ||
"id": "press-release", | ||
"label": { | ||
"text": "Press release (100)" | ||
}, | ||
"value": "pressrelease" | ||
}, | ||
{ | ||
"id": "bulletin", | ||
"label": { | ||
"text": "Bulletin (20)" | ||
}, | ||
"value": "bulletin" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "areas", | ||
"label": { | ||
"text": "Areas (0)" | ||
}, | ||
"value": "areas" | ||
} | ||
] | ||
}) | ||
}} |
70 changes: 70 additions & 0 deletions
70
src/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk
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,70 @@ | ||
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %} | ||
|
||
{{ | ||
onsCheckboxes({ | ||
"checkboxesLabel": "Select all that apply", | ||
"legend": "How would you like us to contact you?", | ||
"name": "contact", | ||
"borderless": true, | ||
"checkboxes": [ | ||
{ | ||
"id": "post", | ||
"label": { | ||
"text": "By post" | ||
}, | ||
"value": "post" | ||
}, | ||
{ | ||
"id": "email", | ||
"label": { | ||
"text": "By email" | ||
}, | ||
"value": "email" | ||
}, | ||
{ | ||
"id": "phone", | ||
"label": { | ||
"text": "By phone" | ||
}, | ||
"value": "phone", | ||
"checked": true, | ||
"other": { | ||
"otherType": "radios", | ||
"id": "phone-time", | ||
"name": "phone-time", | ||
"legend": "Choose preferred time of day", | ||
"radios": [ | ||
{ | ||
"value": "anytime", | ||
"id": "anytime", | ||
"label": { | ||
"text": "Any time of day" | ||
} | ||
}, | ||
{ | ||
"value": "morning", | ||
"id": "morning", | ||
"label": { | ||
"text": "Morning" | ||
} | ||
}, | ||
{ | ||
"value": "afternoon", | ||
"id": "afternoon", | ||
"label": { | ||
"text": "Afternoon" | ||
} | ||
}, | ||
{ | ||
"value": "evening", | ||
"id": "evening", | ||
"label": { | ||
"text": "Evening" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}) | ||
}} |
72 changes: 72 additions & 0 deletions
72
src/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk
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,72 @@ | ||
{% from "components/question/_macro.njk" import onsQuestion %} | ||
{% from "components/checkboxes/_macro.njk" import onsCheckboxes %} | ||
|
||
{% call onsQuestion({ | ||
"title": "How would you like us to contact you?", | ||
"legendIsQuestionTitle": true, | ||
"classes": "ons-u-mt-no" | ||
}) %} | ||
{{ | ||
onsCheckboxes({ | ||
"checkboxesLabel": "Select all that apply", | ||
"dontWrap": true, | ||
"name": "contact", | ||
"checkboxes": [ | ||
{ | ||
"id": "post", | ||
"label": { | ||
"text": "By post" | ||
}, | ||
"value": "post" | ||
}, | ||
{ | ||
"id": "email", | ||
"label": { | ||
"text": "By email" | ||
}, | ||
"value": "email" | ||
}, | ||
{ | ||
"id": "phone", | ||
"label": { | ||
"text": "By phone" | ||
}, | ||
"value": "phone", | ||
"checked": true, | ||
"other": { | ||
"otherType": "select", | ||
"id": "phone-time", | ||
"name": "phone-time", | ||
"label": { | ||
"text": "Choose preferred time of day" | ||
}, | ||
"options": [ | ||
{ | ||
"value": "", | ||
"text": "Select an option", | ||
"disabled": true, | ||
"selected": true | ||
}, | ||
{ | ||
"value": "anytime", | ||
"text": "Anytime of day" | ||
}, | ||
{ | ||
"value": "morning", | ||
"text": "Morning" | ||
}, | ||
{ | ||
"value": "afternoon", | ||
"text": "Afternoon" | ||
}, | ||
{ | ||
"value": "evening", | ||
"text": "Evening" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}) | ||
}} | ||
{% endcall %} |
Oops, something went wrong.