defra_ruby_template 5.11.0 → 6.4.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/README.md +133 -9
- data/Rakefile +146 -22
- data/app/views/layouts/defra_ruby_template.html.erb +107 -63
- data/lib/defra_ruby_template/version.rb +1 -1
- data/lib/defra_ruby_template.rb +12 -8
- data/node_modules/govuk-frontend/README.md +1 -1
- data/node_modules/govuk-frontend/dist/govuk/_base.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +214 -325
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +215 -325
- 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/configuration.mjs +29 -2
- data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +5 -11
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/_index.import.scss +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +37 -39
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +3 -368
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_mixin.scss +375 -0
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +14 -137
- 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 +14 -137
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +102 -97
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +3 -81
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_mixin.scss +87 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +21 -32
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +3 -132
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_mixin.scss +134 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +25 -45
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/_button.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.import.scss +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +9 -260
- data/node_modules/govuk-frontend/dist/govuk/components/button/_mixin.scss +233 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/_settings.import.scss +32 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/_settings.scss +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +193 -209
- data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +12 -19
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-active-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-focus-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-default-hover-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-active-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-disabled.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-focus-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-hover-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-active-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-focus-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-hover-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-active-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-focus-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-hover-state.html +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +20 -20
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.import.scss +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +7 -42
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_mixin.scss +41 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +30 -143
- 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 +30 -143
- 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 +20 -10
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +72 -86
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.import.scss +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -309
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_mixin.scss +317 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +10 -5
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +10 -5
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +326 -480
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/macro-options.json +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +5 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-conditional-reveal.html +21 -21
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +30 -30
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-error.html +26 -26
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-hint.html +25 -25
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-long-text.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items.html +35 -35
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +30 -32
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +40 -42
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +32 -23
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hint.html +30 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +21 -23
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-legend-as-a-page-heading.html +27 -27
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-optional-form-group-classes-showing-group-error.html +36 -36
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +25 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +27 -30
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.import.scss +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +4 -56
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_mixin.scss +56 -0
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +82 -82
- 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/date-input/_date-input.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.import.scss +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +8 -26
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_mixin.scss +29 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +780 -150
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +50 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-day-and-month-using-items.html +28 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-default.html +30 -22
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-month-and-year-using-items.html +28 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-message-and-hint-using-items.html +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-message-and-hint.html +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-day-input-using-items.html +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-day-input.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-month-input-using-items.html +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-month-input.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-year-input-using-items.html +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-error-on-year-input.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-classes.html +33 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-items-and-classes.html +33 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only-using-items.html +33 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-only.html +5 -8
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-translations.html +36 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values-and-name-prefix.html +36 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values-name-prefix-and-custom-names.html +36 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-values.html +36 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template.njk +84 -29
- data/node_modules/govuk-frontend/dist/govuk/components/details/_details.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +3 -137
- data/node_modules/govuk-frontend/dist/govuk/components/details/_mixin.scss +143 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +22 -22
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +3 -12
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_mixin.scss +16 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +3 -53
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_mixin.scss +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +8 -12
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +8 -12
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +21 -21
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.import.scss +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +4 -89
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_mixin.scss +96 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +10 -133
- 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 +10 -133
- 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/exit-this-page/exit-this-page.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +19 -19
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -67
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_mixin.scss +71 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +19 -19
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.import.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +6 -216
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_mixin.scss +217 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +76 -164
- 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 +76 -164
- 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/file-upload.mjs +66 -32
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +125 -138
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +15 -10
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-custom-wrapper-classes-and-attributes.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-multiple-files.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-with-error-message-and-hint.html +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced.html +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-translated.html +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +3 -192
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_mixin.scss +199 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +129 -81
- data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +1 -7
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +40 -19
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +40 -19
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +45 -24
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +37 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +41 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +80 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +36 -39
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/README.md +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/_generic-header.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/_index.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/_mixin.scss +140 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/fixtures.json +90 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/macro-options.json +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/macro.njk +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-default.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-full-width.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-with-image-logo.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template-with-text-and-image-logo.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/generic-header/template.njk +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/README.md +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/_header.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +3 -546
- data/node_modules/govuk-frontend/dist/govuk/components/header/_mixin.scss +119 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +15 -492
- 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 +12 -7
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +12 -8
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +11 -7
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +20 -63
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +3 -43
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_mixin.scss +47 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +7 -7
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.import.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +6 -166
- data/node_modules/govuk-frontend/dist/govuk/components/input/_input.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_mixin.scss +161 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +161 -180
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-extra-letter-spacing.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +3 -24
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_mixin.scss +31 -0
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -7
- data/node_modules/govuk-frontend/dist/govuk/components/label/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss +3 -44
- data/node_modules/govuk-frontend/dist/govuk/components/label/_label.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/_mixin.scss +48 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +20 -20
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -91
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_mixin.scss +100 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +74 -108
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +7 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +3 -226
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_mixin.scss +235 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +109 -105
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-default.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-first-page.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-last-page.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-link-and-item-text.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-many-pages.html +9 -9
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +3 -56
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_mixin.scss +94 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +249 -16
- data/node_modules/govuk-frontend/dist/govuk/components/panel/macro-options.json +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template-default.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption-with-content-with-long-line-length.html +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption-with-headings-content-and-lists.html +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template-interruption.html +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template.njk +42 -2
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.import.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +5 -54
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_mixin.scss +56 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +53 -48
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +10 -133
- 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 +10 -133
- 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/password-input/password-input.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.import.scss +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +4 -33
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_mixin.scss +42 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +15 -15
- 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.import.scss +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -325
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_mixin.scss +336 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +244 -354
- data/node_modules/govuk-frontend/dist/govuk/components/radios/macro-options.json +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +10 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +10 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +5 -3
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-inline.html +19 -19
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +24 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-conditional-reveal.html +27 -27
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-error.html +26 -26
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-hint.html +25 -25
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-long-text.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +24 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-item-checked.html +35 -35
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-and-pre-checked-value.html +35 -35
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items.html +35 -35
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-fieldset-and-error-message.html +20 -20
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hint.html +24 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hints-on-items.html +23 -23
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-legend-as-page-heading.html +21 -21
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-optional-form-group-classes-showing-group-error.html +36 -36
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-very-long-option-text.html +28 -28
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.import.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +6 -56
- data/node_modules/govuk-frontend/dist/govuk/components/select/_mixin.scss +45 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/_select.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +99 -115
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +3 -185
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_mixin.scss +238 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +210 -69
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +41 -8
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +41 -8
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html +63 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item.html +35 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-collapsenavigationonmobile-set-to-false.html +60 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +3 -50
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_mixin.scss +60 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +12 -19
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +12 -19
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +3 -9
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +3 -267
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_mixin.scss +286 -0
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +282 -518
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +3 -73
- data/node_modules/govuk-frontend/dist/govuk/components/table/_mixin.scss +77 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/_table.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +75 -75
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +3 -132
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_mixin.scss +140 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +44 -39
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +13 -14
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +13 -14
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +3 -94
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_mixin.scss +135 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +19 -43
- 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.import.scss +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +4 -76
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_mixin.scss +83 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +35 -58
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-forced-hover-state.html +37 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +131 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +77 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.import.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +6 -47
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_mixin.scss +43 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +81 -81
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +3 -64
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_mixin.scss +69 -0
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +9 -9
- data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.import.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.mixin.scss +19 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_global-styles.scss +5 -18
- data/node_modules/govuk-frontend/dist/govuk/core/_index.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +6 -7
- data/node_modules/govuk-frontend/dist/govuk/core/_links.import.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_links.mixin.scss +44 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_links.scss +3 -40
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.import.scss +14 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.mixin.scss +74 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +6 -64
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.mixin.scss +54 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +3 -49
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.mixin.scss +173 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -187
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.mixin.scss +15 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.mixin.scss +13 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.mixin.scss +21 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.import.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +5 -3
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
- 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/_clearfix.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_clearfix.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +190 -89
- data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +44 -7
- data/node_modules/govuk-frontend/dist/govuk/helpers/_font-faces--internal.scss +41 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss +12 -13
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +35 -46
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +174 -34
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +2 -3
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing--internal.scss +80 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +27 -82
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography--internal.scss +24 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +55 -74
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +17 -13
- data/node_modules/govuk-frontend/dist/govuk/helpers/_width-container.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_width-container.scss +73 -0
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +5 -128
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/index.import.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/index.scss +6 -7
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +53 -45
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/macros/attributes.njk +30 -14
- data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +7 -29
- data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.mixin.scss +80 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +3 -78
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.mixin.scss +26 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +3 -23
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.mixin.scss +28 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss +3 -24
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.import.scss +7 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss +6 -7
- data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.mixin.scss +55 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +3 -53
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.mixin.scss +53 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +3 -55
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.mixin.scss +9 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +3 -75
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.mixin.scss +26 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +2 -24
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.import.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +5 -6
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.mixin.scss +89 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss +2 -84
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.mixin.scss +16 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss +2 -14
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.mixin.scss +43 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +2 -40
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.mixin.scss +50 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +2 -46
- data/node_modules/govuk-frontend/dist/govuk/settings/_assets.import.scss +13 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_assets.scss +50 -21
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.import.scss +13 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +168 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-legacy-functional.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-legacy-functional.scss +188 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +9 -274
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette--internal.scss +128 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_global-styles.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_global-styles.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.import.scss +24 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +14 -13
- data/node_modules/govuk-frontend/dist/govuk/settings/_links.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +8 -17
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_spacing.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_spacing.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -190
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings--internal.scss +69 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +9 -56
- data/node_modules/govuk-frontend/dist/govuk/template.njk +61 -23
- data/node_modules/govuk-frontend/dist/govuk/tools/_exports.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_exports.scss +12 -6
- data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.import.scss +31 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss +22 -6
- data/node_modules/govuk-frontend/dist/govuk/tools/_if.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_if.scss +23 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.import.scss +31 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss +22 -6
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +6 -7
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +9 -6
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.import.scss +2 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +6 -3
- data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.mixin.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_clearfix.scss +3 -6
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.import.scss +3 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +2 -3
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.import.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.mixin.scss +14 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss +2 -9
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +4 -3
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +5 -4
- data/node_modules/govuk-frontend/package.json +27 -22
- data/vendor/assets/assets/images/favicon.ico +0 -0
- data/vendor/assets/assets/images/favicon.svg +1 -1
- data/vendor/assets/assets/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/manifest.json.erb +39 -0
- data/vendor/assets/images/favicon.ico +0 -0
- data/vendor/assets/images/favicon.svg +1 -1
- data/vendor/assets/images/govuk-icon-180.png +0 -0
- data/vendor/assets/images/govuk-icon-192.png +0 -0
- data/vendor/assets/images/govuk-icon-512.png +0 -0
- data/vendor/assets/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/javascripts/defra_ruby_template.js +214 -325
- data/vendor/assets/javascripts/defra_ruby_template_supported.js +4 -0
- data/vendor/assets/stylesheets/_base.import.scss +6 -0
- data/vendor/assets/stylesheets/_base.scss +4 -4
- data/vendor/assets/stylesheets/components/_index.import.scss +38 -0
- data/vendor/assets/stylesheets/components/_index.scss +37 -39
- data/vendor/assets/stylesheets/components/accordion/_accordion.import.scss +6 -0
- data/vendor/assets/stylesheets/components/accordion/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/accordion/_index.scss +3 -368
- data/vendor/assets/stylesheets/components/accordion/_mixin.scss +375 -0
- data/vendor/assets/stylesheets/components/back-link/_back-link.import.scss +6 -0
- data/vendor/assets/stylesheets/components/back-link/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/back-link/_index.scss +3 -81
- data/vendor/assets/stylesheets/components/back-link/_mixin.scss +87 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.import.scss +6 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_index.scss +3 -132
- data/vendor/assets/stylesheets/components/breadcrumbs/_mixin.scss +134 -0
- data/vendor/assets/stylesheets/components/button/_button.import.scss +6 -0
- data/vendor/assets/stylesheets/components/button/_index.import.scss +13 -0
- data/vendor/assets/stylesheets/components/button/_index.scss +9 -260
- data/vendor/assets/stylesheets/components/button/_mixin.scss +233 -0
- data/vendor/assets/stylesheets/components/button/_settings.import.scss +32 -0
- data/vendor/assets/stylesheets/components/button/_settings.scss +34 -0
- data/vendor/assets/stylesheets/components/character-count/_character-count.import.scss +6 -0
- data/vendor/assets/stylesheets/components/character-count/_index.import.scss +12 -0
- data/vendor/assets/stylesheets/components/character-count/_index.scss +7 -42
- data/vendor/assets/stylesheets/components/character-count/_mixin.scss +41 -0
- data/vendor/assets/stylesheets/components/checkboxes/_checkboxes.import.scss +6 -0
- data/vendor/assets/stylesheets/components/checkboxes/_index.import.scss +12 -0
- data/vendor/assets/stylesheets/components/checkboxes/_index.scss +7 -309
- data/vendor/assets/stylesheets/components/checkboxes/_mixin.scss +317 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_cookie-banner.import.scss +6 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_index.import.scss +9 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +4 -56
- data/vendor/assets/stylesheets/components/cookie-banner/_mixin.scss +56 -0
- data/vendor/assets/stylesheets/components/date-input/_date-input.import.scss +6 -0
- data/vendor/assets/stylesheets/components/date-input/_index.import.scss +13 -0
- data/vendor/assets/stylesheets/components/date-input/_index.scss +8 -26
- data/vendor/assets/stylesheets/components/date-input/_mixin.scss +29 -0
- data/vendor/assets/stylesheets/components/details/_details.import.scss +6 -0
- data/vendor/assets/stylesheets/components/details/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/details/_index.scss +3 -137
- data/vendor/assets/stylesheets/components/details/_mixin.scss +143 -0
- data/vendor/assets/stylesheets/components/error-message/_error-message.import.scss +6 -0
- data/vendor/assets/stylesheets/components/error-message/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/error-message/_index.scss +3 -12
- data/vendor/assets/stylesheets/components/error-message/_mixin.scss +16 -0
- data/vendor/assets/stylesheets/components/error-summary/_error-summary.import.scss +6 -0
- data/vendor/assets/stylesheets/components/error-summary/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/error-summary/_index.scss +3 -53
- data/vendor/assets/stylesheets/components/error-summary/_mixin.scss +58 -0
- data/vendor/assets/stylesheets/components/exit-this-page/_exit-this-page.import.scss +6 -0
- data/vendor/assets/stylesheets/components/exit-this-page/_index.import.scss +9 -0
- data/vendor/assets/stylesheets/components/exit-this-page/_index.scss +4 -89
- data/vendor/assets/stylesheets/components/exit-this-page/_mixin.scss +96 -0
- data/vendor/assets/stylesheets/components/fieldset/_fieldset.import.scss +6 -0
- data/vendor/assets/stylesheets/components/fieldset/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/fieldset/_index.scss +3 -67
- data/vendor/assets/stylesheets/components/fieldset/_mixin.scss +71 -0
- data/vendor/assets/stylesheets/components/file-upload/_file-upload.import.scss +6 -0
- data/vendor/assets/stylesheets/components/file-upload/_index.import.scss +11 -0
- data/vendor/assets/stylesheets/components/file-upload/_index.scss +6 -216
- data/vendor/assets/stylesheets/components/file-upload/_mixin.scss +217 -0
- data/vendor/assets/stylesheets/components/footer/_footer.import.scss +6 -0
- data/vendor/assets/stylesheets/components/footer/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/footer/_index.scss +3 -192
- data/vendor/assets/stylesheets/components/footer/_mixin.scss +199 -0
- data/vendor/assets/stylesheets/components/generic-header/_generic-header.import.scss +6 -0
- data/vendor/assets/stylesheets/components/generic-header/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/generic-header/_index.scss +5 -0
- data/vendor/assets/stylesheets/components/generic-header/_mixin.scss +140 -0
- data/vendor/assets/stylesheets/components/header/_header.import.scss +6 -0
- data/vendor/assets/stylesheets/components/header/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/header/_index.scss +3 -546
- data/vendor/assets/stylesheets/components/header/_mixin.scss +119 -0
- data/vendor/assets/stylesheets/components/hint/_hint.import.scss +6 -0
- data/vendor/assets/stylesheets/components/hint/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/hint/_index.scss +3 -43
- data/vendor/assets/stylesheets/components/hint/_mixin.scss +47 -0
- data/vendor/assets/stylesheets/components/input/_index.import.scss +11 -0
- data/vendor/assets/stylesheets/components/input/_index.scss +6 -166
- data/vendor/assets/stylesheets/components/input/_input.import.scss +6 -0
- data/vendor/assets/stylesheets/components/input/_mixin.scss +161 -0
- data/vendor/assets/stylesheets/components/inset-text/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/inset-text/_index.scss +3 -24
- data/vendor/assets/stylesheets/components/inset-text/_inset-text.import.scss +6 -0
- data/vendor/assets/stylesheets/components/inset-text/_mixin.scss +31 -0
- data/vendor/assets/stylesheets/components/label/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/label/_index.scss +3 -44
- data/vendor/assets/stylesheets/components/label/_label.import.scss +6 -0
- data/vendor/assets/stylesheets/components/label/_mixin.scss +48 -0
- data/vendor/assets/stylesheets/components/notification-banner/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/notification-banner/_index.scss +3 -91
- data/vendor/assets/stylesheets/components/notification-banner/_mixin.scss +100 -0
- data/vendor/assets/stylesheets/components/notification-banner/_notification-banner.import.scss +6 -0
- data/vendor/assets/stylesheets/components/pagination/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/pagination/_index.scss +3 -226
- data/vendor/assets/stylesheets/components/pagination/_mixin.scss +235 -0
- data/vendor/assets/stylesheets/components/pagination/_pagination.import.scss +6 -0
- data/vendor/assets/stylesheets/components/panel/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/panel/_index.scss +3 -56
- data/vendor/assets/stylesheets/components/panel/_mixin.scss +94 -0
- data/vendor/assets/stylesheets/components/panel/_panel.import.scss +6 -0
- data/vendor/assets/stylesheets/components/password-input/_index.import.scss +10 -0
- data/vendor/assets/stylesheets/components/password-input/_index.scss +5 -54
- data/vendor/assets/stylesheets/components/password-input/_mixin.scss +56 -0
- data/vendor/assets/stylesheets/components/password-input/_password-input.import.scss +6 -0
- data/vendor/assets/stylesheets/components/phase-banner/_index.import.scss +9 -0
- data/vendor/assets/stylesheets/components/phase-banner/_index.scss +4 -33
- data/vendor/assets/stylesheets/components/phase-banner/_mixin.scss +42 -0
- data/vendor/assets/stylesheets/components/phase-banner/_phase-banner.import.scss +6 -0
- data/vendor/assets/stylesheets/components/radios/_index.import.scss +12 -0
- data/vendor/assets/stylesheets/components/radios/_index.scss +7 -325
- data/vendor/assets/stylesheets/components/radios/_mixin.scss +336 -0
- data/vendor/assets/stylesheets/components/radios/_radios.import.scss +6 -0
- data/vendor/assets/stylesheets/components/select/_index.import.scss +11 -0
- data/vendor/assets/stylesheets/components/select/_index.scss +6 -56
- data/vendor/assets/stylesheets/components/select/_mixin.scss +45 -0
- data/vendor/assets/stylesheets/components/select/_select.import.scss +6 -0
- data/vendor/assets/stylesheets/components/service-navigation/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/service-navigation/_index.scss +3 -185
- data/vendor/assets/stylesheets/components/service-navigation/_mixin.scss +238 -0
- data/vendor/assets/stylesheets/components/service-navigation/_service-navigation.import.scss +6 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.scss +3 -50
- data/vendor/assets/stylesheets/components/skip-link/_mixin.scss +60 -0
- data/vendor/assets/stylesheets/components/skip-link/_skip-link.import.scss +6 -0
- data/vendor/assets/stylesheets/components/summary-list/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/summary-list/_index.scss +3 -267
- data/vendor/assets/stylesheets/components/summary-list/_mixin.scss +286 -0
- data/vendor/assets/stylesheets/components/summary-list/_summary-list.import.scss +6 -0
- data/vendor/assets/stylesheets/components/table/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/table/_index.scss +3 -73
- data/vendor/assets/stylesheets/components/table/_mixin.scss +77 -0
- data/vendor/assets/stylesheets/components/table/_table.import.scss +6 -0
- data/vendor/assets/stylesheets/components/tabs/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/tabs/_index.scss +3 -132
- data/vendor/assets/stylesheets/components/tabs/_mixin.scss +140 -0
- data/vendor/assets/stylesheets/components/tabs/_tabs.import.scss +6 -0
- data/vendor/assets/stylesheets/components/tag/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/tag/_index.scss +3 -94
- data/vendor/assets/stylesheets/components/tag/_mixin.scss +135 -0
- data/vendor/assets/stylesheets/components/tag/_tag.import.scss +6 -0
- data/vendor/assets/stylesheets/components/task-list/_index.import.scss +9 -0
- data/vendor/assets/stylesheets/components/task-list/_index.scss +4 -76
- data/vendor/assets/stylesheets/components/task-list/_mixin.scss +83 -0
- data/vendor/assets/stylesheets/components/task-list/_task-list.import.scss +6 -0
- data/vendor/assets/stylesheets/components/textarea/_index.import.scss +11 -0
- data/vendor/assets/stylesheets/components/textarea/_index.scss +6 -47
- data/vendor/assets/stylesheets/components/textarea/_mixin.scss +43 -0
- data/vendor/assets/stylesheets/components/textarea/_textarea.import.scss +6 -0
- data/vendor/assets/stylesheets/components/warning-text/_index.import.scss +8 -0
- data/vendor/assets/stylesheets/components/warning-text/_index.scss +3 -64
- data/vendor/assets/stylesheets/components/warning-text/_mixin.scss +69 -0
- data/vendor/assets/stylesheets/components/warning-text/_warning-text.import.scss +6 -0
- data/vendor/assets/stylesheets/core/_global-styles.import.scss +10 -0
- data/vendor/assets/stylesheets/core/_global-styles.mixin.scss +19 -0
- data/vendor/assets/stylesheets/core/_global-styles.scss +5 -18
- data/vendor/assets/stylesheets/core/_index.import.scss +6 -0
- data/vendor/assets/stylesheets/core/_index.scss +6 -7
- data/vendor/assets/stylesheets/core/_links.import.scss +10 -0
- data/vendor/assets/stylesheets/core/_links.mixin.scss +44 -0
- data/vendor/assets/stylesheets/core/_links.scss +3 -40
- data/vendor/assets/stylesheets/core/_lists.import.scss +14 -0
- data/vendor/assets/stylesheets/core/_lists.mixin.scss +74 -0
- data/vendor/assets/stylesheets/core/_lists.scss +6 -64
- data/vendor/assets/stylesheets/core/_section-break.import.scss +8 -0
- data/vendor/assets/stylesheets/core/_section-break.mixin.scss +54 -0
- data/vendor/assets/stylesheets/core/_section-break.scss +3 -49
- data/vendor/assets/stylesheets/core/_typography.import.scss +8 -0
- data/vendor/assets/stylesheets/core/_typography.mixin.scss +173 -0
- data/vendor/assets/stylesheets/core/_typography.scss +3 -187
- data/vendor/assets/stylesheets/custom-properties/_breakpoints.import.scss +8 -0
- data/vendor/assets/stylesheets/custom-properties/_breakpoints.mixin.scss +15 -0
- data/vendor/assets/stylesheets/custom-properties/_breakpoints.scss +4 -0
- data/vendor/assets/stylesheets/custom-properties/_frontend-version.import.scss +8 -0
- data/vendor/assets/stylesheets/custom-properties/_frontend-version.mixin.scss +13 -0
- data/vendor/assets/stylesheets/custom-properties/_frontend-version.scss +4 -0
- data/vendor/assets/stylesheets/custom-properties/_functional-colours.import.scss +8 -0
- data/vendor/assets/stylesheets/custom-properties/_functional-colours.mixin.scss +21 -0
- data/vendor/assets/stylesheets/custom-properties/_functional-colours.scss +4 -0
- data/vendor/assets/stylesheets/custom-properties/_index.import.scss +4 -0
- data/vendor/assets/stylesheets/custom-properties/_index.scss +4 -0
- data/vendor/assets/stylesheets/defra_ruby_template.scss +29 -10
- data/vendor/assets/stylesheets/govuk-frontend.min.css +2 -2
- data/vendor/assets/stylesheets/helpers/_clearfix.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_clearfix.scss +0 -1
- data/vendor/assets/stylesheets/helpers/_colour.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_colour.scss +190 -89
- data/vendor/assets/stylesheets/helpers/_device-pixels.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_device-pixels.scss +2 -1
- data/vendor/assets/stylesheets/helpers/_focused.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_focused.scss +44 -7
- data/vendor/assets/stylesheets/helpers/_font-faces--internal.scss +41 -0
- data/vendor/assets/stylesheets/helpers/_grid.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_grid.scss +7 -4
- data/vendor/assets/stylesheets/helpers/_index.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_index.scss +12 -13
- data/vendor/assets/stylesheets/helpers/_links.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_links.scss +35 -46
- data/vendor/assets/stylesheets/helpers/_media-queries.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_media-queries.scss +174 -34
- data/vendor/assets/stylesheets/helpers/_shape-arrow.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +2 -3
- data/vendor/assets/stylesheets/helpers/_spacing--internal.scss +80 -0
- data/vendor/assets/stylesheets/helpers/_spacing.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_spacing.scss +27 -82
- data/vendor/assets/stylesheets/helpers/_typography--internal.scss +24 -0
- data/vendor/assets/stylesheets/helpers/_typography.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_typography.scss +55 -74
- data/vendor/assets/stylesheets/helpers/_visually-hidden.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +17 -13
- data/vendor/assets/stylesheets/helpers/_width-container.import.scss +2 -0
- data/vendor/assets/stylesheets/helpers/_width-container.scss +73 -0
- data/vendor/assets/stylesheets/index.import.scss +10 -0
- data/vendor/assets/stylesheets/index.scss +6 -7
- data/vendor/assets/stylesheets/objects/_button-group.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_button-group.mixin.scss +80 -0
- data/vendor/assets/stylesheets/objects/_button-group.scss +3 -78
- data/vendor/assets/stylesheets/objects/_form-group.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_form-group.mixin.scss +26 -0
- data/vendor/assets/stylesheets/objects/_form-group.scss +3 -23
- data/vendor/assets/stylesheets/objects/_grid.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_grid.mixin.scss +28 -0
- data/vendor/assets/stylesheets/objects/_grid.scss +3 -24
- data/vendor/assets/stylesheets/objects/_index.import.scss +7 -0
- data/vendor/assets/stylesheets/objects/_index.scss +6 -7
- data/vendor/assets/stylesheets/objects/_main-wrapper.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_main-wrapper.mixin.scss +55 -0
- data/vendor/assets/stylesheets/objects/_main-wrapper.scss +3 -53
- data/vendor/assets/stylesheets/objects/_template.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_template.mixin.scss +53 -0
- data/vendor/assets/stylesheets/objects/_template.scss +3 -55
- data/vendor/assets/stylesheets/objects/_width-container.import.scss +8 -0
- data/vendor/assets/stylesheets/objects/_width-container.mixin.scss +9 -0
- data/vendor/assets/stylesheets/objects/_width-container.scss +3 -75
- data/vendor/assets/stylesheets/overrides/_display.import.scss +8 -0
- data/vendor/assets/stylesheets/overrides/_display.mixin.scss +26 -0
- data/vendor/assets/stylesheets/overrides/_display.scss +2 -24
- data/vendor/assets/stylesheets/overrides/_index.import.scss +6 -0
- data/vendor/assets/stylesheets/overrides/_index.scss +5 -6
- data/vendor/assets/stylesheets/overrides/_spacing.import.scss +8 -0
- data/vendor/assets/stylesheets/overrides/_spacing.mixin.scss +89 -0
- data/vendor/assets/stylesheets/overrides/_spacing.scss +2 -84
- data/vendor/assets/stylesheets/overrides/_text-align.import.scss +8 -0
- data/vendor/assets/stylesheets/overrides/_text-align.mixin.scss +16 -0
- data/vendor/assets/stylesheets/overrides/_text-align.scss +2 -14
- data/vendor/assets/stylesheets/overrides/_typography.import.scss +8 -0
- data/vendor/assets/stylesheets/overrides/_typography.mixin.scss +43 -0
- data/vendor/assets/stylesheets/overrides/_typography.scss +2 -40
- data/vendor/assets/stylesheets/overrides/_width.import.scss +8 -0
- data/vendor/assets/stylesheets/overrides/_width.mixin.scss +50 -0
- data/vendor/assets/stylesheets/overrides/_width.scss +2 -46
- data/vendor/assets/stylesheets/settings/_assets.import.scss +13 -0
- data/vendor/assets/stylesheets/settings/_assets.scss +50 -21
- data/vendor/assets/stylesheets/settings/_colours-applied.import.scss +13 -0
- data/vendor/assets/stylesheets/settings/_colours-functional.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_colours-functional.scss +168 -0
- data/vendor/assets/stylesheets/settings/_colours-legacy-functional.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_colours-legacy-functional.scss +188 -0
- data/vendor/assets/stylesheets/settings/_colours-organisations.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_colours-organisations.scss +9 -274
- data/vendor/assets/stylesheets/settings/_colours-palette--internal.scss +128 -0
- data/vendor/assets/stylesheets/settings/_custom-properties.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_custom-properties.scss +17 -0
- data/vendor/assets/stylesheets/settings/_global-styles.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_global-styles.scss +0 -1
- data/vendor/assets/stylesheets/settings/_index.import.scss +24 -0
- data/vendor/assets/stylesheets/settings/_index.scss +14 -13
- data/vendor/assets/stylesheets/settings/_links.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_links.scss +3 -3
- data/vendor/assets/stylesheets/settings/_measurements.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_measurements.scss +8 -17
- data/vendor/assets/stylesheets/settings/_media-queries.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_media-queries.scss +0 -10
- data/vendor/assets/stylesheets/settings/_spacing.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_spacing.scss +0 -1
- data/vendor/assets/stylesheets/settings/_typography-font.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_typography-font.scss +3 -2
- data/vendor/assets/stylesheets/settings/_typography-responsive.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_typography-responsive.scss +12 -190
- data/vendor/assets/stylesheets/settings/_warnings--internal.scss +69 -0
- data/vendor/assets/stylesheets/settings/_warnings.import.scss +2 -0
- data/vendor/assets/stylesheets/settings/_warnings.scss +9 -56
- data/vendor/assets/stylesheets/tools/_exports.import.scss +2 -0
- data/vendor/assets/stylesheets/tools/_exports.scss +12 -6
- data/vendor/assets/stylesheets/tools/_font-url.import.scss +31 -0
- data/vendor/assets/stylesheets/tools/_font-url.scss +22 -6
- data/vendor/assets/stylesheets/tools/_if.import.scss +2 -0
- data/vendor/assets/stylesheets/tools/_if.scss +23 -0
- data/vendor/assets/stylesheets/tools/_image-url.import.scss +31 -0
- data/vendor/assets/stylesheets/tools/_image-url.scss +22 -6
- data/vendor/assets/stylesheets/tools/_index.import.scss +2 -0
- data/vendor/assets/stylesheets/tools/_index.scss +6 -7
- data/vendor/assets/stylesheets/tools/_px-to-em.import.scss +2 -0
- data/vendor/assets/stylesheets/tools/_px-to-em.scss +9 -6
- data/vendor/assets/stylesheets/tools/_px-to-rem.import.scss +2 -0
- data/vendor/assets/stylesheets/tools/_px-to-rem.scss +6 -3
- data/vendor/assets/stylesheets/utilities/_clearfix.import.scss +8 -0
- data/vendor/assets/stylesheets/utilities/_clearfix.mixin.scss +10 -0
- data/vendor/assets/stylesheets/utilities/_clearfix.scss +3 -6
- data/vendor/assets/stylesheets/utilities/_index.import.scss +3 -0
- data/vendor/assets/stylesheets/utilities/_index.scss +2 -3
- data/vendor/assets/stylesheets/utilities/_visually-hidden.import.scss +8 -0
- data/vendor/assets/stylesheets/utilities/_visually-hidden.mixin.scss +14 -0
- data/vendor/assets/stylesheets/utilities/_visually-hidden.scss +2 -9
- metadata +490 -408
- data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +0 -1
- 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/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_accordion.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-focusable-elements-inside.html +0 -26
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-one-section-open.html +0 -30
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/template-with-translations.html +0 -30
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_back-link.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-text.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/button/_button.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-input-disabled.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-input.html +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-link.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-inverse-start.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-prevent-double-click.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-secondary-link.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-start-link.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-warning-link.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-active-state.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-focus-state.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/template-with-hover-state.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_character-count.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +0 -9
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +0 -12
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +0 -9
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +0 -27
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +0 -33
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +0 -29
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-fieldset-and-error-message.html +0 -30
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +0 -30
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +0 -13
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +0 -22
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +0 -60
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_date-input.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-autocomplete-values.html +0 -36
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-default-items.html +0 -36
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-errors-and-hint.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-input-attributes.html +0 -36
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template-with-optional-form-group-classes.html +0 -36
- data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/details/_details.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_error-message.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template-translated.html +0 -5
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +0 -13
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-optional-form-group-classes.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_footer.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +0 -56
- data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/header/_header.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -233
- 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 -225
- 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 -55
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -57
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -51
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +0 -59
- 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-custom-navigation-label.html +0 -59
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -30
- 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/hint/_hint.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_hint.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/input/_input.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocomplete-attribute.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-optional-form-group-classes.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-pattern-attribute.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-prefix-and-long-suffix.html +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-disabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-spellcheck-enabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/label/_label.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +0 -12
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +0 -12
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +0 -12
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +0 -12
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_pagination.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +0 -22
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_panel.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template-custom-heading-level.html +0 -8
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +0 -11
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +0 -11
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_radios.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +0 -19
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +0 -69
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +0 -27
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +0 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +0 -29
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +0 -16
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/select/_select.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +0 -7
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-no-items.html +0 -7
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-an-active-item.html +0 -58
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +0 -28
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +0 -98
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +0 -58
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +0 -51
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +0 -58
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +0 -45
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/table/_table.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +0 -19
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_tabs.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_tag.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-blue.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template-light-blue.html +0 -3
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_task-list.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +0 -49
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-all-possible-colours.html +0 -143
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-hint-text-and-additional-states.html +0 -77
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_textarea.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-autocomplete-attribute.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-optional-form-group-classes.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-disabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template-with-spellcheck-enabled.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +0 -4
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss.map +0 -1
- 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/_global-styles.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -12
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_links.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.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/helpers/_clearfix.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_device-pixels.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_font-faces.scss +0 -41
- data/node_modules/govuk-frontend/dist/govuk/helpers/_font-faces.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/index.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/objects/_button-group.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_grid.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.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/overrides/_display.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_spacing.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_text-align.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.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/settings/_assets.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +0 -195
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +0 -37
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_global-styles.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_links.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_spacing.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-font.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.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/_exports.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_font-url.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.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/utilities/_clearfix.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_visually-hidden.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
- data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +0 -1
- data/spec/spec_helper.rb +0 -98
- data/spec/tasks/assets_spec.rb +0 -53
- data/vendor/assets/assets/manifest.json +0 -39
- data/vendor/assets/assets/rebrand/images/favicon.ico +0 -0
- data/vendor/assets/assets/rebrand/images/favicon.svg +0 -1
- data/vendor/assets/assets/rebrand/images/govuk-crest.svg +0 -1
- data/vendor/assets/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-mask.svg +0 -1
- data/vendor/assets/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/rebrand/manifest.json +0 -39
- data/vendor/assets/images/govuk-crest-2x.png +0 -0
- data/vendor/assets/images/govuk-crest.png +0 -0
- data/vendor/assets/stylesheets/all.scss +0 -9
- data/vendor/assets/stylesheets/components/_all.scss +0 -10
- data/vendor/assets/stylesheets/components/accordion/_accordion.scss +0 -4
- data/vendor/assets/stylesheets/components/back-link/_back-link.scss +0 -4
- data/vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.scss +0 -4
- data/vendor/assets/stylesheets/components/button/_button.scss +0 -4
- data/vendor/assets/stylesheets/components/character-count/_character-count.scss +0 -4
- data/vendor/assets/stylesheets/components/checkboxes/_checkboxes.scss +0 -4
- data/vendor/assets/stylesheets/components/cookie-banner/_cookie-banner.scss +0 -4
- data/vendor/assets/stylesheets/components/date-input/_date-input.scss +0 -4
- data/vendor/assets/stylesheets/components/details/_details.scss +0 -4
- data/vendor/assets/stylesheets/components/error-message/_error-message.scss +0 -4
- data/vendor/assets/stylesheets/components/error-summary/_error-summary.scss +0 -4
- data/vendor/assets/stylesheets/components/exit-this-page/_exit-this-page.scss +0 -4
- data/vendor/assets/stylesheets/components/fieldset/_fieldset.scss +0 -4
- data/vendor/assets/stylesheets/components/file-upload/_file-upload.scss +0 -4
- data/vendor/assets/stylesheets/components/footer/_footer.scss +0 -4
- data/vendor/assets/stylesheets/components/header/_header.scss +0 -4
- data/vendor/assets/stylesheets/components/hint/_hint.scss +0 -4
- data/vendor/assets/stylesheets/components/input/_input.scss +0 -4
- data/vendor/assets/stylesheets/components/inset-text/_inset-text.scss +0 -4
- data/vendor/assets/stylesheets/components/label/_label.scss +0 -4
- data/vendor/assets/stylesheets/components/notification-banner/_notification-banner.scss +0 -4
- data/vendor/assets/stylesheets/components/pagination/_pagination.scss +0 -4
- data/vendor/assets/stylesheets/components/panel/_panel.scss +0 -4
- data/vendor/assets/stylesheets/components/password-input/_password-input.scss +0 -4
- data/vendor/assets/stylesheets/components/phase-banner/_phase-banner.scss +0 -4
- data/vendor/assets/stylesheets/components/radios/_radios.scss +0 -4
- data/vendor/assets/stylesheets/components/select/_select.scss +0 -4
- data/vendor/assets/stylesheets/components/service-navigation/_service-navigation.scss +0 -4
- data/vendor/assets/stylesheets/components/skip-link/_skip-link.scss +0 -4
- data/vendor/assets/stylesheets/components/summary-list/_summary-list.scss +0 -4
- data/vendor/assets/stylesheets/components/table/_table.scss +0 -4
- data/vendor/assets/stylesheets/components/tabs/_tabs.scss +0 -4
- data/vendor/assets/stylesheets/components/tag/_tag.scss +0 -4
- data/vendor/assets/stylesheets/components/task-list/_task-list.scss +0 -4
- data/vendor/assets/stylesheets/components/textarea/_textarea.scss +0 -4
- data/vendor/assets/stylesheets/components/warning-text/_warning-text.scss +0 -4
- data/vendor/assets/stylesheets/core/_all.scss +0 -10
- data/vendor/assets/stylesheets/core/_govuk-frontend-properties.scss +0 -12
- data/vendor/assets/stylesheets/helpers/_all.scss +0 -10
- data/vendor/assets/stylesheets/helpers/_font-faces.scss +0 -41
- data/vendor/assets/stylesheets/objects/_all.scss +0 -10
- data/vendor/assets/stylesheets/overrides/_all.scss +0 -9
- data/vendor/assets/stylesheets/settings/_all.scss +0 -10
- data/vendor/assets/stylesheets/settings/_colours-applied.scss +0 -195
- data/vendor/assets/stylesheets/settings/_colours-palette.scss +0 -37
- data/vendor/assets/stylesheets/tools/_all.scss +0 -10
- data/vendor/assets/stylesheets/tools/_rebrand.scss +0 -65
- data/vendor/assets/stylesheets/utilities/_all.scss +0 -10
- data/vendor/assets/stylesheets/vendor/_sass-mq.scss +0 -349
- /data/node_modules/govuk-frontend/dist/govuk/components/date-input/{template-complete-question.html → template-with-items.html} +0 -0
- /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head-and-caption.html → template-with-head-and-caption.html} +0 -0
- /data/node_modules/govuk-frontend/dist/govuk/components/table/{template-table-with-head.html → template-with-head.html} +0 -0
- /data/node_modules/govuk-frontend/dist/govuk/components/task-list/{template-example-with-very-long-single-word-tags.html → template-with-very-long-single-word-tags.html} +0 -0
|
@@ -1,70 +1,63 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"name": "element",
|
|
4
|
-
"type": "string",
|
|
5
|
-
"required": false,
|
|
6
|
-
"description": "HTML element for the button component – `input`, `button` or `a`. In most cases you will not need to set this as it will be configured automatically if `href` is provided.",
|
|
7
|
-
"deprecated": "5.1.0"
|
|
8
|
-
},
|
|
9
2
|
{
|
|
10
3
|
"name": "text",
|
|
11
4
|
"type": "string",
|
|
12
5
|
"required": true,
|
|
13
|
-
"description": "If `html` is set, this is not required. Text for the
|
|
6
|
+
"description": "If `html` is set, this is not required. Text for the button. If `html` is provided, the `text` option will be ignored."
|
|
14
7
|
},
|
|
15
8
|
{
|
|
16
9
|
"name": "html",
|
|
17
10
|
"type": "string",
|
|
18
11
|
"required": true,
|
|
19
|
-
"description": "If `text` is set, this is not required. HTML for the
|
|
12
|
+
"description": "If `text` is set, this is not required. HTML for the button. If `html` is provided, the `text` option will be ignored."
|
|
20
13
|
},
|
|
21
14
|
{
|
|
22
|
-
"name": "
|
|
15
|
+
"name": "type",
|
|
23
16
|
"type": "string",
|
|
24
17
|
"required": false,
|
|
25
|
-
"description": "
|
|
18
|
+
"description": "Type of the button, determining its behaviour in forms – `\"button\"`, `\"submit\"` or `\"reset\"`. Defaults to `\"submit\"`. This has no effect if `href` is set."
|
|
26
19
|
},
|
|
27
20
|
{
|
|
28
|
-
"name": "
|
|
21
|
+
"name": "name",
|
|
29
22
|
"type": "string",
|
|
30
23
|
"required": false,
|
|
31
|
-
"description": "
|
|
24
|
+
"description": "Name of the button, sent when a form is submitted. This has no effect if `href` is set."
|
|
32
25
|
},
|
|
33
26
|
{
|
|
34
27
|
"name": "value",
|
|
35
28
|
"type": "string",
|
|
36
29
|
"required": false,
|
|
37
|
-
"description": "Value
|
|
30
|
+
"description": "Value of the button, sent when a form is submitted. This has no effect if `href` is set."
|
|
38
31
|
},
|
|
39
32
|
{
|
|
40
33
|
"name": "disabled",
|
|
41
34
|
"type": "boolean",
|
|
42
35
|
"required": false,
|
|
43
|
-
"description": "Whether the button
|
|
36
|
+
"description": "Whether the button should be disabled. `disabled` and `aria-disabled` attributes will be set automatically. This has no effect if `href` is set."
|
|
44
37
|
},
|
|
45
38
|
{
|
|
46
39
|
"name": "href",
|
|
47
40
|
"type": "string",
|
|
48
41
|
"required": false,
|
|
49
|
-
"description": "The URL that the button
|
|
42
|
+
"description": "The URL that the button should link to."
|
|
50
43
|
},
|
|
51
44
|
{
|
|
52
45
|
"name": "classes",
|
|
53
46
|
"type": "string",
|
|
54
47
|
"required": false,
|
|
55
|
-
"description": "Classes to add to the button
|
|
48
|
+
"description": "Classes to add to the button."
|
|
56
49
|
},
|
|
57
50
|
{
|
|
58
51
|
"name": "attributes",
|
|
59
52
|
"type": "object",
|
|
60
53
|
"required": false,
|
|
61
|
-
"description": "HTML attributes (for example data attributes) to add to the button
|
|
54
|
+
"description": "HTML attributes (for example data attributes) to add to the button."
|
|
62
55
|
},
|
|
63
56
|
{
|
|
64
57
|
"name": "preventDoubleClick",
|
|
65
58
|
"type": "boolean",
|
|
66
59
|
"required": false,
|
|
67
|
-
"description": "Prevent accidental double clicks on submit buttons from submitting forms multiple times."
|
|
60
|
+
"description": "Prevent accidental double clicks on submit buttons from submitting forms multiple times. This has no effect if `href` is set."
|
|
68
61
|
},
|
|
69
62
|
{
|
|
70
63
|
"name": "isStartButton",
|
|
@@ -11,17 +11,6 @@
|
|
|
11
11
|
{% set classNames = classNames + " govuk-button--start" %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
|
|
14
|
-
{#- Determine type of element to use, if not explicitly set #}
|
|
15
|
-
{%- if params.element %}
|
|
16
|
-
{% set element = params.element | lower %}
|
|
17
|
-
{% else %}
|
|
18
|
-
{% if params.href %}
|
|
19
|
-
{% set element = 'a' %}
|
|
20
|
-
{% else %}
|
|
21
|
-
{% set element = 'button' %}
|
|
22
|
-
{% endif %}
|
|
23
|
-
{% endif -%}
|
|
24
|
-
|
|
25
14
|
{%- macro _startIcon() %}
|
|
26
15
|
{#- The SVG needs `focusable="false"` so that Internet Explorer does not
|
|
27
16
|
treat it as an interactive element - without this it will be
|
|
@@ -35,24 +24,35 @@
|
|
|
35
24
|
|
|
36
25
|
{%- set commonAttributes %} class="{{ classNames }}" data-module="govuk-button" {{- govukAttributes(params.attributes) -}} {% if params.id %} id="{{ params.id }}"{% endif %}{% endset %}
|
|
37
26
|
|
|
38
|
-
{#-
|
|
27
|
+
{#- Wrap content of the button in a <span> if it's a start button with HTML.
|
|
28
|
+
Start buttons use flexbox, which removes whitespace from between HTML elements
|
|
29
|
+
inside of them. -#}
|
|
39
30
|
|
|
40
|
-
{%- set
|
|
31
|
+
{%- set buttonText %}
|
|
32
|
+
{%- if params.html and params.isStartButton -%}
|
|
33
|
+
<span>{{ params.html | safe | trim }}</span>
|
|
34
|
+
{%- else -%}
|
|
35
|
+
{{- (params.html | safe | trim) if params.html else params.text -}}
|
|
36
|
+
{%- endif %}
|
|
37
|
+
{%- endset %}
|
|
41
38
|
|
|
42
39
|
{#- Actually create a button... or a link! #}
|
|
43
40
|
|
|
44
|
-
{%- if
|
|
41
|
+
{%- if params.href %}
|
|
45
42
|
<a href="{{ params.href if params.href else '#' }}" role="button" draggable="false" {{- commonAttributes | safe }}>
|
|
46
|
-
{{
|
|
43
|
+
{{ buttonText | safe | indent(2) }}
|
|
47
44
|
{{- _startIcon() | safe if params.isStartButton }}
|
|
48
45
|
</a>
|
|
49
46
|
|
|
50
|
-
{%-
|
|
51
|
-
<button
|
|
52
|
-
{
|
|
47
|
+
{%- else %}
|
|
48
|
+
<button type="{{ params.type if params.type else 'submit' }}"
|
|
49
|
+
{%- if params.value %} value="{{ params.value }}"{% endif %}
|
|
50
|
+
{%- if params.name %} name="{{ params.name }}"{% endif %}
|
|
51
|
+
{%- if params.disabled %} disabled aria-disabled="true"{% endif %}
|
|
52
|
+
{%- if params.preventDoubleClick !== undefined %} data-prevent-double-click="{{ params.preventDoubleClick }}"{% endif %}
|
|
53
|
+
{{- commonAttributes | safe }}>
|
|
54
|
+
{{ buttonText | safe | indent(2) }}
|
|
53
55
|
{{- _startIcon() | safe if params.isStartButton }}
|
|
54
56
|
</button>
|
|
55
57
|
|
|
56
|
-
{%- elseif element == 'input' %}
|
|
57
|
-
<input value="{{ params.text }}" type="{{ params.type if params.type else 'submit' }}" {{- buttonAttributes | safe }} {{- commonAttributes | safe }}>
|
|
58
58
|
{%- endif %}
|
|
@@ -1,44 +1,9 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@use "../../custom-properties";
|
|
2
|
+
@use "mixin";
|
|
3
|
+
@use "../error-message";
|
|
4
|
+
@use "../hint";
|
|
5
|
+
@use "../label";
|
|
6
|
+
@use "../textarea";
|
|
5
7
|
|
|
6
|
-
@include
|
|
7
|
-
.govuk-character-count {
|
|
8
|
-
@include govuk-responsive-margin(6, "bottom");
|
|
8
|
+
@include mixin.styles;
|
|
9
9
|
|
|
10
|
-
.govuk-form-group,
|
|
11
|
-
.govuk-textarea {
|
|
12
|
-
margin-bottom: govuk-spacing(1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// If the textarea enters the error state whilst the user is focused on it,
|
|
16
|
-
// show the error state. This presents feedback to the user that the value
|
|
17
|
-
// has become invalid without needing to see the counter.
|
|
18
|
-
.govuk-textarea--error:focus {
|
|
19
|
-
border-color: $govuk-error-colour;
|
|
20
|
-
box-shadow: inset 0 0 0 $govuk-border-width-form-element $govuk-error-colour;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.govuk-character-count__message {
|
|
25
|
-
@include govuk-font-tabular-numbers;
|
|
26
|
-
margin-top: 0;
|
|
27
|
-
margin-bottom: 0;
|
|
28
|
-
|
|
29
|
-
&::after {
|
|
30
|
-
// Zero-width space that will reserve vertical space when no hint is
|
|
31
|
-
// provided as:
|
|
32
|
-
// - setting a min-height is not possible without a magic number because
|
|
33
|
-
// the line-height is set by the `govuk-font` call above
|
|
34
|
-
// - using `:empty` is not possible as the hint macro outputs line breaks
|
|
35
|
-
content: "\200B";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.govuk-character-count__message--disabled {
|
|
40
|
-
visibility: hidden;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use "../../base";
|
|
2
|
+
|
|
3
|
+
/// @access private
|
|
4
|
+
@mixin styles {
|
|
5
|
+
.govuk-character-count {
|
|
6
|
+
@include base.govuk-responsive-margin(6, "bottom");
|
|
7
|
+
|
|
8
|
+
.govuk-form-group,
|
|
9
|
+
.govuk-textarea {
|
|
10
|
+
margin-bottom: base.govuk-spacing(1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// If the textarea enters the error state whilst the user is focused on it,
|
|
14
|
+
// show the error state. This presents feedback to the user that the value
|
|
15
|
+
// has become invalid without needing to see the counter.
|
|
16
|
+
.govuk-textarea--error:focus {
|
|
17
|
+
border-color: base.govuk-functional-colour(error);
|
|
18
|
+
box-shadow: inset 0 0 0 base.$govuk-border-width-form-element base.govuk-functional-colour(error);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.govuk-character-count__message {
|
|
23
|
+
@include base.govuk-font-tabular-numbers;
|
|
24
|
+
margin-top: 0;
|
|
25
|
+
margin-bottom: 0;
|
|
26
|
+
|
|
27
|
+
&::after {
|
|
28
|
+
// Zero-width space that will reserve vertical space when no hint is
|
|
29
|
+
// provided as:
|
|
30
|
+
// - setting a min-height is not possible without a magic number because
|
|
31
|
+
// the line-height is set by the `govuk-font` call above
|
|
32
|
+
// - using `:empty` is not possible as the hint macro outputs line breaks
|
|
33
|
+
content: "\200B";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.govuk-character-count__message--disabled {
|
|
38
|
+
visibility: hidden;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js
CHANGED
|
@@ -41,9 +41,6 @@
|
|
|
41
41
|
* @typedef ComponentWithModuleName
|
|
42
42
|
* @property {string} moduleName - Name of the component
|
|
43
43
|
*/
|
|
44
|
-
/**
|
|
45
|
-
* @import { ObjectNested } from './configuration.mjs'
|
|
46
|
-
*/
|
|
47
44
|
|
|
48
45
|
class GOVUKFrontendError extends Error {
|
|
49
46
|
constructor(...args) {
|
|
@@ -72,7 +69,7 @@
|
|
|
72
69
|
class ElementError extends GOVUKFrontendError {
|
|
73
70
|
constructor(messageOrOptions) {
|
|
74
71
|
let message = typeof messageOrOptions === 'string' ? messageOrOptions : '';
|
|
75
|
-
if (
|
|
72
|
+
if (isObject(messageOrOptions)) {
|
|
76
73
|
const {
|
|
77
74
|
component,
|
|
78
75
|
identifier,
|
|
@@ -81,7 +78,9 @@
|
|
|
81
78
|
} = messageOrOptions;
|
|
82
79
|
message = identifier;
|
|
83
80
|
message += element ? ` is not of type ${expectedType != null ? expectedType : 'HTMLElement'}` : ' not found';
|
|
84
|
-
|
|
81
|
+
if (component) {
|
|
82
|
+
message = formatErrorMessage(component, message);
|
|
83
|
+
}
|
|
85
84
|
}
|
|
86
85
|
super(message);
|
|
87
86
|
this.name = 'ElementError';
|
|
@@ -315,6 +314,9 @@
|
|
|
315
314
|
* @template {Partial<Record<keyof ConfigurationType, unknown>>} [ConfigurationType=ObjectNested]
|
|
316
315
|
* @typedef {typeof Component & ChildClass<ConfigurationType>} ChildClassConstructor<ConfigurationType>
|
|
317
316
|
*/
|
|
317
|
+
/**
|
|
318
|
+
* @import { CompatibleClass, Config, CreateAllOptions, OnErrorCallback } from '../init.mjs'
|
|
319
|
+
*/
|
|
318
320
|
|
|
319
321
|
class I18n {
|
|
320
322
|
constructor(translations = {}, config = {}) {
|
|
@@ -329,7 +331,7 @@
|
|
|
329
331
|
throw new Error('i18n: lookup key missing');
|
|
330
332
|
}
|
|
331
333
|
let translation = this.translations[lookupKey];
|
|
332
|
-
if (typeof (options == null ? void 0 : options.count) === 'number' &&
|
|
334
|
+
if (typeof (options == null ? void 0 : options.count) === 'number' && isObject(translation)) {
|
|
333
335
|
const translationPluralForm = translation[this.getPluralSuffix(lookupKey, options.count)];
|
|
334
336
|
if (translationPluralForm) {
|
|
335
337
|
translation = translationPluralForm;
|
|
@@ -371,8 +373,8 @@
|
|
|
371
373
|
return 'other';
|
|
372
374
|
}
|
|
373
375
|
const translation = this.translations[lookupKey];
|
|
374
|
-
const preferredForm = this.hasIntlPluralRulesSupport() ? new Intl.PluralRules(this.locale).select(count) :
|
|
375
|
-
if (
|
|
376
|
+
const preferredForm = this.hasIntlPluralRulesSupport() ? new Intl.PluralRules(this.locale).select(count) : 'other';
|
|
377
|
+
if (isObject(translation)) {
|
|
376
378
|
if (preferredForm in translation) {
|
|
377
379
|
return preferredForm;
|
|
378
380
|
} else if ('other' in translation) {
|
|
@@ -382,132 +384,7 @@
|
|
|
382
384
|
}
|
|
383
385
|
throw new Error(`i18n: Plural form ".other" is required for "${this.locale}" locale`);
|
|
384
386
|
}
|
|
385
|
-
selectPluralFormUsingFallbackRules(count) {
|
|
386
|
-
count = Math.abs(Math.floor(count));
|
|
387
|
-
const ruleset = this.getPluralRulesForLocale();
|
|
388
|
-
if (ruleset) {
|
|
389
|
-
return I18n.pluralRules[ruleset](count);
|
|
390
|
-
}
|
|
391
|
-
return 'other';
|
|
392
|
-
}
|
|
393
|
-
getPluralRulesForLocale() {
|
|
394
|
-
const localeShort = this.locale.split('-')[0];
|
|
395
|
-
for (const pluralRule in I18n.pluralRulesMap) {
|
|
396
|
-
const languages = I18n.pluralRulesMap[pluralRule];
|
|
397
|
-
if (languages.includes(this.locale) || languages.includes(localeShort)) {
|
|
398
|
-
return pluralRule;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
387
|
}
|
|
403
|
-
I18n.pluralRulesMap = {
|
|
404
|
-
arabic: ['ar'],
|
|
405
|
-
chinese: ['my', 'zh', 'id', 'ja', 'jv', 'ko', 'ms', 'th', 'vi'],
|
|
406
|
-
french: ['hy', 'bn', 'fr', 'gu', 'hi', 'fa', 'pa', 'zu'],
|
|
407
|
-
german: ['af', 'sq', 'az', 'eu', 'bg', 'ca', 'da', 'nl', 'en', 'et', 'fi', 'ka', 'de', 'el', 'hu', 'lb', 'no', 'so', 'sw', 'sv', 'ta', 'te', 'tr', 'ur'],
|
|
408
|
-
irish: ['ga'],
|
|
409
|
-
russian: ['ru', 'uk'],
|
|
410
|
-
scottish: ['gd'],
|
|
411
|
-
spanish: ['pt-PT', 'it', 'es'],
|
|
412
|
-
welsh: ['cy']
|
|
413
|
-
};
|
|
414
|
-
I18n.pluralRules = {
|
|
415
|
-
arabic(n) {
|
|
416
|
-
if (n === 0) {
|
|
417
|
-
return 'zero';
|
|
418
|
-
}
|
|
419
|
-
if (n === 1) {
|
|
420
|
-
return 'one';
|
|
421
|
-
}
|
|
422
|
-
if (n === 2) {
|
|
423
|
-
return 'two';
|
|
424
|
-
}
|
|
425
|
-
if (n % 100 >= 3 && n % 100 <= 10) {
|
|
426
|
-
return 'few';
|
|
427
|
-
}
|
|
428
|
-
if (n % 100 >= 11 && n % 100 <= 99) {
|
|
429
|
-
return 'many';
|
|
430
|
-
}
|
|
431
|
-
return 'other';
|
|
432
|
-
},
|
|
433
|
-
chinese() {
|
|
434
|
-
return 'other';
|
|
435
|
-
},
|
|
436
|
-
french(n) {
|
|
437
|
-
return n === 0 || n === 1 ? 'one' : 'other';
|
|
438
|
-
},
|
|
439
|
-
german(n) {
|
|
440
|
-
return n === 1 ? 'one' : 'other';
|
|
441
|
-
},
|
|
442
|
-
irish(n) {
|
|
443
|
-
if (n === 1) {
|
|
444
|
-
return 'one';
|
|
445
|
-
}
|
|
446
|
-
if (n === 2) {
|
|
447
|
-
return 'two';
|
|
448
|
-
}
|
|
449
|
-
if (n >= 3 && n <= 6) {
|
|
450
|
-
return 'few';
|
|
451
|
-
}
|
|
452
|
-
if (n >= 7 && n <= 10) {
|
|
453
|
-
return 'many';
|
|
454
|
-
}
|
|
455
|
-
return 'other';
|
|
456
|
-
},
|
|
457
|
-
russian(n) {
|
|
458
|
-
const lastTwo = n % 100;
|
|
459
|
-
const last = lastTwo % 10;
|
|
460
|
-
if (last === 1 && lastTwo !== 11) {
|
|
461
|
-
return 'one';
|
|
462
|
-
}
|
|
463
|
-
if (last >= 2 && last <= 4 && !(lastTwo >= 12 && lastTwo <= 14)) {
|
|
464
|
-
return 'few';
|
|
465
|
-
}
|
|
466
|
-
if (last === 0 || last >= 5 && last <= 9 || lastTwo >= 11 && lastTwo <= 14) {
|
|
467
|
-
return 'many';
|
|
468
|
-
}
|
|
469
|
-
return 'other';
|
|
470
|
-
},
|
|
471
|
-
scottish(n) {
|
|
472
|
-
if (n === 1 || n === 11) {
|
|
473
|
-
return 'one';
|
|
474
|
-
}
|
|
475
|
-
if (n === 2 || n === 12) {
|
|
476
|
-
return 'two';
|
|
477
|
-
}
|
|
478
|
-
if (n >= 3 && n <= 10 || n >= 13 && n <= 19) {
|
|
479
|
-
return 'few';
|
|
480
|
-
}
|
|
481
|
-
return 'other';
|
|
482
|
-
},
|
|
483
|
-
spanish(n) {
|
|
484
|
-
if (n === 1) {
|
|
485
|
-
return 'one';
|
|
486
|
-
}
|
|
487
|
-
if (n % 1000000 === 0 && n !== 0) {
|
|
488
|
-
return 'many';
|
|
489
|
-
}
|
|
490
|
-
return 'other';
|
|
491
|
-
},
|
|
492
|
-
welsh(n) {
|
|
493
|
-
if (n === 0) {
|
|
494
|
-
return 'zero';
|
|
495
|
-
}
|
|
496
|
-
if (n === 1) {
|
|
497
|
-
return 'one';
|
|
498
|
-
}
|
|
499
|
-
if (n === 2) {
|
|
500
|
-
return 'two';
|
|
501
|
-
}
|
|
502
|
-
if (n === 3) {
|
|
503
|
-
return 'few';
|
|
504
|
-
}
|
|
505
|
-
if (n === 6) {
|
|
506
|
-
return 'many';
|
|
507
|
-
}
|
|
508
|
-
return 'other';
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
388
|
|
|
512
389
|
/**
|
|
513
390
|
* Character count component
|
|
@@ -542,6 +419,7 @@
|
|
|
542
419
|
var _ref, _this$config$maxwords;
|
|
543
420
|
super($root, config);
|
|
544
421
|
this.$textarea = void 0;
|
|
422
|
+
this.count = 0;
|
|
545
423
|
this.$visibleCountMessage = void 0;
|
|
546
424
|
this.$screenReaderCountMessage = void 0;
|
|
547
425
|
this.lastInputTimestamp = null;
|
|
@@ -577,7 +455,7 @@
|
|
|
577
455
|
});
|
|
578
456
|
}
|
|
579
457
|
this.$errorMessage = this.$root.querySelector('.govuk-error-message');
|
|
580
|
-
if (
|
|
458
|
+
if ($textareaDescription.textContent.match(/^\s*$/)) {
|
|
581
459
|
$textareaDescription.textContent = this.i18n.t('textareaDescription', {
|
|
582
460
|
count: this.maxLength
|
|
583
461
|
});
|
|
@@ -597,15 +475,22 @@
|
|
|
597
475
|
$textareaDescription.classList.add('govuk-visually-hidden');
|
|
598
476
|
this.$textarea.removeAttribute('maxlength');
|
|
599
477
|
this.bindChangeEvents();
|
|
600
|
-
window.addEventListener('pageshow', () =>
|
|
478
|
+
window.addEventListener('pageshow', () => {
|
|
479
|
+
if (this.$textarea.value !== this.$textarea.textContent) {
|
|
480
|
+
this.updateCount();
|
|
481
|
+
this.updateCountMessage();
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
this.updateCount();
|
|
601
485
|
this.updateCountMessage();
|
|
602
486
|
}
|
|
603
487
|
bindChangeEvents() {
|
|
604
|
-
this.$textarea.addEventListener('
|
|
488
|
+
this.$textarea.addEventListener('input', () => this.handleInput());
|
|
605
489
|
this.$textarea.addEventListener('focus', () => this.handleFocus());
|
|
606
490
|
this.$textarea.addEventListener('blur', () => this.handleBlur());
|
|
607
491
|
}
|
|
608
|
-
|
|
492
|
+
handleInput() {
|
|
493
|
+
this.updateCount();
|
|
609
494
|
this.updateVisibleCountMessage();
|
|
610
495
|
this.lastInputTimestamp = Date.now();
|
|
611
496
|
}
|
|
@@ -632,7 +517,7 @@
|
|
|
632
517
|
this.updateScreenReaderCountMessage();
|
|
633
518
|
}
|
|
634
519
|
updateVisibleCountMessage() {
|
|
635
|
-
const remainingNumber = this.maxLength - this.count
|
|
520
|
+
const remainingNumber = this.maxLength - this.count;
|
|
636
521
|
const isError = remainingNumber < 0;
|
|
637
522
|
this.$visibleCountMessage.classList.toggle('govuk-character-count__message--disabled', !this.isOverThreshold());
|
|
638
523
|
if (!this.$errorMessage) {
|
|
@@ -650,16 +535,18 @@
|
|
|
650
535
|
}
|
|
651
536
|
this.$screenReaderCountMessage.textContent = this.getCountMessage();
|
|
652
537
|
}
|
|
653
|
-
|
|
538
|
+
updateCount() {
|
|
539
|
+
const text = this.$textarea.value;
|
|
654
540
|
if (this.config.maxwords) {
|
|
655
541
|
var _text$match;
|
|
656
542
|
const tokens = (_text$match = text.match(/\S+/g)) != null ? _text$match : [];
|
|
657
|
-
|
|
543
|
+
this.count = tokens.length;
|
|
544
|
+
return;
|
|
658
545
|
}
|
|
659
|
-
|
|
546
|
+
this.count = text.length;
|
|
660
547
|
}
|
|
661
548
|
getCountMessage() {
|
|
662
|
-
const remainingNumber = this.maxLength - this.count
|
|
549
|
+
const remainingNumber = this.maxLength - this.count;
|
|
663
550
|
const countType = this.config.maxwords ? 'words' : 'characters';
|
|
664
551
|
return this.formatCountMessage(remainingNumber, countType);
|
|
665
552
|
}
|
|
@@ -676,7 +563,7 @@
|
|
|
676
563
|
if (!this.config.threshold) {
|
|
677
564
|
return true;
|
|
678
565
|
}
|
|
679
|
-
const currentLength = this.count
|
|
566
|
+
const currentLength = this.count;
|
|
680
567
|
const maxLength = this.maxLength;
|
|
681
568
|
const thresholdValue = maxLength * this.config.threshold / 100;
|
|
682
569
|
return thresholdValue <= currentLength;
|