Repository navigation
FACET UI 0.1.0-rc.3
Pre-release
Pre-release
Immutable
release. Only release title and notes can be modified.
Changelog
0.1.0-rc.3
Added
AppBarfor the top ofAppShell: brand, title, meta line, centre and actions; it wraps on narrow screens. It takeslead,onHomewithhomeLabel,stats(anullfigure is a dash read as "not measured"),commandwith key caps,compactandonMenu. It is aheaderlandmark; the compact form leaves outactions,meta,statsand the centre.- Layout components
Stack,Row,GridandPagewith gaps from the spacing scale.Grid fitstretches columns over the full row. - Form controls
TextInput,TextAreaandSelectwithonValueChangeandinvalid. - Charts
Sparkline,BarChartandLineChart. The line chart has one axis, a legend, a crosshair tooltip and a table for screen readers.BarChartdraws bars without their own tone in one colour (tone,"signal"by default) on a visible pill track, with wrapping labels.Sparklinefills the area under the line by default (area={false}turns it off), with the"signal"tone and a height of 24 as defaults; a series without a measured value is named "not measured" and draws a dashed baseline, and a lone measured value between gaps is drawn as a dot. - Charts
CalendarHeatmap(days as a gapless grid;count: nullis outlined as not measured),DateHistogramwithbucketEvents(dated events per month or year on a gapless axis, with a caption naming total, range and peak),BandChart(span, target band, median and samples;nullends are not drawn),Sunburst(a visible key of the inner ring,legend={false}turns it into a list for screen readers only; an arc carries its label only when the whole label fits),TreemapwithlayoutTreemap,PyramidandShareBar.categoryColorextends the four series colours with mixes for a fifth category and beyond. - Series colour tokens
--t-series-1to--t-series-4in all four palettes. RingMeter: a share as a ring with the number in its middle, ameterlikeMeter;nulldraws a dashed ring and a dash.Metric: a figure with label, optional whole (of), unit, detail line and count-up. An unmeasured value (null) shows "—" and is read as "not measured", never as 0.- Application chrome:
HistoryNavandHistoryMenu(back, forward and the visited places),NavBar(areas with badges and a secondary group),MobileTabBar(its new-content dot is named for screen readers) andMoreSheet(remaining areas, one exclusive choice with arrow keys, actions and a footer). AreaBarandTabPanel: the head of an area with title, meta line, one action and a tab bar (kind="pages"links orkind="tabs"tablist) whose indicator glides to the active tab; the panel restarts its entry transition on every tab change.Avatar,TimelineandSpinnerfor activity and people.ToastRegion: fixed at the bottom centre, rendered into the overlay host; it adds no live region of its own.ConfirmButton: a confirmation in two presses at the same place. A press within 300 ms of arming is ignored; Escape, blur and a mouse pointer moving onto another control disarm it.LoadingState(a named skeleton in the shape of a list, table or surface) andOfflineState(disconnected, since when, reconnect).ErrorState kind="forbidden"withwho: a missing right as a status with a lock instead of an alert.useOverlay,OverlayLayer,overlayHostFor,focusableInandinitialFocusfor overlays an app builds itself.Toolbarwith arrow-key navigation,ToolbarSeparatorandColorSwatches.Segmentoptions takedisabledandreason, andSegment fullshares the width.TabstakepanelIdandidPrefix;tabId(idPrefix, value)names a tab for its panel.Button busyandButton block;ListRow current;DataTable selectedKey.BarDatum.meta: a quiet fourth column, hidden on narrow screens. Bar rows share their columns, so every track starts and ends at the same place.ChartToneaccepts"signal"..t-sr-onlyfor text that is read but not drawn, and the iconscursor,noteandoffline.- Three example apps in
examples/: an agent run, a feature overview and a sticky board, with screenshots in the README.
Changed
- Breaking:
MetricreplacesStat:valueandofare numbers ornull,size="large"sets the display size, and numbers are formatted for the active locale (or byformat). - Breaking:
Toastruns an undo window: it offers "Undo" only withonUndo, leaves afterdurationseconds (8 by default;nullkeeps it), pauses on hover and focus, callsonExpire(never after an undo) andonDismissed.irreversiblesays the action cannot be undone. - Breaking:
DialogandSheetrender into an overlay host at the palette root. A modal one takes the focus on opening, keeps Tab inside, closes on Esc and returns the focus to the trigger; the title is a heading that names the dialog (aria-labelledby).Dialog inlinestays in the page flow without scrim or trap. - Breaking:
ListRowwithouthreforonClickrenders a plain row. SegmentandTabshave one tab stop; the arrow keys, Home and End move and choose.DataTablewithonRowClickis a grid: rows have one tab stop, the arrows move, Enter and Space activate. The scroll box is a named, focusable region; a sortable column that is not sorted saysaria-sort="none".ErrorStatetakes an optionaltitle("Does not load" by default) and drawsreasonas code.CollectionshowsLoadingStatewhile loading.Button hrefkeeps every attribute and handler on the link.
Fixed
- A chip's and a tab's count is separated from the label for assistive technology ("Open 4", not "Open4").
- A
Sectioninside a stack, row or grid takes its spacing from the parent's gap. - A
Meterinside a row takes the free width.
0.1.0-rc.2
React controls, collections, overlays, layout primitives, application frame, design tokens, typography, themes and English/German localization. ESM and CommonJS entries include TypeScript declarations.