@ons/design-system 62.0.2 → 62.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -63
- package/components/access-code/example-access-code-error.njk +87 -0
- package/components/access-code/example-access-code.njk +63 -0
- package/components/accordion/example-accordion-open.njk +126 -0
- package/components/accordion/example-accordion.njk +25 -0
- package/components/address-input/example-address-input-editable.njk +52 -0
- package/components/address-input/example-address-input-manual.njk +23 -0
- package/components/address-input/example-address-input.njk +40 -0
- package/components/autosuggest/example-autosuggest-country-multiple.njk +30 -0
- package/components/autosuggest/example-autosuggest-country.njk +29 -0
- package/components/back-link/example-back-link.njk +17 -0
- package/components/breadcrumbs/example-breadcrumbs-single.njk +13 -0
- package/components/breadcrumbs/example-breadcrumbs.njk +17 -0
- package/components/button/example-button-custom.njk +20 -0
- package/components/button/example-button-disabled.njk +7 -0
- package/components/button/example-button-download.njk +9 -0
- package/components/button/example-button-ghost.njk +15 -0
- package/components/button/example-button-group.njk +16 -0
- package/components/button/example-button-link.njk +7 -0
- package/components/button/example-button-loader.njk +9 -0
- package/components/button/example-button-new-window.njk +12 -0
- package/components/button/example-button-print.njk +8 -0
- package/components/button/example-button-secondary-small.njk +8 -0
- package/components/button/example-button-secondary.njk +8 -0
- package/components/button/example-button-small.njk +8 -0
- package/components/button/example-button-timer.njk +9 -0
- package/components/button/example-button.njk +6 -0
- package/components/call-to-action/example-call-to-action-default.njk +14 -0
- package/components/card/example-card-set-with-images.njk +41 -0
- package/components/card/example-card-set-with-lists.njk +68 -0
- package/components/card/example-card-set.njk +38 -0
- package/components/card/example-card.njk +9 -0
- package/components/checkboxes/example-checkboxes-disabled.njk +34 -0
- package/components/checkboxes/example-checkboxes-error.njk +60 -0
- package/components/checkboxes/example-checkboxes-with-descriptions.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-hidden-label.njk +177 -0
- package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +86 -0
- package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +69 -0
- package/components/checkboxes/example-checkboxes-with-revealed-select.njk +71 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +59 -0
- package/components/checkboxes/example-checkboxes-with-select-all-button.njk +51 -0
- package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +61 -0
- package/components/checkboxes/example-checkboxes-without-border.njk +33 -0
- package/components/checkboxes/example-checkboxes.njk +46 -0
- package/components/content-pagination/example-content-pagination.njk +20 -0
- package/components/cookies-banner/_macro.njk +2 -2
- package/components/cookies-banner/_macro.spec.js +1 -1
- package/components/cookies-banner/example-cookies-banner-cymraeg.njk +9 -0
- package/components/cookies-banner/example-cookies-banner.njk +7 -0
- package/components/date-input/example-date-input-error.njk +62 -0
- package/components/date-input/example-date-input.njk +36 -0
- package/components/details/example-details-with-saved-state.njk +10 -0
- package/components/details/example-details-with-warning.njk +19 -0
- package/components/details/example-details.njk +9 -0
- package/components/document-list/example-document-list-article-featured.njk +31 -0
- package/components/document-list/example-document-list-articles.njk +60 -0
- package/components/document-list/example-document-list-downloads.njk +59 -0
- package/components/document-list/example-document-list-search-result-featured.njk +19 -0
- package/components/document-list/example-document-list-search-results.njk +67 -0
- package/components/duration/example-duration-error-for-single-field.njk +31 -0
- package/components/duration/example-duration-error.njk +30 -0
- package/components/duration/example-duration.njk +35 -0
- package/components/external-link/example-external-link.njk +8 -0
- package/components/feedback/example-feedback-call-to-action.njk +14 -0
- package/components/footer/example-footer-cymraeg.njk +54 -0
- package/components/footer/example-footer-default.njk +7 -0
- package/components/footer/example-footer-transactional.njk +62 -0
- package/components/footer/example-footer-warning.njk +32 -0
- package/components/footer/example-footer-with-alternative-organisation.njk +124 -0
- package/components/footer/example-footer-with-coat-of-arms.njk +32 -0
- package/components/footer/example-footer-with-copyright.njk +35 -0
- package/components/footer/example-footer.njk +85 -0
- package/components/header/_header.scss +2 -2
- package/components/header/example-header-default.njk +12 -0
- package/components/header/example-header-external-for-survey-with-description.njk +20 -0
- package/components/header/example-header-external-for-surveys.njk +33 -0
- package/components/header/example-header-external-welsh.njk +29 -0
- package/components/header/example-header-external-with-navigation.njk +42 -0
- package/components/header/example-header-external-with-service-links.njk +35 -0
- package/components/header/example-header-external-with-sub-navigation.njk +132 -0
- package/components/header/example-header-internal.njk +32 -0
- package/components/header/example-header-neutral-for-multicoloured-logo.njk +59 -0
- package/components/hero/example-hero-dark.njk +15 -0
- package/components/hero/example-hero-default.njk +14 -0
- package/components/images/example-images-for-regular-screens.njk +8 -0
- package/components/images/example-images-for-retina-screens.njk +10 -0
- package/components/input/example-input-email.njk +12 -0
- package/components/input/example-input-number-prefixed.njk +17 -0
- package/components/input/example-input-number-suffixed.njk +34 -0
- package/components/input/example-input-number.njk +15 -0
- package/components/input/example-input-numeric-values.njk +64 -0
- package/components/input/example-input-telephone.njk +13 -0
- package/components/input/example-input-text-width-constrained.njk +11 -0
- package/components/input/example-input-text-with-character-limit-checker.njk +17 -0
- package/components/input/example-input-text-with-description.njk +10 -0
- package/components/input/example-input-text.njk +9 -0
- package/components/label/example-label-with-description.njk +8 -0
- package/components/label/example-label.njk +8 -0
- package/components/metadata/example-metadata.njk +57 -0
- package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +71 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +47 -0
- package/components/mutually-exclusive/example-mutually-exclusive-date.njk +49 -0
- package/components/mutually-exclusive/example-mutually-exclusive-duration.njk +45 -0
- package/components/mutually-exclusive/example-mutually-exclusive-email.njk +36 -0
- package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +63 -0
- package/components/mutually-exclusive/example-mutually-exclusive-number.njk +43 -0
- package/components/mutually-exclusive/example-mutually-exclusive-textarea.njk +40 -0
- package/components/pagination/example-pagination-first.njk +24 -0
- package/components/pagination/example-pagination-last.njk +24 -0
- package/components/pagination/example-pagination-with-no-range-indicator.njk +42 -0
- package/components/pagination/example-pagination.njk +116 -0
- package/components/panel/example-panel-bare.njk +9 -0
- package/components/panel/example-panel-with-announcement.njk +18 -0
- package/components/panel/example-panel-with-error-details.njk +18 -0
- package/components/panel/example-panel-with-error-summary.njk +25 -0
- package/components/panel/example-panel-with-information.njk +7 -0
- package/components/panel/example-panel-with-spacious-information.njk +7 -0
- package/components/panel/example-panel-with-success-message.njk +10 -0
- package/components/panel/example-panel-with-warning.njk +8 -0
- package/components/password/example-password.njk +11 -0
- package/components/phase-banner/example-phase-banner-alpha.njk +10 -0
- package/components/phase-banner/example-phase-banner-beta.njk +9 -0
- package/components/question/example-question-ccs.njk +49 -0
- package/components/question/example-question-fieldset.njk +99 -0
- package/components/question/example-question-interviewer-note.njk +38 -0
- package/components/question/example-question-no-fieldset.njk +46 -0
- package/components/radios/example-radios-with-clear-button.njk +97 -0
- package/components/radios/example-radios-with-descriptions.njk +57 -0
- package/components/radios/example-radios-with-error.njk +38 -0
- package/components/radios/example-radios-with-revealed-checkboxes.njk +69 -0
- package/components/radios/example-radios-with-revealed-radios.njk +68 -0
- package/components/radios/example-radios-with-revealed-select.njk +69 -0
- package/components/radios/example-radios-with-revealed-text-input.njk +80 -0
- package/components/radios/example-radios-with-separator.njk +59 -0
- package/components/radios/example-radios-with-visible-text-input.njk +40 -0
- package/components/radios/example-radios-without-border.njk +48 -0
- package/components/radios/example-radios.njk +38 -0
- package/components/related-content/example-related-content-general.njk +44 -0
- package/components/related-content/example-related-content-multiple-rows-of-links.njk +51 -0
- package/components/related-content/example-related-content-social-media.njk +40 -0
- package/components/relationships/example-relationships-error.njk +211 -0
- package/components/relationships/example-relationships-you.njk +187 -0
- package/components/relationships/example-relationships.njk +185 -0
- package/components/search/example-search-with-character-check.njk +23 -0
- package/components/search/example-search-with-placeholder.njk +16 -0
- package/components/search/example-search.njk +16 -0
- package/components/section-navigation/example-section-navigation-vertical.njk +40 -0
- package/components/section-navigation/example-section-navigation.njk +21 -0
- package/components/select/example-select-wide.njk +55 -0
- package/components/select/example-select-with-error.njk +58 -0
- package/components/select/example-select-with-inline-label.njk +23 -0
- package/components/select/example-select.njk +50 -0
- package/components/share-page/example-share-page.njk +11 -0
- package/components/skip-to-content/example-skip-to-content.njk +10 -0
- package/components/status/example-status-dead.njk +7 -0
- package/components/status/example-status-error.njk +7 -0
- package/components/status/example-status-neutral-information.njk +6 -0
- package/components/status/example-status-pending.njk +7 -0
- package/components/status/example-status-small.njk +8 -0
- package/components/status/example-status-success.njk +7 -0
- package/components/summary/example-summary-grouped-total.njk +67 -0
- package/components/summary/example-summary-grouped-with-errors.njk +96 -0
- package/components/summary/example-summary-grouped.njk +353 -0
- package/components/summary/example-summary-household-no-rows.njk +20 -0
- package/components/summary/example-summary-household.njk +77 -0
- package/components/summary/example-summary-hub.njk +170 -0
- package/components/summary/example-summary-multiple.njk +81 -0
- package/components/summary/example-summary-no-action.njk +40 -0
- package/components/summary/example-summary.njk +107 -0
- package/components/table/example-table-basic.njk +47 -0
- package/components/table/example-table-compact.njk +73 -0
- package/components/table/example-table-footer.njk +56 -0
- package/components/table/example-table-numeric.njk +81 -0
- package/components/table/example-table-responsive.njk +89 -0
- package/components/table/example-table-scrollable.njk +158 -0
- package/components/table/example-table-sortable.njk +236 -0
- package/components/table-of-contents/example-table-of-contents-grouped.njk +50 -0
- package/components/table-of-contents/example-table-of-contents-single.njk +39 -0
- package/components/table-of-contents/example-table-of-contents-sticky.njk +78 -0
- package/components/tabs/example-tabs-details.njk +59 -0
- package/components/tabs/example-tabs.njk +39 -0
- package/components/textarea/example-textarea-error.njk +16 -0
- package/components/textarea/example-textarea-with-character-limit.njk +18 -0
- package/components/textarea/example-textarea.njk +12 -0
- package/components/timeline/example-timeline.njk +35 -0
- package/components/timeout-modal/example-timeout-modal.njk +16 -0
- package/components/timeout-panel/example-panel-with-timeout-warning.njk +13 -0
- package/components/upload/example-upload-error.njk +16 -0
- package/components/upload/example-upload.njk +12 -0
- package/components/video/example-video.njk +14 -0
- package/css/main.css +3 -3
- package/css/print.css +1 -1
- package/layout/_template.njk +1 -12
- package/package.json +3 -8
- package/scss/base/_typography.scss +2 -2
- package/scss/main.scss +0 -1
- package/scss/print.scss +13 -5
- package/scss/utilities/_highlight.scss +6 -0
- package/scss/utilities/_index.scss +1 -0
- package/components/code-highlight/_macro.njk +0 -5
- package/components/code-highlight/_macro.spec.js +0 -56
- package/components/code-highlight/code-highlight.spec.js +0 -18
- package/scss/patternlib.scss +0 -148
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
.example-video-block {
|
|
3
|
+
border: solid 1px #707071;
|
|
4
|
+
}
|
|
5
|
+
</style>
|
|
6
|
+
|
|
7
|
+
<div class="example-video-block">
|
|
8
|
+
{% from "components/video/_macro.njk" import onsVideo %}
|
|
9
|
+
{{
|
|
10
|
+
onsVideo({
|
|
11
|
+
"videoEmbedUrl": 'https://www.youtube.com/embed/_EGJlvkgbPo',
|
|
12
|
+
"videoLinkURL": 'https://www.youtube.com/watch?v=_EGJlvkgbPo',
|
|
13
|
+
"image": {
|
|
14
|
+
"largeSrc": '/patternlib-img/youtube-example-cover.png',
|
|
15
|
+
"smallSrc": '/patternlib-img/youtube-example-cover.png',
|
|
16
|
+
"alt": "Youtube video"
|
|
17
|
+
},
|
|
18
|
+
"title": 'Census 2021 promotional TV advert',
|
|
19
|
+
"linkText": 'Watch “Census 2021 promotional TV advert“ on Youtube'
|
|
20
|
+
})
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
{% from "components/tabs/_macro.njk" import onsTabs %}
|
|
24
|
+
{{
|
|
25
|
+
onsTabs({
|
|
26
|
+
"variants": [ 'details' ],
|
|
27
|
+
"noInitialActiveTab": true,
|
|
28
|
+
"title": 'Contents',
|
|
29
|
+
"tabs": [
|
|
30
|
+
{
|
|
31
|
+
"id": "video-description",
|
|
32
|
+
"title": 'Description',
|
|
33
|
+
"content": '<div class="example-video-block__details">
|
|
34
|
+
<h3 class="ons-u-d-no@s">Description</h3>
|
|
35
|
+
<p>The census provides a snapshot of everyone in England & Wales. We help local councils get the funding they need.</p>
|
|
36
|
+
<p>If you live in one of the rehearsal areas help us by taking part in the #CensusRehearsal.</p>
|
|
37
|
+
</div>'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "video-transcript",
|
|
41
|
+
"title": 'Transcript',
|
|
42
|
+
"content": '<div class="example-video-block__details">
|
|
43
|
+
<h3 class="ons-u-d-no@s">Transcript</h3>
|
|
44
|
+
<p>I count.</p>
|
|
45
|
+
<p>I count.</p>
|
|
46
|
+
<p>I still count.</p>
|
|
47
|
+
<p>When it comes to getting our fair share of services like health care, transport, housing and education, the census really counts. And what makes the census count is all of us.</p>
|
|
48
|
+
</div>'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "video-embed",
|
|
52
|
+
"title": 'Embed',
|
|
53
|
+
"content": '<h3 class="ons-u-d-no@s">Embed</h3>
|
|
54
|
+
<pre class="language-html"><code>' ~ '<iframe width="560" height="315" src="https://www.youtube.com/embed/_EGJlvkgbPo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' | e ~ '</code></pre>'
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
}}
|
|
59
|
+
</div>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{% from "components/tabs/_macro.njk" import onsTabs %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsTabs({
|
|
5
|
+
"title": 'Contents',
|
|
6
|
+
"tabs": [
|
|
7
|
+
{
|
|
8
|
+
"id": "ukis",
|
|
9
|
+
"title": 'UKIS',
|
|
10
|
+
"content": '<h3>Aim of this survey</h3>
|
|
11
|
+
<p class="ons-u-fs-r">The aim of the UK Innovation Survey (UKIS) is to collect data from businesses about various aspects of their innovation related activities. Using this data we can measure the level, types and trends in innovation.</p>
|
|
12
|
+
<h3>How we’ll use this data</h3>
|
|
13
|
+
<p class="ons-u-fs-r">The UKIS data is a major source of evidence to inform government policy. It is used to promote innovation activities among businesses to boost economic growth. It is an important contribution to the European-wide Community Innovation Survey (CIS). The CIS is used for international benchmarking and comparison purposes.</p>
|
|
14
|
+
<p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/ukinnovationsurvey">find more information on the UKIS survey on the ONS website</a>.</p>'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "vacancy-survey",
|
|
18
|
+
"title": 'Vacancy survey',
|
|
19
|
+
"content": '<h3>Purpose</h3>
|
|
20
|
+
<p class="ons-u-fs-r">The Vacancy Survey is a regular survey of businesses, which provides an accurate and comprehensive measure of the total number of vacancies across the economy and fills a gap in the information available regarding the demand for labour. Before the Vacancy Survey was introduced, the only information available nationally about vacancies was from records of vacancies notified to Job Centres by employers. This provided only a partial picture, possibly less than half of all vacancies, because employers are under no obligation to notify vacancies to Job Centres. This business based survey has a more complete coverage and is included in the monthly ONS Labour Market Statistical Bulletin.</p>
|
|
21
|
+
<p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/vacancysurvey">find more information on the Vacancy Survey on the ONS website</a>.</p>'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "monthly-business-survey",
|
|
25
|
+
"title": 'Monthly Business Survey',
|
|
26
|
+
"content": '<h3>Aim of this survey</h3>
|
|
27
|
+
<p class="ons-u-fs-r">The Monthly Business Survey (MBS) collects monthly information on employment of businesses in Great Britain. Your response contributes to Labour Market Statistics.</p>
|
|
28
|
+
<h4>What you need to know</h4>
|
|
29
|
+
<p class="ons-u-fs-r">To complete the survey, you will need the following information to answer the survey questions:</p>
|
|
30
|
+
<ul>
|
|
31
|
+
<li>number of full-time/part-time male employees</li>
|
|
32
|
+
<li>number of full-time/part-time female employees</li>
|
|
33
|
+
<li>total number of employees for the business</li>
|
|
34
|
+
</ul>
|
|
35
|
+
<p>You can <a href="https://www.ons.gov.uk/surveys/informationforbusinesses/businesssurveys/monthlybusinesssurveyretailsalesindex">find more information on the Monthly Business Survey on the ONS website</a>.</p>'
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
})
|
|
39
|
+
}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "components/textarea/_macro.njk" import onsTextarea %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsTextarea({
|
|
5
|
+
"id": "textarea",
|
|
6
|
+
"name": "feedback",
|
|
7
|
+
"label": {
|
|
8
|
+
"text": "Please provide some feedback",
|
|
9
|
+
"description": "For example, describe any difficulties you experienced in the use of this service"
|
|
10
|
+
},
|
|
11
|
+
"error": {
|
|
12
|
+
"id": "feedback-error",
|
|
13
|
+
"text": "Enter your feedback"
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{% from "components/textarea/_macro.njk" import onsTextarea %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsTextarea({
|
|
5
|
+
"id": "textarea-char-limit",
|
|
6
|
+
"name": "feedback-limited",
|
|
7
|
+
"width": "30",
|
|
8
|
+
"label": {
|
|
9
|
+
"text": "Please provide some feedback",
|
|
10
|
+
"description": "For example, describe any difficulties you experienced in the use of this service"
|
|
11
|
+
},
|
|
12
|
+
"charCheckLimit": {
|
|
13
|
+
"limit": 200,
|
|
14
|
+
"charCountSingular": "You have {x} character remaining",
|
|
15
|
+
"charCountPlural": "You have {x} characters remaining"
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
}}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% from "components/textarea/_macro.njk" import onsTextarea %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsTextarea({
|
|
5
|
+
"id": "textarea",
|
|
6
|
+
"name": "feedback",
|
|
7
|
+
"label": {
|
|
8
|
+
"text": "Please provide some feedback",
|
|
9
|
+
"description": "For example, describe any difficulties you experienced in the use of this service"
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
}}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{% from "components/timeline/_macro.njk" import onsTimeline %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsTimeline({
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"heading": 'September to October 2020',
|
|
8
|
+
"itemsList": [
|
|
9
|
+
{
|
|
10
|
+
"text": "Meet your Community Engagement Manager and set up regular catch up meetings"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"text": "Local Authority Toolkit available online"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"heading": 'September 2020',
|
|
19
|
+
"content": '<p>ONS to provide Councillor Handbook for distribution</p>'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"heading": 'November 2020',
|
|
23
|
+
"content": '<p>ONS to provide you with content for magazines and publications</p>'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"heading": 'January to March 2021',
|
|
27
|
+
"content": '<p>ONS to provide a range of press releases for external use</p>'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"heading": 'February to April 2021',
|
|
31
|
+
"content": '<p>Promote your local Census Support Centres</p>'
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "components/timeout-modal/_macro.njk" import onsTimeoutModal %}
|
|
2
|
+
|
|
3
|
+
{{ onsTimeoutModal({
|
|
4
|
+
"showModalTimeInSeconds": 58,
|
|
5
|
+
"redirectUrl": "#!",
|
|
6
|
+
"title": "You will be signed out soon",
|
|
7
|
+
"textFirstLine": "It appears you have been inactive for a while.",
|
|
8
|
+
"countdownText": "To protect your information, your progress will be saved and you will be signed out in",
|
|
9
|
+
"countdownExpiredText": "You are being signed out.",
|
|
10
|
+
"btnText": "Continue survey",
|
|
11
|
+
"minutesTextSingular": "minute",
|
|
12
|
+
"minutesTextPlural": "minutes",
|
|
13
|
+
"secondsTextSingular": "second",
|
|
14
|
+
"secondsTextPlural": "seconds",
|
|
15
|
+
"endWithFullStop": true
|
|
16
|
+
}) }}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% from "components/timeout-panel/_macro.njk" import onsTimeoutPanel %}
|
|
2
|
+
|
|
3
|
+
{{ onsTimeoutPanel ({
|
|
4
|
+
"id": "countdown",
|
|
5
|
+
"redirectUrl": "#!",
|
|
6
|
+
"minutesTextSingular":"minute",
|
|
7
|
+
"minutesTextPlural":"minutes",
|
|
8
|
+
"secondsTextSingular":"second",
|
|
9
|
+
"secondsTextPlural":"seconds",
|
|
10
|
+
"countdownText":"For security, your answers will only be available to view for another",
|
|
11
|
+
"nojsText": "For security, your answers will only be available to view for another 1 minute",
|
|
12
|
+
"countdownExpiredText": "You are being signed out"
|
|
13
|
+
}) }}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{% from "components/upload/_macro.njk" import onsUpload %}
|
|
2
|
+
|
|
3
|
+
{{
|
|
4
|
+
onsUpload({
|
|
5
|
+
"id": "file",
|
|
6
|
+
"accept": ".xls,.xlsx,.pdf",
|
|
7
|
+
"label": {
|
|
8
|
+
"description": "File types accepted are XLS and XLSX or PDF",
|
|
9
|
+
"text": "Upload a file"
|
|
10
|
+
},
|
|
11
|
+
"error": {
|
|
12
|
+
"id": "file-error",
|
|
13
|
+
"text": "Select a file that is an XLS, XLSX or PDF"
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% from "components/video/_macro.njk" import onsVideo %}
|
|
2
|
+
{{
|
|
3
|
+
onsVideo({
|
|
4
|
+
"videoEmbedUrl": 'https://www.youtube.com/embed/_EGJlvkgbPo',
|
|
5
|
+
"videoLinkURL": 'https://www.youtube.com/watch?v=_EGJlvkgbPo',
|
|
6
|
+
"image": {
|
|
7
|
+
"largeSrc": '/patternlib-img/youtube-example-cover.png',
|
|
8
|
+
"smallSrc": '/patternlib-img/youtube-example-cover.png',
|
|
9
|
+
"alt": "Youtube video"
|
|
10
|
+
},
|
|
11
|
+
"title": 'Census 2021 promotional TV advert',
|
|
12
|
+
"linkText": 'Watch “Census 2021 promotional TV advert“ on Youtube'
|
|
13
|
+
})
|
|
14
|
+
}}
|