wabi 0.21.3 → 0.22.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 +31 -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: ad486ae425db1fa768c4b0c275df3261568bf25586ed54b1f1c8cdd61b21e411
4
- data.tar.gz: a5971baf69614665214b1fb7b49e980db74bc710bbba3196c5391630ed29d7b3
3
+ metadata.gz: aa63829705ff18ed6da1a4660d01d2792512970909a398e0f6149349edf653d7
4
+ data.tar.gz: 78fff47da0345750763544c33826377e50cdbbe3029cc4ffbb8221d6cae54448
5
5
  SHA512:
6
- metadata.gz: c3e88c880e6ad8d907c8a3f90069e3801e4f58292e8a004b62179baa1c9359f3975451190d6371e9c48b90a7b9ef2d2cef72bc5de8abd46ffa8c736888c70dee
7
- data.tar.gz: ae515fdef1bc269a21f13a7cbf059ff373d0381af6ca45562ac0dd2d5ad02f7385c1c8634101aac8b19a6d5e7914f44edfac6255bb8121100b3662984e090223
6
+ metadata.gz: 0173a3c1b910b76c02c3d12c9f9d2d1b72fc1f82df3e24d1758dfa07509660eee1a50b65c10e7ff6079e914c16e7f8bb37375cd73fc64f308b4b52eba28e4fd5
7
+ data.tar.gz: 9f0cbb4aeb4f0e79fff40c07dbe8cc2816a03a01ff6191d25c64ced171aa2fb7a5f5174d3b46fd0538cef1653636c3c86601ddd20f5f61df67af9f60868ddcda
data/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
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.22.0 - 2026-06-05
6
+
7
+ Four new components (36 → 40), all backed by Zag.js 1.41 via `@zag-js/vanilla`.
8
+
9
+ ### Added
10
+
11
+ - **Date Picker + Calendar** (`date_picker`, `@zag-js/date-picker`). A localized date
12
+ field (input + popover calendar) and a standalone inline `Calendar`. Single and range
13
+ selection; the day grid is built from the machine at runtime; submits ISO `YYYY-MM-DD`
14
+ via hidden inputs (single → `name`; range → `name[start]` + `name[end]`). The range
15
+ shows a connecting band between the start/end days (plus a hover preview). The field
16
+ input has an accessible name (`aria-label`, default "Choose date", overridable).
17
+ - **Input OTP** (`input_otp`, `@zag-js/pin-input`). One-time-code / PIN input — N
18
+ single-character slots (default 6) that submit a single concatenated hidden value.
19
+ `length`, `type` (`:numeric` / `:alphanumeric`), `mask`, and `otp`
20
+ (`autocomplete="one-time-code"`) are configurable.
21
+ - **File Upload** (`file_upload`, `@zag-js/file-upload`). Drag-and-drop dropzone + browse
22
+ button + a file list (name, size, remove, image thumbnail) rendered from the accepted
23
+ files. Backed by a real `<input type="file">` so a standard Rails multipart submit posts
24
+ the files; `name` gains `[]` and `multiple` when `max_files > 1`. `accept` / `max_size`
25
+ constraints supported.
26
+ - **Context Menu** (`context_menu`, `@zag-js/menu`). Right-click menu opening at the
27
+ cursor, with full DropdownMenu parity — items, label, separator, shortcut, checkbox and
28
+ radio items, and N-level submenus.
29
+
30
+ ### Deferred
31
+
32
+ - Date Picker: multi-month side-by-side view (range still spans months via prev/next).
33
+ - Input OTP: groups + separator (e.g. 3-3).
34
+ - File Upload: ActiveStorage direct-upload, chunked/resumable uploads, progress bars.
35
+
5
36
  ## 0.21.3 - 2026-06-05
6
37
 
7
38
  ### Accessibility
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.21.3 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.22.0 alpha — [available on RubyGems](https://rubygems.org/gems/wabi). 40 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.21.3"
4
+ VERSION = "0.22.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.21.3
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Ortega