govuk_publishing_components 21.60.0 → 21.62.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +102 -73
  3. data/app/assets/javascripts/govuk_publishing_components/ie.js +2 -0
  4. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +1 -1
  5. data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +4 -0
  6. data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +487 -0
  7. data/app/assets/stylesheets/component_guide/application.scss +4 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +4 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +87 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +46 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +4 -2
  15. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +8 -0
  16. data/app/models/govuk_publishing_components/audit_applications.rb +35 -23
  17. data/app/models/govuk_publishing_components/audit_comparer.rb +13 -0
  18. data/app/models/govuk_publishing_components/audit_components.rb +1 -1
  19. data/app/models/govuk_publishing_components/component_example.rb +4 -0
  20. data/app/views/govuk_publishing_components/audit/show.html.erb +32 -3
  21. data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -0
  22. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
  23. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +32 -21
  24. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +76 -0
  25. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +39 -51
  26. data/app/views/govuk_publishing_components/components/_search.html.erb +10 -5
  27. data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
  28. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +45 -0
  29. data/app/views/govuk_publishing_components/components/docs/image_card.yml +13 -1
  30. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
  31. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +5 -1
  32. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +29 -0
  33. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +34 -0
  34. data/app/views/govuk_publishing_components/components/docs/search.yml +6 -0
  35. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +23 -0
  36. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +17 -0
  37. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +9 -0
  38. data/config/initializers/assets.rb +8 -0
  39. data/lib/govuk_publishing_components.rb +1 -0
  40. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
  41. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +3 -2
  42. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +380 -0
  43. data/lib/govuk_publishing_components/version.rb +1 -1
  44. data/node_modules/govuk-frontend/govuk/all.js +160 -57
  45. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +0 -4
  46. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +16 -8
  47. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +6 -0
  48. data/node_modules/govuk-frontend/govuk/components/character-count/template.njk +1 -0
  49. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -5
  50. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +68 -21
  51. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
  52. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +0 -27
  53. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -3
  54. data/node_modules/govuk-frontend/govuk/components/footer/template.njk +1 -1
  55. data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
  56. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +2 -2
  57. data/node_modules/govuk-frontend/govuk/components/hint/template.njk +2 -2
  58. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +0 -3
  59. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +6 -0
  60. data/node_modules/govuk-frontend/govuk/components/input/template.njk +1 -0
  61. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +76 -28
  62. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +0 -3
  63. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -0
  64. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +0 -3
  65. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +6 -0
  66. data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +1 -0
  67. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +4 -2
  68. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +1 -1
  69. data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +2 -2
  70. data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +33 -33
  71. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +4 -1
  72. data/node_modules/govuk-frontend/package.json +1 -1
  73. metadata +12 -2
@@ -81,8 +81,11 @@ $govuk-border-width-form-element: 2px !default;
81
81
  ///
82
82
  /// @type Number
83
83
  /// @access public
84
+ /// @deprecated Use $govuk-border-width-form-element instead. There should be no
85
+ /// difference in thickness for inputs in the error state, in order to
86
+ /// maintain a distinct focus state.
84
87
 
85
- $govuk-border-width-form-element-error: 4px !default;
88
+ $govuk-border-width-form-element-error: 2px !default;
86
89
 
87
90
  /// Form group border width when in error state
88
91
  ///
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "govuk-frontend",
3
3
  "description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
4
- "version": "3.7.0",
4
+ "version": "3.8.1",
5
5
  "main": "govuk/all.js",
6
6
  "sass": "govuk/all.scss",
7
7
  "engines": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.60.0
4
+ version: 21.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -413,6 +413,7 @@ files:
413
413
  - app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js
414
414
  - app/assets/javascripts/govuk_publishing_components/components/tabs.js
415
415
  - app/assets/javascripts/govuk_publishing_components/dependencies.js
416
+ - app/assets/javascripts/govuk_publishing_components/ie.js
416
417
  - app/assets/javascripts/govuk_publishing_components/lib.js
417
418
  - app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js
418
419
  - app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js
@@ -425,6 +426,8 @@ files:
425
426
  - app/assets/javascripts/govuk_publishing_components/lib/toggle-input-class-on-focus.js
426
427
  - app/assets/javascripts/govuk_publishing_components/lib/toggle.js
427
428
  - app/assets/javascripts/govuk_publishing_components/modules.js
429
+ - app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js
430
+ - app/assets/javascripts/govuk_publishing_components/vendor/json2.js
428
431
  - app/assets/javascripts/govuk_publishing_components/vendor/magna-charta.min.js
429
432
  - app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js
430
433
  - app/assets/stylesheets/component_guide/application.scss
@@ -468,6 +471,7 @@ files:
468
471
  - app/assets/stylesheets/govuk_publishing_components/components/_label.scss
469
472
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss
470
473
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss
474
+ - app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss
471
475
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss
472
476
  - app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss
473
477
  - app/assets/stylesheets/govuk_publishing_components/components/_list.scss
@@ -616,6 +620,7 @@ files:
616
620
  - app/views/govuk_publishing_components/components/_label.html.erb
617
621
  - app/views/govuk_publishing_components/components/_layout_footer.html.erb
618
622
  - app/views/govuk_publishing_components/components/_layout_for_admin.html.erb
623
+ - app/views/govuk_publishing_components/components/_layout_for_public.html.erb
619
624
  - app/views/govuk_publishing_components/components/_layout_header.html.erb
620
625
  - app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
621
626
  - app/views/govuk_publishing_components/components/_list.html.erb
@@ -693,6 +698,7 @@ files:
693
698
  - app/views/govuk_publishing_components/components/docs/label.yml
694
699
  - app/views/govuk_publishing_components/components/docs/layout_footer.yml
695
700
  - app/views/govuk_publishing_components/components/docs/layout_for_admin.yml
701
+ - app/views/govuk_publishing_components/components/docs/layout_for_public.yml
696
702
  - app/views/govuk_publishing_components/components/docs/layout_header.yml
697
703
  - app/views/govuk_publishing_components/components/docs/lead_paragraph.yml
698
704
  - app/views/govuk_publishing_components/components/docs/list.yml
@@ -728,6 +734,9 @@ files:
728
734
  - app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb
729
735
  - app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb
730
736
  - app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb
737
+ - app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb
738
+ - app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb
739
+ - app/views/govuk_publishing_components/components/layout_header/_search.html.erb
731
740
  - app/views/govuk_publishing_components/components/metadata/_sentence.html.erb
732
741
  - app/views/govuk_publishing_components/components/related_navigation/_section.html.erb
733
742
  - app/views/layouts/govuk_publishing_components/application.html.erb
@@ -781,6 +790,7 @@ files:
781
790
  - lib/govuk_publishing_components/presenters/meta_tags.rb
782
791
  - lib/govuk_publishing_components/presenters/organisation_logo_helper.rb
783
792
  - lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb
793
+ - lib/govuk_publishing_components/presenters/public_layout_helper.rb
784
794
  - lib/govuk_publishing_components/presenters/related_navigation_helper.rb
785
795
  - lib/govuk_publishing_components/presenters/schema_org.rb
786
796
  - lib/govuk_publishing_components/presenters/select.rb