govuk-components 2.0.1 → 2.1.3
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 +3 -2
- data/app/components/govuk_component/breadcrumbs_component.rb +1 -1
- data/app/components/govuk_component/cookie_banner_component/message_component.rb +1 -1
- data/app/components/govuk_component/header_component.html.erb +10 -4
- data/app/components/govuk_component/header_component.rb +33 -12
- data/app/components/govuk_component/table_component/body_component.html.erb +5 -0
- data/app/components/govuk_component/table_component/body_component.rb +21 -0
- data/app/components/govuk_component/table_component/caption_component.rb +39 -0
- data/app/components/govuk_component/table_component/cell_component.html.erb +1 -0
- data/app/components/govuk_component/table_component/cell_component.rb +55 -0
- data/app/components/govuk_component/table_component/head_component.html.erb +5 -0
- data/app/components/govuk_component/table_component/head_component.rb +23 -0
- data/app/components/govuk_component/table_component/row_component.html.erb +5 -0
- data/app/components/govuk_component/table_component/row_component.rb +30 -0
- data/app/components/govuk_component/table_component.html.erb +7 -0
- data/app/components/govuk_component/table_component.rb +33 -0
- data/app/helpers/govuk_components_helper.rb +1 -0
- data/lib/govuk/components/version.rb +1 -1
- metadata +19 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff2f2871745bc313242de390b143fd475f0983e6ddf03c627512d26e5c52b8c
|
4
|
+
data.tar.gz: c191fa0f05fea8fa6bc19d9fddf8528802086a05f63217e4b48079329cf25a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea255c815feebd10555c8f403b4cd3ebac0d807cd1f4fe9a34442318a2f95d75cbbe309fb0f18aebbfcc0a7c32ee3bc962c971717fe7f9506ab10844eea8cda0
|
7
|
+
data.tar.gz: 6dada7350b560d7b967fa1bba83231d82173b1f81c90c563d803583fc4d99347a9973e193adda2eb58af86a86183d5e22d3b17d5e7be3aa9fb0ec8066af75c04
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[](https://codeclimate.com/github/DFE-Digital/govuk-components/maintainability)
|
5
5
|
[](https://codeclimate.com/github/DFE-Digital/govuk-components/test_coverage)
|
6
6
|
[](https://github.com/DFE-Digital/govuk-components/blob/master/LICENSE)
|
7
|
-
[](https://design-system.service.gov.uk)
|
8
8
|
|
9
9
|
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.
|
10
10
|
|
@@ -32,6 +32,7 @@ The provided components are:
|
|
32
32
|
* [Start button](https://dfe-digital.github.io/govuk-components/#start-button)
|
33
33
|
* [Summary list](https://dfe-digital.github.io/govuk-components/#summary-list)
|
34
34
|
* [Tabs](https://dfe-digital.github.io/govuk-components/#tabs)
|
35
|
+
* [Tables](https://dfe-digital.github.io/govuk-components/#table)
|
35
36
|
* [Tags](https://dfe-digital.github.io/govuk-components/#tags)
|
36
37
|
* [Warning text](https://dfe-digital.github.io/govuk-components/#warning-text)
|
37
38
|
|
@@ -44,7 +45,7 @@ All of the components can be rendered in two ways:
|
|
44
45
|
* directly using Rails' `#render` method:
|
45
46
|
|
46
47
|
```erb
|
47
|
-
<%= render GovukComponent::
|
48
|
+
<%= render GovukComponent::WarningTextComponent.new do %>
|
48
49
|
A serious warning
|
49
50
|
<% end %>
|
50
51
|
```
|
@@ -7,11 +7,19 @@
|
|
7
7
|
<%= custom_logo %>
|
8
8
|
<% else %>
|
9
9
|
<% if crown %>
|
10
|
+
<!--[if gt IE 8]><!-->
|
10
11
|
<svg aria-hidden="true" focusable="false" class="govuk-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 132 97" height="30" width="36">
|
11
12
|
<path fill="currentColor" fill-rule="evenodd" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5-.3 7.5-3.8 9zm4.7 17.7c-3.6 1.5-7.8-.2-9.2-3.8-1.5-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.3 3.5-.4 7.6-3.9 9.1zM89.3 35.8c-3.6 1.5-7.8-.2-9.2-3.8-1.4-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.4 3.6-.3 7.7-3.9 9.1zM69.7 17.7l8.9 4.7V9.3l-8.9 2.8c-.2-.3-.5-.6-.9-.9L72.4 0H59.6l3.5 11.2c-.3.3-.6.5-.9.9l-8.8-2.8v13.1l8.8-4.7c.3.3.6.7.9.9l-5 15.4v.1c-.2.8-.4 1.6-.4 2.4 0 4.1 3.1 7.5 7 8.1h.2c.3 0 .7.1 1 .1.4 0 .7 0 1-.1h.2c4-.6 7.1-4.1 7.1-8.1 0-.8-.1-1.7-.4-2.4V34l-5.1-15.4c.4-.2.7-.6 1-.9zM66 92.8c16.9 0 32.8 1.1 47.1 3.2 4-16.9 8.9-26.7 14-33.5l-9.6-3.4c1 4.9 1.1 7.2 0 10.2-1.5-1.4-3-4.3-4.2-8.7L108.6 76c2.8-2 5-3.2 7.5-3.3-4.4 9.4-10 11.9-13.6 11.2-4.3-.8-6.3-4.6-5.6-7.9 1-4.7 5.7-5.9 8-.5 4.3-8.7-3-11.4-7.6-8.8 7.1-7.2 7.9-13.5 2.1-21.1-8 6.1-8.1 12.3-4.5 20.8-4.7-5.4-12.1-2.5-9.5 6.2 3.4-5.2 7.9-2 7.2 3.1-.6 4.3-6.4 7.8-13.5 7.2-10.3-.9-10.9-8-11.2-13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z"></path>
|
12
|
-
<image src="/assets/images/govuk-logotype-crown.png" xlink:href="" class="govuk-header__logotype-crown-fallback-image" width="36" height="32"></image>
|
13
13
|
</svg>
|
14
|
+
<!--<![endif]-->
|
14
15
|
<% end %>
|
16
|
+
|
17
|
+
<% if crown_fallback_image_path.present? %>
|
18
|
+
<!--[if IE 8]>
|
19
|
+
<%= image_tag(crown_fallback_image_path, **crown_fallback_image_attributes) %>
|
20
|
+
<![endif]-->
|
21
|
+
<% end %>
|
22
|
+
|
15
23
|
<%= tag.span(logotype, class: "govuk-header__logotype-text") %>
|
16
24
|
<% end %>
|
17
25
|
</span>
|
@@ -32,9 +40,7 @@
|
|
32
40
|
<nav>
|
33
41
|
<%= tag.ul(class: navigation_classes, id: "navigation", aria: { label: navigation_label }) do %>
|
34
42
|
<% navigation_items.each do |item| %>
|
35
|
-
<%=
|
36
|
-
<%= item %>
|
37
|
-
<% end %>
|
43
|
+
<%= item %>
|
38
44
|
<% end %>
|
39
45
|
<% end %>
|
40
46
|
</nav>
|
@@ -5,6 +5,7 @@ class GovukComponent::HeaderComponent < GovukComponent::Base
|
|
5
5
|
|
6
6
|
attr_reader :logotype,
|
7
7
|
:crown,
|
8
|
+
:crown_fallback_image_path,
|
8
9
|
:homepage_url,
|
9
10
|
:service_name,
|
10
11
|
:service_url,
|
@@ -17,6 +18,7 @@ class GovukComponent::HeaderComponent < GovukComponent::Base
|
|
17
18
|
html_attributes: {},
|
18
19
|
logotype: 'GOV.UK',
|
19
20
|
crown: true,
|
21
|
+
crown_fallback_image_path: nil,
|
20
22
|
homepage_url: '/',
|
21
23
|
menu_button_label: 'Show or hide navigation menu',
|
22
24
|
navigation_classes: [],
|
@@ -29,6 +31,7 @@ class GovukComponent::HeaderComponent < GovukComponent::Base
|
|
29
31
|
|
30
32
|
@logotype = logotype
|
31
33
|
@crown = crown
|
34
|
+
@crown_fallback_image_path = crown_fallback_image_path
|
32
35
|
@homepage_url = homepage_url
|
33
36
|
@service_name = service_name
|
34
37
|
@service_url = service_url
|
@@ -52,23 +55,33 @@ private
|
|
52
55
|
combine_classes(%w(govuk-header__container govuk-width-container), custom_container_classes)
|
53
56
|
end
|
54
57
|
|
58
|
+
def crown_fallback_image_attributes
|
59
|
+
{
|
60
|
+
class: "govuk-header__logotype-crown-fallback-image",
|
61
|
+
width: "36",
|
62
|
+
height: "32",
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
55
66
|
class NavigationItem < GovukComponent::Base
|
56
|
-
attr_reader :text, :href, :active
|
67
|
+
attr_reader :text, :href, :options, :active
|
57
68
|
|
58
|
-
def initialize(text:, href: nil, active:
|
69
|
+
def initialize(text:, href: nil, options: {}, active: nil, classes: [], html_attributes: {})
|
59
70
|
super(classes: classes, html_attributes: html_attributes)
|
60
71
|
|
61
|
-
@text
|
62
|
-
@href
|
63
|
-
@
|
72
|
+
@text = text
|
73
|
+
@href = href
|
74
|
+
@options = options
|
75
|
+
|
76
|
+
@active_override = active
|
64
77
|
end
|
65
78
|
|
66
|
-
def
|
67
|
-
active
|
79
|
+
def before_render
|
80
|
+
@active = active?(@active_override)
|
68
81
|
end
|
69
82
|
|
70
83
|
def active_class
|
71
|
-
%w(govuk-header__navigation-item--active) if active
|
84
|
+
%w(govuk-header__navigation-item--active) if @active
|
72
85
|
end
|
73
86
|
|
74
87
|
def link?
|
@@ -76,15 +89,23 @@ private
|
|
76
89
|
end
|
77
90
|
|
78
91
|
def call
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
92
|
+
tag.li(class: classes.append(active_class), **html_attributes) do
|
93
|
+
if link?
|
94
|
+
link_to(text, href, **options, class: "govuk-header__link")
|
95
|
+
else
|
96
|
+
text
|
97
|
+
end
|
83
98
|
end
|
84
99
|
end
|
85
100
|
|
86
101
|
private
|
87
102
|
|
103
|
+
def active?(active_override)
|
104
|
+
return current_page?(href) if active_override.nil?
|
105
|
+
|
106
|
+
active_override
|
107
|
+
end
|
108
|
+
|
88
109
|
def default_classes
|
89
110
|
%w(govuk-header__navigation-item)
|
90
111
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class GovukComponent::TableComponent::BodyComponent < GovukComponent::Base
|
2
|
+
renders_many :rows, GovukComponent::TableComponent::RowComponent
|
3
|
+
|
4
|
+
def initialize(rows: nil, first_cell_is_header: false, classes: [], html_attributes: {})
|
5
|
+
super(classes: classes, html_attributes: html_attributes)
|
6
|
+
|
7
|
+
build_rows_from_row_data(rows, first_cell_is_header)
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def build_rows_from_row_data(data, first_cell_is_header)
|
13
|
+
return if data.blank?
|
14
|
+
|
15
|
+
data.each { |d| row(cell_data: d, first_cell_is_header: first_cell_is_header) }
|
16
|
+
end
|
17
|
+
|
18
|
+
def default_classes
|
19
|
+
%w(govuk-table__body)
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class GovukComponent::TableComponent::CaptionComponent < GovukComponent::Base
|
2
|
+
attr_reader :text, :size
|
3
|
+
|
4
|
+
SIZES = %w(s m l xl).freeze
|
5
|
+
|
6
|
+
def initialize(text: nil, id: nil, size: 'm', classes: [], html_attributes: {})
|
7
|
+
super(classes: classes, html_attributes: html_attributes)
|
8
|
+
|
9
|
+
@id = id
|
10
|
+
@text = text
|
11
|
+
@size = size
|
12
|
+
end
|
13
|
+
|
14
|
+
def call
|
15
|
+
tag.caption(caption_content, class: classes, **html_attributes)
|
16
|
+
end
|
17
|
+
|
18
|
+
def render?
|
19
|
+
caption_content.present?
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def caption_content
|
25
|
+
@caption_content ||= (content || text)
|
26
|
+
end
|
27
|
+
|
28
|
+
def default_classes
|
29
|
+
%w(govuk-table__caption).tap do |c|
|
30
|
+
c << caption_size_class if @size
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def caption_size_class
|
35
|
+
fail(ArgumentError, "bad size #{size}, must be in #{SIZES}") unless size.in?(SIZES)
|
36
|
+
|
37
|
+
%(govuk-table__caption--#{size})
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= content_tag(cell_element, cell_content, class: classes, **html_attributes) %>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
class GovukComponent::TableComponent::CellComponent < GovukComponent::Base
|
2
|
+
attr_reader :text, :header, :numeric, :width
|
3
|
+
|
4
|
+
alias_method :numeric?, :numeric
|
5
|
+
|
6
|
+
WIDTHS = {
|
7
|
+
"full" => "govuk-input govuk-!-width-full",
|
8
|
+
"three-quarters" => "govuk-input govuk-!-width-three-quarters",
|
9
|
+
"two-thirds" => "govuk-input govuk-!-width-two-thirds",
|
10
|
+
"one-half" => "govuk-input govuk-!-width-one-half",
|
11
|
+
"one-third" => "govuk-input govuk-!-width-one-third",
|
12
|
+
"one-quarter" => "govuk-input govuk-!-width-one-quarter",
|
13
|
+
}.freeze
|
14
|
+
|
15
|
+
def initialize(header: false, text: nil, numeric: false, width: nil, classes: [], html_attributes: {})
|
16
|
+
super(classes: classes, html_attributes: html_attributes)
|
17
|
+
|
18
|
+
@header = header
|
19
|
+
@text = text
|
20
|
+
@numeric = numeric
|
21
|
+
@width = width
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def width?
|
27
|
+
width.present?
|
28
|
+
end
|
29
|
+
|
30
|
+
def cell_content
|
31
|
+
content || text
|
32
|
+
end
|
33
|
+
|
34
|
+
def cell_element
|
35
|
+
header ? :th : :td
|
36
|
+
end
|
37
|
+
|
38
|
+
def default_classes
|
39
|
+
if header
|
40
|
+
%w(govuk-table__header).tap do |c|
|
41
|
+
c << "govuk-table__header--numeric" if numeric?
|
42
|
+
c << width_class if width?
|
43
|
+
end
|
44
|
+
else
|
45
|
+
%w(govuk-table__cell).tap do |c|
|
46
|
+
c << "govuk-table__cell--numeric" if numeric?
|
47
|
+
c << width_class if width?
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def width_class
|
53
|
+
WIDTHS.fetch(width)
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class GovukComponent::TableComponent::HeadComponent < GovukComponent::Base
|
2
|
+
renders_many :rows, GovukComponent::TableComponent::RowComponent
|
3
|
+
|
4
|
+
attr_reader :row_data
|
5
|
+
|
6
|
+
def initialize(rows: nil, classes: [], html_attributes: {})
|
7
|
+
super(classes: classes, html_attributes: html_attributes)
|
8
|
+
|
9
|
+
build_rows_from_row_data(rows)
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def build_rows_from_row_data(data)
|
15
|
+
return if data.blank?
|
16
|
+
|
17
|
+
data.each { |d| row(cell_data: d, header: true) }
|
18
|
+
end
|
19
|
+
|
20
|
+
def default_classes
|
21
|
+
%w(govuk-table__head)
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class GovukComponent::TableComponent::RowComponent < GovukComponent::Base
|
2
|
+
renders_many :cells, GovukComponent::TableComponent::CellComponent
|
3
|
+
|
4
|
+
attr_reader :header, :first_cell_is_header
|
5
|
+
|
6
|
+
def initialize(cell_data: nil, first_cell_is_header: false, header: false, classes: [], html_attributes: {})
|
7
|
+
super(classes: classes, html_attributes: html_attributes)
|
8
|
+
|
9
|
+
@header = header
|
10
|
+
@first_cell_is_header = first_cell_is_header
|
11
|
+
|
12
|
+
build_cells_from_cell_data(cell_data)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def build_cells_from_cell_data(cell_data)
|
18
|
+
return if cell_data.blank?
|
19
|
+
|
20
|
+
cell_data.map.with_index { |cd, i| cell(header: cell_is_header?(i), text: cd) }
|
21
|
+
end
|
22
|
+
|
23
|
+
def cell_is_header?(count)
|
24
|
+
header || (first_cell_is_header && count.zero?)
|
25
|
+
end
|
26
|
+
|
27
|
+
def default_classes
|
28
|
+
%w(govuk-table__row)
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class GovukComponent::TableComponent < GovukComponent::Base
|
2
|
+
renders_one :caption, GovukComponent::TableComponent::CaptionComponent
|
3
|
+
renders_one :head, GovukComponent::TableComponent::HeadComponent
|
4
|
+
renders_many :bodies, GovukComponent::TableComponent::BodyComponent
|
5
|
+
|
6
|
+
attr_accessor :id, :first_cell_is_header, :caption_text
|
7
|
+
|
8
|
+
def initialize(id: nil, rows: nil, head: nil, caption: nil, first_cell_is_header: false, classes: [], html_attributes: {})
|
9
|
+
super(classes: classes, html_attributes: html_attributes)
|
10
|
+
|
11
|
+
@id = id
|
12
|
+
@first_cell_is_header = first_cell_is_header
|
13
|
+
@caption_text = caption
|
14
|
+
|
15
|
+
# when no rows are passed in it's likely we're taking the slot approach
|
16
|
+
return unless rows.presence
|
17
|
+
|
18
|
+
# if no head is passed in,use the first row for headers
|
19
|
+
build(*(head ? [head, rows] : [rows[0], rows[1..]]), caption_text)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def build(head_data, body_data, caption_text)
|
25
|
+
caption(text: caption_text)
|
26
|
+
head(rows: [head_data])
|
27
|
+
body(rows: body_data, first_cell_is_header: first_cell_is_header)
|
28
|
+
end
|
29
|
+
|
30
|
+
def default_classes
|
31
|
+
%w(govuk-table)
|
32
|
+
end
|
33
|
+
end
|
@@ -13,6 +13,7 @@ module GovukComponentsHelper
|
|
13
13
|
govuk_phase_banner: 'GovukComponent::PhaseBannerComponent',
|
14
14
|
govuk_start_button: 'GovukComponent::StartButtonComponent',
|
15
15
|
govuk_summary_list: 'GovukComponent::SummaryListComponent',
|
16
|
+
govuk_table: 'GovukComponent::TableComponent',
|
16
17
|
govuk_tabs: 'GovukComponent::TabComponent',
|
17
18
|
govuk_tag: 'GovukComponent::TagComponent',
|
18
19
|
govuk_warning_text: 'GovukComponent::WarningTextComponent',
|
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: 2.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DfE developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.39.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.39.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry-byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,6 +191,17 @@ files:
|
|
191
191
|
- app/components/govuk_component/summary_list_component/value_component.rb
|
192
192
|
- app/components/govuk_component/tab_component.html.erb
|
193
193
|
- app/components/govuk_component/tab_component.rb
|
194
|
+
- app/components/govuk_component/table_component.html.erb
|
195
|
+
- app/components/govuk_component/table_component.rb
|
196
|
+
- app/components/govuk_component/table_component/body_component.html.erb
|
197
|
+
- app/components/govuk_component/table_component/body_component.rb
|
198
|
+
- app/components/govuk_component/table_component/caption_component.rb
|
199
|
+
- app/components/govuk_component/table_component/cell_component.html.erb
|
200
|
+
- app/components/govuk_component/table_component/cell_component.rb
|
201
|
+
- app/components/govuk_component/table_component/head_component.html.erb
|
202
|
+
- app/components/govuk_component/table_component/head_component.rb
|
203
|
+
- app/components/govuk_component/table_component/row_component.html.erb
|
204
|
+
- app/components/govuk_component/table_component/row_component.rb
|
194
205
|
- app/components/govuk_component/tag_component.rb
|
195
206
|
- app/components/govuk_component/traits/custom_classes.rb
|
196
207
|
- app/components/govuk_component/traits/custom_html_attributes.rb
|
@@ -209,7 +220,7 @@ homepage: https://github.com/DFE-Digital/govuk-components
|
|
209
220
|
licenses:
|
210
221
|
- MIT
|
211
222
|
metadata: {}
|
212
|
-
post_install_message:
|
223
|
+
post_install_message:
|
213
224
|
rdoc_options: []
|
214
225
|
require_paths:
|
215
226
|
- lib
|
@@ -224,8 +235,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
235
|
- !ruby/object:Gem::Version
|
225
236
|
version: '0'
|
226
237
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
228
|
-
signing_key:
|
238
|
+
rubygems_version: 3.2.22
|
239
|
+
signing_key:
|
229
240
|
specification_version: 4
|
230
241
|
summary: Lightweight set of reusable GOV.UK Design System components
|
231
242
|
test_files: []
|