Repository navigation
v1.14.0: the tables release
·
821 commits
to main
since this release
The tables release. DataTable is now a full data grid on a headless engine, with a control bar of its own, and the package grows a base layer for starting an app, whole starting pages, and AI controls that show what an agent is doing. Nothing published was renamed or removed, so upgrading needs no code changes; two defaults move, listed under Changed.
New
- DataTable, rebuilt on TanStack Table. Typed columns (
type: text, status, person, currency, number, progress, date, tags, checkbox, link) draw, align, sort and filter themselves with no render function. Sort by several columns, resize, move, pin and hide columns, filter from each header, edit cells or whole rows in place with every editor kind, group rows with totals and a totals footer, open row details, and save the table's setup as views. Past 200 unpaged rows it draws only the rows in view, andhasMore/onLoadMorefetch the next batch as the end scrolls in. - Server mode.
manualhands sorting, filtering, search and paging to your server, withrowCountdriving the pager, the count and Select all N.loadingdraws skeleton rows on a first load and keeps the rows on screen during a refetch;errorandonRetryshow a failed load, or a banner over rows already shown. TableToolbar, the control bar for a table: search, filters as chips, sort, group, columns, density, saved views as tabs, a bulk bar for selected rows, and the page's primary action, a split button when it carries a menu. In a DataTable'stoolbarslot it needs no props. On a phone it folds to icons and its panels open as sheets.- A base layer for a new app.
rift-ds/tokens/base.cssis the reset and page every component is tuned against.ThemeTogglewithcolorModeScriptanduseColorModesets the colour mode before first paint.npx rift-ds init appwrites the root wrapper, the colour-mode script and the font into a Next.js app. - Blocks.
npx rift-ds init block <name>copies a whole starting page into your app as source you own: an app shell, a dashboard and a sign-in, laid out for desktop and phone. ThemePickerandCommandPaletteTrigger, the header's theme switcher and search field, as components.- AI working states. AiButton takes a
state(thinking,working,waiting,done,error) and can open an approval panel while waiting;agentRingPropsand AgentStatus'spillvariant show the same states on any surface. - Popups that never get clipped. Every menu, list, popover and tooltip is placed by one shared behaviour, so a menu inside a table's scroll area or a card shows whole.
- Tokens. Row-control heights (
--control-height-*), six avatar fills, a count badge pair, and forced-colors values so checked, selected and counted states survive high contrast mode.
Changed
- Initials avatars take a colour fill, picked from the name, and AvatarGroup spreads the fills so neighbours never match. Pass
fill="neutral"to keep the grey. - DataTable's pager reads "Page X of Y" on a table narrower than a phone, where the numbered pages did not fit.
- Two runtime dependencies,
@tanstack/react-tableand@tanstack/react-virtual, install with the package. They are DataTable's engine and windowing, and no shipped type names them.
Install
npm install rift-ds@1.14.0The docs are at https://rift-ds.com.