ariadne_view_components 0.0.23-x64-mingw32 → 0.0.24-x64-mingw32

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: d5442232718972759546fa3b2728a70e081359ca8859c8163a2ac7c7f33279f9
4
- data.tar.gz: 5d595379493c9fc036f42f70059e7e109c3a2b36e46612a85e12c975d50477fb
3
+ metadata.gz: 5436bf9718e5e467fa96103b9230898d58ef84221aa28d730122017db9fc9d76
4
+ data.tar.gz: 82d430dbdd38031179fb3c1e28237c2fd5b00fe1ef0e6214333200a4307c4f53
5
5
  SHA512:
6
- metadata.gz: 8131c9c0807d24ee0ed2c998e26f725430ea047d8758c5b2d62e20bf7b3aa1167b0ae15558e00059bcdbd0a2144d9b1590cfedb1e3fccb74f230ff04e9d2c23f
7
- data.tar.gz: 51fee75bddcdf98350eb6b2fe3b945bfd6774cd2b752ba69b89e918b7e8a48333a28f5b21dbdfab3abc216f9df7764678e0c862acb28d929887bfaeb9dfb188c
6
+ metadata.gz: d4146134c2430a3092879470c664c916e09e4c38684e9f3214068f4e9f4ea54e3eec53bad4cf2185b0e2ac4779b0664f27dc3e8ed687dd3226387e7fab7f31da
7
+ data.tar.gz: '008274091774eb637890a3f0a536ceb04c3085291c95daeef3cfb39a1c3e960451b784dc39a432de819bec4df72ea0b9b5f8bf07ac5f6681c355e582df6a32dd'
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: x64-mingw32
6
6
  authors:
7
7
  - Garen J. Torikian