govuk_publishing_components 67.1.0 → 68.1.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 (355) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/lib/filter-list.js +29 -4
  4. data/app/assets/stylesheets/component_guide/application.scss +12 -18
  5. data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +2 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +6 -2
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +3 -3
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +1 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +5 -5
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +6 -6
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -2
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +4 -4
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +14 -14
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +3 -3
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +6 -6
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -6
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +3 -3
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +7 -7
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +1 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +3 -3
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -3
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +3 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +3 -3
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +30 -51
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +23 -23
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +3 -3
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +3 -3
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +6 -6
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +1 -1
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +3 -3
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +7 -7
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -8
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +6 -6
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +15 -15
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -2
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -2
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +6 -6
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -2
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +11 -11
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_sub-navigation-menu.scss +9 -9
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +5 -5
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +3 -3
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +1 -1
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +15 -10
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
  62. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
  63. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +3 -3
  64. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -4
  65. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
  66. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
  67. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -1
  68. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +4 -4
  69. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -1
  70. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -1
  71. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -1
  72. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +2 -2
  73. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
  74. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
  75. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +2 -2
  76. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  77. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +8 -0
  78. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss +9 -11
  79. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +3 -3
  80. data/app/assets/stylesheets/govuk_publishing_components/lib/_link.scss +3 -3
  81. data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +2 -2
  82. data/app/assets/stylesheets/govuk_publishing_components/settings/_custom-properties.scss +9 -0
  83. data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +1 -2
  84. data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +2 -0
  85. data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
  86. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -1
  87. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
  88. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +14 -36
  89. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -1
  90. data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
  91. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -15
  92. data/app/views/govuk_publishing_components/components/docs/tag.yml +4 -8
  93. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +4 -13
  94. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -1
  95. data/config/initializers/assets.rb +1 -1
  96. data/lib/govuk_publishing_components/version.rb +1 -1
  97. data/node_modules/axe-core/README.md +10 -7
  98. data/node_modules/axe-core/axe.d.ts +4 -15
  99. data/node_modules/axe-core/axe.js +4011 -3559
  100. data/node_modules/axe-core/axe.min.js +2 -2
  101. data/node_modules/axe-core/gather-internals.js +1 -1
  102. data/node_modules/axe-core/locales/README.md +2 -2
  103. data/node_modules/axe-core/locales/_template.json +15 -5
  104. data/node_modules/axe-core/locales/sv.json +1147 -0
  105. data/node_modules/axe-core/package.json +65 -73
  106. data/node_modules/axe-core/sri-history.json +4 -0
  107. data/node_modules/govuk-frontend/README.md +1 -1
  108. data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
  109. data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
  110. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +21 -95
  111. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  112. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +22 -95
  113. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  114. data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
  115. data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
  116. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
  117. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
  118. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
  119. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
  120. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
  121. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
  122. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  123. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +14 -11
  124. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
  125. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
  128. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
  129. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
  131. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +16 -19
  132. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +7 -95
  134. data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +12 -19
  135. data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +8 -20
  136. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
  137. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
  138. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +19 -9
  139. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  140. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +19 -9
  141. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  142. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
  143. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  144. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
  145. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
  146. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
  147. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
  148. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +4 -40
  149. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +2 -2
  150. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +2 -2
  151. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
  152. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  153. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
  154. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
  155. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
  156. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
  157. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  158. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  159. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +28 -37
  160. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
  161. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  162. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  163. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +1 -1
  164. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +0 -7
  165. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +0 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +18 -23
  167. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  168. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +25 -38
  169. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +0 -6
  170. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +23 -2
  171. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +23 -2
  172. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +23 -2
  173. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +23 -2
  174. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +23 -2
  175. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +23 -2
  176. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +23 -2
  177. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +23 -2
  178. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +23 -2
  179. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +23 -2
  180. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +23 -2
  181. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +23 -2
  182. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +23 -2
  183. data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +6 -11
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +85 -457
  185. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  186. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +7 -536
  187. data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +2 -101
  188. data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +7 -6
  189. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +7 -6
  190. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +7 -6
  191. data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +4 -50
  192. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
  194. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -5
  195. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
  196. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
  197. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
  198. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +2 -2
  199. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +8 -6
  200. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
  201. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +9 -10
  202. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  203. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
  204. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
  205. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  206. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  207. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
  208. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -7
  210. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template-default.html +1 -1
  211. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +1 -1
  212. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -6
  213. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  214. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -4
  215. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
  216. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +50 -71
  217. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  218. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +7 -32
  219. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +3 -2
  220. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  221. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +9 -5
  222. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
  223. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
  224. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
  225. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +8 -5
  226. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
  227. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
  228. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
  229. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +6 -18
  230. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-pink.html +2 -2
  231. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-turquoise.html +2 -2
  232. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
  233. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
  234. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +13 -25
  235. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +12 -24
  236. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +2 -2
  237. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +4 -3
  238. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
  239. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +4 -3
  240. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  241. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
  242. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
  243. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
  244. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
  245. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -17
  246. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
  247. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
  248. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss.map +1 -0
  249. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
  250. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss.map +1 -0
  251. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
  252. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -0
  253. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
  254. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss.map +1 -0
  255. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  256. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  257. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  258. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  259. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
  260. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  261. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +8 -7
  262. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
  263. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +23 -39
  264. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
  265. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +2 -26
  266. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
  267. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
  268. data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
  269. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  270. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +4 -26
  271. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
  272. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss.map +1 -1
  273. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +2 -6
  274. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
  275. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
  276. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
  277. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
  278. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  279. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
  280. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -0
  281. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +8 -254
  282. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
  283. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
  284. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss.map +1 -1
  285. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
  286. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss.map +1 -0
  287. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
  288. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
  289. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -16
  290. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +1 -1
  291. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
  292. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
  293. data/node_modules/govuk-frontend/dist/govuk/template.njk +61 -23
  294. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
  295. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
  296. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
  297. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
  298. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -4
  299. data/node_modules/govuk-frontend/package.json +13 -12
  300. metadata +15 -56
  301. data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +0 -3
  302. data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +0 -5
  303. data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +0 -1
  304. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +0 -34
  305. data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
  306. data/node_modules/govuk-frontend/dist/govuk/all.scss.map +0 -1
  307. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  308. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
  309. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
  310. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  311. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  312. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  313. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
  314. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  315. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
  316. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
  317. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +0 -1
  318. data/node_modules/govuk-frontend/dist/govuk/components/button/template-input.html +0 -1
  319. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
  320. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +0 -1
  321. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
  322. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +0 -1
  323. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
  324. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +0 -1
  325. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -54
  326. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -54
  327. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -48
  328. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +0 -59
  329. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -29
  330. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +0 -119
  331. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +0 -59
  332. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +0 -62
  333. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +0 -34
  334. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +0 -34
  335. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +0 -19
  336. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-light-blue.html +0 -3
  337. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
  338. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +0 -1
  339. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
  340. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +0 -1
  341. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
  342. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +0 -1
  343. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
  344. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +0 -1
  345. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
  346. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +0 -1
  347. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
  348. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +0 -1
  349. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
  350. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +0 -1
  351. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
  352. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +0 -1
  353. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
  354. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +0 -1
  355. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axe-core",
3
3
  "description": "Accessibility engine for automated Web UI testing",
4
- "version": "4.12.1",
4
+ "version": "4.13.0",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
7
7
  "node": ">=4"
@@ -64,100 +64,46 @@
64
64
  "LICENSE-3RD-PARTY.txt",
65
65
  "gather-internals.js"
66
66
  ],
67
- "standard-version": {
67
+ "commit-and-tag-version": {
68
68
  "scripts": {
69
- "postbump": "npm ci && npm run sri-update && git add doc/rule-descriptions.md"
69
+ "postbump": "pnpm ci && pnpm run sri-update && git add doc/rule-descriptions.md"
70
70
  },
71
71
  "skip": {
72
72
  "tag": true
73
73
  }
74
74
  },
75
- "scripts": {
76
- "start": "http-server -a \"\" -p 9876 --silent",
77
- "develop": "grunt dev --force",
78
- "api-docs": "jsdoc --configure .jsdoc.json",
79
- "build": "grunt",
80
- "patch": "npx patch-package",
81
- "unpatch": "npx patch-package --reverse",
82
- "eslint": "eslint --color --format stylish '{lib,test,build,doc}/**/*.js' 'Gruntfile.js' '.github/bin/*.mjs'",
83
- "test": "npm run test:tsc && run-s \"test:unit:* -- {@}\" --",
84
- "test:tsc": "tsc",
85
- "test:unit": "web-test-runner --config test/wtr.config.mjs",
86
- "test:debug": "web-test-runner --config test/wtr.debug.config.mjs --manual",
87
- "build:integration-tests": "node build/generate-integration-tests.js",
88
- "test:unit:core": "web-test-runner --config test/wtr.config.mjs --files 'test/core/**/*.js'",
89
- "test:unit:commons": "web-test-runner --config test/wtr.config.mjs --files 'test/commons/**/*.js'",
90
- "test:unit:rule-matches": "web-test-runner --config test/wtr.config.mjs --files 'test/rule-matches/**/*.js'",
91
- "test:unit:checks": "web-test-runner --config test/wtr.config.mjs --files 'test/checks/**/*.js'",
92
- "test:unit:api": "web-test-runner --config test/wtr.config.mjs --files 'test/integration/api/**/*.js'",
93
- "test:unit:integration": "web-test-runner --config test/wtr.config.mjs --files 'tmp/integration-tests/**/*.test.js'",
94
- "test:unit:virtual-rules": "web-test-runner --config test/wtr.config.mjs --files 'test/integration/virtual-rules/**/*.js'",
95
- "test:unit:gather-internals": "web-test-runner --config test/wtr.config.mjs --files 'test/gather-internals/**/*.js'",
96
- "integration": "node test/integration/full/test-webdriver.js",
97
- "integration:apg": "mocha --fail-zero test/aria-practices/*.spec.js",
98
- "integration:chrome": "npm run integration -- browser=Chrome",
99
- "integration:firefox": "npm run integration -- browser=Firefox",
100
- "test:integration": "npm run test:integration:chrome",
101
- "test:integration:chrome": "start-server-and-test 9876 integration:chrome",
102
- "test:integration:firefox": "start-server-and-test 9876 integration:firefox",
103
- "test:examples": "node ./doc/examples/test-examples",
104
- "test:act": "mocha --fail-zero test/act-rules/*.spec.js",
105
- "test:apg": "start-server-and-test 9876 integration:apg",
106
- "test:locales": "mocha test/test-locales.js",
107
- "test:virtual-rules": "mocha test/test-virtual-rules.js",
108
- "test:rule-help-version": "mocha test/test-rule-help-version.js",
109
- "test:node": "node test/node/node.js",
110
- "test:jsdom": "mocha test/node/jsdom.js",
111
- "version": "echo \"use 'npm run release' to bump axe-core version\" && exit 1",
112
- "release": "git fetch origin --tags --force && standard-version -a",
113
- "rule-gen": "node build/rule-generator",
114
- "sri-update": "grunt build && node build/sri-update && git add sri-history.json",
115
- "sri-validate": "node build/sri-update --validate",
116
- "codemod:modernize-tests": "node build/codemods/modernize-test-files.mjs",
117
- "fmt": "prettier --write .",
118
- "fmt:check": "prettier --check .",
119
- "prepare": "husky && npm run patch",
120
- "prebuild": "node ./build/check-node-version.js",
121
- "pretest": "node ./build/check-node-version.js",
122
- "pretest:unit:integration": "npm run build:integration-tests",
123
- "postbuild": "prettier --write ./locales/_template.json ./doc/rule-descriptions.md"
124
- },
125
75
  "devDependencies": {
126
76
  "@axe-core/webdriverjs": "^4.10.2",
127
77
  "@babel/core": "^7.20.12",
128
- "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
78
+ "@babel/plugin-transform-object-rest-spread": "^7.29.7",
129
79
  "@babel/preset-env": "^7.20.2",
130
80
  "@babel/runtime-corejs3": "^7.20.7",
131
81
  "@deque/dot": "^1.1.5",
132
- "@types/node": "^25.6.0",
133
- "@web/test-runner": "^0.20.2",
134
- "aria-practices": "github:w3c/aria-practices#ce0336bd82d7d3651abcbde86af644197ddbc629",
82
+ "@types/node": "^4.9.5",
83
+ "@web/test-runner": "^1.0.0",
84
+ "aria-practices": "github:w3c/aria-practices#18c1a2fca626f7aeb33270e23ae9b18833e2164d",
135
85
  "aria-query": "^5.1.3",
136
86
  "chai": "^4.3.7",
137
87
  "chalk": "^4.x",
88
+ "chokidar": "^4.0.3",
138
89
  "chromedriver": "latest",
139
90
  "clean-jsdoc-theme": "^4.2.17",
140
91
  "clone": "^2.1.2",
141
92
  "colorjs.io": "0.4.3",
93
+ "commit-and-tag-version": "^13.1.0",
142
94
  "conventional-commits-parser": "^5.0.0",
143
95
  "core-js": "^3.27.1",
96
+ "core-js-pure": "^3.27.1",
144
97
  "css-selector-parser": "^1.4.1",
145
98
  "emoji-regex": "^10.2.1",
146
99
  "es6-promise": "^4.2.8",
147
100
  "esbuild": "^0.10.x",
148
- "eslint": "^9.2.0",
101
+ "eslint": "^10.6.0",
149
102
  "eslint-config-prettier": "^10.0.1",
150
103
  "eslint-plugin-mocha-no-only": "^1.2.0",
151
104
  "execa": "5.x",
152
- "glob": "^10.3.10",
105
+ "glob": "^13.0.6",
153
106
  "globals": "^17.1.0",
154
- "grunt": "^1.5.3",
155
- "grunt-babel": "^8.0.0",
156
- "grunt-bytesize": "^0.2.0",
157
- "grunt-contrib-clean": "^2.0.1",
158
- "grunt-contrib-concat": "^2.1.0",
159
- "grunt-contrib-uglify": "^5.2.2",
160
- "grunt-contrib-watch": "^1.1.0",
161
107
  "html-entities": "^2.4.0",
162
108
  "http-server": "^14.1.1",
163
109
  "husky": "^9.0.7",
@@ -165,22 +111,18 @@
165
111
  "jquery": "^4.0.0",
166
112
  "jsdoc": "^4.0.2",
167
113
  "jsdom": "^29.0.2",
168
- "lint-staged": "^16.1.0",
114
+ "lint-staged": "^17.0.7",
169
115
  "memoizee": "^0.4.15",
170
116
  "mocha": "^11.1.0",
171
117
  "node-notifier": "^10.0.1",
172
118
  "npm-run-all": "^4.1.5",
173
119
  "outdent": "^0.8.0",
174
- "parse5": "^8.0.0",
175
- "patch-package": "^8.0.0",
176
120
  "prettier": "^3.0.3",
177
- "recast": "^0.23.11",
178
121
  "revalidator": "^0.3.1",
179
122
  "selenium-webdriver": "^4.7.1",
180
123
  "serve-handler": "^6.1.5",
181
- "sinon": "^21.0.0",
124
+ "sinon": "^22.0.0",
182
125
  "sri-toolbox": "^0.2.0",
183
- "standard-version": "^9.5.0",
184
126
  "start-server-and-test": "^3.0.2",
185
127
  "typedarray": "^0.0.7",
186
128
  "typescript": "^6.0.3",
@@ -196,5 +138,55 @@
196
138
  "prettier --write",
197
139
  "eslint --fix"
198
140
  ]
141
+ },
142
+ "scripts": {
143
+ "start": "http-server -a \"\" -p 9876 --silent",
144
+ "develop": "node build/run-build.mjs --watch",
145
+ "api-docs": "jsdoc --configure .jsdoc.json",
146
+ "build": "node build/run-build.mjs",
147
+ "translate": "node build/run-build.mjs translate",
148
+ "eslint": "eslint --color --format stylish '{lib,test}/**/*.{js,mjs}' 'build/**/*.mjs' 'doc/**/*.{js,mjs}' '.github/bin/*.mjs'",
149
+ "test": "pnpm run test:tsc && run-s \"test:unit:* -- {@}\" --",
150
+ "test:tsc": "tsc",
151
+ "test:unit": "web-test-runner --config test/wtr.config.mjs",
152
+ "test:debug": "web-test-runner --config test/wtr.debug.config.mjs --manual",
153
+ "build:integration-tests": "node build/generate-integration-tests.js",
154
+ "test:unit:core": "web-test-runner --config test/wtr.config.mjs --files 'test/core/**/*.js'",
155
+ "test:unit:commons": "web-test-runner --config test/wtr.config.mjs --files 'test/commons/**/*.js'",
156
+ "test:unit:rule-matches": "web-test-runner --config test/wtr.config.mjs --files 'test/rule-matches/**/*.js'",
157
+ "test:unit:checks": "web-test-runner --config test/wtr.config.mjs --files 'test/checks/**/*.js'",
158
+ "test:unit:api": "web-test-runner --config test/wtr.config.mjs --files 'test/integration/api/**/*.js'",
159
+ "test:unit:integration": "web-test-runner --config test/wtr.config.mjs --files 'tmp/integration-tests/**/*.test.js'",
160
+ "test:unit:virtual-rules": "web-test-runner --config test/wtr.config.mjs --files 'test/integration/virtual-rules/**/*.js'",
161
+ "test:unit:gather-internals": "web-test-runner --config test/wtr.config.mjs --files 'test/gather-internals/**/*.js'",
162
+ "integration": "node test/integration/full/test-webdriver.js",
163
+ "integration:apg": "mocha --fail-zero test/aria-practices/*.spec.js",
164
+ "integration:chrome": "pnpm run integration -- browser=Chrome",
165
+ "integration:firefox": "pnpm run integration -- browser=Firefox",
166
+ "test:integration": "pnpm run test:integration:chrome",
167
+ "test:integration:chrome": "start-server-and-test 9876 integration:chrome",
168
+ "test:integration:firefox": "start-server-and-test 9876 integration:firefox",
169
+ "test:examples": "node ./doc/examples/test-examples",
170
+ "test:act": "mocha --fail-zero test/act-rules/*.spec.js",
171
+ "test:apg": "start-server-and-test 9876 integration:apg",
172
+ "test:locales": "mocha test/test-locales.js",
173
+ "test:virtual-rules": "mocha test/test-virtual-rules.js",
174
+ "test:rule-help-version": "mocha test/test-rule-help-version.js",
175
+ "test:node": "node test/node/node.js",
176
+ "test:jsdom": "mocha test/node/jsdom.js",
177
+ "version": "echo \"use 'pnpm run release' to bump axe-core version\" && exit 1",
178
+ "release": "git fetch origin --tags --force && commit-and-tag-version -a",
179
+ "rule-gen": "node build/rule-generator.mjs",
180
+ "sri-update": "pnpm run build && node build/sri-update.mjs && git add sri-history.json",
181
+ "sri-validate": "node build/sri-update.mjs --validate",
182
+ "codemod:modernize-tests": "node build/codemods/modernize-test-files.mjs",
183
+ "fmt": "prettier --write .",
184
+ "fmt:check": "prettier --check .",
185
+ "prebuild": "node ./build/check-node-version.mjs",
186
+ "pretest": "node ./build/check-node-version.mjs",
187
+ "pretest:unit:integration": "pnpm run build:integration-tests",
188
+ "test:build": "node --test build/run-build/*.test.mjs",
189
+ "validate": "node build/run-build.mjs validate",
190
+ "postbuild": "prettier --write ./locales/_template.json ./doc/rule-descriptions.md"
199
191
  }
200
- }
192
+ }
@@ -422,5 +422,9 @@
422
422
  "4.12.1": {
423
423
  "axe.js": "sha256-FRl8Y/9oP3b35USiZrI5x7sAP6jiyQTDJDTQ6f9ldd4=",
424
424
  "axe.min.js": "sha256-ZqiqqVqLBEp/10pUNYc78E/2WhynVWfJIbdQl0IIWhQ="
425
+ },
426
+ "4.13.0": {
427
+ "axe.js": "sha256-E4qTpM57fGwI7YQUTkXc2Mw20tT/jtZzYZ+vBAaQbYg=",
428
+ "axe.min.js": "sha256-wk8Je9L0UdT5M+i8fY1Tn4ZyouvLXMn58+7IypRwoME="
425
429
  }
426
430
  }
@@ -37,7 +37,7 @@ imports) if you want to override GOV.UK Frontend with your own styles.
37
37
  To import add the below to your Sass file:
38
38
 
39
39
  ```scss
40
- @import "node_modules/govuk-frontend/dist/govuk/all";
40
+ @import "node_modules/govuk-frontend/dist/govuk/index";
41
41
  ```
42
42
 
43
43
  [More details on importing styles](https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#css)
@@ -1,5 +1,6 @@
1
1
  @import "settings/index";
2
2
  @import "tools/index";
3
3
  @import "helpers/index";
4
+ @import "custom-properties/index";
4
5
 
5
6
  /*# sourceMappingURL=_base.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/govuk/_base.scss"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,qBAAqB;AACrB,uBAAuB","file":"_base.scss","sourcesContent":["@import \"settings/index\";\n@import \"tools/index\";\n@import \"helpers/index\";\n"]}
1
+ {"version":3,"sources":["../../src/govuk/_base.scss"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,qBAAqB;AACrB,uBAAuB;AACvB,iCAAiC","file":"_base.scss","sourcesContent":["@import \"settings/index\";\n@import \"tools/index\";\n@import \"helpers/index\";\n@import \"custom-properties/index\";\n"]}
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.GOVUKFrontend = global.GOVUKFrontend || {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- const version = '5.14.0';
7
+ const version = '6.0.0';
8
8
 
9
9
  function getBreakpoint(name) {
10
10
  const property = `--govuk-breakpoint-${name}`;
@@ -886,6 +886,7 @@
886
886
  var _ref, _this$config$maxwords;
887
887
  super($root, config);
888
888
  this.$textarea = void 0;
889
+ this.count = 0;
889
890
  this.$visibleCountMessage = void 0;
890
891
  this.$screenReaderCountMessage = void 0;
891
892
  this.lastInputTimestamp = null;
@@ -941,15 +942,22 @@
941
942
  $textareaDescription.classList.add('govuk-visually-hidden');
942
943
  this.$textarea.removeAttribute('maxlength');
943
944
  this.bindChangeEvents();
944
- window.addEventListener('pageshow', () => this.updateCountMessage());
945
+ window.addEventListener('pageshow', () => {
946
+ if (this.$textarea.value !== this.$textarea.textContent) {
947
+ this.updateCount();
948
+ this.updateCountMessage();
949
+ }
950
+ });
951
+ this.updateCount();
945
952
  this.updateCountMessage();
946
953
  }
947
954
  bindChangeEvents() {
948
- this.$textarea.addEventListener('keyup', () => this.handleKeyUp());
955
+ this.$textarea.addEventListener('input', () => this.handleInput());
949
956
  this.$textarea.addEventListener('focus', () => this.handleFocus());
950
957
  this.$textarea.addEventListener('blur', () => this.handleBlur());
951
958
  }
952
- handleKeyUp() {
959
+ handleInput() {
960
+ this.updateCount();
953
961
  this.updateVisibleCountMessage();
954
962
  this.lastInputTimestamp = Date.now();
955
963
  }
@@ -976,7 +984,7 @@
976
984
  this.updateScreenReaderCountMessage();
977
985
  }
978
986
  updateVisibleCountMessage() {
979
- const remainingNumber = this.maxLength - this.count(this.$textarea.value);
987
+ const remainingNumber = this.maxLength - this.count;
980
988
  const isError = remainingNumber < 0;
981
989
  this.$visibleCountMessage.classList.toggle('govuk-character-count__message--disabled', !this.isOverThreshold());
982
990
  if (!this.$errorMessage) {
@@ -994,16 +1002,18 @@
994
1002
  }
995
1003
  this.$screenReaderCountMessage.textContent = this.getCountMessage();
996
1004
  }
997
- count(text) {
1005
+ updateCount() {
1006
+ const text = this.$textarea.value;
998
1007
  if (this.config.maxwords) {
999
1008
  var _text$match;
1000
1009
  const tokens = (_text$match = text.match(/\S+/g)) != null ? _text$match : [];
1001
- return tokens.length;
1010
+ this.count = tokens.length;
1011
+ return;
1002
1012
  }
1003
- return text.length;
1013
+ this.count = text.length;
1004
1014
  }
1005
1015
  getCountMessage() {
1006
- const remainingNumber = this.maxLength - this.count(this.$textarea.value);
1016
+ const remainingNumber = this.maxLength - this.count;
1007
1017
  const countType = this.config.maxwords ? 'words' : 'characters';
1008
1018
  return this.formatCountMessage(remainingNumber, countType);
1009
1019
  }
@@ -1020,7 +1030,7 @@
1020
1030
  if (!this.config.threshold) {
1021
1031
  return true;
1022
1032
  }
1023
- const currentLength = this.count(this.$textarea.value);
1033
+ const currentLength = this.count;
1024
1034
  const maxLength = this.maxLength;
1025
1035
  const thresholdValue = maxLength * this.config.threshold / 100;
1026
1036
  return thresholdValue <= currentLength;
@@ -1841,89 +1851,6 @@
1841
1851
  * @import { TranslationPluralForms } from '../../i18n.mjs'
1842
1852
  */
1843
1853
 
1844
- /**
1845
- * Header component
1846
- *
1847
- * @preserve
1848
- */
1849
- class Header extends Component {
1850
- /**
1851
- * Apply a matchMedia for desktop which will trigger a state sync if the
1852
- * browser viewport moves between states.
1853
- *
1854
- * @param {Element | null} $root - HTML element to use for header
1855
- */
1856
- constructor($root) {
1857
- super($root);
1858
- this.$menuButton = void 0;
1859
- this.$menu = void 0;
1860
- this.menuIsOpen = false;
1861
- this.mql = null;
1862
- const $menuButton = this.$root.querySelector('.govuk-js-header-toggle');
1863
- if (!$menuButton) {
1864
- return this;
1865
- }
1866
- this.$root.classList.add('govuk-header--with-js-navigation');
1867
- const menuId = $menuButton.getAttribute('aria-controls');
1868
- if (!menuId) {
1869
- throw new ElementError({
1870
- component: Header,
1871
- identifier: 'Navigation button (`<button class="govuk-js-header-toggle">`) attribute (`aria-controls`)'
1872
- });
1873
- }
1874
- const $menu = document.getElementById(menuId);
1875
- if (!$menu) {
1876
- throw new ElementError({
1877
- component: Header,
1878
- element: $menu,
1879
- identifier: `Navigation (\`<ul id="${menuId}">\`)`
1880
- });
1881
- }
1882
- this.$menu = $menu;
1883
- this.$menuButton = $menuButton;
1884
- this.setupResponsiveChecks();
1885
- this.$menuButton.addEventListener('click', () => this.handleMenuButtonClick());
1886
- }
1887
- setupResponsiveChecks() {
1888
- const breakpoint = getBreakpoint('desktop');
1889
- if (!breakpoint.value) {
1890
- throw new ElementError({
1891
- component: Header,
1892
- identifier: `CSS custom property (\`${breakpoint.property}\`) on pseudo-class \`:root\``
1893
- });
1894
- }
1895
- this.mql = window.matchMedia(`(min-width: ${breakpoint.value})`);
1896
- if ('addEventListener' in this.mql) {
1897
- this.mql.addEventListener('change', () => this.checkMode());
1898
- } else {
1899
- this.mql.addListener(() => this.checkMode());
1900
- }
1901
- this.checkMode();
1902
- }
1903
- checkMode() {
1904
- if (!this.mql || !this.$menu || !this.$menuButton) {
1905
- return;
1906
- }
1907
- if (this.mql.matches) {
1908
- this.$menu.removeAttribute('hidden');
1909
- this.$menuButton.setAttribute('hidden', '');
1910
- } else {
1911
- this.$menuButton.removeAttribute('hidden');
1912
- this.$menuButton.setAttribute('aria-expanded', this.menuIsOpen.toString());
1913
- if (this.menuIsOpen) {
1914
- this.$menu.removeAttribute('hidden');
1915
- } else {
1916
- this.$menu.setAttribute('hidden', '');
1917
- }
1918
- }
1919
- }
1920
- handleMenuButtonClick() {
1921
- this.menuIsOpen = !this.menuIsOpen;
1922
- this.checkMode();
1923
- }
1924
- }
1925
- Header.moduleName = 'govuk-header';
1926
-
1927
1854
  /**
1928
1855
  * Notification Banner component
1929
1856
  *
@@ -2655,7 +2582,7 @@
2655
2582
  }
2656
2583
  return;
2657
2584
  }
2658
- const components = [[Accordion, config.accordion], [Button, config.button], [CharacterCount, config.characterCount], [Checkboxes], [ErrorSummary, config.errorSummary], [ExitThisPage, config.exitThisPage], [FileUpload, config.fileUpload], [Header], [NotificationBanner, config.notificationBanner], [PasswordInput, config.passwordInput], [Radios], [ServiceNavigation], [SkipLink], [Tabs]];
2585
+ const components = [[Accordion, config.accordion], [Button, config.button], [CharacterCount, config.characterCount], [Checkboxes], [ErrorSummary, config.errorSummary], [ExitThisPage, config.exitThisPage], [FileUpload, config.fileUpload], [NotificationBanner, config.notificationBanner], [PasswordInput, config.passwordInput], [Radios], [ServiceNavigation], [SkipLink], [Tabs]];
2659
2586
  components.forEach(([Component, componentConfig]) => {
2660
2587
  createAll(Component, componentConfig, options);
2661
2588
  });
@@ -2788,7 +2715,6 @@
2788
2715
  exports.ErrorSummary = ErrorSummary;
2789
2716
  exports.ExitThisPage = ExitThisPage;
2790
2717
  exports.FileUpload = FileUpload;
2791
- exports.Header = Header;
2792
2718
  exports.NotificationBanner = NotificationBanner;
2793
2719
  exports.PasswordInput = PasswordInput;
2794
2720
  exports.Radios = Radios;