govuk_publishing_components 21.60.2 → 21.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) 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/components/step-by-step-nav.js +402 -340
  4. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +0 -5
  5. data/app/assets/javascripts/govuk_publishing_components/ie.js +2 -0
  6. data/app/assets/javascripts/govuk_publishing_components/lib.js +1 -0
  7. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +1 -1
  8. data/app/assets/javascripts/govuk_publishing_components/lib/toggle.js +126 -65
  9. data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +4 -0
  10. data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +487 -0
  11. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js +23 -0
  12. data/app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js +9 -0
  13. data/app/assets/stylesheets/component_guide/application.scss +4 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +3 -16
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +4 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +87 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +7 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +46 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +8 -0
  22. data/app/models/govuk_publishing_components/component_example.rb +4 -0
  23. data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -0
  24. data/app/views/govuk_publishing_components/component_guide/example.html.erb +4 -1
  25. data/app/views/govuk_publishing_components/component_guide/show.html.erb +3 -1
  26. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
  27. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +1 -1
  28. data/app/views/govuk_publishing_components/components/_document_list.html.erb +18 -9
  29. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +32 -21
  30. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +76 -0
  31. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +39 -51
  32. data/app/views/govuk_publishing_components/components/_panel.html.erb +13 -11
  33. data/app/views/govuk_publishing_components/components/_search.html.erb +10 -5
  34. data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
  35. data/app/views/govuk_publishing_components/components/docs/document_list.yml +18 -0
  36. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
  37. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +5 -1
  38. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +29 -0
  39. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +34 -0
  40. data/app/views/govuk_publishing_components/components/docs/search.yml +6 -0
  41. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
  42. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +6 -6
  43. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +8 -10
  44. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +23 -0
  45. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +17 -0
  46. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +9 -0
  47. data/config/initializers/assets.rb +8 -0
  48. data/config/locales/en.yml +18 -0
  49. data/lib/govuk_publishing_components.rb +1 -0
  50. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
  51. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
  52. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +1 -1
  53. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +380 -0
  54. data/lib/govuk_publishing_components/version.rb +1 -1
  55. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +0 -4
  56. data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +33 -33
  57. data/node_modules/govuk-frontend/package.json +1 -1
  58. metadata +14 -2
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "21.60.2".freeze
2
+ VERSION = "21.63.1".freeze
3
3
  end
@@ -11,10 +11,6 @@
11
11
  .govuk-textarea {
12
12
  margin-bottom: govuk-spacing(1);
13
13
  }
14
-
15
- .govuk-textarea--error {
16
- padding: govuk-spacing(1) - 2; // Stop a "jump" when width of border changes
17
- }
18
14
  }
19
15
 
20
16
  .govuk-character-count__message {
@@ -19,39 +19,6 @@ $govuk-use-legacy-palette: if((
19
19
  $govuk-compatibility-govukelements
20
20
  ), true, false) !default;
21
21
 
22
- /// Legacy colour palette
23
- ///
24
- /// This exists only because you cannot easily set a !default variable
25
- /// conditionally (thanks to the way scope works in Sass) so we set
26
- /// `$govuk-colour-palette` using the `if` function.
27
- ///
28
- /// @access private
29
-
30
- $_govuk-colour-palette-legacy: (
31
- "purple": #2e358b,
32
- "light-purple": #6f72af,
33
- "bright-purple": #912b88,
34
- "pink": #d53880,
35
- "light-pink": #f499be,
36
- "red": #b10e1e,
37
- "bright-red": #df3034,
38
- "orange": #f47738,
39
- "brown": #b58840,
40
- "yellow": #ffbf47,
41
- "light-green": #85994b,
42
- "green": #006435,
43
- "turquoise": #28a197,
44
- "light-blue": #2b8cc4,
45
- "blue": #005ea5,
46
-
47
- "black": #0b0c0c,
48
- "grey-1": #6f777b,
49
- "grey-2": #bfc1c3,
50
- "grey-3": #dee0e2,
51
- "grey-4": #f8f8f8,
52
- "white": #ffffff
53
- );
54
-
55
22
  /// Modern colour palette
56
23
  ///
57
24
  /// This exists only because you cannot easily set a !default variable
@@ -85,6 +52,39 @@ $_govuk-colour-palette-modern: (
85
52
  "turquoise": #28a197
86
53
  );
87
54
 
55
+ /// Legacy colour palette
56
+ ///
57
+ /// This exists only because you cannot easily set a !default variable
58
+ /// conditionally (thanks to the way scope works in Sass) so we set
59
+ /// `$govuk-colour-palette` using the `if` function.
60
+ ///
61
+ /// @access private
62
+
63
+ $_govuk-colour-palette-legacy: (
64
+ "purple": #2e358b,
65
+ "light-purple": #6f72af,
66
+ "bright-purple": #912b88,
67
+ "pink": #d53880,
68
+ "light-pink": #f499be,
69
+ "red": #b10e1e,
70
+ "bright-red": #df3034,
71
+ "orange": #f47738,
72
+ "brown": #b58840,
73
+ "yellow": #ffbf47,
74
+ "light-green": #85994b,
75
+ "green": #006435,
76
+ "turquoise": #28a197,
77
+ "light-blue": #2b8cc4,
78
+ "blue": #005ea5,
79
+
80
+ "black": #0b0c0c,
81
+ "grey-1": #6f777b,
82
+ "grey-2": #bfc1c3,
83
+ "grey-3": #dee0e2,
84
+ "grey-4": #f8f8f8,
85
+ "white": #ffffff
86
+ );
87
+
88
88
  /// Colour palette
89
89
  ///
90
90
  /// @type Map
@@ -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.8.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.2
4
+ version: 21.63.1
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-08-06 00:00:00.000000000 Z
11
+ date: 2020-08-27 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,8 +426,12 @@ 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
433
+ - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/closest.js
434
+ - app/assets/javascripts/govuk_publishing_components/vendor/polyfills/indexOf.js
430
435
  - app/assets/stylesheets/component_guide/application.scss
431
436
  - app/assets/stylesheets/component_guide/print.scss
432
437
  - app/assets/stylesheets/govuk_publishing_components/_all_components.scss
@@ -468,6 +473,7 @@ files:
468
473
  - app/assets/stylesheets/govuk_publishing_components/components/_label.scss
469
474
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss
470
475
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss
476
+ - app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss
471
477
  - app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss
472
478
  - app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss
473
479
  - app/assets/stylesheets/govuk_publishing_components/components/_list.scss
@@ -616,6 +622,7 @@ files:
616
622
  - app/views/govuk_publishing_components/components/_label.html.erb
617
623
  - app/views/govuk_publishing_components/components/_layout_footer.html.erb
618
624
  - app/views/govuk_publishing_components/components/_layout_for_admin.html.erb
625
+ - app/views/govuk_publishing_components/components/_layout_for_public.html.erb
619
626
  - app/views/govuk_publishing_components/components/_layout_header.html.erb
620
627
  - app/views/govuk_publishing_components/components/_lead_paragraph.html.erb
621
628
  - app/views/govuk_publishing_components/components/_list.html.erb
@@ -693,6 +700,7 @@ files:
693
700
  - app/views/govuk_publishing_components/components/docs/label.yml
694
701
  - app/views/govuk_publishing_components/components/docs/layout_footer.yml
695
702
  - app/views/govuk_publishing_components/components/docs/layout_for_admin.yml
703
+ - app/views/govuk_publishing_components/components/docs/layout_for_public.yml
696
704
  - app/views/govuk_publishing_components/components/docs/layout_header.yml
697
705
  - app/views/govuk_publishing_components/components/docs/lead_paragraph.yml
698
706
  - app/views/govuk_publishing_components/components/docs/list.yml
@@ -728,6 +736,9 @@ files:
728
736
  - app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb
729
737
  - app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb
730
738
  - app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb
739
+ - app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb
740
+ - app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb
741
+ - app/views/govuk_publishing_components/components/layout_header/_search.html.erb
731
742
  - app/views/govuk_publishing_components/components/metadata/_sentence.html.erb
732
743
  - app/views/govuk_publishing_components/components/related_navigation/_section.html.erb
733
744
  - app/views/layouts/govuk_publishing_components/application.html.erb
@@ -781,6 +792,7 @@ files:
781
792
  - lib/govuk_publishing_components/presenters/meta_tags.rb
782
793
  - lib/govuk_publishing_components/presenters/organisation_logo_helper.rb
783
794
  - lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb
795
+ - lib/govuk_publishing_components/presenters/public_layout_helper.rb
784
796
  - lib/govuk_publishing_components/presenters/related_navigation_helper.rb
785
797
  - lib/govuk_publishing_components/presenters/schema_org.rb
786
798
  - lib/govuk_publishing_components/presenters/select.rb