Repository navigation
v1.35.0: a schedule view, a docked action bar and a quiet field
·
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.
summaryis announced politely when it changes;stickyandblurare 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 markeddata-quiet-hostis hovered. Made for lists where every row can take an optional entry. - SegmentedControl
statuson 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
startandendon an event, as 24-hourHH: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.
nowpins the marker for demos and tests;nowLabel,allDayLabelandemptyDayLabelset its words. baredrops the calendar's own fill, border and padding, for a calendar inside a Panel or Widget.weekLabelanddayLabelset the week and day headings, asmonthLabelsets 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
descriptiontakes a node, so it can hold a link or a short list. - FileInput
defaultFilesandonFilesChange: it keeps its own list whenfilesis 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
todayprop, 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: usestart(andend).timestill works as a display override. ariaLabelon ProgressBar, ChatThread, ContextMenu, Popover, PromptSuggestions and ThreadTabs: pass the nativearia-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
onDateClickno longer fires from the day itself inview="day".renderSelectedDaystill works. - Event times written with
startfollow the locale, so a pill reads "11:00 AM" inen-USwheretimeshowed the text as given. - A native
aria-labelon 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