@nationalarchives/frontend 0.34.1 → 0.35.0

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 (55) hide show
  1. package/govuk-prototype-kit.config.json +4 -4
  2. package/nationalarchives/components/accordion/macro-options.json +2 -1
  3. package/nationalarchives/components/button/macro-options.json +14 -7
  4. package/nationalarchives/components/card/macro-options.json +20 -10
  5. package/nationalarchives/components/checkboxes/macro-options.json +6 -3
  6. package/nationalarchives/components/checkboxes/template.njk +2 -2
  7. package/nationalarchives/components/cookie-banner/template.njk +1 -1
  8. package/nationalarchives/components/date-input/macro-options.json +2 -1
  9. package/nationalarchives/components/date-input/template.njk +4 -4
  10. package/nationalarchives/components/date-search/macro-options.json +2 -1
  11. package/nationalarchives/components/date-search/template.njk +1 -1
  12. package/nationalarchives/components/details/macro-options.json +2 -1
  13. package/nationalarchives/components/error-summary/macro-options.json +2 -1
  14. package/nationalarchives/components/fieldset/macro-options.json +2 -1
  15. package/nationalarchives/components/file-input/template.njk +1 -1
  16. package/nationalarchives/components/files-list/macro-options.json +2 -1
  17. package/nationalarchives/components/footer/macro-options.json +8 -4
  18. package/nationalarchives/components/footer/template.njk +2 -2
  19. package/nationalarchives/components/gallery/macro-options.json +2 -1
  20. package/nationalarchives/components/gallery/template.njk +1 -1
  21. package/nationalarchives/components/global-header/macro-options.json +2 -1
  22. package/nationalarchives/components/global-header/template.njk +2 -2
  23. package/nationalarchives/components/header/macro-options.json +4 -2
  24. package/nationalarchives/components/header/template.njk +2 -2
  25. package/nationalarchives/components/hero/macro-options.json +4 -2
  26. package/nationalarchives/components/hero/template.njk +1 -1
  27. package/nationalarchives/components/index-grid/macro-options.json +2 -1
  28. package/nationalarchives/components/pagination/macro-options.json +4 -2
  29. package/nationalarchives/components/pagination/template.njk +1 -1
  30. package/nationalarchives/components/picture/template.njk +1 -1
  31. package/nationalarchives/components/quick-filters/macro-options.json +4 -2
  32. package/nationalarchives/components/radios/macro-options.json +4 -2
  33. package/nationalarchives/components/radios/template.njk +1 -1
  34. package/nationalarchives/components/search-field/template.njk +2 -2
  35. package/nationalarchives/components/secondary-navigation/macro-options.json +8 -4
  36. package/nationalarchives/components/select/template.njk +1 -1
  37. package/nationalarchives/components/sidebar/macro-options.json +4 -2
  38. package/nationalarchives/components/text-input/fixtures.json +14 -1
  39. package/nationalarchives/components/text-input/macro-options.json +16 -5
  40. package/nationalarchives/components/text-input/template.njk +2 -2
  41. package/nationalarchives/components/textarea/macro-options.json +5 -3
  42. package/nationalarchives/components/textarea/template.njk +1 -1
  43. package/nationalarchives/templates/fixtures.json +45 -68
  44. package/nationalarchives/templates/layouts/_generic.njk +18 -18
  45. package/nationalarchives/templates/{email.njk → layouts/email.njk} +3 -3
  46. package/nationalarchives/templates/partials/logo/macro.njk +3 -0
  47. package/nationalarchives/templates/partials/logo/template.njk +9 -0
  48. package/nationalarchives/templates/{layouts/_prototype-kit.njk → prototype-kit/_base.njk} +3 -3
  49. package/nationalarchives/templates/{error-page-not-found.njk → prototype-kit/error-page-not-found.njk} +2 -2
  50. package/nationalarchives/templates/{index-grid.njk → prototype-kit/index-grid.njk} +6 -6
  51. package/nationalarchives/templates/{list.njk → prototype-kit/list.njk} +5 -5
  52. package/nationalarchives/templates/{plain.njk → prototype-kit/plain.njk} +4 -4
  53. package/nationalarchives/utilities/grid/macro-options.json +8 -4
  54. package/package.json +1 -1
  55. package/nationalarchives/templates/partials/logo.njk +0 -11
@@ -9,22 +9,22 @@
9
9
  "templates": [
10
10
  {
11
11
  "name": "Plain text",
12
- "path": "/nationalarchives/templates/plain.njk",
12
+ "path": "/nationalarchives/templates/prototype-kit/plain.njk",
13
13
  "type": "nunjucks"
14
14
  },
15
15
  {
16
16
  "name": "Listing page",
17
- "path": "/nationalarchives/templates/list.njk",
17
+ "path": "/nationalarchives/templates/prototype-kit/list.njk",
18
18
  "type": "nunjucks"
19
19
  },
20
20
  {
21
21
  "name": "Index grid page",
22
- "path": "/nationalarchives/templates/index-grid.njk",
22
+ "path": "/nationalarchives/templates/prototype-kit/index-grid.njk",
23
23
  "type": "nunjucks"
24
24
  },
25
25
  {
26
26
  "name": "Page not found error page",
27
- "path": "/nationalarchives/templates/error-page-not-found.njk",
27
+ "path": "/nationalarchives/templates/prototype-kit/error-page-not-found.njk",
28
28
  "type": "nunjucks"
29
29
  }
30
30
  ]
@@ -68,7 +68,8 @@
68
68
  "name": "enabled",
69
69
  "type": "boolean",
70
70
  "required": true,
71
- "description": "If `true`, add a button above the accordion that allows the user to open or close all sections."
71
+ "description": "If `true`, add a button above the accordion that allows the user to open or close all sections.",
72
+ "default": false
72
73
  },
73
74
  {
74
75
  "name": "openAllLabel",
@@ -39,43 +39,50 @@
39
39
  "name": "accent",
40
40
  "type": "boolean",
41
41
  "required": false,
42
- "description": "If `true`, set the colour of the button to the page’s accent colour."
42
+ "description": "If `true`, set the colour of the button to the page’s accent colour.",
43
+ "default": false
43
44
  },
44
45
  {
45
46
  "name": "small",
46
47
  "type": "boolean",
47
48
  "required": false,
48
- "description": "If `true`, make the button smaller."
49
+ "description": "If `true`, make the button smaller.",
50
+ "default": false
49
51
  },
50
52
  {
51
53
  "name": "plain",
52
54
  "type": "boolean",
53
55
  "required": false,
54
- "description": "If `true`, remove the background colour of the button and make it look more like a link."
56
+ "description": "If `true`, remove the background colour of the button and make it look more like a link.",
57
+ "default": false
55
58
  },
56
59
  {
57
60
  "name": "iconOnly",
58
61
  "type": "boolean",
59
62
  "required": false,
60
- "description": "If `true`, don’t show the text of the button."
63
+ "description": "If `true`, don’t show the text of the button.",
64
+ "default": false
61
65
  },
62
66
  {
63
67
  "name": "iconOnlyOnMobile",
64
68
  "type": "boolean",
65
69
  "required": false,
66
- "description": "If `true`, show both the text and icon on larger devices but only show the icon on smaller devices."
70
+ "description": "If `true`, show both the text and icon on larger devices but only show the icon on smaller devices.",
71
+ "default": false
67
72
  },
68
73
  {
69
74
  "name": "rightAlignIcon",
70
75
  "type": "boolean",
71
76
  "required": false,
72
- "description": "If `true`, align the icon to the right hand side of the button."
77
+ "description": "If `true`, align the icon to the right hand side of the button.",
78
+ "default": false
73
79
  },
74
80
  {
75
81
  "name": "buttonElement",
76
82
  "type": "boolean",
77
83
  "required": false,
78
- "description": "If `true`, use a `<button>` element for the button. This makes the `href` attribute redundant."
84
+ "description": "If `true`, use a `<button>` element for the button. This makes the `href` attribute redundant.",
85
+ "default": false
79
86
  },
80
87
  {
81
88
  "name": "buttonType",
@@ -114,7 +114,8 @@
114
114
  "name": "lazyImage",
115
115
  "type": "boolean",
116
116
  "required": false,
117
- "description": "If `true`, make the image a lazily-loaded image."
117
+ "description": "If `true`, make the image a lazily-loaded image.",
118
+ "default": false
118
119
  },
119
120
  {
120
121
  "name": "label",
@@ -158,13 +159,15 @@
158
159
  "name": "metaStacked",
159
160
  "type": "boolean",
160
161
  "required": false,
161
- "description": "If `true`, stack the list of meta information vertically."
162
+ "description": "If `true`, stack the list of meta information vertically.",
163
+ "default": false
162
164
  },
163
165
  {
164
166
  "name": "accentMeta",
165
167
  "type": "boolean",
166
168
  "required": false,
167
- "description": "If `true`, apply an accented background to the meta items."
169
+ "description": "If `true`, apply an accented background to the meta items.",
170
+ "default": false
168
171
  },
169
172
  {
170
173
  "name": "body",
@@ -220,31 +223,36 @@
220
223
  "name": "fullAreaClick",
221
224
  "type": "boolean",
222
225
  "required": false,
223
- "description": "If `true`, `href` is set and there are no actions, allow users to click anywhere on the card to follow the link."
226
+ "description": "If `true`, `href` is set and there are no actions, allow users to click anywhere on the card to follow the link.",
227
+ "default": false
224
228
  },
225
229
  {
226
230
  "name": "horizontal",
227
231
  "type": "boolean",
228
232
  "required": false,
229
- "description": "If `true`, change the card to a horizontal layout, placing the image to the left of the content. This layout changes back to vertical on smaller devices."
233
+ "description": "If `true`, change the card to a horizontal layout, placing the image to the left of the content. This layout changes back to vertical on smaller devices.",
234
+ "default": false
230
235
  },
231
236
  {
232
237
  "name": "horizontalOnSmall",
233
238
  "type": "boolean",
234
239
  "required": false,
235
- "description": "If `true`, use a horizontal layout on small devices."
240
+ "description": "If `true`, use a horizontal layout on small devices.",
241
+ "default": false
236
242
  },
237
243
  {
238
244
  "name": "horizontalFlipped",
239
245
  "type": "boolean",
240
246
  "required": false,
241
- "description": "If `true`, place the image on the right when using horizontal layouts."
247
+ "description": "If `true`, place the image on the right when using horizontal layouts.",
248
+ "default": false
242
249
  },
243
250
  {
244
251
  "name": "horizontalSmallImage",
245
252
  "type": "boolean",
246
253
  "required": false,
247
- "description": "If `true`, use a smaller image when using horizontal layouts."
254
+ "description": "If `true`, use a smaller image when using horizontal layouts.",
255
+ "default": false
248
256
  },
249
257
  {
250
258
  "name": "style",
@@ -256,13 +264,15 @@
256
264
  "name": "plainSupertitle",
257
265
  "type": "boolean",
258
266
  "required": false,
259
- "description": "If `true`, remove the accent or contrast colour from the card supertitle."
267
+ "description": "If `true`, remove the accent or contrast colour from the card supertitle.",
268
+ "default": false
260
269
  },
261
270
  {
262
271
  "name": "accentMeta",
263
272
  "type": "boolean",
264
273
  "required": false,
265
- "description": "If `true`, meta tags adopt an accented style."
274
+ "description": "If `true`, meta tags adopt an accented style.",
275
+ "default": false
266
276
  },
267
277
  {
268
278
  "name": "htmlElement",
@@ -78,7 +78,8 @@
78
78
  "name": "checked",
79
79
  "type": "boolean",
80
80
  "required": false,
81
- "description": "If `true`, the checkbox will be checked."
81
+ "description": "If `true`, the checkbox will be checked.",
82
+ "default": false
82
83
  }
83
84
  ]
84
85
  },
@@ -86,13 +87,15 @@
86
87
  "name": "small",
87
88
  "type": "boolean",
88
89
  "required": false,
89
- "description": "If `true`, show smaller checkboxes."
90
+ "description": "If `true`, show smaller checkboxes.",
91
+ "default": false
90
92
  },
91
93
  {
92
94
  "name": "inline",
93
95
  "type": "boolean",
94
96
  "required": false,
95
- "description": "If `true`, show the checkboxes inline rather than vertical."
97
+ "description": "If `true`, show the checkboxes inline rather than vertical.",
98
+ "default": false
96
99
  },
97
100
  {
98
101
  "name": "formItemClasses",
@@ -1,5 +1,5 @@
1
- {% from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset %}
2
- {% from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem %}
1
+ {%- from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset -%}
2
+ {%- from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem -%}
3
3
 
4
4
  {% macro checkboxes(params) %}
5
5
  <div class="tna-checkboxes{% if params.small or params.inline %} tna-checkboxes--small{% endif %}{% if params.inline %} tna-checkboxes--inline{% endif %}"{% if (params.items | length != 1) %} id="{{ params.id }}"{% endif %}>
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
4
  {%- if params.style == "contrast" -%}
@@ -86,7 +86,8 @@
86
86
  "name": "progressive",
87
87
  "type": "boolean",
88
88
  "required": false,
89
- "description": "If `true`, order the date fields in a year-month-day order and only show the next field when the previous has a valid value."
89
+ "description": "If `true`, order the date fields in a year-month-day order and only show the next field when the previous has a valid value.",
90
+ "default": false
90
91
  },
91
92
  {
92
93
  "name": "formItemClasses",
@@ -1,7 +1,7 @@
1
- {% from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset %}
2
- {% from "nationalarchives/components/date-input/date-input-day.njk" import tnaDateInputDayElement %}
3
- {% from "nationalarchives/components/date-input/date-input-month.njk" import tnaDateInputMonthElement %}
4
- {% from "nationalarchives/components/date-input/date-input-year.njk" import tnaDateInputYearElement %}
1
+ {%- from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset -%}
2
+ {%- from "nationalarchives/components/date-input/date-input-day.njk" import tnaDateInputDayElement -%}
3
+ {%- from "nationalarchives/components/date-input/date-input-month.njk" import tnaDateInputMonthElement -%}
4
+ {%- from "nationalarchives/components/date-input/date-input-year.njk" import tnaDateInputYearElement -%}
5
5
 
6
6
  {%- call tnaFieldset({
7
7
  headingLevel: params.headingLevel,
@@ -60,7 +60,8 @@
60
60
  "name": "maxWidth",
61
61
  "type": "boolean",
62
62
  "required": false,
63
- "description": "If `true`, make the date search field expand to the full width of the container."
63
+ "description": "If `true`, make the date search field expand to the full width of the container.",
64
+ "default": false
64
65
  },
65
66
  {
66
67
  "name": "formItemClasses",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem %}
1
+ {%- from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem -%}
2
2
 
3
3
  {%- call tnaFormItem({
4
4
  headingLevel: params.headingLevel,
@@ -21,7 +21,8 @@
21
21
  "name": "open",
22
22
  "type": "boolean",
23
23
  "required": false,
24
- "description": "If `true`, open the details component."
24
+ "description": "If `true`, open the details component by default.",
25
+ "default": false
25
26
  },
26
27
  {
27
28
  "name": "classes",
@@ -37,7 +37,8 @@
37
37
  "name": "disableAutoFocus",
38
38
  "type": "boolean",
39
39
  "required": false,
40
- "description": "If `true`, disables the automatic focusing of the error summary when the page loads."
40
+ "description": "If `true`, disables the automatic focusing of the error summary when the page loads.",
41
+ "default": false
41
42
  },
42
43
  {
43
44
  "name": "classes",
@@ -40,7 +40,8 @@
40
40
  "name": "smallerHint",
41
41
  "type": "boolean",
42
42
  "required": false,
43
- "description": "If `true`, make the fieldset hint smaller to match other form field components."
43
+ "description": "If `true`, make the fieldset hint smaller to match other form field components.",
44
+ "default": false
44
45
  },
45
46
  {
46
47
  "name": "error",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem %}
1
+ {%- from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem -%}
2
2
 
3
3
  {%- call tnaFormItem({
4
4
  headingLevel: params.headingLevel,
@@ -65,7 +65,8 @@
65
65
  "name": "fullAreaClick",
66
66
  "type": "boolean",
67
67
  "required": false,
68
- "description": "If `true`, allow users to click anywhere on one of the files to follow the link."
68
+ "description": "If `true`, allow users to click anywhere on one of the files to follow the link.",
69
+ "default": false
69
70
  },
70
71
  {
71
72
  "name": "classes",
@@ -3,7 +3,8 @@
3
3
  "name": "defaultContent",
4
4
  "type": "boolean",
5
5
  "required": false,
6
- "description": "If `true`, use the default content for the footer."
6
+ "description": "If `true`, use the default content for the footer.",
7
+ "default": false
7
8
  },
8
9
  {
9
10
  "name": "defaultContentBaseURL",
@@ -73,7 +74,8 @@
73
74
  "name": "hideTitle",
74
75
  "type": "boolean",
75
76
  "required": false,
76
- "description": "If `true`, hide the title of the navigation section."
77
+ "description": "If `true`, hide the title of the navigation section.",
78
+ "default": false
77
79
  },
78
80
  {
79
81
  "name": "items",
@@ -103,7 +105,8 @@
103
105
  "name": "newTab",
104
106
  "type": "boolean",
105
107
  "required": false,
106
- "description": "If `true`, open the link in a new tab."
108
+ "description": "If `true`, open the link in a new tab.",
109
+ "default": false
107
110
  }
108
111
  ]
109
112
  }
@@ -139,7 +142,8 @@
139
142
  "name": "themeSelector",
140
143
  "type": "boolean",
141
144
  "required": false,
142
- "description": "Enable the theme selector (once settings cookies have been accepted)."
145
+ "description": "If `true`, display the theme selector.",
146
+ "default": false
143
147
  },
144
148
  {
145
149
  "name": "currentTheme",
@@ -1,5 +1,5 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
2
- {% from "nationalarchives/templates/partials/logo.njk" import tnaLogo %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
+ {%- from "nationalarchives/templates/partials/logo/macro.njk" import tnaLogo -%}
3
3
 
4
4
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
5
5
  {%- set classes = containerClasses | join(' ') -%}
@@ -78,7 +78,8 @@
78
78
  "name": "bounded",
79
79
  "type": "boolean",
80
80
  "required": false,
81
- "description": "If `true`, add a background to the gallery to separate it from surrounding contnet."
81
+ "description": "If `true`, add a background to the gallery to separate it from surrounding contnet.",
82
+ "default": false
82
83
  },
83
84
  {
84
85
  "name": "classes",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
4
  {%- if params.bounded -%}
@@ -3,7 +3,8 @@
3
3
  "name": "defaultContent",
4
4
  "type": "boolean",
5
5
  "required": false,
6
- "description": "If `true`, use the default content for the global header."
6
+ "description": "If `true`, use the default content for the global header.",
7
+ "default": false
7
8
  },
8
9
  {
9
10
  "name": "defaultContentBaseURL",
@@ -1,5 +1,5 @@
1
- {% from "nationalarchives/components/phase-banner/macro.njk" import tnaPhaseBanner %}
2
- {% from "nationalarchives/templates/partials/logo.njk" import tnaLogo %}
1
+ {%- from "nationalarchives/components/phase-banner/macro.njk" import tnaPhaseBanner -%}
2
+ {%- from "nationalarchives/templates/partials/logo/macro.njk" import tnaLogo -%}
3
3
 
4
4
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
5
5
  {%- if params.collapseOnMedium -%}
@@ -53,7 +53,8 @@
53
53
  "name": "selected",
54
54
  "type": "boolean",
55
55
  "required": false,
56
- "description": "If `true`, highlight this navigation item as the currently selected page or section."
56
+ "description": "If `true`, highlight this navigation item as the currently selected page or section.",
57
+ "default": false
57
58
  }
58
59
  ]
59
60
  },
@@ -93,7 +94,8 @@
93
94
  "name": "accent",
94
95
  "type": "boolean",
95
96
  "required": false,
96
- "description": "If `true`, use the page's accent colour as the background colour for the header."
97
+ "description": "If `true`, use the page's accent colour as the background colour for the header.",
98
+ "default": false
97
99
  },
98
100
  {
99
101
  "name": "navigationId",
@@ -1,5 +1,5 @@
1
- {% from "nationalarchives/components/phase-banner/macro.njk" import tnaPhaseBanner %}
2
- {% from "nationalarchives/templates/partials/logo.njk" import tnaLogo %}
1
+ {%- from "nationalarchives/components/phase-banner/macro.njk" import tnaPhaseBanner -%}
2
+ {%- from "nationalarchives/templates/partials/logo/macro.njk" import tnaLogo -%}
3
3
 
4
4
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
5
5
  {%- if params.accent -%}
@@ -139,7 +139,8 @@
139
139
  "name": "rightAlignIcon",
140
140
  "type": "boolean",
141
141
  "required": false,
142
- "description": "If `true`, align the icon to the right hand side of the button."
142
+ "description": "If `true`, align the icon to the right hand side of the button.",
143
+ "default": false
143
144
  },
144
145
  {
145
146
  "name": "classes",
@@ -171,7 +172,8 @@
171
172
  "name": "narrow",
172
173
  "type": "boolean",
173
174
  "required": false,
174
- "description": "If `true`, use a narrower style hero image."
175
+ "description": "If `true`, use a narrower style hero image.",
176
+ "default": false
175
177
  },
176
178
  {
177
179
  "name": "classes",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
4
  {%- if params.style == "contrast" -%}
@@ -114,7 +114,8 @@
114
114
  "name": "lazyImages",
115
115
  "type": "boolean",
116
116
  "required": false,
117
- "description": "If `true`, make the images a lazily-loaded."
117
+ "description": "If `true`, make the images a lazily-loaded.",
118
+ "default": false
118
119
  },
119
120
  {
120
121
  "name": "columns",
@@ -54,13 +54,15 @@
54
54
  "name": "current",
55
55
  "type": "boolean",
56
56
  "required": false,
57
- "description": "If `true`, highlight this item as the current page."
57
+ "description": "If `true`, highlight this item as the current page.",
58
+ "default": false
58
59
  },
59
60
  {
60
61
  "name": "ellipsis",
61
62
  "type": "boolean",
62
63
  "required": false,
63
- "description": "Use this option if you want to specify an ellipsis at a given point between numbers. If you set this option as `true`, any other options for the item are ignored."
64
+ "description": "Use this option to specify an ellipsis at a given point between numbers. If you set this option as `true`, any other options for the item are ignored.",
65
+ "default": false
64
66
  }
65
67
  ]
66
68
  },
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
4
  {%- set classes = containerClasses | join(' ') -%}
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/tabs/macro.njk" import tnaTabs %}
1
+ {%- from "nationalarchives/components/tabs/macro.njk" import tnaTabs -%}
2
2
 
3
3
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
4
4
  {%- set classes = containerClasses | join(' ') -%}
@@ -27,7 +27,8 @@
27
27
  "name": "selected",
28
28
  "type": "boolean",
29
29
  "required": false,
30
- "description": "If `true`, highlight the quick filter as selected."
30
+ "description": "If `true`, highlight the quick filter as selected.",
31
+ "default": false
31
32
  }
32
33
  ]
33
34
  },
@@ -35,7 +36,8 @@
35
36
  "name": "stack",
36
37
  "type": "boolean",
37
38
  "required": false,
38
- "description": "If `true`, stack the quick filters vertically."
39
+ "description": "If `true`, stack the quick filters vertically.",
40
+ "default": false
39
41
  },
40
42
  {
41
43
  "name": "classes",
@@ -86,13 +86,15 @@
86
86
  "name": "small",
87
87
  "type": "boolean",
88
88
  "required": false,
89
- "description": "If `true`, show smaller radios."
89
+ "description": "If `true`, show smaller radios.",
90
+ "default": false
90
91
  },
91
92
  {
92
93
  "name": "inline",
93
94
  "type": "boolean",
94
95
  "required": false,
95
- "description": "If `true`, show the radios inline rather than vertical."
96
+ "description": "If `true`, show the radios inline rather than vertical.",
97
+ "default": false
96
98
  },
97
99
  {
98
100
  "name": "formItemClasses",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset %}
1
+ {%- from "nationalarchives/components/fieldset/macro.njk" import tnaFieldset -%}
2
2
 
3
3
  {%- call tnaFieldset({
4
4
  headingLevel: params.headingLevel,
@@ -1,5 +1,5 @@
1
- {% from "nationalarchives/components/button/macro.njk" import tnaButton %}
2
- {% from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem %}
1
+ {%- from "nationalarchives/components/button/macro.njk" import tnaButton -%}
2
+ {%- from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem -%}
3
3
 
4
4
  {%- call tnaFormItem({
5
5
  headingLevel: params.headingLevel,
@@ -40,7 +40,8 @@
40
40
  "name": "current",
41
41
  "type": "boolean",
42
42
  "required": false,
43
- "description": "If `true`, highlight the navigation item as the current page."
43
+ "description": "If `true`, highlight the navigation item as the current page.",
44
+ "default": false
44
45
  }
45
46
  ]
46
47
  },
@@ -48,19 +49,22 @@
48
49
  "name": "noBottomBorder",
49
50
  "type": "boolean",
50
51
  "required": false,
51
- "description": "If `true`, hide the bottom border of the secondary navigation. This can be useful when the secondary navigation is placed at the bottom of a coloured block."
52
+ "description": "If `true`, hide the bottom border of the secondary navigation. This can be useful when the secondary navigation is placed at the bottom of a coloured block.",
53
+ "default": false
52
54
  },
53
55
  {
54
56
  "name": "overflow",
55
57
  "type": "boolean",
56
58
  "required": false,
57
- "description": "If `true`, enable horizontal scrolling for the secondary navigation when the list of items becomes too long."
59
+ "description": "If `true`, enable horizontal scrolling for the secondary navigation when the list of items becomes too long.",
60
+ "default": false
58
61
  },
59
62
  {
60
63
  "name": "noUnindentation",
61
64
  "type": "boolean",
62
65
  "required": false,
63
- "description": "If `true`, don't apply 'unindentation' to the secondary navigation. Used for when the secondary navigation is placed inside a nested container."
66
+ "description": "If `true`, don't apply 'unindentation' to the secondary navigation. Used for when the secondary navigation is placed inside a nested container.",
67
+ "default": false
64
68
  },
65
69
  {
66
70
  "name": "classes",
@@ -1,4 +1,4 @@
1
- {% from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem %}
1
+ {%- from "nationalarchives/utilities/forms/form-item.njk" import tnaFormItem -%}
2
2
 
3
3
  {%- set containerClasses = [params.formItemClasses] if params.formItemClasses else [] -%}
4
4
  {%- if params.inline -%}