Skip to content

v1.35.0: a schedule view, a docked action bar and a quiet field

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 23 Nov 05:22
· 154 commits to main since this release

Fixes and additions found by building a real app on the package: a calendar that reads like a timetable, a bar that docks under a long list, a quiet field for optional notes, and a status colour per segment. Nothing published was removed.

New

  • ActionBar, a new component: a summary and the primary actions docked to the bottom of a long list or form, with the list fading under a progressive blur instead of being cut off. summary is announced politely when it changes; sticky and blur are on by default.
  • Input variant="quiet": no border or fill at rest, revealed on hover, focus, a value or an error, or when a parent marked data-quiet-host is hovered. Made for lists where every row can take an optional entry.
  • SegmentedControl status on a segment (positive, warning, error, info): the selected pill takes that status's colours, so a choice like Present, Late or Absent reads as what it means.

EventCalendar

  • start and end on an event, as 24-hour HH:mm. The calendar writes them in the reader's locale ("8:50 – 9:50 AM", "08:50–09:50 Uhr") and sorts by them.
  • The day view is a schedule: start over end, an accent bar and the title, with a "Now" marker when the day is today. now pins the marker for demos and tests; nowLabel, allDayLabel and emptyDayLabel set its words.
  • bare drops the calendar's own fill, border and padding, for a calendar inside a Panel or Widget.
  • weekLabel and dayLabel set the week and day headings, as monthLabel sets the month's.

Other additions

  • ContributionGraph fill={false} keeps cells at their base size instead of stretching to the width, for a graph with only a few weeks of data.
  • Stat captionPlacement="label" puts the caption under the label instead of beside the icon.
  • AppSidebar fixed={false} lays the rail, its side panel and its phone drawer out in their parent, for a framed preview or a layout that is not the whole page.
  • Alert description takes a node, so it can hold a link or a short list.
  • FileInput defaultFiles and onFilesChange: it keeps its own list when files is not passed.

Fixed

  • EventCalendar's week heading no longer breaks hydration. Node and browsers write different spaces around a range's dash; every range is now written with plain spaces (ResourceTimeline's too).
  • Event times sort by the clock. "8:50" comes before "12:50", and "11:00 AM" before "1:40 PM".
  • EventCalendar's today is hydration-safe. Without a today prop, a server-rendered calendar marks today once it hydrates, and the mark moves on at midnight.
  • ContributionGraph places each day on its own weekday. A series with gaps, such as a class that meets twice a week, fills only its weekdays' rows.
  • EntitySwitcher's mark sits on a collapsed AppSidebar's axis, in line with the nav icons.
  • An expanded AppSidebar row gives its icon room inside the selected pill.
  • The app-shell block's top bar now covers the whole content gutter once the page scrolls, at every width.

Deprecated

  • EventCalendar event time: use start (and end). time still works as a display override.
  • ariaLabel on ProgressBar, ChatThread, ContextMenu, Popover, PromptSuggestions and ThreadTabs: pass the native aria-label, which wins when both are set. This finishes the move the rest of the library has made.

Changed

  • EventCalendar's day view has no day-number button, so onDateClick no longer fires from the day itself in view="day". renderSelectedDay still works.
  • Event times written with start follow the locale, so a pill reads "11:00 AM" in en-US where time showed the text as given.
  • A native aria-label on ContextMenu, Popover or ThreadTabs now names the menu, the panel or the list, rather than the wrapper around it.

Upgrading

Nothing to change in most apps. If you scaffolded the app-shell block before this release, your copy is yours and was not updated: in AppShell.module.css, set --shell-gutter on .shell (40px, 20px under 1280px, the shell inset on phones), use it for .content's side padding, and set the top bar's fill and blur to inset-inline: calc(-1 * var(--shell-gutter)). Running npx rift-ds init block app-shell in a fresh folder shows the new file.

npm install rift-ds@1.35.0