ably-ui 11.7.1.dev.a87b30a → 11.7.1.dev.abfa747

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: 892b09892d8e23e3fe5b3575ed53a9a141d1e8a6fc213f04165a5309cf5485ac
4
- data.tar.gz: 4a55ef48dcb10866d8f7527bfbfba5beb4c4d056fbf098d09a8846fee7a51462
3
+ metadata.gz: 14025d0f909f489747600675d08c445168855f6bd4e5cfda0a55b60640b415fe
4
+ data.tar.gz: afcbae3fec127ea0234fece378724479a564905903e728a56ca15fe1261e7c57
5
5
  SHA512:
6
- metadata.gz: a6088e0906e167b3e94164454b469799ceb39fe259d6db080468631eb44f7aad4ee1a8261adcfa4697e117a933ae9cb2c4cc8547aa99d5f00b9ef69dde5eb81b
7
- data.tar.gz: 198650b90c12a3344b79e1cd4ae64ca995450dac4d65f36e2405084c2112caf9566532591d58108619ed3fde854702475d636fd2475e6a86448cb76ba8893a08
6
+ metadata.gz: dee555ee684431ba58ca0aa1811569fd1d3d69e06c42861d30a0dc0d17d4180e5d9c4fd11074a71f2b790e100598542409dd015b96fb9f85bd8bed0b8c3d4462
7
+ data.tar.gz: 067daa00bb3ef6398cea3b23e3c8cf847dc75919b565bdba1cc1424d7565b91d60703f8b4c94e119abd369cbdab50b87a78822be23fd0c80d096e4efb5f31d36
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ably-ui (11.7.1)
4
+ ably-ui (11.7.1.dev.a87b30a)
5
5
  view_component (>= 2.33, < 2.50)
6
6
 
7
7
  GEM
@@ -1,16 +1,7 @@
1
1
  @layer components {
2
2
  .ui-featured-link {
3
3
  @apply font-sans font-bold block;
4
- @apply text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus;
5
- }
6
-
7
- .ui-featured-link:hover svg {
8
- @apply left-0;
9
- }
10
-
11
- .ui-featured-link-icon {
12
- transition: left 100ms ease-in-out;
13
- @apply align-middle ml-8 relative -top-1 -left-4;
4
+ @apply text-neutral-500 hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus;
14
5
  }
15
6
  }
16
7
 
@@ -1,6 +1,15 @@
1
- <%= link_to(@url, class: "ui-featured-link #{@text_size} #{@flush ? '' : 'py-8'} #{@additional_css}", style: "--featured-link-icon-size: var(#{@text_size.gsub("text", "--fs")})") do %>
2
- <%= content -%><%= render(AblyUi::Core::Icon.new(name: "icon-gui-link-arrow",
3
- size: "calc(var(--featured-link-icon-size) * 1.25)",
4
- color: @icon_color,
5
- additional_css: "ui-featured-link-icon")) %>
1
+ <%= link_to(@url, class: "ui-featured-link group #{@text_size} #{@flush ? '' : 'py-8'} #{@additional_css}", style: "--featured-link-icon-size: var(#{@text_size.gsub("text", "--fs")})") do %>
2
+ <% if @reverse %>
3
+ <%= render(AblyUi::Core::Icon.new(name: "icon-gui-link-arrow",
4
+ size: "calc(var(--featured-link-icon-size) * 1.25)",
5
+ color: @icon_color,
6
+ additional_css: "ui-featured-link-icon align-middle mr-8 relative -top-1 -right-4 transition-all group-hover:right-0 transform rotate-180")) %>
7
+ <%= content -%>
8
+ <% else %>
9
+ <%= content -%><%= render(AblyUi::Core::Icon.new(name: "icon-gui-link-arrow",
10
+ size: "calc(var(--featured-link-icon-size) * 1.25)",
11
+ color: @icon_color,
12
+ additional_css: "ui-featured-link-icon align-middle ml-8 relative -top-1 -left-4 transition-all group-hover:left-0")) %>
13
+ <% end %>
14
+
6
15
  <% end %>
@@ -3,15 +3,17 @@ module AblyUi
3
3
  class FeaturedLink < ViewComponent::Base
4
4
  def initialize(
5
5
  url:,
6
- text_size: 'text-menu3',
6
+ text_size: 'text-p2',
7
7
  icon_color: 'text-cool-black',
8
8
  flush: false,
9
+ reverse: false,
9
10
  additional_css: ''
10
11
  )
11
12
  @url = url
12
13
  @text_size = text_size
13
14
  @icon_color = icon_color
14
15
  @flush = flush
16
+ @reverse = reverse
15
17
  @additional_css = additional_css
16
18
  end
17
19
  end
@@ -1,3 +1,3 @@
1
1
  module AblyUi
2
- VERSION = '11.7.1.dev.a87b30a'
2
+ VERSION = '11.7.1.dev.abfa747'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ably-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.7.1.dev.a87b30a
4
+ version: 11.7.1.dev.abfa747
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Piatek