ariadne_view_components 0.0.96.11 → 0.0.96.12
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/ariadne/layout/sidebar/group/item/component.html.erb +7 -19
- data/app/components/ariadne/layout/sidebar/group/item/component.rb +0 -8
- data/app/components/ariadne/ui/avatar/component.rb +1 -1
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12db80b826330e2443668a38536bf7dfed1a1993d93cc97b8da0fecb5302a0ec
|
4
|
+
data.tar.gz: 2c8f7c6f4b9d830d59156a2a2dc86489cc06f947a78ff5ebc03a234b72eab787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43174aebabb6d441c978457e625e917e8518ba664f6cc7ecdd70d2d71d8ad8c51419642acb43de9fd2bbffc8be7c87e732f8a49ecc38046ee2ab03209f9fea1a
|
7
|
+
data.tar.gz: 0ba2ad58ec9012ed44a7b16703014c18b5a89e62e729edb0caef896021c6a27a0c7c21f3c01fde88b3bbc07017682365f53faf4e55423573e217096b0ec34626
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.0.96.12] - 07-04-2025
|
2
|
+
## What's Changed
|
3
|
+
* Even more cleanup by @gjtorikian in https://github.com/yettoapp/ariadne/pull/598
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.96.11...v0.0.96.12
|
1
7
|
# [v0.0.96.11] - 04-04-2025
|
2
8
|
## What's Changed
|
3
9
|
* dark mode support by @arielconti10 in https://github.com/yettoapp/ariadne/pull/596
|
@@ -1,21 +1,9 @@
|
|
1
1
|
<%= content_tag(href.present? ? "a" : "div", data: { collapsed: false }, **html_attrs) do %>
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
</span>
|
10
|
-
<% end %>
|
11
|
-
<% if label.present? %>
|
12
|
-
<span class="ariadne:truncate ariadne:data-[sidebar-collapsed=true]:hidden"><%= label %></span>
|
13
|
-
<% if badge %>
|
14
|
-
<span class="ariadne:ml-auto ariadne:inline-flex ariadne:items-center ariadne:py-0 ariadne:h-5 ariadne:data-[sidebar-collapsed=true]:hidden">
|
15
|
-
<%= badge %>
|
16
|
-
</span>
|
17
|
-
<% end %>
|
18
|
-
<% end %>
|
19
|
-
</div>
|
20
|
-
<% end %>
|
2
|
+
<div class="ariadne:flex ariadne:items-center ariadne:w-full">
|
3
|
+
<span class="ariadne:flex mr-2 ariadne:items-center ariadne:justify-center ariadne:w-5 ariadne:h-5 ariadne:flex-shrink-0">
|
4
|
+
<%= icon %>
|
5
|
+
</span>
|
6
|
+
<span class="ariadne:truncate ariadne:data-[sidebar-collapsed=true]:hidden"><%= label %></span>
|
7
|
+
<%= content %>
|
8
|
+
</div>
|
21
9
|
<% end %>
|
@@ -20,14 +20,6 @@ module Ariadne
|
|
20
20
|
|
21
21
|
# Icon for the item
|
22
22
|
renders_one :icon, Ariadne::UI::Heroicon::Component
|
23
|
-
# Generic icon slot for custom icons
|
24
|
-
renders_one :icon_slot, BaseComponent::ACCEPT_ANYTHING
|
25
|
-
|
26
|
-
# Badge for the item (e.g., notification count)
|
27
|
-
renders_one :badge, BaseComponent::ACCEPT_ANYTHING
|
28
|
-
|
29
|
-
# Content for the item if not using label/link
|
30
|
-
renders_one :custom_content, BaseComponent::ACCEPT_ANYTHING
|
31
23
|
|
32
24
|
accepts_html_attributes do |html_attrs|
|
33
25
|
html_attrs[:class] = merge_tailwind_classes([style(current: current), html_attrs[:class]].join(" "))
|
@@ -149,7 +149,7 @@ module Ariadne
|
|
149
149
|
end
|
150
150
|
|
151
151
|
# Add border to make badge stand out against avatar
|
152
|
-
"#{position_classes[badge_position]} #{size_classes} ariadne:
|
152
|
+
"#{position_classes[badge_position]} #{size_classes} ariadne:ring-1 ariadne:ring-white ariadne:dark:ring-gray-800 ariadne:rounded-full ariadne:flex ariadne:items-center ariadne:justify-center ariadne:overflow-hidden"
|
153
153
|
end
|
154
154
|
|
155
155
|
def badge_style_classes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ariadne_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.96.
|
4
|
+
version: 0.0.96.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|