govuk_publishing_components 28.1.0 → 28.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js +2 -1
  4. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +22 -22
  5. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +9 -5
  6. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +4 -3
  7. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +0 -1
  8. data/app/assets/javascripts/govuk_publishing_components/components/details.js +2 -3
  9. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/barchart-enhancement.js +2 -2
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +5 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -5
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +2 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +67 -21
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -2
  15. data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/_action_link.html.erb +1 -1
  17. data/app/views/govuk_publishing_components/components/_big_number.html.erb +19 -9
  18. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +0 -4
  19. data/app/views/govuk_publishing_components/components/_details.html.erb +1 -1
  20. data/app/views/govuk_publishing_components/components/_heading.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/_hint.html.erb +1 -1
  22. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +22 -18
  23. data/app/views/govuk_publishing_components/components/_list.html.erb +1 -1
  24. data/app/views/govuk_publishing_components/components/_metadata.html.erb +1 -1
  25. data/app/views/govuk_publishing_components/components/_notice.html.erb +1 -1
  26. data/app/views/govuk_publishing_components/components/_print_link.html.erb +2 -2
  27. data/app/views/govuk_publishing_components/components/_search.html.erb +2 -2
  28. data/app/views/govuk_publishing_components/components/_select.html.erb +19 -1
  29. data/app/views/govuk_publishing_components/components/_share_links.html.erb +25 -22
  30. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -1
  31. data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_title.html.erb +3 -3
  33. data/app/views/govuk_publishing_components/components/docs/big_number.yml +6 -0
  34. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +0 -47
  35. data/app/views/govuk_publishing_components/components/docs/select.yml +12 -0
  36. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +26 -0
  37. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +16 -8
  38. data/config/locales/ar.yml +2 -0
  39. data/config/locales/az.yml +2 -1
  40. data/config/locales/be.yml +2 -0
  41. data/config/locales/bg.yml +2 -0
  42. data/config/locales/bn.yml +2 -0
  43. data/config/locales/cs.yml +2 -0
  44. data/config/locales/cy.yml +2 -0
  45. data/config/locales/da.yml +2 -0
  46. data/config/locales/de.yml +2 -0
  47. data/config/locales/dr.yml +2 -0
  48. data/config/locales/el.yml +2 -0
  49. data/config/locales/en.yml +0 -4
  50. data/config/locales/es-419.yml +2 -0
  51. data/config/locales/es.yml +2 -0
  52. data/config/locales/et.yml +2 -0
  53. data/config/locales/fa.yml +2 -1
  54. data/config/locales/fi.yml +2 -0
  55. data/config/locales/fr.yml +2 -0
  56. data/config/locales/gd.yml +2 -0
  57. data/config/locales/gu.yml +2 -0
  58. data/config/locales/he.yml +2 -0
  59. data/config/locales/hi.yml +2 -0
  60. data/config/locales/hr.yml +2 -0
  61. data/config/locales/hu.yml +2 -0
  62. data/config/locales/hy.yml +2 -0
  63. data/config/locales/id.yml +2 -1
  64. data/config/locales/is.yml +2 -0
  65. data/config/locales/it.yml +2 -0
  66. data/config/locales/ja.yml +2 -1
  67. data/config/locales/ka.yml +2 -0
  68. data/config/locales/kk.yml +2 -0
  69. data/config/locales/ko.yml +2 -1
  70. data/config/locales/lt.yml +2 -0
  71. data/config/locales/lv.yml +2 -0
  72. data/config/locales/ms.yml +2 -1
  73. data/config/locales/mt.yml +2 -0
  74. data/config/locales/nl.yml +2 -0
  75. data/config/locales/no.yml +2 -0
  76. data/config/locales/pa-pk.yml +2 -0
  77. data/config/locales/pa.yml +2 -0
  78. data/config/locales/pl.yml +2 -0
  79. data/config/locales/ps.yml +2 -0
  80. data/config/locales/pt.yml +2 -0
  81. data/config/locales/ro.yml +2 -0
  82. data/config/locales/ru.yml +2 -0
  83. data/config/locales/si.yml +2 -0
  84. data/config/locales/sk.yml +2 -0
  85. data/config/locales/sl.yml +2 -0
  86. data/config/locales/so.yml +2 -0
  87. data/config/locales/sq.yml +2 -0
  88. data/config/locales/sr.yml +2 -1
  89. data/config/locales/sv.yml +2 -0
  90. data/config/locales/sw.yml +2 -0
  91. data/config/locales/ta.yml +2 -0
  92. data/config/locales/th.yml +2 -1
  93. data/config/locales/tk.yml +2 -0
  94. data/config/locales/tr.yml +2 -0
  95. data/config/locales/uk.yml +2 -0
  96. data/config/locales/ur.yml +2 -0
  97. data/config/locales/uz.yml +2 -0
  98. data/config/locales/vi.yml +2 -1
  99. data/config/locales/zh-hk.yml +2 -1
  100. data/config/locales/zh-tw.yml +2 -1
  101. data/config/locales/zh.yml +2 -1
  102. data/lib/govuk_publishing_components/presenters/big_number_helper.rb +30 -0
  103. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -38
  104. data/lib/govuk_publishing_components/version.rb +1 -1
  105. data/lib/govuk_publishing_components.rb +1 -0
  106. metadata +5 -11
  107. data/app/views/govuk_publishing_components/components/contextual_sidebar/_covid_cta.html.erb +0 -27
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: 28.1.0
4
+ version: 28.5.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: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -226,20 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '4.0'
230
- - - ">="
231
- - !ruby/object:Gem::Version
232
- version: 4.0.2
229
+ version: 5.0.0
233
230
  type: :development
234
231
  prerelease: false
235
232
  version_requirements: !ruby/object:Gem::Requirement
236
233
  requirements:
237
234
  - - "~>"
238
235
  - !ruby/object:Gem::Version
239
- version: '4.0'
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- version: 4.0.2
236
+ version: 5.0.0
243
237
  - !ruby/object:Gem::Dependency
244
238
  name: pry-byebug
245
239
  requirement: !ruby/object:Gem::Requirement
@@ -760,7 +754,6 @@ files:
760
754
  - app/views/govuk_publishing_components/components/attachment/_thumbnail_generic.html.erb
761
755
  - app/views/govuk_publishing_components/components/attachment/_thumbnail_spreadsheet.html.erb
762
756
  - app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb
763
- - app/views/govuk_publishing_components/components/contextual_sidebar/_covid_cta.html.erb
764
757
  - app/views/govuk_publishing_components/components/docs/accordion.yml
765
758
  - app/views/govuk_publishing_components/components/docs/action_link.yml
766
759
  - app/views/govuk_publishing_components/components/docs/attachment.yml
@@ -931,6 +924,7 @@ files:
931
924
  - lib/govuk_publishing_components/engine.rb
932
925
  - lib/govuk_publishing_components/minitest/component_guide_test.rb
933
926
  - lib/govuk_publishing_components/presenters/attachment.rb
927
+ - lib/govuk_publishing_components/presenters/big_number_helper.rb
934
928
  - lib/govuk_publishing_components/presenters/breadcrumb_selector.rb
935
929
  - lib/govuk_publishing_components/presenters/breadcrumbs.rb
936
930
  - lib/govuk_publishing_components/presenters/button_helper.rb
@@ -1,27 +0,0 @@
1
- <% shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) %>
2
- <%
3
- title = t("components.related_navigation.covid_booster.title")
4
- link_text = t("components.related_navigation.covid_booster.link_text")
5
- link_path = t("components.related_navigation.covid_booster.link_path")
6
- lang = shared_helper.t_locale("components.related_navigation.covid_booster.title")
7
- %>
8
-
9
- <% data_attributes = {
10
- "module": "gem-track-click",
11
- "track-category": "relatedLinkClicked",
12
- "track-action": "1.0 Coronavirus",
13
- "track-label": link_path,
14
- "track-dimension": link_text,
15
- "track-dimension-index": "29",
16
- } %>
17
-
18
- <%= tag.div class: "gem-c-contextual-sidebar__cta gem-c-contextual-sidebar__cta--covid" do %>
19
- <%= tag.h2 title, class: "gem-c-contextual-sidebar__heading govuk-heading-s" %>
20
- <%= tag.p class: "gem-c-contextual-sidebar__text govuk-body" do %>
21
- <%= link_to link_text,
22
- link_path,
23
- class: "govuk-link",
24
- data: data_attributes,
25
- lang: lang %>
26
- <% end %>
27
- <% end %>