ariadne_view_components 0.0.23-x86_64-linux → 0.0.24-x86_64-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: f8fdfafad79b25d95eee32ea744dd6d2b65467a85ae3ad2e896be7a457ea39d7
4
- data.tar.gz: 95f9a40c0ae501f3fc529e6396ea62bd3267bfdec5a3d63df8bc9ddaecc4fc0b
3
+ metadata.gz: 4c377a93f95e1941c166a320279c584177ee0c3cf18fbf59aca0f48764094cdb
4
+ data.tar.gz: 934f3cb38f0b11a223a704de13cd7165a4dde45b6988255256c9c48da9ecc772
5
5
  SHA512:
6
- metadata.gz: 1e027d01ade0dd4cf78d30c67a912a6ce1581d0648e7a20a6ea17ddb85cf621e780a4b32d86857de68bbda2fc329665cd7c1397db4ba419f82ce30f44aa97ec4
7
- data.tar.gz: dbe86e6da1813dae7310618d212cc0c1a5edf65d15beb4386b337b1f77e61fc667e4f1ba7d77b9640ee50dd66027bef4f299781f4288c951fff6110792513a58
6
+ metadata.gz: 5fb5b373aa48f6033de6eae22b1b410ec5365213bebd599d3d9b28b3dac46e1f58fe53c5af9e90d78b8c9f9612896adcbcf81b373be7fa0ed765b6caa9986439
7
+ data.tar.gz: 1fb1f3193fc06c39847de0cbf247e1f792d7455b816d7ee0679a819c5aca19540bdd0f6015626458f6f77230778488bf30f97245dbc6da9f874863087d67d6c9
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-linux
6
6
  authors:
7
7
  - Garen J. Torikian