govuk_publishing_components 42.0.0 → 43.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/stylesheets/govuk_publishing_components/_all_components.scss +2 -1
- data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +18 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +15 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +20 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +21 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +27 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_chat-entry.scss +36 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +29 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +23 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +19 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +5 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +19 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +23 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +29 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +7 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +21 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +22 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +11 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +24 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +2 -0
- data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_chat_entry.html.erb +46 -0
- data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +6 -4
- data/app/views/govuk_publishing_components/components/_contextual_footer.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_error_alert.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_intervention.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +3 -5
- data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/cross_service_header/_one_login_header.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/cross_service_header/_service_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/docs/chat_entry.yml +36 -0
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +3 -3
- data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +1 -1
- data/{node_modules/govuk-frontend/dist/govuk/components/header/template-with-tudor-crown.html → app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo.html.erb} +5 -12
- data/app/views/govuk_publishing_components/components/govuk_logo/_govuk_logo_crown_only.html.erb +15 -0
- data/app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb +6 -27
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -13
- data/config/locales/ar.yml +4 -1
- data/config/locales/az.yml +4 -1
- data/config/locales/be.yml +4 -1
- data/config/locales/bg.yml +4 -1
- data/config/locales/bn.yml +4 -1
- data/config/locales/cs.yml +4 -1
- data/config/locales/cy.yml +4 -1
- data/config/locales/da.yml +4 -1
- data/config/locales/de.yml +4 -1
- data/config/locales/dr.yml +4 -1
- data/config/locales/el.yml +4 -1
- data/config/locales/en.yml +3 -0
- data/config/locales/es-419.yml +4 -1
- data/config/locales/es.yml +4 -1
- data/config/locales/et.yml +4 -1
- data/config/locales/fa.yml +4 -1
- data/config/locales/fi.yml +4 -1
- data/config/locales/fr.yml +4 -1
- data/config/locales/gd.yml +4 -1
- data/config/locales/gu.yml +4 -1
- data/config/locales/he.yml +4 -1
- data/config/locales/hi.yml +4 -1
- data/config/locales/hr.yml +4 -1
- data/config/locales/hu.yml +4 -1
- data/config/locales/hy.yml +4 -1
- data/config/locales/id.yml +4 -1
- data/config/locales/is.yml +4 -1
- data/config/locales/it.yml +4 -1
- data/config/locales/ja.yml +4 -1
- data/config/locales/ka.yml +4 -1
- data/config/locales/kk.yml +4 -1
- data/config/locales/ko.yml +4 -1
- data/config/locales/lt.yml +4 -1
- data/config/locales/lv.yml +4 -1
- data/config/locales/ms.yml +4 -1
- data/config/locales/mt.yml +4 -1
- data/config/locales/nl.yml +4 -1
- data/config/locales/no.yml +4 -1
- data/config/locales/pa-pk.yml +4 -1
- data/config/locales/pa.yml +4 -1
- data/config/locales/pl.yml +4 -1
- data/config/locales/ps.yml +4 -1
- data/config/locales/pt.yml +4 -1
- data/config/locales/ro.yml +4 -1
- data/config/locales/ru.yml +4 -1
- data/config/locales/si.yml +4 -1
- data/config/locales/sk.yml +4 -1
- data/config/locales/sl.yml +4 -1
- data/config/locales/so.yml +4 -1
- data/config/locales/sq.yml +4 -1
- data/config/locales/sr.yml +4 -1
- data/config/locales/sv.yml +4 -1
- data/config/locales/sw.yml +4 -1
- data/config/locales/ta.yml +4 -1
- data/config/locales/th.yml +4 -1
- data/config/locales/tk.yml +4 -1
- data/config/locales/tr.yml +4 -1
- data/config/locales/uk.yml +4 -1
- data/config/locales/ur.yml +4 -1
- data/config/locales/uz.yml +4 -1
- data/config/locales/vi.yml +4 -1
- data/config/locales/zh-hk.yml +4 -1
- data/config/locales/zh-tw.yml +4 -1
- data/config/locales/zh.yml +4 -1
- data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +2 -1
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +451 -176
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +450 -177
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +13 -76
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.scss +1 -9
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +56 -36
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs +12 -20
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs +31 -0
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +7 -35
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +39 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +35 -31
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +177 -133
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +177 -133
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +80 -76
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +16 -3
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/template.njk +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +25 -15
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +53 -15
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +97 -39
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +97 -39
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +13 -3
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +125 -69
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +125 -69
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +17 -3
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-default.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-rows.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-custom-textarea-description.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value-exceeding-limit.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-default-value.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-label-as-page-heading.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-threshold.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-translations.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-word-count.html +1 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +72 -39
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +9 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +9 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +153 -47
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-default.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-conditional-reveal.html +11 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-disabled.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-error.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-hint.html +13 -13
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-long-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-a-medium-legend.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-item-checked.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items-with-special-characters.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-conditional-items.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-disabled-item.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-and-none.html +17 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-divider-none-and-conditional-items.html +24 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message-and-hints-on-items.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-error-message.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-fieldset-and-error-message.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-hints-on-items.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-id-and-name.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-legend-as-a-page-heading.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-optional-form-group-classes-showing-group-error.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-pre-checked-values.html +15 -16
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-and-hint-set-aria-describedby-on-input.html +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-single-option-set-aria-describedby-on-input.html +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-with-very-long-option-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-without-fieldset.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template.njk +58 -54
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +17 -14
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-accepted-confirmation-banner.html +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-client-side-implementation.html +38 -29
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +18 -13
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-rejected-confirmation-banner.html +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +19 -15
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template.njk +37 -44
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +1 -2
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/template.njk +10 -3
- data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/template.njk +6 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/template.njk +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +14 -3
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +12 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +48 -18
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-default.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-mixed-with-and-without-links.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-description-only.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-with-everything.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template-without-links.html +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/template.njk +19 -14
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +112 -61
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +112 -61
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +15 -4
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -5
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +8 -9
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +46 -23
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +41 -40
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +14 -13
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +56 -55
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta.html +28 -27
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +10 -9
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +42 -38
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +49 -26
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +29 -30
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +100 -101
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +40 -41
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +13 -16
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +21 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +31 -26
- data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/hint/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +138 -25
- data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +67 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-autocapitalize-turned-off.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +70 -14
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +7 -1
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template-with-html.html +8 -9
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/template.njk +3 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +50 -26
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +96 -37
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +12 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-disabled-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-auto-focus-explicitly-enabled-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-custom-tabindex.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-default.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-paragraph-as-html-heading.html +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-rolealert-overridden-to-roleregion-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-success-with-custom-html.html +9 -8
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-a-list.html +9 -8
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-long-heading.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-lots-of-content.html +12 -9
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-text-as-html.html +8 -5
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template-with-type-as-success.html +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/template.njk +11 -7
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +24 -37
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +30 -15
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-default.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-first-page.html +28 -16
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-last-page.html +29 -20
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-accessible-labels-on-item-links.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-link-and-item-text.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-navigation-landmark.html +38 -23
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-many-pages.html +64 -39
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-next-only.html +11 -4
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-labels.html +25 -13
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-and-very-long-labels.html +25 -13
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only-in-a-different-language.html +21 -11
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-prev-and-next-only.html +21 -11
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-previous-only.html +11 -7
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/template.njk +78 -63
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +14 -10
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/panel/template.njk +6 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +57 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_password-input.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +196 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +181 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro.njk +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +528 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +520 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +163 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-error-message.html +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-hint-text.html +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-input-width-class.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-label-as-page-heading.html +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-new-password-autocomplete.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-with-translations.html +11 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +91 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +6 -8
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +11 -6
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +113 -48
- data/node_modules/govuk-frontend/dist/govuk/components/radios/macro-options.json +41 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-default.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-inline.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked-using-value.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-prechecked.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline-extreme.html +40 -40
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-inline.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +13 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-conditional-reveal.html +15 -16
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-disabled.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-error.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-hint.html +13 -13
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-long-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +13 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-medium-legend.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-item-checked.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-and-pre-checked-value.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items-with-special-characters.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-conditional-items.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-disabled.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-fieldset-and-error-message.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-hints-on-items.html +10 -10
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-idprefix.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-legend-as-page-heading.html +8 -8
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-optional-form-group-classes-showing-group-error.html +21 -24
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-very-long-option-text.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-without-fieldset.html +12 -12
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template.njk +54 -50
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +42 -23
- data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-default.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-full-width-override.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-hint-text-and-error-message.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-label-as-page-heading.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-optional-form-group-classes.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-with-selected-value.html +3 -6
- data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +18 -8
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/template.njk +4 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +63 -32
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-custom-header-level.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-html-header.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-a-text-header.html +25 -20
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions-plus-summary-list-actions.html +46 -29
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-with-actions.html +33 -23
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-check-your-answers.html +96 -97
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-default.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-extreme.html +261 -70
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border-on-last-row.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-no-border.html +35 -36
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-overridden-widths.html +58 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-translated.html +51 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-actions.html +58 -45
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-no-first-action.html +58 -59
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-with-some-actions.html +45 -39
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template.njk +68 -65
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +93 -21
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-default.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-table-with-head-and-caption.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-table-with-head.html +15 -15
- data/node_modules/govuk-frontend/dist/govuk/components/table/template-with-small-text-modifier-for-tables-with-a-lot-of-data.html +19 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/template.njk +43 -31
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +27 -13
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +13 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +13 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +5 -11
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-default.html +110 -113
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template-tabs-with-anchor-in-panel.html +19 -21
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/template.njk +30 -18
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/tag/template.njk +5 -2
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +12 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +54 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-default.html +35 -28
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-3-states.html +47 -38
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-all-possible-colours.html +141 -116
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-hint-text-and-additional-states.html +72 -59
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-example-with-very-long-single-word-tags.html +35 -28
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +33 -23
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +40 -0
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +10 -2
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +8 -0
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/template.njk +3 -2
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +8 -12
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +44 -8
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss +14 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +19 -0
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +30 -62
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +18 -12
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/index.scss +11 -0
- data/node_modules/govuk-frontend/dist/govuk/index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +100 -0
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/macros/attributes.njk +94 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +8 -6
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss +8 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss +7 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +10 -0
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +8 -21
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +235 -9
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +23 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_measurements.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +172 -13
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss +8 -3
- data/node_modules/govuk-frontend/dist/govuk/settings/_warnings.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +3 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +8 -5
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +7 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +8 -2
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/utilities/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +5 -1
- data/node_modules/govuk-frontend/package.json +16 -15
- metadata +60 -3
data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
<ul class="govuk-task-list">
|
3
|
+
|
4
|
+
|
5
|
+
<li class="govuk-task-list__item govuk-task-list__item--with-link">
|
6
|
+
<div class="govuk-task-list__name-and-hint">
|
7
|
+
<a class="govuk-link govuk-task-list__link" href="#" aria-describedby="task-list-3-status">
|
8
|
+
Task A
|
9
|
+
</a>
|
10
|
+
</div>
|
11
|
+
<div class="govuk-task-list__status" id="task-list-3-status">
|
12
|
+
Completed
|
13
|
+
</div>
|
14
|
+
</li>
|
15
|
+
|
16
|
+
|
17
|
+
<li class="govuk-task-list__item govuk-task-list__item--with-link">
|
18
|
+
<div class="govuk-task-list__name-and-hint">
|
19
|
+
<a class="govuk-link govuk-task-list__link" href="#" aria-describedby="task-list-6-status">
|
20
|
+
Task B
|
21
|
+
</a>
|
22
|
+
</div>
|
23
|
+
<div class="govuk-task-list__status" id="task-list-6-status">
|
24
|
+
Completed
|
25
|
+
</div>
|
26
|
+
</li>
|
27
|
+
</ul>
|
@@ -1,31 +1,41 @@
|
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes %}
|
1
2
|
{% from "../tag/macro.njk" import govukTag %}
|
2
3
|
|
3
4
|
{%- set idPrefix = params.idPrefix if params.idPrefix else "task-list" -%}
|
4
5
|
|
5
|
-
|
6
|
-
{
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
{
|
17
|
-
<div id="{{ hintId }}" class="govuk-task-list__hint">
|
18
|
-
{{ item.hint.html | safe if item.hint.html else item.hint.text }}
|
19
|
-
</div>
|
20
|
-
{% endif %}
|
6
|
+
{%- macro _taskListItem(params, item, index) %}
|
7
|
+
{%- set hintId = idPrefix + "-" + index + "-hint" %}
|
8
|
+
{%- set statusId = idPrefix + "-" + index + "-status" %}
|
9
|
+
<li class="govuk-task-list__item {%- if item.href %} govuk-task-list__item--with-link{% endif %}{%- if item.classes %} {{ item.classes }}{% endif %}">
|
10
|
+
<div class="govuk-task-list__name-and-hint">
|
11
|
+
{% if item.href %}
|
12
|
+
<a class="govuk-link govuk-task-list__link {%- if item.title.classes %} {{ item.title.classes }}{% endif %}" href="{{ item.href }}" aria-describedby="{{ hintId + " " if item.hint }}{{ statusId }}">
|
13
|
+
{{ item.title.html | safe | trim | indent(8) if item.title.html else item.title.text }}
|
14
|
+
</a>
|
15
|
+
{% else %}
|
16
|
+
<div {%- if item.title.classes %} class="{{ item.title.classes }}"{% endif %}>
|
17
|
+
{{ item.title.html | safe | trim | indent(8) if item.title.html else item.title.text }}
|
21
18
|
</div>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
{
|
26
|
-
{{ item.status.html | safe if item.status.html else item.status.text }}
|
27
|
-
{% endif %}
|
19
|
+
{% endif %}
|
20
|
+
{% if item.hint %}
|
21
|
+
<div id="{{ hintId }}" class="govuk-task-list__hint">
|
22
|
+
{{ item.hint.html | safe | trim | indent(8) if item.hint.html else item.hint.text }}
|
28
23
|
</div>
|
29
|
-
|
24
|
+
{% endif %}
|
25
|
+
</div>
|
26
|
+
<div class="govuk-task-list__status {%- if item.status.classes %} {{ item.status.classes }}{% endif %}" id="{{ statusId }}">
|
27
|
+
{% if item.status.tag %}
|
28
|
+
{{ govukTag(item.status.tag) | trim | indent(6) }}
|
29
|
+
{% else %}
|
30
|
+
{{ item.status.html | safe | trim | indent(6) if item.status.html else item.status.text }}
|
31
|
+
{% endif %}
|
32
|
+
</div>
|
33
|
+
</li>
|
34
|
+
{%- endmacro %}
|
35
|
+
|
36
|
+
<ul class="govuk-task-list {%- if params.classes %} {{ params.classes }}{% endif %}"
|
37
|
+
{{- govukAttributes(params.attributes) }}>
|
38
|
+
{% for item in params.items %}
|
39
|
+
{{- _taskListItem(params, item, loop.index) if item }}
|
30
40
|
{% endfor %}
|
31
41
|
</ul>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
.govuk-textarea {
|
7
7
|
@include govuk-font($size: 19, $line-height: 1.25);
|
8
8
|
|
9
|
-
box-sizing: border-box;
|
9
|
+
box-sizing: border-box;
|
10
10
|
display: block;
|
11
11
|
width: 100%;
|
12
12
|
min-height: 40px;
|
@@ -25,8 +25,8 @@
|
|
25
25
|
// Ensure outline appears outside of the element
|
26
26
|
outline-offset: 0;
|
27
27
|
// Double the border by adding its width again. Use `box-shadow` to do
|
28
|
-
// this instead of changing `border-width` (which changes element size)
|
29
|
-
// since `outline` is already used for the yellow focus state.
|
28
|
+
// this instead of changing `border-width` (which changes element size)
|
29
|
+
// and since `outline` is already used for the yellow focus state.
|
30
30
|
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
31
31
|
}
|
32
32
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/textarea/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE;IACE,kDAAkD;;IAElD,sBAAsB
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/textarea/_index.scss"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uBAAuB;AACvB,wBAAwB;;AAExB;EACE;IACE,kDAAkD;;IAElD,sBAAsB;IACtB,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,6CAA6C;IAC7C,yBAAyB;;IAEzB,gBAAgB;;IAEhB,yEAAyE;IACzE,gBAAgB;;IAEhB,wBAAwB;;IAExB;MACE,qDAAqD;MACrD,+CAA+C;MAC/C,iBAAiB;MACjB,qEAAqE;MACrE,sEAAsE;MACtE,iEAAiE;MACjE,wDAAwD;IAC1D;;IAEA;MACE,YAAY;MACZ,cAAc;MACd,6BAA6B;MAC7B,mBAAmB;IACrB;EACF;;EAEA;IACE,iCAAiC;;IAEjC;MACE,wCAAwC;IAC1C;EACF;AACF","file":"_index.scss","sourcesContent":["@import \"../error-message/index\";\n@import \"../hint/index\";\n@import \"../label/index\";\n\n@include govuk-exports(\"govuk/component/textarea\") {\n .govuk-textarea {\n @include govuk-font($size: 19, $line-height: 1.25);\n\n box-sizing: border-box;\n display: block;\n width: 100%;\n min-height: 40px;\n @include govuk-responsive-margin(6, \"bottom\");\n padding: govuk-spacing(1);\n\n resize: vertical;\n\n border: $govuk-border-width-form-element solid $govuk-input-border-colour;\n border-radius: 0;\n\n -webkit-appearance: none;\n\n &:focus {\n outline: $govuk-focus-width solid $govuk-focus-colour;\n // Ensure outline appears outside of the element\n outline-offset: 0;\n // Double the border by adding its width again. Use `box-shadow` to do\n // this instead of changing `border-width` (which changes element size)\n // and since `outline` is already used for the yellow focus state.\n box-shadow: inset 0 0 0 $govuk-border-width-form-element;\n }\n\n &:disabled {\n opacity: 0.5;\n color: inherit;\n background-color: transparent;\n cursor: not-allowed;\n }\n }\n\n .govuk-textarea--error {\n border-color: $govuk-error-colour;\n\n &:focus {\n border-color: $govuk-input-border-colour;\n }\n }\n}\n"]}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"hidden": false,
|
14
14
|
"description": "",
|
15
15
|
"previewLayoutModifiers": [],
|
16
|
+
"screenshot": false,
|
16
17
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"more-detail\">\n Can you provide more detail?\n </label>\n <textarea class=\"govuk-textarea\" id=\"more-detail\" name=\"more-detail\" rows=\"5\"></textarea>\n</div>"
|
17
18
|
},
|
18
19
|
{
|
@@ -30,6 +31,7 @@
|
|
30
31
|
"hidden": false,
|
31
32
|
"description": "",
|
32
33
|
"previewLayoutModifiers": [],
|
34
|
+
"screenshot": false,
|
33
35
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"more-detail\">\n Can you provide more detail?\n </label>\n <div id=\"more-detail-hint\" class=\"govuk-hint\">\n Don't include personal or financial information, eg your National Insurance number or credit card details.\n </div>\n <textarea class=\"govuk-textarea\" id=\"more-detail\" name=\"more-detail\" rows=\"5\" aria-describedby=\"more-detail-hint\"></textarea>\n</div>"
|
34
36
|
},
|
35
37
|
{
|
@@ -47,6 +49,7 @@
|
|
47
49
|
"hidden": false,
|
48
50
|
"description": "",
|
49
51
|
"previewLayoutModifiers": [],
|
52
|
+
"screenshot": false,
|
50
53
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"no-ni-reason\">\n Why can’t you provide a National Insurance number?\n </label>\n <p id=\"no-ni-reason-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> You must provide an explanation\n </p>\n <textarea class=\"govuk-textarea govuk-textarea--error\" id=\"no-ni-reason\" name=\"no-ni-reason\" rows=\"5\" aria-describedby=\"no-ni-reason-error\"></textarea>\n</div>"
|
51
54
|
},
|
52
55
|
{
|
@@ -62,6 +65,7 @@
|
|
62
65
|
"hidden": false,
|
63
66
|
"description": "",
|
64
67
|
"previewLayoutModifiers": [],
|
68
|
+
"screenshot": false,
|
65
69
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"full-address\">\n Full address\n </label>\n <textarea class=\"govuk-textarea\" id=\"full-address\" name=\"address\" rows=\"5\">221B Baker Street\nLondon\nNW1 6XE\n</textarea>\n</div>"
|
66
70
|
},
|
67
71
|
{
|
@@ -77,6 +81,7 @@
|
|
77
81
|
"hidden": false,
|
78
82
|
"description": "",
|
79
83
|
"previewLayoutModifiers": [],
|
84
|
+
"screenshot": false,
|
80
85
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"full-address\">\n Full address\n </label>\n <textarea class=\"govuk-textarea\" id=\"full-address\" name=\"address\" rows=\"8\"></textarea>\n</div>"
|
81
86
|
},
|
82
87
|
{
|
@@ -93,6 +98,7 @@
|
|
93
98
|
"hidden": false,
|
94
99
|
"description": "",
|
95
100
|
"previewLayoutModifiers": [],
|
101
|
+
"screenshot": false,
|
96
102
|
"html": "<div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"textarea-with-page-heading\">\n Full address\n </label>\n </h1>\n <textarea class=\"govuk-textarea\" id=\"textarea-with-page-heading\" name=\"address\" rows=\"5\"></textarea>\n</div>"
|
97
103
|
},
|
98
104
|
{
|
@@ -110,6 +116,7 @@
|
|
110
116
|
"hidden": false,
|
111
117
|
"description": "",
|
112
118
|
"previewLayoutModifiers": [],
|
119
|
+
"screenshot": false,
|
113
120
|
"html": "<div class=\"govuk-form-group extra-class\">\n <label class=\"govuk-label\" for=\"textarea-with-page-heading\">\n Full address\n </label>\n <textarea class=\"govuk-textarea\" id=\"textarea-with-page-heading\" name=\"address\" rows=\"5\"></textarea>\n</div>"
|
114
121
|
},
|
115
122
|
{
|
@@ -125,6 +132,7 @@
|
|
125
132
|
"hidden": false,
|
126
133
|
"description": "",
|
127
134
|
"previewLayoutModifiers": [],
|
135
|
+
"screenshot": false,
|
128
136
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"textarea-with-autocomplete-attribute\">\n Full address\n </label>\n <textarea class=\"govuk-textarea\" id=\"textarea-with-autocomplete-attribute\" name=\"address\" rows=\"5\" autocomplete=\"street-address\"></textarea>\n</div>"
|
129
137
|
},
|
130
138
|
{
|
@@ -140,6 +148,7 @@
|
|
140
148
|
"hidden": false,
|
141
149
|
"description": "",
|
142
150
|
"previewLayoutModifiers": [],
|
151
|
+
"screenshot": false,
|
143
152
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"textarea-with-spellcheck-enabled\">\n Spellcheck is enabled\n </label>\n <textarea class=\"govuk-textarea\" id=\"textarea-with-spellcheck-enabled\" name=\"spellcheck\" rows=\"5\" spellcheck=\"true\"></textarea>\n</div>"
|
144
153
|
},
|
145
154
|
{
|
@@ -155,6 +164,7 @@
|
|
155
164
|
"hidden": false,
|
156
165
|
"description": "",
|
157
166
|
"previewLayoutModifiers": [],
|
167
|
+
"screenshot": false,
|
158
168
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"textarea-with-spellcheck-disabled\">\n Spellcheck is disabled\n </label>\n <textarea class=\"govuk-textarea\" id=\"textarea-with-spellcheck-disabled\" name=\"spellcheck\" rows=\"5\" spellcheck=\"false\"></textarea>\n</div>"
|
159
169
|
},
|
160
170
|
{
|
@@ -170,6 +180,7 @@
|
|
170
180
|
"hidden": true,
|
171
181
|
"description": "",
|
172
182
|
"previewLayoutModifiers": [],
|
183
|
+
"screenshot": false,
|
173
184
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-classes\">\n With classes\n </label>\n <textarea class=\"govuk-textarea app-textarea--custom-modifier\" id=\"with-classes\" name=\"with-classes\" rows=\"5\"></textarea>\n</div>"
|
174
185
|
},
|
175
186
|
{
|
@@ -187,6 +198,7 @@
|
|
187
198
|
"hidden": true,
|
188
199
|
"description": "",
|
189
200
|
"previewLayoutModifiers": [],
|
201
|
+
"screenshot": false,
|
190
202
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-attributes\">\n With attributes\n </label>\n <textarea class=\"govuk-textarea\" id=\"with-attributes\" name=\"with-attributes\" rows=\"5\" data-attribute=\"my data value\"></textarea>\n</div>"
|
191
203
|
},
|
192
204
|
{
|
@@ -202,6 +214,7 @@
|
|
202
214
|
"hidden": true,
|
203
215
|
"description": "",
|
204
216
|
"previewLayoutModifiers": [],
|
217
|
+
"screenshot": false,
|
205
218
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-describedby\">\n With describedBy\n </label>\n <textarea class=\"govuk-textarea\" id=\"with-describedby\" name=\"with-describedby\" rows=\"5\" aria-describedby=\"test-target-element\"></textarea>\n</div>"
|
206
219
|
},
|
207
220
|
{
|
@@ -220,6 +233,7 @@
|
|
220
233
|
"hidden": true,
|
221
234
|
"description": "",
|
222
235
|
"previewLayoutModifiers": [],
|
236
|
+
"screenshot": false,
|
223
237
|
"html": "<div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"with-hint-describedby\">\n With hint and describedBy\n </label>\n <div id=\"with-hint-describedby-hint\" class=\"govuk-hint\">\n It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’.\n </div>\n <textarea class=\"govuk-textarea\" id=\"with-hint-describedby\" name=\"with-hint-describedby\" rows=\"5\" aria-describedby=\"test-target-element with-hint-describedby-hint\"></textarea>\n</div>"
|
224
238
|
},
|
225
239
|
{
|
@@ -238,6 +252,7 @@
|
|
238
252
|
"hidden": true,
|
239
253
|
"description": "",
|
240
254
|
"previewLayoutModifiers": [],
|
255
|
+
"screenshot": false,
|
241
256
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"textarea-with-error\">\n Textarea with error\n </label>\n <p id=\"textarea-with-error-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <textarea class=\"govuk-textarea govuk-textarea--error\" id=\"textarea-with-error\" name=\"textarea-with-error\" rows=\"5\" aria-describedby=\"test-target-element textarea-with-error-error\"></textarea>\n</div>"
|
242
257
|
},
|
243
258
|
{
|
@@ -258,6 +273,7 @@
|
|
258
273
|
"hidden": true,
|
259
274
|
"description": "",
|
260
275
|
"previewLayoutModifiers": [],
|
276
|
+
"screenshot": false,
|
261
277
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"with-hint-error\">\n With hint and error\n </label>\n <div id=\"with-hint-error-hint\" class=\"govuk-hint\">\n Hint\n </div>\n <p id=\"with-hint-error-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <textarea class=\"govuk-textarea govuk-textarea--error\" id=\"with-hint-error\" name=\"with-hint-error\" rows=\"5\" aria-describedby=\"with-hint-error-hint with-hint-error-error\"></textarea>\n</div>"
|
262
278
|
},
|
263
279
|
{
|
@@ -279,6 +295,7 @@
|
|
279
295
|
"hidden": true,
|
280
296
|
"description": "",
|
281
297
|
"previewLayoutModifiers": [],
|
298
|
+
"screenshot": false,
|
282
299
|
"html": "<div class=\"govuk-form-group govuk-form-group--error\">\n <label class=\"govuk-label\" for=\"with-hint-error-describedby\">\n With hint, error and describedBy\n </label>\n <div id=\"with-hint-error-describedby-hint\" class=\"govuk-hint\">\n Hint\n </div>\n <p id=\"with-hint-error-describedby-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span> Error message\n </p>\n <textarea class=\"govuk-textarea govuk-textarea--error\" id=\"with-hint-error-describedby\" name=\"with-hint-error-describedby\" rows=\"5\" aria-describedby=\"test-target-element with-hint-error-describedby-hint with-hint-error-describedby-error\"></textarea>\n</div>"
|
283
300
|
}
|
284
301
|
]
|
@@ -79,6 +79,46 @@
|
|
79
79
|
"type": "object",
|
80
80
|
"required": false,
|
81
81
|
"description": "HTML attributes (for example data attributes) to add to the form group."
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "beforeInput",
|
85
|
+
"type": "object",
|
86
|
+
"required": false,
|
87
|
+
"description": "Content to add before the textarea used by the textarea component.",
|
88
|
+
"params": [
|
89
|
+
{
|
90
|
+
"name": "text",
|
91
|
+
"type": "string",
|
92
|
+
"required": true,
|
93
|
+
"description": "Text to add before the textarea. If `html` is provided, the `text` option will be ignored."
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"name": "html",
|
97
|
+
"type": "string",
|
98
|
+
"required": true,
|
99
|
+
"description": "HTML to add before the textarea. If `html` is provided, the `text` option will be ignored."
|
100
|
+
}
|
101
|
+
]
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"name": "afterInput",
|
105
|
+
"type": "object",
|
106
|
+
"required": false,
|
107
|
+
"description": "Content to add after the textarea used by the textarea component.",
|
108
|
+
"params": [
|
109
|
+
{
|
110
|
+
"name": "text",
|
111
|
+
"type": "string",
|
112
|
+
"required": true,
|
113
|
+
"description": "Text to add after the textarea. If `html` is provided, the `text` option will be ignored."
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"name": "html",
|
117
|
+
"type": "string",
|
118
|
+
"required": true,
|
119
|
+
"description": "HTML to add after the textarea. If `html` is provided, the `text` option will be ignored."
|
120
|
+
}
|
121
|
+
]
|
82
122
|
}
|
83
123
|
]
|
84
124
|
},
|
@@ -1,3 +1,4 @@
|
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes %}
|
1
2
|
{% from "../error-message/macro.njk" import govukErrorMessage %}
|
2
3
|
{% from "../hint/macro.njk" import govukHint %}
|
3
4
|
{% from "../label/macro.njk" import govukLabel %}
|
@@ -5,7 +6,8 @@
|
|
5
6
|
{#- a record of other elements that we need to associate with the input using
|
6
7
|
aria-describedby – for example hints or error messages -#}
|
7
8
|
{% set describedBy = params.describedBy if params.describedBy else "" %}
|
8
|
-
<div class="govuk-form-group {%- if params.errorMessage %} govuk-form-group--error{% endif %} {%- if params.formGroup.classes %} {{ params.formGroup.classes }}{% endif %}"
|
9
|
+
<div class="govuk-form-group {%- if params.errorMessage %} govuk-form-group--error{% endif %} {%- if params.formGroup.classes %} {{ params.formGroup.classes }}{% endif %}"
|
10
|
+
{{- govukAttributes(params.formGroup.attributes) }}>
|
9
11
|
{{ govukLabel({
|
10
12
|
html: params.label.html,
|
11
13
|
text: params.label.text,
|
@@ -36,11 +38,17 @@
|
|
36
38
|
text: params.errorMessage.text,
|
37
39
|
visuallyHiddenText: params.errorMessage.visuallyHiddenText
|
38
40
|
}) | trim | indent(2) }}
|
41
|
+
{% endif %}
|
42
|
+
{% if params.formGroup.beforeInput %}
|
43
|
+
{{ params.formGroup.beforeInput.html | safe | trim | indent(2) if params.formGroup.beforeInput.html else params.formGroup.beforeInput.text }}
|
39
44
|
{% endif %}
|
40
45
|
<textarea class="govuk-textarea {%- if params.errorMessage %} govuk-textarea--error{% endif %} {%- if params.classes %} {{ params.classes }}{% endif %}" id="{{ params.id }}" name="{{ params.name }}" rows="{{ params.rows | default(5, true) }}"
|
41
46
|
{%- if (params.spellcheck === false) or (params.spellcheck === true) %} spellcheck="{{ params.spellcheck }}"{% endif %}
|
42
47
|
{%- if params.disabled %} disabled{% endif %}
|
43
48
|
{%- if describedBy %} aria-describedby="{{ describedBy }}"{% endif %}
|
44
49
|
{%- if params.autocomplete %} autocomplete="{{ params.autocomplete }}"{% endif %}
|
45
|
-
{
|
50
|
+
{{- govukAttributes(params.attributes) }}>{{ params.value }}</textarea>
|
51
|
+
{% if params.formGroup.afterInput %}
|
52
|
+
{{ params.formGroup.afterInput.html | safe | trim | indent(2) if params.formGroup.afterInput.html else params.formGroup.afterInput.text }}
|
53
|
+
{% endif %}
|
46
54
|
</div>
|
@@ -25,13 +25,13 @@
|
|
25
25
|
margin-top: -5px;
|
26
26
|
}
|
27
27
|
|
28
|
-
// When a user customises their colours the background colour will often be
|
29
|
-
// Adding a border to the component keeps it's shape as a circle.
|
30
|
-
border: 3px solid govuk-colour
|
28
|
+
// When a user customises their colours the background colour will often be
|
29
|
+
// removed. Adding a border to the component keeps it's shape as a circle.
|
30
|
+
border: 3px solid $govuk-text-colour;
|
31
31
|
border-radius: 50%;
|
32
32
|
|
33
|
-
color: govuk-colour
|
34
|
-
background: govuk-colour
|
33
|
+
color: $govuk-body-background-colour;
|
34
|
+
background: $govuk-text-colour;
|
35
35
|
|
36
36
|
font-size: 30px;
|
37
37
|
line-height: 29px;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/govuk/components/warning-text/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;IAC9B,6CAA6C;IAC7C,kBAAkB;IAClB,2BAA2B;EAC7B;;EAEA;IACE,2EAA2E;IAC3E,uCAAuC;IACvC,qCAAqC;IACrC,sBAAsB;;IAEtB,qBAAqB;;IAErB,kBAAkB;IAClB,OAAO;;IAEP,eAAe;IACf,gBAAgB;IAChB,gBAAgB;;IAEhB;MACE,gBAAgB;IAClB;;IAEA,
|
1
|
+
{"version":3,"sources":["../../../../src/govuk/components/warning-text/_index.scss"],"names":[],"mappings":"AAAA;EACE;IACE,8BAA8B;IAC9B,6CAA6C;IAC7C,kBAAkB;IAClB,2BAA2B;EAC7B;;EAEA;IACE,2EAA2E;IAC3E,uCAAuC;IACvC,qCAAqC;IACrC,sBAAsB;;IAEtB,qBAAqB;;IAErB,kBAAkB;IAClB,OAAO;;IAEP,eAAe;IACf,gBAAgB;IAChB,gBAAgB;;IAEhB;MACE,gBAAgB;IAClB;;IAEA,0EAA0E;IAC1E,yEAAyE;IACzE,oCAAoC;IACpC,kBAAkB;;IAElB,oCAAoC;IACpC,8BAA8B;;IAE9B,eAAe;IACf,iBAAiB;;IAEjB,kBAAkB;;IAElB,wEAAwE;IACxE,yBAAyB;IACzB,yBAAiB;QAAjB,qBAAiB;YAAjB,iBAAiB;;IAEjB,iEAAiE;IACjE,uEAAuE;IACvE,yBAAyB;;IAEzB;MACE,wBAAwB;MACxB,iBAAiB;MACjB,uBAAuB;IACzB;EACF;;EAEA;IACE,0BAA0B;IAC1B,cAAc;IACd,kBAAkB;EACpB;AACF","file":"_index.scss","sourcesContent":["@include govuk-exports(\"govuk/component/warning-text\") {\n .govuk-warning-text {\n @include govuk-font($size: 19);\n @include govuk-responsive-margin(6, \"bottom\");\n position: relative;\n padding: govuk-spacing(2) 0;\n }\n\n .govuk-warning-text__icon {\n // We apply this here and not at the parent level because the actual text is\n // a <strong> and so will always be bold\n @include govuk-typography-weight-bold;\n box-sizing: border-box;\n\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n min-width: 35px;\n min-height: 35px;\n margin-top: -7px;\n\n @include govuk-media-query($from: tablet) {\n margin-top: -5px;\n }\n\n // When a user customises their colours the background colour will often be\n // removed. Adding a border to the component keeps it's shape as a circle.\n border: 3px solid $govuk-text-colour;\n border-radius: 50%;\n\n color: $govuk-body-background-colour;\n background: $govuk-text-colour;\n\n font-size: 30px;\n line-height: 29px;\n\n text-align: center;\n\n // Prevent the exclamation mark from being included when the warning text\n // is copied, for example.\n user-select: none;\n\n // Improve rendering in Windows High Contrast Mode (Edge), where a\n // readability backplate behind the exclamation mark obscures the circle\n forced-color-adjust: none;\n\n @media screen and (forced-colors: active) {\n border-color: windowText;\n color: windowText;\n background: transparent;\n }\n }\n\n .govuk-warning-text__text {\n @include govuk-text-colour;\n display: block;\n padding-left: 45px;\n }\n}\n"]}
|
@@ -10,6 +10,7 @@
|
|
10
10
|
"hidden": false,
|
11
11
|
"description": "",
|
12
12
|
"previewLayoutModifiers": [],
|
13
|
+
"screenshot": false,
|
13
14
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n You can be fined up to £5,000 if you don’t register.\n </strong>\n</div>"
|
14
15
|
},
|
15
16
|
{
|
@@ -21,6 +22,7 @@
|
|
21
22
|
"hidden": false,
|
22
23
|
"description": "",
|
23
24
|
"previewLayoutModifiers": [],
|
25
|
+
"screenshot": false,
|
24
26
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n If you are not covered by this License), You must: (a) comply with the terms stated above for the purpose of this license. It explains, for example, the production of a Source form, including but not limited to, the implied warranties or conditions of this License, without any additional file created by such Respondent to you under Sections 2.1 and 2.2 above. Larger Works. You may choose to distribute such a notice and a brief idea of what it does.\n </strong>\n</div>"
|
25
27
|
},
|
26
28
|
{
|
@@ -35,6 +37,7 @@
|
|
35
37
|
"hidden": true,
|
36
38
|
"description": "",
|
37
39
|
"previewLayoutModifiers": [],
|
40
|
+
"screenshot": false,
|
38
41
|
"html": "<div class=\"govuk-warning-text\" id=\"my-warning-text\" data-test=\"attribute\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n You can be fined up to £5,000 if you don’t register.\n </strong>\n</div>"
|
39
42
|
},
|
40
43
|
{
|
@@ -46,6 +49,7 @@
|
|
46
49
|
"hidden": true,
|
47
50
|
"description": "",
|
48
51
|
"previewLayoutModifiers": [],
|
52
|
+
"screenshot": false,
|
49
53
|
"html": "<div class=\"govuk-warning-text govuk-warning-text--custom-class\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n Warning text\n </strong>\n</div>"
|
50
54
|
},
|
51
55
|
{
|
@@ -57,6 +61,7 @@
|
|
57
61
|
"hidden": true,
|
58
62
|
"description": "",
|
59
63
|
"previewLayoutModifiers": [],
|
64
|
+
"screenshot": false,
|
60
65
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n <span>Some custom warning text</span>\n </strong>\n</div>"
|
61
66
|
},
|
62
67
|
{
|
@@ -67,6 +72,7 @@
|
|
67
72
|
"hidden": true,
|
68
73
|
"description": "",
|
69
74
|
"previewLayoutModifiers": [],
|
75
|
+
"screenshot": false,
|
70
76
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n <span>Some custom warning text</span>\n </strong>\n</div>"
|
71
77
|
},
|
72
78
|
{
|
@@ -77,6 +83,7 @@
|
|
77
83
|
"hidden": true,
|
78
84
|
"description": "",
|
79
85
|
"previewLayoutModifiers": [],
|
86
|
+
"screenshot": false,
|
80
87
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Some custom fallback text</span>\n \n </strong>\n</div>"
|
81
88
|
},
|
82
89
|
{
|
@@ -87,6 +94,7 @@
|
|
87
94
|
"hidden": true,
|
88
95
|
"description": "",
|
89
96
|
"previewLayoutModifiers": [],
|
97
|
+
"screenshot": false,
|
90
98
|
"html": "<div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n This is a warning\n </strong>\n</div>"
|
91
99
|
}
|
92
100
|
]
|
@@ -1,6 +1,7 @@
|
|
1
|
+
{% from "../../macros/attributes.njk" import govukAttributes -%}
|
2
|
+
|
1
3
|
<div class="govuk-warning-text {%- if params.classes %} {{ params.classes }}{% endif %}"
|
2
|
-
{
|
3
|
-
>
|
4
|
+
{{- govukAttributes(params.attributes) }}>
|
4
5
|
<span class="govuk-warning-text__icon" aria-hidden="true">!</span>
|
5
6
|
<strong class="govuk-warning-text__text">
|
6
7
|
<span class="govuk-visually-hidden">{{ params.iconFallbackText | default("Warning", true) }}</span>
|
@@ -1,8 +1,10 @@
|
|
1
|
-
@import "
|
2
|
-
@import "
|
3
|
-
|
4
|
-
@
|
5
|
-
|
6
|
-
|
1
|
+
@import "../settings/warnings";
|
2
|
+
@import "index";
|
3
|
+
|
4
|
+
@include _warning(
|
5
|
+
"import-using-all",
|
6
|
+
"Importing using 'govuk/core/all' is deprecated. Update your import statement to import 'govuk/core/index'.",
|
7
|
+
$silence-further-warnings: false
|
8
|
+
);
|
7
9
|
|
8
10
|
/*# sourceMappingURL=_all.scss.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/govuk/core/_all.scss"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/govuk/core/_all.scss"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,eAAe;;AAEf;;;;CAIC","file":"_all.scss","sourcesContent":["@import \"../settings/warnings\";\n@import \"index\";\n\n@include _warning(\n \"import-using-all\",\n \"Importing using 'govuk/core/all' is deprecated. Update your import statement to import 'govuk/core/index'.\",\n $silence-further-warnings: false\n);\n"]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
:root {
|
2
2
|
// This variable is automatically overwritten during builds and releases.
|
3
3
|
// It doesn't need to be updated manually.
|
4
|
-
--govuk-frontend-version: "5.
|
4
|
+
--govuk-frontend-version: "5.5.0";
|
5
5
|
|
6
6
|
// CSS custom property for each breakpoint
|
7
7
|
@each $name, $value in $govuk-breakpoints {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/govuk/core/_index.scss"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,eAAe;AACf,eAAe;AACf,oBAAoB;AACpB,uBAAuB;AACvB,uBAAuB","file":"_index.scss","sourcesContent":["@import \"govuk-frontend-properties\";\n@import \"links\";\n@import \"lists\";\n@import \"typography\";\n@import \"section-break\";\n@import \"global-styles\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/govuk/errors/index.mjs"],"sourcesContent":["/**\n * GOV.UK Frontend error\n *\n * A base class for `Error`s thrown by GOV.UK Frontend.\n *\n * It is meant to be extended into specific types of errors\n * to be thrown by our code.\n *\n * @example\n * ```js\n * class MissingRootError extends GOVUKFrontendError {\n * // Setting an explicit name is important as extending the class will not\n * // set a new `name` on the subclass. The `name` property is important\n * // to ensure intelligible error names even if the class name gets\n * // mangled by a minifier\n * name = \"MissingRootError\"\n * }\n * ```\n * @abstract\n */\nexport class GOVUKFrontendError extends Error {\n name = 'GOVUKFrontendError'\n}\n\n/**\n * Indicates that GOV.UK Frontend is not supported\n */\nexport class SupportError extends GOVUKFrontendError {\n name = 'SupportError'\n\n /**\n * Checks if GOV.UK Frontend is supported on this page\n *\n * @param {HTMLElement | null} [$scope] - HTML element `<body>` checked for browser support\n */\n constructor($scope = document.body) {\n const supportMessage =\n 'noModule' in HTMLScriptElement.prototype\n ? 'GOV.UK Frontend initialised without `<body class=\"govuk-frontend-supported\">` from template `<script>` snippet'\n : 'GOV.UK Frontend is not supported in this browser'\n\n super(\n $scope\n ? supportMessage\n : 'GOV.UK Frontend initialised without `<script type=\"module\">`'\n )\n }\n}\n\n/**\n * Indicates that a component has received an illegal configuration\n */\nexport class ConfigError extends GOVUKFrontendError {\n name = 'ConfigError'\n}\n\n/**\n * Indicates an issue with an element (possibly `null` or `undefined`)\n */\nexport class ElementError extends GOVUKFrontendError {\n name = 'ElementError'\n\n /**\n * @internal\n * @overload\n * @param {string} message - Element error message\n */\n\n /**\n * @internal\n * @overload\n * @param {ElementErrorOptions} options - Element error options\n */\n\n /**\n * @internal\n * @param {string | ElementErrorOptions} messageOrOptions - Element error message or options\n */\n constructor(messageOrOptions) {\n let message = typeof messageOrOptions === 'string' ? messageOrOptions : ''\n\n // Build message from options\n if (typeof messageOrOptions === 'object') {\n const { componentName, identifier, element, expectedType } =\n messageOrOptions\n\n // Add prefix and identifier\n message = `${componentName}: ${identifier}`\n\n // Append reason\n message += element\n ? ` is not of type ${expectedType ?? 'HTMLElement'}`\n : ' not found'\n }\n\n super(message)\n }\n}\n\n/**\n * Element error options\n *\n * @internal\n * @typedef {object} ElementErrorOptions\n * @property {string} componentName - The name of the component throwing the error\n * @property {string} identifier - An identifier that'll let the user understand which element has an error. This is whatever makes the most sense\n * @property {Element | null} [element] - The element in error\n * @property {string} [expectedType] - The type that was expected for the identifier\n */\n"],"names":["GOVUKFrontendError","Error","constructor","args","name","SupportError","$scope","document","body","supportMessage","HTMLScriptElement","prototype","ConfigError","ElementError","messageOrOptions","message","componentName","identifier","element","expectedType"],"mappings":"AAoBO,MAAMA,kBAAkB,SAASC,KAAK,CAAC;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAA,IAC5CC,CAAAA,IAAI,GAAG,oBAAoB,CAAA;AAAA,GAAA;AAC7B,CAAA;AAKO,MAAMC,YAAY,SAASL,kBAAkB,CAAC;AAGnD;AACF;AACA;AACA;AACA;AACEE,EAAAA,WAAWA,CAACI,MAAM,GAAGC,QAAQ,CAACC,IAAI,EAAE;IAClC,MAAMC,cAAc,GAClB,UAAU,IAAIC,iBAAiB,CAACC,SAAS,GACrC,gHAAgH,GAChH,kDAAkD,CAAA;AAExD,IAAA,KAAK,CACHL,MAAM,GACFG,cAAc,GACd,8DACN,CAAC,CAAA;IAAA,IAjBHL,CAAAA,IAAI,GAAG,cAAc,CAAA;AAkBrB,GAAA;AACF,CAAA;AAKO,MAAMQ,WAAW,SAASZ,kBAAkB,CAAC;AAAAE,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAA,IAClDC,CAAAA,IAAI,GAAG,aAAa,CAAA;AAAA,GAAA;AACtB,CAAA;AAKO,MAAMS,YAAY,SAASb,kBAAkB,CAAC;EAmBnDE,WAAWA,CAACY,gBAAgB,EAAE;IAC5B,IAAIC,OAAO,GAAG,OAAOD,gBAAgB,KAAK,QAAQ,GAAGA,gBAAgB,GAAG,EAAE,CAAA;AAG1E,IAAA,IAAI,OAAOA,gBAAgB,KAAK,QAAQ,EAAE;MACxC,MAAM;QAAEE,aAAa;QAAEC,UAAU;QAAEC,OAAO;AAAEC,QAAAA,YAAAA;AAAa,OAAC,GACxDL,gBAAgB,CAAA;AAGlBC,MAAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/govuk/errors/index.mjs"],"sourcesContent":["/**\n * GOV.UK Frontend error\n *\n * A base class for `Error`s thrown by GOV.UK Frontend.\n *\n * It is meant to be extended into specific types of errors\n * to be thrown by our code.\n *\n * @example\n * ```js\n * class MissingRootError extends GOVUKFrontendError {\n * // Setting an explicit name is important as extending the class will not\n * // set a new `name` on the subclass. The `name` property is important\n * // to ensure intelligible error names even if the class name gets\n * // mangled by a minifier\n * name = \"MissingRootError\"\n * }\n * ```\n * @abstract\n */\nexport class GOVUKFrontendError extends Error {\n name = 'GOVUKFrontendError'\n}\n\n/**\n * Indicates that GOV.UK Frontend is not supported\n */\nexport class SupportError extends GOVUKFrontendError {\n name = 'SupportError'\n\n /**\n * Checks if GOV.UK Frontend is supported on this page\n *\n * @param {HTMLElement | null} [$scope] - HTML element `<body>` checked for browser support\n */\n constructor($scope = document.body) {\n const supportMessage =\n 'noModule' in HTMLScriptElement.prototype\n ? 'GOV.UK Frontend initialised without `<body class=\"govuk-frontend-supported\">` from template `<script>` snippet'\n : 'GOV.UK Frontend is not supported in this browser'\n\n super(\n $scope\n ? supportMessage\n : 'GOV.UK Frontend initialised without `<script type=\"module\">`'\n )\n }\n}\n\n/**\n * Indicates that a component has received an illegal configuration\n */\nexport class ConfigError extends GOVUKFrontendError {\n name = 'ConfigError'\n}\n\n/**\n * Indicates an issue with an element (possibly `null` or `undefined`)\n */\nexport class ElementError extends GOVUKFrontendError {\n name = 'ElementError'\n\n /**\n * @internal\n * @overload\n * @param {string} message - Element error message\n */\n\n /**\n * @internal\n * @overload\n * @param {ElementErrorOptions} options - Element error options\n */\n\n /**\n * @internal\n * @param {string | ElementErrorOptions} messageOrOptions - Element error message or options\n */\n constructor(messageOrOptions) {\n let message = typeof messageOrOptions === 'string' ? messageOrOptions : ''\n\n // Build message from options\n if (typeof messageOrOptions === 'object') {\n const { componentName, identifier, element, expectedType } =\n messageOrOptions\n\n // Add prefix and identifier\n message = `${componentName}: ${identifier}`\n\n // Append reason\n message += element\n ? ` is not of type ${expectedType ?? 'HTMLElement'}`\n : ' not found'\n }\n\n super(message)\n }\n}\n\n/**\n * Element error options\n *\n * @internal\n * @typedef {object} ElementErrorOptions\n * @property {string} componentName - The name of the component throwing the error\n * @property {string} identifier - An identifier that'll let the user understand which element has an error. This is whatever makes the most sense\n * @property {Element | null} [element] - The element in error\n * @property {string} [expectedType] - The type that was expected for the identifier\n */\n"],"names":["GOVUKFrontendError","Error","constructor","args","name","SupportError","$scope","document","body","supportMessage","HTMLScriptElement","prototype","ConfigError","ElementError","messageOrOptions","message","componentName","identifier","element","expectedType"],"mappings":"AAoBO,MAAMA,kBAAkB,SAASC,KAAK,CAAC;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAA,IAC5CC,CAAAA,IAAI,GAAG,oBAAoB,CAAA;AAAA,GAAA;AAC7B,CAAA;AAKO,MAAMC,YAAY,SAASL,kBAAkB,CAAC;AAGnD;AACF;AACA;AACA;AACA;AACEE,EAAAA,WAAWA,CAACI,MAAM,GAAGC,QAAQ,CAACC,IAAI,EAAE;IAClC,MAAMC,cAAc,GAClB,UAAU,IAAIC,iBAAiB,CAACC,SAAS,GACrC,gHAAgH,GAChH,kDAAkD,CAAA;AAExD,IAAA,KAAK,CACHL,MAAM,GACFG,cAAc,GACd,8DACN,CAAC,CAAA;IAAA,IAjBHL,CAAAA,IAAI,GAAG,cAAc,CAAA;AAkBrB,GAAA;AACF,CAAA;AAKO,MAAMQ,WAAW,SAASZ,kBAAkB,CAAC;AAAAE,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAA,IAClDC,CAAAA,IAAI,GAAG,aAAa,CAAA;AAAA,GAAA;AACtB,CAAA;AAKO,MAAMS,YAAY,SAASb,kBAAkB,CAAC;EAmBnDE,WAAWA,CAACY,gBAAgB,EAAE;IAC5B,IAAIC,OAAO,GAAG,OAAOD,gBAAgB,KAAK,QAAQ,GAAGA,gBAAgB,GAAG,EAAE,CAAA;AAG1E,IAAA,IAAI,OAAOA,gBAAgB,KAAK,QAAQ,EAAE;MACxC,MAAM;QAAEE,aAAa;QAAEC,UAAU;QAAEC,OAAO;AAAEC,QAAAA,YAAAA;AAAa,OAAC,GACxDL,gBAAgB,CAAA;AAGlBC,MAAAA,OAAO,GAAG,CAAA,EAAGC,aAAa,CAAA,EAAA,EAAKC,UAAU,CAAE,CAAA,CAAA;MAG3CF,OAAO,IAAIG,OAAO,GACd,CAAmBC,gBAAAA,EAAAA,YAAY,IAAZA,IAAAA,GAAAA,YAAY,GAAI,aAAa,CAAE,CAAA,GAClD,YAAY,CAAA;AAClB,KAAA;IAEA,KAAK,CAACJ,OAAO,CAAC,CAAA;IAAA,IAnChBX,CAAAA,IAAI,GAAG,cAAc,CAAA;AAoCrB,GAAA;AACF;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"govuk-frontend-component.mjs","sources":["../../src/govuk/govuk-frontend-component.mjs"],"sourcesContent":["import { isSupported } from './common/index.mjs'\nimport { SupportError } from './errors/index.mjs'\n\n/**\n * Base Component class\n *\n * Centralises the behaviours shared by our components\n *\n * @internal\n * @abstract\n */\nexport class GOVUKFrontendComponent {\n /**\n * Constructs a new component, validating that GOV.UK Frontend is supported\n *\n * @internal\n */\n constructor() {\n this.checkSupport()\n }\n\n /**\n * Validates whether GOV.UK Frontend is supported\n *\n * @private\n */\n checkSupport() {\n if (!isSupported()) {\n throw new SupportError()\n }\n }\n}\n"],"names":["GOVUKFrontendComponent","constructor","checkSupport","isSupported","SupportError"],"mappings":";;;AAWO,MAAMA,sBAAsB,CAAC;AAMlCC,EAAAA,WAAWA,GAAG;IACZ,IAAI,CAACC,YAAY,EAAE,CAAA;AACrB,GAAA;
|
1
|
+
{"version":3,"file":"govuk-frontend-component.mjs","sources":["../../src/govuk/govuk-frontend-component.mjs"],"sourcesContent":["import { isSupported } from './common/index.mjs'\nimport { SupportError } from './errors/index.mjs'\n\n/**\n * Base Component class\n *\n * Centralises the behaviours shared by our components\n *\n * @internal\n * @abstract\n */\nexport class GOVUKFrontendComponent {\n /**\n * Constructs a new component, validating that GOV.UK Frontend is supported\n *\n * @internal\n */\n constructor() {\n this.checkSupport()\n }\n\n /**\n * Validates whether GOV.UK Frontend is supported\n *\n * @private\n * @throws {SupportError} when GOV.UK Frontend is not supported\n */\n checkSupport() {\n if (!isSupported()) {\n throw new SupportError()\n }\n }\n}\n"],"names":["GOVUKFrontendComponent","constructor","checkSupport","isSupported","SupportError"],"mappings":";;;AAWO,MAAMA,sBAAsB,CAAC;AAMlCC,EAAAA,WAAWA,GAAG;IACZ,IAAI,CAACC,YAAY,EAAE,CAAA;AACrB,GAAA;AAQAA,EAAAA,YAAYA,GAAG;AACb,IAAA,IAAI,CAACC,WAAW,EAAE,EAAE;MAClB,MAAM,IAAIC,YAAY,EAAE,CAAA;AAC1B,KAAA;AACF,GAAA;AACF;;;;"}
|