ariadne_view_components 0.0.23-x64-mingw-ucrt → 0.0.24-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 211865b07df119bc5f146a26a2c9066a5e20af46f6c06f216f5a31ca536ff67d
4
- data.tar.gz: e9bffc0efb3b7668187a6fab5df11131a2ae8e8bd6d45b918675bcd17b34ab6c
3
+ metadata.gz: 0ecc4f91ed20a76946d74808fb8d5bbe55f2a7970bc0fa5ebab2a47269fae84f
4
+ data.tar.gz: '08671a58d9de584b9a9400a0b6c40bfe6b6c1ab4dd822010f031e77310eac064'
5
5
  SHA512:
6
- metadata.gz: 27cf6ca5d9ae0b00fcf5b8a1b8a6d4bcfb9f71024979dc83125970f69bde849b95b33939fc854571491386578ea48a98c71c4a8d9229e4d11e4f320efb4fbd87
7
- data.tar.gz: 4a718968f408d929861b9d5a48babefb8e5581df35ae8509332ca11b81fb68f90592429f0daa43fc195ee42021812b203540168e09fa70302025ff626dd3567e
6
+ metadata.gz: 4cc3719827630548b052229f1f8d25dd9190de58ea72800a537525d8ad5e5ea13069cd1554adefe6cadda3e848888a44920a8dc500f97b58587ee5384284b26f
7
+ data.tar.gz: 18f2857325b3eab7e4c419a88a954bf8bcf670f3363f4865a7fc25a48e89fe7f4d0ab8bd220a156c2345e548d1f7547e28f7493cf03a2d42d620eb4ac6992291
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-mingw-ucrt
6
6
  authors:
7
7
  - Garen J. Torikian