ariadne_view_components 0.0.23-x86_64-darwin → 0.0.24-x86_64-darwin

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: d10c951132956a88ff8c42cc892f4a94d11e2b177d2269d4a5e0d2406d2159d6
4
- data.tar.gz: b13b32f0f038b16f94ecb971ed717f5251027e9b513b315aca37953a1c5706b7
3
+ metadata.gz: acc447b843134e6fb4372cfd4a41bd8d8fc2d3a4cde4747debc968f931bf668a
4
+ data.tar.gz: 86d3260d124b799361773f4b00ace03793fd6a1562e91d211361c03d95342e89
5
5
  SHA512:
6
- metadata.gz: 3fff221d476b029fe1cd341b4e832a8155a9b00740198274d9f2528c2550fd116e463f81a561bb1e959290e54ba8487d4bf81bb55d330373524a9532f7b5d51d
7
- data.tar.gz: eb48baf8036540fe28ad2d240d9ac7a3f474a2a811fd66ca21300a6f56af8d1c6522738cd1655e2291eb85c1b79683f7798586eddf0da09ed21706a210ad4d1a
6
+ metadata.gz: 51b5ad373df035c2b41d0f22a846414bdcc3d9e5506b2d1c5980b93ce185c2ddeb911f6c142e02f14296ee2d690befce4b366d69ded9e7351bc63c02909f373f
7
+ data.tar.gz: 71ae1bfcd11828717d747086055053f1f5b0904cd27c5aeeffc13f66da457d628212b328b5a763940c15b6740ef12e72ecd774927c168a1620549d006b6c760f
data/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/yettoapp/ariadne/tree/HEAD)
3
+ ## [0.0.23](https://github.com/yettoapp/ariadne/tree/0.0.23) (2022-10-17)
4
4
 
5
- [Full Changelog](https://github.com/yettoapp/ariadne/compare/0.0.22...HEAD)
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/0.0.22...0.0.23)
6
6
 
7
7
  **Merged pull requests:**
8
8
 
@@ -5,7 +5,7 @@
5
5
  <% if has_logo? %>
6
6
  <%= render Ariadne::LinkComponent.new(href: @href, classes: "ariadne-text-billy-purple") do %>
7
7
  <% if has_image_logo? %>
8
- <span class="ariadne-sr-only"><%= content %></span>
8
+ <span class="ariadne-sr-only"><%= @text %></span>
9
9
  <% end %>
10
10
  <%= logo %>
11
11
  <% end %>
@@ -16,18 +16,19 @@ module Ariadne
16
16
  # @param href [String] Where the logo should link to.
17
17
  # @param src [String] The URL of the image logo.
18
18
  # @param alt [String] Alt text for accessibility.
19
- # @param as_text [Boolean] The text to display
19
+ # @param text [Boolean] The text to display
20
20
  # @param classes [String] <%= link_to_classes_docs %>
21
21
  # @param attributes [Hash] <%= link_to_attributes_docs %>
22
- renders_one :logo, lambda { |href: nil, src: nil, alt: nil, as_text: false, classes: "", attributes: {}|
22
+ renders_one :logo, lambda { |href: nil, src: nil, alt: nil, text: "", classes: "", attributes: {}|
23
23
  @href = href
24
- if as_text.present?
24
+ if src.blank?
25
25
  actual_classes = class_names(DEFAULT_TEXT_LOGO_CLASSES, classes)
26
- @text_logo = Ariadne::Text.new(tag: :span, classes: actual_classes, attributes: attributes)
26
+ Ariadne::Text.new(tag: :span, classes: actual_classes, attributes: attributes)
27
27
  else
28
28
  actual_classes = class_names(DEFAULT_IMAGE_LOGO_CLASSES, classes)
29
29
  actual_attributes = { width: 40, height: 40 }.merge(attributes)
30
- @image_logo = Ariadne::ImageComponent.new(src: src, alt: alt, classes: actual_classes, attributes: actual_attributes)
30
+ @text = text
31
+ Ariadne::ImageComponent.new(src: src, alt: alt, classes: actual_classes, attributes: actual_attributes)
31
32
  end
32
33
  }
33
34
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.23"
5
+ VERSION = "0.0.24"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian