wabi 0.19.0 → 0.20.0

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/wabi/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 671da1d85c9efb693bc652c3bff9acc885389113e843ce260cede410c5895167
4
- data.tar.gz: 314453f9109a42053393780a79c4878f3cdd0c8f2a3a0a6935724f9d7b492d02
3
+ metadata.gz: 70f4a99e0d6276a0a783e01087028d7ffdf23619f36cf8a0fe9509f08d6d0aa4
4
+ data.tar.gz: 22e47f5142c86ebc963cad0baa8261fc6192d103b1babf29052bab300bbe4486
5
5
  SHA512:
6
- metadata.gz: 4ef59549aa56fc4aa2ba29231722de58b2d6ef1876eafcbcc23f9fda9eadb982b8ee48dfde6750bbf761e81627f08a59216bdc682c32b8557cb683cc0a5db844
7
- data.tar.gz: 74a5b5c2039703bcd61bd13dbac360688b9013932bba19ecf96b51627316eb6b863541c95e537d128c8e82dacd01e7a19e352521dc0c1ba27fab158fc53f2922
6
+ metadata.gz: 4a87300e83b0c443f7cf74e4eccb3bbd3335b69d4e36e2c5229bbd7a801790538c5549e43e9b1a78beb5e51ba13333a82ac24bd8c96f45e1af740a8fe5481cc9
7
+ data.tar.gz: 4216c28a21e782c7209674203a94ab546e5248edd6910be72d6058885c12f791b0c43196fba2d46a4a9d71c5f4acfd7b4f4f37b5a0a0829da9383830596af68c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,44 @@
2
2
 
3
3
  All notable changes to Wabi land here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## 0.20.0 - 2026-06-04
6
+
7
+ Sidebar v3 — richer menu items, shell variants, and polish. No breaking changes.
8
+
9
+ ### Added
10
+
11
+ - **Shell variants** on `SidebarProvider`: `variant: :floating` (the rail becomes a
12
+ detached, rounded, shadowed card) and `variant: :inset` (the main content, wrapped
13
+ in the new **`SidebarInset`**, floats as a rounded card over a sidebar-colored
14
+ background). Default stays `:sidebar`.
15
+ - **Collapsible groups** — `SidebarGroup.new(collapsible: true, label: "…", default_open: true)`
16
+ renders the group as a native `<details>` disclosure (label as summary, rotating
17
+ chevron, no JS).
18
+ - **`SidebarInput`** — a search field styled for the sidebar (hidden in collapsed mode).
19
+ - **`SidebarMenuSkeleton`** — a loading-row placeholder (icon + text pulse;
20
+ `show_icon:` toggles the icon).
21
+
22
+ ### Fixed
23
+
24
+ - **`SidebarMenuButton` / `SidebarMenuSubButton` now forward arbitrary attributes**
25
+ (`id`, `target`, `rel`, `aria-*`, `data-*`, `data-turbo-method`, …) to the rendered
26
+ `<a>`/`<button>` — they were previously dropped. For tooltip menu buttons, a
27
+ user-supplied `data:` is merged with the internal tooltip-trigger target so neither
28
+ is lost.
29
+
30
+ ## 0.19.1 - 2026-06-03
31
+
32
+ ### Fixed
33
+
34
+ - **Sidebar collapsed-only tooltips showed when expanded too.** The menu-button
35
+ tooltip's content portals to `<body>` (Zag default), which escaped the
36
+ `group/sidebar` scope, so the `group-data-[state=expanded]/sidebar:hidden` gate
37
+ never matched and the label tooltip appeared even when the rail was expanded
38
+ (redundant with the visible label). The `wabi--sidebar` controller now mirrors
39
+ collapse state to `<html data-wabi-sidebar="…">` (same idiom as the theme
40
+ controller's `data-mode`), and the tooltip content gates on that marker — which
41
+ reaches the portaled content. Tooltips now appear only when collapsed.
42
+
5
43
  ## 0.19.0 - 2026-06-03
6
44
 
7
45
  Sidebar v2 — a richer, themeable Sidebar. No breaking changes (existing v1
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Wabi is an open-source UI component library for **Ruby on Rails 8**, built on **Phlex + Tailwind 4 + Stimulus + Hotwire**. Inspired by shadcn/ui, components are *copied* into your app — you own the code, customize freely, no upstream API to drift away from.
6
6
 
7
- 🎉 **Status:** v0.19.0 alpha — [available on RubyGems](https://rubygems.org/gems/wabi). 36 components, 8 theme palettes, WCAG-AA targeted, live docs + registry at [wabi-docs.onrender.com](https://wabi-docs.onrender.com).
7
+ 🎉 **Status:** v0.20.0 alpha — [available on RubyGems](https://rubygems.org/gems/wabi). 36 components, 8 theme palettes, WCAG-AA targeted, live docs + registry at [wabi-docs.onrender.com](https://wabi-docs.onrender.com).
8
8
 
9
9
  ---
10
10
 
data/lib/wabi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wabi
4
- VERSION = "0.19.0"
4
+ VERSION = "0.20.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wabi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Ortega