ariadne_view_components 0.0.23-aarch64-linux → 0.0.24-aarch64-linux

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: a616825d6ace7dcf3618a882e1a7dbc29af702ba100ff1aa50bb8fca4329ca70
4
- data.tar.gz: 9859c007d3a70b58c22e5a4a377f437fb75abcd60a53a3535e9072c538a51ead
3
+ metadata.gz: 9a1edd37c62773ae1d148dacc47ee0803597b8a1f12c7b6ff7d06e246c9fd904
4
+ data.tar.gz: 6d8f021684e4a44e43ddb3fa8f374e5e92780373a35718a61d2e12c04a82a012
5
5
  SHA512:
6
- metadata.gz: c1da7b8b7e05c5aea042d81d8155ad96620b36ad0a19d61a562c16967be3d8abacf39706b5ea05c5dbd46fded7ddba799fa03ca506867b667e5c67802891cf4a
7
- data.tar.gz: d1c574724855b630789d7af683b2c9212dabe4af42d1b2769d93c8a61fde916133d1ef5fb15ca0140197dbe30edf8d38f8bbc71bb8f3f067c20892c4c8e3874f
6
+ metadata.gz: ba7a3cdad78f6936a701e128af19b874d6f6aacead352bbd1162e68d1f0857062a6b5228902ce7b66440620f7fb3d83744fc1309cff9b53919559df88b854ea9
7
+ data.tar.gz: 828d139be6a810222ce253060ed0a54c26e110b7e4240c2f664f2aec9a985d60c031081341ffc6a7abeb4b74331c000d9176e81c675fa34715408bba6d8d5acf
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: aarch64-linux
6
6
  authors:
7
7
  - Garen J. Torikian