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
@@ -1,134 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
<title>Accessible Autocomplete examples</title>
|
7
|
-
<style>
|
8
|
-
/* Example page specific styling. */
|
9
|
-
html {
|
10
|
-
color: #111;
|
11
|
-
background: #FFF;
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
|
13
|
-
font-size: 16px;
|
14
|
-
line-height: 1.5;
|
15
|
-
}
|
16
|
-
|
17
|
-
body {
|
18
|
-
padding-left: 1rem;
|
19
|
-
padding-right: 1rem;
|
20
|
-
}
|
21
|
-
|
22
|
-
h1, h2, h3, h4, h5, h6 {
|
23
|
-
line-height: normal;
|
24
|
-
}
|
25
|
-
|
26
|
-
label {
|
27
|
-
display: block;
|
28
|
-
margin-bottom: .5rem;
|
29
|
-
}
|
30
|
-
|
31
|
-
code {
|
32
|
-
padding-left: .5em;
|
33
|
-
padding-right: .5em;
|
34
|
-
background: #EFEFEF;
|
35
|
-
font-weight: normal;
|
36
|
-
font-family: monospace;
|
37
|
-
}
|
38
|
-
|
39
|
-
main {
|
40
|
-
max-width: 40em;
|
41
|
-
margin-left: auto;
|
42
|
-
margin-right: auto;
|
43
|
-
}
|
44
|
-
|
45
|
-
.autocomplete-wrapper {
|
46
|
-
max-width: 20em;
|
47
|
-
margin-bottom: 4rem;
|
48
|
-
}
|
49
|
-
</style>
|
50
|
-
<link rel="stylesheet" href="../dist/accessible-autocomplete.min.css">
|
51
|
-
</head>
|
52
|
-
<body>
|
53
|
-
<main>
|
54
|
-
<h1>Accessible Autocomplete examples</h1>
|
55
|
-
|
56
|
-
<p><a href="form.html">Example in a real HTML form that you can submit</a></p>
|
57
|
-
|
58
|
-
<h3>Multiselect</h3>
|
59
|
-
<p>
|
60
|
-
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
61
|
-
Turn off JavaScript to see the <code><select multiple></code> element.
|
62
|
-
</p>
|
63
|
-
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
64
|
-
<label for="multiselect-progressiveEnhancement">Select your country</label>
|
65
|
-
<div class="autocomplete-wrapper">
|
66
|
-
<select multiple id="multiselect-progressiveEnhancement">
|
67
|
-
<option value="fr">France</option>
|
68
|
-
<option value="de">Germany</option>
|
69
|
-
<option value="gb">United Kingdom</option>
|
70
|
-
<option value="ae">United Arab Emirates</option>
|
71
|
-
</select>
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<h3>Multiselect with pre-selected values</h3>
|
75
|
-
<p>
|
76
|
-
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
77
|
-
Turn off JavaScript to see the <code><select multiple></code> element.
|
78
|
-
</p>
|
79
|
-
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
80
|
-
<label for="multiselect-preselected-progressiveEnhancement">Select your country</label>
|
81
|
-
<div class="autocomplete-wrapper">
|
82
|
-
<select multiple id="multiselect-preselected-progressiveEnhancement">
|
83
|
-
<option value="fr">France</option>
|
84
|
-
<option value="de" selected>Germany</option>
|
85
|
-
<option value="gb" selected>United Kingdom</option>
|
86
|
-
<option value="ae">United Arab Emirates</option>
|
87
|
-
</select>
|
88
|
-
</div>
|
89
|
-
|
90
|
-
<h3>Multiselect with empty option</h3>
|
91
|
-
<p>
|
92
|
-
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
93
|
-
Turn off JavaScript to see the <code><select multiple></code> element.
|
94
|
-
</p>
|
95
|
-
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
96
|
-
<label for="multiselect-empty-option-progressiveEnhancement">Select your country</label>
|
97
|
-
<div class="autocomplete-wrapper">
|
98
|
-
<select multiple id="multiselect-empty-option-progressiveEnhancement">
|
99
|
-
<option value=""></option>
|
100
|
-
<option value="fr">France</option>
|
101
|
-
<option value="de">Germany</option>
|
102
|
-
<option value="gb">United Kingdom</option>
|
103
|
-
<option value="ae">United Arab Emirates</option>
|
104
|
-
</select>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</main>
|
108
|
-
|
109
|
-
<script type="text/javascript" src="../dist/accessible-autocomplete.min.js"></script>
|
110
|
-
|
111
|
-
<script type="text/javascript">
|
112
|
-
element = document.querySelector('#multiselect-progressiveEnhancement')
|
113
|
-
accessibleAutocomplete.enhanceSelectElement({
|
114
|
-
selectElement: element
|
115
|
-
})
|
116
|
-
</script>
|
117
|
-
|
118
|
-
<script type="text/javascript">
|
119
|
-
element = document.querySelector('#multiselect-preselected-progressiveEnhancement')
|
120
|
-
accessibleAutocomplete.enhanceSelectElement({
|
121
|
-
selectElement: element
|
122
|
-
})
|
123
|
-
</script>
|
124
|
-
|
125
|
-
<script type="text/javascript">
|
126
|
-
element = document.querySelector('#multiselect-empty-option-progressiveEnhancement')
|
127
|
-
accessibleAutocomplete.enhanceSelectElement({
|
128
|
-
showAllValues: true,
|
129
|
-
selectElement: element
|
130
|
-
})
|
131
|
-
</script>
|
132
|
-
|
133
|
-
</body>
|
134
|
-
</html>
|
@@ -1,346 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
-
<title>Accessible Autocomplete Preact examples</title>
|
7
|
-
<style>
|
8
|
-
/* Example page specific styling. */
|
9
|
-
html {
|
10
|
-
color: #111;
|
11
|
-
background: #FFF;
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
|
13
|
-
font-size: 16px;
|
14
|
-
line-height: 1.5;
|
15
|
-
}
|
16
|
-
|
17
|
-
body {
|
18
|
-
padding-left: 1rem;
|
19
|
-
padding-right: 1rem;
|
20
|
-
}
|
21
|
-
|
22
|
-
h1, h2, h3, h4, h5, h6 {
|
23
|
-
line-height: normal;
|
24
|
-
}
|
25
|
-
|
26
|
-
label {
|
27
|
-
display: block;
|
28
|
-
margin-bottom: .5rem;
|
29
|
-
}
|
30
|
-
|
31
|
-
code {
|
32
|
-
padding-left: .5em;
|
33
|
-
padding-right: .5em;
|
34
|
-
background: #EFEFEF;
|
35
|
-
font-weight: normal;
|
36
|
-
font-family: monospace;
|
37
|
-
}
|
38
|
-
|
39
|
-
main {
|
40
|
-
max-width: 40em;
|
41
|
-
margin-left: auto;
|
42
|
-
margin-right: auto;
|
43
|
-
}
|
44
|
-
|
45
|
-
.autocomplete-wrapper {
|
46
|
-
max-width: 20em;
|
47
|
-
margin-bottom: 4rem;
|
48
|
-
}
|
49
|
-
</style>
|
50
|
-
<link rel="stylesheet" href="../../dist/accessible-autocomplete.min.css">
|
51
|
-
</head>
|
52
|
-
<body>
|
53
|
-
<main>
|
54
|
-
<h1>Accessible Autocomplete Preact examples</h1>
|
55
|
-
|
56
|
-
<p>This page demonstrates using the autocomplete directly in Preact.</p>
|
57
|
-
|
58
|
-
<label for="autocomplete-default">Select your country</label>
|
59
|
-
<div id="tt-default" class="autocomplete-wrapper"></div>
|
60
|
-
</main>
|
61
|
-
|
62
|
-
<!-- We include the development version of Preact for debugging purposes. -->
|
63
|
-
<script type="text/javascript" src="https://unpkg.com/preact@8.1.0/dist/preact.js"></script>
|
64
|
-
<script type="text/javascript" src="../../dist/lib/accessible-autocomplete.preact.min.js"></script>
|
65
|
-
<script type="text/javascript">
|
66
|
-
function suggest (query, syncResults) {
|
67
|
-
var results = [
|
68
|
-
'Afghanistan',
|
69
|
-
'Akrotiri',
|
70
|
-
'Albania',
|
71
|
-
'Algeria',
|
72
|
-
'American Samoa',
|
73
|
-
'Andorra',
|
74
|
-
'Angola',
|
75
|
-
'Anguilla',
|
76
|
-
'Antarctica',
|
77
|
-
'Antigua and Barbuda',
|
78
|
-
'Argentina',
|
79
|
-
'Armenia',
|
80
|
-
'Aruba',
|
81
|
-
'Ashmore and Cartier Islands',
|
82
|
-
'Australia',
|
83
|
-
'Austria',
|
84
|
-
'Azerbaijan',
|
85
|
-
'Bahamas, The',
|
86
|
-
'Bahrain',
|
87
|
-
'Bangladesh',
|
88
|
-
'Barbados',
|
89
|
-
'Bassas da India',
|
90
|
-
'Belarus',
|
91
|
-
'Belgium',
|
92
|
-
'Belize',
|
93
|
-
'Benin',
|
94
|
-
'Bermuda',
|
95
|
-
'Bhutan',
|
96
|
-
'Bolivia',
|
97
|
-
'Bosnia and Herzegovina',
|
98
|
-
'Botswana',
|
99
|
-
'Bouvet Island',
|
100
|
-
'Brazil',
|
101
|
-
'British Indian Ocean Territory',
|
102
|
-
'British Virgin Islands',
|
103
|
-
'Brunei',
|
104
|
-
'Bulgaria',
|
105
|
-
'Burkina Faso',
|
106
|
-
'Burma',
|
107
|
-
'Burundi',
|
108
|
-
'Cambodia',
|
109
|
-
'Cameroon',
|
110
|
-
'Canada',
|
111
|
-
'Cape Verde',
|
112
|
-
'Cayman Islands',
|
113
|
-
'Central African Republic',
|
114
|
-
'Chad',
|
115
|
-
'Chile',
|
116
|
-
'China',
|
117
|
-
'Christmas Island',
|
118
|
-
'Clipperton Island',
|
119
|
-
'Cocos (Keeling) Islands',
|
120
|
-
'Colombia',
|
121
|
-
'Comoros',
|
122
|
-
'Congo',
|
123
|
-
'Cook Islands',
|
124
|
-
'Coral Sea Islands',
|
125
|
-
'Costa Rica',
|
126
|
-
'Cote d\'Ivoire',
|
127
|
-
'Croatia',
|
128
|
-
'Cuba',
|
129
|
-
'Cyprus',
|
130
|
-
'Czech Republic',
|
131
|
-
'Denmark',
|
132
|
-
'Dhekelia',
|
133
|
-
'Djibouti',
|
134
|
-
'Dominica',
|
135
|
-
'Dominican Republic',
|
136
|
-
'Ecuador',
|
137
|
-
'Egypt',
|
138
|
-
'El Salvador',
|
139
|
-
'Equatorial Guinea',
|
140
|
-
'Eritrea',
|
141
|
-
'Estonia',
|
142
|
-
'Ethiopia',
|
143
|
-
'Europa Island',
|
144
|
-
'Falkland Islands',
|
145
|
-
'Faroe Islands',
|
146
|
-
'Fiji',
|
147
|
-
'Finland',
|
148
|
-
'France',
|
149
|
-
'French Guiana',
|
150
|
-
'French Polynesia',
|
151
|
-
'French Southern and Antarctic Lands',
|
152
|
-
'Gabon',
|
153
|
-
'Gambia,',
|
154
|
-
'Gaza Strip',
|
155
|
-
'Georgia',
|
156
|
-
'Germany',
|
157
|
-
'Ghana',
|
158
|
-
'Gibraltar',
|
159
|
-
'Glorioso Islands',
|
160
|
-
'Greece',
|
161
|
-
'Greenland',
|
162
|
-
'Grenada',
|
163
|
-
'Guadeloupe',
|
164
|
-
'Guam',
|
165
|
-
'Guatemala',
|
166
|
-
'Guernsey',
|
167
|
-
'Guinea',
|
168
|
-
'Guinea-Bissau',
|
169
|
-
'Guyana',
|
170
|
-
'Haiti',
|
171
|
-
'Heard Island and McDonald Islands',
|
172
|
-
'Holy See (Vatican City)',
|
173
|
-
'Honduras',
|
174
|
-
'Hong Kong',
|
175
|
-
'Hungary',
|
176
|
-
'Iceland',
|
177
|
-
'India',
|
178
|
-
'Indonesia',
|
179
|
-
'Iran',
|
180
|
-
'Iraq',
|
181
|
-
'Ireland',
|
182
|
-
'Isle of Man',
|
183
|
-
'Israel',
|
184
|
-
'Italy',
|
185
|
-
'Jamaica',
|
186
|
-
'Jan Mayen',
|
187
|
-
'Japan',
|
188
|
-
'Jersey',
|
189
|
-
'Jordan',
|
190
|
-
'Juan de Nova Island',
|
191
|
-
'Kazakhstan',
|
192
|
-
'Kenya',
|
193
|
-
'Kiribati',
|
194
|
-
'Korea, North',
|
195
|
-
'Korea, South',
|
196
|
-
'Kuwait',
|
197
|
-
'Kyrgyzstan',
|
198
|
-
'Laos',
|
199
|
-
'Latvia',
|
200
|
-
'Lebanon',
|
201
|
-
'Lesotho',
|
202
|
-
'Liberia',
|
203
|
-
'Libya',
|
204
|
-
'Liechtenstein',
|
205
|
-
'Lithuania',
|
206
|
-
'Luxembourg',
|
207
|
-
'Macau',
|
208
|
-
'Macedonia',
|
209
|
-
'Madagascar',
|
210
|
-
'Malawi',
|
211
|
-
'Malaysia',
|
212
|
-
'Maldives',
|
213
|
-
'Mali',
|
214
|
-
'Malta',
|
215
|
-
'Marshall Islands',
|
216
|
-
'Martinique',
|
217
|
-
'Mauritania',
|
218
|
-
'Mauritius',
|
219
|
-
'Mayotte',
|
220
|
-
'Mexico',
|
221
|
-
'Micronesia, Federated States of',
|
222
|
-
'Moldova',
|
223
|
-
'Monaco',
|
224
|
-
'Mongolia',
|
225
|
-
'Montserrat',
|
226
|
-
'Morocco',
|
227
|
-
'Mozambique',
|
228
|
-
'Namibia',
|
229
|
-
'Nauru',
|
230
|
-
'Navassa Island',
|
231
|
-
'Nepal',
|
232
|
-
'Netherlands',
|
233
|
-
'Netherlands Antilles',
|
234
|
-
'New Caledonia',
|
235
|
-
'New Zealand',
|
236
|
-
'Nicaragua',
|
237
|
-
'Niger',
|
238
|
-
'Nigeria',
|
239
|
-
'Niue',
|
240
|
-
'Norfolk Island',
|
241
|
-
'Northern Mariana Islands',
|
242
|
-
'Norway',
|
243
|
-
'Oman',
|
244
|
-
'Pakistan',
|
245
|
-
'Palau',
|
246
|
-
'Panama',
|
247
|
-
'Papua New Guinea',
|
248
|
-
'Paracel Islands',
|
249
|
-
'Paraguay',
|
250
|
-
'Peru',
|
251
|
-
'Philippines',
|
252
|
-
'Pitcairn Islands',
|
253
|
-
'Poland',
|
254
|
-
'Portugal',
|
255
|
-
'Puerto Rico',
|
256
|
-
'Qatar',
|
257
|
-
'Reunion',
|
258
|
-
'Romania',
|
259
|
-
'Russia',
|
260
|
-
'Rwanda',
|
261
|
-
'Saint Helena',
|
262
|
-
'Saint Kitts and Nevis',
|
263
|
-
'Saint Lucia',
|
264
|
-
'Saint Pierre and Miquelon',
|
265
|
-
'Saint Vincent and the Grenadines',
|
266
|
-
'Samoa',
|
267
|
-
'San Marino',
|
268
|
-
'Sao Tome and Principe',
|
269
|
-
'Saudi Arabia',
|
270
|
-
'Senegal',
|
271
|
-
'Serbia and Montenegro',
|
272
|
-
'Seychelles',
|
273
|
-
'Sierra Leone',
|
274
|
-
'Singapore',
|
275
|
-
'Slovakia',
|
276
|
-
'Slovenia',
|
277
|
-
'Solomon Islands',
|
278
|
-
'Somalia',
|
279
|
-
'South Africa',
|
280
|
-
'South Georgia and the South Sandwich Islands',
|
281
|
-
'Spain',
|
282
|
-
'Spratly Islands',
|
283
|
-
'Sri Lanka',
|
284
|
-
'Sudan',
|
285
|
-
'Suriname',
|
286
|
-
'Svalbard',
|
287
|
-
'Swaziland',
|
288
|
-
'Sweden',
|
289
|
-
'Switzerland',
|
290
|
-
'Syria',
|
291
|
-
'Taiwan',
|
292
|
-
'Tajikistan',
|
293
|
-
'Tanzania',
|
294
|
-
'Thailand',
|
295
|
-
'Timor-Leste',
|
296
|
-
'Togo',
|
297
|
-
'Tokelau',
|
298
|
-
'Tonga',
|
299
|
-
'Trinidad and Tobago',
|
300
|
-
'Tromelin Island',
|
301
|
-
'Tunisia',
|
302
|
-
'Turkey',
|
303
|
-
'Turkmenistan',
|
304
|
-
'Turks and Caicos Islands',
|
305
|
-
'Tuvalu',
|
306
|
-
'Uganda',
|
307
|
-
'Ukraine',
|
308
|
-
'United Arab Emirates',
|
309
|
-
'United Kingdom',
|
310
|
-
'United States',
|
311
|
-
'Uruguay',
|
312
|
-
'Uzbekistan',
|
313
|
-
'Vanuatu',
|
314
|
-
'Venezuela',
|
315
|
-
'Vietnam',
|
316
|
-
'Virgin Islands',
|
317
|
-
'Wake Island',
|
318
|
-
'Wallis and Futuna',
|
319
|
-
'West Bank',
|
320
|
-
'Western Sahara',
|
321
|
-
'Yemen',
|
322
|
-
'Zambia',
|
323
|
-
'Zimbabwe'
|
324
|
-
]
|
325
|
-
syncResults(query
|
326
|
-
? results.filter(function (result) {
|
327
|
-
return result.toLowerCase().indexOf(query.toLowerCase()) !== -1
|
328
|
-
})
|
329
|
-
: []
|
330
|
-
)
|
331
|
-
}
|
332
|
-
</script>
|
333
|
-
|
334
|
-
<script type="text/javascript">
|
335
|
-
var element = document.querySelector('#tt-default')
|
336
|
-
var id = 'autocomplete-default'
|
337
|
-
preact.render(
|
338
|
-
preact.createElement(Autocomplete.default, {
|
339
|
-
id: id,
|
340
|
-
source: suggest
|
341
|
-
}),
|
342
|
-
element
|
343
|
-
)
|
344
|
-
</script>
|
345
|
-
</body>
|
346
|
-
</html>
|