govuk_publishing_components 27.11.0 → 27.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +6 -4
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +81 -41
  4. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss +5 -0
  5. data/app/views/govuk_publishing_components/components/_input.html.erb +35 -22
  6. data/app/views/govuk_publishing_components/components/_search.html.erb +2 -1
  7. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +4 -5
  8. data/app/views/govuk_publishing_components/components/docs/input.yml +10 -0
  9. data/config/locales/ar.yml +0 -3
  10. data/config/locales/az.yml +0 -3
  11. data/config/locales/be.yml +0 -3
  12. data/config/locales/bg.yml +0 -3
  13. data/config/locales/bn.yml +0 -3
  14. data/config/locales/cs.yml +0 -3
  15. data/config/locales/cy.yml +0 -3
  16. data/config/locales/da.yml +0 -3
  17. data/config/locales/de.yml +0 -3
  18. data/config/locales/dr.yml +0 -3
  19. data/config/locales/el.yml +0 -3
  20. data/config/locales/en.yml +0 -3
  21. data/config/locales/es-419.yml +0 -3
  22. data/config/locales/es.yml +0 -3
  23. data/config/locales/et.yml +0 -3
  24. data/config/locales/fa.yml +0 -3
  25. data/config/locales/fi.yml +0 -3
  26. data/config/locales/fr.yml +0 -3
  27. data/config/locales/gd.yml +0 -3
  28. data/config/locales/gu.yml +0 -3
  29. data/config/locales/he.yml +0 -3
  30. data/config/locales/hi.yml +0 -3
  31. data/config/locales/hr.yml +0 -3
  32. data/config/locales/hu.yml +0 -3
  33. data/config/locales/hy.yml +0 -3
  34. data/config/locales/id.yml +0 -3
  35. data/config/locales/is.yml +0 -3
  36. data/config/locales/it.yml +0 -3
  37. data/config/locales/ja.yml +0 -3
  38. data/config/locales/ka.yml +0 -3
  39. data/config/locales/kk.yml +0 -3
  40. data/config/locales/ko.yml +0 -3
  41. data/config/locales/lt.yml +0 -3
  42. data/config/locales/lv.yml +0 -3
  43. data/config/locales/ms.yml +0 -3
  44. data/config/locales/mt.yml +0 -3
  45. data/config/locales/nl.yml +0 -3
  46. data/config/locales/no.yml +0 -3
  47. data/config/locales/pa-pk.yml +0 -3
  48. data/config/locales/pa.yml +0 -3
  49. data/config/locales/pl.yml +0 -3
  50. data/config/locales/ps.yml +0 -3
  51. data/config/locales/pt.yml +0 -3
  52. data/config/locales/ro.yml +0 -3
  53. data/config/locales/ru.yml +0 -3
  54. data/config/locales/si.yml +0 -3
  55. data/config/locales/sk.yml +0 -3
  56. data/config/locales/sl.yml +0 -3
  57. data/config/locales/so.yml +0 -3
  58. data/config/locales/sq.yml +0 -3
  59. data/config/locales/sr.yml +0 -3
  60. data/config/locales/sv.yml +0 -3
  61. data/config/locales/sw.yml +0 -3
  62. data/config/locales/ta.yml +0 -3
  63. data/config/locales/th.yml +0 -3
  64. data/config/locales/tk.yml +0 -3
  65. data/config/locales/tr.yml +0 -3
  66. data/config/locales/uk.yml +0 -3
  67. data/config/locales/ur.yml +0 -3
  68. data/config/locales/uz.yml +0 -3
  69. data/config/locales/vi.yml +0 -3
  70. data/config/locales/zh-hk.yml +0 -3
  71. data/config/locales/zh-tw.yml +0 -3
  72. data/config/locales/zh.yml +0 -3
  73. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +11 -0
  74. data/lib/govuk_publishing_components/version.rb +1 -1
  75. data/lib/govuk_publishing_components.rb +0 -1
  76. metadata +3 -3
  77. data/lib/govuk_publishing_components/presenters/brexit_cta_helper.rb +0 -33
@@ -166,9 +166,6 @@ fa:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ fi:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ fr:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ gd:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ gu:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ he:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ hi:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ hr:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ hu:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ hy:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ id:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ is:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ it:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ja:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ka:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ kk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ko:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ lt:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ lv:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ms:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ mt:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ nl:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ pa-pk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ pa:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ pl:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ps:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ pt:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ro:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ru:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ si:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sl:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ so:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sq:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sr:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sv:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ sw:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ta:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ th:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ tk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ tr:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ uk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ ur:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ uz:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ vi:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ zh-hk:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ zh-tw:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -166,9 +166,6 @@ zh:
166
166
  topical_events:
167
167
  topics:
168
168
  transition:
169
- hub_page_link_path:
170
- hub_page_link_text:
171
- hub_page_title:
172
169
  link_path:
173
170
  link_text:
174
171
  title:
@@ -179,6 +179,17 @@ module GovukPublishingComponents
179
179
  4ca8698b-4a24-45ff-baea-7633cc24b679
180
180
  ed73581f-9bf8-48b5-bb66-935581a255e3
181
181
  15f1c594-af1d-4f16-97cc-ad4d12017509
182
+ ] + brexit_hub_pages
183
+ end
184
+
185
+ # we don't want to show the standard Brexit sidebar nav on
186
+ # https://www.gov.uk/guidance/brexit-guidance-for-individuals-and-families or
187
+ # https://www.gov.uk/guidance/brexit-guidance-for-businesses
188
+ # as it might result in circular journeys
189
+ def brexit_hub_pages
190
+ %w[
191
+ 91cd6143-69d5-4f27-99ff-a52fb0d51c78
192
+ 6555e0bf-c270-4cf9-a0c5-d20b95fab7f1
182
193
  ]
183
194
  end
184
195
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "27.11.0".freeze
2
+ VERSION = "27.12.0".freeze
3
3
  end
@@ -8,7 +8,6 @@ require "govuk_publishing_components/presenters/shared_helper"
8
8
  require "govuk_publishing_components/presenters/attachment"
9
9
  require "govuk_publishing_components/presenters/breadcrumbs"
10
10
  require "govuk_publishing_components/presenters/breadcrumb_selector"
11
- require "govuk_publishing_components/presenters/brexit_cta_helper"
12
11
  require "govuk_publishing_components/presenters/button_helper"
13
12
  require "govuk_publishing_components/presenters/contextual_navigation"
14
13
  require "govuk_publishing_components/presenters/devolved_nations_helper"
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: 27.11.0
4
+ version: 27.12.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: 2021-11-09 00:00:00.000000000 Z
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -637,6 +637,7 @@ files:
637
637
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_govuk-template-link-focus-override.scss
638
638
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss
639
639
  - app/assets/stylesheets/govuk_publishing_components/components/mixins/_media-down.scss
640
+ - app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss
640
641
  - app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss
641
642
  - app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss
642
643
  - app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss
@@ -931,7 +932,6 @@ files:
931
932
  - lib/govuk_publishing_components/presenters/attachment.rb
932
933
  - lib/govuk_publishing_components/presenters/breadcrumb_selector.rb
933
934
  - lib/govuk_publishing_components/presenters/breadcrumbs.rb
934
- - lib/govuk_publishing_components/presenters/brexit_cta_helper.rb
935
935
  - lib/govuk_publishing_components/presenters/button_helper.rb
936
936
  - lib/govuk_publishing_components/presenters/checkboxes_helper.rb
937
937
  - lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_ancestors.rb
@@ -1,33 +0,0 @@
1
- module GovukPublishingComponents
2
- module Presenters
3
- class BrexitCtaHelper
4
- BREXIT_HUB_PAGE_IDS = %w[
5
- 6555e0bf-c270-4cf9-a0c5-d20b95fab7f1
6
- 91cd6143-69d5-4f27-99ff-a52fb0d51c78
7
- ].freeze
8
-
9
- def initialize(content_item)
10
- @content_item = content_item
11
- end
12
-
13
- def title_key
14
- use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_title" : "components.related_navigation.transition.title"
15
- end
16
-
17
- def link_text_key
18
- use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_link_text" : "components.related_navigation.transition.link_text"
19
- end
20
-
21
- def link_path_key
22
- use_brexit_hub_page_navigation? ? "components.related_navigation.transition.hub_page_link_path" : "components.related_navigation.transition.link_path"
23
- end
24
-
25
- private
26
-
27
- def use_brexit_hub_page_navigation?
28
- I18n.locale == :en &&
29
- BREXIT_HUB_PAGE_IDS.include?(@content_item["content_id"])
30
- end
31
- end
32
- end
33
- end