govuk-components 5.9.0 → 5.10.0b1
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 +4 -4
- data/README.md +2 -2
- data/app/components/govuk_component/header_component.html.erb +21 -9
- data/lib/govuk/components/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c8409ae6c8418afa3e64c69e795dee328ebc27ebc69d135f981ff364b0523e
|
4
|
+
data.tar.gz: c64ccd11595fa5c9f974f944176defadfaeef765f0dc22ee463e45c8ed37fee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98240d24fcb3052ae84260d504e5d2c02e96f490a3e0506441590c0bbcb84deb9ba5ab647f3fc2edfbb4639bcff91a1e678aa66cb71dab9ab7a6eb0ae4879886
|
7
|
+
data.tar.gz: 17cbfd440b75d44ad467df8cd686de69e551759e6d394afb94baf4674b6d233a1e73f55ec6e41afc738139ccfb01114e978eb9126cfc1e3ddefb094baa35b8cd
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# GOV.UK Components for Ruby on Rails
|
2
2
|
|
3
|
-
[](https://github.com/x-govuk/govuk-components/actions/workflows/tests.yml)
|
4
4
|
[](https://codeclimate.com/github/x-govuk/govuk-components/maintainability)
|
5
5
|
[](https://badge.fury.io/rb/govuk-components)
|
6
6
|
[](https://rubygems.org/gems/govuk-components)
|
@@ -9,7 +9,7 @@
|
|
9
9
|
[](https://design-system.service.gov.uk)
|
10
10
|
[](https://viewcomponent.org/)
|
11
11
|
[](https://weblog.rubyonrails.org/releases/)
|
12
|
-
[](https://www.ruby-lang.org/en/downloads/)
|
13
13
|
|
14
14
|
This gem provides a suite of reusable components for the [GOV.UK Design System](https://design-system.service.gov.uk/). It is intended to provide a lightweight alternative to the [GOV.UK Publishing Components](https://github.com/alphagov/govuk_publishing_components) library and is built with GitHub’s [ViewComponent](https://github.com/github/view_component) framework.
|
15
15
|
|
@@ -6,17 +6,29 @@
|
|
6
6
|
<%= custom_logo %>
|
7
7
|
<% else %>
|
8
8
|
<svg
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
9
|
+
focusable="false"
|
10
|
+
role="img"
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
12
|
+
viewBox="0 0 163 30"
|
13
|
+
height="30"
|
14
|
+
width="163"
|
15
|
+
class="<%= brand %>-header__logotype"
|
16
|
+
aria-label="GOV.UK"
|
17
17
|
>
|
18
18
|
<title>GOV.UK</title>
|
19
|
-
<
|
19
|
+
<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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.6c-1.1.4-2.3.6-3.5.6s-2.5-.2-3.5-.6c-1.1-.4-2-.9-2.8-1.6s-1.4-1.5-1.8-2.5c-.4-1-.7-2.1-.7-3.3V7s4.3,0,4.3,0v13.6c0,.8.1,1.5.4,2,.2.6.6,1.1,1,1.4.4.4.9.7,1.4.9s1.1.3,1.8.3h0ZM144.2,7h4.4v9.6s7.8-9.6,7.8-9.6h5.4l-7.5,8.8,8,13.2h-5.1l-5.7-9.9-2.8,3.1v6.7s-4.4,0-4.4,0V7Z"></path>
|
20
32
|
</svg>
|
21
33
|
<% end %>
|
22
34
|
<% if product_name.present? %>
|
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.
|
4
|
+
version: 5.10.0b1
|
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-
|
11
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html-attributes-utils
|
@@ -84,6 +84,20 @@ dependencies:
|
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: ostruct
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
87
101
|
- !ruby/object:Gem::Dependency
|
88
102
|
name: pry-byebug
|
89
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -419,9 +433,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
419
433
|
version: '0'
|
420
434
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
421
435
|
requirements:
|
422
|
-
- - "
|
436
|
+
- - ">"
|
423
437
|
- !ruby/object:Gem::Version
|
424
|
-
version:
|
438
|
+
version: 1.3.1
|
425
439
|
requirements: []
|
426
440
|
rubygems_version: 3.3.27
|
427
441
|
signing_key:
|