govuk-components 5.9.0 → 5.10.0b2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3a3412daf7b789c0b9b382c2339a56f21e034050bccd00cb7b9df525b23b76
|
4
|
+
data.tar.gz: 6364a776178086d5334ca02dfa09f998064b0d071dc22c408e4642f8e8f1515e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1071dc7f1d02b258274c34bab8c408145003497217808ad45f2eb44cb4428883909e83c10ca6a53115b6589c774d9026fe922c9ec645b8f91adbdf47008814a7
|
7
|
+
data.tar.gz: f296ca62e5a6d98eabd7e3ca882ac57d1cf8a69f1e90882b489a149cfb2afc469ca00eb1f0fc4beee3905225e63763e85c050dbc7ea14ebe83825f0a06e7bc99
|
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
|
|
@@ -1,5 +1,19 @@
|
|
1
1
|
<%= tag.footer(role: 'contentinfo', **html_attributes) do %>
|
2
2
|
<%= tag.div(**container_html_attributes) do %>
|
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
|
+
<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>
|
14
|
+
</g>
|
15
|
+
<% end %>
|
16
|
+
|
3
17
|
<% if navigation.present? %>
|
4
18
|
<div class="<%= brand %>-footer__navigation">
|
5
19
|
<%= navigation %>
|
@@ -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 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-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,1.2-2.5,2-3.5,2-1.8,3.2-2.4,2.7-.9,4.3-.9ZM76.5,25.2c.9,0,1.8-.2,2.5-.5s1.3-.9,1.8-1.5.9-1.4,1.1-2.2c.2-.9.4-1.8.4-2.8h0c0-1.1-.1-2.1-.4-3s-.6-1.6-1.1-2.3c-.5-.6-1.1-1.1-1.8-1.5s-1.6-.5-2.5-.5-1.8.2-2.5.5c-.7.4-1.3.9-1.8,1.5s-.9,1.4-1.1,2.3-.4,1.8-.4,2.8h0c0,1.2.1,2.1.4,3,.2.9.6,1.6,1.1,2.2.5.6,1.1,1.1,1.8,1.5.7.4,1.6.5,2.5.5ZM94.6,29l-6.1-22h4.9l4.2,16.5h.2l4.1-16.5h4.9l-6.1,22h-6ZM131.5,25.2c.6,0,1.2,0,1.8-.3s1-.5,1.4-.9c.4-.4.7-.9.9-1.4.2-.6.4-1.3.4-2V7h4.3v14.2c0,1.2-.2,2.3-.7,3.3-.4,1-1.1,1.8-1.8,2.5s-1.7,1.2-2.8,1.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.0b2
|
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-05-08 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:
|