Skip to content

v1.40.0 — AppToolbar, PaymentCard and popups on top

Latest

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 27 Nov 16:35
· 11 commits to main since this release

Two new components, AppToolbar and PaymentCard, and a top bar for every app page. Anchored popups now paint in the browser's top layer, AppSidebar keeps the current page selected while its side panel is open, and Blueprint and Velvet set their action colour per mode. Nothing is removed and no prop has moved, but a few things draw differently, so read Before you upgrade if you style them.

Before you upgrade

  • Anchored popups paint in the top layer. Every panel placed by an anchor (menus, popovers, comboboxes, date pickers and the rest) now opens in the browser's top layer, as Tooltip already did, so a parent's mask, overflow or stacking context can no longer cut it off. A z-index you set on a panel to lift it is no longer needed.
  • AppSidebar keeps the current page selected. While the side panel is open, the current page keeps its selection fill and the row that opened the panel takes the quieter hover fill (ds-app-sidebar__btn--open). Before, the opening row took the selection and the current page lost it.
  • Stat's deltaPlacement="auto" wraps. The body is now a wrapping row: the delta sits beside the value while both fit and drops onto its own line under it when they do not, so a long figure never pushes it out of the tile. Below 180px it still stacks under the label. CSS written against its grid areas no longer applies.
  • Blueprint and Velvet change colour. Blueprint's action colour is a royal blue in light mode and keeps its electric blue in dark mode, with slightly tighter corners. Velvet is a richer purple in light mode and a brighter one in dark mode, where its button label is white. Both lighten their logo in dark mode.
  • NotificationCenter's mark-all default reads "Mark all as read", and its unread count is a Badge. Pass markAllLabel to keep your own wording.
  • CommandPaletteTrigger's field never shrinks under 280px, so its prompt and keycaps always show in full, and its icon-only form takes IconButton's glyph size.

New

  • AppToolbar, the bar along the top of an app's page, always in one order: the search, space, borderless icon controls, the AI button and the primary action. It comes in a default and a compact size and folds in steps by its own width; an icon control can open a panel or be a link. searchGlass frosts the search for a bar over a map or a shader.
  • PaymentCard, the face of a payment card at a card's aspect ratio: the brand and a tier along the top, the last four digits, the holder, the expiry and the network's mark, with default and neutral tones, a frozen state and a compact size. It renders from a Server Component.
  • AppLayout takes a toolbar slot that pins a bar over the page in every layout.
  • CommandPaletteTrigger takes glass, Button's frost, in both its forms.
  • NotificationCenter takes rows that open (onSelect, href) and dismiss (onDismiss), Tabs for its filters, an options menu (Mark all as read, your own items, Clear all) and a See all footer.
  • RadioGroup options may carry a description.
  • The app blocks (npx rift-ds init block) are rebuilt on AppLayout, AppToolbar and PageHeader, with an Appearance section in the sidebar, a new notifications block, and a settings block of standard pages per section. Blocks are your code once written, so existing ones do not change.

Fixed

  • AppSidebar's footer action keeps its own icon colour, so a primary Button there no longer draws its arrow in the rail's text colour.
  • NotificationItem titles and text wrap in full on a phone instead of being cut.
  • The blocks' shell links its notifications and settings pages relatively.
npm install rift-ds@1.40.0