wabi 0.14.2 → 0.15.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 +17 -0
  3. data/README.md +4 -4
  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: 81b58b73eb1f3e83cfb6840d864a8dbb0b2c078454cb8099dd0ac89c84130110
4
- data.tar.gz: fa1b0abcafb1f0e5b03636dd90e204d0d485e8d97956f072136dd40ba353aec0
3
+ metadata.gz: 5da6047adf08752f3a94d9e9d10828e5eb68f6e597f0193608a7bcabd3125a6e
4
+ data.tar.gz: 2874c23f200ecc7b714e21a27a85ca6808192e6bf82e3a59f3baa21c1c5f530c
5
5
  SHA512:
6
- metadata.gz: d8ff36b21bc54736f9da4122e092fc18e92051eb4b1b961dc6fceddddcdc28e491d026ed32d4268df1a8c680c6dc97c17ae24794e5e816c17fb15d5c508a9b18
7
- data.tar.gz: 24aa4d354092a8f2597314cf6985cd84b60546df94f6832b72d696ea9959ef51c6f46654b84cdbcdaa301121dde1709d60933f9b41cf2650d0c9822a83da9c42
6
+ metadata.gz: a36925fa1db4d383e3b2435331a3f5c1f8ec639a702ef43483cd165b4f4abb33482cd188459ca9f4fcf7bc6928953caaa27ef2a9c08c1682a1399e21bc302199
7
+ data.tar.gz: e3cf19e0882ad6bcb472bc46650ba69b91feafc2fae65e46f383a16dfc8a01abc66c94bb0b8fb4b06278fc0da7f3b6bc5c42f63ff6ab3b2f53d0fe3117aaa576
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
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.15.0 - 2026-06-03
6
+
7
+ Adds the **NumberInput** component.
8
+
9
+ ### Added
10
+
11
+ - **NumberInput** — a numeric stepper input (`[ − | value | + ]`) backed by
12
+ `@zag-js/number-input`. It hides the native browser spinner arrows and ships
13
+ its own decrement/increment controls with full keyboard support (↑/↓,
14
+ PageUp/PageDown, Home/End), press-and-hold to repeat, and `min`/`max`/`step`
15
+ clamping. Supports number formatting via `Intl.NumberFormat`
16
+ (`format: :decimal | :currency | :percent`, with `currency:` and `precision:`),
17
+ three sizes (`:sm`/`:md`/`:lg`), optional mouse-wheel adjustment
18
+ (`allow_mouse_wheel:`), an `invalid:` state for Form integration, and native
19
+ form submission (the real `<input>` carries the `name`). Install with
20
+ `bin/rails g wabi:add number_input`.
21
+
5
22
  ## 0.14.2 - 2026-06-02
6
23
 
7
24
  Bugfix release. Wabi's controllers gained a real JavaScript test suite (vitest +
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.14.2 alpha — [available on RubyGems](https://rubygems.org/gems/wabi). 34 components, 8 theme palettes, WCAG-AA targeted, live docs + registry at [wabi-docs.onrender.com](https://wabi-docs.onrender.com).
7
+ 🎉 **Status:** v0.15.0 alpha — [available on RubyGems](https://rubygems.org/gems/wabi). 35 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
 
@@ -31,11 +31,11 @@ Then add `@import "./wabi/tokens.css";` AFTER `@import "tailwindcss";` in your `
31
31
 
32
32
  ## What's in the box
33
33
 
34
- ### 34 components
34
+ ### 35 components
35
35
 
36
36
  | Group | Components |
37
37
  |---|---|
38
- | **Forms** (13) | Button, Input, Textarea, Label, Checkbox, Switch, Select, RadioGroup, Slider, Toggle, ToggleGroup, Combobox, Form |
38
+ | **Forms** (14) | Button, Input, NumberInput, Textarea, Label, Checkbox, Switch, Select, RadioGroup, Slider, Toggle, ToggleGroup, Combobox, Form |
39
39
  | **Layout & Display** (8) | Card, Badge, Separator, Alert, Avatar, Table, DataTable, Skeleton |
40
40
  | **Overlays** (6) | Dialog, AlertDialog, Drawer (4 sides), Tooltip, Popover, Command |
41
41
  | **Menus** (1) | DropdownMenu (nested submenus, checkbox + radio items) |
@@ -134,7 +134,7 @@ bin/dev # starts registry watcher + tailwind watcher + docs server on :3000
134
134
 
135
135
  Then visit:
136
136
  - `/` — marketing landing
137
- - `/docs/components` — index of all 34 components
137
+ - `/docs/components` — index of all 35 components
138
138
  - `/docs/components/{button,dropdown_menu,dialog,tabs}` — detailed pages with live preview + source
139
139
  - `/docs/themes` — all 8 palettes side-by-side
140
140
  - `/docs/getting-started`, `/docs/theming`, `/docs/philosophy` — prose docs
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.14.2"
4
+ VERSION = "0.15.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.14.2
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Ortega