@moduk/frontend 1.0.0 → 1.0.2
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/dist/lib/nunjucks/moduk/components/accordion/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/__examples__/with-summary-lines.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/disabled.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/group-link.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/grouping.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/button/__examples__/prevent-double-click.njk +1 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/secondary.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/start.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/warning.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-threshold.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/word-count.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-none-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/accepted.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/rejected.njk +4 -5
- package/dist/lib/nunjucks/moduk/components/cookie-banner/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-date-part-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/details/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/details/__examples__/open.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-checkbox.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-date-part.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/error-summary/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/fieldset/__examples__/default.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation-and-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-no-service-url.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/macro.njk +30 -31
- package/dist/lib/nunjucks/moduk/components/input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk +15 -15
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-numeric.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/inset-text/__examples__/default.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/inset-text/macro.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/success.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/with-html.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-first-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-last-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-ellipses.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-link-labels.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/panel/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/macro.njk +3 -4
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/inline.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/select/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/__examples__/default.njk +2 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards-with-action.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-actions.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-border.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-comparative-numbers.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-customised-column-widths.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tabs/__examples__/default.njk +7 -7
- package/dist/lib/nunjucks/moduk/components/tabs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/blue.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/green.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/grey.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/orange.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/pink.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/purple.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/red.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/turquoise.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/yellow.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-custom-height.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/macro.njk +2 -2
- package/package.json +2 -2
package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/pagination/macro.njk" import modukPagination
|
|
1
|
+
{% from "moduk/components/pagination/macro.njk" import modukPagination -%}
|
|
2
2
|
|
|
3
3
|
{{ modukPagination({
|
|
4
4
|
previous: {
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
labelText: "3 of 3",
|
|
10
10
|
href: "#"
|
|
11
11
|
}
|
|
12
|
-
}) }}
|
|
12
|
+
}) -}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
|
|
2
2
|
|
|
3
3
|
{{ modukPhaseBanner({
|
|
4
4
|
tag: {
|
|
5
5
|
text: "beta"
|
|
6
6
|
},
|
|
7
7
|
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
|
|
8
|
-
}) }}
|
|
8
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
|
|
2
2
|
|
|
3
3
|
{{ modukPhaseBanner({
|
|
4
4
|
tag: {
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
"data-testid": "phase-banner"
|
|
10
10
|
},
|
|
11
11
|
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
|
|
12
|
-
}) }}
|
|
12
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
|
|
2
2
|
|
|
3
3
|
{{ modukPhaseBanner({
|
|
4
4
|
tag: {
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
classes: "govuk-tag--grey"
|
|
7
7
|
},
|
|
8
8
|
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
|
|
9
|
-
}) }}
|
|
9
|
+
}) -}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
|
|
2
2
|
|
|
3
3
|
{{ modukPhaseBanner({
|
|
4
4
|
tag: {
|
|
5
5
|
text: "beta"
|
|
6
6
|
},
|
|
7
7
|
text: 'This is a new service'
|
|
8
|
-
}) }}
|
|
8
|
+
}) -}}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %}
|
|
2
2
|
|
|
3
|
-
{% macro modukPhaseBanner(params)
|
|
4
|
-
{{ govukPhaseBanner(params | addCustomMODUKClass("moduk-tag--default", { not: r/^govuk-tag--/, path: "tag.classes" })) }}
|
|
5
|
-
{
|
|
6
|
-
|
|
3
|
+
{% macro modukPhaseBanner(params) -%}
|
|
4
|
+
{{- govukPhaseBanner(params | addCustomMODUKClass("moduk-tag--default", { not: r/^govuk-tag--/, path: "tag.classes" })) -}}
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
4
|
name: "organisation-default",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
text: "Strategic Command"
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
|
-
}) }}
|
|
30
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
4
|
name: "organisation-not-as-page-heading",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
text: "Strategic Command"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
|
-
}) }}
|
|
28
|
+
}) -}}
|
|
29
29
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
4
|
name: "organisation-small",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
text: "Strategic Command"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
|
-
}) }}
|
|
31
|
+
}) -}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
2
|
-
{% from "moduk/components/input/macro.njk" import modukInput
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
|
+
{% from "moduk/components/input/macro.njk" import modukInput -%}
|
|
3
3
|
|
|
4
4
|
{% set emailHtml %}
|
|
5
|
-
{{ modukInput({
|
|
5
|
+
{{- modukInput({
|
|
6
6
|
id: "contact-by-email",
|
|
7
7
|
name: "contact-by-email",
|
|
8
8
|
type: "email",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
label: {
|
|
13
13
|
text: "Email address"
|
|
14
14
|
}
|
|
15
|
-
}) }}
|
|
15
|
+
}) -}}
|
|
16
16
|
{% endset -%}
|
|
17
17
|
|
|
18
18
|
{% set phoneHtml %}
|
|
19
|
-
{{ modukInput({
|
|
19
|
+
{{- modukInput({
|
|
20
20
|
id: "contact-by-phone",
|
|
21
21
|
name: "contact-by-phone",
|
|
22
22
|
type: "tel",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
label: {
|
|
26
26
|
text: "Phone number"
|
|
27
27
|
}
|
|
28
|
-
}) }}
|
|
28
|
+
}) -}}
|
|
29
29
|
{% endset -%}
|
|
30
30
|
|
|
31
31
|
{% set textHtml %}
|
|
32
|
-
{{ modukInput({
|
|
32
|
+
{{- modukInput({
|
|
33
33
|
id: "contact-by-text",
|
|
34
34
|
name: "contact-by-text",
|
|
35
35
|
type: "tel",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
label: {
|
|
39
39
|
text: "Mobile phone number"
|
|
40
40
|
}
|
|
41
|
-
}) }}
|
|
41
|
+
}) -}}
|
|
42
42
|
{% endset -%}
|
|
43
43
|
|
|
44
44
|
{{ modukRadios({
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
|
-
}) }}
|
|
80
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
4
|
name: "with-divider-option",
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
text: "Register for a new account"
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
|
-
}) }}
|
|
29
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/radios/macro.njk" import modukRadios
|
|
1
|
+
{% from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
4
|
name: "organisation-with-error",
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
text: "Strategic Command"
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
|
-
}) }}
|
|
33
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "govuk/components/radios/macro.njk" import govukRadios
|
|
1
|
+
{% from "govuk/components/radios/macro.njk" import govukRadios -%}
|
|
2
2
|
|
|
3
|
-
{% macro modukRadios(params)
|
|
3
|
+
{% macro modukRadios(params) -%}
|
|
4
4
|
{{ govukRadios(params) }}
|
|
5
|
-
{
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "govuk/components/select/macro.njk" import govukSelect
|
|
1
|
+
{% from "govuk/components/select/macro.njk" import govukSelect -%}
|
|
2
2
|
|
|
3
|
-
{% macro modukSelect(params)
|
|
3
|
+
{% macro modukSelect(params) -%}
|
|
4
4
|
{{ govukSelect(params) }}
|
|
5
|
-
{
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{%- from "moduk/components/skip-link/macro.njk" import modukSkipLink -%}
|
|
2
2
|
|
|
3
|
-
{# Wrapped in a <div> so there is one root element, for visual regression tests to use
|
|
3
|
+
{# Wrapped in a <div> so there is one root element, for visual regression tests to use -#}
|
|
4
4
|
|
|
5
5
|
<div>
|
|
6
6
|
<p class="govuk-body" id="content">To view the skip link component tab to this example, or click inside this example and press tab.</p>
|
|
7
|
-
|
|
8
7
|
{{ modukSkipLink({
|
|
9
8
|
text: "Skip to main content",
|
|
10
9
|
href: "#content"
|
|
11
|
-
}) }}
|
|
10
|
+
}) -}}
|
|
12
11
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
2
|
|
|
3
3
|
<div>
|
|
4
4
|
{{- modukSummaryList({
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
|
-
}) }}
|
|
50
|
+
}) -}}
|
|
51
51
|
{{ modukSummaryList({
|
|
52
52
|
card: {
|
|
53
53
|
title: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
2
|
|
|
3
3
|
<div>
|
|
4
4
|
{{- modukSummaryList({
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
|
-
}) }}
|
|
63
|
+
}) -}}
|
|
64
64
|
{{ modukSummaryList({
|
|
65
65
|
card: {
|
|
66
66
|
title: {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
|
-
}) }}
|
|
123
|
+
}) -}}
|
|
124
124
|
{{ modukSummaryList({
|
|
125
125
|
card: {
|
|
126
126
|
title: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
2
|
|
|
3
3
|
{{ modukSummaryList({
|
|
4
4
|
classes: 'govuk-summary-list--no-border',
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
|
-
}) }}
|
|
39
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from "moduk/components/tabs/macro.njk" import modukTabs
|
|
2
|
-
{% from "moduk/components/table/macro.njk" import modukTable
|
|
1
|
+
{% from "moduk/components/tabs/macro.njk" import modukTabs -%}
|
|
2
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
3
3
|
|
|
4
4
|
{% set pastDayHtml %}
|
|
5
5
|
<h2 class="govuk-heading-l">Past day</h2>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
]
|
|
53
|
-
}) }}
|
|
53
|
+
}) -}}
|
|
54
54
|
{% endset -%}
|
|
55
55
|
|
|
56
56
|
{% set pastWeekHtml %}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
]
|
|
105
|
-
}) }}
|
|
105
|
+
}) -}}
|
|
106
106
|
{% endset -%}
|
|
107
107
|
|
|
108
108
|
{% set pastMonthHtml %}
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
]
|
|
156
156
|
]
|
|
157
|
-
}) }}
|
|
157
|
+
}) -}}
|
|
158
158
|
{% endset -%}
|
|
159
159
|
|
|
160
160
|
{% set pastYearHtml %}
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
]
|
|
208
208
|
]
|
|
209
|
-
}) }}
|
|
209
|
+
}) -}}
|
|
210
210
|
{% endset -%}
|
|
211
211
|
|
|
212
212
|
{{ modukTabs({
|
|
@@ -240,4 +240,4 @@
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
]
|
|
243
|
-
}) }}
|
|
243
|
+
}) -}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "govuk/components/tag/macro.njk" import govukTag %}
|
|
2
2
|
|
|
3
|
-
{% macro modukTag(params)
|
|
3
|
+
{% macro modukTag(params) -%}
|
|
4
4
|
{{ govukTag(params | addCustomMODUKClass("moduk-tag--default", { not: r/^govuk-tag--/ })) }}
|
|
5
|
-
{
|
|
5
|
+
{%- endmacro %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/textarea/macro.njk" import modukTextarea
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
2
|
|
|
3
3
|
{{ modukTextarea({
|
|
4
4
|
name: "event-description",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
hint: {
|
|
12
12
|
text: "This will be shown on the public page for the event, below the event title"
|
|
13
13
|
}
|
|
14
|
-
}) }}
|
|
14
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/textarea/macro.njk" import modukTextarea
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
2
|
|
|
3
3
|
{{ modukTextarea({
|
|
4
4
|
name: "event-description-not-as-page-heading",
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
label: {
|
|
7
7
|
text: "What is the event about?"
|
|
8
8
|
}
|
|
9
|
-
}) }}
|
|
9
|
+
}) -}}
|