ariadne_view_components 0.0.23-arm64-darwin → 0.0.24-arm64-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: 99025179c5c2d3d2073c48656327779947870de0d9752fd3b81a61493162c821
4
- data.tar.gz: d3bc356842d81db981bbffb8a9e246d2df29b0bd006d108d499a0731b02cbda7
3
+ metadata.gz: 61232e7426c9141a5f9801b8814da771cfc005e659b2c81ab05c241775f053e7
4
+ data.tar.gz: 251250ff74e5ace9259361a8c30b60c8f5a6267089fcf209ed303b3f28f3f898
5
5
  SHA512:
6
- metadata.gz: 56957e7be063f43d8e89aab46a4a2113fcc96fc47a1639ca872c78748fb63a352e42d46bdcb4dba7c0426380c195c6bdc88c34534bd87873dd4483bb0d15d00b
7
- data.tar.gz: 5fdf776d973f412ab8d563772ca938cc920d44ca95101a130356f5d9fa6e924feddf2b75faed673ee76238b6e2161aa2e6d8fab8f8cb3ea9cac0ba8ae9e43426
6
+ metadata.gz: 7c7ed4481e56a8e59a9a6c46f7a4ae230bcd6d50a675130333dfd2364cc9e43945bdd102bdabab2ba6ee187c96455f2e8a98c937bef805d60ab68b0ebbbcf30c
7
+ data.tar.gz: b258826ba16920352cd8dc0ef86327154efae66e77561d04ad5776cf408584443b77f9dc60c60f3934c028b14208d6eb03d24888e5090f1ebb1752efb8a269cb
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: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian