wabi 0.19.1 → 0.21.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 +34 -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: 6aef01aa58d7bbeec405a5fe78738d296ca768feadba9a7324f882508db7523a
4
- data.tar.gz: 861c25b6e38a6e0af1a72e2f3549c0500585cf8885f61351dfd6c7a6d8cc08f7
3
+ metadata.gz: 110a2d0dd1b9d8e37ea612fd7e06c52e1a3eafb330048ee2a5816b50cf261ea7
4
+ data.tar.gz: d26b4848de125bd0bffd76ebe54e2976213c333b2f1afcf66d6ff86a469fc50c
5
5
  SHA512:
6
- metadata.gz: eadd26f25642aef2d0ebb1c931fc89fcb1a3a2fe17bff0365c3d4125c590b608bbd25e0ee69abdd9e589f533abcfec9599cddb05604515e40a39cd0a7d8737ae
7
- data.tar.gz: ab2c3531a780efe9321348bcdd615234ed8981ee17e1c90d01dbe803ad9ca39f00355f044993c8e1dfacc907eab548d8ea0601ba7324ffadc24c7d6a697cc924
6
+ metadata.gz: f2e7a1e0317bba656dbe7d79f1ffbed4a410b9d01d1331ba7e6232f69fad32d938e15f3a911d2963e1c97dd1cf73b1f7190b2a8b7ba4f7b1e9001d5863ce510c
7
+ data.tar.gz: 4111b17dd2b68db68bf8c068d83a49c3e51e3bf763bb324db1a7c342bd62bc969ec394894f4e34310556567fdbd7c640446e04883335b0bf3a7164652dc705c6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,40 @@
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.21.0 - 2026-06-04
6
+
7
+ ### Added
8
+
9
+ - **`SidebarRail`** — a thin, desktop-only strip on the sidebar's inner edge;
10
+ clicking it toggles collapse/expand (it reuses the `wabi--sidebar` controller, so
11
+ the rail, `SidebarTrigger`, and ⌘/Ctrl+B all drive the same toggle). `side:` picks
12
+ the edge; a 1px line highlights on hover/focus. Render it inside `Sidebar`.
13
+
14
+ ## 0.20.0 - 2026-06-04
15
+
16
+ Sidebar v3 — richer menu items, shell variants, and polish. No breaking changes.
17
+
18
+ ### Added
19
+
20
+ - **Shell variants** on `SidebarProvider`: `variant: :floating` (the rail becomes a
21
+ detached, rounded, shadowed card) and `variant: :inset` (the main content, wrapped
22
+ in the new **`SidebarInset`**, floats as a rounded card over a sidebar-colored
23
+ background). Default stays `:sidebar`.
24
+ - **Collapsible groups** — `SidebarGroup.new(collapsible: true, label: "…", default_open: true)`
25
+ renders the group as a native `<details>` disclosure (label as summary, rotating
26
+ chevron, no JS).
27
+ - **`SidebarInput`** — a search field styled for the sidebar (hidden in collapsed mode).
28
+ - **`SidebarMenuSkeleton`** — a loading-row placeholder (icon + text pulse;
29
+ `show_icon:` toggles the icon).
30
+
31
+ ### Fixed
32
+
33
+ - **`SidebarMenuButton` / `SidebarMenuSubButton` now forward arbitrary attributes**
34
+ (`id`, `target`, `rel`, `aria-*`, `data-*`, `data-turbo-method`, …) to the rendered
35
+ `<a>`/`<button>` — they were previously dropped. For tooltip menu buttons, a
36
+ user-supplied `data:` is merged with the internal tooltip-trigger target so neither
37
+ is lost.
38
+
5
39
  ## 0.19.1 - 2026-06-03
6
40
 
7
41
  ### Fixed
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.1 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.21.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.1"
4
+ VERSION = "0.21.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.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Ortega