@ons/design-system 65.2.0 → 65.2.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 (101) hide show
  1. package/README.md +1 -0
  2. package/components/access-code/example-access-code-error.njk +1 -1
  3. package/components/access-code/example-access-code.njk +1 -1
  4. package/components/accordion/example-accordion-open.njk +10 -10
  5. package/components/accordion/example-accordion.njk +1 -1
  6. package/components/address-input/example-address-input-editable.njk +2 -2
  7. package/components/address-input/example-address-input-manual.njk +3 -3
  8. package/components/address-input/example-address-input.njk +2 -2
  9. package/components/autosuggest/_macro.njk +1 -0
  10. package/components/autosuggest/autosuggest.js +2 -1
  11. package/components/autosuggest/autosuggest.spec.js +89 -55
  12. package/components/autosuggest/autosuggest.ui.js +8 -12
  13. package/components/autosuggest/example-autosuggest-country-multiple.njk +4 -3
  14. package/components/autosuggest/example-autosuggest-country.njk +1 -1
  15. package/components/back-link/example-back-link.njk +1 -1
  16. package/components/breadcrumbs/_macro.njk +1 -1
  17. package/components/breadcrumbs/_macro.spec.js +5 -5
  18. package/components/card/example-card-set-with-images.njk +3 -3
  19. package/components/card/example-card-set-with-lists.njk +3 -3
  20. package/components/card/example-card-set.njk +3 -3
  21. package/components/card/example-card.njk +1 -1
  22. package/components/checkboxes/example-checkboxes-disabled.njk +3 -3
  23. package/components/checkboxes/example-checkboxes-error.njk +7 -7
  24. package/components/checkboxes/example-checkboxes-with-descriptions.njk +7 -7
  25. package/components/checkboxes/example-checkboxes-with-hidden-label.njk +9 -9
  26. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes-expanded.njk +8 -8
  27. package/components/checkboxes/example-checkboxes-with-revealed-checkboxes.njk +8 -8
  28. package/components/checkboxes/example-checkboxes-with-revealed-radios-expanded.njk +8 -8
  29. package/components/checkboxes/example-checkboxes-with-revealed-radios.njk +8 -8
  30. package/components/checkboxes/example-checkboxes-with-revealed-select-expanded.njk +4 -4
  31. package/components/checkboxes/example-checkboxes-with-revealed-select.njk +4 -4
  32. package/components/checkboxes/example-checkboxes-with-revealed-text-input-expanded.njk +6 -6
  33. package/components/checkboxes/example-checkboxes-with-revealed-text-input.njk +6 -6
  34. package/components/checkboxes/example-checkboxes-with-select-all-button.njk +4 -4
  35. package/components/checkboxes/example-checkboxes-with-visible-text-input.njk +6 -6
  36. package/components/checkboxes/example-checkboxes-without-border.njk +3 -3
  37. package/components/checkboxes/example-checkboxes.njk +4 -4
  38. package/components/cookies-banner/_macro.njk +55 -41
  39. package/components/cookies-banner/_macro.spec.js +9 -27
  40. package/components/date-input/example-date-input-error.njk +2 -2
  41. package/components/date-input/example-date-input.njk +1 -1
  42. package/components/details/example-details-with-warning.njk +1 -1
  43. package/components/details/example-details.njk +1 -1
  44. package/components/duration/example-duration-error.njk +6 -6
  45. package/components/duration/example-duration.njk +5 -5
  46. package/components/header/example-header-external-with-service-links.njk +1 -1
  47. package/components/header/example-header-internal.njk +1 -1
  48. package/components/input/example-input-email.njk +1 -1
  49. package/components/input/example-input-number.njk +1 -1
  50. package/components/input/example-input-numeric-values.njk +7 -7
  51. package/components/input/example-input-text-with-character-limit-checker.njk +1 -1
  52. package/components/input/example-input-text-with-description.njk +1 -1
  53. package/components/input/example-input-text.njk +1 -1
  54. package/components/mutually-exclusive/example-mutually-exclusive-checkboxes.njk +6 -6
  55. package/components/mutually-exclusive/example-mutually-exclusive-date-with-error.njk +2 -2
  56. package/components/mutually-exclusive/example-mutually-exclusive-email.njk +2 -2
  57. package/components/mutually-exclusive/example-mutually-exclusive-multiple-options.njk +5 -5
  58. package/components/panel/_macro.spec.js +7 -29
  59. package/components/phase-banner/_macro.njk +1 -1
  60. package/components/radios/example-radios-with-clear-button-expanded.njk +9 -9
  61. package/components/radios/example-radios-with-clear-button.njk +9 -9
  62. package/components/radios/example-radios-with-descriptions.njk +5 -5
  63. package/components/radios/example-radios-with-error.njk +4 -4
  64. package/components/radios/example-radios-with-revealed-checkboxes-expanded.njk +8 -8
  65. package/components/radios/example-radios-with-revealed-checkboxes.njk +8 -8
  66. package/components/radios/example-radios-with-revealed-radios-expanded.njk +9 -9
  67. package/components/radios/example-radios-with-revealed-radios.njk +8 -8
  68. package/components/radios/example-radios-with-revealed-select-expanded.njk +5 -5
  69. package/components/radios/example-radios-with-revealed-select.njk +4 -4
  70. package/components/radios/example-radios-with-revealed-text-input-expanded.njk +9 -9
  71. package/components/radios/example-radios-with-revealed-text-input.njk +9 -9
  72. package/components/radios/example-radios-with-visible-text-input.njk +3 -3
  73. package/components/relationships/example-relationships-error.njk +13 -13
  74. package/components/relationships/example-relationships-you.njk +13 -13
  75. package/components/relationships/example-relationships.njk +13 -13
  76. package/components/select/example-select-with-error.njk +1 -1
  77. package/components/select/example-select-with-inline-label.njk +1 -1
  78. package/components/select/example-select.njk +1 -1
  79. package/components/summary/_macro.njk +2 -2
  80. package/components/summary/_macro.spec.js +28 -25
  81. package/components/summary/example-summary-grouped-total.njk +2 -0
  82. package/components/summary/example-summary-grouped-with-errors.njk +4 -0
  83. package/components/summary/example-summary-grouped.njk +19 -0
  84. package/components/summary/example-summary-household.njk +5 -0
  85. package/components/summary/example-summary-hub.njk +8 -0
  86. package/components/summary/example-summary-multiple.njk +4 -0
  87. package/components/summary/example-summary.njk +4 -0
  88. package/components/textarea/example-textarea-error.njk +1 -1
  89. package/components/upload/example-upload-error.njk +1 -1
  90. package/components/upload/example-upload.njk +1 -1
  91. package/package.json +2 -3
  92. package/scripts/main.es5.js +1 -1
  93. package/scripts/main.js +1 -1
  94. /package/{fonts → scss/fonts}/opensans-bold.woff +0 -0
  95. /package/{fonts → scss/fonts}/opensans-bold.woff2 +0 -0
  96. /package/{fonts → scss/fonts}/opensans-regular.woff +0 -0
  97. /package/{fonts → scss/fonts}/opensans-regular.woff2 +0 -0
  98. /package/{fonts → scss/fonts}/robotomono-bold.woff +0 -0
  99. /package/{fonts → scss/fonts}/robotomono-bold.woff2 +0 -0
  100. /package/{fonts → scss/fonts}/robotomono-regular.woff +0 -0
  101. /package/{fonts → scss/fonts}/robotomono-regular.woff2 +0 -0
@@ -23,6 +23,7 @@
23
23
  "actions": [
24
24
  {
25
25
  "text": "Change",
26
+ "visuallyHiddenText": "Change answer",
26
27
  "url": "#0"
27
28
  }
28
29
  ]
@@ -41,6 +42,7 @@
41
42
  "actions": [
42
43
  {
43
44
  "text": "Change",
45
+ "visuallyHiddenText": "Change answer",
44
46
  "url": "#0"
45
47
  }
46
48
  ]
@@ -59,6 +61,7 @@
59
61
  "actions": [
60
62
  {
61
63
  "text": "Change",
64
+ "visuallyHiddenText": "Change answer",
62
65
  "url": "#0"
63
66
  }
64
67
  ]
@@ -82,6 +85,7 @@
82
85
  "actions": [
83
86
  {
84
87
  "text": "Change",
88
+ "visuallyHiddenText": "Change answer",
85
89
  "url": "#0"
86
90
  }
87
91
  ]
@@ -100,6 +104,7 @@
100
104
  "actions": [
101
105
  {
102
106
  "text": "Change",
107
+ "visuallyHiddenText": "Change answer",
103
108
  "url": "#0"
104
109
  }
105
110
  ]
@@ -123,6 +128,7 @@
123
128
  "actions": [
124
129
  {
125
130
  "text": "Change",
131
+ "visuallyHiddenText": "Change answer",
126
132
  "url": "#0"
127
133
  }
128
134
  ]
@@ -141,6 +147,7 @@
141
147
  "actions": [
142
148
  {
143
149
  "text": "Change",
150
+ "visuallyHiddenText": "Change answer",
144
151
  "url": "#0"
145
152
  }
146
153
  ]
@@ -164,10 +171,12 @@
164
171
  "actions": [
165
172
  {
166
173
  "text": "Change",
174
+ "visuallyHiddenText": "Change answer",
167
175
  "url": "#0"
168
176
  },
169
177
  {
170
178
  "text": "Remove",
179
+ "visuallyHiddenText": "Remove company",
171
180
  "url": "#0"
172
181
  }
173
182
  ]
@@ -182,6 +191,7 @@
182
191
  "actions": [
183
192
  {
184
193
  "text": "Change",
194
+ "visuallyHiddenText": "Change answer",
185
195
  "url": "#0"
186
196
  }
187
197
  ]
@@ -196,6 +206,7 @@
196
206
  "actions": [
197
207
  {
198
208
  "text": "Change",
209
+ "visuallyHiddenText": "Change answer",
199
210
  "url": "#0"
200
211
  }
201
212
  ]
@@ -214,10 +225,12 @@
214
225
  "actions": [
215
226
  {
216
227
  "text": "Change",
228
+ "visuallyHiddenText": "Change answer",
217
229
  "url": "#0"
218
230
  },
219
231
  {
220
232
  "text": "Remove",
233
+ "visuallyHiddenText": "Remove company",
221
234
  "url": "#0"
222
235
  }
223
236
  ]
@@ -232,6 +245,7 @@
232
245
  "actions": [
233
246
  {
234
247
  "text": "Change",
248
+ "visuallyHiddenText": "Change answer",
235
249
  "url": "#0"
236
250
  }
237
251
  ]
@@ -246,6 +260,7 @@
246
260
  "actions": [
247
261
  {
248
262
  "text": "Change",
263
+ "visuallyHiddenText": "Change answer",
249
264
  "url": "#0"
250
265
  }
251
266
  ]
@@ -277,6 +292,7 @@
277
292
  "actions": [
278
293
  {
279
294
  "text": "Change",
295
+ "visuallyHiddenText": "Change answer",
280
296
  "url": "#0"
281
297
  }
282
298
  ]
@@ -291,6 +307,7 @@
291
307
  "actions": [
292
308
  {
293
309
  "text": "Change",
310
+ "visuallyHiddenText": "Change answer",
294
311
  "url": "#0"
295
312
  }
296
313
  ]
@@ -305,6 +322,7 @@
305
322
  "actions": [
306
323
  {
307
324
  "text": "Change",
325
+ "visuallyHiddenText": "Change answer",
308
326
  "url": "#0"
309
327
  }
310
328
  ]
@@ -319,6 +337,7 @@
319
337
  "actions": [
320
338
  {
321
339
  "text": "Change",
340
+ "visuallyHiddenText": "Change answer",
322
341
  "url": "#0"
323
342
  }
324
343
  ]
@@ -15,6 +15,7 @@
15
15
  "actions": [
16
16
  {
17
17
  "text": "Change",
18
+ "visuallyHiddenText": "Change details for Joe Bloggs",
18
19
  "url": "#0"
19
20
  }
20
21
  ]
@@ -29,10 +30,12 @@
29
30
  "actions": [
30
31
  {
31
32
  "text": "Change",
33
+ "visuallyHiddenText": "Change details for Barry Scott",
32
34
  "url": "#0"
33
35
  },
34
36
  {
35
37
  "text": "Remove",
38
+ "visuallyHiddenText": "Remove Barry Scott",
36
39
  "url": "#0"
37
40
  }
38
41
  ]
@@ -47,10 +50,12 @@
47
50
  "actions": [
48
51
  {
49
52
  "text": "Change",
53
+ "visuallyHiddenText": "Change details for Susan Gill",
50
54
  "url": "#0"
51
55
  },
52
56
  {
53
57
  "text": "Remove",
58
+ "visuallyHiddenText": "Remove Susan Gill",
54
59
  "url": "#0"
55
60
  }
56
61
  ]
@@ -20,6 +20,7 @@
20
20
  "actions": [
21
21
  {
22
22
  "text": "View answers",
23
+ "visuallyHiddenText": "View answers for People who live here",
23
24
  "url": "#0"
24
25
  }
25
26
  ]
@@ -39,6 +40,7 @@
39
40
  "actions": [
40
41
  {
41
42
  "text": "View answers",
43
+ "visuallyHiddenText": "View answers for Accommodation",
42
44
  "url": "#0"
43
45
  }
44
46
  ]
@@ -58,6 +60,7 @@
58
60
  "actions": [
59
61
  {
60
62
  "text": "View answers",
63
+ "visuallyHiddenText": "View answers for Mary Smith",
61
64
  "url": "#0"
62
65
  }
63
66
  ]
@@ -76,6 +79,7 @@
76
79
  "actions": [
77
80
  {
78
81
  "text": "Continue with section",
82
+ "visuallyHiddenText": "Continue with John Smith's section",
79
83
  "url": "#0"
80
84
  }
81
85
  ]
@@ -94,6 +98,7 @@
94
98
  "actions": [
95
99
  {
96
100
  "text": "Start section",
101
+ "visuallyHiddenText": "Start Billy Smith's section",
97
102
  "url": "#0"
98
103
  }
99
104
  ]
@@ -112,6 +117,7 @@
112
117
  "actions": [
113
118
  {
114
119
  "text": "Start section",
120
+ "visuallyHiddenText": "Start Sally Smith's section",
115
121
  "url": "#0"
116
122
  }
117
123
  ]
@@ -130,6 +136,7 @@
130
136
  "actions": [
131
137
  {
132
138
  "text": "Start section",
139
+ "visuallyHiddenText": "Start Wilhelmina Susannah Clementine-Smith's section",
133
140
  "url": "#0"
134
141
  }
135
142
  ]
@@ -148,6 +155,7 @@
148
155
  "actions": [
149
156
  {
150
157
  "text": "Start section",
158
+ "visuallyHiddenText": "Start Vera Jones's section",
151
159
  "url": "#0"
152
160
  }
153
161
  ]
@@ -20,6 +20,7 @@
20
20
  "actions": [
21
21
  {
22
22
  "text": "Change",
23
+ "visuallyHiddenText": "Change answer",
23
24
  "url": "#0"
24
25
  }
25
26
  ]
@@ -34,6 +35,7 @@
34
35
  "actions": [
35
36
  {
36
37
  "text": "Change",
38
+ "visuallyHiddenText": "Change answer",
37
39
  "url": "#0"
38
40
  }
39
41
  ]
@@ -48,6 +50,7 @@
48
50
  "actions": [
49
51
  {
50
52
  "text": "Change",
53
+ "visuallyHiddenText": "Change answer",
51
54
  "url": "#0"
52
55
  }
53
56
  ]
@@ -62,6 +65,7 @@
62
65
  "actions": [
63
66
  {
64
67
  "text": "Change",
68
+ "visuallyHiddenText": "Change answer",
65
69
  "url": "#0"
66
70
  }
67
71
  ]
@@ -24,6 +24,7 @@
24
24
  "actions": [
25
25
  {
26
26
  "text": "Change",
27
+ "visuallyHiddenText": "Change answer",
27
28
  "url": "#0"
28
29
  }
29
30
  ]
@@ -44,6 +45,7 @@
44
45
  "actions": [
45
46
  {
46
47
  "text": "Change",
48
+ "visuallyHiddenText": "Change answer",
47
49
  "url": "#0"
48
50
  }
49
51
  ]
@@ -68,6 +70,7 @@
68
70
  "actions": [
69
71
  {
70
72
  "text": "Change",
73
+ "visuallyHiddenText": "Change answer",
71
74
  "url": "#0"
72
75
  }
73
76
  ]
@@ -88,6 +91,7 @@
88
91
  "actions": [
89
92
  {
90
93
  "text": "Change",
94
+ "visuallyHiddenText": "Change answer",
91
95
  "url": "#0"
92
96
  }
93
97
  ]
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsTextarea({
5
- "id": "textarea",
5
+ "id": "textarea-error",
6
6
  "name": "feedback",
7
7
  "label": {
8
8
  "text": "Please provide some feedback",
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsUpload({
5
- "id": "file",
5
+ "id": "file-example-upload-error",
6
6
  "accept": ".xls,.xlsx,.pdf",
7
7
  "label": {
8
8
  "description": "File types accepted are XLS and XLSX or PDF",
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsUpload({
5
- "id": "file",
5
+ "id": "file-example-upload",
6
6
  "accept": ".xls,.xlsx,.pdf",
7
7
  "label": {
8
8
  "description": "File types accepted are XLS and XLSX or PDF",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "65.2.0",
4
+ "version": "65.2.2",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -28,8 +28,7 @@
28
28
  "stylelint": "stylelint '**/*.scss'",
29
29
  "stylelint-fix": "stylelint '**/*.scss' --fix",
30
30
  "prepack": "pinst --disable",
31
- "postpack": "pinst --enable",
32
- "prepare": "husky install"
31
+ "postpack": "pinst --enable"
33
32
  },
34
33
  "lint-staged": {
35
34
  "*.js": [