defra_ruby_template 5.11.1 → 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 +108 -60
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.mjs","sources":["../../../../src/govuk/components/file-upload/file-upload.mjs"],"sourcesContent":["import { closestAttributeValue } from '../../common/closest-attribute-value.mjs'\nimport { ConfigurableComponent } from '../../common/configuration.mjs'\nimport { formatErrorMessage } from '../../common/index.mjs'\nimport { ElementError } from '../../errors/index.mjs'\nimport { I18n } from '../../i18n.mjs'\n\n/**\n * File upload component\n *\n * @preserve\n * @augments ConfigurableComponent<FileUploadConfig>\n */\nexport class FileUpload extends ConfigurableComponent {\n /**\n * @private\n * @type {HTMLFileInputElement}\n */\n $input\n\n /**\n * @private\n */\n $button\n\n /**\n * @private\n */\n $status\n\n /** @private */\n i18n\n\n /** @private */\n id\n\n /** @private */\n $announcements\n\n /**\n * @private\n * @type {boolean | undefined}\n */\n enteredAnotherElement\n\n /**\n * @param {Element | null} $root - File input element\n * @param {FileUploadConfig} [config] - File Upload config\n */\n constructor($root, config = {}) {\n super($root, config)\n\n const $input = this.$root.querySelector('input')\n\n if ($input === null) {\n throw new ElementError({\n component: FileUpload,\n identifier: 'File inputs (`<input type=\"file\">`)'\n })\n }\n\n if ($input.type !== 'file') {\n throw new ElementError(\n formatErrorMessage(\n FileUpload,\n 'File input (`<input type=\"file\">`) attribute (`type`) is not `file`'\n )\n )\n }\n\n this.$input = /** @type {HTMLFileInputElement} */ ($input)\n this.$input.setAttribute('hidden', 'true')\n\n if (!this.$input.id) {\n throw new ElementError({\n component: FileUpload,\n identifier: 'File input (`<input type=\"file\">`) attribute (`id`)'\n })\n }\n\n this.id = this.$input.id\n\n this.i18n = new I18n(this.config.i18n, {\n // Read the fallback if necessary rather than have it set in the defaults\n locale: closestAttributeValue(this.$root, 'lang')\n })\n\n const $label = this.findLabel()\n // Add an ID to the label if it doesn't have one already\n // so it can be referenced by `aria-labelledby`\n if (!$label.id) {\n $label.id = `${this.id}-label`\n }\n\n // we need to copy the 'id' of the root element\n // to the new button replacement element\n // so that focus will work in the error summary\n this.$input.id = `${this.id}-input`\n\n // Create the file selection button\n const $button = document.createElement('button')\n $button.classList.add('govuk-file-upload-button')\n $button.type = 'button'\n $button.id = this.id\n $button.classList.add('govuk-file-upload-button--empty')\n\n // Copy `aria-describedby` if present so hints and errors\n // are associated to the `<button>`\n const ariaDescribedBy = this.$input.getAttribute('aria-describedby')\n if (ariaDescribedBy) {\n $button.setAttribute('aria-describedby', ariaDescribedBy)\n }\n\n // Create status element that shows what/how many files are selected\n const $status = document.createElement('span')\n $status.className = 'govuk-body govuk-file-upload-button__status'\n $status.setAttribute('aria-live', 'polite')\n $status.innerText = this.i18n.t('noFileChosen')\n\n $button.appendChild($status)\n\n const commaSpan = document.createElement('span')\n commaSpan.className = 'govuk-visually-hidden'\n commaSpan.innerText = ', '\n commaSpan.id = `${this.id}-comma`\n\n $button.appendChild(commaSpan)\n\n const containerSpan = document.createElement('span')\n containerSpan.className =\n 'govuk-file-upload-button__pseudo-button-container'\n\n const buttonSpan = document.createElement('span')\n buttonSpan.className =\n 'govuk-button govuk-button--secondary govuk-file-upload-button__pseudo-button'\n buttonSpan.innerText = this.i18n.t('chooseFilesButton')\n\n containerSpan.appendChild(buttonSpan)\n\n // Add a space so the button and instruction read correctly\n // when CSS is disabled\n containerSpan.insertAdjacentText('beforeend', ' ')\n\n const instructionSpan = document.createElement('span')\n instructionSpan.className =\n 'govuk-body govuk-file-upload-button__instruction'\n instructionSpan.innerText = this.i18n.t('dropInstruction')\n\n containerSpan.appendChild(instructionSpan)\n\n $button.appendChild(containerSpan)\n $button.setAttribute(\n 'aria-labelledby',\n `${$label.id} ${commaSpan.id} ${$button.id}`\n )\n $button.addEventListener('click', this.onClick.bind(this))\n $button.addEventListener('dragover', (event) => {\n // prevent default to allow drop\n event.preventDefault()\n })\n\n // Assemble these all together\n this.$root.insertAdjacentElement('afterbegin', $button)\n\n this.$input.setAttribute('tabindex', '-1')\n this.$input.setAttribute('aria-hidden', 'true')\n\n // Make all these new variables available to the module\n this.$button = $button\n this.$status = $status\n\n // Bind change event to the underlying input\n this.$input.addEventListener('change', this.onChange.bind(this))\n\n // Synchronise the `disabled` state between the button and underlying input\n this.updateDisabledState()\n this.observeDisabledState()\n\n // Handle drop zone visibility\n // A live region to announce when users enter or leave the drop zone\n this.$announcements = document.createElement('span')\n this.$announcements.classList.add('govuk-file-upload-announcements')\n this.$announcements.classList.add('govuk-visually-hidden')\n this.$announcements.setAttribute('aria-live', 'assertive')\n this.$root.insertAdjacentElement('afterend', this.$announcements)\n\n // if there is no CSS and input is hidden\n // button will need to handle drop event\n this.$button.addEventListener('drop', this.onDrop.bind(this))\n\n // While user is dragging, it gets a little more complex because of Safari.\n // Safari doesn't fill `relatedTarget` on `dragleave` (nor `dragenter`).\n // This means we can't use `relatedTarget` to:\n // - check if the user is still within the wrapper\n // (`relatedTarget` being a descendant of the wrapper)\n // - check if the user is still over the viewport\n // (`relatedTarget` being null if outside)\n\n // Thanks to `dragenter` bubbling, we can listen on the `document` with a\n // single function and update the visibility based on whether we entered a\n // node inside or outside the wrapper.\n document.addEventListener(\n 'dragenter',\n this.updateDropzoneVisibility.bind(this)\n )\n\n // To detect if we're outside the document, we can track if there was a\n // `dragenter` event preceding a `dragleave`. If there wasn't, this means\n // we're outside the document.\n //\n // The order of events is guaranteed by the HTML specs:\n // https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model\n document.addEventListener('dragenter', () => {\n this.enteredAnotherElement = true\n })\n\n document.addEventListener('dragleave', () => {\n if (!this.enteredAnotherElement && !this.$button.disabled) {\n this.hideDraggingState()\n this.$announcements.innerText = this.i18n.t('leftDropZone')\n }\n\n this.enteredAnotherElement = false\n })\n }\n\n /**\n * Updates the visibility of the dropzone as users enters the various elements on the page\n *\n * @private\n * @param {DragEvent} event - The `dragenter` event\n */\n updateDropzoneVisibility(event) {\n if (this.$button.disabled) return\n\n // DOM interfaces only type `event.target` as `EventTarget`\n // so we first need to make sure it's a `Node`\n if (event.target instanceof Node) {\n if (this.$root.contains(event.target)) {\n if (event.dataTransfer && isContainingFiles(event.dataTransfer)) {\n // Only update the class and make the announcement if not already visible\n // to avoid repeated announcements on NVDA (2024.4) + Firefox (133)\n if (\n !this.$button.classList.contains(\n 'govuk-file-upload-button--dragging'\n )\n ) {\n this.showDraggingState()\n this.$announcements.innerText = this.i18n.t('enteredDropZone')\n }\n }\n } else {\n // Only hide the dropzone if it is visible to prevent announcing user\n // left the drop zone when they enter the page but haven't reached yet\n // the file upload component\n if (\n this.$button.classList.contains('govuk-file-upload-button--dragging')\n ) {\n this.hideDraggingState()\n this.$announcements.innerText = this.i18n.t('leftDropZone')\n }\n }\n }\n }\n\n /**\n * Show the drop zone visually\n *\n * @private\n */\n showDraggingState() {\n this.$button.classList.add('govuk-file-upload-button--dragging')\n }\n\n /**\n * Hides the drop zone visually\n *\n * @private\n */\n hideDraggingState() {\n this.$button.classList.remove('govuk-file-upload-button--dragging')\n }\n\n /**\n * Handles user dropping on the component\n *\n * @private\n * @param {DragEvent} event - The `dragenter` event\n */\n onDrop(event) {\n event.preventDefault()\n\n if (event.dataTransfer && isContainingFiles(event.dataTransfer)) {\n this.$input.files = event.dataTransfer.files\n\n // Dispatch a `change` event so external code that would rely on the `<input>`\n // dispatching an event when files are dropped still work.\n // Use a `CustomEvent` so our events are distinguishable from browser's native events\n this.$input.dispatchEvent(new CustomEvent('change'))\n\n this.hideDraggingState()\n }\n }\n\n /**\n * Check if the value of the underlying input has changed\n *\n * @private\n */\n onChange() {\n const fileCount = this.$input.files.length\n\n if (fileCount === 0) {\n // If there are no files, show the default selection text\n this.$status.innerText = this.i18n.t('noFileChosen')\n this.$button.classList.add('govuk-file-upload-button--empty')\n } else {\n if (\n // If there is 1 file, just show the file name\n fileCount === 1\n ) {\n this.$status.innerText = this.$input.files[0].name\n } else {\n // Otherwise, tell the user how many files are selected\n this.$status.innerText = this.i18n.t('multipleFilesChosen', {\n count: fileCount\n })\n }\n\n this.$button.classList.remove('govuk-file-upload-button--empty')\n }\n }\n\n /**\n * Looks up the `<label>` element associated to the field\n *\n * @private\n * @returns {HTMLElement} The `<label>` element associated to the field\n * @throws {ElementError} If the `<label>` cannot be found\n */\n findLabel() {\n // Use `label` in the selector so TypeScript knows the type fo `HTMLElement`\n const $label = document.querySelector(`label[for=\"${this.$input.id}\"]`)\n\n if (!$label) {\n throw new ElementError({\n component: FileUpload,\n identifier: `Field label (\\`<label for=${this.$input.id}>\\`)`\n })\n }\n\n return $label\n }\n\n /**\n * When the button is clicked, emulate clicking the actual, hidden file input\n *\n * @private\n */\n onClick() {\n this.$input.click()\n }\n\n /**\n * Create a mutation observer to check if the input's attributes altered.\n *\n * @private\n */\n observeDisabledState() {\n const observer = new MutationObserver((mutationList) => {\n for (const mutation of mutationList) {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'disabled'\n ) {\n this.updateDisabledState()\n }\n }\n })\n\n observer.observe(this.$input, {\n attributes: true\n })\n }\n\n /**\n * Synchronise the `disabled` state between the input and replacement button.\n *\n * @private\n */\n updateDisabledState() {\n this.$button.disabled = this.$input.disabled\n\n this.$root.classList.toggle(\n 'govuk-drop-zone--disabled',\n this.$button.disabled\n )\n }\n\n /**\n * Name for the component used when initialising using data-module attributes.\n */\n static moduleName = 'govuk-file-upload'\n\n /**\n * File upload default config\n *\n * @see {@link FileUploadConfig}\n * @constant\n * @type {FileUploadConfig}\n */\n static defaults = Object.freeze({\n i18n: {\n chooseFilesButton: 'Choose file',\n dropInstruction: 'or drop file',\n noFileChosen: 'No file chosen',\n multipleFilesChosen: {\n // the 'one' string isn't used as the component displays the filename\n // instead, however it's here for coverage's sake\n one: '%{count} file chosen',\n other: '%{count} files chosen'\n },\n enteredDropZone: 'Entered drop zone',\n leftDropZone: 'Left drop zone'\n }\n })\n\n /**\n * File upload config schema\n *\n * @constant\n * @satisfies {Schema<FileUploadConfig>}\n */\n static schema = Object.freeze({\n properties: {\n i18n: { type: 'object' }\n }\n })\n}\n\n/**\n * Checks if the given `DataTransfer` contains files\n *\n * @internal\n * @param {DataTransfer} dataTransfer - The `DataTransfer` to check\n * @returns {boolean} - `true` if it contains files or we can't infer it, `false` otherwise\n */\nfunction isContainingFiles(dataTransfer) {\n // Safari sometimes does not provide info about types :'(\n // In which case best not to assume anything and try to set the files\n const hasNoTypesInfo = dataTransfer.types.length === 0\n\n // When dragging images, there's a mix of mime types + Files\n // which we can't assign to the native input\n const isDraggingFiles = dataTransfer.types.some((type) => type === 'Files')\n\n return hasNoTypesInfo || isDraggingFiles\n}\n\n/**\n * @typedef {HTMLInputElement & {files: FileList}} HTMLFileInputElement\n */\n\n/**\n * File upload config\n *\n * @see {@link FileUpload.defaults}\n * @typedef {object} FileUploadConfig\n * @property {FileUploadTranslations} [i18n=FileUpload.defaults.i18n] - File upload translations\n */\n\n/**\n * File upload translations\n *\n * @see {@link FileUpload.defaults.i18n}\n * @typedef {object} FileUploadTranslations\n *\n * Messages used by the component\n * @property {string} [chooseFile] - The text of the button that opens the file picker\n * @property {string} [dropInstruction] - The text informing users they can drop files\n * @property {TranslationPluralForms} [multipleFilesChosen] - The text displayed when multiple files\n * have been chosen by the user\n * @property {string} [noFileChosen] - The text to displayed when no file has been chosen by the user\n * @property {string} [enteredDropZone] - The text announced by assistive technology\n * when user drags files and enters the drop zone\n * @property {string} [leftDropZone] - The text announced by assistive technology\n * when user drags files and leaves the drop zone without dropping\n */\n\n/**\n * @import { Schema } from '../../common/configuration.mjs'\n * @import { TranslationPluralForms } from '../../i18n.mjs'\n */\n"],"names":["FileUpload","ConfigurableComponent","constructor","$root","config","$input","$button","$status","i18n","id","$announcements","enteredAnotherElement","querySelector","ElementError","component","identifier","type","formatErrorMessage","setAttribute","I18n","locale","closestAttributeValue","$label","findLabel","document","createElement","classList","add","ariaDescribedBy","getAttribute","className","innerText","t","appendChild","commaSpan","containerSpan","buttonSpan","insertAdjacentText","instructionSpan","addEventListener","onClick","bind","event","preventDefault","insertAdjacentElement","onChange","updateDisabledState","observeDisabledState","onDrop","updateDropzoneVisibility","disabled","hideDraggingState","target","Node","contains","dataTransfer","isContainingFiles","showDraggingState","remove","files","dispatchEvent","CustomEvent","fileCount","length","name","count","click","observer","MutationObserver","mutationList","mutation","attributeName","observe","attributes","toggle","moduleName","defaults","Object","freeze","chooseFilesButton","dropInstruction","noFileChosen","multipleFilesChosen","one","other","enteredDropZone","leftDropZone","schema","properties","hasNoTypesInfo","types","isDraggingFiles","some"],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,UAAU,SAASC,qBAAqB,CAAC;AAgCpD;AACF;AACA;AACA;AACEC,EAAAA,WAAWA,CAACC,KAAK,EAAEC,MAAM,GAAG,EAAE,EAAE;AAC9B,IAAA,KAAK,CAACD,KAAK,EAAEC,MAAM,CAAC;AAAA,IAAA,IAAA,CAhCtBC,MAAM,GAAA,MAAA;AAAA,IAAA,IAAA,CAKNC,OAAO,GAAA,MAAA;AAAA,IAAA,IAAA,CAKPC,OAAO,GAAA,MAAA;AAAA,IAAA,IAAA,CAGPC,IAAI,GAAA,MAAA;AAAA,IAAA,IAAA,CAGJC,EAAE,GAAA,MAAA;AAAA,IAAA,IAAA,CAGFC,cAAc,GAAA,MAAA;AAAA,IAAA,IAAA,CAMdC,qBAAqB,GAAA,MAAA;IASnB,MAAMN,MAAM,GAAG,IAAI,CAACF,KAAK,CAACS,aAAa,CAAC,OAAO,CAAC;IAEhD,IAAIP,MAAM,KAAK,IAAI,EAAE;MACnB,MAAM,IAAIQ,YAAY,CAAC;AACrBC,QAAAA,SAAS,EAAEd,UAAU;AACrBe,QAAAA,UAAU,EAAE;AACd,OAAC,CAAC;AACJ;AAEA,IAAA,IAAIV,MAAM,CAACW,IAAI,KAAK,MAAM,EAAE;MAC1B,MAAM,IAAIH,YAAY,CACpBI,kBAAkB,CAChBjB,UAAU,EACV,qEACF,CACF,CAAC;AACH;IAEA,IAAI,CAACK,MAAM,GAAwCA,MAAO;IAC1D,IAAI,CAACA,MAAM,CAACa,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC;AAE1C,IAAA,IAAI,CAAC,IAAI,CAACb,MAAM,CAACI,EAAE,EAAE;MACnB,MAAM,IAAII,YAAY,CAAC;AACr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A;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;"}
|
|
1
|
+
{"version":3,"file":"file-upload.mjs","sources":["../../../../src/govuk/components/file-upload/file-upload.mjs"],"sourcesContent":["import { closestAttributeValue } from '../../common/closest-attribute-value.mjs'\nimport { ConfigurableComponent } from '../../common/configuration.mjs'\nimport { ElementError } from '../../errors/index.mjs'\nimport { I18n } from '../../i18n.mjs'\n\n/**\n * File upload component\n *\n * @preserve\n * @augments ConfigurableComponent<FileUploadConfig>\n */\nexport class FileUpload extends ConfigurableComponent {\n /**\n * @private\n * @type {HTMLFileInputElement}\n */\n $input\n\n /**\n * @private\n * @type {HTMLButtonElement}\n */\n $button\n\n /**\n * @private\n * @type {HTMLSpanElement}\n */\n $status\n\n /**\n * @private\n * @type {HTMLLabelElement}\n */\n $label\n\n /** @private */\n i18n\n\n /** @private */\n id\n\n /** @private */\n $announcements\n\n /**\n * @private\n * @type {boolean | undefined}\n */\n enteredAnotherElement\n\n /**\n * @param {Element | null} $root - File input element\n * @param {FileUploadConfig} [config] - File Upload config\n */\n constructor($root, config = {}) {\n super($root, config)\n\n const $input = this.$root.querySelector('input[type=\"file\"]')\n\n if ($input === null) {\n throw new ElementError({\n component: FileUpload,\n identifier: 'File inputs (`<input type=\"file\">`)'\n })\n }\n\n this.$input = /** @type {HTMLFileInputElement} */ ($input)\n\n if (!this.$input.id) {\n throw new ElementError({\n component: FileUpload,\n identifier: 'File input (`<input type=\"file\">`) attribute (`id`)'\n })\n }\n\n this.id = this.$input.id\n\n this.i18n = new I18n(this.config.i18n, {\n // Read the fallback if necessary rather than have it set in the defaults\n locale: closestAttributeValue(this.$root, 'lang')\n })\n\n const $label = this.findLabel()\n // Add an ID to the label if it doesn't have one already\n // so it can be referenced by `aria-labelledby`\n if (!$label.id) {\n $label.id = `${this.id}-label`\n }\n this.$label = $label\n\n // we need to copy the 'id' of the root element\n // to the new button replacement element\n // so that focus will work in the error summary\n this.$input.id = `${this.id}-input`\n\n // Hide the native input\n this.$input.setAttribute('hidden', 'hidden')\n\n // Inject status and button HTML\n // $status has to come first as it's used within `createButton()`\n this.$status = this.createStatus()\n this.$button = this.createButton()\n\n // Inject button into component\n this.$root.insertAdjacentElement('afterbegin', this.$button)\n\n // Bind change event to the underlying input\n this.$input.addEventListener('change', this.onChange.bind(this))\n\n // Synchronise the `disabled` state between the button and underlying input\n this.updateDisabledState()\n this.observeDisabledState()\n\n // Handle drop zone visibility\n // A live region to announce when users enter or leave the drop zone\n this.$announcements = document.createElement('span')\n this.$announcements.classList.add('govuk-file-upload-announcements')\n this.$announcements.classList.add('govuk-visually-hidden')\n this.$announcements.setAttribute('aria-live', 'assertive')\n this.$root.insertAdjacentElement('afterend', this.$announcements)\n\n // Bind all of the events relating to drag and drop functionality\n this.bindDraggingEvents()\n }\n\n /**\n * Create status element that shows what/how many files are selected\n *\n * @private\n * @returns {HTMLSpanElement} - the status element\n */\n createStatus() {\n const $status = document.createElement('span')\n $status.className = 'govuk-body govuk-file-upload-button__status'\n $status.setAttribute('aria-live', 'polite')\n $status.innerText = this.i18n.t('noFileChosen')\n\n return $status\n }\n\n /**\n * Assembles the button HTML element.\n *\n * @private\n * @returns {HTMLButtonElement} - the button element\n */\n createButton() {\n // Create the file selection button\n const $button = document.createElement('button')\n $button.classList.add('govuk-file-upload-button')\n $button.type = 'button'\n $button.id = this.id\n $button.classList.add('govuk-file-upload-button--empty')\n\n // Copy `aria-describedby` if present so hints and errors\n // are associated to the `<button>`\n const ariaDescribedBy = this.$input.getAttribute('aria-describedby')\n if (ariaDescribedBy) {\n $button.setAttribute('aria-describedby', ariaDescribedBy)\n }\n\n // Inject status element\n $button.appendChild(this.$status)\n\n const commaSpan = document.createElement('span')\n commaSpan.className = 'govuk-visually-hidden'\n commaSpan.innerText = ', '\n commaSpan.id = `${this.id}-comma`\n\n $button.appendChild(commaSpan)\n\n const containerSpan = document.createElement('span')\n containerSpan.className =\n 'govuk-file-upload-button__pseudo-button-container'\n\n const buttonSpan = document.createElement('span')\n buttonSpan.className =\n 'govuk-button govuk-button--secondary govuk-file-upload-button__pseudo-button'\n buttonSpan.innerText = this.i18n.t('chooseFilesButton')\n\n containerSpan.appendChild(buttonSpan)\n\n // Add a space so the button and instruction read correctly\n // when CSS is disabled\n containerSpan.insertAdjacentText('beforeend', ' ')\n\n const instructionSpan = document.createElement('span')\n instructionSpan.className =\n 'govuk-body govuk-file-upload-button__instruction'\n instructionSpan.innerText = this.i18n.t('dropInstruction')\n\n containerSpan.appendChild(instructionSpan)\n\n $button.appendChild(containerSpan)\n $button.setAttribute(\n 'aria-labelledby',\n `${this.$label.id} ${commaSpan.id} ${$button.id}`\n )\n $button.addEventListener('click', this.onClick.bind(this))\n $button.addEventListener('dragover', (event) => {\n // prevent default to allow drop\n event.preventDefault()\n })\n\n return $button\n }\n\n /**\n * Bind dragging events.\n *\n * @private\n */\n bindDraggingEvents() {\n // if there is no CSS and input is hidden\n // button will need to handle drop event\n this.$button.addEventListener('drop', this.onDrop.bind(this))\n\n // While user is dragging, it gets a little more complex because of Safari.\n // Safari doesn't fill `relatedTarget` on `dragleave` (nor `dragenter`).\n // This means we can't use `relatedTarget` to:\n // - check if the user is still within the wrapper\n // (`relatedTarget` being a descendant of the wrapper)\n // - check if the user is still over the viewport\n // (`relatedTarget` being null if outside)\n //\n // Thanks to `dragenter` bubbling, we can listen on the `document` with a\n // single function and update the visibility based on whether we entered a\n // node inside or outside the wrapper.\n document.addEventListener(\n 'dragenter',\n this.updateDropzoneVisibility.bind(this)\n )\n\n // To detect if we're outside the document, we can track if there was a\n // `dragenter` event preceding a `dragleave`. If there wasn't, this means\n // we're outside the document.\n //\n // The order of events is guaranteed by the HTML specs:\n // https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model\n document.addEventListener('dragenter', () => {\n this.enteredAnotherElement = true\n })\n\n document.addEventListener('dragleave', () => {\n if (!this.enteredAnotherElement && !this.$button.disabled) {\n this.hideDraggingState()\n this.$announcements.innerText = this.i18n.t('leftDropZone')\n }\n\n this.enteredAnotherElement = false\n })\n }\n\n /**\n * Updates the visibility of the dropzone as users enters the various elements on the page\n *\n * @private\n * @param {DragEvent} event - The `dragenter` event\n */\n updateDropzoneVisibility(event) {\n if (this.$button.disabled) return\n\n // DOM interfaces only type `event.target` as `EventTarget`\n // so we first need to make sure it's a `Node`\n if (event.target instanceof Node) {\n if (this.$root.contains(event.target)) {\n if (event.dataTransfer && this.canDrop(event.dataTransfer)) {\n // Only update the class and make the announcement if not already visible\n // to avoid repeated announcements on NVDA (2024.4) + Firefox (133)\n if (\n !this.$button.classList.contains(\n 'govuk-file-upload-button--dragging'\n )\n ) {\n this.showDraggingState()\n this.$announcements.innerText = this.i18n.t('enteredDropZone')\n }\n }\n } else {\n // Only hide the dropzone if it is visible to prevent announcing user\n // left the drop zone when they enter the page but haven't reached yet\n // the file upload component\n if (\n this.$button.classList.contains('govuk-file-upload-button--dragging')\n ) {\n this.hideDraggingState()\n this.$announcements.innerText = this.i18n.t('leftDropZone')\n }\n }\n }\n }\n\n /**\n * Show the drop zone visually\n *\n * @private\n */\n showDraggingState() {\n this.$button.classList.add('govuk-file-upload-button--dragging')\n }\n\n /**\n * Hides the drop zone visually\n *\n * @private\n */\n hideDraggingState() {\n this.$button.classList.remove('govuk-file-upload-button--dragging')\n }\n\n /**\n * Handles user dropping on the component\n *\n * @private\n * @param {DragEvent} event - The `dragenter` event\n */\n onDrop(event) {\n event.preventDefault()\n\n if (event.dataTransfer && this.canFillInput(event.dataTransfer)) {\n this.$input.files = event.dataTransfer.files\n\n // Dispatch a `change` event so external code that would rely on the `<input>`\n // dispatching an event when files are dropped still work.\n // Use a `CustomEvent` so our events are distinguishable from browser's native events\n this.$input.dispatchEvent(new CustomEvent('change'))\n\n this.hideDraggingState()\n }\n }\n\n /**\n * Confirms if enhanced `<input>` can be filled with files from the given `DataTransfer`\n *\n * @param {DataTransfer} dataTransfer - The `DataTransfer` being dropped\n * @returns {boolean} - true if the `DataTransfer` contains files, in number matching the `multiple` attribute of the original `<input>`\n * @private\n */\n canFillInput(dataTransfer) {\n return this.matchesInputCapacity(dataTransfer.files.length)\n }\n\n /**\n * Confirms if the content of a `DataTransfer` dragged over component can be dropped\n *\n * Unfortunately, there's a certain level of uncertainty in Safari which does not\n * even provide a list of `items` while dragging (and seems to even miss the `types` sometimes)\n *\n * @param {DataTransfer} dataTransfer - The `DataTransfer` being dragged\n * @returns {boolean} - true if the `DataTransfer` looks OK for filling the input, false otherwise\n * @private\n */\n canDrop(dataTransfer) {\n // If the browser is kind enough to give a list of items, we'll use that as source of truth\n if (dataTransfer.items.length) {\n return this.matchesInputCapacity(countFileItems(dataTransfer.items))\n }\n\n // If we have some type information, we'll use that\n if (dataTransfer.types.length) {\n return dataTransfer.types.includes('Files')\n }\n\n // If we have nothing to go by, we'll assume things are OK\n // until we have a more accurate picture inside the `drop` event\n return true\n }\n\n /**\n * Confirms the given number of files matches that allowed by the enhanced `<input>`\n *\n * @param {number} numberOfFiles - The number of files\n * @returns {boolean} - `true` if the enhanced `<input>` can accept that number of files\n * @private\n */\n matchesInputCapacity(numberOfFiles) {\n if (this.$input.multiple) {\n return numberOfFiles > 0\n }\n\n return numberOfFiles === 1\n }\n\n /**\n * Check if the value of the underlying input has changed\n *\n * @private\n */\n onChange() {\n const fileCount = this.$input.files.length\n\n if (fileCount === 0) {\n // If there are no files, show the default selection text\n this.$status.innerText = this.i18n.t('noFileChosen')\n this.$button.classList.add('govuk-file-upload-button--empty')\n } else {\n if (\n // If there is 1 file, just show the file name\n fileCount === 1\n ) {\n this.$status.innerText = this.$input.files[0].name\n } else {\n // Otherwise, tell the user how many files are selected\n this.$status.innerText = this.i18n.t('multipleFilesChosen', {\n count: fileCount\n })\n }\n\n this.$button.classList.remove('govuk-file-upload-button--empty')\n }\n }\n\n /**\n * Looks up the `<label>` element associated to the field\n *\n * @private\n * @returns {HTMLLabelElement} The `<label>` element associated to the field\n * @throws {ElementError} If the `<label>` cannot be found\n */\n findLabel() {\n // Use `label` in the selector so TypeScript knows the type fo `HTMLElement`\n const $label = document.querySelector(`label[for=\"${this.$input.id}\"]`)\n\n if (!$label) {\n throw new ElementError({\n component: FileUpload,\n identifier: `Field label (\\`<label for=${this.$input.id}>\\`)`\n })\n }\n\n return $label\n }\n\n /**\n * When the button is clicked, emulate clicking the actual, hidden file input\n *\n * @private\n */\n onClick() {\n this.$input.click()\n }\n\n /**\n * Create a mutation observer to check if the input's attributes altered.\n *\n * @private\n */\n observeDisabledState() {\n const observer = new MutationObserver((mutationList) => {\n for (const mutation of mutationList) {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'disabled'\n ) {\n this.updateDisabledState()\n }\n }\n })\n\n observer.observe(this.$input, {\n attributes: true\n })\n }\n\n /**\n * Synchronise the `disabled` state between the input and replacement button.\n *\n * @private\n */\n updateDisabledState() {\n this.$button.disabled = this.$input.disabled\n\n this.$root.classList.toggle(\n 'govuk-file-upload-wrapper--disabled',\n this.$button.disabled\n )\n }\n\n /**\n * Name for the component used when initialising using data-module attributes.\n */\n static moduleName = 'govuk-file-upload'\n\n /**\n * File upload default config\n *\n * @see {@link FileUploadConfig}\n * @constant\n * @type {FileUploadConfig}\n */\n static defaults = Object.freeze({\n i18n: {\n chooseFilesButton: 'Choose file',\n dropInstruction: 'or drop file',\n noFileChosen: 'No file chosen',\n multipleFilesChosen: {\n // the 'one' string isn't used as the component displays the filename\n // instead, however it's here for coverage's sake\n one: '%{count} file chosen',\n other: '%{count} files chosen'\n },\n enteredDropZone: 'Entered drop zone',\n leftDropZone: 'Left drop zone'\n }\n })\n\n /**\n * File upload config schema\n *\n * @constant\n * @satisfies {Schema<FileUploadConfig>}\n */\n static schema = Object.freeze({\n properties: {\n i18n: { type: 'object' }\n }\n })\n}\n\n/**\n * Counts the number of `DataTransferItem` whose kind is `file`\n *\n * @param {DataTransferItemList} list - The list\n * @returns {number} - The number of items whose kind is `file` in the list\n */\nfunction countFileItems(list) {\n let result = 0\n\n // `DataTransferItemList` is not iterable\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < list.length; i++) {\n if (list[i].kind === 'file') {\n result++\n }\n }\n return result\n}\n\n/**\n * @typedef {HTMLInputElement & {files: FileList}} HTMLFileInputElement\n */\n\n/**\n * File upload config\n *\n * @see {@link FileUpload.defaults}\n * @typedef {object} FileUploadConfig\n * @property {FileUploadTranslations} [i18n=FileUpload.defaults.i18n] - File upload translations\n */\n\n/**\n * File upload translations\n *\n * @see {@link FileUpload.defaults.i18n}\n * @typedef {object} FileUploadTranslations\n *\n * Messages used by the component\n * @property {string} [chooseFile] - The text of the button that opens the file picker\n * @property {string} [dropInstruction] - The text informing users they can drop files\n * @property {TranslationPluralForms} [multipleFilesChosen] - The text displayed when multiple files\n * have been chosen by the user\n * @property {string} [noFileChosen] - The text to displayed when no file has been chosen by the user\n * @property {string} [enteredDropZone] - The text announced by assistive technology\n * when user drags files and enters the drop zone\n * @property {string} [leftDropZone] - The text announced by assistive technology\n * when user drags files and leaves the drop zone without dropping\n */\n\n/**\n * @import { Schema } from '../../common/configuration.mjs'\n * @import { TranslationPluralForms } from '../../i18n.mjs'\n */\n"],"names":["FileUpload","ConfigurableComponent","constructor","$root","config","$input","$button","$status","$label","i18n","id","$announcements","enteredAnotherElement","querySelector","ElementError","component","identifier","I18n","locale","closestAttributeValue","findLabel","setAttribute","createStatus","createButton","insertAdjacentElement","addEventListener","onChange","bind","updateDisabledState","observeDisabledState","document","createElement","classList","add","bindDraggingEvents","className","innerText","t","type","ariaDescribedBy","getAttribute","appendChild","commaSpan","containerSpan","buttonSpan","insertAdjacentText","instructionSpan","onClick","event","preventDefault","onDrop","updateDropzoneVisibility","disabled","hideDraggingState","target","Node","contains","dataTransfer","canDrop","showDraggingState","remove","canFillInput","files","dispatchEvent","CustomEvent","matchesInputCapacity","length","items","countFileItems","types","includes","numberOfFiles","multiple","fileCount","name","count","click","observer","MutationObserver","mutationList","mutation","attributeName","observe","attributes","toggle","moduleName","defaults","Object","freeze","chooseFilesButton","dropInstruction","noFileChosen","multipleFilesChosen","one","other","enteredDropZone","leftDropZone","schema","properties","list","result","i","kind"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,UAAU,SAASC,qBAAqB,CAAC;AAwCpD;AACF;AACA;AACA;AACEC,EAAAA,WAAWA,CAACC,KAAK,EAAEC,MAAM,GAAG,EAAE,EAAE;AAC9B,IAAA,KAAK,CAACD,KAAK,EAAEC,MAAM,CAAC;AAAA,IAAA,IAAA,CAxCtBC,MAAM,GAAA,MAAA;AAAA,IAAA,IAAA,CAMNC,OAAO,GAAA,MAAA;AAAA,IAAA,IAAA,CAMPC,OAAO,GAAA,MAAA;AAAA,IAAA,IAAA,CAMPC,MAAM,GAAA,MAAA;AAAA,IAAA,IAAA,CAGNC,IAAI,GAAA,MAAA;AAAA,IAAA,IAAA,CAGJC,EAAE,GAAA,MAAA;AAAA,IAAA,IAAA,CAGFC,cAAc,GAAA,MAAA;AAAA,IAAA,IAAA,CAMdC,qBAAqB,GAAA,MAAA;IASnB,MAAMP,MAAM,GAAG,IAAI,CAACF,KAAK,CAACU,aAAa,CAAC,oBAAoB,CAAC;IAE7D,IAAIR,MAAM,KAAK,IAAI,EAAE;MACnB,MAAM,IAAIS,YAAY,CAAC;AACrBC,QAAAA,SAAS,EAAEf,UAAU;AACrBgB,QAAAA,UAAU,EAAE;AACd,OAAC,CAAC;AACJ,IAAA;IAEA,IAAI,CAACX,MAAM,GAAwCA,MAAO;AAE1D,IAAA,IAAI,CAAC,IAAI,CAACA,MAAM,CAACK,EAAE,EAAE;MACnB,MAAM,IAAII,YAAY,CAAC;AACrBC,QAAAA,SAAS,EAAEf,UAAU;AACrBgB,QAAAA,UAAU,EAAE;AACd,OAAC,CAAC;AACJ,IAAA;AAEA,IAAA,IAAI,CAACN,EAAE,GAAG,IAAI,CAACL,MAAM,CAACK,EAAE;IAExB,IAAI,CAACD,IAAI,GAAG,IAAIQ,IAAI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|
-
"
|
|
15
|
-
"screenshot":
|
|
14
|
+
"pageTemplateOptions": {},
|
|
15
|
+
"screenshot": true,
|
|
16
16
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\">\n</div>"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "allows multiple files",
|
|
20
|
-
"options": {
|
|
21
|
-
"id": "file-upload-1",
|
|
22
|
-
"name": "file-upload-1",
|
|
23
|
-
"label": {
|
|
24
|
-
"text": "Upload a file"
|
|
25
|
-
},
|
|
26
|
-
"multiple": true
|
|
27
|
-
},
|
|
28
|
-
"hidden": false,
|
|
29
|
-
"description": "",
|
|
30
|
-
"previewLayoutModifiers": [],
|
|
31
|
-
"screenshot": false,
|
|
32
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" multiple>\n</div>"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "allows image files only",
|
|
36
|
-
"options": {
|
|
37
|
-
"id": "file-upload-1",
|
|
38
|
-
"name": "file-upload-1",
|
|
39
|
-
"label": {
|
|
40
|
-
"text": "Upload a file"
|
|
41
|
-
},
|
|
42
|
-
"attributes": {
|
|
43
|
-
"accept": "image/*"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"hidden": false,
|
|
47
|
-
"description": "",
|
|
48
|
-
"previewLayoutModifiers": [],
|
|
49
|
-
"screenshot": false,
|
|
50
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" accept=\"image/*\">\n</div>"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "allows direct media capture",
|
|
54
|
-
"options": {
|
|
55
|
-
"id": "file-upload-1",
|
|
56
|
-
"name": "file-upload-1",
|
|
57
|
-
"label": {
|
|
58
|
-
"text": "Upload a file"
|
|
59
|
-
},
|
|
60
|
-
"attributes": {
|
|
61
|
-
"capture": "user"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"hidden": false,
|
|
65
|
-
"description": "Currently only works on mobile devices.",
|
|
66
|
-
"previewLayoutModifiers": [],
|
|
67
|
-
"screenshot": false,
|
|
68
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" capture=\"user\">\n</div>"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "disabled",
|
|
72
|
-
"options": {
|
|
73
|
-
"id": "file-upload-1",
|
|
74
|
-
"name": "file-upload-1",
|
|
75
|
-
"label": {
|
|
76
|
-
"text": "Upload a file"
|
|
77
|
-
},
|
|
78
|
-
"disabled": true
|
|
79
|
-
},
|
|
80
|
-
"hidden": false,
|
|
81
|
-
"description": "",
|
|
82
|
-
"previewLayoutModifiers": [],
|
|
83
|
-
"screenshot": false,
|
|
84
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" disabled>\n</div>"
|
|
85
|
-
},
|
|
86
18
|
{
|
|
87
19
|
"name": "with hint text",
|
|
88
20
|
"options": {
|
|
@@ -97,7 +29,7 @@
|
|
|
97
29
|
},
|
|
98
30
|
"hidden": false,
|
|
99
31
|
"description": "",
|
|
100
|
-
"
|
|
32
|
+
"pageTemplateOptions": {},
|
|
101
33
|
"screenshot": false,
|
|
102
34
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-2\">\n Upload your photo\n </label>\n <div id=\"file-upload-2-hint\" class=\"govuk-hint\">\n Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto.\n </div>\n <input class=\"govuk-file-upload\" id=\"file-upload-2\" name=\"file-upload-2\" type=\"file\" aria-describedby=\"file-upload-2-hint\">\n</div>"
|
|
103
35
|
},
|
|
@@ -118,7 +50,7 @@
|
|
|
118
50
|
},
|
|
119
51
|
"hidden": false,
|
|
120
52
|
"description": "",
|
|
121
|
-
"
|
|
53
|
+
"pageTemplateOptions": {},
|
|
122
54
|
"screenshot": false,
|
|
123
55
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"file-upload-3\">\n Upload a file\n </label>\n <div id=\"file-upload-3-hint\" class=\"govuk-hint\">\n Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto.\n </div>\n <p id=\"file-upload-3-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n <input class=\"govuk-file-upload govuk-file-upload--error\" id=\"file-upload-3\" name=\"file-upload-3\" type=\"file\" aria-describedby=\"file-upload-3-hint file-upload-3-error\">\n</div>"
|
|
124
56
|
},
|
|
@@ -135,28 +67,10 @@
|
|
|
135
67
|
},
|
|
136
68
|
"hidden": false,
|
|
137
69
|
"description": "",
|
|
138
|
-
"
|
|
70
|
+
"pageTemplateOptions": {},
|
|
139
71
|
"screenshot": false,
|
|
140
72
|
"html": "<div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"file-upload-1\">\n Upload a file\n </label>\n </h1>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\">\n</div>"
|
|
141
73
|
},
|
|
142
|
-
{
|
|
143
|
-
"name": "with optional form-group classes",
|
|
144
|
-
"options": {
|
|
145
|
-
"id": "file-upload-1",
|
|
146
|
-
"name": "file-upload-1",
|
|
147
|
-
"label": {
|
|
148
|
-
"text": "Upload a file"
|
|
149
|
-
},
|
|
150
|
-
"formGroup": {
|
|
151
|
-
"classes": "extra-class"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"hidden": false,
|
|
155
|
-
"description": "",
|
|
156
|
-
"previewLayoutModifiers": [],
|
|
157
|
-
"screenshot": false,
|
|
158
|
-
"html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\">\n</div>"
|
|
159
|
-
},
|
|
160
74
|
{
|
|
161
75
|
"name": "enhanced",
|
|
162
76
|
"options": {
|
|
@@ -169,77 +83,74 @@
|
|
|
169
83
|
},
|
|
170
84
|
"hidden": false,
|
|
171
85
|
"description": "",
|
|
172
|
-
"
|
|
173
|
-
"screenshot":
|
|
174
|
-
|
|
86
|
+
"pageTemplateOptions": {},
|
|
87
|
+
"screenshot": {
|
|
88
|
+
"variants": [
|
|
89
|
+
"default",
|
|
90
|
+
"no-js"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <div\n class=\"govuk-file-upload-wrapper\"\n data-module=\"govuk-file-upload\"\n >\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\">\n </div>\n</div>"
|
|
175
94
|
},
|
|
176
95
|
{
|
|
177
|
-
"name": "enhanced,
|
|
96
|
+
"name": "enhanced, with error message and hint",
|
|
178
97
|
"options": {
|
|
179
98
|
"javascript": true,
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"name": "file-upload-error",
|
|
99
|
+
"id": "file-upload-3",
|
|
100
|
+
"name": "file-upload-3",
|
|
183
101
|
"label": {
|
|
184
102
|
"text": "Upload a file"
|
|
185
103
|
},
|
|
186
104
|
"hint": {
|
|
187
105
|
"text": "Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto."
|
|
106
|
+
},
|
|
107
|
+
"errorMessage": {
|
|
108
|
+
"text": "Error message goes here"
|
|
188
109
|
}
|
|
189
110
|
},
|
|
190
111
|
"hidden": false,
|
|
191
112
|
"description": "",
|
|
192
|
-
"
|
|
113
|
+
"pageTemplateOptions": {},
|
|
193
114
|
"screenshot": false,
|
|
194
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-
|
|
115
|
+
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"file-upload-3\">\n Upload a file\n </label>\n <div id=\"file-upload-3-hint\" class=\"govuk-hint\">\n Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto.\n </div>\n <p id=\"file-upload-3-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message goes here\n </p>\n <div\n class=\"govuk-file-upload-wrapper\"\n data-module=\"govuk-file-upload\"\n >\n <input class=\"govuk-file-upload govuk-file-upload--error\" id=\"file-upload-3\" name=\"file-upload-3\" type=\"file\" aria-describedby=\"file-upload-3-hint file-upload-3-error\">\n </div>\n</div>"
|
|
195
116
|
},
|
|
196
117
|
{
|
|
197
|
-
"name": "enhanced,
|
|
118
|
+
"name": "enhanced, multiple files",
|
|
198
119
|
"options": {
|
|
199
120
|
"javascript": true,
|
|
200
121
|
"id": "file-upload-3",
|
|
201
122
|
"name": "file-upload-3",
|
|
202
123
|
"label": {
|
|
203
|
-
"text": "Upload
|
|
124
|
+
"text": "Upload files"
|
|
204
125
|
},
|
|
205
|
-
"
|
|
206
|
-
"text": "Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto."
|
|
207
|
-
},
|
|
208
|
-
"errorMessage": {
|
|
209
|
-
"text": "Error message goes here"
|
|
210
|
-
}
|
|
126
|
+
"multiple": true
|
|
211
127
|
},
|
|
212
128
|
"hidden": false,
|
|
213
129
|
"description": "",
|
|
214
|
-
"
|
|
130
|
+
"pageTemplateOptions": {},
|
|
215
131
|
"screenshot": false,
|
|
216
|
-
"html": "<div class=\"govuk-form-group
|
|
132
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-3\">\n Upload files\n </label>\n <div\n class=\"govuk-file-upload-wrapper\"\n data-module=\"govuk-file-upload\"\n >\n <input class=\"govuk-file-upload\" id=\"file-upload-3\" name=\"file-upload-3\" type=\"file\" multiple>\n </div>\n</div>"
|
|
217
133
|
},
|
|
218
134
|
{
|
|
219
|
-
"name": "
|
|
135
|
+
"name": "enhanced, custom wrapper classes and attributes",
|
|
220
136
|
"options": {
|
|
221
|
-
"id": "file-upload-1",
|
|
222
|
-
"name": "file-upload-1",
|
|
223
|
-
"label": {
|
|
224
|
-
"text": "Llwythwch ffeil i fyny"
|
|
225
|
-
},
|
|
226
|
-
"multiple": true,
|
|
227
137
|
"javascript": true,
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
"other": "%{count} ffeil wedi'u dewis",
|
|
233
|
-
"one": "%{count} ffeil wedi'i dewis"
|
|
138
|
+
"id": "file-upload-3",
|
|
139
|
+
"name": "file-upload-3",
|
|
140
|
+
"label": {
|
|
141
|
+
"text": "Upload files"
|
|
234
142
|
},
|
|
235
|
-
"
|
|
236
|
-
"
|
|
143
|
+
"wrapperClasses": "app-file-upload--custom-class",
|
|
144
|
+
"wrapperAttributes": {
|
|
145
|
+
"data-custom-attribute": "custom-value",
|
|
146
|
+
"data-custom-attribute-2": "custom-value-2"
|
|
147
|
+
}
|
|
237
148
|
},
|
|
238
149
|
"hidden": false,
|
|
239
150
|
"description": "",
|
|
240
|
-
"
|
|
151
|
+
"pageTemplateOptions": {},
|
|
241
152
|
"screenshot": false,
|
|
242
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-
|
|
153
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-3\">\n Upload files\n </label>\n <div\n class=\"govuk-file-upload-wrapper app-file-upload--custom-class\"\n data-module=\"govuk-file-upload\" data-custom-attribute=\"custom-value\" data-custom-attribute-2=\"custom-value-2\"\n >\n <input class=\"govuk-file-upload\" id=\"file-upload-3\" name=\"file-upload-3\" type=\"file\">\n </div>\n</div>"
|
|
243
154
|
},
|
|
244
155
|
{
|
|
245
156
|
"name": "with value",
|
|
@@ -253,9 +164,9 @@
|
|
|
253
164
|
},
|
|
254
165
|
"hidden": true,
|
|
255
166
|
"description": "",
|
|
256
|
-
"
|
|
167
|
+
"pageTemplateOptions": {},
|
|
257
168
|
"screenshot": false,
|
|
258
|
-
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-4\">\n Upload a photo\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-4\" name=\"file-upload-4\" type=\"file\"
|
|
169
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-4\">\n Upload a photo\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-4\" name=\"file-upload-4\" type=\"file\">\n</div>"
|
|
259
170
|
},
|
|
260
171
|
{
|
|
261
172
|
"name": "attributes",
|
|
@@ -271,7 +182,7 @@
|
|
|
271
182
|
},
|
|
272
183
|
"hidden": true,
|
|
273
184
|
"description": "",
|
|
274
|
-
"
|
|
185
|
+
"pageTemplateOptions": {},
|
|
275
186
|
"screenshot": false,
|
|
276
187
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-attributes\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-attributes\" name=\"file-upload-attributes\" type=\"file\" accept=\".jpg, .jpeg, .png\">\n</div>"
|
|
277
188
|
},
|
|
@@ -287,7 +198,7 @@
|
|
|
287
198
|
},
|
|
288
199
|
"hidden": true,
|
|
289
200
|
"description": "",
|
|
290
|
-
"
|
|
201
|
+
"pageTemplateOptions": {},
|
|
291
202
|
"screenshot": false,
|
|
292
203
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-classes\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload app-file-upload--custom-modifier\" id=\"file-upload-classes\" name=\"file-upload-classes\" type=\"file\">\n</div>"
|
|
293
204
|
},
|
|
@@ -302,7 +213,7 @@
|
|
|
302
213
|
},
|
|
303
214
|
"hidden": true,
|
|
304
215
|
"description": "",
|
|
305
|
-
"
|
|
216
|
+
"pageTemplateOptions": {},
|
|
306
217
|
"screenshot": false,
|
|
307
218
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-id\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-id\" name=\"test-name\" type=\"file\">\n</div>"
|
|
308
219
|
},
|
|
@@ -318,7 +229,7 @@
|
|
|
318
229
|
},
|
|
319
230
|
"hidden": true,
|
|
320
231
|
"description": "",
|
|
321
|
-
"
|
|
232
|
+
"pageTemplateOptions": {},
|
|
322
233
|
"screenshot": false,
|
|
323
234
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-describedby\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-describedby\" name=\"file-upload-describedby\" type=\"file\" aria-describedby=\"test-target-element\">\n</div>"
|
|
324
235
|
},
|
|
@@ -337,7 +248,7 @@
|
|
|
337
248
|
},
|
|
338
249
|
"hidden": true,
|
|
339
250
|
"description": "",
|
|
340
|
-
"
|
|
251
|
+
"pageTemplateOptions": {},
|
|
341
252
|
"screenshot": false,
|
|
342
253
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-hint-describedby\">\n Upload a file\n </label>\n <div id=\"file-upload-hint-describedby-hint\" class=\"govuk-hint\">\n Your photo may be in your Pictures, Photos, Downloads or Desktop folder. Or in an app like iPhoto.\n </div>\n <input class=\"govuk-file-upload\" id=\"file-upload-hint-describedby\" name=\"file-upload-hint-describedby\" type=\"file\" aria-describedby=\"test-target-element file-upload-hint-describedby-hint\">\n</div>"
|
|
343
254
|
},
|
|
@@ -355,7 +266,7 @@
|
|
|
355
266
|
},
|
|
356
267
|
"hidden": true,
|
|
357
268
|
"description": "",
|
|
358
|
-
"
|
|
269
|
+
"pageTemplateOptions": {},
|
|
359
270
|
"screenshot": false,
|
|
360
271
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"file-upload-with-error\">\n Upload a file\n </label>\n <p id=\"file-upload-with-error-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <input class=\"govuk-file-upload govuk-file-upload--error\" id=\"file-upload-with-error\" name=\"file-upload-with-error\" type=\"file\" aria-describedby=\"file-upload-with-error-error\">\n</div>"
|
|
361
272
|
},
|
|
@@ -374,7 +285,7 @@
|
|
|
374
285
|
},
|
|
375
286
|
"hidden": true,
|
|
376
287
|
"description": "",
|
|
377
|
-
"
|
|
288
|
+
"pageTemplateOptions": {},
|
|
378
289
|
"screenshot": false,
|
|
379
290
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"file-upload-error-describedby\">\n Upload a file\n </label>\n <p id=\"file-upload-error-describedby-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <input class=\"govuk-file-upload govuk-file-upload--error\" id=\"file-upload-error-describedby\" name=\"file-upload-error-describedby\" type=\"file\" aria-describedby=\"test-target-element file-upload-error-describedby-error\">\n</div>"
|
|
380
291
|
},
|
|
@@ -396,7 +307,7 @@
|
|
|
396
307
|
},
|
|
397
308
|
"hidden": true,
|
|
398
309
|
"description": "",
|
|
399
|
-
"
|
|
310
|
+
"pageTemplateOptions": {},
|
|
400
311
|
"screenshot": false,
|
|
401
312
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"file-upload-error-describedby-hint\">\n Upload a file\n </label>\n <div id=\"file-upload-error-describedby-hint-hint\" class=\"govuk-hint\">\n hint\n </div>\n <p id=\"file-upload-error-describedby-hint-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <input class=\"govuk-file-upload govuk-file-upload--error\" id=\"file-upload-error-describedby-hint\" name=\"file-upload-error-describedby-hint\" type=\"file\" aria-describedby=\"test-target-element file-upload-error-describedby-hint-hint file-upload-error-describedby-hint-error\">\n</div>"
|
|
402
313
|
},
|
|
@@ -421,9 +332,85 @@
|
|
|
421
332
|
},
|
|
422
333
|
"hidden": true,
|
|
423
334
|
"description": "",
|
|
424
|
-
"
|
|
335
|
+
"pageTemplateOptions": {},
|
|
425
336
|
"screenshot": false,
|
|
426
337
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Llwythwch ffeil i fyny\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" multiple>\n</div>"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "allows multiple files",
|
|
341
|
+
"options": {
|
|
342
|
+
"id": "file-upload-1",
|
|
343
|
+
"name": "file-upload-1",
|
|
344
|
+
"label": {
|
|
345
|
+
"text": "Upload a file"
|
|
346
|
+
},
|
|
347
|
+
"multiple": true
|
|
348
|
+
},
|
|
349
|
+
"hidden": true,
|
|
350
|
+
"description": "",
|
|
351
|
+
"pageTemplateOptions": {},
|
|
352
|
+
"screenshot": false,
|
|
353
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" multiple>\n</div>"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "disabled",
|
|
357
|
+
"options": {
|
|
358
|
+
"id": "file-upload-1",
|
|
359
|
+
"name": "file-upload-1",
|
|
360
|
+
"label": {
|
|
361
|
+
"text": "Upload a file"
|
|
362
|
+
},
|
|
363
|
+
"disabled": true
|
|
364
|
+
},
|
|
365
|
+
"hidden": true,
|
|
366
|
+
"description": "",
|
|
367
|
+
"pageTemplateOptions": {},
|
|
368
|
+
"screenshot": false,
|
|
369
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" disabled>\n</div>"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "with optional form-group classes",
|
|
373
|
+
"options": {
|
|
374
|
+
"id": "file-upload-1",
|
|
375
|
+
"name": "file-upload-1",
|
|
376
|
+
"label": {
|
|
377
|
+
"text": "Upload a file"
|
|
378
|
+
},
|
|
379
|
+
"formGroup": {
|
|
380
|
+
"classes": "extra-class"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"hidden": true,
|
|
384
|
+
"description": "",
|
|
385
|
+
"pageTemplateOptions": {},
|
|
386
|
+
"screenshot": false,
|
|
387
|
+
"html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Upload a file\n </label>\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\">\n</div>"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "translated",
|
|
391
|
+
"options": {
|
|
392
|
+
"id": "file-upload-1",
|
|
393
|
+
"name": "file-upload-1",
|
|
394
|
+
"label": {
|
|
395
|
+
"text": "Llwythwch ffeil i fyny"
|
|
396
|
+
},
|
|
397
|
+
"multiple": true,
|
|
398
|
+
"javascript": true,
|
|
399
|
+
"chooseFilesButtonText": "Dewiswch ffeil",
|
|
400
|
+
"dropInstructionText": "neu ollwng ffeil",
|
|
401
|
+
"noFileChosenText": "Dim ffeil wedi'i dewis",
|
|
402
|
+
"multipleFilesChosenText": {
|
|
403
|
+
"other": "%{count} ffeil wedi'u dewis",
|
|
404
|
+
"one": "%{count} ffeil wedi'i dewis"
|
|
405
|
+
},
|
|
406
|
+
"enteredDropZoneText": "Wedi mynd i mewn i'r parth gollwng",
|
|
407
|
+
"leftDropZoneText": "Parth gollwng i'r chwith"
|
|
408
|
+
},
|
|
409
|
+
"hidden": false,
|
|
410
|
+
"description": "",
|
|
411
|
+
"pageTemplateOptions": {},
|
|
412
|
+
"screenshot": false,
|
|
413
|
+
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"file-upload-1\">\n Llwythwch ffeil i fyny\n </label>\n <div\n class=\"govuk-file-upload-wrapper\"\n data-module=\"govuk-file-upload\" data-i18n.choose-files-button=\"Dewiswch ffeil\" data-i18n.no-file-chosen=\"Dim ffeil wedi'i dewis\" data-i18n.multiple-files-chosen.other=\"%{count} ffeil wedi'u dewis\" data-i18n.multiple-files-chosen.one=\"%{count} ffeil wedi'i dewis\" data-i18n.drop-instruction=\"neu ollwng ffeil\" data-i18n.entered-drop-zone=\"Wedi mynd i mewn i'r parth gollwng\" data-i18n.left-drop-zone=\"Parth gollwng i'r chwith\"\n >\n <input class=\"govuk-file-upload\" id=\"file-upload-1\" name=\"file-upload-1\" type=\"file\" multiple>\n </div>\n</div>"
|
|
427
414
|
}
|
|
428
415
|
]
|
|
429
416
|
}
|
|
@@ -9,14 +9,7 @@
|
|
|
9
9
|
"name": "id",
|
|
10
10
|
"type": "string",
|
|
11
11
|
"required": false,
|
|
12
|
-
"description": "The ID of the input. Defaults to the value of `name`."
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "value",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"required": false,
|
|
18
|
-
"description": "Optional initial value of the input.",
|
|
19
|
-
"deprecated": "5.7.1"
|
|
12
|
+
"description": "The ID of the input. Defaults to the value of `name`. If `javascript` is provided, this ID will be on the button of the improved version, and the hidden input's ID will get the suffix \"-input\"."
|
|
20
13
|
},
|
|
21
14
|
{
|
|
22
15
|
"name": "disabled",
|
|
@@ -163,12 +156,24 @@
|
|
|
163
156
|
"name": "classes",
|
|
164
157
|
"type": "string",
|
|
165
158
|
"required": false,
|
|
166
|
-
"description": "Classes to add to the file upload
|
|
159
|
+
"description": "Classes to add to the file upload `<input>` element. If `javascript` is provided, these are not copied to the visible button. To use classes for the visible button, use the `wrapperClasses` option."
|
|
167
160
|
},
|
|
168
161
|
{
|
|
169
162
|
"name": "attributes",
|
|
170
163
|
"type": "object",
|
|
171
164
|
"required": false,
|
|
172
|
-
"description": "HTML attributes (for example data attributes) to add to the file upload
|
|
165
|
+
"description": "HTML attributes (for example data attributes) to add to the file upload `<input>` element. If `javascript` is provided, these are not copied to the visible button. To add attributes to the container, use the `wrapperAttributes` option instead."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "wrapperClasses",
|
|
169
|
+
"type": "string",
|
|
170
|
+
"required": false,
|
|
171
|
+
"description": "Classes to add to the improved file upload component's wrapper. If `javascript` is not provided, this option will be ignored."
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "wrapperAttributes",
|
|
175
|
+
"type": "object",
|
|
176
|
+
"required": false,
|
|
177
|
+
"description": "HTML attributes (for example data attributes) to add to the improved file upload component's wrapper. If `javascript` is not provided, this option will be ignored."
|
|
173
178
|
}
|
|
174
179
|
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div class="govuk-form-group">
|
|
2
|
+
<label class="govuk-label" for="file-upload-3">
|
|
3
|
+
Upload files
|
|
4
|
+
</label>
|
|
5
|
+
<div
|
|
6
|
+
class="govuk-file-upload-wrapper app-file-upload--custom-class"
|
|
7
|
+
data-module="govuk-file-upload" data-custom-attribute="custom-value" data-custom-attribute-2="custom-value-2"
|
|
8
|
+
>
|
|
9
|
+
<input class="govuk-file-upload" id="file-upload-3" name="file-upload-3" type="file">
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|