govuk-components 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/components/govuk_component/accordion_component/section_component.html.erb +1 -1
  4. data/app/components/govuk_component/accordion_component/section_component.rb +4 -4
  5. data/app/components/govuk_component/accordion_component.html.erb +1 -1
  6. data/app/components/govuk_component/accordion_component.rb +5 -6
  7. data/app/components/govuk_component/back_link_component.rb +6 -6
  8. data/app/components/govuk_component/base.rb +12 -10
  9. data/app/components/govuk_component/breadcrumbs_component.html.erb +1 -1
  10. data/app/components/govuk_component/breadcrumbs_component.rb +10 -8
  11. data/app/components/govuk_component/cookie_banner_component/message_component.rb +5 -5
  12. data/app/components/govuk_component/cookie_banner_component.rb +7 -5
  13. data/app/components/govuk_component/details_component.rb +5 -5
  14. data/app/components/govuk_component/footer_component.html.erb +2 -2
  15. data/app/components/govuk_component/footer_component.rb +13 -9
  16. data/app/components/govuk_component/header_component.html.erb +3 -3
  17. data/app/components/govuk_component/header_component.rb +32 -29
  18. data/app/components/govuk_component/inset_text_component.rb +5 -5
  19. data/app/components/govuk_component/notification_banner_component.html.erb +1 -1
  20. data/app/components/govuk_component/notification_banner_component.rb +20 -21
  21. data/app/components/govuk_component/panel_component.rb +5 -5
  22. data/app/components/govuk_component/phase_banner_component.html.erb +1 -1
  23. data/app/components/govuk_component/phase_banner_component.rb +4 -4
  24. data/app/components/govuk_component/section_break_component.rb +44 -0
  25. data/app/components/govuk_component/start_button_component.rb +16 -17
  26. data/app/components/govuk_component/summary_list_component/action_component.rb +7 -3
  27. data/app/components/govuk_component/summary_list_component/key_component.rb +5 -5
  28. data/app/components/govuk_component/summary_list_component/row_component.rb +15 -7
  29. data/app/components/govuk_component/summary_list_component/value_component.rb +3 -3
  30. data/app/components/govuk_component/summary_list_component.html.erb +1 -1
  31. data/app/components/govuk_component/summary_list_component.rb +4 -8
  32. data/app/components/govuk_component/tab_component.html.erb +2 -2
  33. data/app/components/govuk_component/tab_component.rb +17 -9
  34. data/app/components/govuk_component/table_component/body_component.html.erb +1 -1
  35. data/app/components/govuk_component/table_component/body_component.rb +2 -2
  36. data/app/components/govuk_component/table_component/caption_component.rb +5 -5
  37. data/app/components/govuk_component/table_component/cell_component.rb +10 -2
  38. data/app/components/govuk_component/table_component/head_component.html.erb +1 -1
  39. data/app/components/govuk_component/table_component/head_component.rb +2 -2
  40. data/app/components/govuk_component/table_component/row_component.html.erb +1 -1
  41. data/app/components/govuk_component/table_component/row_component.rb +4 -4
  42. data/app/components/govuk_component/table_component.html.erb +1 -1
  43. data/app/components/govuk_component/table_component.rb +4 -4
  44. data/app/components/govuk_component/tag_component.rb +7 -5
  45. data/app/components/govuk_component/traits/custom_classes.rb +0 -24
  46. data/app/components/govuk_component/warning_text_component.rb +5 -5
  47. data/app/helpers/govuk_components_helper.rb +1 -0
  48. data/app/helpers/govuk_link_helper.rb +2 -1
  49. data/lib/govuk/components/version.rb +1 -1
  50. data/lib/govuk/components.rb +1 -0
  51. metadata +33 -5
  52. data/app/components/govuk_component/table_component/cell_component.html.erb +0 -1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '6.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: html-attributes-utils
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.9.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: view_component
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,20 @@ dependencies:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: 2.49.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: deep_merge
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: pry-byebug
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +226,14 @@ dependencies:
198
226
  requirements:
199
227
  - - "~>"
200
228
  - !ruby/object:Gem::Version
201
- version: 3.28.0
229
+ version: 3.29.0
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
205
233
  requirements:
206
234
  - - "~>"
207
235
  - !ruby/object:Gem::Version
208
- version: 3.28.0
236
+ version: 3.29.0
209
237
  - !ruby/object:Gem::Dependency
210
238
  name: rubypants
211
239
  requirement: !ruby/object:Gem::Requirement
@@ -323,6 +351,7 @@ files:
323
351
  - app/components/govuk_component/panel_component.rb
324
352
  - app/components/govuk_component/phase_banner_component.html.erb
325
353
  - app/components/govuk_component/phase_banner_component.rb
354
+ - app/components/govuk_component/section_break_component.rb
326
355
  - app/components/govuk_component/start_button_component.rb
327
356
  - app/components/govuk_component/summary_list_component.html.erb
328
357
  - app/components/govuk_component/summary_list_component.rb
@@ -337,7 +366,6 @@ files:
337
366
  - app/components/govuk_component/table_component/body_component.html.erb
338
367
  - app/components/govuk_component/table_component/body_component.rb
339
368
  - app/components/govuk_component/table_component/caption_component.rb
340
- - app/components/govuk_component/table_component/cell_component.html.erb
341
369
  - app/components/govuk_component/table_component/cell_component.rb
342
370
  - app/components/govuk_component/table_component/head_component.html.erb
343
371
  - app/components/govuk_component/table_component/head_component.rb
@@ -1 +0,0 @@
1
- <%= content_tag(cell_element, cell_content, class: classes, **html_attributes) %>