Every component is rebuilt on @base-ui/react with a single prop API, token-only colours and dark mode, and 28 new components are added. Components - New: Field, FeaturedTextArea, NumberInput, Combobox, CheckboxGroup, Slider, ToggleGroup/Toggle, IconButton, Dialog/Modal, AlertDialog, Drawer/Sheet, Popover, InfoTip, DropdownMenu, Tabs, Breadcrumb, Pagination, Toast (Toaster, useToast), Progress, Meter, Skeleton, CountBadge, Avatar/AvatarGroup, Kbd, Separator, Table - Rewritten: Button, Input, FeaturedInput, TextArea, Select, FeaturedSelect (real ARIA combobox), NativeSelect, Checkbox, Radio, Switch, Tooltip, Accordion, Alert, Spinner, Badge, Card - Removed TextField (use Input) and sonner (use Toast) Foundations - Semantic tokens (surfaces, text, borders, status ramps) in src/styles/tokens.css, with class-based dark mode - Visible focus rings, linked labels/descriptions/errors, alert roles by severity, keyboard support from Base UI - Fixed the Classic Blue ramp; Emerald, Amber and Teal 500 steps now carry white text at AA - Library build (per-component ES modules, types, tokens.css, exports) Quality - Vitest, Testing Library and axe tests for every component (289 tests) - scripts/check-stories.mjs renders every story in Chrome and fails on errors or axe violations, including contrast; all 423 stories pass in light and dark mode and in all seven palettes - Storybook: controls for every prop, open states for every popup, light/dark toolbar, Introduction guides, docs/CONVENTIONS.md BREAKING CHANGE: component props changed across the kit; see CHANGELOG.md.
105 lines
5.0 KiB
Markdown
105 lines
5.0 KiB
Markdown
# Changelog
|
||
|
||
All notable changes to Tansy UI are recorded here. The format follows
|
||
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
|
||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). While the version is
|
||
`0.x`, a minor release may include breaking changes.
|
||
|
||
## [Unreleased]
|
||
|
||
## [0.3.0] - 2026-09-28
|
||
|
||
A rebuild on Base UI with one consistent API, dark mode, and 28 new components.
|
||
This release changes most component props; see **Breaking** below.
|
||
|
||
### Added
|
||
|
||
- **New components:** Field, FeaturedTextArea, NumberInput, Combobox,
|
||
CheckboxGroup, Slider, ToggleGroup and Toggle, IconButton, Dialog (also
|
||
`Modal`), AlertDialog, Drawer (also `Sheet`), Popover, InfoTip,
|
||
DropdownMenu, Tabs, Breadcrumb, Pagination, Toast (`Toaster` and
|
||
`useToast`), Progress, Meter, Skeleton, CountBadge, Avatar and AvatarGroup,
|
||
Kbd, Separator and Table.
|
||
- **Dark mode:** add the `dark` class to `<html>`. Surface, border and text
|
||
tokens switch, and every story is checked for contrast in both modes.
|
||
- **Semantic tokens:** surfaces (`bg-surface`, `text-fg`, `border-border`…)
|
||
and 50–900 status scales for success, warning, danger and info.
|
||
- **Library build:** `npm run build:lib` produces per-component ES modules,
|
||
type declarations and `tokens.css`, with `exports` in package.json.
|
||
- **Tests:** Vitest, Testing Library and axe tests for every component
|
||
(`npm test`), and `scripts/check-stories.mjs`, which renders every story in
|
||
Chrome in light and dark mode and fails on errors or axe violations.
|
||
- **Storybook:** Introduction section (Welcome, Getting started, Theming,
|
||
Accessibility, Changelog, Roadmap), a light/dark Mode toolbar, controls for
|
||
every prop, and "open" stories for every popup.
|
||
- **Landing page:** version pill, "Why Tansy" section, roadmap section and a
|
||
full footer.
|
||
- `docs/CONVENTIONS.md` (component rules) and `docs/ROADMAP.md`.
|
||
|
||
### Changed
|
||
|
||
- Interactive components are built on `@base-ui/react`: focus management,
|
||
keyboard navigation and ARIA come from its WAI-ARIA patterns.
|
||
- Every interactive element shows a visible focus ring.
|
||
- Form fields link their label, description and error for screen readers.
|
||
- The Classic Blue ramp is monotonic (700, 800 and 900 were out of order).
|
||
- Status colours are the same in every palette.
|
||
- Emerald, Amber and Teal: the 500 step is one shade darker, so white text on
|
||
solid buttons and checked controls meets WCAG AA (it was 3.2–3.8:1).
|
||
- Alert uses `role="alert"` only for danger and warning.
|
||
- The landing page bundle is 35% smaller: icons are imported individually.
|
||
|
||
### Breaking
|
||
|
||
- **Colour and style props:** `color` is the semantic colour
|
||
(`primary | neutral | success | warning | danger | info`) and `variant` is
|
||
the visual style. The old `theme` props and colour names (`blue`, `red`) are
|
||
gone. Button variants are now `solid | soft | outline | ghost | link`.
|
||
- **Icons** are `ReactNode` props (`startIcon`, `endIcon`, `icon`). Lucide
|
||
component references, icon-name strings and Remix Icon class strings are
|
||
no longer accepted.
|
||
- **Values:** Select, Radio, Slider and friends use `value`, `defaultValue`
|
||
and `onValueChange(value)`. Checkbox and Switch use `checked`,
|
||
`defaultChecked` and `onCheckedChange(checked)`.
|
||
- **Field text:** `label`, `description` and `error` (a node) everywhere,
|
||
replacing `hint`, `helpText` and `{ message }` objects. Inline help
|
||
tooltips are replaced by `description` or `InfoTip`.
|
||
- **Badge:** content is `children`; the floating count is `CountBadge`.
|
||
- **Card:** `variant` and `padding` replace `theme`, `shadow` and `rounded`.
|
||
- **Alert:** content is `children`; `dismissible` and `onOpenChange` replace
|
||
`showCloseButton` and `onClose`; `icon` replaces `iconName`.
|
||
- **Tooltip:** wraps its trigger (`children`); `side` replaces `position`.
|
||
Icon-only help triggers are `InfoTip`.
|
||
- **Removed:** TextField (use Input), and the `featured` prop on Select and
|
||
TextArea (use FeaturedSelect and FeaturedTextArea).
|
||
- `sonner` is no longer a dependency; use Toast.
|
||
|
||
### Fixed
|
||
|
||
- Tables in Storybook docs pages render (GitHub-flavoured Markdown).
|
||
- The landing page's mobile header rules, which a stray edit had broken.
|
||
- TextField ignored `value`; Switch ignored `defaultChecked`; several fields
|
||
broke without a `name` or when two shared one.
|
||
|
||
## [0.2.0] - 2026-09-28
|
||
|
||
First tagged release.
|
||
|
||
### Added
|
||
|
||
- 15 components with colocated tokens and stories: Button, LinkButton, Accordion,
|
||
TextField, Input, FeaturedInput, Select, Checkbox, Radio, Switch, TextArea,
|
||
Alert, Spinner, Badge, Card and Tooltip.
|
||
- Seven palettes (Classic Blue, Emerald, Violet, Amber, Crimson, Slate, Teal)
|
||
applied at runtime with `applyPalette()`.
|
||
- Landing page built only from Tansy components, with five featured parts and a
|
||
palette-switching playground form.
|
||
- Storybook workshop with Tansy branding, a Welcome page and a palette toolbar.
|
||
- Tansy mark and favicon.
|
||
- `version.json` on every deploy, recording the version and commit that were shipped.
|
||
|
||
### Fixed
|
||
|
||
- `Switch` now honours `defaultChecked`, including after a form reset.
|
||
- Button, Accordion and TextField follow the active palette.
|