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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7bf1abd34d8698af4024945595f8d401d56ee7dd8cdccfc045ce94ebbc4b25
|
4
|
+
data.tar.gz: 073f3ca79494ed5c6860ccdae73a27e5ba9150983c22bf36791248f71e47653b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30ab3ee33eea24f06a3d8999ffddee8d118f92fe5bc05a8ffd7c1490724b04f1ecfb66b316c64fb4bdc939a65c817785a0b8d87d7f31af9bae3c199323e4d134
|
7
|
+
data.tar.gz: 22cec4f4a337d2386d958d2e271647a21366783db32142d96883edaa2a48bc47f6789d7188c2bebaba13d68252a43e00d6bd970bf465ce4bc248c7fff9e7a359
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<label class="<%= style(:label, reversed:) %>">
|
2
|
-
<input type="checkbox" class="
|
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([
|
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]
|
32
|
+
controller: "#{stimulus_name} #{html_attrs[:data][:controller]}".rstrip,
|
33
33
|
"#{stimulus_name}-target": "toggle",
|
34
|
-
action: "click->#{stimulus_name}#toggle #{html_attrs[:data]
|
34
|
+
action: "click->#{stimulus_name}#toggle #{html_attrs[:data][:action]}".rstrip,
|
35
35
|
}.merge(html_attrs[:data])
|
36
36
|
end
|
37
37
|
|
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
|
+
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-
|
11
|
+
date: 2024-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|