govuk-components 5.10.2b1 → 5.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d122b0afd73a45a3f7876e2c3f172a89e19fcb5027e6d849fbd9e6f5456f08d5
4
- data.tar.gz: fd63ae392db91ec37cd9efd2ddfc35040de66b0bf5f932daffdec1f2ab768f37
3
+ metadata.gz: bb4fc7c72846bacfa13fd27794ac906e54dcbf79d19d01b2640780840d8f2b1b
4
+ data.tar.gz: e0b1e83dea4dc992bb7dbfb7447d7eccb3d792b871efdd272e2505e57d3679bc
5
5
  SHA512:
6
- metadata.gz: 8319c1570b58131e618be7187687afe137cfd5cf21b0758474cfaf7f75b4d179b9c3990232ab923dba5b3482c4c450fac1d0b8c4b1ee88554a1fdac84a843b30
7
- data.tar.gz: d2e7f86f137a3e23cb7a866706320ac0671daa0a73cfe03769573161bbc69f96d97b260fc1a9c303c59ad454c4b4585c193816a8d60958bc603d20d1c647ee8e
6
+ metadata.gz: e1b6704e558bc1b41563c492881f4d6117e7b245120d30673d1036d10bd620cb1874ab55552b8f784c524bcd8d7b20bcf43945e4422070f52f75e7804a3da864
7
+ data.tar.gz: 1690fb1a70eeda176c6dfda86375ec0a824bf47b34b7ac6f020b6518b80c43173ec9579dedecd1ddc6996f8299fb7f4f989046e1b8a3fe9b5e661bf7d7938196
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Gem](https://img.shields.io/gem/dt/govuk-components?logo=rubygems)](https://rubygems.org/gems/govuk-components)
7
7
  [![Test coverage](https://api.codeclimate.com/v1/badges/cbcbc140f300b920d833/test_coverage)](https://codeclimate.com/github/x-govuk/govuk-components/test_coverage)
8
8
  [![Licence](https://img.shields.io/github/license/x-govuk/govuk-components)](https://github.com/x-govuk/govuk-components/blob/main/LICENSE.txt)
9
- [![GOV.UK Design System version](https://img.shields.io/badge/GOV.UK%20Design%20System-5.10.0-brightgreen)](https://design-system.service.gov.uk)
9
+ [![GOV.UK Design System version](https://img.shields.io/badge/GOV.UK%20Design%20System-5.11.0-brightgreen)](https://design-system.service.gov.uk)
10
10
  [![ViewComponent](https://img.shields.io/badge/ViewComponent-3.24.0-brightgreen)](https://viewcomponent.org/)
11
11
  [![Rails](https://img.shields.io/badge/Rails-7.1.5%20%E2%95%B1%207.2.2%20%E2%95%B1%208.0.0-E16D6D)](https://weblog.rubyonrails.org/releases/)
12
12
  [![Ruby](https://img.shields.io/badge/Ruby-3.2.5%20%20%E2%95%B1%203.2.6%20%20%E2%95%B1%203.3.6-E16D6D)](https://www.ruby-lang.org/en/downloads/)
@@ -2,15 +2,15 @@
2
2
  <%= tag.div(**container_html_attributes) do %>
3
3
  <%= tag.svg(class: "#{brand}-footer__crown", focusable: "false", role: "presentation", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 60", height: "30", width: "32", fill: "currentColor") do %>
4
4
  <g>
5
- <circle cx="20" cy="17.6" r="3.7"></circle>
6
- <circle cx="10.2" cy="23.5" r="3.7"></circle>
7
- <circle cx="3.7" cy="33.2" r="3.7"></circle>
8
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
9
- <circle cx="43.3" cy="17.6" r="3.7"></circle>
10
- <circle cx="53.2" cy="23.5" r="3.7"></circle>
11
- <circle cx="59.7" cy="33.2" r="3.7"></circle>
12
- <circle cx="31.7" cy="30.6" r="3.7"></circle>
13
- <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z"></path>
5
+ <circle cx="20" cy="17.6" r="3.7"/>
6
+ <circle cx="10.2" cy="23.5" r="3.7"/>
7
+ <circle cx="3.7" cy="33.2" r="3.7"/>
8
+ <circle cx="31.7" cy="30.6" r="3.7"/>
9
+ <circle cx="43.3" cy="17.6" r="3.7"/>
10
+ <circle cx="53.2" cy="23.5" r="3.7"/>
11
+ <circle cx="59.7" cy="33.2" r="3.7"/>
12
+ <circle cx="31.7" cy="30.6" r="3.7"/>
13
+ <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h10.6,0Z"/>
14
14
  </g>
15
15
  <% end %>
16
16
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  <% if meta_licence_content.nil? %>
50
50
  <svg aria-hidden="true" focusable="false" class="<%= brand %>-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.2 195.7" height="17" width="41">
51
- <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
51
+ <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"/>
52
52
  </svg>
53
53
 
54
54
  <%= tag.span(default_licence, class: "#{brand}-footer__licence-description") %>
@@ -9,26 +9,27 @@
9
9
  focusable="false"
10
10
  role="img"
11
11
  xmlns="http://www.w3.org/2000/svg"
12
- viewBox="0 0 163 30"
12
+ viewBox="0 0 324 60"
13
13
  height="30"
14
- width="163"
14
+ width="162"
15
+ fill="currentcolor"
15
16
  class="<%= brand %>-header__logotype"
16
17
  aria-label="GOV.UK"
17
18
  >
18
19
  <title>GOV.UK</title>
19
20
  <g>
20
- <circle cx="10.1" cy="8.8" r="1.8"></circle>
21
- <circle cx="5.2" cy="11.7" r="1.8"></circle>
22
- <circle cx="1.9" cy="16.6" r="1.8"></circle>
23
- <circle cx="16" cy="15.3" r="1.8"></circle>
24
- <circle cx="21.9" cy="8.8" r="1.8"></circle>
25
- <circle cx="26.8" cy="11.7" r="1.8"></circle>
26
- <circle cx="30.1" cy="16.6" r="1.8"></circle>
27
- <circle cx="16" cy="15.3" r="1.8"></circle>
28
- <path d="m16.7 4.9.2-.2 2.3 1.2V2.5l-2.3.7s-.1-.2-.2-.2l.9-2.9h-3.4l.9 2.9s-.2.1-.2.2l-2.3-.7v3.4l2.3-1.2.2.2-1.3 4c-.5 1.4.6 2.9 2.1 2.9s2.5-1.4 2.1-2.9l-1.3-4Zm2 14s-1.7 1.9-2.1 3c1.1 0 2.1-.3 3.2-1.4l-.4 4.3c-1-1.4-2.2-2-2.9-1.9 0 1.5.2 3.4 2.9 3.6 1.9.2 3.4-.8 3.5-1.9.2-1.3-1-2.2-1.9-.8-.7-2.3 1.2-3 2.5-1.6-1-2.2-.9-3.8 1.2-5.4 1.5 2 1.3 3.7-.6 5.5 1.2-.7 3.1 0 2 2.3-.6-1.4-1.8-1.1-2.1.1-.2.9.3 1.9 1.5 2.1.9.2 2.4-.5 3.5-2.9-.6 0-1.2.3-2 .8l1.2-4c.3 1.1.7 1.9 1.1 2.3.3-.8.2-1.4 0-2.7l2.5.9c-1.3 1.8-2.6 4.3-3.7 8.8-3.7-.5-7.9-.8-12.3-.8s-8.6.3-12.3.8c-1.1-4.4-2.3-7-3.7-8.8l2.5-.9c-.2 1.3-.3 1.9 0 2.7.4-.4.8-1.1 1.1-2.3l1.2 4c-.7-.5-1.3-.8-2-.8 1.2 2.5 2.6 3.1 3.5 2.9 1.1-.2 1.7-1.2 1.5-2.1-.3-1.2-1.5-1.5-2.1-.1-1.1-2.3.8-3 2-2.3-1.9-1.9-2.1-3.5-.6-5.5C9 18.4 9 20 8.1 22.2c1.2-1.4 3.2-.7 2.5 1.6-.9-1.4-2.1-.5-1.9.8.2 1.1 1.7 2.1 3.5 1.9 2.7-.2 2.9-2.1 2.9-3.6-.7-.1-1.9.5-2.9 1.9l-.4-4.3c1.1 1.1 2.1 1.4 3.2 1.4-.4-1.2-2.1-3-2.1-3h5.3Z"></path>
21
+ <circle cx="20" cy="17.6" r="3.7"/>
22
+ <circle cx="10.2" cy="23.5" r="3.7"/>
23
+ <circle cx="3.7" cy="33.2" r="3.7"/>
24
+ <circle cx="31.7" cy="30.6" r="3.7"/>
25
+ <circle cx="43.3" cy="17.6" r="3.7"/>
26
+ <circle cx="53.2" cy="23.5" r="3.7"/>
27
+ <circle cx="59.7" cy="33.2" r="3.7"/>
28
+ <circle cx="31.7" cy="30.6" r="3.7"/>
29
+ <path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.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
@@ -16,14 +16,15 @@ class GovukComponent::ServiceNavigationComponent < GovukComponent::Base
16
16
  )
17
17
  end
18
18
 
19
- attr_reader :aria_label_text, :navigation_id
19
+ attr_reader :aria_label_text, :navigation_id, :inverse
20
20
 
21
- def initialize(service_name: nil, service_url: nil, navigation_items: [], current_path: nil, aria_label: "Service information", navigation_id: 'navigation', classes: [], html_attributes: {})
21
+ def initialize(service_name: nil, service_url: nil, navigation_items: [], current_path: nil, aria_label: "Service information", navigation_id: 'navigation', inverse: false, classes: [], html_attributes: {})
22
22
  @service_name_text = service_name
23
23
  @service_url = service_url
24
24
  @current_path = current_path
25
25
  @aria_label_text = aria_label
26
26
  @navigation_id = navigation_id
27
+ @inverse = inverse
27
28
 
28
29
  if @service_name_text.present?
29
30
  with_service_name(service_name: @service_name_text, service_url:)
@@ -73,7 +74,13 @@ private
73
74
  end
74
75
 
75
76
  def default_attributes
76
- { class: "#{brand}-service-navigation", data: { module: "#{brand}-service-navigation" } }
77
+ {
78
+ class: class_names(
79
+ "#{brand}-service-navigation",
80
+ "#{brand}-service-navigation--inverse" => inverse,
81
+ ),
82
+ data: { module: "#{brand}-service-navigation" },
83
+ }
77
84
  end
78
85
 
79
86
  def aria_attributes
@@ -4,17 +4,6 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
4
4
  alias_method :numeric?, :numeric
5
5
  alias_method :header?, :header
6
6
 
7
- def self.widths
8
- {
9
- "full" => "#{brand}-!-width-full",
10
- "three-quarters" => "#{brand}-!-width-three-quarters",
11
- "two-thirds" => "#{brand}-!-width-two-thirds",
12
- "one-half" => "#{brand}-!-width-one-half",
13
- "one-third" => "#{brand}-!-width-one-third",
14
- "one-quarter" => "#{brand}-!-width-one-quarter",
15
- }.freeze
16
- end
17
-
18
7
  def initialize(scope: nil, header: nil, numeric: false, text: nil, width: nil, parent: nil, rowspan: nil, colspan: nil, classes: [], html_attributes: {})
19
8
  @text = text
20
9
  @numeric = numeric
@@ -24,6 +13,7 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
24
13
  @colspan = colspan
25
14
  @rowspan = rowspan
26
15
  @header = (header.nil?) ? in_thead? : header
16
+ @width = widths.fetch(width, nil)
27
17
 
28
18
  super(classes:, html_attributes:)
29
19
  end
@@ -34,6 +24,17 @@ class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
34
24
 
35
25
  private
36
26
 
27
+ def widths
28
+ @widths ||= {
29
+ "full" => "#{brand}-!-width-full",
30
+ "three-quarters" => "#{brand}-!-width-three-quarters",
31
+ "two-thirds" => "#{brand}-!-width-two-thirds",
32
+ "one-half" => "#{brand}-!-width-one-half",
33
+ "one-third" => "#{brand}-!-width-one-third",
34
+ "one-quarter" => "#{brand}-!-width-one-quarter",
35
+ }
36
+ end
37
+
37
38
  def width?
38
39
  width.present?
39
40
  end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Components
3
- VERSION = '5.10.2b1'.freeze
3
+ VERSION = '5.11.1'.freeze
4
4
  end
5
5
  end
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: 5.10.2b1
4
+ version: 5.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DfE developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-17 00:00:00.000000000 Z
11
+ date: 2025-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils
@@ -433,9 +433,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
433
433
  version: '0'
434
434
  required_rubygems_version: !ruby/object:Gem::Requirement
435
435
  requirements:
436
- - - ">"
436
+ - - ">="
437
437
  - !ruby/object:Gem::Version
438
- version: 1.3.1
438
+ version: '0'
439
439
  requirements: []
440
440
  rubygems_version: 3.3.27
441
441
  signing_key: