ariadne_view_components 0.0.86.4 → 0.0.86.5

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: 2c7bf1abd34d8698af4024945595f8d401d56ee7dd8cdccfc045ce94ebbc4b25
4
+ data.tar.gz: 073f3ca79494ed5c6860ccdae73a27e5ba9150983c22bf36791248f71e47653b
5
5
  SHA512:
6
- metadata.gz: c9f99e57e47432b1a95042feabb9b11c4582e52264c1f7935ee9444aba446edf5255b1f2978ccaa7da1a46217e693b07b8ff198e1b1d408f4c8444f71cbfea2b
7
- data.tar.gz: 3986e07878164ae3307316940f2e920be8115c825b44446273b3265588fa1276cbb75df0673f078e074f86b8191418aff4a6af661b62c225308ea5b4ef331d9a
6
+ metadata.gz: 30ab3ee33eea24f06a3d8999ffddee8d118f92fe5bc05a8ffd7c1490724b04f1ecfb66b316c64fb4bdc939a65c817785a0b8d87d7f31af9bae3c199323e4d134
7
+ data.tar.gz: 22cec4f4a337d2386d958d2e271647a21366783db32142d96883edaa2a48bc47f6789d7188c2bebaba13d68252a43e00d6bd970bf465ce4bc248c7fff9e7a359
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # [v0.0.86.5] - 11-08-2024
2
+ **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.4...v0.0.86.5
1
3
  # [v0.0.86.4] - 09-08-2024
2
4
  **Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.3...v0.0.86.4
3
5
  # [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
 
@@ -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.5"
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.5
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