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.
- checksums.yaml +4 -4
- data/app/assets/config/govuk_publishing_components_manifest.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/filter-list.js +29 -4
- data/app/assets/stylesheets/component_guide/application.scss +12 -18
- data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +6 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +14 -14
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +7 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +30 -51
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +23 -23
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +7 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +15 -15
- data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +11 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/_sub-navigation-menu.scss +9 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +15 -10
- data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss +9 -11
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/lib/_link.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/settings/_custom-properties.scss +9 -0
- data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +2 -0
- data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +14 -36
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -15
- data/app/views/govuk_publishing_components/components/docs/tag.yml +4 -8
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +4 -13
- data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -1
- data/config/initializers/assets.rb +1 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/README.md +10 -7
- data/node_modules/axe-core/axe.d.ts +4 -15
- data/node_modules/axe-core/axe.js +4011 -3559
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/gather-internals.js +1 -1
- data/node_modules/axe-core/locales/README.md +2 -2
- data/node_modules/axe-core/locales/_template.json +15 -5
- data/node_modules/axe-core/locales/sv.json +1147 -0
- data/node_modules/axe-core/package.json +65 -73
- data/node_modules/axe-core/sri-history.json +4 -0
- data/node_modules/govuk-frontend/README.md +1 -1
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +21 -95
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +22 -95
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +14 -11
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +16 -19
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +7 -95
- data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +12 -19
- data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +8 -20
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +19 -9
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +19 -9
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +4 -40
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +28 -37
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +0 -7
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +18 -23
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +25 -38
- data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +23 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +6 -11
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +85 -457
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +7 -536
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +2 -101
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +4 -50
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +9 -10
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -7
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template-default.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +50 -71
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +7 -32
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +9 -5
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +8 -5
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +6 -18
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-pink.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-turquoise.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +13 -25
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +12 -24
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +4 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +4 -3
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -17
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +8 -7
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +23 -39
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +2 -26
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +4 -26
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +2 -6
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +8 -254
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -16
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +61 -23
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -4
- data/node_modules/govuk-frontend/package.json +13 -12
- metadata +15 -56
- data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +0 -1
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +0 -34
- data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-input.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -54
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -54
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -48
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +0 -59
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -29
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +0 -119
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +0 -59
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +0 -62
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +0 -34
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +0 -34
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +0 -19
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-light-blue.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +0 -1
- 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.
|
|
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
|
-
"
|
|
67
|
+
"commit-and-tag-version": {
|
|
68
68
|
"scripts": {
|
|
69
|
-
"postbump": "
|
|
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-
|
|
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": "^
|
|
133
|
-
"@web/test-runner": "^0.
|
|
134
|
-
"aria-practices": "github:w3c/aria-practices#
|
|
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": "^
|
|
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": "^
|
|
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": "^
|
|
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": "^
|
|
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/
|
|
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 +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 = '
|
|
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', () =>
|
|
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('
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
1010
|
+
this.count = tokens.length;
|
|
1011
|
+
return;
|
|
1002
1012
|
}
|
|
1003
|
-
|
|
1013
|
+
this.count = text.length;
|
|
1004
1014
|
}
|
|
1005
1015
|
getCountMessage() {
|
|
1006
|
-
const remainingNumber = this.maxLength - this.count
|
|
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
|
|
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], [
|
|
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;
|