@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.
Files changed (138) hide show
  1. package/dist/lib/nunjucks/moduk/components/accordion/__examples__/default.njk +2 -2
  2. package/dist/lib/nunjucks/moduk/components/accordion/__examples__/with-summary-lines.njk +2 -2
  3. package/dist/lib/nunjucks/moduk/components/accordion/macro.njk +2 -2
  4. package/dist/lib/nunjucks/moduk/components/back-link/__examples__/default.njk +2 -2
  5. package/dist/lib/nunjucks/moduk/components/back-link/macro.njk +2 -2
  6. package/dist/lib/nunjucks/moduk/components/breadcrumbs/__examples__/default.njk +2 -2
  7. package/dist/lib/nunjucks/moduk/components/breadcrumbs/macro.njk +2 -2
  8. package/dist/lib/nunjucks/moduk/components/button/__examples__/default.njk +2 -2
  9. package/dist/lib/nunjucks/moduk/components/button/__examples__/disabled.njk +2 -2
  10. package/dist/lib/nunjucks/moduk/components/button/__examples__/group-link.njk +2 -2
  11. package/dist/lib/nunjucks/moduk/components/button/__examples__/grouping.njk +4 -4
  12. package/dist/lib/nunjucks/moduk/components/button/__examples__/prevent-double-click.njk +1 -2
  13. package/dist/lib/nunjucks/moduk/components/button/__examples__/secondary.njk +2 -2
  14. package/dist/lib/nunjucks/moduk/components/button/__examples__/start.njk +2 -2
  15. package/dist/lib/nunjucks/moduk/components/button/__examples__/warning.njk +2 -2
  16. package/dist/lib/nunjucks/moduk/components/button/macro.njk +2 -2
  17. package/dist/lib/nunjucks/moduk/components/character-count/__examples__/default.njk +2 -2
  18. package/dist/lib/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk +2 -2
  19. package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk +2 -2
  20. package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-threshold.njk +2 -2
  21. package/dist/lib/nunjucks/moduk/components/character-count/__examples__/word-count.njk +2 -2
  22. package/dist/lib/nunjucks/moduk/components/character-count/macro.njk +2 -2
  23. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/default.njk +2 -2
  24. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/not-as-page-heading.njk +2 -2
  25. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/small.njk +2 -2
  26. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk +9 -9
  27. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-error-message.njk +2 -2
  28. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-item-hint.njk +2 -2
  29. package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-none-option.njk +2 -2
  30. package/dist/lib/nunjucks/moduk/components/checkboxes/macro.njk +2 -2
  31. package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/accepted.njk +4 -4
  32. package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
  33. package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/rejected.njk +4 -5
  34. package/dist/lib/nunjucks/moduk/components/cookie-banner/macro.njk +3 -3
  35. package/dist/lib/nunjucks/moduk/components/date-input/__examples__/default.njk +2 -2
  36. package/dist/lib/nunjucks/moduk/components/date-input/__examples__/not-as-page-heading.njk +2 -2
  37. package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-date-part-error.njk +2 -2
  38. package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk +2 -2
  39. package/dist/lib/nunjucks/moduk/components/date-input/macro.njk +3 -3
  40. package/dist/lib/nunjucks/moduk/components/details/__examples__/default.njk +2 -2
  41. package/dist/lib/nunjucks/moduk/components/details/__examples__/open.njk +2 -2
  42. package/dist/lib/nunjucks/moduk/components/error-message/__examples__/default.njk +2 -2
  43. package/dist/lib/nunjucks/moduk/components/error-message/macro.njk +2 -2
  44. package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +2 -2
  45. package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-checkbox.njk +4 -4
  46. package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-date-part.njk +3 -3
  47. package/dist/lib/nunjucks/moduk/components/error-summary/macro.njk +2 -2
  48. package/dist/lib/nunjucks/moduk/components/fieldset/__examples__/default.njk +8 -8
  49. package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/default.njk +2 -2
  50. package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/with-error.njk +2 -2
  51. package/dist/lib/nunjucks/moduk/components/file-upload/macro.njk +2 -2
  52. package/dist/lib/nunjucks/moduk/components/footer/__examples__/default.njk +2 -2
  53. package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-links.njk +2 -2
  54. package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation-and-links.njk +2 -2
  55. package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation.njk +2 -2
  56. package/dist/lib/nunjucks/moduk/components/footer/macro.njk +2 -2
  57. package/dist/lib/nunjucks/moduk/components/header/__examples__/default.njk +2 -2
  58. package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-navigation.njk +2 -2
  59. package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-no-service-url.njk +2 -2
  60. package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name.njk +2 -2
  61. package/dist/lib/nunjucks/moduk/components/header/macro.njk +30 -31
  62. package/dist/lib/nunjucks/moduk/components/input/__examples__/default.njk +2 -2
  63. package/dist/lib/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk +2 -2
  64. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-error.njk +2 -2
  65. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk +15 -15
  66. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk +8 -8
  67. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-hint.njk +2 -2
  68. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-numeric.njk +2 -2
  69. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk +2 -2
  70. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk +2 -2
  71. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix.njk +2 -2
  72. package/dist/lib/nunjucks/moduk/components/input/__examples__/with-suffix.njk +2 -2
  73. package/dist/lib/nunjucks/moduk/components/input/macro.njk +2 -2
  74. package/dist/lib/nunjucks/moduk/components/inset-text/__examples__/default.njk +3 -3
  75. package/dist/lib/nunjucks/moduk/components/inset-text/macro.njk +1 -1
  76. package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/default.njk +2 -2
  77. package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/success.njk +3 -3
  78. package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/with-html.njk +3 -3
  79. package/dist/lib/nunjucks/moduk/components/notification-banner/macro.njk +2 -2
  80. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/default.njk +2 -2
  81. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-first-page.njk +2 -2
  82. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-last-page.njk +2 -2
  83. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-ellipses.njk +2 -2
  84. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-link-labels.njk +2 -2
  85. package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk +2 -2
  86. package/dist/lib/nunjucks/moduk/components/pagination/macro.njk +3 -3
  87. package/dist/lib/nunjucks/moduk/components/panel/__examples__/default.njk +2 -2
  88. package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +2 -2
  89. package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/default.njk +2 -2
  90. package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +2 -2
  91. package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +2 -2
  92. package/dist/lib/nunjucks/moduk/components/phase-banner/macro.njk +3 -4
  93. package/dist/lib/nunjucks/moduk/components/radios/__examples__/default.njk +2 -2
  94. package/dist/lib/nunjucks/moduk/components/radios/__examples__/inline.njk +2 -2
  95. package/dist/lib/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +2 -2
  96. package/dist/lib/nunjucks/moduk/components/radios/__examples__/small.njk +2 -2
  97. package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-conditional-reveal.njk +9 -9
  98. package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +2 -2
  99. package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +2 -2
  100. package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +2 -2
  101. package/dist/lib/nunjucks/moduk/components/radios/macro.njk +3 -3
  102. package/dist/lib/nunjucks/moduk/components/select/__examples__/default.njk +2 -2
  103. package/dist/lib/nunjucks/moduk/components/select/__examples__/with-hint.njk +2 -2
  104. package/dist/lib/nunjucks/moduk/components/select/macro.njk +3 -3
  105. package/dist/lib/nunjucks/moduk/components/skip-link/__examples__/default.njk +2 -3
  106. package/dist/lib/nunjucks/moduk/components/skip-link/macro.njk +2 -2
  107. package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards-with-action.njk +2 -2
  108. package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards.njk +3 -3
  109. package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/default.njk +2 -2
  110. package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-actions.njk +2 -2
  111. package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-border.njk +2 -2
  112. package/dist/lib/nunjucks/moduk/components/summary-list/macro.njk +2 -2
  113. package/dist/lib/nunjucks/moduk/components/table/__examples__/default.njk +2 -2
  114. package/dist/lib/nunjucks/moduk/components/table/__examples__/with-comparative-numbers.njk +2 -2
  115. package/dist/lib/nunjucks/moduk/components/table/__examples__/with-customised-column-widths.njk +2 -2
  116. package/dist/lib/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +2 -2
  117. package/dist/lib/nunjucks/moduk/components/table/macro.njk +2 -2
  118. package/dist/lib/nunjucks/moduk/components/tabs/__examples__/default.njk +7 -7
  119. package/dist/lib/nunjucks/moduk/components/tabs/macro.njk +2 -2
  120. package/dist/lib/nunjucks/moduk/components/tag/__examples__/blue.njk +2 -2
  121. package/dist/lib/nunjucks/moduk/components/tag/__examples__/default.njk +2 -2
  122. package/dist/lib/nunjucks/moduk/components/tag/__examples__/green.njk +2 -2
  123. package/dist/lib/nunjucks/moduk/components/tag/__examples__/grey.njk +2 -2
  124. package/dist/lib/nunjucks/moduk/components/tag/__examples__/orange.njk +2 -2
  125. package/dist/lib/nunjucks/moduk/components/tag/__examples__/pink.njk +2 -2
  126. package/dist/lib/nunjucks/moduk/components/tag/__examples__/purple.njk +2 -2
  127. package/dist/lib/nunjucks/moduk/components/tag/__examples__/red.njk +2 -2
  128. package/dist/lib/nunjucks/moduk/components/tag/__examples__/turquoise.njk +2 -2
  129. package/dist/lib/nunjucks/moduk/components/tag/__examples__/yellow.njk +2 -2
  130. package/dist/lib/nunjucks/moduk/components/tag/macro.njk +3 -3
  131. package/dist/lib/nunjucks/moduk/components/textarea/__examples__/default.njk +2 -2
  132. package/dist/lib/nunjucks/moduk/components/textarea/__examples__/not-as-page-heading.njk +2 -2
  133. package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-custom-height.njk +2 -2
  134. package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-error.njk +2 -2
  135. package/dist/lib/nunjucks/moduk/components/textarea/macro.njk +2 -2
  136. package/dist/lib/nunjucks/moduk/components/warning-text/__examples__/default.njk +2 -2
  137. package/dist/lib/nunjucks/moduk/components/warning-text/macro.njk +2 -2
  138. package/package.json +2 -2
@@ -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,5 +1,5 @@
1
1
  {% from "govuk/components/pagination/macro.njk" import govukPagination %}
2
2
 
3
- {% macro modukPagination(params) %}
4
- {{ govukPagination(params) }}
5
- {% endmacro %}
3
+ {% macro modukPagination(params) -%}
4
+ {{- govukPagination(params) -}}
5
+ {%- endmacro %}
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/panel/macro.njk" import modukPanel %}
1
+ {% from "moduk/components/panel/macro.njk" import modukPanel -%}
2
2
 
3
3
  {{ modukPanel({
4
4
  titleText: "Application complete",
5
5
  html: "Your reference number<br><strong>HDJ2123F</strong>"
6
- }) }}
6
+ }) -}}
@@ -1,8 +1,8 @@
1
- {%- from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
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
- {%- from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
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
- {%- from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
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
- {%- from "moduk/components/phase-banner/macro.njk" import modukPhaseBanner -%}
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
- {% endmacro %}
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
  classes: "govuk-radios--inline",
@@ -23,4 +23,4 @@
23
23
  text: "No"
24
24
  }
25
25
  ]
26
- }) }}
26
+ }) -}}
@@ -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,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: "sign-in-with-hint",
@@ -28,4 +28,4 @@
28
28
  }
29
29
  }
30
30
  ]
31
- }) }}
31
+ }) -}}
@@ -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
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/select/macro.njk" import modukSelect %}
1
+ {% from "moduk/components/select/macro.njk" import modukSelect -%}
2
2
 
3
3
  {{ modukSelect({
4
4
  id: "sort",
@@ -25,4 +25,4 @@
25
25
  text: "Most comments"
26
26
  }
27
27
  ]
28
- }) }}
28
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/select/macro.njk" import modukSelect %}
1
+ {% from "moduk/components/select/macro.njk" import modukSelect -%}
2
2
 
3
3
  {{ modukSelect({
4
4
  id: "subject",
@@ -52,4 +52,4 @@
52
52
  text: "Yorkshire and the Humber"
53
53
  }
54
54
  ]
55
- }) }}
55
+ }) -}}
@@ -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
- {% endmacro %}
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,5 +1,5 @@
1
1
  {% from "govuk/components/skip-link/macro.njk" import govukSkipLink %}
2
2
 
3
- {% macro modukSkipLink(params) %}
3
+ {% macro modukSkipLink(params) -%}
4
4
  {{ govukSkipLink(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -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
  <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
- {%- from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
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
  rows: [
@@ -71,4 +71,4 @@
71
71
  }
72
72
  }
73
73
  ]
74
- }) }}
74
+ }) -}}
@@ -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
  rows: [
@@ -35,4 +35,4 @@
35
35
  }
36
36
  }
37
37
  ]
38
- }) }}
38
+ }) -}}
@@ -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
1
  {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %}
2
2
 
3
- {% macro modukSummaryList(params) %}
3
+ {% macro modukSummaryList(params) -%}
4
4
  {{ govukSummaryList(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/table/macro.njk" import modukTable %}
1
+ {% from "moduk/components/table/macro.njk" import modukTable -%}
2
2
 
3
3
  {{ modukTable({
4
4
  caption: "Active users of each application",
@@ -38,4 +38,4 @@
38
38
  }
39
39
  ]
40
40
  ]
41
- }) }}
41
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/table/macro.njk" import modukTable %}
1
+ {% from "moduk/components/table/macro.njk" import modukTable -%}
2
2
 
3
3
  {{ modukTable({
4
4
  caption: "Users by role",
@@ -58,4 +58,4 @@
58
58
  }
59
59
  ]
60
60
  ]
61
- }) }}
61
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/table/macro.njk" import modukTable %}
1
+ {% from "moduk/components/table/macro.njk" import modukTable -%}
2
2
 
3
3
  {{ modukTable({
4
4
  caption: "Active users by role",
@@ -53,4 +53,4 @@
53
53
  }
54
54
  ]
55
55
  ]
56
- }) }}
56
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/table/macro.njk" import modukTable %}
1
+ {% from "moduk/components/table/macro.njk" import modukTable -%}
2
2
 
3
3
  {{ modukTable({
4
4
  caption: "Active users of each application",
@@ -38,4 +38,4 @@
38
38
  }
39
39
  ]
40
40
  ]
41
- }) }}
41
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/table/macro.njk" import govukTable %}
2
2
 
3
- {% macro modukTable(params) %}
3
+ {% macro modukTable(params) -%}
4
4
  {{ govukTable(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -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/tabs/macro.njk" import govukTabs %}
2
2
 
3
- {% macro modukTabs(params) %}
3
+ {% macro modukTabs(params) -%}
4
4
  {{ govukTabs(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Pending",
5
5
  classes: "govuk-tag--blue"
6
- }) }}
6
+ }) -}}
@@ -1,5 +1,5 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Completed"
5
- }) }}
5
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "New",
5
5
  classes: "govuk-tag--green"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Inactive",
5
5
  classes: "govuk-tag--grey"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Declined",
5
5
  classes: "govuk-tag--orange"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Sent",
5
5
  classes: "govuk-tag--pink"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Received",
5
5
  classes: "govuk-tag--purple"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Rejected",
5
5
  classes: "govuk-tag--red"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Active",
5
5
  classes: "govuk-tag--turquoise"
6
- }) }}
6
+ }) -}}
@@ -1,6 +1,6 @@
1
- {%- from "moduk/components/tag/macro.njk" import modukTag -%}
1
+ {% from "moduk/components/tag/macro.njk" import modukTag -%}
2
2
 
3
3
  {{ modukTag({
4
4
  text: "Delayed",
5
5
  classes: "govuk-tag--yellow"
6
- }) }}
6
+ }) -}}
@@ -1,5 +1,5 @@
1
- {%- from "govuk/components/tag/macro.njk" import govukTag -%}
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
- {% endmacro %}
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
+ }) -}}