govuk_publishing_components 21.60.1 → 21.63.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +102 -73
- data/app/assets/javascripts/govuk_publishing_components/ie.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +4 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +487 -0
- data/app/assets/stylesheets/component_guide/application.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +3 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +87 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +46 -0
- data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +8 -0
- data/app/models/govuk_publishing_components/audit_applications.rb +35 -23
- data/app/models/govuk_publishing_components/audit_comparer.rb +13 -0
- data/app/models/govuk_publishing_components/component_example.rb +4 -0
- data/app/views/govuk_publishing_components/audit/show.html.erb +32 -3
- data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_document_list.html.erb +18 -9
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +32 -21
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +76 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +39 -51
- data/app/views/govuk_publishing_components/components/_search.html.erb +10 -5
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
- data/app/views/govuk_publishing_components/components/docs/document_list.yml +18 -0
- data/app/views/govuk_publishing_components/components/docs/image_card.yml +13 -1
- data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
- data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +5 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +29 -0
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +34 -0
- data/app/views/govuk_publishing_components/components/docs/search.yml +6 -0
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +6 -6
- data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +8 -10
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +23 -0
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +17 -0
- data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +9 -0
- data/config/initializers/assets.rb +8 -0
- data/config/locales/en.yml +18 -0
- data/lib/govuk_publishing_components.rb +1 -0
- data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
- data/lib/govuk_publishing_components/presenters/image_card_helper.rb +3 -2
- data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +380 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +0 -4
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +33 -33
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +12 -2
@@ -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.
|
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.
|
4
|
+
version: 21.63.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-
|
11
|
+
date: 2020-08-21 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
|