govuk_publishing_components 17.21.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/all_components.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/character-count.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/error-summary.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +1 -1
- data/app/assets/stylesheets/component_guide/application.scss +5 -7
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +5 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +3 -15
- data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +28 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +18 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +8 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +6 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +10 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +17 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +8 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +4 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +1 -1
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +14 -12
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +16 -2
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +5 -1
- data/app/views/govuk_publishing_components/components/_details.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +12 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/label.yml +4 -1
- data/app/views/govuk_publishing_components/components/docs/table.yml +1 -0
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +2 -2
- data/config/initializers/assets.rb +3 -3
- data/config/locales/en.yml +0 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/README.md +4 -9
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +4 -5
- data/node_modules/govuk-frontend/{all-ie8.scss → govuk/all-ie8.scss} +0 -0
- data/node_modules/govuk-frontend/{all.js → govuk/all.js} +116 -63
- data/node_modules/govuk-frontend/{all.scss → govuk/all.scss} +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-logotype-crown.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-mask-icon.svg +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/{common.js → govuk/common.js} +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/_accordion.scss +48 -28
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/accordion.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro-options.json +8 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/template.njk +1 -3
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/_back-link.scss +17 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/_breadcrumbs.scss +10 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/_button.scss +76 -46
- data/node_modules/govuk-frontend/{components → govuk/components}/button/button.js +168 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro.njk +0 -0
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +60 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/_character-count.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/character-count.js +5 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/template.njk +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/_checkboxes.scss +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/checkboxes.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/template.njk +18 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/_date-input.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/details/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/_details.scss +12 -13
- data/node_modules/govuk-frontend/{components → govuk/components}/details/details.js +3 -4
- data/node_modules/govuk-frontend/{components → govuk/components}/details/implementation.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/_error-message.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/_error-summary.scss +4 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/error-summary.js +0 -10
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/_fieldset.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro-options.json +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +81 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/_footer.scss +47 -16
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro-options.json +5 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/_header.scss +34 -21
- data/node_modules/govuk-frontend/{components → govuk/components}/header/header.js +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro-options.json +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/template.njk +6 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/_hint.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/_input.scss +24 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/_inset-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/_label.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/_panel.scss +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/_phase-banner.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/template.njk +5 -7
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/_radios.scss +7 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/radios.js +24 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/template.njk +15 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/select/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/_select.scss +23 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/_skip-link.scss +6 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/_summary-list.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro-options.json +7 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/table/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/_table.scss +1 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/template.njk +14 -14
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +142 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/tabs.js +59 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/template.njk +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +44 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +55 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/_warning-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_links.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_lists.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_section-break.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_template.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_all.scss +1 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_colour.scss +23 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_device-pixels.scss +0 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +28 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +60 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_links.scss +15 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_shape-arrow.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_typography.scss +23 -5
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_visually-hidden.scss +4 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_form-group.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_grid.scss +2 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_main-wrapper.scss +15 -1
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_width-container.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_display.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_width.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_assets.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-applied.scss +9 -8
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-organisations.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +101 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +75 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_measurements.scss +2 -2
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font-families.scss +11 -1
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font.scss +27 -7
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-responsive.scss +9 -10
- data/node_modules/govuk-frontend/{template.njk → govuk/template.njk} +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_compatibility.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_exports.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_font-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_iff.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_image-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-em.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-rem.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_visually-hidden.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/_sass-mq.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/DOMTokenList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Document.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/classList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/closest.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/matches.js +0 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +259 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +257 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Event.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Function/prototype/bind.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Object/defineProperty.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Window.js +0 -0
- data/node_modules/govuk-frontend/package.json +21 -21
- data/node_modules/react-is/README.md +2 -12
- data/node_modules/react-is/build-info.json +5 -5
- data/node_modules/react-is/cjs/react-is.development.js +7 -2
- data/node_modules/react-is/cjs/react-is.production.min.js +6 -6
- data/node_modules/react-is/package.json +13 -13
- data/node_modules/react-is/umd/react-is.development.js +7 -2
- data/node_modules/react-is/umd/react-is.production.min.js +5 -5
- data/node_modules/type/CHANGELOG.md +62 -50
- data/node_modules/type/LICENSE +15 -0
- data/node_modules/type/README.md +19 -19
- data/node_modules/type/error/is.js +28 -7
- data/node_modules/type/package.json +36 -22
- data/node_modules/type/test/error/is.js +13 -5
- metadata +247 -344
- data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +0 -79
- data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +0 -41
- data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +0 -35
- data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +0 -49
- data/node_modules/accessible-autocomplete/CHANGELOG.md +0 -269
- data/node_modules/accessible-autocomplete/CONTRIBUTING.md +0 -150
- data/node_modules/accessible-autocomplete/LICENSE.txt +0 -20
- data/node_modules/accessible-autocomplete/Procfile +0 -1
- data/node_modules/accessible-autocomplete/README.md +0 -416
- data/node_modules/accessible-autocomplete/accessibility-criteria.md +0 -42
- data/node_modules/accessible-autocomplete/app.json +0 -15
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +0 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/examples/form.html +0 -671
- data/node_modules/accessible-autocomplete/examples/index.html +0 -665
- data/node_modules/accessible-autocomplete/examples/multiselect.html +0 -134
- data/node_modules/accessible-autocomplete/examples/preact/index.html +0 -346
- data/node_modules/accessible-autocomplete/examples/react/index.html +0 -347
- data/node_modules/accessible-autocomplete/package-lock.json +0 -14491
- data/node_modules/accessible-autocomplete/package.json +0 -173
- data/node_modules/accessible-autocomplete/preact.js +0 -1
- data/node_modules/accessible-autocomplete/react.js +0 -1
- data/node_modules/accessible-autocomplete/scripts/check-staged.js +0 -14
- data/node_modules/accessible-autocomplete/src/autocomplete.css +0 -192
- data/node_modules/accessible-autocomplete/src/autocomplete.js +0 -618
- data/node_modules/accessible-autocomplete/src/dropdown-arrow-down.js +0 -11
- data/node_modules/accessible-autocomplete/src/status.js +0 -80
- data/node_modules/accessible-autocomplete/src/wrapper.js +0 -76
- data/node_modules/accessible-autocomplete/test/functional/dropdown-arrow-down.js +0 -44
- data/node_modules/accessible-autocomplete/test/functional/index.js +0 -485
- data/node_modules/accessible-autocomplete/test/functional/wrapper.js +0 -318
- data/node_modules/accessible-autocomplete/test/integration/index.js +0 -188
- data/node_modules/accessible-autocomplete/test/karma.config.js +0 -42
- data/node_modules/accessible-autocomplete/test/wdio.config.js +0 -80
- data/node_modules/accessible-autocomplete/webpack.config.babel.js +0 -193
- data/node_modules/govuk-frontend/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-arrow-left.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-important.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer-2x.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer.png +0 -0
- data/node_modules/govuk-frontend/components/button/template.njk +0 -35
- data/node_modules/govuk-frontend/components/file-upload/_file-upload.scss +0 -19
- data/node_modules/govuk-frontend/components/tabs/_tabs.scss +0 -130
- data/node_modules/govuk-frontend/components/tag/_tag.scss +0 -33
- data/node_modules/govuk-frontend/components/textarea/_textarea.scss +0 -32
- data/node_modules/govuk-frontend/helpers/_focusable.scss +0 -34
- data/node_modules/govuk-frontend/helpers/_font-faces.scss +0 -67
- data/node_modules/govuk-frontend/helpers/_grid.scss +0 -107
- data/node_modules/govuk-frontend/settings/_colours-palette.scss +0 -37
- data/node_modules/govuk-frontend/settings/_compatibility.scss +0 -51
- data/node_modules/preact/LICENSE +0 -21
- data/node_modules/preact/README.md +0 -592
- data/node_modules/preact/debug.js +0 -740
- data/node_modules/preact/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.js +0 -2
- data/node_modules/preact/debug/dist/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.mjs +0 -681
- data/node_modules/preact/debug/dist/debug.mjs.map +0 -1
- data/node_modules/preact/debug/dist/debug.module.js +0 -2
- data/node_modules/preact/debug/dist/debug.module.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.umd.js +0 -2
- data/node_modules/preact/debug/dist/debug.umd.js.map +0 -1
- data/node_modules/preact/debug/index.js +0 -122
- data/node_modules/preact/devtools.js +0 -403
- data/node_modules/preact/devtools.js.map +0 -1
- data/node_modules/preact/devtools/devtools.js +0 -395
- data/node_modules/preact/devtools/index.js +0 -4
- data/node_modules/preact/dist/preact.d.ts +0 -1712
- data/node_modules/preact/dist/preact.dev.js +0 -727
- data/node_modules/preact/dist/preact.dev.js.map +0 -1
- data/node_modules/preact/dist/preact.js +0 -414
- data/node_modules/preact/dist/preact.js.flow +0 -25
- data/node_modules/preact/dist/preact.js.map +0 -1
- data/node_modules/preact/dist/preact.min.js +0 -2
- data/node_modules/preact/dist/preact.min.js.map +0 -1
- data/node_modules/preact/dist/preact.mjs +0 -724
- data/node_modules/preact/dist/preact.mjs.map +0 -1
- data/node_modules/preact/dist/preact.umd.js +0 -751
- data/node_modules/preact/dist/preact.umd.js.map +0 -1
- data/node_modules/preact/package.json +0 -226
- data/node_modules/preact/src/clone-element.js +0 -18
- data/node_modules/preact/src/component.js +0 -90
- data/node_modules/preact/src/constants.js +0 -17
- data/node_modules/preact/src/dom/index.js +0 -139
- data/node_modules/preact/src/h.js +0 -86
- data/node_modules/preact/src/options.js +0 -22
- data/node_modules/preact/src/preact.d.ts +0 -1712
- data/node_modules/preact/src/preact.js +0 -32
- data/node_modules/preact/src/preact.js.flow +0 -25
- data/node_modules/preact/src/render-queue.js +0 -27
- data/node_modules/preact/src/render.js +0 -22
- data/node_modules/preact/src/util.js +0 -30
- data/node_modules/preact/src/vdom/component-recycler.js +0 -48
- data/node_modules/preact/src/vdom/component.js +0 -296
- data/node_modules/preact/src/vdom/diff.js +0 -337
- data/node_modules/preact/src/vdom/index.js +0 -54
- data/node_modules/preact/src/vnode.js +0 -9
- data/node_modules/preact/typings.json +0 -5
@@ -501,28 +501,179 @@ if (detect) return
|
|
501
501
|
})
|
502
502
|
.call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
503
503
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
504
|
+
(function(undefined) {
|
505
|
+
// Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Function/prototype/bind/detect.js
|
506
|
+
var detect = 'bind' in Function.prototype;
|
507
|
+
|
508
|
+
if (detect) return
|
509
|
+
|
510
|
+
// Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Function.prototype.bind&flags=always
|
511
|
+
Object.defineProperty(Function.prototype, 'bind', {
|
512
|
+
value: function bind(that) { // .length is 1
|
513
|
+
// add necessary es5-shim utilities
|
514
|
+
var $Array = Array;
|
515
|
+
var $Object = Object;
|
516
|
+
var ObjectPrototype = $Object.prototype;
|
517
|
+
var ArrayPrototype = $Array.prototype;
|
518
|
+
var Empty = function Empty() {};
|
519
|
+
var to_string = ObjectPrototype.toString;
|
520
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
521
|
+
var isCallable; /* inlined from https://npmjs.com/is-callable */ var fnToStr = Function.prototype.toString, tryFunctionObject = function tryFunctionObject(value) { try { fnToStr.call(value); return true; } catch (e) { return false; } }, fnClass = '[object Function]', genClass = '[object GeneratorFunction]'; isCallable = function isCallable(value) { if (typeof value !== 'function') { return false; } if (hasToStringTag) { return tryFunctionObject(value); } var strClass = to_string.call(value); return strClass === fnClass || strClass === genClass; };
|
522
|
+
var array_slice = ArrayPrototype.slice;
|
523
|
+
var array_concat = ArrayPrototype.concat;
|
524
|
+
var array_push = ArrayPrototype.push;
|
525
|
+
var max = Math.max;
|
526
|
+
// /add necessary es5-shim utilities
|
527
|
+
|
528
|
+
// 1. Let Target be the this value.
|
529
|
+
var target = this;
|
530
|
+
// 2. If IsCallable(Target) is false, throw a TypeError exception.
|
531
|
+
if (!isCallable(target)) {
|
532
|
+
throw new TypeError('Function.prototype.bind called on incompatible ' + target);
|
533
|
+
}
|
534
|
+
// 3. Let A be a new (possibly empty) internal list of all of the
|
535
|
+
// argument values provided after thisArg (arg1, arg2 etc), in order.
|
536
|
+
// XXX slicedArgs will stand in for "A" if used
|
537
|
+
var args = array_slice.call(arguments, 1); // for normal call
|
538
|
+
// 4. Let F be a new native ECMAScript object.
|
539
|
+
// 11. Set the [[Prototype]] internal property of F to the standard
|
540
|
+
// built-in Function prototype object as specified in 15.3.3.1.
|
541
|
+
// 12. Set the [[Call]] internal property of F as described in
|
542
|
+
// 15.3.4.5.1.
|
543
|
+
// 13. Set the [[Construct]] internal property of F as described in
|
544
|
+
// 15.3.4.5.2.
|
545
|
+
// 14. Set the [[HasInstance]] internal property of F as described in
|
546
|
+
// 15.3.4.5.3.
|
547
|
+
var bound;
|
548
|
+
var binder = function () {
|
549
|
+
|
550
|
+
if (this instanceof bound) {
|
551
|
+
// 15.3.4.5.2 [[Construct]]
|
552
|
+
// When the [[Construct]] internal method of a function object,
|
553
|
+
// F that was created using the bind function is called with a
|
554
|
+
// list of arguments ExtraArgs, the following steps are taken:
|
555
|
+
// 1. Let target be the value of F's [[TargetFunction]]
|
556
|
+
// internal property.
|
557
|
+
// 2. If target has no [[Construct]] internal method, a
|
558
|
+
// TypeError exception is thrown.
|
559
|
+
// 3. Let boundArgs be the value of F's [[BoundArgs]] internal
|
560
|
+
// property.
|
561
|
+
// 4. Let args be a new list containing the same values as the
|
562
|
+
// list boundArgs in the same order followed by the same
|
563
|
+
// values as the list ExtraArgs in the same order.
|
564
|
+
// 5. Return the result of calling the [[Construct]] internal
|
565
|
+
// method of target providing args as the arguments.
|
566
|
+
|
567
|
+
var result = target.apply(
|
568
|
+
this,
|
569
|
+
array_concat.call(args, array_slice.call(arguments))
|
570
|
+
);
|
571
|
+
if ($Object(result) === result) {
|
572
|
+
return result;
|
573
|
+
}
|
574
|
+
return this;
|
575
|
+
|
576
|
+
} else {
|
577
|
+
// 15.3.4.5.1 [[Call]]
|
578
|
+
// When the [[Call]] internal method of a function object, F,
|
579
|
+
// which was created using the bind function is called with a
|
580
|
+
// this value and a list of arguments ExtraArgs, the following
|
581
|
+
// steps are taken:
|
582
|
+
// 1. Let boundArgs be the value of F's [[BoundArgs]] internal
|
583
|
+
// property.
|
584
|
+
// 2. Let boundThis be the value of F's [[BoundThis]] internal
|
585
|
+
// property.
|
586
|
+
// 3. Let target be the value of F's [[TargetFunction]] internal
|
587
|
+
// property.
|
588
|
+
// 4. Let args be a new list containing the same values as the
|
589
|
+
// list boundArgs in the same order followed by the same
|
590
|
+
// values as the list ExtraArgs in the same order.
|
591
|
+
// 5. Return the result of calling the [[Call]] internal method
|
592
|
+
// of target providing boundThis as the this value and
|
593
|
+
// providing args as the arguments.
|
594
|
+
|
595
|
+
// equiv: target.call(this, ...boundArgs, ...args)
|
596
|
+
return target.apply(
|
597
|
+
that,
|
598
|
+
array_concat.call(args, array_slice.call(arguments))
|
599
|
+
);
|
600
|
+
|
601
|
+
}
|
602
|
+
|
603
|
+
};
|
604
|
+
|
605
|
+
// 15. If the [[Class]] internal property of Target is "Function", then
|
606
|
+
// a. Let L be the length property of Target minus the length of A.
|
607
|
+
// b. Set the length own property of F to either 0 or L, whichever is
|
608
|
+
// larger.
|
609
|
+
// 16. Else set the length own property of F to 0.
|
610
|
+
|
611
|
+
var boundLength = max(0, target.length - args.length);
|
612
|
+
|
613
|
+
// 17. Set the attributes of the length own property of F to the values
|
614
|
+
// specified in 15.3.5.1.
|
615
|
+
var boundArgs = [];
|
616
|
+
for (var i = 0; i < boundLength; i++) {
|
617
|
+
array_push.call(boundArgs, '$' + i);
|
618
|
+
}
|
619
|
+
|
620
|
+
// XXX Build a dynamic function with desired amount of arguments is the only
|
621
|
+
// way to set the length property of a function.
|
622
|
+
// In environments where Content Security Policies enabled (Chrome extensions,
|
623
|
+
// for ex.) all use of eval or Function costructor throws an exception.
|
624
|
+
// However in all of these environments Function.prototype.bind exists
|
625
|
+
// and so this code will never be executed.
|
626
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this, arguments); }')(binder);
|
627
|
+
|
628
|
+
if (target.prototype) {
|
629
|
+
Empty.prototype = target.prototype;
|
630
|
+
bound.prototype = new Empty();
|
631
|
+
// Clean up dangling references.
|
632
|
+
Empty.prototype = null;
|
633
|
+
}
|
634
|
+
|
635
|
+
// TODO
|
636
|
+
// 18. Set the [[Extensible]] internal property of F to true.
|
637
|
+
|
638
|
+
// TODO
|
639
|
+
// 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
|
640
|
+
// 20. Call the [[DefineOwnProperty]] internal method of F with
|
641
|
+
// arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
|
642
|
+
// thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
|
643
|
+
// false.
|
644
|
+
// 21. Call the [[DefineOwnProperty]] internal method of F with
|
645
|
+
// arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
|
646
|
+
// [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
|
647
|
+
// and false.
|
648
|
+
|
649
|
+
// TODO
|
650
|
+
// NOTE Function objects created using Function.prototype.bind do not
|
651
|
+
// have a prototype property or the [[Code]], [[FormalParameters]], and
|
652
|
+
// [[Scope]] internal properties.
|
653
|
+
// XXX can't delete prototype in pure-js.
|
654
|
+
|
655
|
+
// 22. Return F.
|
656
|
+
return bound;
|
657
|
+
}
|
658
|
+
});
|
659
|
+
})
|
660
|
+
.call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
514
661
|
|
515
662
|
var KEY_SPACE = 32;
|
516
663
|
var DEBOUNCE_TIMEOUT_IN_SECONDS = 1;
|
517
|
-
var debounceFormSubmitTimer = null;
|
518
664
|
|
519
665
|
function Button ($module) {
|
520
666
|
this.$module = $module;
|
667
|
+
this.debounceFormSubmitTimer = null;
|
521
668
|
}
|
522
669
|
|
523
670
|
/**
|
524
|
-
*
|
525
|
-
*
|
671
|
+
* JavaScript 'shim' to trigger the click event of element(s) when the space key is pressed.
|
672
|
+
*
|
673
|
+
* Created since some Assistive Technologies (for example some Screenreaders)
|
674
|
+
* will tell a user to press space on a 'button', so this functionality needs to be shimmed
|
675
|
+
* See https://github.com/alphagov/govuk_elements/pull/272#issuecomment-233028270
|
676
|
+
*
|
526
677
|
* @param {object} event event
|
527
678
|
*/
|
528
679
|
Button.prototype.handleKeyDown = function (event) {
|
@@ -549,14 +700,14 @@ Button.prototype.debounce = function (event) {
|
|
549
700
|
}
|
550
701
|
|
551
702
|
// If the timer is still running then we want to prevent the click from submitting the form
|
552
|
-
if (debounceFormSubmitTimer) {
|
703
|
+
if (this.debounceFormSubmitTimer) {
|
553
704
|
event.preventDefault();
|
554
705
|
return false
|
555
706
|
}
|
556
707
|
|
557
|
-
debounceFormSubmitTimer = setTimeout(function () {
|
558
|
-
debounceFormSubmitTimer = null;
|
559
|
-
}, DEBOUNCE_TIMEOUT_IN_SECONDS * 1000);
|
708
|
+
this.debounceFormSubmitTimer = setTimeout(function () {
|
709
|
+
this.debounceFormSubmitTimer = null;
|
710
|
+
}.bind(this), DEBOUNCE_TIMEOUT_IN_SECONDS * 1000);
|
560
711
|
};
|
561
712
|
|
562
713
|
/**
|
File without changes
|
File without changes
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{# Set classes for this component #}
|
2
|
+
{%- set classNames = "govuk-button" -%}
|
3
|
+
|
4
|
+
{%- if params.classes %}
|
5
|
+
{% set classNames = classNames + " " + params.classes %}
|
6
|
+
{% endif %}
|
7
|
+
{% if params.disabled %}
|
8
|
+
{% set classNames = classNames + " govuk-button--disabled" %}
|
9
|
+
{% endif -%}
|
10
|
+
|
11
|
+
{# Determine type of element to use, if not explicitly set #}
|
12
|
+
{%- if params.element %}
|
13
|
+
{% set element = params.element | lower %}
|
14
|
+
{% else %}
|
15
|
+
{% if params.href %}
|
16
|
+
{% set element = 'a' %}
|
17
|
+
{% else %}
|
18
|
+
{% set element = 'button' %}
|
19
|
+
{% endif %}
|
20
|
+
{% endif -%}
|
21
|
+
|
22
|
+
{% if params.isStartButton %}
|
23
|
+
{% set iconHtml %}
|
24
|
+
{#- The SVG needs `focusable="false"` so that Internet Explorer does not
|
25
|
+
treat it as an interactive element - without this it will be
|
26
|
+
'focusable' when using the keyboard to navigate. #}
|
27
|
+
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" role="presentation" focusable="false">
|
28
|
+
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z"/>
|
29
|
+
</svg>
|
30
|
+
{% endset %}
|
31
|
+
{% set classNames = classNames + " govuk-button--start" %}
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
{#- Define common attributes that we can use across all element types #}
|
35
|
+
|
36
|
+
{%- set commonAttributes %} class="{{ classNames }}" data-module="govuk-button"{% for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}{% endset %}
|
37
|
+
|
38
|
+
{#- Define common attributes we can use for both button and input types #}
|
39
|
+
|
40
|
+
{%- set buttonAttributes %}{% if params.name %} name="{{ params.name }}"{% endif %} type="{{ params.type if params.type else 'submit' }}"{% if params.disabled %} disabled="disabled" aria-disabled="true"{% endif %}{% if params.preventDoubleClick %} data-prevent-double-click="true"{% endif %}{% endset %}
|
41
|
+
|
42
|
+
{#- Actually create a button... or a link! #}
|
43
|
+
|
44
|
+
{%- if element == 'a' %}
|
45
|
+
<a href="{{ params.href if params.href else '#' }}" role="button" draggable="false" {{- commonAttributes | safe }}>
|
46
|
+
{{ params.html | safe if params.html else params.text }}
|
47
|
+
{# Indentation is intentional to output HTML nicely #}
|
48
|
+
{{- iconHtml | safe | trim | indent(2, true) if iconHtml -}}
|
49
|
+
</a>
|
50
|
+
|
51
|
+
{%- elseif element == 'button' %}
|
52
|
+
<button {%- if params.value %} value="{{ params.value }}"{% endif %} {{- buttonAttributes | safe }} {{- commonAttributes | safe }}>
|
53
|
+
{{ params.html | safe if params.html else params.text }}
|
54
|
+
{# Indentation is intentional to output HTML nicely #}
|
55
|
+
{{- iconHtml | safe | trim | indent(2, true) if iconHtml -}}
|
56
|
+
</button>
|
57
|
+
|
58
|
+
{%- elseif element == 'input' %}
|
59
|
+
<input value="{{ params.text }}" {{- buttonAttributes | safe }} {{- commonAttributes | safe }}>
|
60
|
+
{%- endif %}
|
File without changes
|
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/character-count/character-count.js
RENAMED
@@ -1016,7 +1016,7 @@ if (detect) return
|
|
1016
1016
|
|
1017
1017
|
function CharacterCount ($module) {
|
1018
1018
|
this.$module = $module;
|
1019
|
-
this.$textarea = $module.querySelector('.js-character-count');
|
1019
|
+
this.$textarea = $module.querySelector('.govuk-js-character-count');
|
1020
1020
|
}
|
1021
1021
|
|
1022
1022
|
CharacterCount.prototype.defaults = {
|
@@ -1156,8 +1156,12 @@ CharacterCount.prototype.updateCountMessage = function () {
|
|
1156
1156
|
var thresholdValue = maxLength * thresholdPercent / 100;
|
1157
1157
|
if (thresholdValue > currentLength) {
|
1158
1158
|
countMessage.classList.add('govuk-character-count__message--disabled');
|
1159
|
+
// Ensure threshold is hidden for users of assistive technologies
|
1160
|
+
countMessage.setAttribute('aria-hidden', true);
|
1159
1161
|
} else {
|
1160
1162
|
countMessage.classList.remove('govuk-character-count__message--disabled');
|
1163
|
+
// Ensure threshold is visible for users of assistive technologies
|
1164
|
+
countMessage.removeAttribute('aria-hidden');
|
1161
1165
|
}
|
1162
1166
|
|
1163
1167
|
// Update styles
|
data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro-options.json
RENAMED
File without changes
|
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/character-count/template.njk
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
{% from "../textarea/macro.njk" import govukTextarea %}
|
2
2
|
|
3
|
-
<div class="govuk-character-count" data-module="character-count"
|
3
|
+
<div class="govuk-character-count" data-module="govuk-character-count"
|
4
4
|
{%- if params.maxlength %} data-maxlength="{{ params.maxlength }}"{% endif %}
|
5
5
|
{%- if params.threshold %} data-threshold="{{ params.threshold }}"{% endif %}
|
6
6
|
{%- if params.maxwords %} data-maxwords="{{ params.maxwords }}"{% endif %}>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
describedBy: params.id + '-info',
|
11
11
|
rows: params.rows,
|
12
12
|
value: params.value,
|
13
|
-
classes: 'js-character-count ' + (' govuk-textarea--error' if params.errorMessage) + (params.classes if params.classes),
|
13
|
+
classes: 'govuk-js-character-count ' + (' govuk-textarea--error' if params.errorMessage) + (params.classes if params.classes),
|
14
14
|
label: {
|
15
15
|
html: params.label.html,
|
16
16
|
text: params.label.text,
|
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/_checkboxes.scss
RENAMED
@@ -127,11 +127,7 @@
|
|
127
127
|
|
128
128
|
// Focused state
|
129
129
|
.govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
|
130
|
-
|
131
|
-
// a transparent outline that is shown instead.
|
132
|
-
// https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/
|
133
|
-
outline: $govuk-focus-width solid transparent;
|
134
|
-
outline-offset: $govuk-focus-width;
|
130
|
+
border-width: 4px;
|
135
131
|
box-shadow: 0 0 0 $govuk-focus-width $govuk-focus-colour;
|
136
132
|
}
|
137
133
|
|
@@ -154,7 +150,9 @@
|
|
154
150
|
// Conditional reveals
|
155
151
|
// =========================================================
|
156
152
|
|
157
|
-
|
153
|
+
// The narrow border is used in the conditional reveals because the border has
|
154
|
+
// to be an even number in order to be centred under the 40px checkbox or radio.
|
155
|
+
$conditional-border-width: $govuk-border-width-narrow;
|
158
156
|
// Calculate the amount of padding needed to keep the border centered against the checkbox.
|
159
157
|
$conditional-border-padding: ($govuk-checkboxes-size / 2) - ($conditional-border-width / 2);
|
160
158
|
// Move the border centered with the checkbox
|
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro-options.json
RENAMED
@@ -1,4 +1,10 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"name": "describedBy",
|
4
|
+
"type": "string",
|
5
|
+
"required": false,
|
6
|
+
"description": "One or more element IDs to add to the input `aria-describedby` attribute without a fieldset, used to provide additional descriptive information for screenreader users."
|
7
|
+
},
|
2
8
|
{
|
3
9
|
"name": "fieldset",
|
4
10
|
"type": "object",
|
File without changes
|
@@ -9,7 +9,10 @@
|
|
9
9
|
|
10
10
|
{#- a record of other elements that we need to associate with the input using
|
11
11
|
aria-describedby – for example hints or error messages -#}
|
12
|
-
{% set describedBy = "" %}
|
12
|
+
{% set describedBy = params.describedBy if params.describedBy else "" %}
|
13
|
+
{% if params.fieldset.describedBy %}
|
14
|
+
{% set describedBy = params.fieldset.describedBy %}
|
15
|
+
{% endif %}
|
13
16
|
|
14
17
|
{% set isConditional = false %}
|
15
18
|
{% for item in params.items %}
|
@@ -48,9 +51,19 @@
|
|
48
51
|
{% endif %}
|
49
52
|
<div class="govuk-checkboxes {%- if params.classes %} {{ params.classes }}{% endif %}"
|
50
53
|
{%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}
|
51
|
-
{%- if isConditional %} data-module="checkboxes"{% endif -%}>
|
54
|
+
{%- if isConditional %} data-module="govuk-checkboxes"{% endif -%}>
|
52
55
|
{% for item in params.items %}
|
53
|
-
{
|
56
|
+
{#- If the user explicitly sets an id, use this instead of the regular idPrefix -#}
|
57
|
+
{%- if item.id -%}
|
58
|
+
{%- set id = item.id -%}
|
59
|
+
{%- else -%}
|
60
|
+
{#- The first id should not have a number suffix so it's easy to link to from the error summary component -#}
|
61
|
+
{%- if loop.first -%}
|
62
|
+
{%- set id = idPrefix %}
|
63
|
+
{% else %}
|
64
|
+
{%- set id = idPrefix + "-" + loop.index -%}
|
65
|
+
{%- endif -%}
|
66
|
+
{%- endif -%}
|
54
67
|
{% set name = item.name if item.name else params.name %}
|
55
68
|
{% set conditionalId = "conditional-" + id %}
|
56
69
|
{% set hasHint = true if item.hint.text or item.hint.html %}
|
@@ -71,7 +84,7 @@
|
|
71
84
|
attributes: item.label.attributes,
|
72
85
|
for: id
|
73
86
|
}) | indent(6) | trim }}
|
74
|
-
{
|
87
|
+
{% if hasHint %}
|
75
88
|
{{ govukHint({
|
76
89
|
id: itemHintId,
|
77
90
|
classes: 'govuk-checkboxes__hint',
|
@@ -79,7 +92,7 @@
|
|
79
92
|
html: item.hint.html,
|
80
93
|
text: item.hint.text
|
81
94
|
}) | indent(6) | trim }}
|
82
|
-
{
|
95
|
+
{% endif %}
|
83
96
|
</div>
|
84
97
|
{% if item.conditional %}
|
85
98
|
<div class="govuk-checkboxes__conditional{% if not item.checked %} govuk-checkboxes__conditional--hidden{% endif %}" id="{{ conditionalId }}">
|
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/date-input/_date-input.scss
RENAMED
File without changes
|
data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro-options.json
RENAMED
File without changes
|
File without changes
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
{#- a record of other elements that we need to associate with the input using
|
7
7
|
aria-describedby – for example hints or error messages -#}
|
8
|
-
{% set describedBy = "" %}
|
8
|
+
{% set describedBy = params.fieldset.describedBy if params.fieldset.describedBy else "" %}
|
9
9
|
|
10
10
|
{% if params.items %}
|
11
11
|
{% set dateInputItems = params.items %}
|
File without changes
|
@@ -27,6 +27,14 @@
|
|
27
27
|
// Style the summary to look like a link...
|
28
28
|
color: $govuk-link-colour;
|
29
29
|
cursor: pointer;
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
color: $govuk-link-hover-colour;
|
33
|
+
}
|
34
|
+
|
35
|
+
&:focus {
|
36
|
+
@include govuk-focused-text;
|
37
|
+
}
|
30
38
|
}
|
31
39
|
|
32
40
|
// ...but only underline the text, not the arrow
|
@@ -34,18 +42,9 @@
|
|
34
42
|
text-decoration: underline;
|
35
43
|
}
|
36
44
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
.govuk-details__summary:focus {
|
42
|
-
// -1px offset fixes gap between background and outline in Firefox
|
43
|
-
outline: ($govuk-focus-width + 1px) solid $govuk-focus-colour;
|
44
|
-
outline-offset: -1px;
|
45
|
-
// When focussed, the text colour needs to be darker to ensure that colour
|
46
|
-
// contrast is still acceptable
|
47
|
-
color: $govuk-focus-text-colour;
|
48
|
-
background: $govuk-focus-colour;
|
45
|
+
// Remove the underline when focussed to avoid duplicate borders
|
46
|
+
.govuk-details__summary:focus .govuk-details__summary-text {
|
47
|
+
text-decoration: none;
|
49
48
|
}
|
50
49
|
|
51
50
|
// Remove the default details marker so we can style our own consistently and
|
@@ -59,7 +58,7 @@
|
|
59
58
|
content: "";
|
60
59
|
position: absolute;
|
61
60
|
|
62
|
-
top:
|
61
|
+
top: -1px;
|
63
62
|
bottom: 0;
|
64
63
|
left: 0;
|
65
64
|
|