v0.2.0
What's Changed
✨ Features
- Tabbar — new accessible segmented control following the WAI-ARIA tabs pattern: roving tabindex, arrow/Home/End keyboard navigation with automatic activation, and generic over the tab value type.
- Tree-shakeable output — the package now emits per-module output (tsdown
unbundle). ImportingPrimaryButtonno longer pulls invaul-base(BottomSheet's dep) or@unovis(chart's dep); your bundler drops what you don't use. CSS is marked as a side effect so styles survive tree-shaking.
⚠️ Breaking Changes
-
PriceChartmoved to the./chartsubpath. Its@unovisdependency uses extensionless directory imports that raw Node ESM/SSR rejects, so the chart is quarantined to keep the main entry importable everywhere. Update your imports:- import { PriceChart } from "@alien-id/ui-kit-react"; - import "@alien-id/ui-kit-react/styles.css"; + import { PriceChart } from "@alien-id/ui-kit-react/chart"; + import "@alien-id/ui-kit-react/chart.css";
PriceChartmust be consumed through a bundler (Vite, webpack, Next, esbuild).
🧰 Internal
- Migrate color tokens to the oklch color space; add
--alien-color-text/--alien-color-neutral-alphaand give tertiary buttons an explicit text color. Disabled text now resolves to a legible solid color instead of a near-invisible alpha. - Split tests into chromium browser and node vitest projects; add esbuild-based tree-shake assertions that verify what actually ships per import.
- Bump toolchain (tsdown 0.22, TypeScript 6.0, Storybook 10.4, vitest 4.1) and
@unovisto 1.6.7.
Full Changelog: v0.1.5...v0.2.0
Co-Authored-By: Skrrt Bot bot@skrrt.sh
Full Changelog: v0.1.5...v0.2.0