Restructure the repo into npm workspaces so the component kit publishes as its own package, like MUI and shadcn/ui: - packages/ui: @openkhalix/tansy-ui (published), with components, stories, tests, tokens and the library build - packages/brand: private logo and catalogue data shared by both apps - apps/site: the landing page - apps/docs: Storybook The package: - MIT licence (copyright OpenKhalix) - per-component ES modules and type declarations - "use client" on component modules so they import into Next.js Server Components; helpers stay server-safe - tokens.css for Tailwind v4 apps, and a prebuilt styles.css for apps without Tailwind - lucide-react 1.x, whose types compile against current React 19 types The apps resolve the package through a "source" export condition, so they hot-reload component edits, while outside users get dist/. scripts/test-package.mjs packs the package and installs the tarball into Vite + Tailwind (strict types), plain React and Next.js apps; each must build and render correctly. Gitea workflows run CI on push and publish to npm when a vX.Y.Z tag matching the package version is pushed.
7.3 KiB
7.3 KiB
Changelog
All notable changes to Tansy UI are recorded here. The format follows
Keep a Changelog, and the project uses
Semantic Versioning. While the version is
0.x, a minor release may include breaking changes.
[Unreleased]
[0.4.0] - 2026-09-29
Tansy UI is now a publishable npm package: @openkhalix/tansy-ui.
Added
- Package:
npm install @openkhalix/tansy-ui. One ES module per component (tree-shakeable), TypeScript declarations, and MIT licence. - Two ways to style:
@openkhalix/tansy-ui/tokens.cssfor Tailwind v4 apps, or the prebuilt@openkhalix/tansy-ui/styles.cssfor apps without Tailwind (tokens, the utilities the components use, and a modern reset). - Next.js: component modules are marked
"use client", so they import directly into Server Components; helpers stay server-safe. - Install tests:
npm run test:packageinstalls the packed tarball into Vite + Tailwind (strict types), plain React and Next.js apps and checks each builds and renders correctly. - Release workflow: tag
vX.Y.Zto publish from CI.
Changed
- Monorepo: the package lives in
packages/ui, the landing page inapps/siteand Storybook inapps/docs. lucide-react1.x (0.460's types don't compile against current React 19 types when an app type-checks its dependencies).
Breaking
- The package name is
@openkhalix/tansy-ui(it was the unpublishedtansy-ui), and its build output moved fromdist-lib/todist/.
[0.3.1] - 2026-09-28
Every component and the landing page now work from 320px phones to wide desktops without scrolling sideways.
Fixed
- Inputs: Input, FeaturedInput, NumberInput and Combobox shrink to fit narrow containers. Inputs no longer hold their ~20-character native width inside flex rows.
- Tabs: a row of tabs that doesn't fit scrolls sideways within itself, and vertical tabs stack above their panel on phones.
- ToggleGroup: scrolls within itself when wider than the screen; its focus ring is drawn inset so scrolling can't clip it.
- Popups: menus, selects, popovers and tooltips never grow past the screen
edge (they cap at Base UI's
--available-width). - Landing page: the header no longer crowds at tablet widths, and the code sample fits its card at 1024px.
- Storybook: the Accessibility panel no longer counts page-level rules
(
<main>,<h1>, landmarks) that can't apply to an isolated component.
Added
scripts/check-stories.mjs --width <px>fails any story that makes the page scroll sideways at that width.
[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 (alsoSheet), Popover, InfoTip, DropdownMenu, Tabs, Breadcrumb, Pagination, Toast (ToasteranduseToast), Progress, Meter, Skeleton, CountBadge, Avatar and AvatarGroup, Kbd, Separator and Table. - Dark mode: add the
darkclass 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:libproduces per-component ES modules, type declarations andtokens.css, withexportsin package.json. - Tests: Vitest, Testing Library and axe tests for every component
(
npm test), andscripts/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) anddocs/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:
coloris the semantic colour (primary | neutral | success | warning | danger | info) andvariantis the visual style. The oldthemeprops and colour names (blue,red) are gone. Button variants are nowsolid | soft | outline | ghost | link. - Icons are
ReactNodeprops (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,defaultValueandonValueChange(value). Checkbox and Switch usechecked,defaultCheckedandonCheckedChange(checked). - Field text:
label,descriptionanderror(a node) everywhere, replacinghint,helpTextand{ message }objects. Inline help tooltips are replaced bydescriptionorInfoTip. - Badge: content is
children; the floating count isCountBadge. - Card:
variantandpaddingreplacetheme,shadowandrounded. - Alert: content is
children;dismissibleandonOpenChangereplaceshowCloseButtonandonClose;iconreplacesiconName. - Tooltip: wraps its trigger (
children);sidereplacesposition. Icon-only help triggers areInfoTip. - Removed: TextField (use Input), and the
featuredprop on Select and TextArea (use FeaturedSelect and FeaturedTextArea). sonneris 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 ignoreddefaultChecked; several fields broke without anameor 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.jsonon every deploy, recording the version and commit that were shipped.
Fixed
Switchnow honoursdefaultChecked, including after a form reset.- Button, Accordion and TextField follow the active palette.