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 +4 -4
- data/CHANGELOG.md +4 -0
- data/app/components/ariadne/form/toggle/component.html.erb +1 -1
- data/app/components/ariadne/form/toggle/component.rb +3 -3
- data/app/components/ariadne/layout/label_block/component.html.erb +3 -4
- data/app/components/ariadne/layout/label_block/component.rb +3 -0
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ef44a19802f711236bdb9d86d7e6f5db47567ed905a7cbfb70bfc85c3a6d420
|
4
|
+
data.tar.gz: 117469c7ca433e23feb2f3a1f65bb3fe69cd4fad9c4d1ba72de6b5ac736aa182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
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
|
|
@@ -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
|
-
</
|
8
|
+
</div>
|
9
9
|
</div>
|
10
|
-
|
11
|
-
<%= content %>
|
10
|
+
<%= content %>
|
12
11
|
</div>
|
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.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-
|
11
|
+
date: 2024-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|