@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/accordion/macro.njk" import modukAccordion %}
1
+ {% from "moduk/components/accordion/macro.njk" import modukAccordion -%}
2
2
 
3
3
  {{ modukAccordion({
4
4
  id: "accordion-default",
@@ -36,4 +36,4 @@
36
36
  }
37
37
  }
38
38
  ]
39
- }) }}
39
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/accordion/macro.njk" import modukAccordion %}
1
+ {% from "moduk/components/accordion/macro.njk" import modukAccordion -%}
2
2
 
3
3
  {{ modukAccordion({
4
4
  id: "accordion-with-summary-sections",
@@ -119,4 +119,4 @@
119
119
  }
120
120
  }
121
121
  ]
122
- }) }}
122
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/accordion/macro.njk" import govukAccordion %}
2
2
 
3
- {% macro modukAccordion(params) %}
3
+ {% macro modukAccordion(params) -%}
4
4
  {{ govukAccordion(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/back-link/macro.njk" import modukBackLink %}
1
+ {% from "moduk/components/back-link/macro.njk" import modukBackLink -%}
2
2
 
3
3
  {{ modukBackLink({
4
4
  text: "Back",
5
5
  href: "#"
6
- }) }}
6
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/back-link/macro.njk" import govukBackLink %}
2
2
 
3
- {% macro modukBackLink(params) %}
3
+ {% macro modukBackLink(params) -%}
4
4
  {{ govukBackLink(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {%- from "moduk/components/breadcrumbs/macro.njk" import modukBreadcrumbs -%}
1
+ {% from "moduk/components/breadcrumbs/macro.njk" import modukBreadcrumbs -%}
2
2
 
3
3
  {{ modukBreadcrumbs({
4
4
  items: [
@@ -15,4 +15,4 @@
15
15
  href: "#"
16
16
  }
17
17
  ]
18
- }) }}
18
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %}
2
2
 
3
- {% macro modukBreadcrumbs(params) %}
3
+ {%- macro modukBreadcrumbs(params) -%}
4
4
  {{ govukBreadcrumbs(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,5 +1,5 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  {{ modukButton({
4
4
  text: "Save and continue"
5
- }) }}
5
+ }) -}}
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  {{ modukButton({
4
4
  text: "Disabled button",
5
5
  disabled: true
6
- }) }}
6
+ }) -}}
@@ -1,9 +1,9 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  <div class="govuk-button-group">
4
4
  {{ modukButton({
5
5
  text: "Continue"
6
- }) }}
6
+ }) -}}
7
7
 
8
8
  <a class="govuk-link" href="#">Cancel</a>
9
9
  </div>
@@ -1,12 +1,12 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  <div class="govuk-button-group">
4
4
  {{ modukButton({
5
5
  text: "Save and continue"
6
- }) }}
6
+ }) -}}
7
7
 
8
- {{ modukButton({
8
+ {{- modukButton({
9
9
  text: "Save as draft",
10
10
  classes: "govuk-button--secondary"
11
- }) }}
11
+ }) -}}
12
12
  </div>
@@ -1,5 +1,4 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
2
-
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
3
2
 
4
3
  <form id="testForm">
5
4
  {{ modukButton({
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  {{ modukButton({
4
4
  text: "Find address",
5
5
  classes: "govuk-button--secondary"
6
- }) }}
6
+ }) -}}
@@ -1,7 +1,7 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  {{ modukButton({
4
4
  text: "Start now",
5
5
  href: "#",
6
6
  isStartButton: true
7
- }) }}
7
+ }) -}}
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/button/macro.njk" import modukButton %}
1
+ {% from "moduk/components/button/macro.njk" import modukButton -%}
2
2
 
3
3
  {{ modukButton({
4
4
  text: "Delete account",
5
5
  classes: "govuk-button--warning"
6
- }) }}
6
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/button/macro.njk" import govukButton %}
2
2
 
3
- {% macro modukButton(params) %}
3
+ {% macro modukButton(params) -%}
4
4
  {{ govukButton(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/character-count/macro.njk" import modukCharacterCount %}
1
+ {% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
2
2
 
3
3
  {{ modukCharacterCount({
4
4
  name: "with-hint",
@@ -12,4 +12,4 @@
12
12
  hint: {
13
13
  text: "This will be shown on the public page for the event, below the event title"
14
14
  }
15
- }) }}
15
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/character-count/macro.njk" import modukCharacterCount %}
1
+ {% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
2
2
 
3
3
  {{ modukCharacterCount({
4
4
  name: "not-as-page-heading",
@@ -7,4 +7,4 @@
7
7
  label: {
8
8
  text: "Describe the nature of your event"
9
9
  }
10
- }) }}
10
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/character-count/macro.njk" import modukCharacterCount %}
1
+ {% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
2
2
 
3
3
  {{ modukCharacterCount({
4
4
  id: "exceeding-characters",
@@ -13,4 +13,4 @@
13
13
  errorMessage: {
14
14
  text: "Job description must be 350 characters or less"
15
15
  }
16
- }) }}
16
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/character-count/macro.njk" import modukCharacterCount %}
1
+ {% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
2
2
 
3
3
  {{ modukCharacterCount({
4
4
  name: "threshold",
@@ -11,4 +11,4 @@
11
11
  classes: "govuk-label--l",
12
12
  isPageHeading: true
13
13
  }
14
- }) }}
14
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/character-count/macro.njk" import modukCharacterCount %}
1
+ {% from "moduk/components/character-count/macro.njk" import modukCharacterCount -%}
2
2
 
3
3
  {{ modukCharacterCount({
4
4
  name: "word-count",
@@ -9,4 +9,4 @@
9
9
  classes: "govuk-label--l",
10
10
  isPageHeading: true
11
11
  }
12
- }) }}
12
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/character-count/macro.njk" import govukCharacterCount %}
2
2
 
3
- {% macro modukCharacterCount(params) %}
3
+ {% macro modukCharacterCount(params) -%}
4
4
  {{ govukCharacterCount(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
4
  name: "technologies-default",
@@ -34,4 +34,4 @@
34
34
  text: "Another technology"
35
35
  }
36
36
  ]
37
- }) }}
37
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
4
  name: "technologies-not-as-page-heading",
@@ -32,4 +32,4 @@
32
32
  text: "Another technology"
33
33
  }
34
34
  ]
35
- }) }}
35
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
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/checkboxes/macro.njk" import modukCheckboxes %}
2
- {% from "moduk/components/input/macro.njk" import modukInput %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
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
  {{ modukCheckboxes({
@@ -77,4 +77,4 @@
77
77
  }
78
78
  }
79
79
  ]
80
- }) }}
80
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
4
  name: "technologies-with-error-message",
@@ -37,4 +37,4 @@
37
37
  text: "Another technology"
38
38
  }
39
39
  ]
40
- }) }}
40
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
4
  name: "technologies-with-item-hint",
@@ -37,4 +37,4 @@
37
37
  text: "Another technology"
38
38
  }
39
39
  ]
40
- }) }}
40
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
2
2
 
3
3
  {{ modukCheckboxes({
4
4
  name: "technologies-with-none-option",
@@ -38,4 +38,4 @@
38
38
  behaviour: "exclusive"
39
39
  }
40
40
  ]
41
- }) }}
41
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/checkboxes/macro.njk" import govukCheckboxes %}
2
2
 
3
- {% macro modukCheckboxes(params) %}
3
+ {% macro modukCheckboxes(params) -%}
4
4
  {{ govukCheckboxes(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -3,11 +3,11 @@
3
3
  {% set html %}
4
4
  <p class="govuk-body">We use some essential cookies to make this service work.</p>
5
5
  <p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
6
- {% endset %}
6
+ {% endset -%}
7
7
 
8
- {% set acceptHtml %}
8
+ {%- set acceptHtml %}
9
9
  <p class="govuk-body">You’ve accepted analytics cookies. You can <a class="govuk-link" href="#">change your cookie settings</a> at any time.</p>
10
- {% endset %}
10
+ {% endset -%}
11
11
 
12
12
  {{ modukCookieBanner({
13
13
  ariaLabel: "Cookies on the Defence Service Manual",
@@ -44,4 +44,4 @@
44
44
  ]
45
45
  }
46
46
  ]
47
- }) }}
47
+ }) -}}
@@ -3,7 +3,7 @@
3
3
  {% set html %}
4
4
  <p class="govuk-body">We use some essential cookies to make this service work.</p>
5
5
  <p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
6
- {% endset %}
6
+ {% endset -%}
7
7
 
8
8
  {{ modukCookieBanner({
9
9
  ariaLabel: "Cookies on the Defence Service Manual",
@@ -31,4 +31,4 @@
31
31
  ]
32
32
  }
33
33
  ]
34
- }) }}
34
+ }) -}}
@@ -1,14 +1,13 @@
1
1
  {%- from "moduk/components/cookie-banner/macro.njk" import modukCookieBanner -%}
2
2
 
3
- {% set html %}
3
+ {%- set html %}
4
4
  <p class="govuk-body">We use some essential cookies to make this service work.</p>
5
5
  <p class="govuk-body">We’d also like to use analytics cookies so we can understand how you use the service and make improvements.</p>
6
- {% endset %}
6
+ {% endset -%}
7
7
 
8
8
  {% set rejectHtml %}
9
9
  <p class="govuk-body">You’ve rejected analytics cookies. You can <a class="govuk-link" href="#">change your cookie settings</a> at any time.</p>
10
- {% endset %}
11
-
10
+ {% endset -%}
12
11
 
13
12
  {{ modukCookieBanner({
14
13
  ariaLabel: "Cookies on the Defence Service Manual",
@@ -45,4 +44,4 @@
45
44
  ]
46
45
  }
47
46
  ]
48
- }) }}
47
+ }) -}}
@@ -1,5 +1,5 @@
1
- {% from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner %}
1
+ {%- from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner %}
2
2
 
3
- {% macro modukCookieBanner(params) %}
3
+ {%- macro modukCookieBanner(params) -%}
4
4
  {{ govukCookieBanner(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
1
+ {% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
2
2
 
3
3
  {{ modukDateInput({
4
4
  id: "contract-start-date-default",
@@ -13,4 +13,4 @@
13
13
  hint: {
14
14
  text: "For example, 27 3 2023"
15
15
  }
16
- }) }}
16
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
1
+ {% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
2
2
 
3
3
  {{ modukDateInput({
4
4
  id: "contract-start-date-not-as-heading",
@@ -11,4 +11,4 @@
11
11
  hint: {
12
12
  text: "For example, 27 3 2023"
13
13
  }
14
- }) }}
14
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
1
+ {% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
2
2
 
3
3
  {{ modukDateInput({
4
4
  id: "contract-start-date-with-part-error",
@@ -32,4 +32,4 @@
32
32
  name: "year"
33
33
  }
34
34
  ]
35
- }) }}
35
+ }) -}}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
1
+ {% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
2
2
 
3
3
  {{ modukDateInput({
4
4
  id: "contract-start-date-with-whole-error",
@@ -33,4 +33,4 @@
33
33
  value: "2001"
34
34
  }
35
35
  ]
36
- }) }}
36
+ }) -}}
@@ -1,5 +1,5 @@
1
- {% from "govuk/components/date-input/macro.njk" import govukDateInput %}
1
+ {% from "govuk/components/date-input/macro.njk" import govukDateInput -%}
2
2
 
3
- {% macro modukDateInput(params) %}
3
+ {% macro modukDateInput(params) -%}
4
4
  {{ govukDateInput(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,6 +1,6 @@
1
- {% from "moduk/components/details/macro.njk" import modukDetails %}
1
+ {% from "moduk/components/details/macro.njk" import modukDetails -%}
2
2
 
3
3
  {{ modukDetails({
4
4
  summaryText: "Help with organisation",
5
5
  text: "We need to know the organisation you work for so we can forward your request to the correct team."
6
- }) }}
6
+ }) -}}
@@ -1,7 +1,7 @@
1
- {% from "moduk/components/details/macro.njk" import modukDetails %}
1
+ {% from "moduk/components/details/macro.njk" import modukDetails -%}
2
2
 
3
3
  {{ modukDetails({
4
4
  summaryText: "Help with organisation",
5
5
  text: "We need to know the organisation you work for so we can forward your request to the correct team.",
6
6
  open: true
7
- }) }}
7
+ }) -}}
@@ -1,5 +1,5 @@
1
- {% from "moduk/components/error-message/macro.njk" import modukErrorMessage %}
1
+ {% from "moduk/components/error-message/macro.njk" import modukErrorMessage -%}
2
2
 
3
3
  {{ modukErrorMessage({
4
4
  text: "Enter a first name"
5
- }) }}
5
+ }) -}}
@@ -1,5 +1,5 @@
1
1
  {% from "govuk/components/error-message/macro.njk" import govukErrorMessage %}
2
2
 
3
- {% macro modukErrorMessage(params) %}
3
+ {% macro modukErrorMessage(params) -%}
4
4
  {{ govukErrorMessage(params) }}
5
- {% endmacro %}
5
+ {%- endmacro %}
@@ -1,4 +1,4 @@
1
- {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary %}
1
+ {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
2
2
 
3
3
  {{ modukErrorSummary({
4
4
  titleText: "There is a problem",
@@ -13,4 +13,4 @@
13
13
  href: "#full-name-input"
14
14
  }
15
15
  ]
16
- }) }}
16
+ }) -}}
@@ -1,5 +1,5 @@
1
- {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary %}
2
- {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
1
+ {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
2
+ {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes -%}
3
3
 
4
4
  <div>
5
5
  {{ modukErrorSummary({
@@ -10,7 +10,7 @@
10
10
  href: "#technologies"
11
11
  }
12
12
  ]
13
- }) }}
13
+ }) -}}
14
14
 
15
15
  {{ modukCheckboxes({
16
16
  name: "technologies",
@@ -49,6 +49,6 @@
49
49
  text: "Another technology"
50
50
  }
51
51
  ]
52
- }) }}
52
+ }) -}}
53
53
 
54
54
  </div>
@@ -1,5 +1,5 @@
1
- {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary %}
2
- {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
1
+ {% from "moduk/components/error-summary/macro.njk" import modukErrorSummary -%}
2
+ {% from "moduk/components/date-input/macro.njk" import modukDateInput -%}
3
3
 
4
4
  <div>
5
5
  {{ modukErrorSummary({
@@ -10,7 +10,7 @@
10
10
  href: "#incorect-date-format-year"
11
11
  }
12
12
  ]
13
- }) }}
13
+ }) -}}
14
14
 
15
15
  {{ modukDateInput({
16
16
  id: "incorect-date-format",
@@ -1,6 +1,6 @@
1
1
  {% from "govuk/components/error-summary/macro.njk" import govukErrorSummary %}
2
2
 
3
- {% macro modukErrorSummary(params) %}
3
+ {% macro modukErrorSummary(params) -%}
4
4
  {% if caller -%}
5
5
  {% call govukErrorSummary(params) -%}
6
6
  {{ caller() }}
@@ -8,4 +8,4 @@
8
8
  {%- else -%}
9
9
  {{ govukErrorSummary(params) }}
10
10
  {%- endif %}
11
- {% endmacro %}
11
+ {%- endmacro %}