ariadne_view_components 0.0.86.8 → 0.0.87

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: c4c4e1c01355e1029dfd73a5d99e59584de225da37e09193b1ce4c2f0ebe066f
4
- data.tar.gz: a7c816e8a5af436dc47e5fe144b37387b24bcc71c6e0eb15230911da6dbaca79
3
+ metadata.gz: e24ad08f7ace486ef85dbd12f3f72c817cea36ca628b147afb17ed11af96509a
4
+ data.tar.gz: a5f49a2c7f99f153bdffec190562fb8e8d646dcb635db15139ff3449b75331aa
5
5
  SHA512:
6
- metadata.gz: 1da3beafdadeb60d8fc0694a0643550f607ea4ba4b4c75df0da0edb2f11f5676ea15844b454eb71443d1bd986e51473a692247af0a1f1760d317649c9e48a9ba
7
- data.tar.gz: 65314736b356d78f9e5ce2d7b4cf4c56685f036053903efb4ba4f1e2a317175141234293adbc97c5ef08a0dd8b37ead403129f2ea4537a9415c489dc1415ec2a
6
+ metadata.gz: 6b8388a6a16ab00e650733d38514b3a62e49892e9d5d281cc585f6ba1f881e9c5a66f8c917d90e51beea462bb046b7a620066a67c80542232560bcf967d0fe1d
7
+ data.tar.gz: d36b5655a09a7c718b5711eac8cb55694d8baee30c4b3f63ffc2da2509a40f6ee092c102255d395afa4868147430b0670052a7cb1c799f6e9da47b347fa62527
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [v0.0.87] - 20-08-2024
2
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.9...v0.0.87
3
+ # [v0.0.86.9] - 15-08-2024
4
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.8...v0.0.86.9
1
5
  # [v0.0.86.8] - 15-08-2024
2
6
  **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.7...v0.0.86.8
3
7
  # [v0.0.86.7] - 15-08-2024
@@ -30,13 +30,13 @@ module Ariadne
30
30
  end
31
31
 
32
32
  html_attrs[:data] ||= {}
33
- added_controller = html_attrs[:data].delete(:controller) || ""
34
- added_action = html_attrs[:data].delete(:action) || ""
33
+ added_controller = html_attrs[:data][:controller] || ""
34
+ added_action = html_attrs[:data][:action] || ""
35
35
  html_attrs[:data] = {
36
36
  controller: "#{stimulus_name} #{added_controller}",
37
37
  "#{stimulus_name}-target": "toggle",
38
38
  action: "click->#{stimulus_name}#toggle #{added_action}",
39
- }.merge(html_attrs[:data])
39
+ }.merge(html_attrs[:data].except(:controller, :action))
40
40
  end
41
41
 
42
42
  def before_render
@@ -1,4 +1,4 @@
1
- <tr class="<%= style(:row) %>" <%= html_attributes %>>
1
+ <tr class="<%= html_attrs[:class] %>" <%= html_attributes %>>
2
2
  <% cells.each do |cell| %>
3
3
  <%= cell %>
4
4
  <% end %>
@@ -11,6 +11,10 @@ module Ariadne
11
11
  renders_one :row_action, Ariadne::UI::Combobox::Component
12
12
  renders_many :cells, Ariadne::UI::Table::Cell::Component
13
13
 
14
+ accepts_html_attributes do |html_attrs|
15
+ html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(:row), html_attrs[:class]].join(" "))
16
+ end
17
+
14
18
  style :row do
15
19
  base do
16
20
  [
@@ -3,6 +3,6 @@
3
3
  # :nocov:
4
4
  module Ariadne
5
5
  module ViewComponents
6
- VERSION = "0.0.86.8"
6
+ VERSION = "0.0.87"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.86.8
4
+ version: 0.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge