openproject-primer_view_components 0.84.3 → 0.84.4

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: ac578df19d5f6b7eb2793c38135f9aa80c9f1e945657cc102beb74fb714fcbde
4
- data.tar.gz: 84c662b80dbcff0db7cf3b463233fc648d57686262047a44bd4240cbf1a16bb1
3
+ metadata.gz: 5c94ecf6706507b0a719ae4713e4ae1126be1d420f91ae56cce7426e5af010b4
4
+ data.tar.gz: 290d0b16c8fa76b78e788d310df935044a9eaf11cd5389fb226b5941a2b9c279
5
5
  SHA512:
6
- metadata.gz: ff6866558417bc1ca0d81463567aac9abaa1e774a204487ce8764204eac636864587999b22e0da236d3d6b6f9448ff507c9da8b4f7f0190ae13bf6e1685aac3c
7
- data.tar.gz: e7c0bd6701502dd2ec2af461d266a60a47d3520665b010db940e6453ea4d9f1fdfa607b8d2959ef3687a9e10227f568f79b1e0e9ac1df61ccc68d97339a217ca
6
+ metadata.gz: 29e778db1a08041e8446f4c9562d98b7afa14e88d2fef8c01aa694ca6043bc1068c87d0537255cc20a3064ee69b222562c0368bfb262d18c3935cda6ebe987e7
7
+ data.tar.gz: edf2df963c2191a7a558c2827f31fc23fb85a119e03b4963f4306345b69c08028529bf4dab68eb934ee3863aebbb903ab8ae26894558959522b7d64fd7d26762
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.84.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#441](https://github.com/opf/primer_view_components/pull/441) [`a71da10`](https://github.com/opf/primer_view_components/commit/a71da1074d5f3e13e0610059de1066434b6d4b58) Thanks [@HDinger](https://github.com/HDinger)! - Bump ociticons to 19.34.0
8
+
9
+ - [#436](https://github.com/opf/primer_view_components/pull/436) [`1438f6f`](https://github.com/opf/primer_view_components/commit/1438f6fed90c20cb8d1f13ce481a380fa3edca91) Thanks [@HDinger](https://github.com/HDinger)! - Support description in FieldsetGroups
10
+
3
11
  ## 0.84.3
4
12
 
5
13
  ### Patch Changes
@@ -3,6 +3,7 @@
3
3
  <%=
4
4
  render(Primer::Beta::Subhead.new) do |component|
5
5
  component.with_heading(**@heading_arguments).with_content(@title)
6
+ component.with_description.with_content(@description) unless @description.blank?
6
7
  end
7
8
  %>
8
9
  <%= render(Primer::Forms::Group.new(**@group_arguments)) %>
@@ -6,6 +6,7 @@ module Primer
6
6
  class FieldsetGroup < BaseComponent
7
7
  ##
8
8
  # @param title [String] The title displayed as the heading for the fieldset
9
+ # @param description [String] The description displayed below the heading
9
10
  # @param inputs [Array<Primer::Forms::Dsl::Input>] Array of form inputs to be grouped
10
11
  # @param builder [ActionView::Helpers::FormBuilder] The form builder instance
11
12
  # @param form [Primer::Forms::BaseForm] The form object
@@ -18,6 +19,7 @@ module Primer
18
19
  # @param system_arguments [Hash] Additional system arguments passed to the section wrapper
19
20
  def initialize( # rubocop:disable Metrics/AbcSize
20
21
  title:,
22
+ description: nil,
21
23
  inputs:,
22
24
  builder:,
23
25
  form:,
@@ -29,6 +31,7 @@ module Primer
29
31
  super()
30
32
 
31
33
  @title = title
34
+ @description = description
32
35
 
33
36
  @heading_arguments = heading_arguments
34
37
  @heading_arguments[:id] ||= "subhead-#{SecureRandom.uuid}"
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 84
9
- PATCH = 3
9
+ PATCH = 4
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
@@ -3,7 +3,7 @@
3
3
  form do |f|
4
4
  f.fieldset_group(
5
5
  title: "Delivery preferences",
6
- caption: "These settings affect how we contact you"
6
+ description: "These settings affect how we contact you"
7
7
  ) do |g|
8
8
  g.text_field(
9
9
  name: :ultimate_answer,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.84.3
4
+ version: 0.84.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 19.33.0
48
+ version: 19.34.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 19.33.0
55
+ version: 19.34.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: view_component
58
58
  requirement: !ruby/object:Gem::Requirement