ariadne_view_components 0.0.86.4 → 0.0.86.6

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: 6e5aa146d6a699cddca231f305726db1c7691a5211b6eb7dfb77497e0bc58ab1
4
- data.tar.gz: f49888f145149a2a005ffb36bbb66277e08b9f38568d39a56d87b36d9b963bad
3
+ metadata.gz: 3ef44a19802f711236bdb9d86d7e6f5db47567ed905a7cbfb70bfc85c3a6d420
4
+ data.tar.gz: 117469c7ca433e23feb2f3a1f65bb3fe69cd4fad9c4d1ba72de6b5ac736aa182
5
5
  SHA512:
6
- metadata.gz: c9f99e57e47432b1a95042feabb9b11c4582e52264c1f7935ee9444aba446edf5255b1f2978ccaa7da1a46217e693b07b8ff198e1b1d408f4c8444f71cbfea2b
7
- data.tar.gz: 3986e07878164ae3307316940f2e920be8115c825b44446273b3265588fa1276cbb75df0673f078e074f86b8191418aff4a6af661b62c225308ea5b4ef331d9a
6
+ metadata.gz: d8158b1d0016d7ee2d3ee0d2c0945653bd44e2f5beaafa9803eebf1cfb412328a82319eaab277952edc67b9634f531919629b8f193ea260075921d2cfb1a1c80
7
+ data.tar.gz: 54a92148261076350eb5ee6f2207ca87418bcdb71af7ba4d46c1c03aec4164a9d35d7d3de6c08ad8ba636cbe58d1d1ae271502bfee4d56dce05636781c50aaaf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [v0.0.86.6] - 11-08-2024
2
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.5...v0.0.86.6
3
+ # [v0.0.86.5] - 11-08-2024
4
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.4...v0.0.86.5
1
5
  # [v0.0.86.4] - 09-08-2024
2
6
  **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.3...v0.0.86.4
3
7
  # [v0.0.86.3] - 08-08-2024
@@ -1,5 +1,5 @@
1
1
  <label class="<%= style(:label, reversed:) %>">
2
- <input type="checkbox" class="ariadne-sr-only ariadne-peer" <%= html_attributes %>>
2
+ <input type="checkbox" class="<%= html_attrs[:class] %>" <%= html_attributes %>>
3
3
  <span class="<%= style(size:) %>"></span>
4
4
  <span class="ariadne-text-sm ariadne-font-medium ariadne-text-gray-900 dark:ariadne-text-gray-300">
5
5
  <%= content %>
@@ -20,7 +20,7 @@ module Ariadne
20
20
  option :enabled, default: proc { true }
21
21
 
22
22
  accepts_html_attributes do |html_attrs|
23
- html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge([style(size:), html_attrs[:class]].join(" "))
23
+ html_attrs[:class] = Ariadne::ViewComponents.tailwind_merger.merge(["ariadne-sr-only ariadne-peer", html_attrs[:class]].join(" "))
24
24
 
25
25
  if @checked
26
26
  html_attrs[:checked] = @checked
@@ -29,9 +29,9 @@ module Ariadne
29
29
 
30
30
  html_attrs[:data] ||= {}
31
31
  html_attrs[:data] = {
32
- controller: "#{stimulus_name} #{html_attrs[:data].delete(:controller)}".strip,
32
+ controller: "#{stimulus_name} #{html_attrs[:data][:controller]}".rstrip,
33
33
  "#{stimulus_name}-target": "toggle",
34
- action: "click->#{stimulus_name}#toggle #{html_attrs[:data].delete(:action)}".strip,
34
+ action: "click->#{stimulus_name}#toggle #{html_attrs[:data][:action]}".rstrip,
35
35
  }.merge(html_attrs[:data])
36
36
  end
37
37
 
@@ -1,12 +1,11 @@
1
- <div>
1
+ <div class="<%= html_attrs[:class] %>" <%= html_attributes %>>
2
2
  <div class='ariadne-py-1 ariadne-mb-1 text-h5-caps ariadne-text-zinc-600 dark:ariadne-text-zinc-400'>
3
3
  <div class="aridne--ml-px aridne-flex aridne-flex-1">
4
4
  <%= label %>
5
5
  <% if trailing_visual? %>
6
6
  <%= trailing_visual %>
7
7
  <% end %>
8
- </a>
8
+ </div>
9
9
  </div>
10
- </div>
11
- <%= content %>
10
+ <%= content %>
12
11
  </div>
@@ -7,6 +7,9 @@ module Ariadne
7
7
  class Component < Ariadne::BaseComponent
8
8
  option :label
9
9
 
10
+ accepts_html_attributes do |html_attrs|
11
+ end
12
+
10
13
  # Trailing visuals appear to the right of the label text.
11
14
  #
12
15
  # Use:
@@ -3,6 +3,6 @@
3
3
  # :nocov:
4
4
  module Ariadne
5
5
  module ViewComponents
6
- VERSION = "0.0.86.4"
6
+ VERSION = "0.0.86.6"
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.4
4
+ version: 0.0.86.6
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-09 00:00:00.000000000 Z
11
+ date: 2024-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge