Repository navigation
v9.0.0
@repo/ui v9.0.0 – First major release after 8.x, introducing breaking API changes, new shadcn‑style props, and several core clean‑ups.
Breaking API changes
- Modal & Toast
typeprop removed; usestatus="info" | "success" | "error" | "warning".<Modal type="info" />→<Modal status="info" />;Modal.confirm()remains unchanged.<Toast type="error" />→<Toast status="error" />.
- Deprecated type aliases & preset colour spellings
- Removed
typealiases (semantic‑state axis). - Updated colour spellings on
ButtonandTag:magenta→fuchsiageekblue→indigogold→ambervolcanoremoved (use custom property, e.g.style={{ '--btn-bg': 'var(--color-orange-600)' }}).
- Removed
- Tag
- Root
data-slotchanged frombadgetotag; update CSS selectors accordingly. - Rebuilt on shadcn
badgeprimitive;badgeslot freed.
- Root
Feature updates
- Button
- Accepts shadcn
variant(default,destructive,outline,secondary,ghost) andsize(xs,sm,default,lg,icon*) words as sugar, mapping to existing color/variant axes. variant="link"remains unchanged.- Emits
data-variantanddata-sizeattributes. - Wraps
core/buttonprimitive; no longer uses absorbed copy of its cva base. asChildnow works correctly after adding missingSlottablemarker.
- Accepts shadcn
- Tag
- Keeps same element, classes, and custom properties (
--tag-bg,--tag-fg,--tag-tint). core/badgesynced with shadcnnew-york-v4registry (addedrounded-full,border-transparent,ghost,linkvariants, anddata-variant).- SSR smoke test reset‑slot registry now empty;
[data-slot='tag']keyed by name inglobals.css.
- Keeps same element, classes, and custom properties (
Fixes & clean‑ups
- Fixed
Button asChilderror (Slot failed to slot onto its children). - Removed
INTERACTIVE_CHASSISfrom Tag;Buttonnow uses the core primitive. - Deleted
lib/chassis.ts(no consumers left). - Updated core membership rules to include single‑element primitives that stay verbatim.
All changes are fully backward‑compatible in terms of rendered output, but the public API surface has been updated as noted.
What's Changed
- refactor!: rebuild Tag on shadcn badge and accept shadcn vocabulary on Button by @pjb0811 in #364
- refactor!: remove deprecated type aliases and pre-8.0 preset colour spellings by @pjb0811 in #366
- chore: version packages by @github-actions[bot] in #365
Full Changelog: v8.1.0...v9.0.0