|
| 1 | +--- |
| 2 | +"@joacod/pixel-ui": minor |
| 3 | +"www": patch |
| 4 | +--- |
| 5 | + |
| 6 | +Add NumberField and Textarea components |
| 7 | + |
| 8 | +Two new form input components with pixel-art styling and full accessibility support. |
| 9 | + |
| 10 | +**NumberField Component:** |
| 11 | + |
| 12 | +- New NumberField compound component built on Base UI NumberField primitive |
| 13 | +- Sub-components: Root, Group, Input, Increment, Decrement, ScrubArea, ScrubAreaCursor |
| 14 | +- Supports controlled and uncontrolled modes with value/defaultValue |
| 15 | +- Increment/decrement buttons with customizable step values |
| 16 | +- Min/max value constraints with automatic boundary enforcement |
| 17 | +- Optional scrub area for drag-to-change functionality with configurable direction and sensitivity |
| 18 | +- States: disabled, readonly, required |
| 19 | +- All standard variants (base, primary, secondary, accent, ghost, error, success, warning) |
| 20 | +- Five size options (xs, sm, md, lg, xl) |
| 21 | +- Pixel-art styling with box-shadow borders and instant transitions |
| 22 | +- Comprehensive keyboard navigation (Arrow keys, Page Up/Down, Home/End, Enter) |
| 23 | +- Full accessibility support with ARIA attributes |
| 24 | +- Comprehensive MDX documentation with interactive examples |
| 25 | + |
| 26 | +**Textarea Component:** |
| 27 | + |
| 28 | +- New Textarea component as styled wrapper around native textarea element |
| 29 | +- Supports controlled and uncontrolled modes |
| 30 | +- States: disabled, readonly |
| 31 | +- All standard variants (base, primary, secondary, accent, ghost, error, success, warning) |
| 32 | +- Five size options (xs, sm, md, lg, xl) |
| 33 | +- Custom onValueChange callback for convenient value handling |
| 34 | +- Pixel-art styling with box-shadow borders, no resize handle, instant transitions |
| 35 | +- Dark mode support for all variants with proper contrast |
| 36 | +- Full accessibility with native textarea semantics |
| 37 | +- Supports all standard HTML textarea attributes (rows, cols, maxLength, etc.) |
| 38 | +- Comprehensive MDX documentation with interactive examples including character counter and auto-resize patterns |
0 commit comments