Skip to content

Releases: Robomous/ui-core

Release list

v0.5.0

Choose a tag to compare

@YaelAnaya YaelAnaya released this 03 Oct 00:49

The first release after 0.2.1 to reach npm — 0.3 and 0.4 were declared and never published. Coming from 0.2.1, read MIGRATION-0.3.md and then MIGRATION-0.5.md.

Breaking

  • Button size="inline" is removed. Write variant="link" className="h-auto p-0" instead. Thirteen VisionSet sites are listed in the migration guide.
  • Destructive is a tint. --destructive takes new values and there is no destructive surface role; --destructive-foreground is new. Every destructive variant or state uses bg-destructive/10 text-destructive (/20 in dark), with a /20 hover (/30 in dark).
  • From 0.3 (unpublished until now):
    • the ./gates export, the statusTone exports and the token mirror are gone;
    • the colour namespace is closed to eighteen Tailwind scales.

New

  • 45 components, up from 40. Checkbox, Switch, Slider, Accordion and Collapsible join the shadcn-registry components.
  • TablePagination: a <tfoot> pager inside the table's frame, with a live range, rows per page, page n of N and first/previous/next/last buttons.
  • Alert gains info, success and warning; info and success use role="status".
  • Status roles come in ink/surface pairs (--success/--success-surface, and the same for warning and info).
  • @robomous/ui-core/icons re-exports lucide-react.
  • font-mono is Geist Mono, bundled with the package.

Fixes

  • PopoverAnchor now positions the content against the anchor; before, it opened at the viewport's corner.
  • DialogFooter showCloseButton puts Close ahead of the call site's actions.

Changed

  • Geometry follows the design file across Tabs, Breadcrumb, Pagination, Command, Combobox, Card, Item, Attachment, Dialog, Sheet, Empty, inputs, ToggleGroup, Kbd and Sidebar.
  • The docs site is an Astro catalog with grouped navigation and live demos.