Repository navigation
v2.2.0
Minor Changes
-
#143
010ff39Thanks @lavahire-pr-opener! - Four patterns a consumer had hand-rolled now ship from the system (#123, items 1, 5, 8 and 12).CornerPanel— a round launcher pinned to the bottom corner that swaps for arole="dialog": a full-width bottom sheet undermd, a 380px card atmd:bottom-5 md:end-5above. Escape closes it from anywhere inside, focus moves in and comes back to the launcher once React has remounted it, the scrolling body is a namedrole="region"tab stop, and — unlike all three copies it replaces — it traps focus while open. Parts:CornerPanelTrigger,CornerPanelContent,CornerPanelHeader,CornerPanelTitle,CornerPanelClose,CornerPanelBody,CornerPanelFooter.FileDropField— ansr-onlyfile input inside a dashedborder-2label withfocus-within:ring-2, showing the picked file name and swapping toborder-status-errorwhen invalid.sizeandiconare props, because the two copies it replaces had already drifted on exactly those. Unlike a bare file input it also appliesacceptto a drop. Its recipe,fileDropFieldVariants, is published from/variants.MessageThread,MessageThreadItemandMessageComposer— arole="log"that opens at its newest message and honours a#message-<id>hash (scrolling to that message and focusing it), plus a composer built on the realTextareawith anaria-describedbyerror line and arole="status"note that is in the document from the first render, so it can actually announce.ThemeToggleis now exported, from/organisms. It no longer readsnext-themes: that package is a devDependency rather than an external, so a published build was inlining a private copy of it whose React context no consumer'sThemeProvidercould fill. The toggle takesvalueandonValueChangeinstead, and the five-linenext-themeswiring lives in the application.audit:boundarynow fails the library build if any published entry bundlesnextornext-themesagain.
LabelsProvidergainscornerPanel,fileDropField,messageThreadandthemeTogglekeys.