anchor_view_components 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4d9589c4e5bc5f450d197e5dbcb5c547667509970206f64b38426451387e095
4
- data.tar.gz: 854a92f8c536f336aa3461c67607b35fdc677638b9cc37a83bd2f8dab17bd056
3
+ metadata.gz: 3053188ff15b4f007f12d237316404dfe391896cf3e88c52badf3a8409b036db
4
+ data.tar.gz: 39289d7346d27ba0b7790dca65cacb12bc7a249448273c0191022f1a181aff44
5
5
  SHA512:
6
- metadata.gz: 91c1b885fefeebd9f7fd0cf124ed98141f636bb814913bd59a56d4576bf04caa8d9c0e4c9f985cec3afb0013ecdf3b91a6b8144f9a20bad3041b51ab396fa399
7
- data.tar.gz: 61335b4f56643d561894843648d3c0b53be393824511cae95e2aa3c437a9b3d71b764bc5831612bd045538c3a99cfc6c64e34898737159ae596a8e9f8c93e78c
6
+ metadata.gz: 6e9efea5de49570cd16cfed25f76c0dcd69cfd1472ac8bd13c66c4556aa25d58826abb9357f9edef2667a633fcdd3ceb224e32661aa873441c1f7a007c0be365
7
+ data.tar.gz: 1832cc07a50402e5f70fd0e84c70994cc0f88587fa780c7520bd08485c1561258eb65aef447b489d7322adc66df353c5775a1c753aeaf813e1fa9d859e63c3a8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 - 2023-09-21
4
+
5
+ ### Changed
6
+
7
+ - Button component now receives `id:` and `title:` html attributes.
8
+
9
+ ## 0.17.0 - 2023-09-21
10
+
11
+ ### Added
12
+
13
+ - Prose now renders passed in `data` and `classes` arguments.
14
+
3
15
  ## 0.16.0 - 2023-09-20
4
16
 
5
17
  ### Added
@@ -4,9 +4,11 @@
4
4
  href: href,
5
5
  data: data,
6
6
  disabled: disabled,
7
+ title: title,
7
8
  form: form,
8
9
  popovertarget: popovertarget,
9
10
  popovertargetaction: popovertargetaction,
11
+ id: id,
10
12
  class: class_names(
11
13
  size,
12
14
  variant,
@@ -47,6 +47,8 @@ module Anchor
47
47
  popovertargetaction: nil,
48
48
  disabled: false,
49
49
  full_width: false,
50
+ title: nil,
51
+ id: nil,
50
52
  **kwargs
51
53
  )
52
54
  @tag = fetch_or_fallback(TAG_OPTIONS, tag, TAG_DEFAULT)
@@ -65,6 +67,8 @@ module Anchor
65
67
  @popovertargetaction = popovertargetaction
66
68
  @disabled = disabled unless @tag == :a
67
69
  @full_width = full_width
70
+ @title = title
71
+ @id = id
68
72
 
69
73
  super
70
74
  end
@@ -72,7 +76,7 @@ module Anchor
72
76
  private
73
77
 
74
78
  attr_reader :tag, :type, :href, :size, :variant, :form, :popovertarget,
75
- :popovertargetaction, :disabled, :full_width
79
+ :popovertargetaction, :disabled, :full_width, :title, :id
76
80
 
77
81
  def render?
78
82
  content.present?
@@ -1,3 +1,8 @@
1
- <div class="prose">
2
- <%= content %>
3
- </div>
1
+ <%= tag.div(
2
+ content,
3
+ class: class_names(
4
+ "prose",
5
+ classes,
6
+ ),
7
+ data: data
8
+ ) %>
@@ -1,5 +1,5 @@
1
1
  module Anchor
2
2
  module ViewComponents
3
- VERSION = "0.16.0".freeze
3
+ VERSION = "0.18.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anchor_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buoy Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.4.19
196
+ rubygems_version: 3.4.18
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: ViewComponents for Buoy’s design system, Anchor