govuk_publishing_components 25.0.0 → 25.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +234 -40
  3. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +6 -0
  4. data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +34 -5
  5. data/app/assets/javascripts/govuk_publishing_components/modules.js +11 -17
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +606 -41
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +2 -17
  8. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +5 -0
  9. data/app/views/govuk_publishing_components/components/_fieldset.html.erb +1 -1
  10. data/app/views/govuk_publishing_components/components/_input.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_label.html.erb +6 -4
  12. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +1 -1
  13. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +265 -63
  14. data/app/views/govuk_publishing_components/components/_notice.html.erb +19 -13
  15. data/app/views/govuk_publishing_components/components/_radio.html.erb +4 -4
  16. data/app/views/govuk_publishing_components/components/_search.html.erb +11 -3
  17. data/app/views/govuk_publishing_components/components/_select.html.erb +3 -1
  18. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +1 -1
  19. data/app/views/govuk_publishing_components/components/_title.html.erb +14 -4
  20. data/app/views/govuk_publishing_components/components/docs/notice.yml +15 -0
  21. data/app/views/govuk_publishing_components/components/docs/search.yml +5 -0
  22. data/app/views/govuk_publishing_components/components/docs/title.yml +7 -0
  23. data/config/locales/ar.yml +5 -3
  24. data/config/locales/az.yml +5 -3
  25. data/config/locales/be.yml +5 -3
  26. data/config/locales/bg.yml +5 -3
  27. data/config/locales/bn.yml +5 -3
  28. data/config/locales/cs.yml +5 -3
  29. data/config/locales/cy.yml +8 -6
  30. data/config/locales/da.yml +5 -3
  31. data/config/locales/de.yml +5 -3
  32. data/config/locales/dr.yml +5 -3
  33. data/config/locales/el.yml +5 -3
  34. data/config/locales/en.yml +89 -83
  35. data/config/locales/es-419.yml +5 -3
  36. data/config/locales/es.yml +5 -3
  37. data/config/locales/et.yml +5 -3
  38. data/config/locales/fa.yml +5 -3
  39. data/config/locales/fi.yml +5 -3
  40. data/config/locales/fr.yml +5 -3
  41. data/config/locales/gd.yml +5 -3
  42. data/config/locales/gu.yml +5 -3
  43. data/config/locales/he.yml +5 -3
  44. data/config/locales/hi.yml +5 -3
  45. data/config/locales/hr.yml +5 -3
  46. data/config/locales/hu.yml +5 -3
  47. data/config/locales/hy.yml +5 -3
  48. data/config/locales/id.yml +5 -3
  49. data/config/locales/is.yml +5 -3
  50. data/config/locales/it.yml +5 -3
  51. data/config/locales/ja.yml +5 -3
  52. data/config/locales/ka.yml +5 -3
  53. data/config/locales/kk.yml +5 -3
  54. data/config/locales/ko.yml +5 -3
  55. data/config/locales/lt.yml +5 -3
  56. data/config/locales/lv.yml +5 -3
  57. data/config/locales/ms.yml +5 -3
  58. data/config/locales/mt.yml +5 -3
  59. data/config/locales/nl.yml +5 -3
  60. data/config/locales/no.yml +5 -3
  61. data/config/locales/pa-pk.yml +5 -3
  62. data/config/locales/pa.yml +5 -3
  63. data/config/locales/pl.yml +5 -3
  64. data/config/locales/ps.yml +5 -3
  65. data/config/locales/pt.yml +5 -3
  66. data/config/locales/ro.yml +5 -3
  67. data/config/locales/ru.yml +5 -3
  68. data/config/locales/si.yml +5 -3
  69. data/config/locales/sk.yml +5 -3
  70. data/config/locales/sl.yml +5 -3
  71. data/config/locales/so.yml +5 -3
  72. data/config/locales/sq.yml +5 -3
  73. data/config/locales/sr.yml +5 -3
  74. data/config/locales/sv.yml +5 -3
  75. data/config/locales/sw.yml +5 -3
  76. data/config/locales/ta.yml +5 -3
  77. data/config/locales/th.yml +5 -3
  78. data/config/locales/tk.yml +5 -3
  79. data/config/locales/tr.yml +5 -3
  80. data/config/locales/uk.yml +5 -3
  81. data/config/locales/ur.yml +5 -3
  82. data/config/locales/uz.yml +5 -3
  83. data/config/locales/vi.yml +5 -3
  84. data/config/locales/zh-hk.yml +5 -3
  85. data/config/locales/zh-tw.yml +5 -3
  86. data/config/locales/zh.yml +5 -3
  87. data/lib/govuk_publishing_components/presenters/shared_helper.rb +5 -1
  88. data/lib/govuk_publishing_components/version.rb +1 -1
  89. metadata +2 -2
@@ -82,11 +82,13 @@ zh-tw:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -82,11 +82,13 @@ zh:
82
82
  layout_super_navigation_header:
83
83
  logo_link_title:
84
84
  logo_text:
85
+ navigation_links:
85
86
  navigation_menu_heading:
86
- search_text:
87
- popular_links_heading:
87
+ navigation_search_heading:
88
+ navigation_search_subheading:
88
89
  popular_links:
89
- navigation_links:
90
+ popular_links_heading:
91
+ search_text:
90
92
  metadata:
91
93
  from:
92
94
  history:
@@ -31,10 +31,14 @@ module GovukPublishingComponents
31
31
  "span"
32
32
  end
33
33
 
34
+ def valid_heading_size?(size)
35
+ %w[xl l m s].include?(size)
36
+ end
37
+
34
38
  def get_heading_size(option, fallback)
35
39
  govuk_class = "govuk-heading-"
36
40
 
37
- if %w[xl l m s].include? option
41
+ if valid_heading_size?(option)
38
42
  "#{govuk_class}#{option}"
39
43
  else
40
44
  "#{govuk_class}#{fallback}"
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "25.0.0".freeze
2
+ VERSION = "25.2.2".freeze
3
3
  end
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: 25.0.0
4
+ version: 25.2.2
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-07-29 00:00:00.000000000 Z
11
+ date: 2021-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config