Astryx v0.7.17
Upgrade every Astryx package your app uses to 0.7.17, then run:
astryx upgrade --from 0.7.16 --apply
ItemandListItemswipe actions now track a finger through the full UIKit-like open, confirm, fire, and cancel motion.TextInput,TextArea, andNumberInputstay visible above a phone or tablet keyboard and restore the page or scroll area after it closes.TopNavMenuandTopNavMegaMenuclose once after a touch or keyboard selection and return focus to the trigger.SelectorandMultiSelectorreturn focus after a selection, while growing option lists keep the selected row aligned with the trigger.- Core adds touch motion for AlertDialog, safer clipboard fallback in restricted frames, more reliable focus and layer behavior, stronger accessibility states, and smaller initial bundles for optional menus and tooltips.
- The CLI gains one-base routing, MCP tools for every command, faster kept catalogs and upgrade scans, clearer theme and integration diagnostics, safer rendering, and page templates whose demo controls work.
- RichTextEditor can re-mark a list item with a Markdown block marker, fixes direction detection across more scripts, and no longer restores a trailing hard break as a backslash.
- The Build package and all seven official themes improve host color-scheme handling and role-text contrast.
The release updates 11 packages and credits 24 contributors. See the full commit comparison and the per-package changelogs below for every shipped change.
Astryx v0.7.16
Astryx 0.7.16 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.15 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.16 @astryxdesign/cli@0.7.16 # plus every other @astryxdesign/* package you use, at 0.7.16
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
- Adds the English strings of the Lab media player (
@astryx.mediaPlayer.*): control names, spoken times, chapter and marker context, and previous and next track. They are Lab strings shipped in Core's locale file, as Lab ListInput's strings are; they add no public API to@astryxdesign/core. (#11438)
-
NumberInput takes
entryErrorBehavior, so a form can pass one value to all of its date, time, and number fields. A typed number is complete only at Enter or blur, so both values keep NumberInput's current timing: its rejection,aria-invalid, announcement, andonEntryErrorChangereport appear at Enter or blur, never while a person types. Setting the prop, or FormLayout'sdefaultEntryErrorBehavior, changes nothing a person sees in a NumberInput. Pagination's page box passes'complete', so a FormLayout around it never changes it. (#11492) -
DateInput, DateTimeInput, and TimeInput take
entryErrorBehavior, and FormLayout takesdefaultEntryErrorBehavior. The prop sets when a field shows its own entry error, such as a date the calendar does not have or a time outsideminandmax. It does not set when validation runs, and it is not React Aria'svalidationBehavior.'complete', the default, keeps each field's current timing.'blur-or-enter'holds the message,aria-invalid, the invalid styling, the announcement, and theonEntryErrorChangereport until the person presses Enter or leaves the field; an edit that makes the entry valid or empty still clears the error at once. A field's own prop wins over the form default, a nested FormLayout replaces it, and a Dialog opened from the form starts without it. PowerSearch value editors and Table filter editors keep'complete'. The newEntryErrorBehaviortype names the two values. (#11485) -
A Lightbox gallery's caption sits in a band two lines tall under every photo, so the photo keeps one size and place from item to item. A photo with no caption keeps the band's space without its backing. A longer caption shows two lines, the second ending in an inline "more" link, which opens the whole caption over the photo. The whole caption is always the viewer's accessible description. (#9810) The viewer is a media surface: its controls, caption and counter take the theme's dark surface tokens through
MediaTheme. The caption is bodyTextwhose lines start at one edge, "more" and "less" areLink's button form in the caption's own type, and the band clears the screen's bottom edge and its safe area. A gallery's caption sits on a backing that keeps it at 4.5:1 over any photo. A tap that opens the viewer paints no focus ring on its first control, and paging from a focused "more" or "less" keeps focus in the viewer. -
NumberInput:
onEntryErrorChangereports why the field rejects typed text, so an app can word its own message. It receives aNumberInputEntryErrorwith akindthat does not depend on the locale (unreadable,fractionalfor a fraction whenisIntegerOnly, oroutOfRangefor any number whileminis abovemax), the typedtext, and, forfractionalandoutOfRange, the number asvalue. It runs each time the rejection changes: at Enter or blur, when an edit makes the text valid or empty, when a newvalue,min,max, orisIntegerOnlychanges or ends it, and when disabling the field drops the text. It reportsnullwhen the rejection ends, or when the field unmounts while one stands, and never twice for the same rejection. Pass anerrorstatuswith a message to word the rejection; that message is the one announced. (#11415) -
New message
@astryx.richTextEditor.link.urlPlaceholder("example.com"), the placeholder of the RichText toolbar's link field. The descriptions of the other@astryx.richTextEditor.link.*messages and@astryx.richTextEditor.toolbar.linknow describe the link popover that replaces the link dialog; their messages are unchanged. (#8717) -
Column windowing keeps focus and place: with
useTableColumnsVirtualization, a focused cell whose column scrolls out of the window stays mounted with its original element until focus leaves the table, moves to another cell, or its column is removed, when focus returns to the Table's scroll area. Focus in a menu that a cell opens keeps the cell's column too. Changing column order, widths, visibility or pinning keeps the first visible column and how far it is scrolled. Tables that do not opt in are unchanged. (#11018) -
Tables can window their columns: pass
useTableColumnsVirtualization({initialViewportWidth})toTable.virtualization. Table keeps every column definition and width, mounts only the unpinned columns near the inline viewport plus two overscan columns per side, keeps pinned columns mounted, and gives mounted cells full-tablearia-colindexvalues witharia-colcounton the table. When the scroll area is at least as wide as the table's minimum width, every column mounts.Table.virtualizationalso accepts a list with at most one rows and one columns capability. Unsupported content or structure renders every column with a development warning. Adding or removing the columns capability remounts the table. Tables that do not opt in render as before; their Table import carries about 0.5 KB gzip of column windowing wiring, and the column planner loads only with the hook. (#11014) -
Add Table infinite loading with
useTableInfiniteScroll({hasMore, isLoading, onLoadMore}). One Promise request latch coordinates automatic and manual loading, failures pause automatic retry, and the persistent busy Button owns progress announcements and focus continuity. (#10570)Also released in
@astryxdesign/cli. -
Tables can window rows and columns together: pass both
useTableRowsVirtualizationanduseTableColumnsVirtualizationtoTable.virtualizationas a list. Table mounts only the cells near the viewport on both axes, keeps full-tablearia-rowindexandaria-colindexvalues, and keeps a focused cell's row and column mounted while either scrolls away. Tables that do not opt in are unchanged. (#11019) -
TextArea
htmlMaxLengthsets the nativemaxlengthattribute, so a form can cap typing in UTF-16 code units, including an SSR form before hydration. It is independent ofmaxLength, the soft counter, which still counts user-perceived characters and never blocks typing. TextArea adds no truncation or validation of its own, and renders no nativemaxlengthwhenhtmlMaxLengthis unset. (#11295) -
TimeInput:
onEntryErrorChangereports why the field rejects typed text, so an app can word its own message. It receives aTimeInputEntryErrorwith akindthat does not depend on the locale (unreadable, oroutOfRangefor a time beforeminor aftermax), the typedtext, and, foroutOfRange, the ISO timevalue. It runs each time the shown rejection changes, including when a newmin,max, orvalue, or disabling the field, changes it, never twice for the same rejection, and withnullwhen the rejection ends or the field unmounts while it stands. The native and bottom-sheet surfaces take no typed text, so they never report. (#11413) -
useTruncationtakesisExpanded: pass true while the text is shown in full; the hook keeps reporting whether it is cut off when clamped. A Lightbox caption uses it, so its "less" stays while the caption is open. (#9810)
-
AppShell keeps server-rendered content when a screen is narrower than the server assumed. On a phone, the shell learned its mobile layout in an urgent update right after it hydrated. When the content inside the shell had not hydrated yet, because its code streams in or loads later, React rendered that content again in place of its server HTML: a visitor lost scroll position and focus, and images inside loaded twice. The shell now takes the client's breakpoint answer in a transition, which waits for that content to hydrate. A client-rendered app and a correct
mobileNav.defaultIsMobilehint behave as before. No API changes. (#11441) -
BottomSheet syncs its focus return target at commit, and no longer copies its stack view during render. A sheet removed after a render React discards, as a suspended transition does, returns focus to its committed
finalFocusRef. (#10918) -
BottomSheet: when a touch flick closes a sheet, the dim behind it now clears in step with the sheet. Before, the sheet was gone in about a tenth of a second while the dim was still mostly there, and it kept fading for over half a second more. The fade now follows the close spring's own progress. Reduced motion and every other close are unchanged. (#11400)
-
BottomSheet keeps its snap points and its reactivated entrance in state, and syncs its drag's stop resolver at commit. A render React discards that changes
snapPoints, as a suspended transition can, no longer changes the stop a released drag rests at. (#10873) -
ChatComposerInput: an empty input keeps its one-line height and takes typing after a page restyle, for example after an open Dialog that holds a SegmentedControl unmounts. Before, its editable area could collapse to 0px, so a click landed beside it and typing did nothing until a reload. (#11428)
-
useContainerReveal keeps revealed content always visible only when the primary pointer is coarse (a phone or tablet). A touchscreen laptop used with a mouse or trackpad now reveals on hover and keyboard focus like any other mouse device. Previously any touchscreen kept the content visible at rest, so a Thumbnail's hover remove button, Markdown heading links, and every app's hover-revealed row actions never hid. (#11218)
-
A theme's padding written with
clamp(),calc(),min(),max()orvar()with a fallback now builds as written. The theme compiler splitspadding,paddingBlockandpaddingInlineon the spaces between values only, never on a space inside parentheses or quotes, sopadding: clamp(8px, 2vw, 16px)stays one value instead of becoming broken CSS. No API changes. (#11347) -
DateInput, DateTimeInput: a
valuethat the app passes at an Enter or blur that keeps a rejected date no longer erases it, so the entry meets WCAG 2.2 3.3.1 (Error Identification). Before, when an app setvaluein the same update as an Enter or blur that kept unreadable, incomplete, nonexistent, or out-of-range date text, as an app does when it restores the date it had before the edit, the field dropped the text, its message, andaria-invalid, and reportednullthroughonEntryErrorChange; a native date control lost its rejection message the same way. Now the text, its rejection, and its message stay at every such Enter or blur, a blur after an Enter included, so the person can correct the entry, and nothing is reported. A later newvaluereplaces the text, as before. No app code changes are needed. (#11470) -
DateInput, DateTimeInput: in a standalone field, rejected dates now meet WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification); inside an InputGroup they set
aria-invalidand are announced. Before, text that is not a date was marked invalid and announced on every keystroke, with no visible message, and Enter or blur reverted it. A native date control flagged each partial year while the year was typed, showed no message, and dropped the rejection when it restored the committed date at blur. Now text that is not a date shows nothing while you type; Enter or blur keeps it in the field and shows "Invalid date" as the field's error status, witharia-invalidand one announcement. Its message replaces a callerstatus, as the field's other rejections already do; withonEntryErrorChange, a callererrorstatus with a message still wins. A native date control's rejection waits for Enter or blur, shows the out-of-range message a typed date shows, under the samestatusrules, and stays shown after the control restores the committed date at blur. A shown rejection stays through an edit that leaves the date wrong or unfinished, and clears once the date is valid or empty. What a form posts does not change: while kept text is not a date, a hidden input posts the committed date under the field'sname, and the next Enter submits the form. (#11407) -
SideNav, TopNav, Breadcrumbs: a Ctrl-, Cmd-, Shift- or Alt-click on a link in the mobile navigation drawer opens it the way the browser decides, a new tab for instance, and leaves the drawer open. A plain click still closes it, and so does a modified click that the row's own
onClickcancels, since nothing opens elsewhere. (#8979) (#9390) -
DropdownMenu syncs the refs its show and hide call at commit. After a render React discards, as a suspended transition does, its entrance under a finger holds input as the committed menu says. (#10905)
-
In forced-colors mode (Windows contrast themes),
primaryandsecondaryButtons gain aButtonTextborder, anddestructivekeeps itsCanvasTextborder; in a connectedButtonGroupthe solid buttons keep the group's dividers and close the group's outer edge, with no doubled seam. Floating surfaces that separate from the page with a box shadow alone gain aCanvasTextborder:Popoverand every surfaceusePopoverpaints (includingDropdownMenu),DropdownMenuSubMenuflyouts,ContextMenu, and anisInlineDialog. Forced colors removes fills and box shadows, which left these controls and surfaces without an edge. The borders exist only in forced colors, so nothing changes elsewhere. A theme that sets a solid variant's own border width keeps it, so Gothic'ssecondaryButton stays borderless. (#7677) -
A layer with several triggers now opens at another trigger when the press on that trigger is the one that closes it, with a mouse or a finger. A press on the open trigger still closes it. (#11337)
-
An anchored layer flush against its trigger, or over its edge, no longer slides over it: its entrance scales in place, as it does for a layer over its trigger's center. A menu at the pointer still slides from the side it lands on. (#11417)
-
An anchored layer that has room to its trigger no longer starts its entrance over it: its first step toward the trigger stops at that room. So a tall tooltip 4 px beside its trigger no longer covers it on its first frame in Safari. (#11396)
-
The layer runtime syncs its close-start and replayed-show refs at commit, not during render, and its keep-open press reads the committed open state or the shown layer. A render React discards no longer leaves its values for later callbacks. (#10912)
-
A light-dismiss layer opened while a press is released no longer closes at that release. A DropdownMenu or ContextMenu row that opens a Popover when chosen with a mouse now leaves it open, as it already did with a finger; the next press outside, or Escape, closes it as before. (#11258)
-
A mouse click on the dark space beside a Lightbox photo now closes the viewer. Before, the viewer stayed open after a click there within the photo's natural width, or within a wider caption's width. (#11354)
-
A single photo's caption in a
Lightboxnow shows as a gallery's does. It sits in the band at the bottom of the viewer, on the caption's backing, which keeps 4.5:1 over any page behind it. The photo centres above it. A caption longer than two lines ends in "more", which opens it in full over the photo. A single photo with no caption shows no band. (#10284) -
When a reorderable
Listrow does not render again, its handle's name still follows it. A handle named after its place ("Reorder item N") follows that place when rows above it go or the rows reorder. A label that gains or loses its text renames the handle. (#10815) -
DropdownMenu, ContextMenu, Selector, TabList, TopNav, SideNav, Breadcrumbs: when a finger picks a menu row, the click guard cancels only that finger's
touchendonce the menu has named the touch, so another finger'stouchendpasses. The menu names the touch from thetouchstartthat follows itspointerdown. AtouchendwithoutchangedTouches, or a lift whose touch the menu could not name, keeps the old rule: the nexttouchendis cancelled. (#11164) -
MoreMenu, InfoTip, PowerSearch (with its PowerSearchToken and PowerSearchFilterEditor defaults), Toast, and InputClearButton now pass host
data-*attributes to their own element, as other components do: the trigger button for MoreMenu and InfoTip, the primary control for PowerSearch, the token and editor root for the PowerSearch defaults, the toast element for Toast, and the button for InputClearButton. Component-owned attributes stay with the component. A new test renders every exported component that renders an element of its own with adata-*attribute, and fails when the attribute does not reach the DOM. (#11406) -
NumberInput: a rejected entry now shows a message and stays in the field, so the field meets WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification). Before, every draft that was not an accepted number, an unfinished one such as
-included, setaria-invalidand was announced on each keystroke, while the text only turned secondary; blur then reverted a draft that did not parse, with no message. Now nothing is marked or announced while a person types, because a typed number is complete only at Enter or blur. At Enter or blur, text that is not a number, a fraction whenisIntegerOnly, or any number whileminis abovemaxstays in the field: the field shows "Invalid number" as its error status, tied to the input byaria-describedby, setsaria-invalid, and announces it once. Inside an InputGroup the rejection setsaria-invalidand is announced. An edit that makes the draft valid or empty clears it at once. A number outside an ordinary range still clamps and commits throughonChange. A callererrorstatus with a message still shows in place of the field's message; awarningorsuccessstatus no longer hides a rejection. What a form posts does not change: while blur keeps a rejected draft, a hidden input posts the committed number as the field showed it before. Pagination'sinputvariant shows the message on its page box's status icon and widens the box beside the typed text while a rejected entry stays, so the bar keeps its height. No app code changes are needed. (#11415) -
Under a finger, a Popover that overlaps its trigger now grows from where it meets the trigger, as the pointer entrance does. A popover a few pixels over its trigger's side grows from that side, not from below. A popover over its trigger's center grows from that center by scale only. Every other landing grows as before. (#10949)
-
Toast announces the rendered message when a body's text comes only from a component, and from custom layouts (#7853) (#11175)
-
SegmentedControl: where the control has no layout, as in a unit test's DOM, a click on a later segment keeps that segment selected instead of switching to the first segment a moment later. Browsers are unaffected. (#11487)
-
Selector's presentation syncs its show, hide and popover-content refs at commit. After a render React discards, as a suspended transition does, opening the popover runs the committed show. (#10917)
-
Slider syncs its values, change-end callback and touch update refs at commit. After a render React discards, as a suspended transition does, a press on the track reports the committed value to the committed
onChangeEnd, and a finger dragging a thumb reports to the committedonChange. (#10913) -
Table:
useTableSortableStatecalls theonSortChangeof the last committed render. Before, a sort click during a transition that had not committed yet called the callback from that pending render. (#11433) -
TimeInput, DateTimeInput: a rejected typed time now meets WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification). Before, every draft that was not an accepted time, an unfinished one such as
1included, was marked invalid and announced on each keystroke, shown only as secondary-color text, and blur reverted it with no message; a native time edit outsideminormaxshowed no message and its rejection cleared at blur. Now an unfinished time is never flagged: a time outsideminormaxshows once it is complete (its hours, both minute digits, both second digits when the field shows seconds, and in 12-hour text its day period unless the hour reads 0 or 13–23), and text that is not a time shows at Enter or blur. The rejected text stays in the field, and a standalone field shows the "Invalid time" message as its error status, witharia-invalidand one announcement; inside an InputGroup the rejection setsaria-invalidand is announced. Enter in TimeInput and in DateTimeInput's time field commits the typed time and still submits a surrounding form; in DateTimeInput's open preset-time list, Enter picks a time as before. A native time control restores the committed time at blur and keeps its rejection shown. A callererrorstatus with a message still shows over the field's message, and the rejection is announced once; awarningorsuccessstatus no longer hides a rejection. In DateTimeInput, a date rejection's message comes first and a time rejection under it is announced. What a form posts does not change: while blur keeps a rejected TimeInput draft, a hidden input carries the field'snamewith the committed time. (#11413) -
TimeInputandDateTimeInput: a bound with no whole minute inside the range keeps its own seconds, so the clamp stays inside the range. Before,clampTime('12:00','23:59:30')answered23:59— below the minimum the caller set. In aTimeInputsheet a wheel rest past such a bound committed nothing; in aDateTimeInputsheet, changing the date onto such a bound committed the out-of-range23:59. (#10159) (#10159) -
Tooltip's and HoverCard's touch trigger, and Tooltip's handlers with the controlled and enabled flags they carry, sync at commit. After a render React discards, as a suspended transition does, a tap answers with the committed props, and a press outside still closes a shown tooltip. (#10892)
- Markdown text transforms that declare
requiredSubstringslook for those substrings in one pass over the source. Before, each paragraph searched the rest of the document again, so long Markdown (such as a long streamed chat answer) rendered more slowly with each paragraph. Output is unchanged. (#11403)
-
The docs playgrounds for TextInput, TextArea, NumberInput, CheckboxInput, Switch, ProgressBar and StatusDot open with realistic values instead of prop-name placeholders, the Heading playground opens as a level-1 heading instead of inheriting Text's sample with
type: 'body', and the ButtonGroup, TabList, SegmentedControl and TopNav playgrounds open with named sample items instead of numbered ones. (#11351) -
Hook docs for
useOutlineFromDOM, soastryx hook useOutlineFromDOMandastryx searchreturn it, and auseOutlineFromDOM — Articleexample block: an article and an Outline built from its headings through the hook, with a button that adds a section and its linked entry. (#11234)Also released in
@astryxdesign/cli. -
ListItem's
startContentandendContentdocs now say that the content sits inside the row, before the label or after the label and description, not before or after the item. (#11336) -
MetadataList's guidance now says that assistive technology reads each label with its value, and that the title does not name the list or add a heading. Its prop docs now list
classNameandstyle, and thelabeldocs say thatposition: 'start'places a label at the inline start of its value, not on the left. (#11391)Also released in
@astryxdesign/cli.
RichTextEditorToolbar's Link button, and Cmd/Ctrl+K in the editor, open a popover anchored to the button instead of a modal dialog. The popover holds one URL field, applied with Enter, and Apply, Remove (when the selection is in a link), and Cancel icon buttons with tooltips. It is not modal: Escape or Cancel closes it and returns focus and the selection to the editor, and a URL that cannot be linked shows an error under the field, which keeps focus. The URL rules (sanitizeUrl),hasNewTabLinks, andpromptForUrlare unchanged; withpromptForUrlthe Link button opens no popover, as it opened no dialog. (#8717) The popover opens above the toolbar and flips below it only when there is no room above. Apply and Cancel use the sharedcheckandcloseicons, so a theme that restyles those icons restyles them too; Remove's glyph is fixed artwork.RICHTEXT_ICON_KEYSis unchanged.
-
Pasting into a
RichTextEditortable no longer drops the paste or empties cells. A pasted table fills the cells one by one from the caret's cell, or within the selected cells. A merged cell in it fills only the cell where it starts instead of emptying the cells it covered, and a table whose rows differ in length arrives whole. A table pasted together with other content, as a web page copies it, goes into the cell as text instead of being discarded. (#8577) -
A link typed without a scheme, whose host has a dot or is
localhost, followed by a port, such asexample.com:8080,www.example.com:8080/docsorlocalhost:3000, now gets the defaulthttps://likeexample.comdoes, instead of being read as an unknown scheme and turned intoabout:blank(#11042)
-
astryx experimental theme editor: a new accent or neutral color keeps the base theme's own secondary text shade on selected items and rows, a dropzone, numbered citations and segmented-control labels while that shade still reads at 4.5:1; it moves only when it no longer does, and the note says it was kept readable. A write that repeats what the base theme already shows is no longer listed as a styled change. (#11468) -
astryx experimental theme editor: the app copy insrc/themes/<theme>/is written exactly astheme buildof its source writes it (the build header names that source), sotheme build --checkandastryx doctorread it as current, and a stable rebuild of it leaves it the editor's (the next change writes it again). A change that fails after its build no longer leaves the refused build in the app copy: the copy is written only once the change is saved. (#11468) -
astryx experimental theme editor show: a show that is refused (or fails to render) leaves the app copy insrc/themes/<theme>/as it was; the copy is written once show succeeds. System files such as .DS_Store in the copy folder no longer stop the copy; a file of yours there does, andwiringthen gives the steps by hand, naming that file. (#11468) -
astryx experimental theme editor: CSS read with the current specifications' grammar. (#11378)- The editor also reads the current specifications' grammar from
@csstools/css-syntax-patches-for-csstree(a new dependency, pinned). It adds about 0.1 MB unpacked to the install (one 79 KB JSON file, no dependencies of its own), and loads only when the editor checks a CSS value; no other command loads it, and startup is unchanged. A property MDN marks obsolete but the specifications still define, as browsers ship it, is taken:font-stretch, so the font shorthand split names a command that works. - A negative number the current grammar ranges at 0 or more is refused on a part (
line-height -1,gap -2px), with the positive value as the suggestion. - A
color-mix()share outside 0% to 100% is refused for tokens, part colors and the color dials, and the mix with the share at its limit is suggested. - A font size or weight given alone to
fonton a part (small,1rem,700) is suggested asfont-sizeorfont-weight, never as a family. - A relative color that keeps its channels (
rgb(from red r g b)) andlight-dark()with the same color twice are read as that color. Acolor-mix()in a space the editor does not mix in, or a relative color that changes its channels, says so and suggests the nearest color it can work out.
- The editor also reads the current specifications' grammar from
-
astryx experimental theme editor: more refusals and notes that are true. (#11378)- A negative percentage the current CSS grammar ranges at 0 or more is refused on a part (
line-height -50%,gap -10%). - A
color-mix()share may be written as any CSS percentage (5e1%,+50%,calc(50%)). - Line-height tokens (
--text-*-leading) take a number with no unit, as Core multiplies them by a text size;1.5emand150%suggest1.5. headingsin other letters or as a weight number suggests the word meant (BOLDis bold), and a weight number the nearest weight rung (800and900are heavy), never a lighter one.- A whole-theme font under fonts set for body and headings says which role fonts it sits under and how to clear them.
- A font one of the editor's own presets leads with (Comic Sans MS) gets no "must load" note.
text-size moreorlessat the end of the dial's range suggests the base font size token, never a size the dial refuses.- A CSS font value on a part made of keywords (
italic bold,bold 1rem) is split into its longhands, never a family; after the size, the rest is the family, as CSS reads it (1rem boldis size 1rem with the family bold).
- A negative percentage the current CSS grammar ranges at 0 or more is refused on a part (
-
astryx experimental theme editor: number tokens read as CSS reads them. (#11378)- Only the tokens Core's stylesheet multiplies by a size inside calc() (the line heights) refuse a unit; weight tokens take the font-weight keywords again (
bold,normal), so a theme saved with one stays editable. - Numbers are read as the browser reads them:
1.5e0,+1.5,15E-1and1.5EMare numbers, and acolor-mix()share like50.%is refused. - A CSS font value on a part with a size and line height (
1rem/1.5) or a size written as math (calc(1rem + 2px)) is split into its longhands; a part named twice (bold bold) is refused, never written as a family.
- Only the tokens Core's stylesheet multiplies by a size inside calc() (the line heights) refuse a unit; weight tokens take the font-weight keywords again (
-
astryx experimental theme editor: weights on phones, and values read as CSS reads them. (#11419)- Heading and text weights (the
headingsweight dial,--text-*-weighttokens) now apply on phones too: they are written into the phone rules the base theme sets, as font families are. - A token set to
var(--x, <fallback>)checks the fallback as the token's own kind. - Size tokens and color channels read numbers as CSS does:
1.pxandrgb(255. 0 0)are refused (with1pxsuggested where that is all), and+4pxand4e+1pxare taken. vibrancysuggests the value meant (MOREis more,70%and7e1are 70), and no value when the theme has no color to saturate.- The
headingsresult lists its weights in words, not[object Object]. - The whole-theme and role
fonttake a family alone: a size, a weight or a whole CSS font value is refused with the family, and the base size or headings command where it applies.
- Heading and text weights (the
-
astryx experimental theme editor set: when a part does not read the token named, the suggestions name only tokens of the same kind (a weight goes to a weight token, never to a size or a line height). Avar()fallback is checked wherever it sits (insidecalc(),max(),color-mix()), and an empty fallback on a typed token is refused. A size token given a bare number suggests that number in px (16→16px), andtext-size 20px,2e1,+20and1.25remsuggesttext-size 20. (#11419) -
astryx experimental theme editor: fallbacks, saved font dials and size suggestions. (#11419)- A part value's
var()fallbacks are checked against the property (padding 'var(--nope, red)'is refused), as token fallbacks are. - A saved
fontdial thatsetwould refuse (a CSS keyword such asinherit, a size, a whole CSS font value) is reported with the commands that fix it, and never built. - A size one slip from a valid one suggests that size:
16 pxand16pxxsuggest16px,1,5remsuggests1.5rem.text-sizesuggests the nearest size it takes:20 pxand125%are 20, and a size past either end is that end.
- A part value's
-
astryx experimental theme editor:font mathis accepted as the CSS generic family it is; the generic families are read from the CSS grammar. With an exact--font-size-baseset,how 'bigger text'steps that token (14px to 17.5px) instead of offering atext-sizethe token would mask. A color dial edited by hand to a see-through, system or variable color (#2563ebcc,transparent,Canvas,var(--x)) is refused by name with the undo that removes it, instead of building a gray accent. A value typed with full-width characters, a trailing dot or a CSS comment (18,18.,#2563eb,#2563eb /* brand */) is suggested as the value meant.setrefuses avar()loop that closes through a token in the theme's own<theme>.theme.ts.shownotes each token the theme's own source sets that a whole-theme dial also writes. (#11419) -
astryx experimental theme editor: suggestions keep the value meant, and fractional text sizes say how they build. (#11419)- An exact token refused only for how its value was typed (a trailing
;, a comment, quotes around it, full-width#) suggests that same value, not a stock one. - A font name that needs quotes (
Font Awesome 6 Free) on a font token or a part'sfont-familyis suggested quoted, as the font dial writes it. - A fractional
text-size(15.5) is saved as the whole pixel the type scale builds, and the result says so.
- An exact token refused only for how its value was typed (a trailing
-
astryx experimental theme editor how: mode phrases, questions about what is set, the focus ring, and changes by an amount. (#11378)- "The same accent in light and dark" sets both modes, and a trailing "and dark mode only" still makes the theme dark-only.
- A step that cannot move (badges already fully round) says so, with no command that would be refused.
- Questions about what is set now or the choices ("how round are the cards now?", "what are the available corner values") get
showand the lookup, never a change. - "Remove the focus outline" sets its width to 0 and says what that costs; "outline offset" and "focus ring offset" set
--focus-outline-offset. - "Decrease the radius by 2px" moves the corners from the theme's own radius now (its corners setting applied); a change by an amount on a part points to its current value instead of setting the amount.
- "Caret color" sets
caret-color; placeholder text and the selection highlight say they have no setting. - Screen-size, print and device conditions ("below 600px", "on tablets", "the print version") say the editor has no such conditions, instead of reading "600px" as a radius or "tablets" as tables.
- "Text less black" lightens the text.
- Each item of a list keeps its own values: "headings 32px bold, body 16px regular, captions 12px" sets the headings and the body as asked, with no contradiction, and "captions" (no part) takes nothing from its neighbors.
-
astryx experimental theme editor how: a negated mode, the CSS cursor, device words beside an ask, and labels. (#11378)- "Don't touch dark mode, make the accent orange" changes light mode only.
cursor: pointersets the CSS cursor; only "caret" or "cursor color" is the text cursor's color.- A device or print word ("cramped on mobile", "when printing") no longer drops the ask: the rest is answered, with a note that the editor has no such conditions.
- A question about one part's state or group ("which parts are in the inputs group", "how round are the cards now?") gets that part's lookup as well as
show. - "Not so round" is one step less; "avoid pure black text" picks a near-black; "flat cards, not flat buttons" changes only the cards.
NaNpxandInfinitypxare refused as not numbers;1e3pxis 1000px.- Labels are the field label part (a checkbox's or switch's own label when named); "visited links" says a link has no visited state set can name.
- Tailwind
border-2is a 2px border width androunded-fulla pill;.btn-primary { … }is the primary button only. - "Remove all my changes" takes back every setting; a question in a script how cannot read gets no guess.
-
astryx experimental theme editor how: "2px rounder" is a change from the corners now, and "all corners like the buttons" copies the buttons' radius. (#11378)- An amount with a comparative ("2px rounder", "2px sharper", "8px larger") is a change from the value now: the theme's corners move from its own current radius (its settings applied, not the base theme's), and a part's corners move from the radius token it reads. Anywhere else ("4px wider") how says set takes the new value instead of setting the amount.
- "All corners like the buttons" sets every other radius token to the one buttons read.
-
astryx experimental theme editor how: a negated dark mode, undo of what is set, typed times and transforms, and the right targets. (#11419)- "Except in dark mode", "but not in dark mode" and "leave dark mode alone" change light mode only; "not pure black" is a near-black and "not pure white" a near-white.
- "Undo the corners" on a theme that sets no corners says there is nothing to undo.
- "animation-duration 0s" is 0ms; "translateY(-2px) on hover" is a transform on hover; "shrink headings by 20%" says set takes the new value; "fade in tooltips" says the tooltip has no motion of its own.
- "Why are my buttons black" is a lookup, never a change; "is my theme valid", "how many dials" and "list every change" get the command that answers them.
- "radius sm/lg", "setRadius(4)" and "½rem" are read as values; "#22c55e in light, #4ade80 in dark" sets the accent for each mode; two-word CSS color names ("midnight blue") are the CSS color.
- "Text on the accent is hard to read" sets the on-accent text color that reads in each mode; "5 lines tall text box" sets the text area's height in lines; "dropdown shadow" is the dropdown's menu; "checkboxes green" is the checked fill.
-
astryx experimental theme editor how: an amount in rem or em with a comparative ("0.5rem rounder") is a change from the value now, counted at a 16px root, and "tighter", "roomier", "looser", "bolder" and "heavier" read as comparatives too. Where how cannot work out the new value, it says to set the value now plus or minus the amount. (#11419) -
astryx experimental theme editor how: a confidence gate, and dislikes, take-backs and dark-mode selectors read. (#11419)- When a question is a question ("is the card too round?"), says "tell me" or "but not too", or asks to "stop" something, how gives the lookup and asks for the change in words instead of guessing a write; "explain X" is the lookup of X.
- "I hate the shadows", "skip …" and "not a fan of …" ask for none of it when that is the whole ask.
- A change on one member of a group ("the text area") carries
--only, so it does not reach the whole group. - "3 pixels sharper", "take 2px off" and "remove 4px from" move the value down from where it is.
- "darkmode",
html.dark .card {…}and@media (prefers-color-scheme: dark) {…}scope the change to dark mode. - "Take back the shadow change" and "shadows like before" undo only what the theme sets, else say there is nothing to take back.
- "Pointer cursor on hover" sets the cursor; "opened accordion title" is the open state; "squre" and "eckiger" are square; "cards look flat" adds depth; "darker while being clicked" is the pressed state.
-
astryx experimental theme editor how: every change by an amount or a direction starts from the theme itself, not the base theme. A darker or lighter color starts from the theme's own color in each mode, and says when it is already as dark or as light as it goes; a bigger text size on a part starts from the size the theme set there; a part's corners moved by an amount start from the radius the theme set on it. Token lookups show the theme's own value. (#11419) -
astryx experimental theme editor how: the confidence gate works per clause, and a one-mode change never removes a mode. (#11419)- A clause that is a question, a "tell me", a "stop …" or a "don't touch …" holds back only itself: "stop making the buttons so round, make them square" makes them square, "don't explain, just set the accent to crimson" sets crimson, "don't touch spacing, just make text larger" changes only the text. A whole question ("can the cards be rounder?", "are buttons too round?!") gets the lookup; "can you make …" is an ask.
- Questions without a question mark ("are my corners too round", "does it use a shadow on cards") are lookups; suggestions ("why not square buttons", "what about a teal accent", "is there a way to …") are asks. Sarcasm ("yeah, because …", "just what I wanted", "…, nice") gets no write.
- "Enough with X", "quit with X", "nobody asked for X", "who needs X", "loathe X", "X 👎" and "❌ X" ask for none of X; "I hate it" after a description leaves the description as the ask.
- "Too airy" is tighter, "headings too thin" bolder, "not bright enough" brighter.
- "Keep the dark mode accent, change only light to violet" sets the light accent; a light-only or dark-only theme only when the ask is about the theme's modes.
- "Links not underlined until hover" removes the underline and adds it on hover.
-
astryx experimental theme editor how: "bolder" or "a bit lighter" headings move one rung from the headings rung the theme sets (and say so when there is no rung further), and "a bit bigger" text moves a numeric text size by the dial's own step.how <theme> <question>takes a first word that names an existing theme as the theme, asset,showandundodo. (#11419) -
astryx experimental theme editor how: a write only for a direct ask. A clause that is a condition ("if the corners are round, …", "unless …"), an indirect question ("I wonder if …", "is 4px a good radius", "would #333 work", "should corners be 6px or 8px"), a double negative ("don't not round …") or a check ("can you check if …", "just checking: …") gets the lookup and a request to say it as an ask, not a guessed change. Politeness ("if you can, …") is not a condition. "Can the buttons be rounder?" and "can I get a serif font?" are asks; a question followed by an ask ("whats the padding on cards make it 12", "do badges have borders? remove them either way") answers the ask, with "it" or "them" read as what the question named; "dark page #0b0b0f" sets the dark page. (#11419) -
astryx experimental theme editor how: "more muted", "pastel", "duller" and "subdued" lower vibrancy and "less muted" raises it (a token name such as--color-background-mutedis never read as the word); "less light" or "less thin" headings are one rung bolder, "less heavy" one rung lighter, "less tight" wider letter spacing; a weight question lists only the weight tokens a part reads; "too dark" asks for lighter and "too light" for darker; "no big gaps" is less spacing; sarcasm anywhere in a question ("great, even more shadows, just what I wanted", "…, nice") holds back every clause. (#11419) -
astryx experimental theme editor how: a write for a clause that reads as an ask: an imperative, a thing with a value, a style word with a part, a wish about a named thing, or a description of the look wanted ("the page is white"). A tag question ("cards have a shadow, right?"), a hypothetical ("imagine …", "consider …"), a condition ("whenever …", "once …", "should the cards …"), sarcasm or a double negative gets the lookup instead. "nuke", "zero out", "sharpen", "flatten",X++/X--andX: offsay which way to go; "dark.page=#…" and "dark mode only: accent #…" set dark mode. (#11419) -
astryx experimental theme editor how: "show me …" and "give me …" are lookups. "decrease", "shrink", "trim", "minimize" and "scale down" mean less. "Only when dark mode is on" and "except in dark mode" keep their mode. Removal words in other languages and 🚫 remove; "X are heavy" lightens; "don't touch the buttons" and "leave the corners" never write the excluded part. Inline list numbers ("1. … 2. …") are breaks, a color asked for a part in a long note stays with that part, and "tooltips darker" stays a color. (#11419) -
astryx experimental theme: the thirteenth pass of fixes. (#11378)undoleaves out what this Core refuses in the step it goes back to. A saved setting that names no design token or CSS property, or a property with no part, is reported.showbuilds an own change to<name>.theme.ts, and names a theme source that no longer builds. Its colors say where the theme source wins over the generated shade.- A setting covered by a later one that spreads over its part is named in
setandshow. corners 2e1pxand+4pxare sizes. A state is refused for padding on a part whose padding Core sets from the plain value only.--state disabledalso matches a wrapper whose input inside is the one disabled.how <part>lists the statessettakes there.newsuggestions keep every option given;--liketwice is refused. More suggestions run as printed in JSON. The merge snippet's paths start from the generated themes module's folder. The help namesexperimental theme compileto build an editor theme again.
-
astryx experimental theme editor: corners set for a state (corners pill --on button --state hover) are accepted, and the result names the part's derived radius variable, which Core sets from the plain value only. Padding that a part expands into container spacing is refused with a state, judged on the part named (--onlykeeps it to one member of a group).focus-withinis taken on a part that holds content. A one-mode value that is not a color is refused for that reason first. (#11378)showleaves every file in place when the theme source does not build, and names a token value that is not text. A theme named by a path or in capitals (use ./themes/t,use T) gets the editor-theme answer. -
astryx experimental theme:showbuilds a change in a module the theme source imports, and an unreadable build with a broken source line says what to put back.compileof an editor theme from a subfolder names the run from the app root.--state disabledreaches the inner control only on form controls styled on a wrapper, never a whole button group. A step back writes the same color files. (#11378) -
astryx experimental theme editor: every suggestion a refusal gives runs and does what it says.undo t Cornersreads the setting name in any case, and a near name (undo t corner) suggestsundo t corners, never a bareundo tthat would step back another change. A hand-edited setting suggests a value to set only for a token whose value has the wrong type. A flag given twice suggests its first value that the flag takes (--like neutral,--corners small,--section actions, and for a color dial the first that is a color:--accent banana --accent redsuggests--accent red), or drops it. A folder of your own files suggests a free, valid theme name (u-2). After damaged or lost settings, the note saysundosteps back to the settings from before the last change, and that the last change itself is not kept. A correctednewkeeps every other option given, with--likein another case read as the built-in theme it names. (#11378) -
astryx experimental theme editor:--state disabledreaches the control inside only on a part that holds one control (a typeahead), never a radio list, input group or field.corners none,sharp,zeroand0%are square;spacing nonenames the tightest rung. Undoing a part's state setting names the group's setting for the same state.focus-withinis taken on a part that holds content in a prop (a chat composer's input) or children (a popover). (#11419) A token in your own theme source that is not text, alone or in a pair, is refused before anything is written, with an example of the token's own type. A helper imported as./x.jscounts when onlyx.tsexists. Asetrefused for your own file suggests reading it. The compile help lists the editor-theme refusals. -
astryx experimental theme editor: an invalid theme name suggests a namenewtakes (my-neutralfor a built-in theme's name, a free numbered name for a taken folder), and says "a theme here already" only for the same name in another case.newon an existing theme suggestsset <theme> base <the --like given>and a free name with the same options. A setting listed twice by hand names both values, and setting it to one value or undoing it fixes the list, without stepping back another change. With the built module missing,setandundosay the token changes are not listed, and never that the change shows nothing. (#11419) -
astryx experimental theme editor showfollows every local file the theme source reads, as the build resolves it (./toktotok/index.tsx,./c.cjstoc.cts,./j.jsxtoj.tsx), including your own files in the theme'stokens/folder; only the editor's generated palette files there are left to their own stamps. A pair of values in quotes such as['600', '700']is no longer called "not text"; a size given as a number without a unit is named, with an example that passes, and a{light, dark}object is named instead of a raw error.experimental theme templatein a folder the theme editor made guards only the editor's own files: an earlier template there is replaced with--overwrite, and for an editor file the skip names a free path instead of--overwrite.undorefuses an--onlythe setting was not made with, matches a value whatever its comma spacing (rgb(255,0,0)), andundo <theme> mode/basesays when the history does not reach back to how the theme was made. A build that fails puts the files back and says nothing was changed, andshowno longer says it built a theme its source cannot carry. (#11419) -
astryx experimental theme editor: a bare number on a length (padding 4) suggests4pxwith every flag kept, never the property's reset value. A part named by its class (.astryx-card) or its component (<Card>) suggests the part. What the buttons and surfaces dials write is read from the build, so an exact property under them is named insetandshow, and undoing it names the dial that applies. An unknown state suggests the one meant (pressedis active), or how to see the part's states. After a change and its undo, the sheet no longer says it is out of date. (#11419) -
astryx experimental theme editor show: a light/dark pair with a missing half is named even when the other half holds commas (rgb(0, 0, 0)). A helper the theme source reaches withrequire()orimport x = require()counts as part of the source. A stylesheet or module that another theme's build wrote (compile other.theme.ts --out themes/g/g.css) is built again from the editor's settings. (#11419) A number given to a part property gets px on each bare number (4 8px,8 / 4,4 px), within the property's range, and never falls back to its reset value.--on checkboxesnames the checks group ashowdoes.corners sharperandspacing roomierstep from the value now. A state in another spelling (focusVisible,focus_visible) is that state.When
themesin the app is a file (or a link to one), every editor command refuses, saying to rename or move it, instead of failing with a raw error. -
astryx experimental theme: template overwrite on any disk, and undo answers that are true. (#11419)experimental theme template … --overwritenever replaces a theme editor file under another spelling of its name (themes/t/T.theme.tson a case-insensitive disk, or through a link).undo <theme> modeorbaseon a theme with no saved change says so, instead of claiming its history does not reach back; after every step is undone it says the value was never changed.undo <theme> headings <word>with only the other half set names the half that is set.- A mistyped
basesuggests only a base this project has installed, and says when the name is a theme made here (which cannot be a base). undo <thing> <value>matches the saved value in either quote style and with any spacing around/.
-
astryx experimental theme editor: a mistyped--likeorbasesuggests only a base the app has installed, and with none near,base noneand the installed bases.undo <theme> baseormodeafter a change and its reverse says it is back at the value the theme was made with.newrefuses an option it does not take with its help, like the other editor commands. A theme folder copied or renamed by hand names the files to rename. A padding (or other) shorthand set after its sides on a part removes them, as its note says, andundobrings them back. A hand-edited part property value its CSS grammar refuses is named, like a dial's.showbuilds again when an output is missing or was edited by hand, ascompile --checkfinds them. (#11419) When your own<theme>.theme.tsdoes not parse,set,undoandshowrefuse before writing or removing anything (the palette files undertokens/stay), withcatof the file; a failed change that removed thetokens/folder puts it back. A build temp file left by a command stopped mid-build is swept after ten minutes. -
astryx experimental theme editor showrenders its preview pages again only when what they show changed (the CLI, Core, the page or the theme's build): a show with nothing new takes about a second. A built output that cannot be read, or a folder in its place, is refused by name with a command to inspect it, inshowandcompilealike. Every file the editor's build writes counts when show checks the build, the generated color references too, and a hand edit inside the generated settings module is built over from the settings (andcompilerefuses it). A check of the outputs that cannot run is no longer read as a match. A theme busy with another command suggests this same command again, once the other ends. (#11419) -
astryx experimental theme editor: a theme file that is a folder or cannot be read (its settings, source, stylesheet, module or undo history) is named with what is wrong andls -la <file>, instead of a crash or "damaged"/"not valid JSON"; no message suggests deleting a file (a damaged history is moved out of the theme folder instead)../tand.\tname the themet. A mode or base written in other letters (Dark-Only,Neutral) is offered back fixed, and a base is suggested only when it is installed. A missing argument names what the command takes and what it was given (set corners smallreadscornersas the theme), with its usage and--help. (#11419) -
astryx experimental theme editor: a settings file whoseliftedfield is not a list of text is named, with the undo that puts it back, instead of a crash. Setting a whole-theme dial notes each token your own<theme>.theme.tssets itself, which wins over the dial, so a change that does not show is explained. (#11419) -
astryx experimental theme editor showrenders its pages again when the Core or base theme package it runs from changes, even at the same version (a linked or patched copy), and when a page was edited by hand: the page records a hash of itself beside its render key. A folder in place of an output the build writes for some themes only (the variants types) is refused by name, like the other outputs. (#11419) -
astryx experimental theme editor: a built type file (<theme>.d.ts,.css.d.ts,.variants.d.ts) replaced by a folder is named withls -la <file>, never with an--outthe editor does not have. A theme name one letter off an existing theme suggests the same command with that theme's name first (set brnad corners small→set brand corners small), andnewwith the typed name only after. An empty theme name ('',-, an unset variable) says the name is empty and names the themes here instead ofnew my-theme. (#11419) -
astryx experimental theme editor: a token your own<theme>.theme.tssets only in a scope (onDark,components) no longer counts as page-wide, so it never masks a dial or closes a token loop; only its top-leveltokensdo. A preview page with text added after its render stamp is rendered again. Theeditor showdocs list ERR_FILE_EXISTS and ERR_WRITE_FAILED, say ERR_UNKNOWN_THEME also covers a base theme package that is not installed, and the exit-code row names every refusal. (#11419) -
astryx experimental theme editor: a render that fails inshow(two copies of React, a component that throws) is refused withdoctorand "Nothing was written" wherever it happens; outputs thatshowmade again are put back first. Two copies of React are now named as the cause (Core's own React is found from its entry). In a workspace whose root does not use@astryxdesign/core(Core hoisted to the root), the root and folders without apackage.jsonof their own are refused, naming the workspace's apps that use Core with thecdto run from, so no theme lands outside an app.undo <theme> radius-elementandundo <theme> paddingsuggest the token (--radius-element) or the property with its--on <part>, never a step back that undoes another change. (#11419) -
astryx experimental theme editor: a word that names a JavaScript object built-in (constructor,__proto__,toStringand the like), given as a value, a scope, a state, a flag or ahowquestion, gets the same refusal as any other unknown word instead of anERR_UNKNOWNcrash. Every word table the editor reads with typed text now answers only for its own entries. (#11419) -
astryx experimental theme editorfinds the app by one rule: the nearest folder at or above the working folder whose package.json lists@astryxdesign/core(in dependencies, devDependencies or peerDependencies). A workspace member that does not use Core, a subfolder of an app that does not list it, a workspace root with deep globs or any pnpm-workspace.yaml form are refused with where Core resolves from and the workspace's apps that list it, each with thecdto run from; nothing is written into the wrong folder. A nested repository inside an app no longer hides the app above it. (#11440) -
astryx experimental theme editor: the home folder is the app when its own package.json lists Core; a folder inside node_modules is never the app; a dependency field that is not an object reads as no Core instead of failing; install suggestions use the app's package manager; a Yarn Plug'n'Play app gets its own refusal from any of its folders; the workspace refusal names apps up to six folders deep and writes a folder starting with-as./-name; a package.json that does not parse is named with the parser's error and its place. (#11440) -
astryx experimental theme editor: a token set on one part (--on) that reads a whole-theme token is checked for a loop only within the scope it is set in. The part reads its own settings first and the whole theme's after, and a whole-theme value never reads a part's, so--color-accent var(--color-text-primary)with--color-text-primary var(--color-accent) --on top-nav-headingis accepted in either order, and the saved settings no longer leaveshowand everysetrefusing; a loop within one part or within the whole theme is still refused. An exact accent (or other fill color) given asvar()of another token, a two-colorlight-dark()or a color function of tokens is read as the color it shows in each mode, so the text on it is picked to read on that color and the notes name it (var(--color-warning) = #ffce2f); a value that still cannot be read as one color is named as unchecked instead of the generated shade. (#11419) -
astryx experimental theme editor: a theme's own<theme>.theme.tsdeleted by hand is written again byshowor the nextset, which say so, andcompileof it suggestseditor show.text-sizeandtypename an exact role size they keep (--text-body-size, heading sizes), and a role or whole-theme font names an exact--font-family-<role>it keeps, with the undo that frees it; undoing a role font names that token as what applies. A value pasted with!importantsays it is not used and suggests the value without it, and the font dial reads a pastedGeorgia, serif;or a comment as the font meant. (#11440) -
astryx experimental theme editorreads the tokens your own<theme>.theme.tssets from what the build made of it, so any way of writing the file counts (a namespace import, a renameddefineTheme, a template, a spread of a shared object); before its first build the file is read as written, and a change the next build shows to make tokens read each other is refused with the files put back. The base theme's own values are never counted as yours, and they close a token loop and make a part read a token as the base theme's rules do. An accent your theme file sets is the color the palette picks text for, and an exact token your theme file also sets says the file's value shows. (#11440) -
astryx experimental theme editor: an exact token hand-edited in the settings file to avar()that names no design token (and has no fallback) is named byshowand every later command, with theundothat removes it, assetrefuses it; it is never built. Thefontdial reads any run of spaces or tabs inside a family name as one space, sofont 'Open Sans'names Open Sans. (#11440) -
astryx experimental theme editor: a Yarn Plug'n'Play workspace (its.pnp.cjsat the workspace root) gets the Plug'n'Play refusal from a member app or its subfolders; a repository inside an app in the home folder is refused naming that app and itscd, never an install into the repository; a suggestednew my-<name>is a free, valid name, and names the user's ownmy-<name>when there is one; a base typed as its package name (@astryxdesign/theme-butter,theme-butter) or in other letters stays that base in the suggestion, after its install line when it is not installed. (#11440) -
astryx experimental theme editor: the font, text-size and type dials no longer say your theme file sets the tokens they write; a palette token your theme file sets gets no shade note, and your theme file comes first in every note (before an exact setting, before a dial) and after an undo. A token loop inside one part is refused when it closes through the base theme's or your theme file's rule for that part, a setting on a part that your theme file also sets on it says the file's value shows, and undo counts only the steps it can still go back to. (#11440) -
astryx experimental theme editor set: a font family list missing a comma ("Open Sans" serif) is refused with the comma put back ("Open Sans", serif), read with css-tree; a suggestion never folds the list into one family holding an escaped quote. A font pasted with its property name (font-family: Georgia, serif;, or afont:shorthand) is read as the family list it names, for thefontdial and exact font tokens. Avar()with a fallback is never refused as reading nothing; when its name is a slip from a design token, a note says the fallback always shows. (#11440) -
astryx experimental theme editor: your theme file comes first in more places. A token loop inside a part's state or variant rule is refused when it closes through the part's plain rule (the base theme's or your file's); a part dial, a group or a variant setting that your file sets on a part says so; undoing a part setting your file also sets names the file's value;shownames every exact setting your file sets itself; and a note that says to take a token out of your file names the exact setting that then shows. Aftercompileof an edited theme file,showreads the build as current whencompile --checkwould, instead of building it again. (#11453) -
astryx experimental theme editor:undo <theme> headings Tracking(orTRACKING,Tight) removes the tracking half, never the weight half; a change removes only the pictures the editor took (and only while they are as it wrote them), never a file of the user's, and marks the section sheetsshow --sectionmade as out of date (insheetStale) instead of deleting them; a link in the theme folder whose target is gone is named with where it points, bysetand byundoalike, instead of a copy step that fails or "Nothing to undo". (#11453) -
astryx experimental theme editor set: a font file or link (./fonts/My.woff2,Inter.woff2, a font service URL,url(…)) and a name holding a colon are refused as font family names, for thefontdial and exact font tokens, with how to load a file (@font-faceor a font package) and never a suggestion that quotes them. A value pasted with its property name (color: #e11d48;,font-weight: 700,font-size: 18px) is offered as the value given, avar()with a fallback as its fallback, andlight-dark()on a color dial as its light color with a note;font-family: ;with no value is refused as no value. A size suggestion is the token's own default instead of6px, and a token typed with its colon (--color-accent:) is offered without it first. (#11453) -
astryx experimental theme editor: its phone rule repeats only your exact font settings, and the notes say what phones show (on top of a base theme, phones show the base theme's type for fonts your file sets as plain tokens; the note says to set them on the theme's typography, or in a rule for the same screens). A[light, dark]pair your theme file gives a token that is not a color (a font, a size, a weight) is refused by name, as--modeis on those tokens, and a font your file sets throughtypographyis seen as the file's. (#11453) -
astryx experimental theme editor:--pngwrites a picture only over one the editor took (unchanged since); a file of the user's by that name is named and left as it is, and no picture is taken. The record of the editor's pictures is a file of the theme (<theme>.pictures.json), so it moves and is copied with the theme. Anewrefused for its name never suggests a dial value the dial refuses: the value is left out and the refusal says so. A section sheet's out-of-date notice namesshow <theme> --section <section>, the command that makes it again. A theme folder renamed by hand is refused with every step it takes to edit it under the new name: the file renames and the names inside<theme>.theme.ts. (#11453) -
astryx experimental theme editor set: in a font family name, every Unicode space (a no-break space, a thin space) is one space and zero-width characters are dropped, soOpen<no-break space>Sansnames Open Sans. A dial's value pasted with its property name (border-radius: pill,font-size: 18px;for text-size,color: #e11d48for accent) is read as the value, one path for every dial. A declaration pasted as one argument (set b '--color-accent: #e11d48'or--color-accent:#e11d48) sets that token to that value;set's usage now shows the value as[value...], and a set with no value gives the same missing-value error as before. (#11453) -
astryx experimental theme editor: a[light, dark]pair on a token that is not a color (a shadow too) is refused however your theme file writes it (a constant,as const,satisfies, a spread from an imported module), byset,showandundoand byexperimental theme compileand--check. A state rule your theme file sets on a part (:hover) is named like a variant: inset,show(with no contrast caveat for a setting that does not show) andundo.compileof a theme whose saved settings hold a value the editor refuses names theundothat removes it, and the phone note says to set fonts on the theme's typography, or in a rule for the same screens, to keep them on phones. (#11468) -
astryx experimental theme editor: one entry normalizer reads every setting before any check, typed or saved. Every Unicode space (no-break, thin) is a plain space and zero-width characters go, for every value type; a saved value holding one is named with the clean value to set. A declaration typed whole or split (accent: #e11d48,--color-accent=#e11d48,font:inter,accent:then the value) is the setting and its value, for dials and tokens; a token typed with an em or en dash or asvar(--x)is that token, and one typed without its dashes is offered with them. A refused value's suggestion comes from that setting's own check:text-size 14ptsuggests the size in pixels,type largeortype 18pxsuggests text-size (never corners),modelists its modes, and a saved size token suggests its own value with a unit. (#11468) -
astryx experimental theme editor: an empty theme folder (or one holding only system files such as .DS_Store) is no theme yet:set,showandundosay so and suggestnew <theme>, which makes it there, instead of calling it a theme the editor did not make. (#11468) -
astryx experimental theme editor:newandshowend withwiring, the steps that put the theme into this app:astryx theme add <theme>for its app copy (a one-mode theme'smodefor the<Theme>too), and what builds it; only when a folder of yours holds the copy's place does it give the root file's imports and the<Theme>by hand. The editor's help says the same. A token set on a group names the members that read it and take the change, and what the others read instead; a part that never reads it is still refused. (#11468) -
astryx experimental theme editor: every build of a theme (new, set, undo, show, andexperimental theme compileof its source) also writes its app copy,src/themes/<theme>/: a standard local theme (descriptor, a source that re-exports the built module, the built module, its stylesheet and font stylesheet), marked as written by the editor and never edited by hand.astryx theme add <theme>then puts the theme into the app, andtheme use,removeandlisttake it as any local theme;newandshowsay so inwiring. The first time the copy is written (bynew, or by the first build of a theme made before), the result names its files (appCopyin JSON); later builds write it quietly. A folder there that is not the editor's own copy is never written, and the wiring gives the imports by hand instead. (#11468) -
astryx experimental theme editor: a part setting saved for one mode no longer locks a theme switched to one mode (it stays saved, is named as not applying, and applies again with both modes); a part's length (padding, a corner radius, a gap) that reads a design token of another kind (a color, a font, a duration) is refused like the token form, naming a length token that works; and avar()whose name is not a CSS variable (var(color-x),var(-x),var()) is refused for every value, with the repaired form. (#11468) -
astryx experimental theme editor: a saved setting written in a form the editor cleans up when typed (Corners,var(--radius-element), an em dash,backgroundColor, stateHover) is removed by the undo its refusal suggests, and only that setting: a valid setting the cleaned name also matches (corners = pill, the real hover rule) stays. A saved value's cleaned form is offered as a set line only when set takes it. Curly quotes in any value are the straight ones CSS reads (a font family in curly quotes is no longer saved with the marks in its name), a quoted CSS string keeps its no-break spaces, and any run of dash-like characters at the start of a token name (em or en dash, non-breaking hyphen, minus sign, full-width hyphen) is its two dashes. (#11468) -
astryx experimental theme:list,add,use,removeandejectgiven an editor theme with no app copy yet name the same stepseditor newandshowgive inwiring(build it once, thentheme add <theme>, and a one-mode theme'smodefor the<Theme>). A color change stopped before its settings were saved no longer leaves its color config andtokens/behind: the editor records the config before it writes it, and the next build removes it when the saved settings set no color; a config of your own is never removed. (#11468) -
astryx experimental theme editor how: a focus ring request keeps its scope ("focus ring on inputs only" sets the ring's tokens--on inputs, the other parts keep theirs), and an exact amount ("half", "double", "twice", "50% strength", "x0.5") is worked out from the theme's own value: the ring's width, a part's corner radius or its padding when the theme sets one. An amount alone after a comma ("…, at half strength") belongs to the ask before it. A comparison ("cards with twice the padding of buttons") is of the other part's value, when the theme sets one; otherwise the answer is a step and says so. The answer names the value it starts from and, for "strength", that it reads it as the ring's width. (#11490) -
astryx experimental theme editor how: "header(s)" or "title(s)" with a text word (bolder, bigger, font, weight, size, serif) means the headings' type, and with a surface word (background, bar, border, sticky, height) the app header part; a part that owns its header ("table header") keeps it. "just" and "only" keep the scope they name ("just the headers bolder" changes the headings, never the body text). (#11490) -
astryx experimental theme editor: adark-onlyorlight-onlytheme keeps both halves of its colors, and its mode is the one the app's<Theme>is given. (#11468)- The theme's colors keep their light and dark values, so a toast, a lightbox or an overlay Core draws in the other mode stays readable; the generated settings module carries only names Core's types take, so the app type-checks.
set <theme> mode dark-only(orlight-only) says to give the app's<Theme>mode="dark"(or"light"), and the wiring aftertheme addsays where it goes; the preview passes it already.- Settings for the other mode stay out of a one-mode theme and are named, as before.
-
astryx experimental theme editor newends with how to look at the theme after each change:editor show <name> --pngwritesthemes/<name>/preview.pngandsheet.pngfrom real components and changes nothing in the app; open the pictures and check them against what was asked. (#11500) -
astryx experimental theme editorreads the page-wide tokens of your own<theme>.theme.tshowever they are written (inline, a const, a spread,as constorsatisfies), from thedefineThemethe build loads, never a sibling theme in the same file; a value it cannot read in the file comes from the build. Theexperimental theme template --overwriteandcompile --outhelp match what they do. (#11419) -
astryx experimental theme editor: shorthands by what they set, and part values Core can carry. (#11419)- A shorthand set after its longhands replaces only the longhands it really sets, read from MDN's data (
overflowkeepsoverflow-wrap,transformkeepstransform-origin,flexkeepsflex-direction), and a part'sbackgroundkeeps reaching its variants whenbackground-blend-modecomes later. - A group's shorthand replaces its members' longhands as a part's does, so the later setting wins either way.
- On a part whose padding Core writes one variable per side (card), a variant's padding after a side set for every variant is refused, with the commands that work: it would not show.
--on cards,dialogs,tabsand other plurals name the part, with the set command.- Word hints keep the value given:
shadow noneisbox-shadow none,rounded 8pxiscorners 8px,bold falseisfont-weight normal.
- A shorthand set after its longhands replaces only the longhands it really sets, read from MDN's data (
-
astryx experimental theme editor: card padding and radius written exactly. (#11419)- On a part whose padding Core writes one variable per side (card and the other containers), the editor writes each side itself, split as CSS splits a shorthand:
calc(4px + 2px) 8px,clamp(12px, 2vw, 24px)and four different sides reach the part as typed. - A variant's padding after a side set for every variant now shows: the editor writes the variant's side variables too, instead of refusing it.
- A card radius of more than one value (
12px 12px 0 0,10px / 20px) gives each corner its own radius; the content that reaches the card's edges takes one radius, the first corner's, and the result says so.
- On a part whose padding Core writes one variable per side (card and the other containers), the editor writes each side itself, split as CSS splits a shorthand:
-
astryx experimental theme editor: variant values win over lifted base values, and card padding keywords written exactly. (#11419)- A part's base value lifted onto a variant (so Core's own variant rule does not hide it) now goes before the variant's own declarations, so a longhand or shorthand set for the variant wins (
border-colorfor the destructive button after a baseborder).
- A part's base value lifted onto a variant (so Core's own variant rule does not hide it) now goes before the variant's own declarations, so a longhand or shorthand set for the variant wins (
-
astryx experimental theme editor: padding sides and inner radii that win as written. (#11419)- A later part padding replaces a side its group set.
- A part's own multi-value radius keeps the content's radius it gives over a single radius from a group, a dial or the base theme's lifted onto a variant.
-
astryx experimental theme editor: the chat composer's box is reached as it is drawn. (#11419)paddingon chat-composer goes to the padding of the visible composer box, with no gap outside it. Background, border, shadow, a side padding or a padding for one density, which would land on the composer's transparent wrapper, are refused with the reason.
-
astryx experimental theme editor: one padding model for parts whose box reads Core's padding variables. (#11440)- On card, clickable-card, selectable-card, dialog, drawer, bottom-sheet, section and number-input, each part's padding is worked out per variant and per state from every padding setting in the order made, side by side for each text direction (a physical left is the start in a left-to-right box and the end in a right-to-left one; so is the
paddingshorthand's left), and written to the variables the box reads. The later setting wins in both directions, a variant or a state out-ranks the base, and the content that reaches the box's edges stays in line. - A clickable or selectable card is padded as a card.
- A part's base rules come before its variants', and its rules for a direction before its states', whatever order the settings were made in.
paddingon chat-composer takes one length, as Core reads it inside calc(): a length, a variable such asvar(--spacing-3)(Core's own default), orcalc(),min(),max()orclamp()giving one. Several values, a bare number or a percentage is refused with one that works.
- On card, clickable-card, selectable-card, dialog, drawer, bottom-sheet, section and number-input, each part's padding is worked out per variant and per state from every padding setting in the order made, side by side for each text direction (a physical left is the start in a left-to-right box and the end in a right-to-left one; so is the
-
astryx experimental theme editor: padding that stays where it is set, and one length wherever Core reads it inside calc(). (#11453)- Padding set on a clickable or selectable card, or on a card's variant or state, no longer reaches plain cards nested inside it: each side the narrower rule writes is reset on a plain card inside it, so Core's own fallback holds, and the narrower rule writes each side rather than the whole padding.
- Every part whose padding Core reads inside calc() (found from Core's own stylesheet: chat-composer, dropdown-menu, context-menu, segmented-control, and an item's inline padding) takes one length there, as chat-composer does, also through a group (
--on menus). - A padding with
--stateon a card, dialog or a group of containers is now taken: the padding model writes the state's own sides.
-
astryx experimental theme editor: nested sections that follow their parent, and lengths Core can calculate with. (#11453)- A section padding the same on every side is written as the section's whole padding, which Core reads after the padding a parent section passes down, so nested sections keep following their parent.
- A padding of
0is written as0pxon parts where Core calculates with it (card, section, dialog, drawer, bottom-sheet);initialandunsetleave the padding to Core's own default. - A hand edit to the settings file that
setwould refuse is reported by the nextsetwith the command that removes it, ascompiledoes, instead of being built.
-
astryx experimental theme editor: a part's padding replaces the base theme's, and every padding writes a length Core can calculate with. (#11453)- A padding on a card, section, dialog, drawer, bottom-sheet or number-input replaces the base theme's padding there, whichever sides the base theme set: the editor writes it as padding properties Core works out together with the base theme's, where the later one wins.
- A clickable or selectable card's padding wins over a card's left or right padding in each text direction.
- A plain part nested in a narrower one is reset only on the sides its own rule leaves unset, so a padding in your own theme source on that part still applies.
- A zero written any way (
0e0,0.0) is written as0px;initialandunsetname the part's own default padding from Core. - A hand-edited padding on one part is reported when a
setchanges padding on another part too.
-
astryx experimental theme editor: what the editor builds,compile --checktakes. (#11468)- Two to four corner radii on card, button, dialog, avatar, banner, popover and the other parts with an inner-corner radius are written as CSS properties Core reads (the whole radius, which Core turns into the content's radius, then each corner), never as a private variable, so
compileandcompile --checkpass. - A padding on chat-composer is refused with the reason: the box inside its transparent wrapper reads its padding only from a variable of Core's own, which a theme cannot set, and a padding on the wrapper would add a gap outside the box.
- Two to four corner radii on card, button, dialog, avatar, banner, popover and the other parts with an inner-corner radius are written as CSS properties Core reads (the whole radius, which Core turns into the content's radius, then each corner), never as a private variable, so
-
astryx experimental theme editor: a padding in your own theme source wins over the editor's on the same part, whatever sides each names. (#11490)- A padding your
<theme>.theme.tssets on a part's plain rule, a variant or a state wins over an editor padding there (padding 20px --on cardunder your own card padding of 6px shows 6px), and the result says so, also right after an edit to that file, before any build. - An editor padding on a part's plain rule that differs by text direction keeps the plain rule's weight, so any variant, your own included, out-ranks it.
padding inherit(andrevert) on parts whose padding Core keeps in its own variables is taken likeinitialandunset, and the result names the default it means.
- A padding your
-
astryx experimental theme editor: the spacing dial keeps the small, medium and large control sizes apart and in order at every step. (#11490)- A denser spacing still makes controls shorter by the plain scale, but no size meets the one below it: one that would keeps its own step, scaled, above it, and none goes under 24px (
spacing tighton Neutral gives 24px, 27px and 30px, where small and medium both ended at 24px). The dial's help says control heights follow it.
- A denser spacing still makes controls shorter by the plain scale, but no size meets the one below it: one that would keeps its own step, scaled, above it, and none goes under 24px (
-
astryx experimental theme editor: every picture--pngtakes carries the editor's stamp (a PNG text chunk naming the theme), so it is known as the editor's even without its record; a picture an earlier version took, with no record yet, is taken over when it is the editor's 1280-pixel window, and the result says so once. Only links among the files the editor reads or writes are refused, each named with where it points; a link to a file of yours (notes, a mockup) is left alone. Anewrefused for its name leaves out of its suggestion a vibrancy that would change nothing (no color given), and says so. The--pnghelp of new, set, show and undo names the picture record and when no picture is taken. (#11453) -
astryx experimental theme preview: the route and pages it writes type-check withnoUncheckedIndexedAccess,noImplicitOverrideandnoUnusedLocals.add --pathrefuses a folder name that is no plain URL segment (a space, an accent,#,%), suggesting a slugged one. Folder names Windows does not allow are refused in full: reserved characters, a trailing dot or space, andCOM¹-style device names. The free folder a URL conflict suggests is one whose URL no other page serves.preview appleaves out a temp file a stopped command left in the theme folder. (#11419) -
astryx experimental theme preview: in the preview's nav, only a plain left click switches the page in place; a Ctrl/Cmd, Shift, Alt or middle click opens the page's URL as a link does. Theseeline after an editor change now leads with a look that changes nothing in the app (the editor's ownpreview.html, current after every change it renders, and--png), then the in-app preview page when there is one; adding the preview to the app comes last, as an option. (#11490) -
astryx experimental theme preview add: a folder name that Next serves at a plain URL (letters, digits and. _ ~ ! $ & ' ( ) + , ; = @ -) is accepted. For any other name, every odd segment is slugged and the suggested folder is a free one. A folder that differs from another only in case is refused, since macOS and Windows treat them as one. In an app with no TypeScript, the result names the install line. When the app's tsconfig turns onnoUncheckedIndexedAccess, the result names the template pages written as their template ships. The Colors page shows a seed color as it is stored. (#11419) -
astryx experimental theme: going back to the preview's bare URL shows its first page, as a reload does.editor undopoints itsseeline at the page about what it reverted. A preview whose URL depends on the app's routing, or whose folder was renamed by hand, is named where it is, byseeand bypreview list, instead of suggesting a new one.preview add --themetakes a pasted label (theme: t,name: t) as the theme t; an editor command given one refuses it and suggestsshow t. A change the editor could not render says why in itsseeline instead of pointing at apreview.htmlit did not write. (#11490) -
astryx experimental theme preview: a default page's id beside another page asked for is refused ("drop one of them") instead of dropping the other.preview add colorson a theme with no generated colors says how to get them.preview listmarks a page whose file is gone and notes a change that was stopped part way, andaddwrites a missing page back as added. Running a stoppedpreview removeagain finishes it and exits 0.basePathis certain only when set as a literal on the exported config at the top of next.config; one set in anifor a function, deleted, or added by a wrapper is named as set from code. (#11378) -
astryx experimental theme preview: the preview route renders its pages only in the browser, so a component that crashes a server render no longer stopsnext buildwhen Components is the first page. next.config is read the way Next loads it:.jsbefore.mjs,.mts,export {config as default}, a key set after the object, and the last of a repeated key; a config changed in other ways gets a note instead of a guess. Table pieces (TableHeader, TableBody, TableFooter) are no longer shown alone on the Components page.preview add overview(or another default page's id) brings back the default pages that are missing. (#11378) -
astryx experimental theme preview app --theme <t>: the new app installs the Core and base theme versions this project has, the ones the copied build was made on, so the theme is current after install; a note names them and how to move to this CLI's release. (#11468) -
astryx experimental theme preview:addrebuilds the theme whenever its build is not current (an output missing, or a build that does not match the settings), the same rulepreview appuses, so the route never imports a missing file. A pasted--theme 'theme: t'names the theme t. AdistDirwith a subfolder blocks only that folder.remove --pathon a folder with no preview names the preview there is, with its remove. Thepreview apphelp says that with--themeCore and the base theme are pinned to the project's versions. (#11468) -
astryx experimental theme: every in-app preview page has its own URL (/theme-preview?page=components), which the nav links to, so a link, a reload, the back button or a screenshot reaches any page;preview add,listandappgive each page's URL. Every editor change carries aseeline: first a look that changes nothing in the app (the editor'spreview.html, current after the change, and--png, which takes pictures with no dev server), then the in-app preview page most about it (Colors after a color, Components after a part, Overview otherwise) at its URL when there is a preview, and adding one last, as an option. The--pnghelp says it needs a Playwright or a Chrome and adds a few seconds. (#11490) -
astryx experimental theme preview: a--paththat goes through a file, has a folder name longer than 255 bytes, or is longer than 3,500 bytes, is refused with a reason. A folder that differs from another only in case is refused forpreview appand for a--pathoutside the routes folder too.preview removeleaves a page file it cannot read in place, says so and keeps it recorded. A preview flag given twice with different values is refused. (#11419) -
astryx experimental theme preview remove: a page the app's own code imports is kept, and the importing file is named, for one page and for the whole preview. The check reads the whole project, following relative imports,@/and tsconfig path aliases. (#11453) -
astryx experimental theme preview: popovers shown open on the Overview and Components pages no longer take focus, so the page stays where it opened. The Overview points to the Colors page only when the preview has one, and a colorseton a theme whose preview has no Colors page says whichpreview addadds it.preview removetakes away the empty folders the preview's firstaddmade, never one that was there before. The Overview reads its font line again when the theme changes while the page is open. Thepreview appstarter lists@types/node, so its firstnpm run devinstalls nothing. (#11440) -
astryx experimental theme preview add: an app frame's exact name as the description (blank,shell-top-nav) is refused with a clear reason and the--templatecommand. An exact template name is called the page named, not the closest page. With no routes folder, the refusal names the Next apps below with a--pathinto each, and a--paththat would make a routes folder with no root layout is refused before writing. Page packages are read from the app the preview is in. The Core stylesheet check starts from the root layout over the preview, route groups included, and follows tsconfig path aliases. (#11440) -
astryx experimental theme preview add: a short description that names a page template (checkout,hero,a landing page) takes the pagebuildranks first, instead of being refused. A description that is exactly a template's id or display name adds that page, or says why it was skipped. The Core stylesheet note follows the root layout's imports, so a stylesheet imported from a rootstyles/file counts. A theme font whose package the app lacks gets a note with the install line, and the Overview marks a font that is not installed. (#11440) -
astryx experimental theme preview remove: the check that keeps a page your code imports now reads the whole project (every source file outside installs, build output and dot folders), parses each file's imports, exports,import()andrequire()calls, template-string ones included, and also guards the route a file re-exports. A project too big to check is refused rather than half-checked. A route changed by hand is told to move out of the preview folder.preview add --template overview|components|colorsadds just that page when it is missing, or says why not. Temp files a stopped preview command left are cleaned by the next one and by a full remove. (#11453) -
astryx experimental theme preview: when both spellings of a folder are already there, the case-clash refusal suggests a new folder beside them, and namespreview removefor a preview already inside. Atheme-preview.jsonentry that leads outside the folder (../) is reported as damaged byaddandlist.removedrops such an entry and deletes nothing outside, and its messages show paths from the project. (#11419) -
astryx experimental theme preview: the route of a one-mode theme no longer imports the mode switch it does not draw, so apps withnoUnusedLocalsbuild. A refused--themesays exactly what leaving it out does in this app: the theme the preview keeps wearing, or the one theme underthemes/it picks. (#11453) -
astryx experimental theme preview: no demo on the Components page takes focus as it mounts. A dialog part such as DialogHeader shows inside an open inline Dialog, and an open Popover is named. When the preview's theme is gone, its Colors page goes with it.preview removerefuses while a file of yours in the folder imports the preview pages, and its advice for a route changed by hand is to move it out of the folder.preview listwith no preview says whyaddwould refuse the folder instead of suggesting it.removetakes away the empty foldersaddmade outside the routes folder too. Every page-template list suggestion names the command the way the app runs the CLI, in--jsonas in text. (#11453) -
astryx experimental theme preview: the base theme's fonts stylesheet is imported only while the theme's build still names a family it loads, so a theme onfont systemor its own fonts fetches nothing it does not use.preview addnames every page it writes again, the Colors page included, when the preview switches theme. (#11419) -
astryx experimental theme preview:add --pathrefuses an intercepting route folder ((.)x,(..)x,(..)(..)x,(...)x), where a page breaks the whole app. The preview loads the fonts stylesheet of the theme it is built on (Figtree for neutral), and so does thepreview appstarter, so the Overview shows the family it names.preview listtext marks a page whose file is gone as missing, matching--json. (#11419) -
astryx experimental theme: padding sides by direction, a failed show leaves the folder as it was, andhowreads "not dark enough". (#11419)- On dropdown-menu, context-menu and segmented-control, one logical padding side is written for each direction (the left in a left-to-right box, the right in a right-to-left one), so it changes that side only; under a state it is one rule per direction (
:hover:dir(ltr)), and a later padding or physical side replaces it. showwhose render fails puts back every output it touched, removing one it made new and restoring the palette files intokens/.how "not dark enough"/"not light enough"asks for darker or lighter, not for one mode.
- On dropdown-menu, context-menu and segmented-control, one logical padding side is written for each direction (the left in a left-to-right box, the right in a right-to-left one), so it changes that side only; under a state it is one rule per direction (
-
astryx experimental theme editor: a card's physical padding side beside others, a failed show beside your own folders, and the busy-lock suggestion from the API. (#11419)- A card
padding-leftorpadding-rightset beside another side, as a keyword (initial) or as math (calc()), reaches that side. showwhose render fails leaves a folder you put intokens/alone.- When another command holds the theme, the suggestion to run again names the call's own command with every option it got (
--only,--likeand each dial ofnew,--png), never the arguments of the process the API runs in; a preview command waiting on another namespreview list.
- A card
-
astryx experimental theme editor: everyseta refusal suggests is now checked the waysetchecks it, without writing anything, and a suggestionsetwould refuse is left out. Suggestions carry what was asked instead of a fixed example.headings light --on headingoffersheadings lightand weight 300 on one level.text-size large --on cardoffers that size on the card. A number token reads the number meant (700pxis 700,1,5is 1.5,calc(1rem+2px)gets its spaces). A word dial given a number offers its own words, or the nearesttypepreset for a scale ratio. An invalid color is never copied into the text color token. A color property refuses avar()fallback insidecolor-mix()that is not a color.how "more washed out colors"lowers vibrancy. (#11419) -
Icon sets: a project picks one look for every icon.
astryx experimental icon use <main> --variant <variant>writesexperimental.iconVariantbesideexperimental.iconSet, in one write, and refuses a variant the main set does not declare; without--variantit removes the key. Each set in the list draws its variant of that name, or its default look when it declares none, and the receipt (icon.use) addsvariant,previousVariant,looks, andthemeMap. A copied template imports each icon in that look where its set has it, reports the look asicons.variant, and moves an icon a template imports from the main set's own library, or from a listed set in another look (by: 'variant'), to that look. A set's generated module also writes a theme map for each other look an icon draws (themeIconsFilled), andintegration checkholds it tomap.astryx doctorfails when the main set does not declare the variant, andexperimental icon --listshows the variant and each set's look. A CLI before 0.7.16 refuses an astryx.config that setsexperimental.iconVariant, sousewarns when the project's CLI range admits one. An icon-set package whose generated module an earlier CLI wrote, and whose icons draw a look other than the default, failsintegration checkuntil it runsexperimental icon add --variant <variant> --from <module> --allagain; the finding names that run. Projects that do not setexperimental.iconSetsee no change. (#11499) -
astryx experimental theme editorcounts a base theme as installed only when the project installs it, in itsnode_modulesfolders or through Yarn Plug'n'Play, as the app's bundler sees it. A theme found only throughNODE_PATHor Node's global folders is no longer taken as installed:newandset baseoffer to install it instead of writing a theme the app could not build. (#11444)
-
astryx doctorwarns when the@astryxdesign/corepeer range of a loaded integration, other than the packages of added themes, whichtheme-core-peersalready checks, excludes the installed Core (integration-core-range). A package made for another Core installs with only a package manager warning, and its components, themes and docs may not work; the warning names the package, its version and range, and the installed Core, and the fix names the release to look for. A project whose other integrations all declare a range that includes its Core gets a passing row naming them; a project where none of them declares one sees no new row. It is a warning, so no project that passed before fails. (#10350) -
Doc examples take an optional
kind: 'demo' | 'setup'(default'demo'), on component, sub-component and function examples. Asetupexample is code that cannot run on its own, such as an app setup file, a server route, or a snippet that uses variables defined elsewhere:astryx component <Name>labels it "(setup, code only)", and a docs site shows it as code with no live preview. Inastryx component <Name> --json, every example carries itskind. Any other value fails to load with a message that names both kinds.astryx docs authoringexplains when to usesetup. (#11434)
-
In the AI Chat page template, the chevron on the artifact card now points toward the end of the line in right-to-left layouts, as it does in left-to-right. (#11477)
-
In the AI Chat page template, the message list's scrollbar no longer sits under the artifact panel's resize handle. On desktop the chat column keeps a small gap before the handle, so the whole scrollbar scrolls the messages; before, a press on the half of the scrollbar nearest the handle resized the panel. Mobile, where the handle is hidden, is unchanged. (#11473)
-
astryx buildstarts more whole-page ideas from a page template instead of the empty app shell. When build would start an idea on an app shell and search matched no template directly, a fixed decision over the scores build already computes (plus a fixed word table) gives a whole-page probability; at 0.30 or more, the start is build's best-ranked page template. Ideas with an edit phrase keep the shell, and block suggestions do not change. The decision picks only templates build's word tables list, so an integration's own template is never the lifted start; its other results are unchanged. (#11519) -
Running any command from a folder that no longer exists now gives a plain error with a
cdto the nearest existing folder (text and--json, codeERR_PROJECT_REQUIRED) instead of a stack trace;--help,--versionanddocsstill answer. (#11440) -
astryx doctor's theme stylesheet check no longer fails on a theme's own files when the theme it extends is added too (theme add dandtheme add neutral): a theme source, its build and the editor's generated files only extend the other theme, so they are not asked to import its stylesheet. An app file that imports an added theme's module without its stylesheet still fails the check. (#11506) -
A refusal longer than a pipe holds (64 KiB) reaches a slow reader whole, such as bash
$(…)or a reader that takes its time: the--jsonenvelope stays valid JSON with its code, and the text refusal keeps its last line. The CLI writes its final error output out before it exits. This is a small change to the shared error output, made for the theme editor's long refusals. (#11419) -
No public API function takes an undocumented
__-prefixed option.themeBuild()reads only its documentedout,check, andiconsSpecifieroptions; whattheme buildhands a batch, family, or package-check build now travels through the CLI's own internal path, sotheme buildandintegration pack-checkbehave and print exactly as before. A test fails if a hidden option comes back on any exported function. (#11446) -
Kept catalogs and check results no longer depend on the value of every environment variable when code only lists the variables' names (as a TypeScript transform does). Tools that set a new value per call, such as AI agent harnesses, missed every kept answer on every call; they now hit like any other run. A variable whose value is read still decides the kept answer, including one read inside a kept gather that another one wraps. (#11427)
-
astryx doctor integration validateandastryx integration checkname unreachable contribution metadata with forward slashes on every platform. On Windows the path in "Found contribution metadata ... outside every declared integration root" used backslashes, while the fix in the same message used forward slashes. (#11084) -
A kept entry in the per-user cache whose value is missing or has the wrong shape for what it holds is now worked out again and stored over, instead of being used: a damaged entry could make
search,doctorortemplate --listfail until the folder was cleared. (#11474) -
astryx theme palette generateandgenerateTonalPalette()honordarkChromaTaper, so every official theme palette regenerates from its saved config exactly as committed. Neutral's config asks for a muted dark edge on its chromatic families, but the generator dropped the field: 99 of Neutral's 420 colors came out more saturated than the committed ones (blue.dark[25]was#003978, not#253c5a). A dark stop now keepsedgeMultiplierof its in-gamut chroma throughthroughStop, then recovers along a smoothstep to the standard recipe atrecoverAtStop;familyMultiplierssets the edge share for one family. Light ramps, neutral families, the black and white endpoints, and configs without the field generate the same colors as before. A taper with a field it does not read, a stop outside the layout, a family the request does not have, a neutral family, or a multiplier outside 0 to 1 is refused. (#11491) -
astryx experimental rendersays why a page ended without an answer: the stage it reached (such as importing the page or rendering on the server), how long it ran, the memory left, and the page's last error output. A page process that loses its channel or reaches its own time limit is reported as that, never as a clean exit. (#11398) -
theme build: the refusal for a quoted glob keeps--familyand--family-keyin a family run, and builds its suggestion with the same builder as the build's other refusals of a source; the experimental compile's refusals for the editor's settings file and for a subfolder keep--out(rebased onto the app root for thecdone), so the suggested check reads the output you asked about. (Minimal change to shared code:buildSuggestiongains an optional shape for a glob or a family run, and the build command passes--outto a group's preflight.) (#11461) -
On Windows,
astryx theme buildprints install snippets that import the built theme with a working path. The import path joined the output folder with backslashes and kept a stray one after the droppedsrc/, so the snippet readimport { oceanTheme } from './\themes\ocean/ocean';, which is not a valid specifier (and\tis a tab in a JS string). It now reads./themes/ocean/oceanon every platform. (#11288) -
From a project subfolder,
theme templateandtheme ejectprint a build step that works from that folder (cd ../.. && … theme build theme.template.tswhen the file is above it), and a blank template path is refused withtheme template(no path) suggested, which writes at the project root; an absolute template path is told that paths are read from the current folder.theme build --outwarns that it replaces another source's output only once every output may be written, reads a backslash in--outas a folder separator, and its--check"Rebuild with" line uses the project's invocation and quotes a path with a space. Building a theme the theme editor made withtheme buildstill works, as released, and now warns (once per--watchsession), namingexperimental theme editor show <theme>. A theme file that is a link and fails on a relative import is named with the file it points to, with a build of that file that keeps its outputs in the working folder; no load error shows Node's require stack. (#11422) -
A command
theme build(orexperimental theme compile) suggests after refusing a source (a Windows-style path, a folder, a file that is not a theme module, or a build output) keeps the--check,--outand--icons-specifierit was given, so following it still checks instead of writing outputs. This holds for a family check, a theme file that is a link, a plain-object family member and a file that changed while loading, and the suggested command is quoted for the shell it runs in (PowerShell too). (#11461) -
The install example
theme build --detail full(andexperimental theme compile --detail full) prints says its paths are relative to a file in src/, and now they are, from whichever folder you run it: an output beside src/, such asthemes/ocean/ocean, is imported as../themes/ocean/ocean, not./themes/ocean/ocean, which does not resolve from src/. Thetheme build --familysnippet uses the same paths and says the same thing in its header. (#11471) -
theme buildandexperimental theme compilerefuse a theme that sets a private--_*variable: the build fails withERR_THEME_INVALID(exit 1, a JSON error envelope) and writes nothing, a--checkincluded. Before, it printed the errors and exited 1 but still wrote the outputs and reported[ok]and a success receipt, so a reader of the JSON saw a pass. (#11475) -
theme templaterun from a folder inside a project reads its path from that folder within the project root, and with no path writestheme.template.tsat the project root, as its help says; a backslash in the path separates folders, as fortheme eject;astryx init --features theme, run below the project root, writestheme.template.tsat that root too, because it uses the same template step. Outside any project (nopackage.jsonin the folder or above it) it writes in the current folder, as released CLIs did, and when it writes the file it warns once on stderr in text mode, naming how to write it at a project root (run it inside a project, ornpm init -yfirst);--jsonstays silent. A staletheme build --check(andexperimental theme compile --check) result carriescode: "ERR_THEME_STALE"besideupToDate: false, the code it exits 1 with. A file at an--outpath that the build did not write is left alone with its real reason and, when one exists, an--outpath where no output of this build exists yet (a new folder when the theme's module beside it is taken); the build never suggests deleting it. The build-beside-the-source suggestion keeps--icons-specifier.--outinto a folder the theme editor made, for a theme source outside that folder, writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (build beside the source, or pick another--out);--jsonstays silent, and--watchprints it once per session, not on every rebuild. (#11389) -
theme build --check(andexperimental theme compile --check) names every output the build writes as checked, the.css.d.tsstylesheet types too. When the only missing output is a.css.d.tsstub, as in projects that keep it out of version control, the check prints one warning line in text mode naming it, and the stub alone does not fail it;--jsonstays silent and the result is unchanged. Every output the check failed on before still fails it, a missing.d.tsor.variants.d.tsincluded.theme ejectinto a subfolder of a folder the theme editor made (themes/g/sub, wherethemes/g/g.settings.jsonexists) writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (fork into the project's local themes folder, or pick a path outside the editor's folder);--jsonstays silent and the receipt is unchanged. (#11410) -
The dashboard page template typechecks in an app with
noUncheckedIndexedAccess(it renders the same), soexperimental theme preview add --template dashboardno longer adds a type error to a strict app.themeBuild()no longer takes internal hand-off options fortheme build --watchor the private-var exit code;--watchstill warns once per session about a theme editor folder. (#11420) -
astryx theme template --overwriteno longer replaces a theme editor file reached through a link to its folder. (#11419) -
An installed dependency that ships an Astryx integration manifest which fails to load because a package it requires (a
dependenciesentry or a peer not marked optional) is missing (a broken install) is now reported as that package's integration issue:component,template,theme,discoverandsearchprint the usual one-line warning, anddoctor's integration contributions check names it with the load error. Exit codes are unchanged. A command that cannot load also reports why whatever options it was given (component --listused to answer "unknown option"). (#11486) -
A dry run of
astryx upgradeno longer tells you to review a.astryx-conflictfile it has not written. When a copied ShadCN composition conflicts with a newer release, the dry run now says that--applywrites the file for review, and an apply still names the file it wrote. The JSON result is unchanged. (#11356)
-
In a project with integrations,
docskeeps the integration check results it gathers, with the theme records they include, so a repeateddocscall reads them back instead of checking every integration again. An edit to a doc topic shows on the very next call.doctor's cache row namesdocsamong the commands that keep what they gather. (#11483) -
Once the per-user cache folder exists,
doctorkeeps its three checks that read only files (the docs tree, progressive disclosure and the CLI's docs) beside search's catalogs, and reads each back while every file it read is unchanged, so a laterdoctorskips them (about 0.2 s, more with large integrations). An edit to any doc shows on the very next run. Its cache row names doctor among the commands that keep what they gather, anddoctor --helpno longer calls it read-only. (#11394) -
In a project where no integration can load (no Astryx config, no integration manifest of its own, and no installed dependency that ships one), help and commands that don't need the project no longer load it first just to read the commands integrations declare:
--help,manifestandbloganswer about 65 ms sooner. Output is unchanged. (#11495) -
In a project with integrations, each integration's discovered themes are kept beside search's catalogs and read back while every file they read is unchanged, so
theme listand the other theme commands skip re-reading an integration's themes on later calls (about 0.1 s with a large integration). An edit to a theme, or to a module it imports, shows on the next run.doctor's cache row names the kept theme records. (#11469) -
In a project with integrations, the whole integration issue list is kept beside search's catalogs (the template and component replacement checks over Core and every integration, as well as each integration's own checks) and read back while every file it read is unchanged, so
component,template,themeandsearchskip those passes on later calls (about 0.1–0.25 s each with a large integration). (#11384) -
In a project with integrations, template discovery's records are kept beside search's catalogs and read back while every file and folder discovery read is unchanged, so
template --list,template <name>andbuildskip discovering templates on later calls (about 0.1 s with a large integration), and a template added, renamed or edited in an integration shows on the next call. A record that would not read back exactly (a function, a Map, a shared object, -0 and the like) is never kept.doctor's cache row names template discovery's records. (#11393) -
Importing
@astryxdesign/cli/api, as integration codemods and other integration code do, no longer loads Babel, recast, jscodeshift and postcss-selector-parser up front: each loads the first time it is used (about 0.25 s and 350 fewer modules per import). The API's exports are unchanged. (#11432) -
component --listfinds a component that has no folder of its own about 20 ms sooner: one index of Core's folders replaces a check of each folder in turn. Output is unchanged. (#11504) -
The published CLI reads the icon definitions and built-in theme descriptors it ships from values stored at publish instead of parsing each file, so
docsanswers about 45 ms sooner anddoctorandtheme listabout 10 ms sooner. An edited or unknown descriptor is parsed as before. Output is unchanged. (#11496) -
experimental themecommands read each folder of Core's sources once while they build Core's component docs.experimental theme preview appandexperimental theme preview adddo the same as they write the Overview and Components pages, instead of once per component name. Every run writes and prints the same. (#11426)
-
The CLI points agents and people to the experimental theme editor for making or changing a theme, labeled experimental each time: the agent block
astryx initwrites (its one theme line, which also keeps extending an imported theme before ejecting one to fork it), one added line inastryx init's next steps (its other steps stay),astryx --help, the theme docs (astryx docs theme, the author-a-theme guide, in English and Chinese) and thethemecommand's help and summary nameastryx experimental theme editor new <name> --like neutral, theneditor set/editor how,theme add <name>to wire it, andeditor show <name> --pngto look at each change.theme ejectadds one line,experimental theme editor new <name> --like <base>(the ejected theme when it is a built-in base the editor knows and its package is installed, elseneutral), andtheme palette generateadds one line,experimental theme editor set <name> accent <color>. (#11500) -
astryx docs styling/tokens-and-setuphas a Next.js with webpack section. It showsexperimental.optimizePackageImports: ['@astryxdesign/core']innext.config.mjsand recommends a component entry, such as@astryxdesign/core/Button, in Server Components. Without either, a webpack build ships every Astryx client component to a page whose Server Component imports from the package root. The theme preview starter app thatastryx experimental theme preview appcopies has the same setting. No API changes. (#11305) -
A new example block shows
useTableColumnsVirtualization: a 121-column Table with a pinned first column that mounts only the columns near its horizontal scroll position. (#11014)
-
Fix the theme README usage examples to import
Themefrom@astryxdesign/core/themeinstead of the removedXDSThemealias, and refresh the bundled theme lists in the package index and contributor guide. (#11016)Also released in
@astryxdesign/theme-chocolate,@astryxdesign/theme-gothic,@astryxdesign/theme-matcha,@astryxdesign/theme-neutral,@astryxdesign/theme-stone,@astryxdesign/theme-y2k.
Thanks to everyone who contributed to this release:
@aashish254 @charlie5188 @cixzhang @ejc3 @emilyhorsman @ernestt @HelloOjasMutreja @humbertovirtudes @josephfarina @karlmoriaty @kentonquatman @kevin9327 @korkt-kim @LekhNayak @lzcmian @nynexman4464 @parinith-web @popsiclelmlm @prath47 @shashank03-dev @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.15...v0.7.16
v0.7.15
Astryx 0.7.15 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.14 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.15 @astryxdesign/cli@0.7.15 # plus every other @astryxdesign/* package you use, at 0.7.15
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
In Safari/WebKit with default motion, a tall tooltip can briefly cover its trigger for its first entrance frame before settling beside it. Interaction is unaffected; this is fixed in v0.7.16.
-
DateInput, DateTimeInput:
onEntryErrorChangereports why the field rejects typed text, so an app can word its own message. It receives aDateInputEntryError(exported from both components) with akindthat does not depend on the locale (unreadable,incomplete,nonexistent,outOfRangefor a date beforeminor aftermax, orunavailablefor a day thatdateConstraintsrules out), the typedtext, and, foroutOfRangeandunavailable, the Gregorian ISOdate. It runs each time the rejection changes, including when a newmin,max,dateConstraints, orvalue, a calendar pick, disabling the field, or Enter or blur changes it, and withnullwhen the rejection ends, or when the typed field leaves while its rejection stands, as when a presentation or pointer change shows the native or touch picker. With the callback, anerrorstatusthat has a message is the message the field shows and announces, and the field's own message applies only without one; awarningorsuccessstatus never replaces a rejection. When a rejection starts while that error message stays the same, the field announces the message once more for it. Without the callback, nothing else changes. For every DateTimeInput, while a native date control replaces the typed date field, kept typed text and its rejection wait for the typed field, so the field shows the caller'sstatusmeanwhile. The native and touch pickers take no typed text, so the callback never reports a rejection there. Fixes #10366. (#11311) -
SegmentedControl: under a finger, pressing the selected segment lifts its surface as UIKit's does, and it settles back when the finger lets go. A pen lifts it the same way on a touch device. With a mouse on a desktop, or with Reduce Motion, nothing lifts. (#9724)
-
Where the primary pointer is fine, a mouse press on a CheckboxInput or a RadioList option paints at once on
pointerdownand fades on release, as a finger's press does, instead of the browser's:active. A right click, or a press on a link or a button inside a RadioList option, does not paint the option. Other controls keep:activefor a mouse. (#8696)
-
Calendar, DateRangeInput: a two-month calendar whose
maxfalls in the month it would open on now opens with that month in the second pane. Before, withmaxset to today, or with a selected value starting inmax's month, it opened on that month and the next one, and every day of the next month was disabled while the previous month stayed hidden. The first pane still never goes beforemin's month, an explicitfocusDateis shown as given, and a one-month calendar is unchanged. (#11202) -
Calendar: with
hasWeekNumbers, each row shows the ISO 8601 week number of its Thursday, the ISO week that holds most of its days. Before, most rows that start on Sunday or Saturday showed the previous ISO week, so the first two rows of a month could show the same number. Rows that start on Monday are unchanged. (#11271) -
DateInput, DateTimeInput: a typed date that the calendar does not have, such as February 30, shows "Enter a real date". The message names the calendar, as in "Enter a real date (Persian Calendar)", only when the field's calendar differs from the
InternationalizationProvidercalendar. A day thatdateConstraintsrules out shows "Enter an available date". (#11309) -
DateInput keeps its typed field's and native field's bookkeeping in state. A render React discards, as a suspended transition does, no longer drops typed text, clears a refused date, or reports the same date twice. (#10877)
-
DateTimeInput keeps its native pickers' last value and commit epoch in state. A render React discards, as a suspended transition does, no longer drops a time chosen before the date, clears a refused date or time, or lets the same native edit commit twice. (#10861)
-
Drawer keeps the side it exits to in state. A render React discards, as a suspended transition does, no longer changes the edge a closing drawer slides out to. (#10859)
-
useLinkify and RichTextEditorAutoLinkPlugin: email detection now takes linear time. A long word with no email in it, such as a pasted hash or base64 string, no longer freezes the page for seconds. Valid email addresses link as before, with three exceptions. In the rich-text editor, an address directly after a period no longer links, and a quoted local part ends at the next quote. In useLinkify, a fragment glued to the end of an earlier address no longer links on its own. (#11306)
Also released in
@astryxdesign/richtext. -
Dialog, CommandPalette, BottomSheet, Lightbox, Drawer, MobileNav, Popover: a Tab pressed with Ctrl or Meta on the first or last control of a modal no longer moves focus to the other end, and the modal no longer cancels the press. A page or a host app that handles Ctrl+Tab or Meta+Tab itself, for example to switch its own tabs, now gets the press on every control, as it already did between the first and the last. Alt+Tab still wraps, because Safari moves focus to each item on Option+Tab. (#11247)
-
Gestures in a same-origin iframe or a Picture-in-Picture window now time touches on that window's own clock. Before, a short tap there could start a long press, because the page's clock reads ahead of the window's. (#11155)
-
Item's swipe actions: underreveal, a fling opens the row at its actions; under either model a fling never fires an entry. On a side with two or more entries, only a drag that starts on the open row fires the outermost entry. The panel shows no entry's colour behind another. The entries fill it, and the entry that fires covers it until the row comes back or holds out. No API changes. (#11054) -
Keep disabled Item actions focusable (#11169)
-
After the window loses focus during a finger's press, lifting that finger no longer acts on any menu (DropdownMenu, MoreMenu, ContextMenu, Selector, and menus built on the public
useMenuPress), and a tap on a menu's trigger still opens it. Under a finger, a row lit by a press that is cancelled (a scroll, a second finger, the window losing focus) now clears, as on iOS. It clears in DropdownMenu and its sub-menus under anypresentation, MoreMenu, ContextMenu, Selector's list and the bottom sheet's action list, and in a menu built on the publicuseMenuPresswhose root can take focus. A mouse keeps its highlight. (#8508) -
The menu press model behind DropdownMenu, ContextMenu and their submenus syncs its option, step and trigger-context refs at commit. A press after a render React discards, as a suspended transition does, now uses the committed options. (#10901)
-
The mobile keyboard hook syncs its enabled, expanded and open flags at commit. After a render React discards, as a suspended transition does, a dismissal and the keyboard's listeners follow the committed options. (#10914)
-
Outline's scroll spy reads its items, its
onActiveIdChangeand its active item as committed. A render React discards, as a suspended transition does, no longer changes which item a scroll marks or which callback a landed navigation calls. (#10802) -
Carousel paging: a row that resizes while it settles no longer stops at once or runs back to an earlier page. The settle plays on at its speed, to the last page when it was heading there, and otherwise to the page nearest where it was heading. It ends on that page with no step when it goes back to native scrolling. A resize that leaves the row past its new last page, or that gives the row its first width, still lands it at once on the page it was heading for. (#10592)
-
ResizeHandle reads its region, direction and disabled state as committed. A render React discards, as a suspended transition does, no longer makes a key press resize another region or refuse an enabled handle. (#10803)
-
In a swizzled AppShell, the first Tab into the main region now stops on the region, as in the package's AppShell, when its first link or button sits inside a package scroll region that does not overflow (ScrollableArea, Table, CodeBlock, Tokenizer, BottomSheet), and the reverse. Arrow and Page keys are unchanged. No API changes. (#11225)
-
A disabled
Stepnow reflectsdisabledon thestep-indicatortheming target, besidestep-label, so a theme can restyle a disabled step's indicator. In a compact horizontalStepperwith on-track indicators, where a disabled step's label is not shown, the indicator is the only target a theme can reach. Thestepandstep-descriptiontargets do not gain the selector. (#8997) (#9192) -
useStreamingTextkeeps where its reveal restarts in state. A render React discards, as a suspended transition does, no longer restarts a streaming reveal from the start or jumps it to the end. (#10862) -
Table keeps one array for each list of columns, and for each list of plugins, compared by identity. A render React throws away, as a suspended transition does, can no longer replace the array the table last displayed. The next committed render reuses the array, so rows skip rendering when the columns and plugins match the committed ones.
useBaseTablePluginsalso keeps its array when the base plugins come in a new array of the same plugins. A column plugin with its own render-time cache, such as the tree plugin, still re-renders every row. (#10940) -
useTableSortableStatesorts only when its data, sort or locale changes. It re-sorted every row on every render of its owner. (#10942) -
Table sorting with
useTableSortableStatecalls the latestonSortChange. Before, a sort header kept the handler from the last time the sort changed, so a parent that passed a new handler without a sort change had its old handler called, and that handler saw out-of-date state. (#11349) -
Text and Heading: on Android, the first tap on a button or link inside truncated text opens the truncation tooltip, as on iOS. The tap focused the element first, and that focus took the tap; now only a keyboard focus counts. Tooltip: a tap on a text field inside a tooltip's trigger focuses the field and no longer opens or closes the tooltip. This includes a text field inside truncated text. (#11213)
-
A Timestamp hover card's copy button now shows when the clipboard write fails, as CodeBlock's copy button does: the icon becomes a cross for 1.5 seconds, and the button is named, tooltipped and announces "Failed to copy value to clipboard." It used to do nothing. A theme that maps the
timestamp-copyslot keeps its rest glyph during a failure (copiedis false). The error itself is not shown. (#10434) -
ToastViewport syncs its committed list at commit. A toast that only a render React discards showed, such as a suspended transition, reports no
onHidewhen a repeat replaces it and the same handler then dismisses it. (#10902) -
Tokenizer's sheet numbers its searches and its opens in state. A render React discards, as a suspended transition does, no longer makes a reopen announce a search that never ran. (#10886)
-
In Tokenizer's inline field on a touch screen (a tablet, or
presentation="popover"on a phone), removing a token with a finger no longer raises the touch keyboard. A tap on a token's own remove button (Token's ×) used to move focus to the field's input inside the tap, which makes iOS and Android show their keyboard; when the input was not focused before the tap (the keyboard was down), focus now stays where it was, unless the tapped × or another control in its token held focus, when focus moves to the input as before. A tap made while typing, a pen's tap, a mouse click, a key press on the remove button, and a remove control drawn by a customrenderTokenstill put focus in the input. PowerSearch's filter tokens, which render Token, get the same fix. (#8160)
-
Hook docs for
useThemeName, soastryx hook useThemeNameandastryx searchreturn it, and auseThemeName — Active themeexample block: the name of the theme wrapped around the caller. (#11235)Also released in
@astryxdesign/cli. -
List's anatomy now names its optional header and drops a description part that List does not render. The
refdocs now say that the ref reaches the list element, with or without a header. (#11277)Also released in
@astryxdesign/cli. -
DefinedTheme.__componentIconsis now documented public API; its presence and shape follow the compatibility policy. (#11192)
-
Internal: Core's internal touch entry re-exports UIKit's timing table and the motion engine's AnimateOptions and MotionHandle types for Lab's SearchField. Apps import nothing new. (#10956)
-
Internal: the close button name of Lab's SearchField joins Core's message catalog. Apps import nothing new. (#10956)
-
Internal: Core adds two internal hooks that keep a ref at the latest committed prop or callback for event and gesture callbacks, and an internal entry through which Lab reaches them. Outline's scroll spy, ResizeHandle and resizing logic, menu press handling, the mobile keyboard hook, and ToastViewport use them. Apps import nothing new. (#11352)
-
Internal: one shared context request from a long press, a right click, or Shift+F10 and the context-menu key, reporting which input made it, one per gesture. A held finger's hold loses to a claim another gesture already made on that finger, and a control that keeps its press for a hold-repeat owns only its hold, so its right click and Shift+F10 still reach the request. A held pen's own context menu event is refused like a held finger's. The hold is UIKit's long press and requests as it begins. Not exported from the package entry point. (#8670)
-
Internal: Core's internal layer hook drops a dismissal-check field that no component reads. The layer still refuses to reopen during the press that closed it. Apps see no change. (#11332)
-
Internal: Markdown records its streaming fade-in refs as an exception to the runtime's ref rule, with tests that pin why it is harmless. (#10939)
-
Internal: the rule that ends a container's press for a press on a nested control is named for every pointer it covers, and its comments and records say what it does. No change to any component's behavior or API. (#11304)
- RichTextEditor: importing Markdown no longer freezes the page on a block that has a backtick and, below its first line, a line with a
|, a dash and a long run of spaces. The check for a table delimiter row now takes linear time; which lines count as delimiter rows is unchanged. (#11338)
-
astryx experimental theme: the component catalog and the all-components sheet are now built from each component's doc playground. Overlays show open, and each component shows its variants, its checked and disabled states, and a heading's levels. The editor's own copies of these demos are gone. A playground default that lists several elements now renders, so the editor now knows the tokens that radio lists, steppers, carousels and similar components read. (#11350) -
astryx experimental theme editor: colors and fonts that stay safe and say what they do. (#11244)- Undo never deletes the generated color file (
tokens/<theme>.palette.ts) when you edited it by hand. The file stays, and the result names it. The theme reads only the selected-shades file (tokens/<theme>.palette-refs.ts), which the editor writes from the generator on every change, so a hand edit to the palette file never shows; the result says so. - A focus color (
--focus-outline-color) or any other color token set for one mode no longer locks the theme. Every later command checks it as the color it is. - A color file counts as edited only when its colors differ. Formatting, a byte order mark, semicolons or a hand edit to
palette.config.jsonwithout a receipt do not count. When an edit blocks a color change, the refusal says how to keep or discard it and names the command to run next. - An exact main color (
--color-accentand the other fills, tints and on-colors) reports what it changes around it, including the light-page check, when you set it. - The accent tint stays at the official shade. Secondary text on the parts that sit on it (selected items and rows, a dropzone, numbered citations) and on segmented-control labels (which sit on the neutral track) is lifted, as the official Neutral theme lifts it, to the nearest gray that reads at 4.5:1 there and under a hover: the neutral color's shades, else grays grown from the base theme's own secondary text, so every accent gets it. An exact
--color-text-secondary, for the whole theme or on one of those parts, wins there, per mode. The contrast check measures those parts with the text they show, at 4.5:1. - On a base whose light page is dark (Gothic), the colors take the shades meant for a dark page in light mode too, so text reads on it. See-through exact colors (a hover tint, a fill) are measured as they show over the surface.
- On a layout without shade 85, the light accent tint takes the lighter neighbor. Shades are shown rounded.
font inheritand the other CSS keywords are refused, because the browser would drop the whole font. Generic families (serif,system-ui) and the usual desktop fonts (Arial, Segoe UI) count as system fonts, and the fallback never repeats the family. A family name that is not a plain CSS name (3Dumb,My/Font) is quoted, and@fontsource/<font>names its preset.
- Undo never deletes the generated color file (
-
astryx experimental theme editor: every CSS math function is read by its type, and fonts are judged against the theme build's own list. (#11350)pow(),sqrt(),hypot(),log(),exp(), the trigonometric functions,mod(),rem(),abs(),sign()andround()are accepted where the type they give fits;sqrt(4px)andmod(10px, 3s)are refused.- Which system fonts need no install comes from the list
astryx theme buildwarns by, unchanged; the editor only knows which of them ship on one system. font morenames the commands that work.- Math inside a color is checked too (
rgb(calc(1px) 0 0)is refused), andcolor-mix()needs a share of at least one color.calc(1fr)is refused, since math takes nofr. - A token only widths and offsets read (
--border-width,--focus-outline-width) refuses a percentage, which those properties drop. - A font that ships on one system says which one (
"Segoe UI" ships only on Windows), instead of calling it no system font. - The check for a hand-edited settings module reads files with Windows line endings.
-
astryx experimental theme editor: every refusal on fonts and part colors names a command that works. (#11350)- A dial typed in other letters (
Font,FONT) is answered as the dial. - A CSS
fontshorthand on a part (bold 16px/1.5 Georgia, serif) is split into the longhands to set, one command each. - A suggestion is never MDN's note in place of a value (
dependsOnUserAgent). - A bad color on a part's color property suggests a color that works.
- A dial typed in other letters (
-
astryx experimental theme editor: per-mode part colors with commas, both-mode values and everycolor()space. (#11350)- A part color set for one mode, then the other, keeps a color that holds commas (
rgb(0, 0, 255)) whole, in either order. - A value that already gives both modes (
light-dark(…)) is refused with--mode; drop--mode. - The color dials read every
color()space CSS has: rec2020, a98-rgb, prophoto-rgb and xyz, as well as srgb and display-p3.
- A part color set for one mode, then the other, keeps a color that holds commas (
-
astryx experimental theme editor: font shorthands on a part split whole, and color mixes read. (#11350)- A CSS
fontvalue on a part is split into every longhand it holds (font-variant-caps small-caps,font-stretch condensed, style, weight, size, line height, family). A lone keyword goes to its own longhand (boldisfont-weight bold), never tofont-family, and a system font keyword (caption) gets a family that works. - A
color-mix()of two fixed colors in srgb, srgb-linear, xyz, oklab or oklch is worked out to the color it gives, so a color dial takes it. A mix the editor cannot work out says so and asks for the mixed color.
- A CSS
-
astryx experimental theme editor: values the browser would drop are refused, and type and font settings do what they say. (#11350)- An installed
@fontsource/<font>package always loads the font it names. - Math inside
calc()and the other math functions must be sound (calc(1px banana)is refused). - A duration or easing token takes one value, never a list.
- A line height of
0is accepted. - An exact
--color-text-secondaryreaches the parts that lift secondary text, with or without a color dial. - A font for the body alone keeps the headings' font.
- After
font <x> --on body, later commands keep working. moreorlesspast the last text-size step is refused, instead of going the other way.- A dial whose tokens an exact setting holds says so.
- A token only the base theme's part styles read is no longer called unused.
- An installed
-
astryx experimental theme editor: whatsetaccepts always loads, and a theme keeps the colors it shows. (#11350)- A setting that the theme could not load is refused when you set it, such as a font with
!importantor a comment. - A border or outline width below 0, a duration below 0, and an unquoted url with brackets are refused on a part.
- Switching a theme to light-only or dark-only lists the colors that visitors in the other mode lose.
- A change that leaves the colors, the mode and the base as they were keeps the shades the theme already shows, so a theme an earlier editor built keeps its colors, and undo brings them back. The next color change maps every color with the current rules.
- A setting that the theme could not load is refused when you set it, such as a font with
-
astryx experimental theme editor: a theme an earlier editor built gets its colors right on the first change. (#11350)- The color files are brought up to date before the theme is built from them. A font or corner change on such a theme no longer moves its colors, and the next change no longer moves them back.
filterandbackdrop-filtertake only values the browser reads;filter bananais refused.- A font for code alone falls back to a monospace font.
-
astryx experimental theme editor: math, keywords and fonts checked the way the browser reads them. (#11350)- Math in
calc()and the other math functions must add like types and give the type the value needs.calc(4px + 2),calc(10px / 2px)andpadding calc(1s)are refused. - A token never takes a CSS-wide keyword (
--font-family-body inherit): it would leave the token empty. - A font that ships on one system only (Segoe UI, Consolas, Menlo, Helvetica Neue, Roboto) is named as such.
fontrefusesvar()and names the role's token that takes it.font geist-sansis thegeistpreset, andtext-size Mediumsuggestsmedium.- A hand edit to the generated settings module is built over from the settings, as the module says, instead of being kept by the next change.
how fontno longer says a body font moves the headings.
- Math in
-
astryx experimental theme editor how: number words, typed token names and states worded as actions. (#11350)- Numbers written as words are read: "zero radius everywhere" is square, "twelve pixel corners" 12px, "a two pixel border" 2px, "forty pixels tall", "a quarter rem", "one and a half line height".
- "least", "minimum", "as little as possible" and "barely any" mean less; "maximum roundness" is a pill.
- A token typed by name with a value ("--focus-outline-width: 3px", "--color-background-card to #fafafa in light mode") is set exactly. A token name that does not exist is refused with the nearest names, never answered with another token.
- States worded as actions keep the state: hover, click and press (active), typing and tabbing to (focus), "after I check" (checked), "picked" (selected). "Tab to" no longer names the tab part, and a link's color in one state is set for that state.
- "Cards the same radius as buttons" gives cards the token buttons read; "buttons twice as round as inputs" changes buttons; "the same color as the danger color" uses that color's token.
- "Shouldn't links be underlined?" asks for the underline.
- A pasted
h1, h2, h3 { … }includes h1.
-
astryx experimental theme editor how: a mode phrase scopes the ask, and typed tokens are read only when they are real. (#11350)- "In dark mode only, cards #111111" sets the cards in dark mode; the theme becomes dark-only only when the ask is about the theme's modes. A clause that only names a mode scopes every clause after it. "Daytime" is light mode; "at night", "night mode" and "OLED" are dark mode (a bare "day" or "night" is not a mode); "dark: …, light: …" sets each mode, and two values for different modes are not a contradiction.
- A token typed at the start of a question is set exactly; a flag-like word that is no token (
--like,--value) is read as words, and a real token in a later clause ("and set --border-width 2px") joins the other changes. A quoted font stack keeps its quotes. - "No more than 2px borders" and "at most 2px" are 2px, not none.
- "Error text" and "labels" with no part name give a lookup, never the whole theme's text.
-
astryx experimental theme editor how: lists of parts, undo wording and typed numbers beside direction words. (#11350)- Parts listed before the ask all take it: "cards and dialogs with no shadow", "tooltips and toasts black". "Less padding on cards but more on buttons" answers both, each its own way.
- "Every part bold except body text" makes the headings bold and leaves the body as it is.
- "Remove my accent override", "revert the cards to default", "I set the accent to red by mistake" and "put the card shadows back" take back what the theme sets with undo.
- A typed number beside a direction word is the value: "thicker focus outline, 4px" is 4px, "bigger tap targets, at least 44px" is a 44px minimum height, "8 or so px" is 8px.
-
astryx experimental theme editor how: lists, several colors and per-mode colors. (#11229)- Each line of a question, and each item of a bulleted or numbered list, is its own ask. A "no" on one line never reaches the next.
- Several colors in one question are each kept: "accent #0ea5e9; danger #ef4444; success #22c55e" sets all three. A hex binds to its word whether it comes before or after it ("#0d6efd primary"), "bg=#fff text=#000" splits per color, and "primary" is the accent. "Secondary" has no setting of its own, so it is offered as the secondary button fill.
- A color that
howworks out (darker, lighter, more contrast, stronger borders, a darker overlay) is set per mode, each from that mode's own value, so dark mode keeps light text. "More contrast" acts in light and dark mode and says so. "Fails contrast on white" never picks white. Text already at full contrast says so instead of changing nothing. - CSS property names read as their properties:
letter-spacing,line-height,font-size,font-weight. - Better meaning: "drop shadow: x 0, y 4, blur 6, spread -1, " sets that shadow; "ditch" removes; "revert the rounded corners" takes back the corner settings the theme has; "swap A for B" asks for B; a radius of 0 is square; "12 pixels" is exactly 12px; "taller (44px)" sets that height; "too warm" makes the grays cooler; a part with no recorded fill gets darker or lighter through a brightness filter.
- Typed values are kept: gradients written "from A to B", shadows with several layers, quoted font names and font names before the word "font". Quoted text that is not a font name is read as words.
- Parts: a table's header, the error banner (
--when status:error), "button color" as the text color. Markup and comment text in a question are ignored. - Italian, Spanish, Korean, Russian, Arabic and Hindi words for buttons, cards, rounded, shadow, remove and accent are read; "y", "et", "und" and "и" join two asks.
- A step given twice in one answer runs once.
undois suggested only when there is a change to undo. - When
font --on bodyalso changes the heading font (the theme sets no heading font),how fontsays so, and a body font question uses--font-family-body. - An answer with no command says why. Commands in an error's suggestions start the same way in JSON as in text.
-
astryx experimental theme editor how: "swap A for B" and "replace A with B" ask for B only when A and B are both colors or both fonts. "Replace the shadow on cards with a border" removes the shadow and adds a border, and "switch off" or "switch the buttons to" no longer names the Switch component. (#11262) -
astryx experimental theme editor how: right way round, whole font names, and the app's themes from any folder. (#11262)- Polarity: "flat cards" removes the cards' shadow ("too flat" adds one); "not round enough" is rounder; "nothing rounded except avatars" is square with round avatars; "shadows too strong" is softer; "borders too dark" is fainter and "too light" stronger, per mode; "not so much padding" is less.
- "Border radius" in two words is the radius, never the border width. A rem or em radius for the whole theme is set in pixels (0.75rem is 12px), and a
%radius keeps its%. "button padding 8" is 8px. - Font names of several words are kept: shipped fonts by their full name (DM Sans, IBM Plex Sans, Geist Mono, JetBrains Mono), and other names as typed (Roboto Mono, Source Sans 3). "Sans-serif" is never read as serif.
- "Off-white" is #fafafa. "Headings too big" changes the heading scale. "#e5e5e5 not pure white" sets #e5e5e5.
- "1) … 2) …" markers and "Feedback round 2" are not values.
primary=#7c3aed radius=10 font=Geistreads each pair. "Body text 16px" is the text size. - A link's color is
--color-text-accent, the token a link reads; the answer says it also colors other accent text. - Parts: table cells, menu items, radio buttons, text areas, selects, skeletons and popovers. A variant word before a part ("success badge") adds
--when variant:success. "Card and Dialog" answers both. "Match the header to the sidebar" changes the header. A shadow ask after "serif headings" is for the theme, and a tab's text color is on the tab. - "What does spacing more do" is a lookup. Light and dark values in one question set each mode. "I hate the purple, make it orange" sets the accent.
- A typed text color that one mode's page would make unreadable is set for the other mode only, unless the question asks for every mode or sets the page too. A sequence never gives the page the color it gives the text.
howfrom a subfolder of the app finds the app's themes, like the other editor commands; a picture named from there still opens.
-
astryx experimental theme editor how: a picture named from a subfolder of the app opens from that folder. A number that ends a sentence ("Use radius 8. Shadows off.") is a value, not a list marker; only "N)", or "N." at the start of a line or after a semicolon, starts a list item. "Shadows off" and "borders off" remove them. (#11303) -
astryx experimental theme editor how: named CSS properties, typed values kept whole, and parts it cannot name. (#11350)- A CSS property named in the question is set as named, with its value checked against the property's grammar:
caret-color,outline-offset,text-shadow,accent-color,text-underline-offset,font-variant-numeric,text-wrap,transition,padding-block, any propertysetaccepts. It is never swapped for another property. - Typed values are kept whole:
clamp(),calc(),color-mix(), a four-value radius,line-height: normal. A font size of 0 is refused by name. - "Modal" names the dialog again; "carrd" and "caard" are corrected to card, and "lines" is no longer corrected to "links".
- A typed color is the target: "too bright, use #b91c1c" sets #b91c1c.
- Gray stops are read ("gray-50", "zinc-900", "slate 100", "neutral-200"); "subtle gray" is a light gray; "charcoal text instead of black" sets a charcoal.
- Fonts any machine has (Arial, Menlo, Times New Roman, Helvetica Neue, SF Pro) and typed names (Plus Jakarta Sans, Noto Sans, Fira Code) are set as named; "the default Mac font" is the system font.
- "menu", "select", "list", "divider" and "footer" name their parts, and so do "combobox" (the complex selector) and "accordion" (the collapsible). A part word how cannot name ("image") gets the closest parts and a lookup, never a whole-theme change.
- "too shadowy" is softer. "On focus" reaches the next clause; "night mode" is dark mode; "dark by default" is a dark-only theme; "lift it with a bigger shadow" is the hover shadow only; "ON: CARD" names the part; "the cards and the dialogs both" answers both.
- A picture whose name has spaces, as macOS names screenshots, is read as a picture.
- Questions about the tool get the command that answers them: help, "list every dial", "which token sets the page background?", "explain text-size", "how do I see my changes", "difference between corners and border-radius".
- The corners lookup's example is a token whose change shows.
- A CSS property named in the question is set as named, with its value checked against the property's grammar:
-
astryx experimental theme editor how: typed values win without a colon, and words read the right way round. (#11350)- A percent inside a gradient or after a color is never an opacity; "50% opacity" still is. A typed gradient with stops ("#2563eb 0% to #9333ea 100%") is kept.
- A typed value after a property word is used whole, colon or not: gradients,
opacity 0.5,border 0,border color transparent,light-dark(),var(),margin 16px,filter: blur(2px),backdrop-filter blur(8px), two-layer shadows. A property name never picks a part ("backdrop-filter" is not the backdrop). A value the property cannot take ("padding NaNpx") is refused by name, and so is a font size of 0. drop-shadow()is kept as typed.- "halve", "half", "cut in half" and "x0.8" mean less; "twice" and "double" mean more. "0.5 rem", "1.5 em", "14 px" are one length.
- "reset", "revert", "back to default", "what it was", "clear the override" with a setting take it back with
undo <theme> <setting>, or say the theme does not set it. - "lighten up" is lighter, "tighten" is tighter tracking, "knock the contrast down" is less contrast, "open up the leading" is line height, and "the gray text fails contrast, darken it" darkens the secondary text. A clause that only describes the problem ("the hierarchy is flat") is not a change; "or maybe not. actually yes" keeps the ask.
- "heading color" is the text color. Accordions, comboboxes and notifications name their parts; a part list with no match lists the parts of components that use the word. "error toasts" adds
--when type:error, "read-only" is the readonly state, and "loading" or "unchecked" say the part has no such state. - CSS named colors such as tomato are read.
-
astryx experimental theme editor how: complete border values, layer opacity, and the right kind of change. (#11350)- A border or outline value is complete or goes to the right longhand: "card border 2px" sets
border-width(a border with no line style draws nothing), "border width 2px" and "border bottom width 2px" set those properties, "border 0 0 2px" keeps all four widths, a width with a color gets a solid line, and "text-decoration #2563eb" setstext-decoration-color. "border width" never sets the part's width. - "shadow opacity 0.2" sets the shadow's alpha, and "background opacity" or "border opacity" make that layer see-through, never the whole part.
- Font names win over dial words: "Space Grotesk headings" and "headings in Space Mono" set the font.
- Negation is kept: "should not shrink when pressed" is no scale, "but not bold" is a regular weight, and "why are my headings not bold" asks for bold.
- The right kind of change: "thinner body text" is a lighter weight; "faster hover transitions" sets
transition-duration; "turn off all animations" and "transition duration 300ms everywhere" set the shared duration tokens; a part with no motion of its own, or no fill (the spinner), says so; "dim the white text" dims it; "a border instead of a shadow" removes the shadow and adds the border; "button press scale 0.98" scales on press. - Point sizes are read (11pt is 15px), and a rem text size is read in pixels.
- A heading's color, which comes from its prop, is set with
--color-text-primary --on heading; "headings red" is the text color. - The divider is a part: its thickness and color are
--border-widthand--color-borderon the divider. - "go back to the neutral theme" takes back every setting, one undo each.
- Small caps, tabular numbers, balanced heading lines, "I can barely see the borders" and "hover does nothing visible" are read; tool questions about using, renaming, versions, files and hand edits get the command that answers them.
- A fully see-through picture is refused: it has no visible colors.
- A border or outline value is complete or goes to the right longhand: "card border 2px" sets
-
astryx experimental theme editor how: a question names a part by any theming target name in Core's catalog ("drawer", "date range input"), read from Core instead of a list of its own; phrases, groups and variant words stay as overrides. Near misses are corrected with the CLI's shared edit distance. (#11350) -
astryx experimental theme editor how: "day" is light mode only in a mode phrase ("daytime", "day mode", "in the day"), so "the selected day in the calendar" or "all day" no longer scopes the change to light mode; a token typed in a later clause ("and set --shadow-high 0 4px 12px black") keeps its whole value. (#11350) -
astryx experimental theme: the tenth pass of fixes. (#11350)--state disabledstyles a disabled button, link or tab the way Core marks it (aria-disabledas well as:disabled). A focus or active state on a part that never takes it is refused.- A spacing step on a group member set alone starts from the group's value. Refusals keep every scope flag they can (
--when,--state,--only). A tab inside a value is white space. - Undoing an exact property names the dial that applies after it. A
font var(...)refusal suggests only a command that works. A name Windows reserves (con,nul,com1) is refused, with one that works. compileof an editor theme finds the theme from the file, from any folder, and never mistakes asrc/themes/<name>folder for one. A damaged settings file is refused as a normal error. Its suggestions run as printed in JSON too.- The refusal for list, add, use, remove and eject on an editor theme says how to use its module, and not to edit the generated themes module.
-
astryx experimental theme: the eleventh pass of fixes. (#11350)- A local theme with the same name as an editor theme keeps the stable message. Compile guards only the editor's own files, also through a linked folder. The refusal for an editor theme shows a merge snippet that runs, with its stylesheet.
- A list where one theme goes names each theme.
corners moreat pill andlessat square write nothing. A corner word onbuttonsorsurfacesnames the corners dial. - A bad property value suggests a value the property takes (
no-wrap→nowrap), in the same scope. --state disabledis refused on a part that is never marked disabled.focus-withinis refused where nothing inside takes focus.how <part>lists only statessettakes there.- Option errors suggest a help command that runs as printed in JSON too.
-
astryx experimental theme: a build is judged by its content, never by file times, so a settings module saved again (a format-on-save, a checkout) no longer failscompile --check, andpreview app --themecopies a build that matches its settings without building it again.--state disabledon a tab styles it the way Core marks it. (#11350) -
astryx experimental theme: the third pass of fixes. (#11262)- Saved settings are checked on load as
setchecks them, including where they apply. Each setting the editor no longer accepts is listed with a command that removes it. Each command works on its own, however many are listed. A setting that is not accepted never reaches the build. corners moreandlessread the base theme's radius in any unit. A saved corners value must be a rung or a pixel size.undo <theme> baseandundo <theme> modego back to what the theme was made with.undo <theme> headings weight|trackingremoves that half. A value given toundois compared assetreads it.undo <theme> <thing> <part>names--on <part>. A blank--on,--when,--stateor--modeis refused.- If a group setting hides a value, setting the value again moves it last, so it wins. A change that changes nothing writes nothing, the preview included. A newer
backgroundwins over an olderbackground-coloron every variant. A color on text, a heading or a link is refused, naming the text color token, because the color prop decides it. A quoted string may hold<or>, and a value may span lines. - A
<theme>.theme.tsthat no longer extends its settings is refused, andshowsays so. A built-in theme's name is refused fornew. A theme written by hand or ejected gets a clear refusal from the editor. In both cases the refusal gives a command that works. showrebuilds a damaged build and says so, andshow --section --pngphotographs the section's own sheet. A damagedpalette.config.jsonis made again from the settings, and its text is kept aspalette.config.damaged.json. The preview route compiles for names likeb-2.preview.htmlis the same on every build, and a change of letter case alone is not listed as a token change.- Refusals show control characters as escapes. Suggested commands quote their words for any shell, and fill in real values. A misspelled property points to the property.
- In
experimental theme, a moved or misspelled subcommand names where it is now. A bare group answers--jsonwith its help.--detail compactand--denseprint the status line alone.compilerefuses the editor's own settings files and--familyfor an editor theme.compile --checkchecks an editor theme by the editor's rules, and waits for a change in progress. The editor's builds write the same headers ascompile. Compile errors and stale checks name the experimental commands and never change text that you typed.add,use,removeandejectexplain what an editor theme is.
- Saved settings are checked on load as
-
astryx experimental theme: the fourth pass of fixes. (#11303)- The theme lock is the release cache's lock, renewed while a command runs, so a long build is never taken over from another computer or container. The lock and the part-data cache come from the same node_modules.
- Corners keep the base theme's proportions between radii, so a step up never makes a container or page radius smaller. Going up the scale never makes any radius smaller, inner corners included. A step on a part moves to the next rung that part shows bigger or smaller. A group setting that covers an earlier part setting says so, and
showmarks the part setting as not shown. - A word for a value names that value (
surfaces elevatedsuggests raised).how baselists installed bases and names the rest with their install line. Values a property does not take (display flexx,padding auto) are refused. A plain value that replaces per-mode values says which it replaced. - A base theme updated since the build is noticed, and the theme is built again. A folder where a file goes is refused. When React is missing,
showstill lists the settings and builds the theme, skips the pages and pictures, and names the install line. The editor's own temp files left by a stopped command are removed.
-
astryx experimental theme: the fifth pass of fixes. (#11303)- A theme lock whose holder stopped renewing it is taken over after 30 seconds, whatever computer it names, and a lock renewed or taken a moment before that takeover is put back.
compileholds an editor theme's lock while it builds or checks it. The editor's cache stays in the project's node_modules. - A corners rung gives a part what it gives the radius token that part reads, pill keeps checkboxes square, and corner sizes written any way are read plainly. Spacing is refused where it shows nothing, and controls stay at least 24px.
- Saved settings on a part, state or variant that does not exist are refused with the undo that removes them. A damaged mode or base is fixed by setting it. Text contrast is measured for each variant of a part.
- A one-mode theme changes the build. A per-mode color keeps the other mode as a color. Big files beside a theme are never read. Undo after a gray color writes the same bytes. A render folder a stopped command left is removed once it is ten minutes old. A damaged palette config is copied aside only by a command that writes, and the result names the copy.
- A theme lock whose holder stopped renewing it is taken over after 30 seconds, whatever computer it names, and a lock renewed or taken a moment before that takeover is put back.
-
astryx experimental theme: review follow-ups. (#11303)- A corners step on a part moves to the next rung that part shows bigger or smaller, counting a group setting that covers it, and
showreports the radius the build writes. - CSS values are checked against the property's grammar, so valid values such as
12pt,stretchandenv()are taken, a value that is only avar()is taken on any property, and values the browser would drop are refused, with a value that works. - A color set for one mode on a part keeps the base theme's own value in the other mode. Text contrast reads the same values.
- Every saved setting the editor no longer accepts is named, and each suggested undo works while the others are still saved.
- The CLI now depends on
css-treefor these checks. It adds about 2.09 MB unpacked to the install (css-tree 1.36 MB and itsmdn-data0.73 MB), and loads only when the editor checks a CSS value; no other command loads it, and startup is unchanged. showsuggests installing React only when React is missing, and the busy message says how long the other command has held the lock.
- A corners step on a part moves to the next rung that part shows bigger or smaller, counting a group setting that covers it, and
-
astryx experimental theme: the sixth pass of fixes. (#11350)- A theme lock is never taken from a command that still runs: not from one in a container on the same computer, and not from one that is only stopped. A command that lost its lock while stopped writes nothing more, and leaves the files as the command that took the lock left them.
- A theme whose settings were deleted or damaged, or left by a stopped
new, is made again bynewwith its name. Your own files stay, the damaged file is kept, andundosteps back to the earlier settings. showrebuilds a cut-short stylesheet, and names a picture cut to the window. Demo images open from disk. Leftover temp files are removed.- Refusals for a bad argument, a damaged or missing theme file, a busy theme and a missing project lead with a command that runs.
-
astryx experimental theme: the seventh pass of fixes. (#11350)- Settings of the wrong shape are recovered like damaged ones:
newwith the theme's name makes it again and keeps the file. Anewthat recovers a folder changes nothing until every check has passed. - A command that lost its lock while stopped puts nothing back and leaves the other command's files alone.
- Pill never makes a container or page less round, and a whole group of containers gets the container radius. A step reads every setting that reaches the part. Focus on a text input is named as focus-within.
showworks without React and says what it skipped. The sheet says when a change made it out of date. A variable that is not a design token needs a fallback, and a value that is only a variable is taken on any property.compile --watchbuilds an editor theme again.
- Settings of the wrong shape are recovered like damaged ones:
-
astryx experimental theme: a theme an earlier version built keeps its corner radii until corners or the base change, and undo restores the radii a step was built with, exactly. Each undo step now records those radii; steps an older version wrote are still read. (#11350) -
astryx experimental theme: the ninth pass of fixes. (#11350)- The undo history is never deleted by a recovering
new, and a stoppednew's leftover marker is removed by the next change. - A theme typed as a file name (
t.theme.ts) is refused with a suggestion of the theme it names. An undo that is refused suggests undos. - Undoing a radius token rebuilds the corners without it. Inner corners never get smaller going up the scale. A step never moves a part the other way, starts from an exact border-radius, and for a variant starts from the part's plain setting.
- A
--statethat a part never takes (disabled on a card, which is never marked disabled) is refused and says what to do. undonames the setting that applies after it. Refusals suggest the nearest value that works.- A command that lost its theme lock publishes no build output. A change that changes nothing rebuilds a build left stale.
- The undo history is never deleted by a recovering
-
astryx experimental theme preview:addrefuses a folder whose URL the app's own route handler or page already serves, including aroute.tsorpage.jsxin the folder itself and aroute.tsin a route group.add --pathandapprefuse Next's build folder (.next/,out/or thedistDirnext.config names), which the next build empties. On the Components page, a component as tall as the window scrolls in a bounded frame, and each cell is only as tall as its content. (#11350) -
astryx experimental theme preview add: next.config is read from its syntax, not its text. Comments, keys inside other objects and constants are read as Next reads them. ApageExtensionslist built from a spread no longer refuses the app; the result notes that only running the config tells.basePathanddistDirare read the same way. (#11350) -
astryx experimental theme preview: last fixes. (#11262)- Install suggestions name npm when nothing says which package manager the app uses, never
npx addornpx install. - A change stopped before its route was written is undone, so
listshows only the pages the route shows. A refusal says what finishing a stopped change wrote.editor setnames a preview it left as it was while such a change waits. A damaged step record no longer leaves temp files behind. A move of an older preview's pages stopped part way is finished: the old copies go once they still hold what the move planned to remove. remove --pathat a folder that holds the app suggests a plainremove.- Suggested
--pathandpreview appfolders are written from the folder the command ran in. preview app -appsays to put the folder after--.
- Install suggestions name npm when nothing says which package manager the app uses, never
-
astryx experimental theme preview: running prettier over the preview, with any options, no longer makes its files count as changed by hand. The check compares the code, not its formatting. An edit to code, a string or a comment still counts. (#11303) -
astryx experimental theme preview add: only an optional catch-all route ([[...slug]]) in or at the preview's URL is refused; a required one ([...slug]) never serves the folder's own URL. A root layout inside nested route groups is found.basePathis read with comments left out, and one set from code is named in the URL to open. (#11350) -
astryx experimental theme preview: safer refusals and recovery. (#11209)- No refusal suggests deleting files: a damaged theme-preview.json, a page changed by hand, or a file in the way gets plain instructions (fix it by hand, rename it, or move it into a folder of its own) instead.
--pathat the project root, insrc/or at the routes folder itself is refused: those folders hold the app. An older preview found there is named, with the remove that clears it.- A whole
removestops, deleting nothing, whenpage.tsxwas changed by hand, since it imports the pages. - A formatter run no longer counts as a change by hand.
editor setandshowname the preview files they left as they were (previewStale). - A recorded page whose file is gone is written again, or left out of the nav, so the route always builds. Moved pages get a hash. A failed write leaves no temp file or empty folder, and says which step failed. A read-only file keeps its mode.
preview app --themewaits for other commands changing that theme, and its retry suggestion keeps--theme.
-
astryx experimental theme: with an older installed Core whose component docs have no playground defaults, the catalog now builds each component's demo from its doc's props. Required props get a sample, and a group gets three of the items its doc suggests. The contact sheet, the Components page,howanswers and contrast checks keep every component. A part with its own doc, such as Heading, now shows on its own. An open overlay shows once on the pages people see, and a switched-off switch or checkbox is labeled for the state it shows.preview listmarks a theme whose folder is gone (themeMissing). After a damaged step record, a page file in no record is named, never deleted.--pngwith a browser that is installed but fails now names the error. (#11350) -
astryx experimental theme preview: removes that never touch project files, and previews only where Next serves them. (#11229)removedeletes only the route file, the record and recorded page files, and only when a recorded hash shows they are as the preview wrote them. Any other file the record names, and any file with no recorded hash, is kept and named.addrefuses a folder that holds a package.json, a URL another page already serves, an app whose next.config leaves outtsxpage files,src/app/whileapp/is what Next serves, and a folder outside the root layout. An app with its root layout in[locale]/gets the preview there.- A template's needs come from its real imports, never words in comments or strings. A package the app does not name gets the command that adds it.
- A theme with no build is built only after every check passed, holding the theme's lock, with a note. An edit inside a string counts as a change by hand.
editor showandpreview apprun when the lock folder cannot be written.- A damaged record in a folder that holds the app names renaming the record. A record with a byte-order mark is read.
listsays when the theme is gone. Base themes count as package themes, installed or not.--templatetakes any case.preview apprefusespublic/and names Windows does not allow. An empty route group folder goes with the preview.
-
astryx experimental theme preview: a preview change stopped part way (a kill, a crash) is finished by the nextpreview addorpreview remove. The change writes a step record before its first rename. The next command removes leftover temp files, records the preview's own files, keeps a page whose new file never landed at its old place, and says so in a note. (#11262) -
astryx experimental theme preview add: in an app with a root layout in each route group, the preview is accepted under any of them, and a refusal names each one. (#11262) -
astryx experimental theme preview: the Components page now uses the playground a doc gives a component in its own entry, so Stack shows its cards. A nav that opens over the page, such as MobileNav, is left out like a drawer. The Text cell now suggests the text color token, a command that works. A divider fills its row, and a one-pixel line no longer counts as showing nothing. For an app folder named like a flag,preview appprintscd ./-k. (#11350) -
astryx experimental theme preview add: refuses a folder with an optional catch-all route ([[...slug]]) in it or at its URL, an app whose routes folder has no root layout anywhere, and a default or recorded preview folder that leads outside the project through a link. The URL to open now starts with thebasePathnext.config sets. When the app never imports Core's stylesheet, the result names the import line to add. When a theme loses its last color under a Colors page changed by hand, the page is kept and the palette module it imports becomes an empty stand-in, so the app still builds, and the result says so. A link inside the preview folder that leads outside is refused, naming the link. (#11350) -
astryx experimental theme preview add: the refusal for a next.config whosepageExtensionsleaves outtsxnow suggests commands: the same add oncetsxis listed, orpreview appfor a new app of its own. (#11350) -
astryx experimental theme editorreads CSS from one source instead of its own lists. Property names and value grammar now come from css-tree. The neutral color's shades come from the shipped Neutral theme, and system fonts from the listastryx theme buildalready uses. (#11350)- Six newer standard properties (
timeline-trigger-rangeand its relatives) are accepted. An outline style in capitals (SOLID) is accepted.
- Six newer standard properties (
-
The integration file takes an optional
logo({light, dark?}, paths to images the package ships): the logo catalogs show beside the package name. When the integration file has nologo, the check uses package.jsonmarketplace.logo.astryx integration checkadds two notes that say what a catalog needs to list a package:package_without_logo, when the logo names no PNG, JPEG, WebP or shapes-only SVG of at most 512 KB that the package ships, andpackage_without_example, when the package has components but no example block. A package of themes, docs or codemods alone needs no example, and a package of icon sets alone draws neither note. Both are information only: they fail no check, with or without--strictor--next. The new "Get your package ready to list" section ofastryx docs authoring/ship/checksshows how to add both. (#11278) -
integration verifyadds an information line, in text output only, after a successful pack whose manifest isastryx.integration.ts: the CLI transpiles it on first read on each machine, so shippingastryx.integration.mjsloads faster (pointing atastryx docs authoring/ship/publishing keep-private-files-out). It changes neither the result nor the exit code. (#11382)
-
In a run under Yarn Plug'n'Play's loader, such as
yarn astryx,doctor's search catalog cache row still names the folder and its size and adds that such a run keeps no catalogs, as search and build gather every time there. The plainastryxcommand in the same project keeps them as usual. (#11299) -
The code the CLI transpiles from TypeScript files (an integration's
astryx.integration.ts, a TypeScript config, codemod or template doc) is kept in the CLI's per-user cache folder (~/.cache/astryx/jition Linux,~/Library/Caches/astryx/jition macOS), made for the user alone, instead of the system temp folder, which on Linux every account on a machine shares; on macOS, where that folder is already per-user, the copy now survives temp clean-ups. A folder another account owns or can write to is not used; the transpiled code is then kept in memory only. Emptying the temp folder no longer makes the next run transpile everything again. (#11360) -
A catalog
searchorbuildkept between runs now records which inputs it is for and is used only for those, so a cache file copied under another entry's name is never used. (#11301) -
A run under Yarn Plug'n'Play's loader, such as
yarn astryx, no longer reads a search catalog that a plainastryxrun kept: it gathers every time, asdoctorsays, since its modules resolve through Plug'n'Play, which a kept catalog's checks do not follow. (#11344) -
The release cache's lock takeover checks the owner record of the lock it moved aside. A lock another command took in the moment between the check and the move is put back instead of removed, and the takeover waits for it. (#11313)
-
astryx swizzlereportsERR_WRITE_FAILEDwhen its output path is a file on the minimum supported Node version. The original file stays unchanged, and the error identifies the failed write relative to the project instead of exposing a cleanup error. (#11186) -
theme build --outwarns, naming both sources, when it replaces the built output of another theme source that still exists; an output there is its own when its header names this source, or names a source that no longer exists. A build output's header names its source from the project root of the outputs, so a build from any folder writes the same outputs and--checkagrees with it from every folder; the source a header names is matched exactly. Builds to the default paths beside the source are unchanged. An--outpath that does not end in.cssstill builds, with a warning, and the import line the build prints names the file as written. Several themes that build the same outputs are refused before any of them writes. The next steps aftertheme ejectandtheme templatequote their paths, andtheme templateon a file--overwritewould refuse names a free path instead (its receipt addsoverwritableandalternative). A damaged generated theme module names how to rebuild it (delete it, thentheme addeach theme it held), a default that is not added namestheme usewith an added theme, and a folder where the module goes is refused in plain words. A--familymember that is a plain object says so and names a build of it on its own. (#11346) -
Every refusal of
theme use,theme remove,theme add,theme eject,theme template,theme targets,theme buildandtheme listnames a command that works.theme useandtheme removeof a theme that is not added suggesttheme add <slug>only when that theme exists, andtheme listotherwise; removing the default namestheme usewith another added theme. Unknown slugs intheme addandtheme ejectsuggest whole commands for the closest themes,theme targetswith no match suggests the full list, and refused paths, flag combinations and loads suggest the command that runs. A theme that imports a package the app lacks names the install command intheme build, without absolute paths, and indoctor, followed by the rebuild command of any other stale local theme.theme useortheme removeof a theme that is not added and that more than one package provides namestheme add <slug> --package <package>for each.theme build --checktext lists the checked outputs, as the JSON does. (#11346) -
theme buildrefuses one of its own outputs (.css,.d.ts,.js) or a file of a kind no theme module has (a plain.cssfile) before loading it, and names the theme source to build instead of a loader error. A missing input that is a bare theme name (theme build brand) or a path with backslashes suggests the theme source that exists.theme ejectfrom a subfolder forks into the project'ssrc/themes, astheme listandtheme addread it, and reads a relative path from the working folder.theme targets .astryx-switchreads the class as the output prints it. Theexperimental themecopies no longer reword text you typed that holdsastryx theme …. (#11323) -
theme build --watch(andexperimental theme compile --watch, whose help says so too) rebuilds when the theme source or any local file it imports changes (an ejected fork's palettes, a split theme), not only the entry file.theme ejectrefuses the local themes folder itself, which madetheme listandtheme addfail for every theme, and a folder in it named after another theme, which they skipped; it names the default target. A fork into a new folder in the local themes folder takes the folder's name: its entry, descriptor and export are renamed to the build's binding (src/themes/acme-ocean→acmeOceanTheme.ts,acmeOceanTheme), sotheme list,theme buildandtheme addfind it as that theme; a backslash in its path separates folders.--packageontheme add,theme listandtheme ejectalso takes the package a bundled theme is imported from (@astryxdesign/theme-butter), the name the CLI records and prints. A bundled theme whose package is missing names the install command and then the add. An unknown subcommand ofthemeorexperimentalsuggests whole commands, closest first, andtheme editor/theme previewpoint atexperimental theme editor/experimental theme preview. The discovery refusals for a theme descriptor outside a theme folder, or in a folder with another name, say where to move the files. (#11375)
-
buildkeeps its block picker's per-block vectors beside the kept search catalog and reads them back on a later run with the same catalog, instead of working them out on every call. Every answer is the same. (#11342) -
Checking whether a kept search catalog is still fresh no longer builds an error for each absent path it looked up, so warm
searchandbuildstart a little faster. Every answer is the same. (#11316) -
component,template,theme,discoverandsearchkeep each integration's contribution-check results in the per-user cache folder beside search's catalogs, and read them back while every file, folder and environment variable the checks read is unchanged, instead of checking the integration again on every call. On a project with a large integration this takes about 0.2–0.3 s off each of these commands.doctor's cache row names the commands that keep what they gather. (#11367) -
searchandbuildkeep the catalog they gather in a private folder in the user's cache folder (catalogs, beside the release cache), and a later run uses it only while every file and folder it read, every module it loaded, and every environment variable it read (kept as a digest, never its value) are unchanged. Otherwise the run gathers fresh, exactly as before. A run with unchanged inputs answers in about a third of the time, with the same output. Only a published CLI keeps catalogs, and not where folder ownership cannot be checked (Windows) or under Yarn Plug'n'Play;doctorlists the folder and its size, and deleting the folder clears it. (#11251) -
searchkeeps the index it builds over a kept catalog beside that catalog, so a later search over the same catalog reads the index back instead of building it again. The index is a function of the catalog's text, so it reads back exactly as built; it is keyed by that text and by the CLI code and files that build it (the CLI files the catalog depends on, the index's own code and the component cards), so an edit to an installed copy, as patch-package or a hand edit leaves it, is never answered from an index built before the edit. It is kept only where catalogs are kept. Every search prints the same answer. (#11300) -
Contribution validation now loads
@babel/parseronly when it parses a contribution's source, so a run where nothing else loads the parser, such ascomponent <Name> --jsonorhook --list, no longer loads it. Every command prints the same output. (#11256) -
jiti now loads on first use instead of with every command, and
component --jsonno longer loads the theme API, which onlycomponent's text output needs, so commands that never need them start faster. Every command prints the same output. (#11242) -
search(andbuild, which ranks with it) splits each name into words, lowercases each description, and builds each query term's word pattern once per run instead of once per candidate and term. Every result is the same. (#11243) -
In a project with no integration (no Astryx config, not an integration itself, and no installed dependency that ships one),
component,template,themeanddiscoverno longer record their run for kept check results, so they skip that work entirely (about 15–40 ms each). (#11380) -
The stored doc exports now cover Core's docs and the CLI's own command and API docs too, and a read parses only the docs it needs. Any doc file whose text matches a stored doc reads the stored exports, since such a doc's exports depend on its text alone.
searchandbuildprint the same output faster. (#11240) -
astryx manifestreads the manifest stored in the package when it is published, instead of loading every command to build it. The stored manifest is what the fully loaded CLI builds, and the publish step checks it is the same beside each package manager's lockfile, so while every command loadsmanifestprints the same output. A command whose module fails to load is listed in the published manifest under its normal entry, instead of being marked as failed; running that command still reports the failure. (#11233) -
doctorreads its audit of the CLI's own authoring docs from a copy stored in the package when it is published, instead of parsing the CLI's authoring sources on every run. The copy is used only while the package version and every doc, type file and folder the audit reads are unchanged, so an installed CLI'sdoctorreports the same thing. (#11232) -
buildreads which packages a template Astryx ships imports from a copy stored when the package is published, instead of parsing the template's source on every call. Any other template, such as an integration's, is parsed as before, and every answer is the same. (#11315) -
upgrade --froma version before 0.7.0 skips the theme-alias codemod on source files that name none of the removed theme targets, as it already skips other codemods on files they cannot change. Every run writes and prints the same. (#11265) -
upgradeskips a codemod on a file it cannot change: a core codemod may declare the words a file must say for it to act, and a file that says none of them, holds no backslash, and parses, is left untouched without running the transform. A file that does not parse still reaches the transform, so it is reported as before. One codemod that checked every spread against every component now checks only components the file imports. Every run writes and prints the same. (#11249)
-
The calendars guide is titled "Calendars", and the docsite shows it under Internationalization in the sidebar, at the same address. (#11269)
-
astryx docs authoring/ship/publishingrecommends shippingastryx.integration.mjsrather than.ts(and.mjsdoc files and codemods): the CLI transpiles each TypeScript file it loads on first read per machine. It also says a package with two manifests fails to load. (#11364)
-
Internal: the scanner that finds template fixture references takes the replacement as a function, so the docsite's preview build finds those references the same way a copy does. No change to any command's output. (#11320)
-
On Windows, the CLI's test setup now rebuilds a stale Core. It started
pnpmdirectly, which Windows installs as apnpm.cmdbatch file that cannot start without a shell, so the setup stopped withspawnSync pnpm ENOENTbefore any test ran. It now runs the build throughcmd.exe. macOS and Linux run the same command as before. (#11051)
Thanks to everyone who contributed to this release:
@aashish254 @astracat-bot @ChenyangLi4288 @cixzhang @duytbp @Geervan @josephfarina @nynexman4464 @popsiclelmlm @prath47 @Varshavia @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.14...v0.7.15
v0.7.14
Astryx 0.7.14 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.13 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.14 @astryxdesign/cli@0.7.14 # plus every other @astryxdesign/* package you use, at 0.7.14
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
ComplexSelector:
disabledMessageexplains why a disabled selector is disabled. WithisDisabled, a tooltip shows the reason on hover and keyboard focus, and the reason describes the trigger througharia-describedby. The disabled trigger keeps its tab stop, and pointer, keyboard and the imperative handle still cannot open the popup. WithrenderTrigger, the caller owns the control, anddisabledMessageworks with it too: the tooltip and the description go to that control. Drop the control's own tooltip while the selector is disabled, for exampletooltip={isDisabled ? undefined : 'Filter'}, so it never shows two. Separately, a caller's ownaria-disablednow reaches an enabled built-in trigger. (#5984) -
An anchored layer's entrance now slides from, and scales about, the side the layer lands on. Before, a layer that flipped because its requested side had no room still slid from that requested side, onto its trigger. The entrance also scales about the point where the layer meets its trigger, not the center of its box. A Selector list that opens over its selected item scales about the trigger's center and does not slide. This applies to Popover, DropdownMenu and its submenus, ContextMenu, Selector, ComplexSelector, Tooltip, HoverCard, Breadcrumbs and PowerSearch menus, and any layer that uses the shared entrance. Built-in layers have no option that keeps the old entrance. The public
layerAnimationsstyles now also settransform-origin; a caller's owntransformOriginlisted after them still wins. (#10771) -
useMenuPresswith nolongPressDelayMsnow follows DropdownMenu's finger rules on every device: a finger or a pen opens the menu as it presses (inside a scroll view, once the 150 ms content-touch delay has passed), and the finger that opened it picks a row only after moving 10 px. To keep the previous behavior, a 500 ms hold and a pick at the opening finger's lift, passlongPressDelayMs: 500. (#8078) -
Under a finger or a pen, on every device, the trigger of an anchored DropdownMenu or MoreMenu now opens its menu as it is pressed, instead of after a 500 ms hold. Inside a scroll view it opens once the 150 ms content-touch delay has passed with no scroll, so a scroll that starts on it still scrolls. To keep the previous behavior, a tap that opens at the lift and a 500 ms hold, pass
presentation="popover". A menu shown as a bottom sheet, and a mouse, are unchanged. (#8078) -
SegmentedControl: a drag that drifts off the control keeps choosing by its horizontal position, clamped to the end segments, and the lift commits that segment. A mouse or a pen drags the same way. Escape or a browser cancel takes the press back, and the highlight returns at once. (#10978)
-
Tokenizer is now an InputGroup-compatible control (#3520). Inside an
InputGroupit consumesInputGroupContextinstead of rendering its ownField, so the group owns the single label, description, and status chrome — no more duplicated label or nested field wrapper. The typeahead input is named by the group label plus the Tokenizer's own label (composed withgetInputARIA, soaria-describedbymerges the group's description/status with the input-local disabled reason rather than replacing it), and the control adopts the sharedgroupStyles.inGroupborder/radius treatment so it joins the group's seam. The group also owns size, the disabled state, and validation: a disabled group disables its Tokenizer, a grouped Tokenizer takes the group'ssize(an explicit largersizeno longer escapes the row), and its localdescription/statusare neither referenced fromaria-describedbynor painted beside the group's status. Because the group is a fixed-height single-line surface, a grouped Tokenizer keeps its tokens on one scrolling row instead of wrapping past the shared border — cap selections withmaxEntriesor summarize them withtokenOverflowBehavior. Its end controls (the clear button,endContent, and the busy indicator) hold the end of that row: tokens scroll beside them, never underneath. The row hides its native scrollbar and fades whichever edge hides tokens instead; forced colors bring back a thin native scrollbar. Keyboard users reach hidden tokens through their remove buttons (Shift+Tab from the input), and a disabled Tokenizer's row becomes its own Tab stop while it overflows, named by the Tokenizer's label, so the arrow keys can scroll it. (#4405) -
TimeInput, DateTimeInput: under a finger, the bottom sheet's minute wheel loops, as UIDatePicker's does: past 59 comes 00, and the hour stays, as on iOS. A drag, a fling, a tap or an arrow key passes the seam. Home, End and a click on a minute never pass it. The hour wheel does not loop yet. Each minute is still listed once for assistive technology. (#10953)
-
When a page mounts both the package's AppShell and a swizzled AppShell as outermost shells, only the first now keeps the fixed main-region id; the other takes a generated id, as two package shells already did. Before, each copy kept its own claim list, so both shells used
astryx-app-shell-mainand the page had a duplicate id. No API changes. (#11208) -
BottomSheet: a finger's pull down on the sheet's content is handled by the sheet's touch listeners alone, and it releases at the speed of the whole pull. Before, the content's pointer handlers, which serve a mouse or a pen, began the same drag first and took pointer capture, and the capture change cancelled that drag one move later. The touch listeners then began the drag again, or, in Chromium, the content's own pan could start under it. The release speed counted only the moves after the drag began, so a fast flick on the content that the page received as two or three moves read as no speed and sprang back, where the same flick on the grab handle closed the sheet. A flick on the content now closes the sheet as a flick on the grab handle does. This also applies to the sheets that Tokenizer and PowerSearch open. A mouse or pen pull from the content also releases at the speed of the whole pull. No release threshold changes. (#11145)
-
BottomSheet: a move of a touch drag no longer restyles the sheet's content. Each move writes the scrim's opacity on the dialog as a custom property, and the property inherited into the sheet, so the browser restyled every element in the sheet on every move: 51 elements a move in a Tall sheet with a short list, 84 in PowerSearch's Filters sheet with three filters, and more with more content. The sheet's panel now ends that inheritance, and a move restyles the dialog, its backdrop, the panel and the edge tint. The scrim follows the drag as before. This applies to the sheet that owns the scrim: a single BottomSheet, or the first sheet of a stack, such as PowerSearch's Filters sheet and Tokenizer's sheet. (#11154)
-
BottomSheet: in Safari, and in every browser on iPhone and iPad, a swipe on the sheet's content that starts slowly now moves the sheet, so a slow swipe down can close it. Before, on content that fits, when the finger's first move was 8 px or less, in either direction, the sheet stopped answering that swipe: it stayed open, or moved a few pixels and fell back. Fast swipes and swipes on the grab bar already worked, and Chromium browsers were not affected. The fix applies wherever the touched content has nothing to scroll: a sheet whose content fits, and the fixed header or footer around a list. That includes the PowerSearch and Tokenizer sheets. At the top of a list that scrolls, a pull down now also moves the sheet when the finger first wobbles up by less than 5 px; a move up of 5 px or more still scrolls the list. In every browser, the sheet now decides who owns a touch on its content once, at the first move past 8 px. A mostly vertical pull at a scroll edge is the sheet's. A mostly sideways move, such as a swipe along a row of chips, is not the sheet's for the rest of that touch. Before, at the top of a list, a sideways swipe that drifted more than 8 px down, or a pull that began more sideways than down, also moved the sheet. (#11140)
-
Button: a disabled or loading submit or reset Button, including one in a disabled ButtonGroup or InputGroup, no longer submits or resets its form when clicked in server-rendered HTML before the page hydrates or when JavaScript fails to load. It renders as a plain button until hydration, then takes its own type again, with no change to what people see or hear. (#11107)
-
A Carousel's scroll buttons no longer cover the scroller's keyboard focus ring. Each button now sits just inside the ring instead of straddling the carousel's edge, so the whole ring stays visible while the scroller has focus (#10722). (#10726)
-
A transient copy that carries an animation still waiting for its first frame now runs it in step with the original. On a busy page, the SideNav rail's leaving copy could start the toggle's press fade a frame or more after the toggle's own. (#10983)
-
CommandPalette: refresh results when itssearchSourcechanges while it is open. (#9679) -
createISOTimeString answers null unless the trimmed string is H:M or H:M:S with one or two digits per field (a seconds fraction is still accepted and dropped), instead of reading "2:30 PM" as 02:30 (12 hours off) and "14:30abc" as 14:30 (#11023)
-
FileInput's dropzone shows its status message below the drop area by default, so it no longer covers the drop area; an explicit
statusVariant="attached"still renders as before. (#11195) -
A pan over the page that the browser doesn't take as a scroll no longer closes an open popover or selector list, and no longer taps the page element under the finger. (#11038)
-
A swizzled overlay and the package's components now share one set of focus regions and one mobile keyboard model: nested focus regions from the package and a copy no longer both answer the same Tab, and package and copied fields agree on the keyboard's height, its layout guide and which elements ride it. No API changes. (#10831)
-
On a phone, a press on a control at rest no longer measures the page, so a scroll that starts there does not wait. Hit areas no longer measure while the page scrolls or while a parent's animation moves them, such as a screen that slides in. A press on a control that a parent moves still measures the page. When a parent starts to move after the last measurement, the browser's own hit test decides the tap. No API changes. (#11083)
-
The arrow-key hint that Toolbar, TabList and SegmentedControl show on first keyboard focus now stays until you press an arrow key or Escape, or move focus out of the group (WCAG 2.2 SC 1.4.13 Content on Hover or Focus). It used to disappear after 3 seconds, sometimes before it could be read, and Escape did not close it. Escape now closes only the hint, through the shared layer dismissal stack, and keeps focus where it is.
useKeyboardHint'sdismissAfterMsno longer defaults to 3000; leave it unset. (#10564) -
Closing a Lightbox stops a video that was playing. The viewer stays mounted, so the picture and its sound would otherwise continue after Close, Escape, or a tap outside. A viewer that is already closed does not start playback either. Opening it again plays the current video when
hasAutoPlayis set. A video inside the caption stays stopped. (#10692) -
A swizzled ListItem inside the package's List (or a package ListItem inside a swizzled List) now leaves the way a package row does: it keeps what it showed on screen, such as a swipe's travel, for its exit. Before, the List and the ListItem kept separate records of the rows the List reported and of the presentation a leaving row kept, so the row's exit lost that presentation. No API changes. (#11214)
-
Make onClick-only TopNav items keyboard accessible (#9334) Previously, onClick-only TopNav actions could be skipped by Tab or could not be activated from the keyboard. TopNavItem now provides button semantics and Enter/Space activation while preserving its anchor ref/event types and custom link rendering. Desktop TopNavMegaMenuItem actions and drawer TopNavMenu actions now use non-submitting native buttons.
This restores keyboard operation and action semantics for WCAG 2.2 A criteria 2.1.1 and 4.1.2. Disabled TopNavItem actions remain focusable but cannot activate; href navigation and the existing desktop menu keyboard model are unchanged.
-
A fence plugin made with the package's
createMarkdownFenceTransformnow renders its node in a swizzled Markdown, and the reverse. Before, the copy described the plugin to its transform under its own keys, so the package's fence transform refused to run and the fence fell back to a plain code block. No new props, exports or defaults. (#11167) -
Under right-to-left, plain text in
InputGroupText, aBadgelabel and aTokenlabel keeps the character order it was written in. Text with no right-to-left letter, such as a URL scheme (https://), a domain suffix (.com), a count (+3),C++, a handle (@alice) or a tag (#design), used to show reordered (//:https,com.,3+); it now lays out left to right. Text that contains a right-to-left letter keeps the page's direction, isolated from its neighbours, soiPhone جديدstill reads right to left. A rich (non-string) label or child is isolated but keeps the page's direction: mark mixed directions on your own content. PlainInputGroupTexttext with no right-to-left letter sits in an innerspan. Left-to-right pages are unchanged. (#10114) -
A swizzled component that carries its own copy of Core's layout motion, spinner rotor or gesture sync now shares the package's: a layout change in one copy starts at the frame the other copy's change started in, so their glides land together; spinners from both copies are pinned to the timeline in one batch, so rings mounted together cost one style recalculation instead of one per copy; and a gesture sync running in one copy holds the other copy's gesture callbacks too. No API changes. (#11027)
-
Popover: initial focus takes the first content control in document order everywhere. This changes the focused control only where
querySelectorAlldoes not return document order, as in jsdom; browsers focus the same control as before. (#11177) -
Icons registered with
registerIcons()now reach swizzledIcon,CodeBlock,TableandTimestampcopies on the same React. Themes registered by name are now shared by every Core bundle loaded on one React. Each registry is one per React, so a second React on the page never renders the first one's elements. No API changes. (#11096) -
A swizzled ResizeHandle or LayoutPanel now finds the package's panel or handle beside it, and the reverse. When the region collapses, focus inside the panel moves to the handle and the panel goes inert. Before, each copy kept its own records of lent panels and handles, so the panel resized, but focus could drop to the page as it collapsed. No API changes. (#11131)
-
The package root and the component barrels no longer carry
'use client'. Inside a React Server Component,import {Card, Stack, Badge, Code} from '@astryxdesign/core'now renders the components that need no client code on the server, as their own modules intend; components that need the client stay client references. A Server Component that imports from the package root now builds with Next.js webpack. Client code renders the same as before. No API changes. To pass one of these components itself as a prop to a Client Component (for examplecomponents={{inlineCode: Code}}onMarkdown), pass it from a'use client'module. (#11106)In a Next.js app that uses
next build --webpack, importing the package root from a Server Component page or layout now builds; v0.7.13 failed with “export * in a client boundary.” The root import includes every client component on that route. Addexperimental: {optimizePackageImports: ['@astryxdesign/core']}tonext.config, or import component subpaths such as@astryxdesign/core/Button. In a measured Button-only server page, this reduced first-load gzip from 846 kB to 224 kB. Turbopack (the Next.js default), Vite, and Client Component imports are not affected. -
In iOS Safari, a tap that wobbles less than 5 px on content under a scroll-edge pan keeps its click. The pan now holds the finger only once it has moved 5 px along its axis. In Lab, in iOS Safari, a tap on a pushed NavigationStack screen that drifts less than 5 px toward the back swipe now runs; one that drifts 5 px or more toward it still loses its click. (#10829)
-
A component built on useScrollableArea, such as ScrollableArea or BottomSheet, no longer renders again when focus moves between two descendants of a fitting viewport just after the component's own update. (#11135)
-
Toast ids are now one sequence across the package and a swizzled copy of
useToast. Before, each copy counted from 1, so a toast from a swizzled Toast and a toast from the package could share an id in the same queue, and dismissing one removed the other. No API changes. (#11092) -
A windowed Table keeps windowing when a text-size, zoom or theme change makes every row taller than
rowHeight. It windows at the height the rows measure, instead of rendering every row, and warns in development. Rows of unequal height still render every row. (#11000) -
Without a
LayerProvider, toasts from a swizzleduseToastand from the package now show in one fallback stack. Before, each copy mounted its own fallback container, so the page showed two toast stacks that overlapped. No API changes. (#11161) -
Tokenizer: with
hasEntriesOnFocus, picking a choice from the list shown on focus keeps the input focused and the list open, with the next choice active, so you can pick several in a row. The list closes when no choice remains, atmaxEntries, or when you press elsewhere, Tab away or press Escape. A pick from typed search results still closes the list. (#11031) -
Typeahead and Tokenizer keep a dismissed menu closed when a search or focus bootstrap that was still running answers afterwards. Closing the menu with Escape, an outside click, Tab, or moving focus away also clears the busy indicator and drops a search still waiting on its debounce. A late answer for the same text is kept and shown the next time the menu opens, without searching again (reopening while that search still runs waits for its answer); an answer for text the person has since changed is dropped. Previously the late answer reopened the menu after it had been dismissed. (#8778)
-
AppShell's guidance on naming its navigation landmarks now says to pass
labelto TopNav andaria-labelto SideNav. SideNav has nolabelprop; it has a translated default name, andaria-labelrenames it. (#11151)Also released in
@astryxdesign/cli. -
Add hook documentation and interactive table cell truncation example block for
useTruncation, demonstrating responsive string truncation and accessibility tooltips. (#10555)Also released in
@astryxdesign/cli. -
InternationalizationProvider shows its examples in reading order: load a shipped locale, mirror the layout for right-to-left text (a new code example), override one string, then the calendar examples. Each live example is titled after its code example, so the two lists match. (#11094)
Also released in
@astryxdesign/cli. -
LinkProviderdocs say whatcomponentreceives, including thetoprop that router components read, that a link's ownasor a nearer provider wins over it, and that a disabled Link does not use it. (#11065)
-
Internal: Core's internal finger-scroll reader accepts a ref that names the document, so Lab's ChatVirtualizer can watch the page's own scroll when it attaches to
document.scrollingElement. Apps import nothing new. (#10883) -
Internal: MobileNav keeps its dialog rendered from the open until its delayed close has run through the layer runtime's presentation hold (Layer/presentationHold.ts). No behavior change. (#8590)
-
Internal:
useChatStreamScroll's page-scroller rules move to one owner module: whether a container scrolls the page, where its visible area starts, and where its scroll events fire. The hook behaves as before, and the undocumented@astryxdesign/core/internal/page-scrollerentry gives the same rules to Lab's ChatVirtualizer. Internal entries are outside the public API and its compatibility promise. (#11160) -
Internal: Core's reorder controller finds a collection's rows through an internal rows reader, so a later change can reorder plain elements. List behaves as before, and apps import nothing new. (#11199)
-
astryx discoverlistsWeightedSVGIconamong@astryxdesign/lab's components: an experimental SVG icon whose drawing follows the surrounding font-weight. (#7918) -
astryx experimental theme editor howanswers a question that names the background ("a yellow background") for the background, with its tokens first, instead of as a color question. The preview's Overview page shows its open popover and tooltip first, below their anchors in space kept free for them, so they no longer cover the table. (#11159) -
astryx experimental theme editor: colors are generated the way the official themes are. (#11209)- An exact color you give stays exactly as given. In light it never moves: when no text reads on it, the text changes, and a pale fill that does not stand out from the page is reported. In dark it is kept too when text on it reads at 4.5:1 and it stands out from the dark page at 3:1, so the dark shades around it follow it; otherwise dark mode starts at shade 70, as the official themes do, and the result says why. A dark side never uses a light shade.
set <theme> neutral <color>: your exact color sits at its own shade in light and dark, and the shades around it follow it.- Text on accent and status fills comes from the neutral color's white or near-black (near-black first on warning), or pure black or white without a neutral color. Status tints are see-through in dark, and their text is measured over the surface; the accent tint is dark shade 30, or the nearest darker shade that citation text reads on; a tint is never the fill's own shade.
- An exact
--color-accent(or another main color token) wins over the color it would replace: the text on it is picked to read on your color, the focus ring keeps following it, a pale one is reported, and the result says so. - Text, icons and the focus ring take the nearest shade that reads, lighter or darker, so bases with dark light-mode surfaces get readable colors too.
- Hand edits to
palette.config.jsonare kept: your own anchors, names,kind,neutralProfile, vibrancy written by hand, and colors of your own. One-mode themes generate one mode. A stop layout maps by its own shades, half stops included; one without black and white, with too few shades or with a wide gap is refused. Fields the generator does not read are named. What the editor replaced is named when a color change touches the config. - A hand-edited generated color file is never overwritten, receipt or not; formatting is not an edit. Only color changes wait, and the refusal says how to keep or discard the edit; other changes go ahead. A file from another generator version is generated again. No unresolved color ever reaches the built CSS.
- The theme imports only the shades it uses, from
tokens/<theme>.palette-refs.ts. - Colors are read as browsers read them: negative hues, out-of-range saturation and chroma,
color(srgb …)andcolor(display-p3 …). Malformed functions, system colors and see-through colors are refused with the reason and a command that works, such as the color with its#, without quotes, opaque, or the nearest color name. A dial named another way (gray,brand,error,saturation,Accent) suggests the dial; a color dial with--onsuggests what the part really reads. vibrancy moreat 100 andlessat 0 are refused, a number out of range suggests the nearest one, undoing the last color removes vibrancy too, a vibrancy edited by hand into something invalid can be fixed withundoorset, and a replaced color shows what it was. A wide-gamut color says it is used as its nearest sRGB color.
-
astryx experimental theme editor: colors without palette commands. Colors come only fromeditor set <theme> accent|neutral|success|warning|danger|info <color>, which generates the light and dark shades and points the color tokens at them, as before. The newvibrancy <0-100>setting (more/lessstep by 10) sets how saturated the generated colors are; it needs a color and applies to the whole theme.editor new <theme>now takes any setting as a flag (--accent "#7c3aed" --font inter --corners round --vibrancy 60), checked the same way assetand applied in one build. The experimental copyexperimental theme palette generateis gone;theme palette generateis unchanged, andeditor setlists it as the command it replaces. Help, results and errors say "colors" and "shades" instead of palette, family and stop;showlists each color with its seed and the shade each token uses, with the generated files last (colors,colorNotes,vibrancyandcolorFilesreplacepalette). Component families are now groups:how --list groups, and thegroupfield insetandhowresults.how colors(orhow palette) explains how colors are made, and plain-words color questions ("brand color", "make it more colorful", "dark mode colors", "error red", "see all shades", "exact color for one token") answer with the commands.preview addwith no description adds a Colors page when the theme sets a color: every shade in light and dark with its number, hex and the tokens that use it, kept in step with each change. (#11149) -
astryx experimental theme: make and change a theme one checked change at a time (editor), and preview it on real pages in your app (preview). Only the new experimental command group changes;astryx themeand its output stay as they were. (#11101)- Checked changes.
editor set <theme> <thing> <value>takes a dial (corners, spacing, accent, neutral, success, warning, danger, info, font, headings, surfaces, buttons, type, text-size, base, mode), a design token, or a CSS property on a part, with--on <part|family>,--when <prop>:<value>,--state,--mode light|darkand--only. Each change is checked against what the installed Core's parts really read and against the token's type. A change that cannot take effect is refused (exit 1, anERR_THEME_*code, nothing written), and the error leads with the command that works. - What parts read. It is derived from the installed Core itself, version for version: a catalog of every component renders on the server with the project's own React, joined to Core's stylesheet. The result is cached under
node_modules/.cache/astryx-theme/. No new dependency. - An ordinary local theme.
<theme>.settings.jsonholds the settings;<theme>.settings.tsis generated from it;<theme>.theme.tsextends it, is written once, and keeps your own edits; the CSS and JS are built by the same build asastryx theme build. A plain part setting that a more specific base-theme rule would beat is repeated on those variant keys, and the result says so. - Families, modes, contrast. Styling one input or check styles its whole family unless
--only;--on containersand--on menusstyle every member. Only colors and shadows take--mode. Text this theme makes unreadable (below 4.5:1, and not that low in the base theme) is reported. - Editor commands.
editor new,editor set,editor undo(one step back; with a thing, removes that one setting so it goes back to the base theme's value),editor show(every setting, key values, contrast problems, and two self-contained HTML pages: the sample app page and every component; PNG pictures only with--png, using a Playwright or Chrome found on the machine), andeditor how(what a part reads, a family, a setting or aspect, a question in plain words answered with exact commands, a PNG picture's colors, or--list dials|tokens|parts|families|properties). - Preview in your app.
preview addwrites one route into the app's routes folder (theme-preview/inapp/orsrc/app/, or--path): a normal page that keeps your layout and providers, in an app shell with a nav item per page and, when it wears a theme made byeditor, a light, dark and system switch. With no description it adds the sample app page and every component; with a description it adds the page templates thebuildranking picks for it (--top);--templateadds one.preview listandpreview removemanage the pages; only files the preview wrote are replaced or deleted, only inside its folder, and every check runs before the first write. A template page that needs a package the app lacks is skipped, with the install command. With no app,preview app <dir>writes a starter Next.js app with the preview in it (--themecopies a theme in for the pages to wear) and prints the install and dev commands. - Experimental copies of
astryx theme.compile(the copy oftheme build),list,add,remove,use,eject,template,targetsandpalette generaterun the same functions with the same flags and JSON. Each experimental command doc names the stable command it will replace in a newreplacesfield, shown in its help as "Will replace: astryx theme build".
- Checked changes.
-
astryx experimental theme editor how: questions read the way people write them. (#11209)- Negation and "too" read the right way round: "shouldn't", "turn off", "never", "stop", "unbold", "too sharp" (rounder) and "too heavy" (lighter). "Everything except X", "but not in X" and "all but X" keep X as it is now. "Without" is read in the shipped languages, and "sans" means a typeface only before serif or font.
- A typed value always wins. A hex beats a color word. A hex with the wrong number of digits is refused by name and never replaced with a sample. The sign, multi-value padding,
%opacity,emtracking, numeric weights, written-out shadows and "40px tall" are kept. No color is picked when the question gives none. - "In dark mode" carries
--mode darkto every color command, parts included. A change that is the same in both modes, or a dark-mode ask on a light-only theme, says so instead of changing light. - Better parts and properties: side nav items, focus rings as outlines, tab underlines, icons, border colors (darker, subtler, contrast), the overlay, transparent backgrounds, progress bar thickness, smaller headings, underlines, line height and body weight. A question about what something is ("what does --color-accent do") gets the lookup.
- Typos with swapped letters and short forms (
bttn,brdr) are corrected. Portuguese, Italian and Korean words for buttons and rounded are read. - Sequences drop repeated and overwritten steps and stop at 12. Two asks that contradict each other are offered as choices, not run in turn. Changes come before lookups.
- Text output prints each command on its own line and never wraps one. A sequence prints as one line.
--theme ""and a repeated--themeare refused, for every subject. The default theme is the one an editor command changed last, not the newest settings file, andthemeChosenBysays how it was picked.- Pictures: every pixel is read up to 4 million, so 1-pixel lines count. tRNS is honored for gray and RGB pictures. A 0x0 picture names its size. 16-bit pictures are capped at 20 million pixels.
- Parallel lookups in an app with no themes leave no empty
themes/folder. A refusal's commands start the same way as the answer's.
-
astryx experimental theme editor how: answers that are safe, bounded and right. (#11209)- Every command
howsuggests names your theme (the only one, the one changed last, or--theme <name>; with no theme,my-theme, made first), has a real value instead of a<placeholder>, carries no shell comment, and is checked assetchecks it: a command thatsetwould refuse, or that changes nothing, is left out, and the answer says why. - Plain-words questions read negations and more or less ("remove shadows from cards" gives
box-shadow none, "less rounded cards" givescorners less), the values you type (hex, rgb(), lengths, dashed), states (hover, focus, checked, selected, disabled, pressed, invalid), dark or light mode, several changes in one question, a few words in other languages, and small typos. A question with no answer says so in JSON too, with the next commands to try. how <part>writes each condition as the--whenand--stateflagssettakes, or says why no flag reaches it; lists every statesetaccepts; and says when a part has no recorded reads, with commands that still apply.how <token>says when no part in the part data reads a token but Core's stylesheet does.- Lookups take any case, plurals and token names without dashes;
--listtakes the kind anywhere, singular or plural,--list=tokensand a filter that starts with--, and refuses--listgiven twice. - Pictures: a header bigger than 40 million pixels or pixel data shorter than the header says is refused at once; damaged files are refused; see-through pixels are skipped;
--atgives each point's alpha and refuses points it cannot read exactly or that fall outside the picture; any file name works, and other formats are refused by their bytes. setrefuses a value that holds a<placeholder>or a#comment.- A damaged part-data cache is built again, the cache is written whole, and a lookup in an app with no themes leaves no
themes/folder. - Text and JSON start commands the same way, and text output escapes control characters in what you typed.
- Every command
-
astryx experimental theme: data safety and value checks. (#11180)- A refused change puts back only the files that command wrote in that run, each whole, and only while they still hold what it wrote; a file changed by someone else meanwhile, or one it cannot restore, is left and named. The settings and undo history are written inside that rollback, and a refused
newleaves no trace. A link anywhere inthemes/or the theme folder is refused, and never followed or removed. A palette.config.json the editor did not write is kept.showfinds a build that does not match the settings (a command stopped mid-build, a hand edit) and builds it again, saying so. Temp files have their own editor names and are removed by the write that made them; nothing else is ever removed. Run from a subfolder, a command acts on the Astryx project above it, found asupgradefinds it: the search stops at a repository root and never takes the home folder. A package without Astryx inside that project is refused with the folder to run from, a package.json that does not parse is never walked past, and reply paths are absolute when the project is above the current folder. Yarn Plug'n'Play and a package.json without Core get their own messages. A full or read-only disk isERR_WRITE_FAILED. - Commands on one theme run one after the other, so no change is lost. The lock lives in the project's
node_modules/.cache(a folder that cannot be written is refused withERR_WRITE_FAILED); a lock left by a stopped command, or by one on another computer that stopped, is taken over. A command that waits more than 30 seconds is refused with the new codeERR_THEME_BUSY, naming the lock. - Every name the name check accepts builds (
brand-2). Names are at most 64 characters.newrefuses a link or a file where the theme goes, a stray word, a flag given two values, and an empty--like;--headingstakes a weight and a tracking; a refused flag suggests anewcommand. - Settings edited by hand are checked on load, and so is the step
undogoes back to. A saved value the editor no longer accepts names theundo <theme> <thing>that removes it, and that command works; a stepundogoes back to that holds one is passed with that value left out, and the result says so. A damaged undo step drops only itself and the steps before it. A quoted string or a data URL may hold a semicolon. - Token values are checked by their type: time, easing, font, shadow and outline style too, and heading weights as numbers. A value that would break the CSS, read itself, or name a placeholder such as
<color>is refused. Only colors take--mode; a shadow per mode would remove it in both. - Code highlighting, display text sizes and colored icon tokens can be set.
- An exact font family applies on phones too; phones keep their own reading sizes.
- A text size or type scale keeps the base theme's ratio and the theme's heading weights (an exact weight token still feeds them), on phones too.
text-sizetakes 10 to 32 pixels.fontrefuses values that would not build.vibrancyis refused when every color is a gray.undo <theme> <token>names the dial that still writes the token.- Reading a built theme writes no copy into the theme folder.
- A refused change puts back only the files that command wrote in that run, each whole, and only while they still hold what it wrote; a file changed by someone else meanwhile, or one it cannot restore, is left and named. The settings and undo history are written inside that rollback, and a refused
-
astryx experimental theme editor: settings that do what they say. (#11222)-
An exact token or part property always wins over a dial, whatever the order. A changed setting moves last, so it wins over what came before it. A shorthand set after its longhands says it replaces them. A setting for both modes replaces the one-mode settings it would sit under.
-
One mode on a part whose variants each have their own value is refused, with the command that names the variant. A setting saved for a mode a one-mode theme does not have can still be removed. A base theme package that is gone no longer blocks moving off it.
-
--whenmust be one property and value, and on a group it must belong to a member, as--statemust. An empty or repeated--on,--when,--stateor--modeis refused, and so are extra words afterundoandshow. -
undo <theme> <thing> <value>removes the setting only when that is its value. Scope flags without a thing are refused.undo <theme> baseandundo <theme> modeset them back to their defaults. A stored setting this Core does not know can still be removed. -
showbuilds the theme again when its settings were edited by hand or built by another CLI;--sectionwritessheet-<section>.html, not over the full sheet, and takes any case. A setting listed twice is refused. -
spacingscales the base theme's spacing; a corners step starts from the base theme's radius or the whole-theme setting;corners pillkeeps checkboxes square;headingsrefuses--mode;fontrefuses--whenand--stateand takes a preset in any case. -
A change that shows nothing says so. A switch of base or mode lists the parts it restyles and the color notes. A misspelled token in
var()and a typed path or capital letter for a theme get a did-you-mean. Text contrast that is not measured (one variant or state, the soft or outline button) is listed as not checked. The colors inshowgive each mode its own exact value. -
The copied
themecommands nameexperimental themecommands in their refusals.editor newandeditor howno longer claim to replace stable commands their copies replace. A package.json without Core gets the install command. -
A whole-theme token that no rendered part was seen reading is set with a note saying so, not refused. A part that reads the token the user named takes it for whatever property it feeds. A token named for another variant value (
--color-error-mutedwith--when status:erroron a banner,--color-icon-pinkon an icon) is taken. A part name such asconstructoris an unknown part, not a crash. -
A font for one role keeps its font after a whole-theme font, whatever the order.
-
Easings, font family lists,
light-dark()andcolor-mix()colors, shadows and times are checked the way the browser reads them. A shadow may use a token color, any length unit or a stacked shadow token.var()with a fallback, relative colors and system colors are taken. A time is at most 60 seconds. A font name may hold an apostrophe.var( --x )with spaces is checked for cycles. -
Saved exact tokens are checked on every command; one the rules no longer take names the
undothat removes it. -
A size change says that phones keep the base theme's reading sizes, and names scale steps outside 9 to 200 pixels. A refusal that suggests setting a property directly names the property that takes the value. Every suggestion
set,undoandshowgive names the theme and a value it takes, never a placeholder. -
The theme lock lives beside the Core the command reads, and a command outside a project takes none. When
showbuilds again, it says why: a file missing, another CLI version, settings changed after the build, or a build that did not finish.
-
-
astryx experimental theme editor: theme colors now come from the palette generator.set <theme> accent <color>(and the newneutral,success,warning,dangerandinfodials) writes the color as a family inthemes/<theme>/palette.config.json, in the shapetheme palette generatereads, and runs the same generator to writetokens/<theme>.palette.tsand its receipt. The theme's color tokens point at stops of that palette, light and dark from one color, following the stops the official themes use. A token moves to a nearer stop of the same family when it must read (text at 4.5:1, the focus ring at 3:1); the editor no longer mixes colors of its own.showreports the palette, which stop feeds each token, and the contrast behind each choice;how paletteexplains it;undo <theme> accentremoves the family and its tokens. An exact token (set <theme> --color-accent <color>) still wins over the palette. Color dials apply to the whole theme:--onand--modeare refused, with the exact-token command to use instead. (#11134) -
experimental theme preview addchecks the theme before it writes any page, and skips a StyleX template page in an app with no StyleX compiler (the result says why).experimental theme preview appchecks the folder before it builds a--theme, so a refusal writes nothing. (#11134) -
astryx experimental theme preview: the preview pages work in a production build. Leaving the Components page no longer crashes the route: a typeahead part (Tokenizer, CommandPalette) gets a small sample search source. On the Components page, a part renders inside the parent its playground names (Step in a Stepper, a SegmentedControlItem in a SegmentedControl, a RadioListItem in a RadioList), a part that only works deeper inside its parent is left out, a status variant is passed as{type}, ButtonGroup shows three buttons, and layers that stay closed are left out. A component that still throws shows a short note instead of a blank cell. The Overview page is the sample page's content, without a second app shell. Font:editor set <theme> font <name>andeditor showsay near the top when the font's package is not installed, with the exact install line; once it is installed, the nextsetorshowmakes the preview route import its stylesheet. (#11134) -
astryx experimental theme preview: safer refusals and recovery. (#11209)- No refusal suggests deleting or moving files: a damaged theme-preview.json, a page changed by hand, or a file in the way gets plain instructions instead.
--pathat the project root, insrc/or at the routes folder itself is refused: those folders hold the app. An older preview found there is named, with the remove that clears it.- A whole
removestops, deleting nothing, whenpage.tsxwas changed by hand, since it imports the pages. - A formatter run no longer counts as a change by hand.
editor setandshowname the preview files they left as they were (previewStale). - A recorded page whose file is gone is written again, or left out of the nav, so the route always builds. Moved pages get a hash. A failed write leaves no temp file or empty folder, and says which step failed. A read-only file keeps its mode.
preview app --themewaits for other commands changing that theme, and its retry suggestion keeps--theme.
-
astryx experimental theme preview: safer adds, removes and starter apps. (#11209)- Preview pages go in
_pages/, a folder Next never routes, so a preview at the project root or insrc/no longer turns on the Pages Router. A preview an older release wrote intopages/is moved on the next add or remove. - A refusal deletes nothing:
remove <page>loads the theme before it deletes a file, and names the whole-preview remove when the theme does not load. A theme that is gone is replaced by the app's own theme, with a note. - Only files the preview wrote are replaced or deleted, and never one changed by hand since (theme-preview.json records a hash of each).
removenames the files it kept, the ones already gone, and the ones it wrote again. - Files are staged and renamed into place together; a failed write puts every file back and is refused with
ERR_WRITE_FAILED. - A damaged theme-preview.json is refused with
ERR_THEME_INVALID, naming the file and the way out, in add, list and remove. --pathis refused when it is a file, inthemes/,node_modules/or a Pages Router folder, in a folder Next does not route, or written with Windows separators,~or white space at either end. The open line drops route groups and encodes each folder name.- Without
--path, list and remove find a preview recorded for a theme. add: an empty--templateis refused; a block passed to--templatesays it is not a page and suggests page templates as commands;--topis taken as typed and only with a description; a description may be several words without quotes, and only its first 40 different words are ranked; a package that is named but not installed counts as missing; a changed theme writes the default pages again; a page file an interrupted run left behind with the same text is taken over.- Suggested commands are shell-safe, and a wrong
--themenames the closest editor theme. list,removeandpreview apprefuse extra arguments.preview app: the app is written into a temp folder and moved into place, so a failure leaves nothing; folders inside the routes,themes/ornode_modules/, files, dangling links and odd names are refused; a folder with only.gitcounts as empty; every open font the theme names is added with a pinned range; the Colors page is included; a one-mode theme starts in its mode; a stale theme build is rebuilt first; the home page links to the preview, the.gitignorecoversnode_modules, and the open line is quoted.
- Preview pages go in
-
astryx experimental theme editor how --listis now a switch, as--listis everywhere else in the CLI: the first word says what to list and any words after it filter the list (how --list tokens accent), and--listalone lists the kinds. Reading a built theme no longer writes a temporary file intothemes/<theme>/; it uses the project's cache folder. (#11173) -
astryx experimental theme: fixes from a third theming round.preview add "<description>"adds the closest page when no page is exactly the one described, andmatchedsays which words of the description it covers; only a description no page relates to is refused, and its suggestions repeat--themeand--path. A page the app cannot show is skipped and the next match is taken, from the ranking and then the template search. A page's nav label is its template's name, however it was added. The accent and status fills keep your exact color in dark mode too when text on them reads at 4.5:1; otherwise dark mode uses the nearest shade that reads, and the result says why. Settingvibrancynames the status colors the theme does not set, which keep the base theme's colors (and so do info-tinted surfaces such as colored cards), with the commands that bring them in.newlists the mode it applied with the other settings.showprints your exact value where an exact token setting wins, and sizes, numbers and fonts once instead of per mode. Notes name a part inside the part a token is set on ("button inside toast"). A token no part reads says it changes nothing you see now.hownames the resting border (border … --when variant:secondary), answers a part's fill and text together ("light gray button with dark text"), and answers a status background ("the error background") with the status color. The Overview page's tabs and other controlled samples no longer throw when clicked, and its open popover and tooltip keep clear of each other at narrow widths too. (#11163) -
astryx experimental theme: fixes from a fourth theming round.preview add "<description>"adds an app page when the description names one (an issue tracker, a board, a dashboard, an app screenshot) instead of a hero, takes the side hero for a left-aligned or split hero, says that no page has a top nav of its own, and always says why it picked a page. A basepreview addsays which pages were there already and are written again (refreshed).howgives each token a value of its own type (--color-border "<color>",--border-width 1px; only theborderproperty takes a whole border), keeps the fill for a named tint ("light blue tint with blue text"), and no longer reads "border color" as a fill.undo <theme> <thing>names the setting it removed (removed) instead of printing it as the value in effect. A light-only or dark-only theme lists only its own mode's shades and notes.showlists corners or spacing set on a part or group, with what its parts get beside the whole-theme value (partValues).neutralnames the base theme's page background and the command for a white page.typesays what it still sets whenheadingssets weight or tracking;typeandtext-sizekeep each other's part of the scale in any order. A token no part reads says which tokens are built from it instead of claiming it changes nothing. An installed font says it is installed. A color's text switching between white and near-black says why. (#11165) -
astryx experimental theme: an accent or status fill keeps your exact color in dark mode only when it also stands out from the dark page (3:1) besides text reading on it; otherwise dark mode uses the nearest shade that does both, and the result says why. The preview's Colors page marks such a fill under the shade it really uses, for dark mode too. Suggestions frompreview addquote the options they repeat, such as a--pathwith a space. (#11165) -
astryx experimental theme:preview add "<description>"picks an app page only when the description names the app in a phrase (an issue tracker, an issue detail, a kanban board), so a page with a "buy tickets" button or a landing page for an AI tool no longer gets an app page; a detail view comes before its list, and the ranked page stays first when it already is that app.howkeeps the fill when a color word belongs to it ("a dark card with a thin border", "colored buttons with a border").shownames the radius token each part's corners really read. Theneutralnote offers a white page only in a theme with a light mode. When your exact accent or status color cannot be the dark fill, dark mode uses the shade nearest your color where text reads at 4.5:1 and the fill stands out from the dark page at 3:1.undo <theme> <thing>printssettingandremovedas its JSON does. (#11168) -
astryx experimental theme: fixes from a full review. (#11173)preview app --themecopies the whole theme folder, generated colors included, byte for byte, so the new app type-checks.preview app <dir>writes only into a new or empty folder (its--overwriteoption is gone): a folder that is not empty is refused, with a free folder name to use.- Translucent text and backgrounds are measured as drawn: each is laid over what is under it before contrast is checked.
- Two commands can run at once: each render uses a folder of its own.
- A change that is saved but cannot be checked says "saved, not checked" and exits 0.
- A light-only or dark-only theme applies only its own mode's settings and names the others, writes one value for the colors it sets, and its in-app preview starts in that mode with no switch.
- A damaged undo history no longer breaks
set(a new history starts, with a note), andundosays how to fix it. - Colors are picked against the theme's own exact page and surface colors.
- A change that changes nothing builds nothing and adds no undo step.
undo <theme> <thing>says what applies now (now).shownames the radius token each part reads, or says it is unknown.howanswers border-only questions without a fill.- The preview picker matches app and article pages by phrase: a news story or blog post gets an article page, never a record page; a description no page relates to (no phrase, and fewer than three words or two fifths of them matched) is refused.
- A preview outside the routes folder says the app does not serve it.
- More than eight contrast problems end with "and N more".
-
astryx experimental theme editor show: the text output prints the palette paths and contrast notes whole instead of one character per line, and keeps one line for each token a palette family feeds. (#11149) -
astryx experimental theme: fixes from a real theming round.headingsnow keeps heading weight and letter spacing whatever order it andtypeare set in;typesays what it no longer sets, andshowmarks a setting another one partly hides. A steeptypescale (editorial, display) keeps text below the base size at its standard sizes, so small text stays readable.showlists every setting with its whole scope (--on,--when,--state,--mode). A gray color (accent #171717) makes gray shades in light and dark instead of inventing a hue.neutralno longer tints the page background (--color-background-bodystays the base theme's).setaccepts every token a color,type,headings,corners,spacingortext-sizewrites, so a dial's notes never name a tokensetrefuses. When the components cannot be rendered (two copies of React, say),new,setandundosave the change and say "saved, not checked" with the cause and the codeERR_THEME_NOT_CHECKED, instead of failing after writing;howsays what it could not check instead of listing no readers. A font that is not installed names the closest font that needs no install.howanswers each aspect once, turns sizes in the question into--when size:…, takes each color from the word it belongs to, says when text takes the page's text color, andhow --listwith no kind lists the kinds.preview add "<description>"says what it matched and why, leaves app frames out, refuses with the closest pages to name when no page really matches, and takes the next match when a page cannot be shown here. The preview fills the whole window with the theme, shell and edges included; the Overview page now shows what themes most often break, and each cell of the Components page names the command that changes it most.show --groupis nowshow --section: it picks a section of the theme-building sheet, so "group" only means a group of parts (--on inputs). (#11149) -
Icon sets: authoring a set is easier. An author sees which icon meanings the bundled templates use that the set does not map yet, such as
documentandshare; a copied template shows a placeholder for each. Only the experimental icon commands, the icon-set lists inintegration checkand Doctor, two icon definitions' search words, and the icon-set guide change. (#11090)- Authoring receipts.
experimental icon new-set,add, andmapend with one line when the set leaves template meanings unmapped: how many there are, the most used first with their template counts, and themapcommand to run. The JSON addstemplateMeanings: {unmapped: [{definition, templates}]}. A dry run adds nothing. experimental icon --definitions. Each definition shows how many bundled templates use it (templates) and whether the set maps it (mapped). The set is the one--setnames, else the project's main set, else the only set of the icon-set package you run it in.--setis now accepted with--definitions.integration check. Each set'siconSetsentry addstemplateMeanings, printed under "Template icon meanings not mapped". It is never counted and never fails a check, even with--strict.new-set --adapter ./<path>#<export>. Declares the adapter a library of icon data objects or SVG strings needs, so the set wraps it with no hand edit to the data file.- Clearer receipts. The first
new-set --frominto a set with no icons says the set was created, not refreshed.add --variant <look> --allnames the first ten icons the module lacks and how many more; the JSON still lists every one. The command that adds unlisted sets as backups (fromicon useand Doctor) names every set the same way: by its name, or as<package>/<set>when two packages ship that name. - Better suggestions. A suggested icon whose id only starts with the definition's name and adds another thing (
delete-left, a backspace key) comes after the icons the definition's words name (trash), and a word two definitions share (store) comes after the words only one has.saveadds the word "floppy disk", andbankreads "building library" instead of "library".
- Authoring receipts.
-
Icon sets: copied templates draw the right icons in more sets, once a set maps the five new icon definitions. Only the experimental icon-set rewrite of
astryx template, five new icon definitions, the bundled templates'iconsdeclarations, and the icon-set guide change. (#11142)- Distinct icons keep distinct meanings. Some bundled templates gave two different icons one meaning, so both drew the same icon in every set. The Settings Dialog's "Keyboard shortcuts" and "Developer" rows, and its paintbrush and swatch, now draw different icons, and so do the icon pairs in Table Filter, Theme Showcase, and the Button Group showcase block. New icon definitions:
keyboard,paintBrush,documentSearch,bookmarkAdd, andwallet. No set released before this change maps them, so with such a set the Settings Dialog's "Keyboard shortcuts", "Color theme" and "Verbose logging" rows, Table Filter's save-view button, and Theme Showcase's wallet draw the placeholder. A set draws these icons once it maps the new definitions (astryx experimental icon map <definition> <icon> --set <main>); until then each draws the placeholder, unless a set in your list wraps the template's library. - An icon from a set's own library stays. When a set in your list wraps the library a template imports an icon from, the icon is one your project chose. With the main set's own library, the icon keeps its import as written. With a backup set's library, an icon that no set maps keeps its import instead of becoming a placeholder. The report lists each one under
keptwith the reason.
- Distinct icons keep distinct meanings. Some bundled templates gave two different icons one meaning, so both drew the same icon in every set. The Settings Dialog's "Keyboard shortcuts" and "Developer" rows, and its paintbrush and swatch, now draw different icons, and so do the icon pairs in Table Filter, Theme Showcase, and the Button Group showcase block. New icon definitions:
- Open a sign-in dialog from the theme showcase's Sign in button, which was an inert link, so a theme's dialog header, close control, fields and footer buttons can be reviewed together. (#11130)
-
astryx component <ExampleName>, given an example block, still fails withERR_UNKNOWN_COMPONENTand the same name suggestions, but its message now says the name is an example block, thatastryx template <ExampleName>prints its source, and whichastryx component <Parent> --blockslists it. (#11153) -
astryx searchno longer counts a component or hook keyword that is another entry's name as a match for that entry, sospinnerlists Spinner without NumberInput beside it. A keyword still counts when the entry's own description uses the word, or when it names the entry's own family member or its hook.buildreads keywords as before. (#11162) -
astryx templateandastryx buildread a template's needs from its real imports only. Words in comments, strings and JSX text no longer count as packages, so templates such asform-wizard,form-wizard-verticalandtable-treeno longer ask you to installNext,Distributionorcanvas-editor. A path alias such as~/libor#internal, or a name npm does not accept, is not reported as a package to install. (#11224) -
Template placeholder images follow dark mode. The placeholder a copied template page shows in place of its demo pictures is now a soft gray at low opacity that takes its tone from the surface behind it, so it no longer shows as a bright light-gray block in a dark theme. The gallery-hero, side-gallery and lightbox gallery examples no longer warn about duplicate keys when every picture is the placeholder. (#11150)
-
Theme commands no longer replace files they do not own, and they report the right errors.
theme template --overwritereplaces only an earlier copy of the template or a theme source file, and refuses folders, blank paths and paths that are not.ts.theme eject --overwritenever writes into another theme's folder or a theme the theme editor made, and the result names the packages the fork needs (missingPackages,installCommand).theme build --out <folder>writes<name>.cssinto the folder; a build never replaces its source, or a file at a path--outnames that it did not write, and two themes with one name in one run are refused (a header-less output of a CLI before 0.6.7 at the default paths, family outputs included, is still replaced). When--outnames a file that a CLI before 0.6.7 wrote, the build says so: delete that file and run the same build again. Twotheme add,useorremovecommands at once keep both changes. A theme whose local folder or package is gone no longer blocksuse,addorremoveof other themes; it is left out with a note; one broken local theme folder no longer hides every other theme fromlistandadd.addsays which owner it chose when a local theme shadows a package theme. An option without its value isERR_MISSING_ARGUMENTwith the command's usage, andastryx help <group> <command>prints that command's help. (#11210) -
The theme showcase's Sign in dialog opens empty each time, not with what was typed before a Cancel. (#11139)
-
The CLI turns on Node's compile cache, so a run skips most of compiling the CLI's modules again. The cache sits in the user's own folder in the system temp folder (
node-compile-cache-<uid>), used only once it exists (the first run on a machine just makes the folder, so a one-off run pays nothing for it) and only while it is a real folder the user owns and no one else can reach. Where the system has no user ids (Windows), that cannot be checked, so the cache stays off.NODE_DISABLE_COMPILE_CACHE=1turns it off. A cache that cannot be read or written is skipped without a word, and every command prints the same output. (#11217) -
astryx --help,-handhelpprint the root help from a command list stored in the package when it is published, instead of loading every command first. The list holds the terms and descriptions the fully loaded CLI prints, so while every command loads the help reads the same. A command whose module fails to load is listed in the published root help under its normal description, instead of being marked as failed; running that command still reports the failure. (#11194) -
Commands that read the docs Astryx ships (
search,build,docs,template) read each shipped doc that holds only plain data from a copy of its exports stored in the package when it is published, instead of importing the file. The copy is keyed by the file's text, so an edited doc, a doc that imports or calls anything as it loads, and every integration's docs are imported as before. Every command prints the same output. (#11191) -
searchandbuildread the components of a template Astryx ships from a list stored in the package when it is published, instead of parsing the template's source on every call;templatedoes too when it leaves a template's demo content unchanged. The list holds exactly what parsing returns, keyed by the source text, so a changed source or an integration's template is parsed as before. Every command prints the same output. (#11190) -
A process that calls
themeTargets()more than once scans Core's component docs once. It reuses that scan while every folder and doc it read is unchanged, as the docs and search catalogs do. A Core reached through a symlink, as a project's node_modules reaches it, shares the scan of its real path. A one-shotastryx theme targetsand the theme build's target check still scan once. Every command reports the same targets. (#10981)
-
The calendars guide names every calendar by its CLDR name, such as Minguo, Dangi, Hijri, and Ethiopic, with its identifier beside it. (#11102)
-
The token tables in
astryx docssay that their values are Core's defaults, which a theme replaces: the columns read "Core default", "Core default (light)" and "Core default (dark)". The Color topic also says that each theme defines its own values and thatastryx theme listshows the themes that are available. (#11089)
- Internal: the module loader imports a user module through the same small module the doc importers use, which the CLI's own test project loads natively, so a theme build's doc reads no longer time out its tests on a busy machine. No change to any command's output. (#11119)
Thanks to everyone who contributed to this release:
@AKnassa @bstcoc @cixzhang @fullstackhacker @humbertovirtudes @hurrymaplelad @imdreamrunner @josephfarina @korkt-kim @nynexman4464 @SebTardif @utkarshpatwa393-sys @vjeux @whispering3
Full Changelog: https://github.com/meta/astryx/compare/v0.7.13...v0.7.14
v0.7.13
Astryx 0.7.13 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.12 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.13 @astryxdesign/cli@0.7.13 # plus every other @astryxdesign/* package you use, at 0.7.13
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
Tokenizer forwards BaseTypeahead's
menuandonOpenChangein its inline presentation, and its handle gainsopen()andclose(). A token whose own button callsopen()with a dialog-role menu opens the dialog, and Escape returns focus to that token: focus that a press puts on a token's control, and the menu's focus return, stay there instead of moving to the input. The sheet presentation keeps its own sheet. (#10624) -
Typeahead: Backspace or Delete on the selected Token clears the value, as the clear button does, when the clear button shows: it calls
onChange(null), announces the cleared value, and moves focus to the empty input. WithouthasClear, the keys start editing, as a click does. (#10847)
-
A swizzled component and the package's components now announce through one pair of live regions: messages from both join the same frame, and a copy no longer mounts a second pair that screen readers would read twice or skip. The modal announcement route is shared the same way. No API changes. (#10996)
-
BottomSheet: a finger's pull on the sheet's content at a scroll edge cancels the content's native pan as soon as the pull reaches a tap's wobble (5 px), before the sheet's own drag begins at 8 px. In iOS Safari the first
touchmovea page keeps committed the touch to the content's scroll, so a slow-starting swipe down rubber-banded the content under the finger while the sheet moved beside it. A tap that wobbles less than 5 px keeps its click, while a tap that wobbles 5 to 8 px toward the edge now loses it. A real scroll is never cancelled. A mostly sideways swipe on a horizontal row is not cancelled before the sheet's drag begins; a first move past 8 px starts the drag in any direction, as before. (#10033) -
A swizzled overlay that carries its own copy of the layer runtime now shares the package's: one layer stack, one modal outlet order, one gesture counter, and one record of outside dismissals, popover show and hide operations, layer surfaces and press claims per page. Before, such a copy kept its own, so Escape over a swizzled HoverCard inside a package Dialog could close the Dialog too, and the two copies could race each other's popover operations or miss each other's outside presses. No API changes. (#10998)
-
A disabled Link stays announced as disabled, with its own role, when the caller also passes
aria-disabledorrole. Before, those caller props replaced Link's own, soaria-disabled={false}announced a disabled link as enabled, androle="button"announced a button that does nothing. (#11030) -
Markdown's public parser drops every data: link and image URL, and
<Markdown>renders data: links and images as source text. (#11020) -
Carousel snap paging: in Safari, a held row's stops and span stay on each item's start edge when the settle moves between an item's rect read and its translate read. (#10992)
-
Add hook documentation and interactive sparkline example block for
useDirection, detailing render-time direction handling and CSS logical properties best practices. (#10547)Also released in
@astryxdesign/cli. -
InternationalizationProvider has a calendar example: the provider's
calendarprop shows aCalendarand aDateInputin the Japanese or Buddhist calendar, and the value stays a Gregorian ISO date. Both calendars work withoutTemporal. (#10135)Also released in
@astryxdesign/cli.
- Internal: Table's row virtualization now runs on one shared list-windowing module inside Core, which later long lists will reuse. The undocumented
@astryxdesign/core/internal/virtualizationentry gives Lab the same module. Table's behavior and public API do not change. Internal entries are outside the public API and its compatibility promise. (#10810)
-
astryx discoverlists the experimental TabBarMoreList component from@astryxdesign/lab. (#10619) -
Icon sets: a project picks one main icon set and backup sets in order, and an icon no set has becomes a placeholder in the copied file. Only the experimental icon commands, projects that set
experimental.iconSet, templates that declareicons, and the icon-set guide change. (#10959)- Main set and backups.
astryx experimental icon use <main> --backup <set>(repeatable, order kept) writesexperimental.iconSetas a list, the main set first; with no--backupit writes the plain string as before. The receipt addsbackups, the installed sets the list leaves out (unlisted), and the command that adds them (next).experimental icon --listshows theorderand each set'sroleandrank, and, when two or more sets are installed and none is the main set, the command to run. A CLI before 0.7.12 refuses the list form, andusewarns when the project's CLI range admits one. - Copied templates follow the list.
astryx templatetakes each icon from the first set in the list that has its meaning, never mixing sets within one icon, and reports the set used, a missing look (variant: {asked, used}), and each set used with its license (icons.sets). - No stray library imports. An icon no set in the list loses the template's original import. The copied file declares a small
MissingIconcomponent once (a dashed square, 1em, in the current text color, hidden from screen readers unless a use gives it a label), and each place the icon was renders it, with a comment naming the meaning. It needs no new package. The output prints a note naming the meaning and both fixes (map it in the main set, or add a backup set), and the JSON lists it inicons.placeholder. - Doctor. With the opt-in, the
icon-setscheck fails when the list names a set that is not installed, withdrawn, or shipped by two packages, and when more than one set is installed and the list leaves one out. A newicon-placeholderscheck warns while copied code still uses the placeholder, naming each file and meaning; a commented-out or quoted copy does not count. Projects that have not opted in see no change. - Labeled template icons. Every icon a bundled template uses now declares its meaning, with 30 new icon definitions.
integration checknotes an icon a template imports but does not declare (template_icon_undeclared), in a package whose templates declareicons: an import from a module the package declares icons from, which the template renders as an element with no children or passes as a value. Any other import from that module, such as a type, a function it calls, or a provider with children, is listed as not checked. The note fails--strict --nextand leaves--strictas it was. A generic renderer (a bareIcon, or one every use gives an icon prop) and an import that matches an icon by its name only are listed as not checked instead.
- Main set and backups.
- The CLI adds a
BaseTypeaheadMenublock: a BaseTypeahead whose listbox menu shows information around the result list, and whose pick or filter button opens a dialog-role menu on the same layer. (#10625)
-
dependency floors move to current releases: the build package needs autoprefixer 10.6.2, browserslist 4.29.5 and lightningcss 1.33.0; the CLI needs ignore 7.0.14, jscodeshift 17.4.0, linkedom 0.18.15, zod 4.6.7 and @stylexjs/babel-plugin 0.19.1; each theme needs lucide-react 1.66.0. Peer ranges do not change. (#10709)
Also released in
@astryxdesign/cli(templates).
Thanks to everyone who contributed to this release:
@cixzhang @humbertovirtudes @imdreamrunner @josephfarina @nynexman4464 @utkarshpatwa393-sys @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.12...v0.7.13
v0.7.12
Astryx 0.7.12 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.11 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.12 @astryxdesign/cli@0.7.12 # plus every other @astryxdesign/* package you use, at 0.7.12
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
BottomSheet: at rest, a sheet's content starts below the grab bar whatever its
padding, so the first line is no longer drawn through the bar's fade. The block-start inset is never less than the bar's height (--spacing-6): the band under the bar is not padding a child escapes, so a loneSectionstarts below the bar too; scrolled content still passes beneath it. A sheet at the default padding starts its content 8 px lower, one withpadding={0}starts it below the bar, and one whose only child is aSectionstarts that Section 24 px lower and grows by the same amount. Core's ownpadding={0}sheets (the touch date and time pickers, the DropdownMenu and ContextMenu sheets, and the PowerSearch and Tokenizer sheets) no longer reserve that band themselves, so the pickers, PowerSearch and Tokenizer look the same and a menu's first row sits 8 px lower. The CLI'stable-filterandtable-inboxpage templates drop their own band too, so it is not doubled. (#8558)Also released in
@astryxdesign/cli. -
ChatLayout keeps its composer on top of the software keyboard where the visual viewport shrinks for it, instead of leaving it underneath until the browser scrolls the whole page. In Chrome on Android the dock rides Gboard's measured slides up and down, in step with the keyboard. In Safari on iOS (in the browser and as a home-screen app) and in Firefox for Android, it moves above the keyboard once the browser reports it. Where a page sets
interactive-widget=resizes-content, Chrome shrinks the page for the keyboard itself and the composer stays above it without moving. A conversation at its newest message stays there, and the rest of the transcript can still be scrolled above the composer. On a touch screen, in a top-level page, every way into the composer's text (a tap, the keyboard's previous and next buttons, Tab, the input'sfocus()) reaches it without the page scrolling; under a mouse or inside an iframe the browser's own focus applies. In a top-level page on a touch screen, the composer's wrapper (without the scroll-to-bottom button) is a group with no name. When the keyboard's Done ends typing, focus rests there (it is no tab stop), so the next tap or Tab starts from the composer; it shows the focus ring after keyboard input only. A tap that focuses the composer still raises its click once. Under a mouse or inside an iframe, the wrapper is a plain container. Under Reduce Motion the composer never travels with Gboard: it cross-fades to its place above the keyboard. Under a mouse, with no software keyboard, nothing changes. The browser-support guide's section on the on-screen keyboard covers ChatLayout's composer. (#8176)Also released in
@astryxdesign/cli. -
Kbdshowsmetaas ⌘ on Apple platforms, where it showed "META". (#10528) -
Kbdshowsctrl,altandshiftas text ("Ctrl", "Alt", "Shift") off Apple platforms and before hydration, andmetaas "Win" off Apple platforms and before hydration, instead of Apple's ⌃ ⌥ ⇧ symbols and "META". Apple platforms keep the symbols, and spoken names are unchanged. The text comes from the catalog, so other locales can translate it. (#10524) -
A
LayoutPanelthat takes auseResizableregion in itsresizableprop slides closed and open from the edge facing itsResizeHandlewhen the region collapses or opens, under every pointer, with the content beside it moving on the same motion: throughcollapse(),expand(), Enter, a double-click, the grow arrow, a controlledisCollapsed, or a lift past the collapse threshold. A drag that reopens the panel follows the pointer, and Reduce Motion is honored. A hand-builtResizablePropsobject does not slide. No prop or option is added. (#9989) -
On a phone or tablet, drag a Lightbox photo down to close the viewer, as in the iOS Photos viewer. The photo follows your finger and shrinks a little as you pull, while the backdrop fades and the controls fade faster. The backdrop fades without its blur, which comes back once it is at rest. Let go moving down, however short the pull, and the photo carries on down as the viewer closes. Flick it back up, or bring it back to where you started, and it springs back into place. A zoomed photo still pans when you drag it; the drag to close starts from the fitted size. Videos are unchanged. (#8215) The viewer's controls now sit in their own layers, which fade together during the drag.
-
A Lightbox gallery now pages the way the iOS Photos viewer does. On a phone or tablet, drag or flick between items: the row follows your finger, and the release lands on the next or previous item, one at most. A gap of 40 px separates the items while they move. A zoomed photo pans with your finger until it reaches its edge; a new drag from that edge moves to the next item. A photo you leave zoomed returns to its fitted size once the gallery rests. Under a finger, the previous and next buttons and the arrow keys slide to the item instead of swapping it in place. (#8197) Each item's caption moves with its item, right under its photo.
onIndexChangealso reports a swipe.Lightbox now loads its touch code with it, as Toast and Slider do. Its import grows from 51.4 KB to 99.6 KB gzip with the zoom and paging beneath, mostly shared touch modules that a page loads once; Lightbox's own code adds 14.1 KB minified.
-
ListtakesanimatedLayout, the handle fromuseAnimatedLayout({containerRef}), andListItemtakesitemKey, the row's identity. With the handle, when rows are inserted, removed or reordered, an inserted row enters, a removed row (a swiped one with its action showing) collapses in place, and a row that crosses rows moving the other way rides above them with the surface color behind it, as an iOS table's opaque cell does. The rows after a change and the content after the list, up to the handle's container, glide to their new places. All of it runs on one shared motion and starts together, under every pointer; under Reduce Motion nothing travels. A row without anitemKeychanges at once, and without the handle the whole list does. (#8106) -
While a reorderable
Listrow is in reorder mode, a hint anchored to its handle, in the keyboard hint's layer and theme roles, shows the moves and Done. Each is a button that does what its key does and leaves the focus on the handle, so a row can be reordered by taps alone: the handle, the moves, then Done. (#8139) -
createReorderable({onReorder, isReorderable})makes a collection's reorder behavior, andListtakes it asreorderable: eachListItemwith anitemKeygets a reorder handle at its end, and each committed move callsonReorder({key, to})once, with the row's key and its index after the move. On a touch screen a finger held still on a handle picks up its row the way an iOS table's reorder control does (a flick on it still scrolls): the row stays in its place, dimmed, while a copy of it follows the finger and an accent line marks where it would land; the other rows stay still, the page scrolls near the edges, and on release the rows rearrange, gliding to their new places. A pen held on a handle picks up its row the same way where the primary pointer is coarse. A mouse, or a pen where the primary pointer is fine, drags a handle at once with the same copy and line, and rows take their places without motion; a cancelled drag puts everything back at once. Without a drag, a click, Space or Enter on a handle turns on reorder mode for its row: the insertion line marks the row's place, each arrow key moves it a place at once, announced with its place and neighbours, and Escape or another activation ends the mode, keeping the moves. The object'sstart(key)enters the same mode from the app's own UI, such as a row's context menu. A List withoutreorderableloads none of the reorder code. (#8139) -
A
ResizeHandlethat any pointer pulls past the maximum, or under the minimum, of a region whose pane aLayoutPanelrenders now moves the handle with resistance, at most about 8 px past the limit and over the content beside it, while the panes keep their sizes, and the handle springs back to the limit after the lift. A panel sized by the region'ssizealone stops at the limit. A collapsible region no longer collapses mid-drag: only the lift collapses it, when the pointer is pastcollapsedSize, or released fast enough to come to rest past it, and aLayoutPanel's pane slides shut on a spring from the release velocity. Any other lift under the minimum returns to the minimum. A pointer that grabs the handle again catches it where it shows. Arrow keys still stop at the limit. Reduce Motion lands both at once. (#10292) -
Tables can window fixed-height flat data: pass
useTableRowsVirtualization({rowHeight, initialViewportHeight})toTable.virtualization. Table keeps the complete data and row identity, mounts only the rows in its viewport plus a few overscan rows, keeps native table semantics with full-table row positions, keeps the focused row mounted, and falls back to rendering every row for content or geometry it cannot window. Tables that do not opt in are unchanged. (#8280)Also released in
@astryxdesign/cli. -
useTableRowsVirtualization'sviewportHeightis renamedinitialViewportHeightbefore the hook's first stable release. It only sizes the first window, on the server and before the viewport is measured; it no longer sets the Table's height. A windowed Table scrolls inside the height its parent gives it, so give the parent a height.rowHeightis unchanged. (#10894) -
Table plugins can now read where a row sits. Table passes each body row and cell transform an immutable
TableRowContext(the row's key, its zero-basedlogicalIndexin the complete data, the row and header counts, and the row model). It passes the scroll-wrapper transform aTableRenderContextwith a stableviewportreference. A plugin declaresrowModel: 'flat'when its body transforms keep one row per data item.useTableSelectionanduseTableStickyColumnsdeclare it.useTableRowIndex()without options now numbers rows from the context (passingdatastill numbers from that array), and rows that move re-render only for plugins that read the index. Read context values during the transform; a later read from a callback warns in development. The CLI's numbered-rows block no longer passesdata. (#10171)Also released in
@astryxdesign/cli. -
Windowed tables stay windowed with row selection and row numbers. A windowed row-number column widens to fit its last number before that row mounts, at the table's font and density, and pinned columns after it move with it. (#10658)
-
Under the touch presentation, ToggleButtonGroup tracks a finger's or a pen's press across its toggles, like a menu. Press a toggle and slide across the others: the highlight follows, and only the toggle you lift on changes. Lifting outside the group changes nothing. A mouse press is unchanged: it acts as a native toggle's, on the toggle it began on. With a finger, a toggle the group tracks keeps its 44 px target, now drawn by the group. A toggle without a value keeps its own press, and the keyboard is unchanged. Before, each toggle tracked only its own press, and sliding off it changed nothing. An enabled ToggleButtonGroup root is position: relative under a coarse pointer, so absolutely positioned children anchor to the group. With a fine primary pointer, the group is unchanged. (#8660)
-
Under a coarse primary pointer, expanding a
TreeListrow glides the rows below it to their new places on the shared layout glide while its children fade in on the same timing, so the tree moves as one. A collapse fades the children out as the rows below glide up, and the chevron turns on that timing. The rows used to appear and leave in a single frame. Without ananimatedLayouthandle the motion stays inside the tree, so content after the tree takes its place at once, and the tree clips its bottom edge while it moves so no row paints over that content; pass a handle for it to glide too. The guide lines beside a group now show and hide with its rows. With reduced motion on and a finger, the children fade in where they land. With a mouse the rows still change at once. Under every pointer, a guide line now ends at the last row it joins instead of running on beside an expanded last row's children. (#8088) -
BaseTypeahead takes
menu, which chooses what its anchored menu shows while Astryx keeps the layer: its position, top layer, outside press, Escape, focus return and ARIA.{role: 'listbox', render}places information such as a header or a key hint around the result list, and anything a person acts on stays a result, so the arrow keys reach it (a control outside the list warns in development).{role: 'dialog', label, render}shows content that takes focus in a dialog named bylabel; closing it returns focus to the element focused when it opened, or to the input. A newhandleRefexposesopen()andclose(), andonOpenChangereports each change; there is no controlled open state. Callingopen()fromonChangekeeps the menu open, so a pick can switch the list to a dialog on the same layer. Typeahead forwardsmenuandhandleRef. (#10544)
-
a month position past the end of a Gregorian-aligned calendar's year constrains to that year's last month in calendarMonthFromYearMonth and useCalendarDays, instead of returning a NaN CalendarMonth and laying out the next year's January (#10461)
-
Declare renderer-owned DOM boundaries so decorator overlays mount outside managed content without changing safe inline hosting. RichTextEditor also mirrors its
dirprop onto the wrapper around the editable surface, so the editing surface and its content blocks, the placeholder, UI rendered throughplugins, and relocated overlays followdir; the editing surface previously kept the surrounding direction. (#7633)Also released in
@astryxdesign/richtext. -
On Android, text follows the reader's system font scale in every theme with no setup, in browsers that report
env(preferred-text-scale)(verified on Chromium and on Chrome stable). The rootThemereadsenv(preferred-text-scale)and scales every font size by it, as it already follows Dynamic Type on iPhone. Before, the system font scale reached Astryx text only when the page added<meta name="text-scale" content="scale">. A page withcontent="scale"keeps working as it did: its root font size carries the scale, and the rootThemeadds none. Browsers without either see no change.astryx docs typography/type-scaledescribes it. (#10727)Also released in
@astryxdesign/cli. -
Motion: in WebKit on Linux, the last frame of an
animatedLayoutchange shows where each motion ends once a frame has drawn the motion near its end. Under load, that frame, and every frame of a long task over its end, could show a glide, an exit's fade or an indicator's turn part of the way through: a collapsingTreeListdrew the rows below 44 px back, its leaving rows half faded and its chevron mid-turn. A long task that starts before that frame, or a motion near its end only at its last keyframe, can still show it. At normal speed the motion is unchanged. (#10663) -
Motion: a Switch's value change mid-travel keeps the thumb's running speed. A rebase toward the new rest shifts the curve whole. (#10369)
-
Avatar: initials are drawn as generated content with empty alternative text instead of text, so axe's Label in Name check (
label-content-name-mismatch) no longer flags a link or button avatar that shows initials. The accessible name, the name tooltip and the initials' appearance are unchanged. (#10816) -
Under reduced motion, a
BottomSheetthat a finger's swipe dismisses fades out where the finger left it. Before, it jumped back to its open position in one frame and faded from there. With motion, the next open after such a swipe rises from below the screen again, instead of starting where the finger left the sheet. (#10925) -
BottomSheet: a drag reads its release velocity from Core's velocity tracker, on each event's own timestamp, also when a touch drag starts on the sheet's content. The release depends on the last two moves, so a move that reaches the page late earlier in a flick no longer slows the flick. A hold weighs on the first move after it, as iOS's filter does. Two rules differ from iOS: a finger that holds still for more than 40 ms before the lift releases nothing in motion, and a release needs two moves. (#10463)
-
A stacked
BottomSheetwhose close waits in a suspended transition takes over the dim when the sheet beneath it closes, so the page behind it stays dimmed. (#10776) -
BottomSheet: an open sheet that renders again no longer reads the viewport height. It keeps the viewport height that its
resizelistener reads, so a tap that renders the sheet again forces no style recalculation or layout in React's commit. The sheet's height, reserve and detents are unchanged. (#10363) -
Button: disabled buttons no longer render the native
disabledattribute. They stay focusable in keyboard tab order, keep focus when they become disabled while focused (a link Button, which becomes a<button>when disabled, still moves focus), and exposearia-disabled="true". All activation paths (mouse clicks, Enter, Space) and clickAction/onClick callbacks remain blocked without losing focus to the document body. A disabled named submit Button withholds its name sonew FormData(form, submitter)omits its value. A ButtonGroup whose members are all disabled (whether on the group or individually) keeps its one Tab stop instead of dropping out of the Tab order or giving every member its own stop, and Carousel's hidden scroll buttons are never Tab stops. Tests that asserttoBeDisabled()or:disabledshould query[aria-disabled="true"]instead. (#7906) -
A labelled
Buttongrows with its label when the text size grows: its height is its size, or one line of its label when that is taller, so the label stays inside the button. At the default text size Buttons render exactly as before, a caller'sheightstill applies, and icon-only buttons keep their fixed square. (#10588) -
Calendarday buttons grow with their numbers when the person's text size grows, such as a larger browser default font size. Their size is now a minimum, so a day's number stays inside its own tap target and a tap no longer lands on the day below. At the default text size nothing changes. (#10596) -
Under snap paging (
hasSnap={useSnapPaging()}), Carousel's edge buttons andhandleRef'sscrollNext,scrollPrevandscrollTomove the row through the paging, also from rest. A touch that catches such a move now leaves the row on a page, as a flick's settle does. On iOS a still touch used to stop the browser's smooth scroll between two items. (#10384) -
Under snap paging (
hasSnap={useSnapPaging()}), Carousel's edge scroll buttons and edge fades follow the row as it moves. They change in the frame where it leaves an edge. A flick used to leave them as they were until the settle ended and the row went back to native scrolling, so the start button came back about half a second after the row had visibly left the start. (#10359) -
ChatComposerInput: composing with an input method (for example Japanese or Chinese) right after picking a mention, inserting a token, or inserting text after a token now commits only the composed text. The composer places its caret inside the trailing text, not on an element boundary, so the first raw letter of the composition is no longer committed. Right after a mention pick, one Backspace now removes the mention with its space, and no stray line break is left. (#6423)
-
ChatLayout's scroll-to-bottom button now appears when
scrollRefnames the document's scroller and the reader scrolls the page up. The stream scroll also stops following there, so a streaming reply no longer pulls that reader back to the newest message. (#10779) -
ChatLayout with a
scrollRefnow rests the newest message above the fixed composer dock at the scroll's end. The message area's end padding holds the dock's height and follows it as the composer grows. (#10676) -
useChatStreamScroll'sscrollToMessagenow puts the message at the top of the viewport when the scroller is the page itself. It landed off by the page's own scroll. (#10781) -
CommandPalette stays open with no results when a search or bootstrap request rejects (#10675)
-
A Table, or a List with
edge="bleed", that is the first or last child of a rounded Card or Dialog that holds no other Table or bleeding List deeper inside now rounds with the corner it reaches, so the table's focus ring stays whole at the container's corners instead of being cut off. A bleeding List with a header rounds only its last row. Every other corner stays square: standalone, inside a square container or a wrapper element, between other content, at the top of a BottomSheet (below its grab bar), or while another Table or bleeding List sits deeper in the same container. (#10586) -
CodeBlock's "Failed to copy value to clipboard." announcement now uses the assertive live region instead of the polite one, as status announcements require for errors, so screen readers report a failed copy right away. A successful copy is still announced politely. (#10448)
-
A swizzled
Outline(or another copy that carries Core's Markdown plugin protocol) now type-checks against the package's Markdown plugins:MarkdownPluginEntryandMarkdownTransformcarry their node type on a shared, versioned key instead of a module-local symbol, so the package's and the copy's types match. The member exists only in types; runtime trust and claim checks are unchanged. No API changes. (#10641) -
A swizzled copy and the package now agree on the animated-layout handle, code-language values and snap paging. A handle from
useAnimatedLayoutpassed to a swizzledAppShell,List,Table,TreeList,CollapsibleorSideNavno longer throws when the layout changes, and those copies type-check: each brand is read through a registered, versioned key at runtime, and the types carry one optional brand member that is never present. No API changes. (#10576) -
Core registers every React context, and the English its components register, under a versioned key, so two copies of Core's modules on one page share them: a provider from one copy reaches consumers from the other, a layer boundary from either resets the layer-scoped contexts of both, and a component from either shows its English. A copy built against another version of a context keeps its own. No API changes. (#10233)
-
A swizzled component that carries Core's touch code, such as a swizzled
SwitchorSlider, now joins the package's gesture host, window input listeners, click guard, layer input holds and moving-element hit testing for the page instead of keeping a second set, so the copy and package components do not both claim the same touches. No API changes. (#10599) -
A swizzled
List,TransferListorListInputand the package now agree on acreateReorderableobject: its reorder machinery is read through a registered, versioned key. Before, a swizzledListfound no machinery on an object from the package and showed no reorder handles. No API changes. (#10741) -
A
DateInputorDateTimeInputwithpresentation="bottom-sheet"no longer causes a hydration mismatch when the server and the browser are on different dates. The closed sheet's calendar now renders right after hydration, once the browser's today is known. (#10400) -
Dialog: under React StrictMode, a
Dialogwith aDialogHeaderthat is first mounted open and then removed while open (rendered only while open) now returns focus to the element that opened it, instead of leaving focus on the page body. The opener is captured only on the closed-to-open edge. (#5642) -
Dialog: aDialogHeadertitle now takes focus only after the dialog is modal, also when the header mounts in the render that opens the dialog. When no other control asks for focus, initial focus now starts on the title in every browser. Before, a header with a start control, and any header in Firefox, started on the first control. (#10408) -
Drawer: a non-modal drawer (hasScrim={false}) that unmounts while it is open, for example one rendered only while open ({isEditing && <Drawer isOpen …>}) or removed with the rest of a view, now returns focus to the control that opened it instead of dropping it to the page. A modal drawer already did. (#9672) -
DropdownMenu: a finger's hold-slide-lift no longer flashes the focus outline on the menu button. When a held press opens the menu, the button takes focus first, so focus can return to it when the menu closes; that focus now shows the outline only after keyboard input. A keyboard open and close still show the outline on the button. (#10079)
-
Dialog, CommandPalette, BottomSheet, Lightbox, Drawer, MobileNav, Popover: Tab no longer escapes a modal through a radio group. The browser gives a same-name group of native radios one Tab stop: its checked radio, or, when none is checked, its first moving forward and its last moving backward. The focus region now finds its first and last stops the same way. Before, Tab from a group's checked radio left the modal for the browser's toolbar when the group ended the modal and that radio was not last in it, and Shift+Tab did the same when a group started it. Reported by @duytbp. (#10304)
-
Gestures: a finger's lift is read on the clock its moves came on. In WebKit on Linux, a page pointerup listener that runs long no longer makes a fast flick read as a resting finger, or a tap lifted in time read as a long press. (#10583)
-
HoverCardanduseHoverCardno longer open on keyboard focus of the trigger whileisOpen={false}is passed. The controlledfalsealready refused hover, but tabbing onto the trigger opened the card and reportedonOpenChange(true)against the owner's state; focus now takes the same refusal as hover. (#10181) -
HoverCard: a labelled card no longer puts
aria-haspopup="dialog"on a role-less trigger, such as text or a<time>. Such a trigger names the open card througharia-controlsonly; a button or link trigger still getsaria-haspopupandaria-expanded. (#10733) -
A
HoverCardrendered into another document, such as an iframe or a Picture-in-Picture window, now closes when Escape is pressed there, and Escape from inside the card returns focus to its trigger. Moving focus from the trigger into such a card also keeps it open. Before, the card read only the page's document, so Escape in the other document never closed it. The card now also ranks on the shared dismissal stack by its trigger's place, so a card whose trigger sits inside a focus-trap container takes Escape before that container, as the topmost layer. (#9592) -
HoverCardandTooltip: a controlledisOpen={true}(orisDefaultOpen) no longer strands the layer in the viewport corner when its trigger mounts with no layout box yet, for example inside aDialogthat has not calledshowModal()yet. (#5398)Dialogmounts its children before it opens (isOpengatesshowModal(), not rendering), so aHoverCardorTooltipinside one with a controlledisOpen={true}runs its show effect while the trigger sits in a still non-modal<dialog>and has no box. A trigger with no box is not a valid CSS anchor: the popover resolves to its fallback position in the viewport corner, and unlike a live layout change that resolution is not revisited once the trigger later gets a box.Layer'sshow()now opens immediately when the trigger already has a layout box (an empty one, such as a ContextMenu's cursor anchor, counts), so a menu or popover still opens in the same task as the press that asked for it. Only a trigger with no layout box (display: none, or inside a<dialog>that is not showing) waits: first for it to get a layout box and for its dialog to show, then for any running animation on the document timeline that ends on its own, on the trigger or an ancestor, to finish, so the layer anchors to the trigger's settled position and not to a mid-transition one. Paused, infinite, and scroll- or view-driven animations are not waited on.The box wait is driven by signals and polls nothing: a
ResizeObserverfor a trigger that gains a layout box, anIntersectionObserverfor a purelydisplay: inlinetrigger (such as the wrapper<span>of a text-only trigger), which aResizeObservernever delivers an entry for, and the enclosing dialog'sopenattribute andtoggleevent. A dialog counts as showing when it is open or shown as a popover, so triggers inside a non-modalDrawerstill open their layers. The wait has no time limit and ends when the trigger gets a box inside a showing dialog or the open is cancelled (a latershow()orhide(), or unmount). If the trigger element is replaced while waiting, the wait restarts on the new one, and a trigger that unmounts for good stops observing. Without a layout engine to wait on (noResizeObserveror no Web Animations API, as in jsdom) the layer opens immediately.A transient
nullthen same-element call on the trigger ref, as a combined ref utility makes when a handler changes identity, no longer removes and re-adds the element'sanchor-name, which could also leave an open layer stranded in the corner. -
Layers with an entrance input hold: a finger or pen that was already down when a light-dismissing layer opened, and lifts while it enters, now lifts through the hold's shield onto what is under it in WebKit, so the layer dismisses as it already did in Chromium. The shield leaves a small opening at each such press until it lifts. New presses during the entrance are still held. (#10398)
-
Layer: a light-dismissible layer that opens from a right click's
contextmenuevent stays open when that same press is released. Before, the release counted as a press outside, so a DropdownMenu opened throughisMenuOpenfrom a right click closed at once. A later press outside still dismisses the layer. (#10128) -
A popover taller than the room on both sides of its trigger keeps its top when the keyboard shortens it. The field being typed into stays under the caret. It used to jump below the trigger as the keyboard arrived, and back as it went. (#10497)
-
Once the keyboard caps a layer such as a popover, a scroll a person starts in it afterwards is no longer undone. On a busy page, the layer could scroll back to the focused field just after. A later keyboard change still brings the field being typed into back into view. (#10457)
-
A Tooltip, including a Slider's value bubble, no longer jumps to another side of its trigger in the middle of a scroll. Before, when a scroll carried the trigger toward the edge, the layer runtime took the Tooltip out of rendering for one forced layout so the browser would choose its position again, and it did this again on later frames of the scroll. Now the Tooltip has one fallback list from the start, and no option in it covers the trigger: it tries the opposite side first, then beside the trigger, then a side sized to the room. During a scroll, the Tooltip keeps its side: it is not checked or placed afresh until the scroll stops. In the first frame painted after the scroll stops (at
scrollend, or 150 ms after the lastscrollevent where the browser has noscrollend), it is checked once and moves to the side with room if it needs to. At a show, a remount or a size change it is checked as before. (#10439) -
A Tooltip's content scrolls by CSS alone, and nothing watches its trigger move. A Tooltip now has
overflow-y: autofrom its first frame, with no overscroll containment. It scrolls only while its content overflows, so a wheel over a Tooltip that fits still scrolls the page. Once a tall Tooltip has scrolled to its end, the next wheel moves on to the page, where before the page held. A Tooltip is now always a scroll container, soposition: stickyandscroll(nearest)timelines inside its content resolve against the Tooltip. The layer runtime no longer reads the Tooltip's scroll size after its trigger moves, and it no longer observes a trigger that moves without resizing. (#10472) -
A swizzled
LayerProvidernow shows the package's toasts: the viewport the package'sToastregisters renders in a copied provider's outlet, and the package's provider renders a copy's. Before, each copy kept its own registry, so toasts added under a swizzled provider never showed. The registry lives under a registered, versioned key. No API changes. (#10800) -
Layout: afalse,true, or empty-string slot, such asfalsefromisOpen && <LayoutPanel />, now counts as empty. The neighbouring regions move out to the layout edge, the same as when the slot is omitted, and withcontentWidtha closed side panel no longer stops the content area at the content-width frame. The docs now listchildrenandref, show how to hide a region, and say that landmark roles go on the region components. (#10500) -
LayoutContent: the edge away from a single start panel now takes the Layout-edge inset, sopadding={0}on the Layout makes it full bleed, and withcontentWidthits children end one Layout-edge inset inside the content-width frame, as they do without panels. Each edge now publishes the padding it applies, so a full-bleed child such as a Table lines up beside an end panel and under a header without a divider. A Layout nested under a header or footer without a divider keeps its own content spacing instead of taking the outer collapse. (#10516) -
A
Layoutwith nocontentWidthno longer caps itsLayoutHeaderandLayoutFooterat the viewport's width. In a frame wider than the viewport, such as a scrolling canvas or a wide embed, their content now spans the frame like the rest of the Layout. (#10715) -
LayoutFooter: adata-dividerattribute passed by the caller no longer replaces the divider state the footer reflects, so the content above a footer without a divider keeps its collapsed spacing, and a footer with a divider keeps its spacing above the line. The docs now listpaddingandref, and say that an unsethasDividerfollows the Layout'sdefaultHasDividers. (#10674) -
LayoutHeader: adata-dividerattribute passed by the caller no longer replaces the divider state the header reflects, so the content below a header without a divider keeps its collapsed spacing, and a header with a divider keeps its spacing below the line. The docs now listpaddingandref, and say that an unsethasDividerfollows the Layout'sdefaultHasDividers. (#10686) -
LayoutPanel: on an edge that takes the Layout's own inset, the panel now tells its children the padding it applies there. Children that read their container's padding, such as a full-bleedDivider,Table, orTabList, or a nestedLayout, now follow the panel's outer edge whenever the Layout'spaddingdiffers from the inner inset. Before, they used the inner inset: withpadding={6}a full-bleedDividerstopped 8px short of the edge, and withpadding={0}it ran 16px past it. The docs now say which edgehasDividerdraws on, that the Layout'sdefaultHasDividersdoes not apply, and thatpadding={0}is full bleed, and they listref. (#10774) -
Lightbox: a screen reader now hears the viewer's own messages while it is open. Moving to another item ("Mountain lake, 2 of 4") and zooming in or out are announced inside the open viewer; before, they went to the page behind the modal viewer, where a screen reader does not read them. The0key now returns a zoomed photo to its fitted size. The docs list the0key, and no longer say that the lightbox is only for images. (#10775) -
Lightbox's drag to close now plays at the theme's tempo, like the viewer's other motion. At the default tempo it plays exactly as before. (#10630)
-
An open Lightbox shows the nearest item when
indexordefaultIndexis NaN or a fraction between the first and last item. A fraction rounds to the nearest item, and NaN shows the first item. Before, the viewer rendered nothing for those values. (#10632) -
A reorderable
Listin its own scroll box keeps the dragged row under the pointer when a wheel during a mouse or pen drag scrolls the page, as a wheel at the box's end does. The wheel scrolls as before. (#10742) -
Markdown: each paragraph, heading, quote and list item lays out in the direction of its own text. A Hebrew or Arabic paragraph in a left-to-right page now starts on the right, and an English paragraph in a right-to-left page starts on the left. A block with no letters, such as digits, punctuation or an image, takes the page's direction from the
InternationalizationProvider, also inside a quote or list item that reads the other way. Lists, code blocks and tables keep the direction around them too, and the text in each table cell reads in its own direction. A numbered item that reads against its list shows its number beside its own text, and a table cell that reads against its table keeps the table's column lines and any explicit column alignment. A task list now keeps to the same prose width as other lists. (#10293) -
Menus: the arrow keys, Home, End and type-ahead now reach a disabled row in
DropdownMenu, its sub-menus,MoreMenu,ContextMenuandNavHeadingMenu, so a keyboard or screen-reader user finds the row and its description. The row takes focus, is announced as disabled, and Enter, Space or a click on it still does nothing and leaves the menu open. Opening a menu from the keyboard still lands on an enabled row. (#10160) -
DropdownMenu: a held mouse dragged from the trigger onto a row keeps that row lit. On a loaded page the menu's open focus could land after the drag reached the row and take the highlight back to the menu container until the pointer moved again. (#10590)
-
DropdownMenu: a menu that a mouse press opens stays open when that press is released quickly away from the trigger, or after the trigger moved away under the pointer. Before, the browser's light dismiss read that release as a press outside and closed the menu at once. A press released after the settle time outside the menu still closes it, and a later press outside dismisses it. (#10689)
-
Under a finger, the month and year wheels behind the calendar title in the DateInput and DateTimeInput bottom sheets now behave like the iOS date picker's: (#8209)
- Turning a wheel moves a chosen date to the new month and keeps its day, so October 15 becomes May 15. A day the month lacks becomes its last day, the result stays within
minandmax, and DateTimeInput keeps the time. A date thatdateConstraintsrefuses is not chosen; the calendar still moves. - With no date chosen, the wheels only move the calendar.
With a mouse, the wheels still move only the calendar.
- Turning a wheel moves a chosen date to the new month and keeps its day, so October 15 becomes May 15. A day the month lacks becomes its last day, the result stays within
-
Motion: elements that start moving from rest in the same frame now start at one time. Before, each element took its own reading of the clock in that frame, so items starting together, such as a carousel's pages as they settle, could start apart by as long as the frame callbacks between them ran. (#10584)
-
Motion: a spring retarget that the browser commits late, behind a busy main thread, now starts at that frame, from where the element is on screen. Before, it kept the clock of the call, so the element jumped to where the new curve had got to: 42 px back in one frame for a retarget behind a 200 ms block. Motion calls made in one callback now share one clock, so the children of a pager line up after a retarget. A retarget made inside a page's own frame or ResizeObserver callback now shows its new curve one frame later. (#10607)
-
MultiSelector: opening the closed list never highlights a disabled option. ArrowDown, Enter, Space and a press highlight the first enabled option in the order the list opens in, and ArrowUp the last, so Enter no longer lands on an option it cannot toggle. A list with search still highlights nothing when a press or Enter opens it. (#10820)
-
Carousel paging: a finger or a pen that lands on a row still settling after a swipe no longer reaches the item under it: no press highlight and no click, as on iOS. A mouse click is unchanged. (#10370)
-
Carousel paging: a finger or a pen that lands on the row during an edge button's move now stops it at the touch, as on iOS, instead of letting it run on for about 85 ms. The item under the finger still takes the tap. A mouse is unchanged. (#10545)
-
A page that a swipe releases now settles at the theme's
tempo, as the rest of its motion does: in aCarouselgivenhasSnap={useSnapPaging()}, and in aLightboxgallery. At the default tempo the settle is unchanged. (#8197) -
Pagination's ellipsis grows with a larger text size, as its page buttons now do throughButton. Its size is now a minimum height, so the "…" stays inside its own box. At the default text size nothing changes. (#10567) -
Paginationwraps its row when its controls don't fit, as at a larger text size on a phone, instead of scrolling the page sideways and pushing Next off-screen. Previous stays first and Next stays last. Beside other content in a flex row, Pagination can now shrink to its widest control and wrap at the default text size too, where it held one line before; give itflexShrink: 0throughxstyleto keep one line there. (#10552) -
parseColoranswersnullforconstructorand__proto__(in any case), as for any unknown name, instead of a truthy empty RGBA that made composed callers such as chartcolors.alphareturnrgba(NaN, NaN, NaN, …)(or#NANNANNANat full opacity) instead of the original string (#10468) -
A closed
Popover, and anyusePopovercomposition, no longer leaves a hiddenrole="dialog"with its label in the DOM. The surface stays mounted but carries the dialog role, name andaria-modalonly while open, so[role="dialog"]selectors and tests that include hidden elements find no dialog that is not on screen. The accessibility tree already omitted the hidden surface. Reopening restores them. (#10487) -
A dialog Popover starts focus on its first enabled tab stop. It skips a disabled control, lets an element that holds
tabindex="-1"yield to a later tab stop, and starts on its labelled surface when every control is disabled. Before, a DateInput or DateTimeInput calendar whose range starts in the shown month opened on the disabled Previous month button. Now it opens on Next month, or, in a one-month range, on the selected day, else today, else the first enabled day. Disabled controls stay reachable by Tab. (#10503) -
Under a finger, Popover's growth shows its content from its first frame. The growth starts at opacity 0.001 rather than 0: Chromium skips drawing a layer at exactly 0, so the first frames of a growth from 0 showed the popover without its content. No 8-bit pixel differs from transparent at 0.001. (#10757)
-
In PowerSearch's phone sheet, a date range is now picked on a calendar inside the sheet, instead of a calendar popover opening over it. The desktop editor popover is unchanged. (#10618)
-
PowerSearch's phone sheet now edits single and multiple choices with the standard RadioList and CheckboxList at their usual spacing, instead of its own 48 px rows, and its Operator radios put the radio at the start of the row, as every RadioList does. The choices use the shared touch band, so their touch targets are smaller than before. End, Home and Enter no longer pick a choice; the arrow keys and Space work as in any RadioList or CheckboxList. Adds a "Sheet presentation · realistic config" story that covers every value type. The desktop editor popover is unchanged. (#10608)
-
PowerSearch: a filter token's field and operator now come from one catalog message (@astryx.powersearch.token.fieldOperator, "{field}: {operator}" in English), and its full text, which also names its remove button and editor, joins that label and the value with another (@astryx.powersearch.token.labelValue, "{label} {value}"). A locale can reorder the parts and change the punctuation.PowerSearchTokenuses the same message. English tokens read as before, except that a filter with no operator text no longer shows a trailing colon. (#10437) -
Press feedback: a
pointerupthat carries nopointerId, such as a bare event a test helper or drag script dispatches, no longer throwsCannot read properties of null (reading 'live')when no press is held. It is ignored, aspointercancelalready does. (#10695) -
Inside a scroll view, a pressable's highlight now comes 150 ms after the touch, even when a busy page handles the touch late. Before, the wait started when the page handled the touch, so the highlight came late by that delay. This covers every pressable, and SegmentedControl, Switch, Slider and
usePressTrackercontrols, in a scroll view. (#10260) -
A theme duration token written with
calc()now times a press's release as the browser resolves it. Before, the release clock fell back to 175 ms while the fade played the token's value. (#10069) -
Two loads of Core's scroll-lock modules on one page now share one page scroll lock: closing the overlay that opened first no longer unlocks the page while the other overlay is still open. Text-selection locks, which a swizzled copy carries, are shared the same way, so a copy's release no longer restores a selection lock the package still holds. No API changes. (#10822)
-
useScrollableArea: an ancestor's inline
stylechange measures the scroll area again only when it changes the axis mapping or the boxes' existence (direction,writing-mode,display,visibility,content-visibility); a size change still reaches it through the resize observers. A BottomSheet writes its transform, and its scrim's custom property, on every input sample of a drag, and each write forced a full measurement (its computed-style reads and the scroll geometry) in the next frame, a style recalculation and a layout on every frame of the drag. (#10034) -
getContentPropsfromuseScrollableAreanow applies a caller'sxstyleinstead of leaking it to the DOM. (#6314) A viewport that lost overflow while focused drops its leftovertabindexas soon as it is blurred, and a focused viewport in another document keeps focus when it loses overflow.ScrollableArea's viewport also sheds the obsolete-webkit-overflow-scrollingand initial-value scrollbar declarations. -
Selector: when the options move or reload while the list is open, the highlight stays on its option instead of naming whatever option now sits at its old position. If its option leaves, the highlight moves to the next remaining enabled option after it, or the previous one when none remains after it, and with none left nothing is highlighted. (#10818)
-
SelectoranduseCombobox: opening a closed list starts on the selected option, as the WAI-ARIA listbox pattern asks, and never on a disabled option. Before, ArrowDown and ArrowUp opened on the first or last option even when it was disabled, and ArrowDown then Enter changed "Hard" to the first option. Now opening highlights the selected option when it is enabled. Otherwise ArrowUp opens on the last enabled option and ArrowDown, a press, Enter or Space on the first; with no enabled option nothing is highlighted. A search list opened by a press, Enter or typing still highlights nothing.MultiSelectoris unchanged. (#8868) -
A Selector whose trigger sits near the bottom of the screen now opens its list on screen. The selected-item overlay's clamp did not count the layer's viewport gutter, so near the bottom edge the browser flipped the list below the viewport and its last options could not be reached. (#10697)
-
In a searchable
SelectororMultiSelector, typing now clears the highlight, so Enter never picks an option you did not highlight. Before, the highlight kept its old position, which could point at a different option of the filtered list or at nothing. ArrowDown then starts at the first row: the first enabled match inSelector, and Select all or the create row when shown inMultiSelector. (#8871) -
Selector with
hasSearch: a required field no longer putsaria-requiredon its trigger, a button where the attribute is not allowed. The search field carries it while the list is open, and the closed trigger still announces "Required", through the field label or, when the label shows no marker, through its description. (#10878) -
SideNavno longer adds space below afooterwhen it has nofooterIconsand no built-in collapse button. The sidebar rendered an empty footer row there, and the gap of the sticky bottom area added space after the footer. The row now renders only when it holds the collapse button orfooterIcons, as the drawer already does. (#10721) -
Navigation rows grow with a larger text size. The shared nav item styles (
navItemStyles, used bySideNavItemand byTopNavItemand the mega menu in the mobile drawer) now take their size as a minimum height instead of a fixed one, so above 200% text a row's label no longer overlaps the next row, and its end content (such as a countBadge) stays inside the row. Collapsed rail rows keep their fixed square. At the default text size, TopNav drawer menu and mega menu rows with a description now fit their text instead of overlapping the next row; other rows are unchanged. A callerheighton these styles no longer brings a row below its size; overrideminHeightinstead. (#10550) -
Carousel snap paging: a stop that sits within half a step of the row's end is part of the last page, so a flick, a wheel or a key never rests a pixel short of the end, and a step back from the end moves a full step. (#10591)
-
Carousel paging: a row that narrows while a finger holds it now rests where the row ends, instead of short of its end by as much as it narrowed. (#10425)
-
Carousel paging: while the paging holds a row, the pager measures its pages and travel from the row's layout, as at rest. (#10860)
-
A
Stepkeeps its ownaria-currentover a caller's. Before, anaria-currentpassed to aStepreplaced the reflected value, so a step that was not in progress could be marked current and the in-progress step could losearia-current="step". Now only the in-progress step carriesaria-current="step", whatever the caller passes. No API changes. (#10640) -
Under a mouse, a key that cannot scroll a DateInput, TimeInput or DateTimeInput wheel, as Tab, no longer ends the wheel's key step. On a busy page, Tab right after an arrow key could commit the row the wheel was leaving. (#10924)
-
Table's column settings plugin keeps its active columns in state. When the table re-renders on its own after a render React discards, such as a suspended transition, it shows the committed columns. (#10911)
-
Table: three of its keyboard tab stops draw the theme's focus ring instead of the browser's default: the scroll wrapper once the table scrolls inline, and the tree plugin's row expander and expand-all toggle. A theme's--focus-outline-*tokens now reach them. The scroll wrapper's ring sits inside its box, clear of a bordered Card's border, so a Card no longer cuts off its edges (a Card's rounded corners still trim the ring's square corners); atdensity="compact"the tree toggles' ring sits inside the toggle, so the row does not clip it. The row-expansion, grouped-rows and filter buttons are unchanged. (#8873) -
Table: a row expansion panel with
panelVariant="muted"now paints its wash on its cell, so with ananimatedLayouthandle the wash slides in with the panel's content. On iOS Safari the panel's edge trailed the rows gliding below it for a few frames; now they stay together. At rest the panel looks the same. (#10403) -
A Table column-resize handle now announces its column's rendered width from the first render after layout, and its announced range always holds that width, also when the layout renders a column past its maximum or minimum width. Before, until a column was first resized, its handle announced the column's minimum width, so a screen reader read the wrong width. (#10593)
-
A Table column-resize handle on a column with no maximum width now announces a maximum at or above its value, so a screen reader no longer reads the width past ARIA's default maximum of 100. It uses the window's width as the stand-in maximum, as an unbounded Resizable region does, and announces its value in words, for example "133 pixels". A column with
maxWidthis unchanged. (#10577) -
A Table plugin's
transformScrollWrapperclassName now reaches the table's scroll container beside the wrapper's own class; before, the wrapper replaced it. (#10702) -
TableTree rows no longer carry
aria-expanded, which is valid on a row only in a treegrid. Each row's expand and collapse button still exposes its expanded state, and rows keeparia-levelfor their depth. (#10538) -
A swizzled
Tablenow honorsvirtualizationfrom the package'suseTableRowsVirtualization, and the packageTablehonors a capability from a swizzled copy. Before, each copy recognized only its own capability, so a swizzled Table rendered every row and its code failed to type-check. The capability is read through a registered, versioned key, and its type carries one required brand member that is never present at runtime, so only the hook makes a capability. Avirtualizationvalue the hook did not make now gets its own development warning. No API changes. (#10798) -
TabListtabs, including aTabMenutab, grow with a larger text size. Their size now sets a minimum height instead of a fixed one, so at 200% text and above a tab label is no longer clipped. At the default text size nothing changes. (#10534) -
TextInput, TextArea, NumberInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Tokenizer, Typeahead, PowerSearch, ChatComposer and RichTextEditor: when the primary pointer is coarse (a phone or tablet), the focus look shows at once, with no fade, so a tapped field repaints once while the keyboard rises. With a fine primary pointer, such as a mouse, a click and the Tab key keep the fade. ChatComposer's focus depth also shows at once under reduced motion, as the other fields' focus look already does. (#10611)
Also released in
@astryxdesign/richtext. -
TextInput: the clear button now runs
changeActionwith the empty value and shows the optimistic empty value and busy state, as typing does. The clear goes through the input's own change handler, soonChangeandchangeActionreceive a real change event (before,onChangereceivednullas its event andchangeActiondid not run),onChangeruns first, and itspreventDefault()cancels the Action. (#6425) -
A truncated Text or Heading mounts its tooltip on the first hover, tap or focus, not as soon as it renders, so a long table or list of truncated cells mounts no closed tooltip layers at load. The hover delay, the tap and the focus rules are the tooltip's own: a touch that becomes a scroll opens nothing, and a tap outside closes it. No visual change. (#10290)
-
Theming: a theme's
:activeoverride now follows the touch press model. With a mouse it still paints on:active. Under a finger it paints only while Astryx believes the press, so a themed control no longer flashes the theme's press color on the touch itself or while the page scrolls. (#10420) -
In Safari on iPhone, text follows the reader's text size (Dynamic Type) in every theme, branded included. Where the browser exposes that size through
font: -apple-system-body, as Safari on iPhone does, the theme's font sizes scale with the size the reader picked in Settings (Display & Text Size, then Larger Text), each size on the curve of the iOS text style it plays: body text like Body,heading-1like Title 1, display text like Large Title, with every role kept in order. A semantic size a theme fixes at a length, such as the 0.75rem supporting text of Butter, Stone and Y2K, scales on the curve of the step it reads by default. At the default size every font size is the theme's own; the family, spacing, line-height ratios and the root font size never change, text inputs keep their 16px floor on iOS, and browsers without the keyword see no change. There is no option, prop or document attribute: the rootThemereads the reader's size from a hidden element.astryx docs typography/type-scaledescribes it. (#10416)Also released in
@astryxdesign/cli. -
Themekeeps its runtime-injected CSS in the document until the last mountedThemeusing that theme unmounts. Before, theThemethat injected the CSS first owned the shared<style>tags, so unmounting it (a nestedThemearound a dialog that mounted first, for example) stripped the component overrides and prose defaults from every otherThemestill using that theme. Built themes, which import their CSS as a file, are unaffected. (#10178) -
TimeInputshows the stepped time after an arrow-key adjustment made while a typed draft is pending, and leaving the field keeps that step. Before, the text typed before pressing ArrowUp or ArrowDown stayed in the box while the committed value and the screen-reader announcement had moved on, and blurring re-parsed that stale text and committed it over the step, silently undoing it. (#10179) -
Timestamp exposes its details popup on the focusable time element. (#6298)
-
Toast: the viewport is each toast's only announcement owner. While an open modal hosts a top-layer viewport (the default), it announces each toast through that modal's own live regions, so a toast shown over a Dialog is announced once. Elsewhere it announces through the shared channel. A viewport rendered in place announces through
useAnnounce, which delivers inside an enclosing Astryx modal. The toast card is no longer a live region inside a viewport, including while a modal hosts it. (#7871) -
Tokenizer forwards
cancelto itssearchSource, so a newer search, closing the menu or the sheet, focus leaving the field, or unmounting cancels the consumer's in-flight search (for example, to abort its request). Previously the inline field wrapped the source to filter selected items and droppedcancel, and the bottom-sheet presentation never called it. (#8777) -
A
ToolbarwithcenterContentwraps its row when its lanes don't fit, as at a larger text size on a phone, instead of letting the center title spill over the buttons beside it and past the screen's edge. The end lane, and the center lane when it does not fit beside the start lane, move to a following line. The center sits at the toolbar's middle as before while each side lane fits in half of the width it leaves. In a narrow container, a centerTabListnow shows all its tabs and the row wraps, and its tabs scroll only when they are wider than the toolbar. (#10563) -
A controlled
Tooltipheld closed (isOpen={false}) no longer opens on keyboard focus or a click into a text-field trigger. It reports that focus asonOpenChange(true)and shows nothing, so the caller decides, the same way Escape on a held-open tooltip reportsonOpenChange(false)without hiding. Before, focus opened a held-closed tooltip anyway, and Escape could not close it.useTooltipreports the same focus throughonShowunderisOpen={false}. (#10490) -
on a touch screen, keys typed into a text field no longer make the focus a closing dialog returns to a Tooltip or HoverCard trigger open its layer; Tab, Escape and arrow keys still count as keyboard input.
useTouchTrigger'sisTouchInteraction()from@astryxdesign/core/Layerstays true in that case too. A field in an iframe or Picture-in-Picture window is not read as a text-entry field, so typing there still opens the tooltip as before. (#10639) -
A disabled
TopNavItemnow keeps its Tab stop, in both the bar and the drawer. Before, it rendered withtabIndex={-1}, so Tab skipped it and keyboard and screen-reader users could not reach it. Now it is a focusablelinkthat exposesaria-disabled="true", while a click, Enter or Space still runs noonClickoronKeyDown, does not navigate, and does not close the mobile drawer. No API changes. (#9208) -
TopNav's heading can now shrink, so a heading wider than the whole bar ends in an ellipsis instead of running off the bar and scrolling the page sideways.
TopNavHeadingkeeps its logo whole, and independently linked lines wrap and keep their longest word; a plain line beside them still keeps its full width. (#9551) -
TopNavwraps its bar when its regions don't fit one row, as at a larger text size, instead of letting the end content (such as buttons) cover the navigation items. The end content moves to a second line. While the regions fit, the bar and its centered content look as before. (#10571) -
DateInput's touch sheet keeps keyboard focus when the month reaches the end of the range, by an arrow press or a swipe, while a month arrow holds focus. That arrow hides there, so focus now moves first to the other month arrow, or to the month-and-year button when both arrows hide. Before, focus fell to the page. (#10231)
-
Toast: the
useToastfallback warning and its server-rendering error no longer tell you to wrap the app in<AppShell>. AppShell provides no layer context, so that advice left the warning in place. They now name only<LayerProvider>, which removes it. (#10875) -
With a mouse or trackpad, a date or time sheet's wheel no longer turns back to the row a key step is leaving. A key step commits its row at once and then scrolls there. On a busy page or a slow device the scroll could draw no frame for longer than the wheel's quiet period, or the browser could end it part-way, and the wheel took that pause for rest: it committed the row under the band and turned back there. A rest before the step's row is reached now finishes the scroll instead. A scroll a person makes still rests where it stops. (#10610)
-
Closing a Popover or DropdownMenu with Escape, or a DropdownMenu with a pick or a press on its trigger, runs one layout again, not two. A closed trigger stops being a CSS anchor, and these closes took the trigger's anchor name away after the hide's own layout, so the browser laid out once more. Our hide now drops the name before its layout, unless the layer's closed state keeps it shown to fade out. A close the browser runs itself, such as a light dismiss, still drops the name at its toggle event. A layer that fades out keeps the name until its fade ends. (#10346)
-
Popover, DropdownMenu and its submenus, Selector, ComplexSelector, PowerSearch and Breadcrumbs' menu play their entrance on the surface inside the layer, not on the anchored layer. Chromium laid the anchored layer out again on every frame of its 150 ms entrance, two to four times per frame, whenever the page had other frame work. The entrance looks the same.
layerAnimationsis unchanged; its docs now say to apply it to the surface. Applied to the layer, it still plays as before. (#10561) -
While a Tooltip or another anchored layer plays its entrance, most reads of the layer's box write no styles. Before, each read during the entrance overrode the layer's transform, read the box and put the transform back, so the browser recomputed style and layout twice in that frame (measured in Chromium: 8 style writes, 2 style recalculations and 2 layouts per read). Now a read on the middle frames of an entrance takes the entrance transform out of one box read by calculation, and gets the same box. The read that shows the layer and any read while its entrance is pending, a read whose box does not yet carry the entrance (in Chromium, a layer at a fallback position), the last frames of an entrance, a layer under a CSS
zoomother than 1, and atranslategiven as a percentage still use the override, as before. Placement, the entrance animation and the keyboard cap do not change. (#10240) -
Motion: a Switch at rest holds no compositing layer under a coarse pointer. Its colour fade and its lift's shadow take a layer only while they move. (#10542)
-
Motion: the motions that one callback starts on elements that came in the same task read their stylesheets'
will-changein one style pass, after the callback. Before, each element forced a style pass of its own: eight for a list whose eight rows glide together. (#10728) -
Under a finger, Popover plays its growth on the surface inside the layer, not on the anchored layer. Chromium restyles the growth's animations twice as they start and once as they end, and each restyle laid the anchored layer out twice, its backdrop included. Under load those layouts landed inside the growth. The popover looks the same. (#10717)
-
Under snap paging, a Carousel's release bakes the settle's keyframes once, not once per item, and plays the settle only on the items that can show. With 9 items the release takes about a third less main-thread time, and with 30 items about two thirds less. (#10568)
-
useTableRowIndex builds its number column once per plugin, so a parent re-render no longer re-renders every row of a table that shows row numbers. (#10654)
-
Truncating Text and Heading take a newly mounted element's first measurement from the shared resize observer's first notification, after the browser's own layout, instead of forcing a layout pass after each commit. Pages and windowed tables that mount many truncating texts commit faster; the tooltip behaves as before. (#10668)
-
The source header of
Layout/containerCorners.stylex.ts(shipped in the package) now says that the--container-corner-*variables Card and Dialog set are inastryx.css, undocumented, and read only by Table and List; it had said they stay out of public API. (#10701) -
Hook docs for
useCalendarConstraints, soastryx hook useCalendarConstraintsandastryx searchreturn it, and auseCalendarConstraints — Hotel Booking Rangeexample block: a booking range picker that enforces min/max dates, disables closed Mondays, and caps reservations at 7 nights once check-in is selected. Copy it withastryx template useCalendarConstraintsHookUsage <path>. (#10151)Also released in
@astryxdesign/cli. -
Hook docs for
useCalendarNavigation, soastryx hook useCalendarNavigationandastryx searchreturn it, and auseCalendarNavigation — Month Pagerexample block: a month-by-month calendar with Previous/Next controls, localized month-year header, and cross-month arrow key navigation usingpendingFocus. Copy it withastryx template useCalendarNavigationHookUsage <path>. (#10154)Also released in
@astryxdesign/cli. -
Hook docs for
useLinkify, soastryx hook useLinkifyandastryx searchreturn it, and auseLinkify — Links in a Comment Threadexample block: plain-text comments where the URL and email become Links and a custom#123issue-reference pattern shows the patterns option, while a comment without matches stays plain. (#9969)Also released in
@astryxdesign/cli. -
Add usePowerSearchConfig hook docs and a filtered directory table example block (#10660)
Also released in
@astryxdesign/cli. -
Add useTableColumnSettingsState hook docs and a column visibility picker example block (#10652)
Also released in
@astryxdesign/cli. -
HoverCard: a trigger inside SVG
<foreignObject>cannot be a CSS anchor in Chromium, so its card opens at the viewport corner. The docs now say so and show the fix: render the trigger in an HTML layer positioned over the SVG node. (#10908) -
LayoutPanel's JSDoc example wraps its Layout in aCardinstead ofLayoutContainer, a component Astryx does not have. (#10716) -
ChatLayout's guidance explains how a reply gets one right edge: Markdown prose keeps its 680px measure while code blocks and tables span the message column, so pass
contentWidth="100%"to the reply's Markdown. Markdown's default measure is unchanged. (#6608) -
useClickableContainer documents a pressable surface without Card chrome: the hook on the surface,
usePressFeedbackwithinteractionOverlayStyles.backgroundColorfor the hover tint and touch press, a visually hidden<button>or<a>as the named control, andfocusOutlineStyles.focusWithinfor the shared focus ring that ClickableCard draws. ClickableCard's docs point chrome-free use to it. (#10880) -
The
collapsible,collapsedSize,isCollapsedandonCollapseChangedescriptions in the Resizable anduseResizabledocs name what collapses a region, a lift or a key step under the collapsed size rather than a drag alone, and what reports a collapse change. (#10635) -
Section's docs show how to center it: set
marginInlineStartandmarginInlineEndto'auto'inxstyle. (#10207) -
SegmentedControl: the label contrast guidance says the track is translucent, so label contrast depends on the background behind the control, and asks you to check the labels on every background it sits on, including a custom page color. (#10882)
-
SideNavCollapseButton's docs now list every key its
collapsibleprop takes: the whole controlled config SideNav gets, not onlyisCollapsedandonCollapsedChange. (#10282) -
The
Skeletonradiusprop's description no longer says4is 16px.4maps to the same container radius as3(12px), so the two values draw the same corners. No behavior change. (#10750) -
Tab's docs show how to give a tab help text: anchor a
Tooltipon theTabthrough its ref, so the description lands on the tab, and put a decorative infoIconinendContent.endContentis documented as non-interactive: a button, link, orInfoTipinside it would nest a control inside the tab's button. (#10734)Also released in
@astryxdesign/cli. -
Tab's docs show how to run the selected indicator edge to edge in one strip: a nested
Themethat takes the app's color mode, extends the app's theme and setsinsetInline: '0'on thetab-indicatortarget, so other TabLists keep the default indicator. The override is best effort across releases. (#10814) -
TableSelectionToolbardocuments how to select every row that matches a query across server pages with today's API: the app keeps "every matching row minus exclusions" and passes the toolbar its own count and label. In this mode the toolbar'sselectedKeysholds only the loaded rows. (#10271) -
The Tailwind guide (
astryx docs styling-libraries/tailwind) adds a recipe for an app that already uses Tailwind: keep the app's own@import "tailwindcss", put the@layerline above it, and add the Astryx stylesheets after it. It explains why the@layerline must come before the Tailwind import: below it, the Astryx reset outranks every utility class, and nothing reports it. The Core README's Next.js + Tailwind section points to it. (#10532)Also released in
@astryxdesign/cli.
-
Internal: a ChatComposerInput source comment that restated the code is removed. No change to behavior or output. (#10811)
-
Internal: Core's internal touch entry re-exports the action-group tracking hook, which gains a no-paint option and press callbacks for Lab's TabBar. A tab-bar string joins Core's message catalog. Apps import nothing new. (#9699)
-
Internal: the undocumented
@astryxdesign/core/internal/reorderentry also gives Lab'sListInputList's reorder session for rows that are not ListItems:useListReorderScopeandListReorderScope.Listruns its own rows' session through the same session hooks, so its callers see no change. A ListInput string joins Core's message catalog. Internal entries are outside the public API and its compatibility promise. (#8163) -
Internal: the undocumented
@astryxdesign/core/internal/reorderentry lets Lab'sTransferListandTransferListSelectorreorder through acreateReorderableobject:adaptReorderableruns the owner's engine with the collection's own moves, and the owner'sstart(key)still finds the collection's list. ExistingListcallers are unchanged. Internal entries are outside the public API and its compatibility promise. (#8143) -
Internal: Core's internal touch entry re-exports its scroll test for Lab's TabBar. Apps import nothing new. (#10791)
-
Internal: per-instance warning deduplication and temporary focus targets each have one shared owner in Core. Resizable, Dialog and TabList dedupe their development warnings through it, and Chat's Done button parks focus through it. Warning text and focus behavior are unchanged; apps import nothing new. (#10655)
-
Internal: the More tab's label, a tab-bar string, joins Core's message catalog for Lab's TabBar. Apps import nothing new. (#10791)
-
Internal: Core's internal finger-scroll reader can answer for a past time on the page's clock, for Lab's NavigationStack scroll edge. Apps import nothing new. (#10540)
-
Internal: the undocumented
@astryxdesign/core/internal/line-clampentry gives Lab'sLineClampCore's focusable selector, the shared mutation observer and its flush, and the shared truncation tooltip. The shared mutation observer now passes each registration the records that reached it, and existing callers ignore them, so their behaviour is unchanged. Internal entries are outside the public API and its compatibility promise. (#4259) -
Internal: the layer's outside-press watch can follow chosen pointer types, close as a press that starts outside begins to pan (on either axis, at core's pan threshold) or when the browser takes it, and judge a press inside a closed shadow root, which the document sees as its host. No component passes these options yet, so every watch keeps today's behavior. Not exported from the package entry point. (#9814)
-
Internal: Popover keeps its chosen presentation (the sheet or the anchored layer, the touch grow or the pointer entrance) from the open until its close settles through the layer runtime's one presentation hold (Layer/presentationHold.ts). No behavior change. (#8587)
-
Internal: one owner module now turns the browser's scroll anchoring off on a container whose position a component owns.
useChatStreamScrolluses it while it follows the end, with the same behaviour as before, and the undocumented@astryxdesign/core/internal/scroll-anchoringentry gives its writer to Lab. Internal entries are outside the public API and its compatibility promise. (#10173) -
Internal: Selector and MultiSelector keep the presentation an opening chose, and a closing sheet mounted until its focus handoff, through the layer runtime's presentation hold (Layer/presentationHold.ts). No behavior change. (#8591)
-
Internal: Core's shared-realm module gains helpers for state that the package and a swizzled copy share (state, maps, stores, brands and sequences). No API or behavior changes. (#10817)
-
Timer's tick pipeline, format ladder, cadence switch, and resource cleanup were audited with no behavior defect found. Two previously untested guards are now pinned: the wait for a distant future
startTimeis capped at the 32-bitsetTimeoutceiling, and an unknownformatvalue coerces toelapsed. The Default story now asserts in a real browser that the display advances on its own. (#6609)
- In
RichTextEditor, Tab and Shift+Tab in a code block indent and outdent every line the selection touches, by the indent the block already uses (a tab when one of its lines starts with a tab, otherwise the fewest leading spaces of any indented line, kept between 2 and 8, otherwise 2 spaces). The selection stays on the same characters and each press is one undo step. Tab used to put a tab character in place of the selection, and Shift+Tab did the same. Escape then Tab still moves focus out of the editor. (#8579)
-
RichTextEditorAutoLinkPluginno longer turns a URL inside a code block into a link. A URL typed or pasted into a code block, or one in an imported fence, now stays code. Before, the link nested inside the code block, and the exported Markdown fence lost it. (#10664) -
In
RichTextEditor, pasting rich content into a code block inserts plain text: the plain text on the clipboard, or, when there is none, each pasted block as one line of its text. Headings, lists, tables, and formatting used to land inside the code block, where the Markdown export wrote them as plain lines of the fence, so the document read back differently from what the editor showed. (#8580) -
A link inside a disabled
RichTextEditorno longer navigates, shows no pointer cursor, and is not a tab stop. Before, a disabled editor's links acted as live links: a click or Enter opened them, and Tab stopped on each one. (#10679)
-
RichTextView,RichTextEditorToolbarandRichTextEditorAutoLinkPlugineach ship a doc file, soastryx component,astryx discoverand the docs list their props, defaults and usage. (#10407)Also released in
@astryxdesign/cli. -
A source comment in the editor theme now says that core
Markdowngives each block the direction of its own text, while the editor keeps blocks in the surface's direction. (#10293) -
RichTextEditor documents how to switch between reading and editing in place without reflow: set the field's inset and border outside the reading width with
xstyle, so every paragraph keeps its line count across the switch. A standalone editor keeps its form width. (#10429)
-
astryx discoverlists the Lab DialogHeroHeaderShowcase template from@astryxdesign/lab. (#10109) -
astryx discoverlists the Lab DialogHeroHeader component from@astryxdesign/lab. (#10108) -
astryxlists acreate…factory documented as a hook, such ascreateReorderable, with the hooks. (#8139) -
astryx docsalso opens a docs-tree node by its bare name, or by a route that drops the prefix its name repeats, when exactly one node matches:astryx docs tokens-colorandastryx docs tokens/colorboth opentokens/tokens-color. Two or more nodes answering one name still fail with the suggestions they always listed, and an experimental doc still opens only by its marked route. (#10387) -
astryx docs --depth <levels>now names the docs below each namespace on the topic list, by the route that opens them, so one read learns every route instead of one read per namespace. Without--depththe list is unchanged, and the JSON keeps its shape: the newchildrensit inside eachmeta.namespacesentry. (#10393) -
The official-packages discovery list now includes the Lab
LineClampcomponent, soastryxcan find and describe it. (#4259) -
Replace the theme showcase's custom layout, text and icon styling with Astryx components. The embedded preview paints the theme's body behind card-token surfaces instead of a surface-colored card band. The new standalone top-navigation shell uses the theme's surface canvas; the embedded view stays shell-free. Make demo inputs, cart feedback, inventory filters and chat respond locally, with clearable filters and no payment submission. Keep the template id, gallery visibility and demo content. (#10404)
-
Comments, a codemod note and the grouped-table template's sample data no longer use internal-format identifiers. (#10958)
-
astryx swizzle --listno longer lists Core's shared folders (animator,gestures,i18n,internal,keyboard,motion,privateAttributes,__tests__) as components. A copy ofgesturesimports@astryxdesign/core/motion, which the core package does not export. (#10185) -
astryx componentprints a theme warning as one line: control and format characters in the configuredastryx.themevalue or the generated theme record print as�, so a newline or an escape sequence in a checkout cannot rewrite the terminal. (#10764) -
astryx docs <topic>reads a topic authored as.doc.tsfrom an installed integration on every supported Node, and from a linked integration below Node 22.18. Topic and docs-tree files now load.tsthrough the same TypeScript loader as component docs, where a plain import failed undernode_modules("Stripping types is currently unsupported") and below Node 22.18 ("Unknown file extension .ts").astryx searchalso reads an installed.doc.tscomponent doc, so it finds the component by its keywords, shows its description, and lists a family's members..doc.mjstopics load as before. (#10763) -
A long-running process that calls the CLI's API, such as a docs site's search route, now reads an edited CommonJS
.doc.jsfile again in docs, search and template reads. It read the doc as first loaded. (#10760) -
A command that reads a project module again after changing it, such as
astryx integration addchecking the manifest it just wrote, now reads the change for an ES module.jsfile in a package without a"type"field. It read the module as first loaded. (#10745) -
Icon sets:
integration checknow accepts a generated declaration file (*.generated.d.ts) whose long type arguments a formatter such as Prettier re-wrapped. Before, the re-wrapped line made the check reporticon_generated_types_mismatchand fail. A changed declaration still fails the check. The experimental icon commands are unchanged. (#10898) -
astryx build: when an idea names a family only after its head ("a saml for a login") and the family's base template matches no other word, the variant that outranks the base now stays the start (login-sso, notlogin), so adding page templates no longer flips such ideas to the base. Ideas that name the family in their head ("saml login") start as before. (#10431) -
astryx experimental renderno longer dies silently with exit 139 when Node itself crashes while it renders a page. The page now renders in a separate process, so a crash (a crash signal, or a crash status on Windows) ends only that process, and the render fails withERR_RENDER_FAILEDand a message that names the Node version and path; a signal that stops it names them too. That process ends when the CLI ends, so a page that never finishes does not outlive a stopped CLI. Some Node builds crash inIntl.Segmenter, which components such as Avatar use to split text: on such a build the render runs the page once more withoutIntl.Segmenterand adds anode-crashwarning that names the Node build and says the output may differ slightly (a joined emoji, a flag, or a letter with a separate accent mark in initials), so pages with Avatar render again. (#10915) -
astryx searchputs the results that fit the whole query higher. The first result stays the same. At the default limit, and at any limit of 10 or more, the set of results stays the same. A smaller--limitshows the top of the new order, so it can show a different result. Below the first result, inside each group of equally strong matches, a result whose docs fit the query much worse than the others in its group moves after them. A result whose name spells two or more of the query's words never moves down; it can still move up. The fit uses the same word-meaning weightsastryx builduses to pick blocks, so a new component or template is placed from its own docs. A query that is an entry's whole name keeps its answer. (#10926) -
Every import in an
astryx swizzlecopy now names a file the copy holds or a path the owner package exports. Before, the copy sent every import that left the component folder to the package's folder entry, which does not export the internal helpers most components use, soButton,Dialog,Tableand about 100 other copies failed to type-check or bundle. Now the copy imports what the package exports from the package, carries every internal module it needs beside it in the package's folder layout, and copies the nested folders it imports (such asTable'splugins/). Test helpers and notes are no longer copied. A helper an earlier swizzle wrote is reused when it is the same and is never replaced by a copy that carries it, even with--overwrite: a different one stays, and the new copy writes its own under a version-suffixed name. Swizzling the component whose folder holds that helper treats it as one of that component's own files, which--overwritereplaces. A private attribute owner module and the style modules it imports are the exception, as before: a changed copy fails the command without--overwriteand is replaced with it. Fixes #3506. (#10197) -
A swizzled component whose source imports another Astryx package's internal module, such as a Lab component that uses Core's gesture primitives, no longer imports that private path, except a StyleX module that package exports, which the copy keeps importing by that path because its identity is its path. Swizzle carries every other such module, and what it reaches, into the copy under a folder named after its package (for example
components/astryx/core/internal/touch.ts); that package's public names are still imported from the package. (#10595) -
astryx swizzlereports the npm packages a copy imports, such asd3-scalefor a chart, with the version range the owner package declares, so the copy builds once you install them. Theswizzle.copyreceipt lists them independencies, and the text output names them to install. Node's built-in modules and the owner package itself are not listed. (#10502) -
astryx swizzlewrites anastryx-swizzle.jsonmarker into an output folder it owns (one the copy creates, an empty one, or one it marked before), naming each package the folder's copies came from and its version.@astryxdesign/build's Babel, PostCSS and Vite integrations, andwithAstryx()under webpack, compile the copies under that folder belowastryx-theme, so a theme's component overrides reach a swizzled component as they reach the package component. For a folder that already holds other files it writes no marker and says what it found and how to add the marker by hand; theswizzle.copyreceipt reports this in a new optionalmarkerfield. Under Turbopack and with the stock StyleX plugins, a copy's styles still land above the theme. The marker is not listed among the copy's files. (#10483)Also released in
@astryxdesign/build. -
The
table-filtertemplate's link-style header actions setminHeight: 0with their auto height, so no minimum holds them taller than their text. (#10588) -
astryx template <name>puts the template a typo slips from first in its suggestions: a name one or two slips away (a letter added, dropped or changed, or two letters swapped, as inAppShellCotnentOnlyordasbhoard) ranks just below the templates that carry every typed word. The suggestion list is never longer than before. (#10712)
-
A new
Course Detailpage template: a long-form sales page for a single offering in two columns — the long read (a preview poster with a fact row, an about block with skill chips, a module syllabus whose sections collapse module by module, an instructor card, reviews with a scored-aspects panel, and a FAQ) beside a sticky enroll rail (the price with a compare-at, a self-paced or cohort start picker, and a weekly-pace slider that computes a finish date). Copy it withastryx template course-detail <path>. (#9753) -
The File Explorer page template scrolls its columns with
StackItemandHStackisScrollableinstead of custom overflow and flex styles, and names each column after the folder it lists while the column scrolls. Its chevrons now mirror in right-to-left, and a detail pane scrolled to its end keeps its bottom padding. (#10421) -
A
useInteractiveRole — One Tile, Four Rolesexample block for the existing hook docs: a polymorphic Tile rendered four ways — href link, onClick button, Popover-trigger context button, inert content — showing the resolution order in one place. (#9972) -
Fix the
useStreamingText — Streaming Responseexample block: it passedisStreamingasfalse, so the streaming reveal it exists to show never ran. The block is now a chat-style reply card with a Regenerate button that streams the response in bursts — the hook reveals it steadily while streaming and snaps to the full text when it ends. (#9975) -
The grouped table page template groups its rows with
useTableGroupedRowsinstead of hand-rendered header rows and a hand-writtencolgroup. Its columns now have headers, each group's toggle is a button that reports whether its group is expanded, and the row menu's Move to project arrow mirrors in right-to-left. (#10423) -
The
useInputStatusIcon — Coupon Code Statusexample block's field appliesinputWrapperStyles.textField. A field copied from it now shows its focus look at once when the primary pointer is coarse, as Core's text fields do. (#10649)
-
Internal: doctor.mjs and template.mjs are formatted with Prettier. No change to any command's output. (#10988)
-
Internal: the icon-set export reader reuses the shared top-level helper, and a source comment on look refreshes is shorter. No change to any command's output. (#10449)
-
Internal: the doc importers import each doc file through one small module that the CLI's own test project loads natively, so its tests no longer time out on a busy machine. No change to any command's output. (#10740)
-
Gothic: accent text and accent icons stay readable on a light media surface. They used Gothic's light accent there, near-white on a light band (1.14:1); now they follow the surface's dark accent (18.7:1 against a white surface). The CLI's Gothic theme template carries the same change. (#10852)
Also released in
@astryxdesign/cli(templates). -
Neutral: an unselected SegmentedControl label meets 4.5:1 in dark mode on AppShell's surface. The track is translucent, so it lightens the surface under the label:
#9e9e9eon#3c3c3cmeasured 4.11:1. The label now takesneutral.dark[80](6.46:1), the same lift Neutral already gives secondary text on its selected rows and pills. Light mode is unchanged, and the CLI's Neutral theme template matches. (#10881)Also released in
@astryxdesign/cli(templates). -
Matcha: light-mode secondary text is slightly darker (Neutral Light 30), so it meets 4.5:1 on the body (5.11:1, was 3.83:1), the surface and the card. (#10932) [fix] Y2K: light-mode secondary text is slightly darker (Neutral Light 35), so it meets 4.5:1 on the Periwinkle body (5.14:1, was 4.25:1). The CLI's Matcha and Y2K theme templates match.
Also released in
@astryxdesign/cli(templates). -
The Butter, Stone and Y2K themes set supporting text (
--text-supporting-size) in rem instead of a fixed 12px, so it grows when a reader raises the browser's default font size, like the rest of the text. At the default size it is still 12px. The CLI's copies of these themes match. (#10320)Also released in
@astryxdesign/cli(templates).
- A swizzled copy can now compile as Astryx source in the Babel, PostCSS, and Vite integrations. Every module under a folder that holds an
astryx-swizzle.jsonmarker gets the library class prefix and lands in@layer astryx-base, belowastryx-theme, so a theme's component overrides reach it.astryx swizzledoes not write the marker yet: add the file to the swizzle output folder. Under webpack,withAstryx()rebuilds a cached copy when its marker appears or disappears. Turbopack builds do not read the marker yet. No API changes. (#10334)
-
Butter's buttons take inline padding only and use
Button's own block padding. Their height is unchanged. (#10588) -
Theme packages publish the declarations of their
./theme.cssexport. The export pointedtypesattheme.css.d.ts, which the package didn't ship, so TypeScript found no types forimport '@astryxdesign/theme-<name>/theme.css'. The export is unchanged; the file is now published. (#10903)Also released in
@astryxdesign/theme-chocolate,@astryxdesign/theme-gothic,@astryxdesign/theme-matcha,@astryxdesign/theme-neutral,@astryxdesign/theme-stone,@astryxdesign/theme-y2k. -
Theme packages declare
"type": "module", so bundlers and Node read the./builtentry as the ES module it is. Before, it was an ES module in a.jsfile in a package without atype, which tools that follow the package'styperead as CommonJS. Every export subpath stays the same. The CommonJS build of the source entry is nowdist/source.cjsbehind the samerequirecondition, with its own CommonJS declarations (dist/source.d.cts), so TypeScript types each condition in the format it loads. As before,require('…/built')loads an ES module, so it needs a Node version withrequire(esm)(22.12 or later). Deep imports that reach pastexportsintodist/change too:dist/source.jsis nowdist/source.cjs, and arequireofdist/<theme>.jsgets an ES module (require(esm), Node 22.12 or later). (#10876)Also released in
@astryxdesign/theme-chocolate,@astryxdesign/theme-gothic,@astryxdesign/theme-matcha,@astryxdesign/theme-neutral,@astryxdesign/theme-stone,@astryxdesign/theme-y2k.
- If your bundler lowers CSS
light-dark(), media surfaces in themes other than Gothic may lose their color overrides, which can make accent text low contrast. This will be fixed in the next stable release. Gothic does not have this issue in v0.7.12.
Thanks to everyone who contributed to this release:
@aashish254 @AKnassa @bhamodi @cixzhang @duytbp @emilyhorsman @ernestt @freddymeta @Geervan @harjothkhara @HelloOjasMutreja @humbertovirtudes @hurrymaplelad @imdreamrunner @jiunshinn @josephfarina @LetMeSleep8h @ManoharPaturi @mego1123 @parinith-web @potatowagon @rubyycheung @thecodebasedot @utkarshpatwa393-sys @Varshavia @vittoriobusatta @vjeux @WeAreResilience
Full Changelog: https://github.com/meta/astryx/compare/v0.7.11...v0.7.12
Astryx v0.7.11
Astryx 0.7.11 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.10 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.11 @astryxdesign/cli@0.7.11 # plus every other @astryxdesign/* package you use, at 0.7.11
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
- Under a finger (a coarse primary pointer, on any touch device), Popover grows out of its trigger, wide before tall, with its edge held on the trigger, and shrinks back into the trigger when it closes. The growth plays the theme's
--duration-medium-min(in the Storybook theme, the step nearest iOS's 206 ms growth) with its entrance easing, and the shrink plays its exit duration and easing, on the compositor. A close during the growth, or an open during the shrink, turns back from where the popover is. With reduced motion it cross-fades in and out, opacity only, in 200 ms or less. A fine primary pointer (a mouse) keeps its entrance. A tap that lands while it grows is ignored, and a pan started then scrolls nothing. The shrink plays on the layer runtime's exit copy, of which Popover is the first user. The growth starts in the next animation frame, before that frame paints, so the opening tap does no extra layout. (#8187) DropdownMenuSubMenuacceptsdelayandhideDelay, in milliseconds, the same optionsTooltip,HoverCardandTopNavMenuhave.delayis how long a hovering pointer waits before the flyout opens (default 150), andhideDelayis how long the flyout stays after the pointer leaves (default 200). The defaults match today's timing, so nothing changes unless you pass them. Keyboard focus and touch never wait. (#10298)Timestamptakes atimezoneIDprop naming the IANA zone its absolute formats render in, such as'UTC'or'America/Los_Angeles'. An explicit zone renders identically on the server and the client, so a server-rendered absolute time no longer depends on the server's zone and hydrates without a mismatch. Omit it (or pass'local') to keep the viewer's own zone, relative formats' visible text ignores it (configuredtooltipEntriesrows still follow it), and an unknown identifier warns once in development and falls back to the viewer's zone. (#9789)
- Animated layout glides now use the theme's
--duration-mediuminstead of--duration-medium-min: 300 ms instead of 225 ms in the Neutral theme, and 410 ms instead of 310 ms with no theme. Their move curve, Reduce Motion behavior, and support forlinear()andsteps()easing stay unchanged. (#10261) - Under Reduce Motion, a cross-fade's move and its call's settle wait while a sampler pauses its fade, so the element never moves, and an exit's element never goes, while the paused fade still shows. (#10378)
Avatarinitials and the default person icon paint in primary text on the neutral tint, a pair at 4.5:1 or more in light and dark mode; secondary text fell below 4.5:1 in dark mode. Initials read darker in light mode and lighter in dark mode. (#10205)- Banner:
role="alert"now sits on the title and description only, not on the whole banner, so an urgent alert holds only its message (component:BannerFR8; WCAG 2.2 4.1.3 Status Messages). The dismiss and expand controls, their tooltips, a caller's action, and the supporting content are outside the alert. ARIA attributes passed withrole="alert", such asaria-label, move with it. Other roles still land on the banner frame. Userole="alert"only for an urgent message, and announce every other message withuseAnnounce. No visual change: the banner renders the same pixels as before. (#6779) - BottomSheet: a touch release takes the iOS sheet's measured values, and a release moving back toward where the drag began cancels. A release faster than about 1,000 px/s is a flick: it goes at least to the next detent in its direction, so a short fast flick at the lowest detent closes the sheet instead of springing back. From a higher detent, a flick that would carry past the next detent goes on, so a hard flick closes the sheet and a softer one stops at the next detent. A slow or medium touch throw now travels less than before, and a slow touch drag closes the sheet only past halfway to closed. A mouse or pen drag is unchanged. (#10234)
- A labelled
Buttonhas its accessible name again in VoiceOver on macOS 14 (Safari 17 and WKWebView). The label sat inside adisplay: contentswrapper, which that WebKit drops names through, so it read an unnamed "button". The wrapper is now a flex box that takes the Button's own layout, and the Button looks the same. (#10256) - Under a finger, a
ButtonorIconButtonis easier to hit. Its touch target grows toward 44 px through an invisible band, as far as its neighbors leave room, and its box doesn't change. A disabled button, or a busy one that can't be interrupted, gets no band, and a button in aButtonGroupuses the group's band. Input clear buttons now use the same band in place of their fixed 24 px overlay, and in Safari a tap on that band clears the field. Nothing changes under a mouse. Swizzling a ListItem, CheckboxInput, RadioListItem, InfoTip or SegmentedControl no longer leaves an import of the touch band's styles that can't resolve. (#10216) CalendarandDateRangeInputno longer cause a hydration mismatch when the server and the browser are on different dates, for example a UTC server and a visitor already in tomorrow. Today is read only after hydration: a server-rendered Calendar shows no today marker until then, and a Calendar with nofocusDateor value keeps its month grid's space empty until the browser's month is known. A DateRangeInput shows the year in its range text until then. (#10226)- Shift and one mouse wheel notch now scroll a
Carouselrow by the notch, once. Before, Firefox also scrolled the row on its own, so each notch moved it twice: React's wheel listener is passive, so Carousel could not stop the browser's scroll. A wheel with a horizontal delta, such as a trackpad swipe, and a row with nothing to scroll keep the browser's own scroll. (#10246) - A theme's
borderRadiusandpaddingon thechat-composertarget now also set the composer's--_chat-composer-radiusand--_chat-composer-padding, so the composer body, its status strip, and the concentric send and attach button radius follow the theme. Withdensity="compact", the body keeps its compact padding, and its radius still follows. Before, the derived-variable registry filed these two mappings underchat, a key no element renders, sodefineTheme({components: {'chat-composer': {base: {borderRadius: '16px', padding: '8px'}}}})emitted onlyborder-radiusandpaddingon the composer root, and everything that reads the two variables kept the default geometry. (#10249) CodeBlock's copy button now says when copying fails. A rejected clipboard write used to look like nothing happened. Now the button shows a cross in place of the copy icon for 2 seconds, as a copy shows its check mark (a theme that maps thecode-block-copyicon slot keeps its own rest glyph during the failure), and is named, tooltipped and announced as "Failed to copy value to clipboard." (a new localized key,@astryx.codeBlock.copyFailed). A newonCopyError(error)prop receives the rejection once per failed copy; the error itself is never shown. (#10272)- The Core modules that read
process.env.NODE_ENVfor development warnings now declare it themselves, so those files type-check in a project that does not install@types/node, such as a swizzledBreadcrumbs,StepperorTabList. Bundlers still replace the value at build time, so production builds drop the warnings as before. No API changes. (#10252) - A block-edge reveal or conceal, as in Collapsible, TreeList and Table's row expansion with an
animatedLayouthandle, now slides the revealed element's children on the same frames as the content beside it, under a still clip on the element's box. An element that paints its own box, such as Table'spanelVariant="muted"panel, keeps the moving clip. On iOS Safari a moving clip ran on its own clock and parted from that content for a few frames; now the two stay together. The glide's timing and curve are unchanged. Collapsible's region now wraps its children in one inner element; selectors likeregion > *or:first-childon the region's children need updating. (#10296) Kbd: a key badge grows with a larger text size instead of holding its fixed height, so a bigger glyph stays inside its badge. At the default text size nothing changes. The docs now listref, say how a screen reader names the shortcut, and say that Kbd only shows keys and does not listen for them. (#10267)- In a List with
hasDividers, a hovered or pressed row keeps both of its dividers visible through its tint, with a mouse and under a finger. The divider above the row used to merge into the tint, and under a finger both dividers did. The dividers keep--color-border; nothing hides. (#10280) - Overlay, AppShell and MobileNav work in a DOM with no
matchMedia, such as an app's jsdom test. Before, Overlay threw on its first render, AppShell as it mounted (with React 19.2 or later), and MobileNav as it closed. WherematchMediaexists, nothing changes. (#10327) - Carousel paging: on a busy page, a finger held on a settling row now stops it, as on an idle page. Before, when the page received the touch and its lift together, a short hold read as a tap and the row ran on to its target. (#10330)
- Carousel paging: a row that resizes while it settles back onto the page it left now hands back to native scrolling, instead of staying held by the paging. (#10419)
presentation="adaptive"no longer crashes in environments withoutmatchMedia(jsdom tests). (#10275)- A Selector's list, opened over its trigger near the bottom of the screen while a software keyboard is up, now slides up and ends above the keyboard with its options in view. Before, it shrank to a sliver or opened under the keyboard. Without a keyboard it opens where it did. (#10169)
- A searchable
Selector's closed trigger now names the selected option after its label, so a screen reader announces the selection (for example "Team, Banana, button, collapsed"). (#10170) - BottomSheet: in iOS Safari, focus moving from a Tall sheet's field to a plain button inside a web component now rides the content down from the blur, as focus moving to any other control that brings up no keyboard does. A frame, or a custom element that can hold a field the page cannot see, still keeps the content in place. (#10388)
StatusDot'ssuccess,warninganderrordots paint their status icon role (--color-icon-<status>) instead of the strong status fill, so the dot keeps 3:1 or more against the page and card surfaces; the warning dot used to read near 1.8:1 on a muted card. Success and error dots change colour too: they take their status icon colour, which is darker in light mode in the default theme. Aniconinside a status dot now paints in the surface colour. (#10204)- On a touch screen with a mouse, after a finger opens a menu, a dialog, a drawer, a mobile nav or a popover, a click with a mouse that has not moved since reaches what is under it while the layer enters. Before, that click landed on the entrance's input hold and did nothing. A finger's or a pen's tap during the entrance is still ignored. A mouse that has sent no pointer event since the page loaded still meets the hold. (#10303)
- BottomSheet: in iOS Safari, which publishes no keyboard slide, when the on-screen keyboard closes, a Tall sheet's content rides down with it on UIKit's keyboard spring, instead of jumping back to its earlier scroll once the keyboard is gone. A field that takes focus again before the keyboard is down rides back up, and focus moving to a select, whose picker takes the keyboard's place, starts no ride. In Chrome on Android, a busy page that reads the keyboard's hide late no longer moves the content back up before it settles. (#9776)
- A toast shown over a
Dialogno longer blinks out for a frame or more when the Dialog closes outside a click, for example when it closes once an awaited save finishes. The toast stays on screen while the Dialog closes. A close from a click, the Escape key or the backdrop already kept it. (#10251) - DateInput: under a finger, a bottom-sheet wheel's turn onto a tapped row, a key's row or a value set from outside now plays the shared settle spring from rest, instead of a fixed 300 ms ease-in-ease-out. The wheel's main interaction is a gesture, so all its motion springs; a flick's coast and a slow release's snap stay as they are. (#9924)
- Closing a Popover, menu or other anchored layer no longer lays out the page an extra time. The layer runtime reads a closing layer's animations only when the layer's closed state declares a discrete
displaytransition or a keyframe animation. It reads that style while the layer is still closed. Such a layer, as TopNavMegaMenu's panel is, still keeps its trigger's anchor name until its fade ends. An animation a script starts is not tracked. (#10368)
- FormLayout says to wrap it in a native
<form>, and that<form>has no Astryx replacement. (#10349) LayerProvider: editors and generated docs now show its description and example; they were attached to an internal constant. The docs no longer say that a nested provider is ignored: a nested provider keeps the outer toast configuration and mounts no second toast viewport, and one that declaresinsetapplies its declared edges to the anchored layers in its subtree. (#10283)- Layout's
heightprop says thatfillneeds a container with a set height, such as AppShell's content area. (#10348)
- Internal: a source comment in
Carouselnow says that the wheel listener reads no style or layout unless a flick holds the row. Apps see no change. (#10281) - Internal: the input hold's constant for the mouse's opening is named for the half side it holds, and its comment goes. Apps see no change. (#10317)
- Internal: Core's keyboard module reads the press slop that press feedback uses for its tap route, instead of its own copy of the same 10 px, and three source comments that restated names are gone. Apps see no change. (#10389)
- Internal: Core's keyboard module keeps a field above the on-screen keyboard where its nearest scroller can bring it up: a field in scrolling content is scrolled into view by its nearest scroller, the document included, a field in a container fixed at the viewport's bottom moves that container up by the part of it the keyboard still covers, unless the container sets its own
translate, the app is moving it itself, or it is taller than the room above the keyboard, where its scroller reveals the field instead, or with none it moves only as far as the field needs, and focus moves and first taps into those fields arrive without the browser's reveal. A field in a fixed container the app positions itself (a dialog or a sheet that fills the viewport, a bar floating above the bottom edge, or a bar with its owntranslate) is revealed by a scroller around it there, and with none keeps the browser's own reveal. Core's fields adopt it next; apps import nothing new. (#9776) - Internal: the layer runtime gains one exit copy for touch presentations that animate a popover out: a static, inert copy of the closing popover, shown only in the top layer where the popover was drawn, for the close to play on. Core's other inert copies now join no form, carry no anchor name and keep their color scheme, as their documentation says. (#8186)
- Internal:
Dialog,DrawerandBottomSheethand the toast viewport back to the page through a callback ref when they close or unmount, in place of a layout cleanup. A toast still stays on screen while the modal closes. Apps see no change. (#10351) - Internal: source comments in Popover's touch presentation and the transient copy now match what the code does: a touch that starts before the input hold can close the popover, and
measurereads before the frame writes. Apps see no change. (#10300)
astryx buildranks Core blocks of component families its picker was not fitted with somewhat better: the block picker's doc-side word weights are refitted from paraphrases of each block's own source. (#10355)
astryx buildnames its two alternative page templates in the same order it chooses the start from, so the three templates it shows for a whole page are its best three. The start, the number of alternatives, the blocks and the JSON shape are unchanged. (#10357)astryx build --type docand--type themenow point toastryx search <query> --type docor--type theme: a build kit has no docs or themes, so build says so once on stderr and names the search that finds them. Stdout, JSON output and exit codes are unchanged. (#10401)astryx doctorno longer warns that no theme is wired in an app that imports its themes itself. Without a generated theme module or a package.jsonastryx.theme, thethemescheck now passes when the source of the app imports a theme's built module or stylesheet (the importstheme addwrites) or passes a theme toTheme, followed through module-scope variables,defineTheme({extends}), re-exports and installed packages to its package, and names the file. Only a theme whose package is installed, or a local theme, counts. A theme passed toThemethat doctor cannot trace (a prop, a function result, a variable declared inside a component) is reported as not confirmed (info), not as missing. (#10353)- The CLI's semver range check reads
^0as any 0.x.y and^0.0as any 0.0.y, and reads a hyphen range (1.0.0 - 2.0.0) as inclusive bounds, with a partial upper bound (1.0.0 - 2) covering its whole series as npm does. Before,^0and^0.0were locked to a single patch version and a hyphen range could never match, soastryx doctorand the peer-version checks reported a false mismatch for projects that declare those ranges. (#10184) - The reminder to run
astryx initin a project that has not run it no longer prints before every command. It now prints after a command that succeeds, at most once a day per project, recorded in the per-user state as the daily hints are. It does not print with--json, after a command that fails, or whenCIis set.astryx doctorstill reports the missing setup in its agent-docs check every time. No JSON shape or exit code changes. (#10343) - In a folder inside an Astryx project whose own
package.jsondeclares no Astryx package, such as a tool folder that installs its own@astryxdesign/core, the setup reminder'sinitcommand now names the project's release, as run from the project's folder: the project's own CLI when it installs one, otherwise the package runner pinned to the project's Core, such asnpx @astryxdesign/cli@0.7.3 init. It used to pin the release of the CLI that answered the run, whatever the project records. No JSON shape or exit code changes. (#10343) astryx experimental render: a page outside a project now renders. Outside a project (no Core or CLI the folder reads, and no package.json that declares one), the page takes the@astryxdesign/*packages its folder lacks, and the integrations a host approves, from the copy the CLI itself runs with, instead of failing with ERR_RENDER_MISSING_DEPENDENCY. React and StyleX come from that copy too, so the page loads one copy of each, even in a React app that installs its own. When that copy's Core cannot be downloaded, a page that needs it fails with ERR_VERSIONS_UNAVAILABLE, as other commands that read Core do. Inside a project, the page uses only the project's own packages. (#10362)- A link to a topic that an integration replaces under the same name opens the replacement. In an app whose integration replaced
themeorgetting-started,doctorreported Core's links to them as naming no doc. (#10342) swizzleno longer copies a component's browser test harnesses (*.spec.ts,*.spec.tsx, such as Item'sItemMarkerColumns.a11y.chromium.spec.ts) when the installed Core source holds them:@astryxdesign/core0.7.5 and earlier, or Core's repository source. They import Playwright and an unpublished test package, so a project that swizzled such a component failed to type-check or build. Core 0.7.6 and later ship no harnesses, so swizzling from them is unchanged. (#10230)astryx theme buildno longer depends on the order it loads the core component docs. A parent doc that lists a sub-component by name only, such asAvatar.doc.mjslistingAvatarStatusDot, erased the values the sub-component's own doc declares when it loaded after that doc; whenAvatar.doc.mjsloaded last,avatar-status-dotvariant:successcounted as a custom value. The build now merges every doc's entry for a component. (#10288)astryx integration verifyno longer reportstheme_module_stalefor a theme whose built module differs only in the command its comment says built it, such as a theme built withyarn astryxand verified wherepnpm exec astryxruns. Any other difference still fails. (#10344)
- A compact or full hook list, and the suggestions for an unknown hook name, list each of Core's folders once. Before, they listed a folder again for each hook they looked up. (#10324)
- A search, build or component read lists each folder once. A process that runs several reads, such as a docs site's search or an agent harness, reuses a folder's listing once the folder has stayed unchanged for two seconds. A later read lists the folder again after an entry is added, removed or renamed. (#10274)
- Within one operation, component discovery reads each component doc once, and the component matcher looks for each component's doc once, not once for each name they resolve. Resolving 30 names that only the matcher finds, such as names in another case, makes 14,794 file-system calls instead of 305,108. Results are unchanged. (#10277)
- The Authoring guides (Quick Start, Field reference, Building Blocks, Ship, Help, and Make your integration work globally) now carry the keyword "authoring", so
astryx search authoringlists them right after the Authoring overview instead of after API function pages. (#10354) astryx build --helplists every value--typeaccepts (component, hook, doc, template, theme), matching the invalid-type error and what build actually runs, and says thatdocandthemegive an empty kit, since the kit has no doc or theme group. A test keeps the help text, the choices, the API doc and the error message on build and search naming the same set, and checks what each value returns. (#10361)- Getting Started has an Upgrade section: upgrade every Astryx package your app lists in one command, to the same release, then run
astryx upgrade. If your package manager holds new releases back, exempt the whole@astryxdesign/*scope, not only some of its packages. (#10241) - The custom theme guide names the files of a local theme, including the same-stem descriptor
theme addreads. (#10347) - The CLI's bundled colour token docs say the status icon colours (
--color-icon-<status>) paint status marks on the page or a card, such as a StatusDot. (#10204) - New block, "Table — Selection in the Leading Mark": row selection with no checkbox column. Each row shows its avatar, and the checkbox takes the avatar's slot while a mouse is over it, on keyboard focus, and on every row once anything is selected. On touch screens the checkbox always shows. It uses the existing
useTableSelectionStateand renders the checkboxes in the name column, so no new Table API is involved. (#10395)
- Internal: the export reader can report type-only exports and map a module's whole public surface in one pass. No change to any command's output. (#10365)
- In
RichTextEditor, Backspace at the very start of a code block turns it into a paragraph holding its lines, with the caret at its start. It used to merge the code into the block above, so a heading above took the code in, and the Markdown read back as a longer heading and a stray paragraph. A code block with nothing above it, which already became a paragraph, now keeps its lines when its Markdown is read back. (#8581) - RichText: an image in Markdown, inline (
) or by reference (![alt][ref]), comes back exactly as written after you edit the text around it; a shortcut reference image (![alt]) followed directly by a link is written in its collapsed form (![alt][]), so the link stays a link. Before, an edit in an image's paragraph could escape its brackets (!\[\](…)), so other Markdown readers saw text instead of an image. RichText has no image node: an image shows as its Markdown source, one token that Backspace deletes whole and autolinking leaves alone. A caret placed inside it moves to its edge, so typing adds text beside the image instead of replacing it. Copying it, or splitting or joining its paragraph, keeps the source. (#10356)
Thanks to everyone who contributed to this release:
@cixzhang @emilyhorsman @ernestt @josephfarina @nbozidarevic @thecodebasedot @utsavo-afk @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.10...v0.7.11
Astryx v0.7.10
Astryx 0.7.10 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.9 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.10 @astryxdesign/cli@0.7.10 # plus every other @astryxdesign/* package you use, at 0.7.10
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
Carousel's
hasSnapalso takesuseSnapPaging(), from@astryxdesign/core/SnapPaging: iOS paging on native snap's stops, under a finger and on a trackpad swipe. A flick moves one view, or one item withuseSnapPaging({pages: 'item'}). A mouse wheel keeps native snapping. Only a carousel given the hook's value loads the pager, andhasSnapalone is unchanged. (#8153) -
Lightbox: a ctrl-wheel or a trackpad pinch now zooms a photo, and a trackpad's scroll pans a zoomed photo. (#8148)
-
Lightbox's zoom now works under a finger the way the iOS Photos viewer does, on a phone, a tablet or a touchscreen laptop. Pinch the photo to zoom around your fingers, and move them to pan while you zoom. Past the zoom limits the photo gives way, then springs back when you let go, at the speed your fingers had. Double-tap zooms until the photo fills the screen, at least 2×, and keeps the tapped point under your finger; double-tap again to go back. On a phone or a tablet, a zoomed photo pans with momentum, stretches past its edges and settles back. The keyboard keeps the zoom it had, 2× about the centre, and keyboard panning now stops at the photo's edges instead of carrying it out of view. Every zoom, a double tap's and a key's included, settles on the same spring. (#8148) The photo's stage fills the viewer. A pinch on the photo no longer zooms the page, and a pinch on the controls or caption still does. With
hasZoomon, a tap on the dark area beside the photo closes the viewer after the double-tap wait instead of at once; a click still closes it at once. The zoom animations run on the compositor, so they stay smooth while the page is busy. WithhasZoomoff, nothing changes. WithhasZoom, Close, Previous, Next and the counter sit on a dark translucent backing, so they stay readable over a zoomed photo. -
createDragToSnapPointsand its hookuseDragToSnapPointslet a drag move an element along one axis and settle it on snap points (px offsets from its resting position) at the release: the nearest one, the next one in its direction after a flick faster thanflickThreshold(default 1008 px/s), or the one it started from when the release moves back. The settle continues the release velocity,settleTo(index)settles without a drag, andonSettle(index)reports where it landed.createDragToSnapPointsis exported from the package root anduseDragToSnapPointsfrom@astryxdesign/core/hooks; the CLI's templates gain a playing-card example of each. (#8658)Also released in
@astryxdesign/cli.
-
Animated layout: the glide, the in-place swap and the edge reveal play the theme's move curve (
--ease-move) over--duration-medium-mininstead of a spring, so they follow the theme'scharacterandtempoand land with the motion around them. Reduce Motion is unchanged: a cross-fade under a coarse pointer, an immediate change otherwise. The glides of AppShell's content area, Collapsible, Table's row expansion and TreeList change feel: 225 ms in the Neutral theme, 310 ms with no theme, instead of about 735 ms. A theme whose move easing is alinear()orsteps()function glides on it, as the browser plays it. The segmented control's selection, which reads its timing the same way, now plays such an easing too instead of moving at once. (#10236) -
Two
AppShells on one page no longer share the main region's id. The first mounted shell keepsid="astryx-app-shell-main", so single-shell pages, skip links and selectors that name it keep working. Each other shell's main region gets its own generated id, which its skip link targets. (#10199) -
BottomSheet: a sheet a touch drag closes leaves on its close spring, starting at the speed of the drag, and its scrim fades out with it on one clock, at the theme's tempo. A BottomSheetSwitcher flow's scrim does too. A mouse or pen drag is unchanged. (#8105)
-
A
BottomSheetthat opens, on its own or pushed over another sheet, modal or not, now focuses itsdata-autofocusfield (aTextInputwithhasAutoFocus) in every browser; for example, a pushed "Edit delivery note" sheet opens on its note field. ABottomSheetSwitcherstep with such a field opens on it too. Before, Chromium left focus on the sheet's panel, so on Android a person had to tap the field before typing. A sheet with no such field still focuses where the browser's own dialog focusing puts it. (#10156) -
Under a finger or a pen, holding the box of a CheckboxInput, a CheckboxList row, a RadioList option or a Switch no longer selects the text beside it, and lifting it activates the control as a tap does. On iOS such a hold selected the label's text and, except on a Switch, toggled nothing. A long press that opens a ContextMenu or runs a row's own long press no longer also toggles a box under it, and a row that opens its own menu from its contextmenu keeps its box unchanged. A long press on the label still selects its text, and a mouse is unchanged. (#10091)
-
CalendaranduseCalendarNavigationkeep moving the visible month whenonFocusDateChangeis given withoutfocusDate. The focus date is controlled only when both props are present, as the imperativenavigateTohandle already treated it; but the Previous/Next buttons and keyboard month crossing switched on the callback alone, so a listener-only calendar reported the new month and then stayed on the old one, with no way to move. The callback still fires in every mode. (#10180) -
Inserting a token through
ChatComposerInput's handle (insertToken) now reports the new value throughonChangeonce, as typing does, and hides the placeholder. Before, a controlled host's Send button stayed disabled or sent a stale prompt. Theai-chat-landingpage template drops the input-event workaround it used to sync the composer after an insert. (#10167)Also released in
@astryxdesign/cli. -
Code: the
codetheme target now reflectssizeasdata-size, so a theme can restyle code that inherits the surrounding text size (size="inherit") differently from code at the default code size. Whensizeis omitted, nodata-sizeattribute is rendered. (#10186) -
CodeBlockandCarousel: the code viewport (while the code overflows) and the carousel scroller draw the theme's focus ring instead of the browser's default, and a theme's--focus-outline-*tokens reach them. Both rings sit inside their component's clipped box, so they show whole. The Carousel ring is painted by the carousel itself rather than the scroller, so the scroller's edge-fade mask no longer fades it, at rest or mid-scroll. The Carousel ring is drawn by an internal shared overlay. (#8875) -
DateInput, TimeInput, DateTimeInput:
valuenow accepts an explicitundefined. In a project withexactOptionalPropertyTypes,value={state}failed to compile whenstateheld whatonChangegave, becauseonChangesendsundefinedfor a cleared field and an optional property no longer took one. A controlled field no longer needs a cast there. (#10129, part of #8961) -
Dialog: when the first
data-autofocusrequest is hidden, inert,aria-hiddenor cannot take focus, the next eligible request takes initial focus. This also holds for a Dialog rendered inside an inert region of the page or in an iframe or Picture-in-Picture window (#10105, part of #4182) -
FieldLabel'slabelTooltipis now an info button after the label, named "About {label}", so keyboard and screen-reader users can reach the help (WCAG 2.2 2.1.1, 4.1.2), and a click or key press on it opens the help without focusing or toggling the field. (#6414) -
Gestures: a pan on its own scroller takes a trackpad's scroll on the axis its touch-action keeps, as it takes a finger's; a scroller inside it still takes the wheel first. A recognizer attached with
manageStyle: falseleaves the element's styles to its caller for that recognizer only. (#10212) -
Touch gestures work on a component rendered into another window's document, such as a same-origin iframe or a Document Picture-in-Picture window. The gesture host checked nodes and touches against this window's classes, so it ignored that window's own. A finger's scroll, a layer's input hold, the press delay inside a scroll view and the iOS selection lock read that window's nodes too. (#10224)
-
Animated layout: on iOS Safari, an Astryx gesture on gliding content goes to what is drawn under the finger. Gestures here are gesture recognizers, long presses, and Switch, Slider and SegmentedControl presses. Before, such a touch went to the element that sat under the finger when the glide started. A plain tap that no Astryx gesture handles still goes to that element until the glide ends, at most the theme's move duration. (#10239)
-
Lightbox: a double-click now zooms 2× about the clicked point instead of about the centre, and the next goes back; the keyboard keeps its 2× zoom about the centre. (#8148)
-
Link: inside a
<Text maxLines>the link now truncates with the text. There its root lays out inline, in the text's lines, so the clamp can cut through the link, and its keyboard focus ring is inset into each line, so the clamp keeps the ring's top and bottom edges visible. Elsewhere, and for a Link that sets its owndisplayormaxLinesor renders as a button, the root keeps itsinline-flexbox. A Link with block-level content, such as anHStackwith an icon, is not supported inside a clamped Text, because it breaks the clamp; place that composition outside the clamp. (#6021, fixed in #6038) -
MobileNav: the drawer's content region is now a navigation landmark (
<nav>) named like the drawer's dialog, so someone moving by landmarks on a phone finds the drawer's links, as they find SideNav's on a wide screen. SideNav items and a TopNav's drawer content both sit inside that one landmark. (#10130) -
Under a coarse primary pointer (a touch screen as the main input), a button's touch press release now runs on the compositor. It keeps fading while the page's script is busy, instead of freezing at full strength and snapping off, and it paints nothing per frame. The release keeps the theme's exit motion timing. With any other pointer, a finger on a touch screen beside a mouse included, nothing changes. Under a coarse primary pointer, while a press is on or fading, Button paints it on its own
::beforeand setsisolation: isolate. At rest it adds neither, so a::beforeyou style, throughxstyleor aclassNamerule, merges into that layer only during a press. Style a child element to keep it unchanged. (#9783) -
Under a coarse pointer, a
SegmentedControlsegment's touch target grows toward 44 px through an invisible hit area, stopping halfway to a neighbor. No segment changes size, and nothing changes under a mouse. (#10137) -
SideNav: during a collapse, the copy of the expanded rail now paints at the rail's own level, just below the rail, instead of at
z-index: 1with the rail raised to2. Page content stacks against the leaving rail as it does against the nav: a positioned sibling with noz-indexno longer sits under the copy, and content positioned above the nav also covers the copy. The motion's timing and curve are unchanged, and Reduce Motion stays instant. (#10145) -
Slider's value tooltip stays on its thumb in every frame of a drag and of the coast after a finger lifts. It trailed the thumb by up to 14 px, because it was anchored to a box that moved only when the owner rendered the new value. The tooltip now moves with the thumb by the same translate, and its anchor box keeps its place until the drag ends. (#10228) -
DropdownMenu,ContextMenuandBreadcrumbItemmenus without aheaderorfooter: Tab or Shift+Tab on a row inside an open sub-menu flyout now closes every open level and the menu, callsonOpenChange(false)once, and lets focus move on from the trigger, as Tab already did from a top-level row (WAI-ARIA Menu Button). Before, the menu stayed open. A menu or sub-menu with aheaderorfooterkeeps its Tab cycle. (#8870) -
useTableSelectionState,useTableTreeState,useTableColumnSettingsStateanduseTableColumnResizeread their latest values as last committed. A render that React discards, as a suspended transition does, no longer reaches their handlers. "Select all rows" now selects the rows on screen, not those of a page still loading. A row's expand toggle, a column toggle and a keyboard resize also start from what is on screen. (#10176) -
Timestamp: every value in the hover card now has a name for screen readers (WCAG 2.2 1.3.1). A copy button sits inside its row's value, so the card passes the description-list check, and a row without a label is named by its time zone's long name, which is visually hidden. (#9041)
-
A bottom toast now keeps its 16 px gap above the bottom safe-area inset instead of sitting on the inset's edge. Under a coarse pointer it clears at least 34 px plus that gap, even on a page that reports no inset (Safari reports one only with
viewport-fit=cover). (#8047) -
An empty toast viewport now has no box, so iOS Safari's bottom toolbar returns to the page color once the last toast leaves. Before, a toast swiped out through the bottom edge left its color on the toolbar until the page reloaded. (#8047)
-
A touch on a toast is now decided by its first move. A first move toward the toast's edge belongs to the swipe and never scrolls the page; any other first move leaves the page its scroll. The shared gesture host makes that claim, so importing Toast now brings in the host: about 24 KB gzip on its own (Toast from about 74 KB to 99 KB), and nothing more on a page whose other touch components already load it. LayerProvider without a Toast import is unchanged. (#8047)
-
A quick flick toward a toast's edge now dismisses it whatever its height. Before, a flick also had to travel 48 px (the distance that already dismisses a one-line toast), so on any toast up to 120 px tall a flick could only snap back; and its speed was timed by when the browser handled the touches rather than when they happened, which in browsers that deliver moves on the next frame made a quick flick look up to twice as slow. (#8047)
-
useImageModesamples the image once for aregionwritten inline. The effect depended on the region object's identity, so the documented call shape (a fresh object literal each render) re-fetched and re-decoded the image on every render, and each result re-rendered, without end. The effect now depends on the region's four numbers. (#10183)
-
On a touch screen, a control that grows its touch target toward 44 px (CheckboxInput, RadioList, Switch, List rows, InfoTip, action groups) measures its neighbours in a shared pass. Each pass used to match every element on the page against the list of interactive selectors. The pass now keeps that list until an element is added, removed or moved, an attribute the list reads changes, or a control starts or stops its watch. It still reads every neighbour's box in each pass, so the touch targets are the same. Measured in Chromium at 4× CPU slowdown on a page with 240 interactive elements, a pass during a scroll took about 70% less time. (#10242)
-
While a Tooltip is open, the observer that follows its trigger through a scroll no longer reads layout to re-arm. It used to read the trigger's box once or twice and the viewport's size on each frame of a scroll. It now takes them from its own report. The Tooltip still checks its placement once per move, on the same frames as before. (#10235)
-
ButtonGroup's docs no longer promise that arrow keys skip disabled members. Arrow keys still move between members, Home and End still jump to the ends, and the group is still one Tab stop. (#10203) -
FieldStatus: the guidance now says that a field's status is announced when its message or type changes, not again when a repeated submit fails with the same errors, and shows how the form announces such a repeated submit, with unchanged errors, once with
useAnnounce(the error count and the first error) and moves focus to the first invalid field. (#10122)
-
Internal: Carousel's Shift+wheel handler carries a lint suppression for the new passive-handler rule until it moves to a native listener. Apps see no change. (#10248)
-
Internal: Core's internal touch entry also names, for Lab's NavigationStack, the gesture host and the coarse-pointer check. Its scroll edge effect reads the internal finger-scroll hook and its end call. Apps import nothing new. (#8396)
-
Internal:
@astryxdesign/core/internal/touchalso re-exports an element's shared animator, the Reduce Motion cross-fade, and the coarse-pointer touch hit area's hook and layer, for Lab's PageControl. It is an internal entry reserved for Astryx's own packages, outside the public API. (#9669) -
Internal:
useFingerScroll(scroller, {onEnd})callsonEndeach time a finger's scroll on the scroller ends, and the hook is re-exported from the internal touch subpath for Lab components that watch a finger's scroll. Internal entries are outside the public API and its compatibility promise; the hook is not exported from the package entry point or the gestures barrel. (#10172) -
Internal: an internal entry reserved for Astryx's own packages exposes the Dialog's title id, inline state and
syncDefaultName()(a header whose title renders after the dialog mounted asks the dialog to look for its name again), so Lab's upcoming DialogHeroHeader can name the dialog and request title focus the way DialogHeader does. Adata-autofocus="dialog-title"request is tried after every explicit request, in preparation for that header; nothing a consumer sees changes (#10105, part of #4182) -
Two source comments, LayerProvider's inset note and ToastViewport's file header, are split into shorter sentences. Nothing that runs changes. (#10244)
-
Internal: the motion foundation's
resolveSettleMsgives a spring role's settling time at the theme's tempo, so a CSS part that plays with the spring can start and land with it. Not exported from the package entry point. (#8105) -
A toast's card no longer runs a hidden
transformtransition, with itstransitionrunandtransitionendevents, when a Dialog, a modal Drawer or a scrim sheet opens or closes over it. The toast already stayed in place. (#10223) -
Internal: the UIKit constants table gains UIScrollView zooming for a photo viewer, measured on iOS 26.2. It holds the give past the zoom limits and Photos' aspect-fill double tap and maximum zoom. The zoom stage geometry that Lightbox's touch zoom is built on comes with it. Neither is exported from the package entry point, and Lightbox's touch zoom reads them. (#8147)
astryx discoverlists the experimental PageControl component from@astryxdesign/lab. (#9684)
- The CLI no longer lists
@astryxdesign/theme-neutral,@astryxdesign/labor@astryxdesign/chartsas optional peers. Before, a package manager could keep a theme from an older release as the CLI's peer after an app removed the theme and upgraded Core, and then warn that the theme's Core peer was not met.@astryxdesign/corestays the CLI's one optional peer. In a Yarn Plug'n'Play workspace member, or a pnpm workspace member withhoist: false, a legacypackage.json#astryx.themeofneutralnow makesastryx componentwarn that it cannot resolve the theme. Add the theme to the app withastryx theme add neutralinstead. (#10232)
-
A new
useMultiCombobox — Issue Labelsexample block builds a Labels field onuseMultiCombobox: typing filters the labels, the arrow keys move the active option while focus stays in the field, Enter or a click toggles a label and the list stays open, and selected labels show as removable tokens above the field. Copy it withastryx template useMultiComboboxHookUsage <path>. (#9578) -
A
useSnapPaging — Onboarding Pagesexample block: onboarding cards in a Carousel withhasSnap={useSnapPaging()}move one view per flick, and a switch moves one card per flick through the hook'spagesoption. Copy it withastryx template CarouselSnapPaging <path>. (#8153)
Thanks to everyone who contributed to this release:
@cixzhang @GuillaumeMMM @HelloOjasMutreja @jiunshinn @kyu-rong @ManoharPaturi @thecodebasedot @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.9...v0.7.10
Astryx v0.7.9
Astryx 0.7.9 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.8 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.9 @astryxdesign/cli@0.7.9 # plus every other @astryxdesign/* package you use, at 0.7.9
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
astryx discoverlists the experimental NavigationStack and NavigationScreen components from@astryxdesign/lab.
astryx discoverlists the experimental CircleCheckIndicator component from@astryxdesign/lab.astryx theme buildkeeps a theme'scomponentIconsslot functions. The built module imports each slot function from the module the theme source imports it from, writes static slot values beside it as JSON, and reads back the same staticcomponentIconsview, so component icon slots resolve the same for the built theme as for the runtime theme. This includes slots inherited from a built, package, or family base. A slot function defined in the theme file still fails the build: move it to its own module and import it. In--familyoutput, a member supplies its own slot functions through a named import of its wholecomponentIconsmap. The module keeps each slot import as the theme source spells it (--icons-specifierrewrites only the icon registry import), so with--outin another directory, a module must answer to that specifier from the output directory.- A theme chooses which shared icon a component's own icon role uses, by slot, with
defineTheme({componentIcons}). The first slot iscode-block-copy: CodeBlock's copy button passes{copied}and, with no theme entry, drawscopy, thencheckwhile copied. A slot value is a shared icon name,nullto hide the icon, a partial{icon, variant, size}request, or a pure function of the slot's state that returns one; a field the request leaves out keeps the component's own value. For the copy button,nullhides only the glyph.theme.componentIconsreads back the static values.ComponentIconSlotMapand the slot value types are exported from@astryxdesign/core/Icon.astryx theme buildcarries static slot values into built themes and fails on a slot function, andastryx componentlists a component's slots. createPanGesture(element, {axis?, onPan})andusePanGesture(ref, {axis?, onPan})report a drag on an element as values:onPangets{state, translation, velocity}as the drag begins, changes, ends at the release, or is cancelled, and a finger, a mouse and a pen all drive it. A mouse or pen drag that starts on selectable text selects it instead; give text the drag should moveuser-select: none.axislimits the drag to'x'or'y'; a drag along the other axis is not reported.translationcounts from where the drag began, so an element that follows it does not jump, andvelocityatendedis the release velocity in pixels per second. The drag claims its touch at UIKit's 10 pt and leaves presses and long presses alone.destroy()removes every listener; the hook creates one pan for the element behindrefand destroys it at unmount.- Motion: a theme's
temponow times the springs of touch motion as well as its CSS durations. Each spring keeps its shape and takestempotimes as long, and so does the animated-layout glide. Finger tracking and busy loops stay as measured. A theme with only a duration scale keeps its springs at tempo 1, even inside a theme with a tempo. The springs don't followcharacteryet. The motion doc says so.
astryx docs <namespace> <section>loads the project once instead of once for every guide below the namespace, so on a namespace with many guides, such asastryx docs authoring <section>, the read itself takes tens of milliseconds instead of hundreds. The answer is unchanged.- A run that takes over a crashed run's release-cache lock now also recognizes the npm install that run left behind by its original command line, as npm shows it before renaming its process, when Node's own file is not named
node, such asnodejsornode-linux-x64. - The lexical ranker behind
astryx build's search ranks the candidates search gathers, reused the same way. A later query in the same folder, for the sametype, gathers again only when an input changed. In a long-running caller, a build that follows a build or a search no longer reads every component, hook, doc, template and theme again. A search that follows a build no longer reads them again either. Results are unchanged. - Under the Neutral theme, a selected row, a calendar range and the other selected fills on Neutral's surfaces are visible again, and highlighted code lines are stronger.
--color-accent-mutedmatched the surface in dark mode and barely differed from the hover tint in light mode; it is now#d4d4d4in light and#474747in dark. In dark mode a selected Item, TreeListItem or checked CheckboxListItem row, a numbered Citation and a FileInput dropzone lift their secondary text so it stays readable on the fill; a dropzone's hint is slightly lighter at rest too. Neutral's code comments, operators and punctuation are slightly less muted so they stay readable on a highlighted line. The CLI's Neutral theme template carries the same values. - The stock theme's dark-mode accent (
--color-accent) is now#0171E3instead of#2694FE, so white text on an accent fill, such as a primary Button's label at rest, meets 4.5:1 (4.70:1, was 3.11:1). Hovered and pressed primary Buttons improve too (about 4.36:1 and 4.03:1, from under 3:1) but stay under 4.5:1. Light mode keeps#0064E0. Everything else painted with--color-accentin dark mode also darkens: accent fills, focus rings and accent icons. MetadataList's "Show more", Table's sort rank and DateRangeInput's applied preset now use--color-text-accent, so their text stays readable on dark surfaces. The theme template thatastryx theme templatewrites uses the same dark accent, and the generated color token docs list it. To keep the previous look, a theme can set'--color-accent': ['#0064E0', '#2694FE']. astryx swizzleno longer runsgh auth statusbefore it reports: the readygh issue createline appears whenghis on your PATH, found without running it, so a copy never waits on a process start or on GitHub. The line now also appears whenghis installed but not logged in; running it, gh asks you to log in.astryx swizzlenow copies the private attribute owner modules a component imports, and the unexported style modules they need, beside the copy in the package's layout. A swizzledItem,CheckboxList,RadioListorTreeListno longer imports aprivateAttributes/*.stylexsubpath that@astryxdesign/coredoes not export. A second swizzle reuses an identical copy and refuses a changed one without--overwrite. The receipt'sfilesandfilesCopiedinclude the modules it copied.astryx theme buildreads the theme's icon import from the source it loaded: a theme saved in place while it builds now builds with its import, or fails and builds on the next save, instead of producing a module without the import.- theme: support
CustomTextTypesmodule augmentation for custom Text variants (#5013)
astryx searchandastryx buildread Core's exports map once per run, not once per component. With the other readers, a search now reads Core's package.json 10 times instead of 183. Results are unchanged.- When no loaded integration ships templates, the integration-issue check no longer imports every Core template doc.
astryx doctorin a project whose integrations only ship icon sets now imports none of them. - With no integration loaded, the integration-issue check no longer imports every Core template doc.
astryx discover, andastryx componentwithout--showcaseor--blocks, now import none of them. - The integration manifest writer loads the code-rewrite toolkit only when it patches a manifest.
astryx component,astryx theme listandastryx doctoroutside a project no longer load it, and a component lookup loads about 70 fewer modules. astryx searchandastryx buildlook for a component's doc only in the Core folders whose listing holds its name, not in every folder. A search makes about a quarter of the file checks it made before. Results are unchanged.- Outside a project whose config names
debugorintegrations,astryx --versionno longer loads the project, integration and code-rewrite modules. In a folder with no project config, it uses about three quarters less CPU. When no integration is installed,astryx docsandastryx hook --listload the project but not the code-rewrite modules. Output and exit codes are unchanged. astryx searchandastryx buildwork out a query word's forms once per entry they score, not once per word compared. Answers are unchanged.astryx searchandastryx buildcompute a typo's edit distance only up to the most edits that can count. A fuzzy match now computes far fewer table cells, with unchanged answers.- A standalone
astryx theme buildagainst the current Core loads Core's root entry only when the theme imports it. A theme that imports only@astryxdesign/core/themeno longer loads all of Core and its components. Family builds and builds against an older Core still load the root. Some builds hand the theme its Core: family builds, builds against an older Core, and themes whose folder has no Core. There, a theme that imports a Core rootrequire()cannot load, such as one that awaits at its top level, fails withERR_THEME_LOAD. The error names that root. astryx doctor's theme checks, family builds and builds against an older Core defer an installed Core's root entry. It loads only when the theme or one of its.cjsdependencies imports it. A theme that does not import Core's root no longer loads all of Core and its components for them.
- The calendars guide says
Calendar,DateInput,DateRangeInput, andDateTimeInputshow the Gregorian calendar unless the application chooses another one. (#9842) - Hook docs for
useCalendarDays, soastryx hook useCalendarDaysandastryx searchreturn it, and auseCalendarDays — Month Gridexample block: a compact month table built from the hook'sweeksanddayNames, with the previous and next months' days dimmed and a Week starts on control (Sunday or Monday) that reorders both the header and the grid. Copy it withastryx template useCalendarDaysHookUsage <path>. - Hook docs for
useIcon, soastryx hook useIconandastryx searchreturn it, and auseIcon — Status Rowexample block: a custom status row draws the success, warning and error icons withuseIcon, and under a Theme that overrides those icons the same row draws the theme's icons. Copy it withastryx template useIconHookUsage <path>. - Hook docs for
useLinkComponent, soastryx hook useLinkComponentandastryx searchreturn it, and auseLinkComponent — Article Cardsexample block: custom Article cards render their title link with the component the hook resolves. Inside a LinkProvider wired to a client-side router the title navigates without a page load,as="a"gives a native anchor even inside the provider, and outside the provider the title falls back to the next provider up or a native anchor. Copy it withastryx template useLinkComponentHookUsage <path>. - Hook docs for
useOverlay, soastryx hook useOverlayandastryx searchreturn it, and auseOverlay — Product Quick Viewexample block: a product Card spreads the hook'scontainerRefandcontainerPropsand renders the returned scrim once over its image. Hovering the card, or moving keyboard focus into it, reveals a Quick view button, and the image link before it lets Tab reach the button. Copy it withastryx template useOverlayHookUsage <path>. - Hook docs for
useTableSortableState, soastryx hook useTableSortableStateandastryx searchreturn it, and auseTableSortableState — Multi-Sort Ordersexample block: an orders Table with no sort code of its own, where clicking Customer and then Shift-clicking Total sorts by customer and then by total. Copy it withastryx template useTableSortableStateHookUsage <path>. - Internationalization gains a short Other calendars guide: choose a calendar on
InternationalizationProviderorCalendar, values stay Gregorian ISO dates, and most calendars needTemporal(loadtemporal-polyfill/full/globalwhere it is missing). A newastryx docs calendarsnamespace has the detail: the supported calendars, loadingTemporalon the server and in the browser, why the lunisolar calendars (chinese,dangi) can differ by a day between runtimes, and ISO 8601 week numbers. The guide andCalendar'scalendarprop docs say how to get identical server and browser markup for those calendars:installImplementation()fromtemporal-polyfill/full/shimon both sides, since thefull/globalimport keeps a nativeTemporal. - InfoTip: the component page,
astryx component InfoTip --showcase, andastryx component InfoTip --blocksnow have worked examples — a showcase metric label, a row of metric definitions, and read-only settings with permission notes. InfoTip's docs list its anatomy (trigger button, info icon, help surface) and say it follows the toggletip pattern: the button reportsaria-expanded="true"while the help is pinned, and a screen reader hears the help once when it pins. - The
usePanGesturepage opens with a draggable box in two forms side by side: the hook andcreatePanGesture, which takes any element, with the same StyleX styles and Astryx tokens. The playing card follows as the advanced example. ThecreatePanGesturepage points to that example, and theusePanGestureguidance warns against holding the drag offset in a large component's state. - A new
useClickableContainer — Clickable Project Cardexample block makes a project card clickable anywhere withuseClickableContainer: a click on the card follows its title link, while the Star button, the owner link and a text selection keep their own behavior, and Ctrl/Cmd+click or middle-click opens the project in a new tab. Copy it withastryx template useClickableContainerHookUsage <path>. - A new
useImageMode — Photo Captionexample block shows a caption over a photo's sky.useImageModesamples only the strip under the caption, andMediaThemegives the caption light or dark text from the result. A Beach photo switch swaps a night photo for a bright beach photo, and the caption keeps the dark fallback while the new photo loads. Copy it withastryx template useImageModeHookUsage <path>. - A new
useInputContainer — Search Field Wrapperexample block builds a custom search field with a leading search icon, padding and a trailing Clear button.useInputContainerputs focus in the input when the icon or the padding is clicked, and a click on Clear stays with Clear. Copy it withastryx template useInputContainerHookUsage <path>. - A
useMergedRefs — AutoGrowTextAreaexample block: an AutoGrowTextArea forwards the caller's ref and keeps its own ref to measure its height, and the merged ref attaches both to the same textarea, so it resizes itself while a parent button focuses it through the forwarded ref. Copy it withastryx template useMergedRefsHookUsage <path>. - A new
useScrollLock — Full-screen Mobile Menuexample block opens a custom full-screen menu from a Menu button and locks the page behind it withuseScrollLock, so the page neither scrolls nor shifts sideways, and closing the menu returns the reader to the same scroll position. Copy it withastryx template useScrollLockHookUsage <path>. - A new
useScrollOverflow — Filter Strip Edge Fadesexample block shows a row of active filters that scrolls sideways and fades only the edge whereuseScrollOverflowreports hidden filters. Adding or removing a filter updates the fades, and a right-to-left switch moves the start edge to the right. Copy it withastryx template useScrollOverflowHookUsage <path>.
- Internal: the search gather runs in its own listing-cache operation, so a caller that gathers candidates directly lists each folder about once, as
astryx searchalready does. The command's results and output are unchanged. Not exported from the package entry point. - Internal: the CLI's in-process test helper builds only the commands its arguments need, as a run of the bin does.
- The CLI's test setup rebuilds Core when its build is older than Core's sources or translations. It does so before any test starts, so a reused checkout no longer tests the CLI against an old Core build. A test waiting on another's build reads it only once that build is finished. One checkout's build no longer holds up another's tests. A run that cannot rebuild a stale Core, while an earlier run in the checkout uses it, stops with an error naming that run.
- The PowerSearch blocks fit a phone-sized screen. Each sizes its field through a grid column,
minmax(0, <width>): the old width where there is room, and the container's width where there is not. The Search with Table block's table scrolls inside its own frame on a narrow screen instead of widening the example. - Internal: the main searcher's test checks the count contract for each query, not a byte total over eight queries.
- The Tokenizer blocks and the table-inbox and work-item-detail page templates follow Tokenizer's
'adaptive'default, so on a compact touch screen they show the bottom sheet. TheirendContentandrenderTokenwork there as in the inline field;hasClearand the overflow modes apply to the inline field, and the Clear and Overflow blocks say so. The rule: docs examples followadaptive; the stories that are fixtures for inline-field geometry (Caret placement, Logical order, RTL end lane, Long token beside the end lane) keeppresentation="popover". The table-inbox and work-item-detail back arrows mirror in right-to-left.
Thanks to everyone who contributed to this release:
- @cixzhang
- @imdreamrunner
- @jibin7jose
- @MannXo
- @nynexman4464
- @Sainath-Reddy7
- @vjeux
- Under the touch presentation, ButtonGroup tracks a finger's or a pen's press across its buttons, like a menu. Press a button and slide across the others: the highlight follows, and the button you lift on runs. Lifting outside the group runs nothing. A mouse press is unchanged: it acts as a native button's, on the button it began on. With a finger, each button's target grows toward 44 px, up to half the gap to a neighbour, without the buttons growing. A menu trigger in the group keeps its own opening, and the keyboard is unchanged. Before, each button tracked only its own press, and sliding off it ran nothing. An enabled ButtonGroup root is position: relative under a coarse pointer, so absolutely positioned children anchor to the group. With a fine primary pointer, the group is unchanged.
- DateInput, DateTimeInput: the bottom sheet shows the calendar. With a
calendarsuch as'persian','hebrew', or'japanese', the bottom sheet shows months of the calendar, with its month names and the locale's digits, in panes of one fixed height, and its closed field writes the date in the calendar. Its month wheel lists the months of the selected calendar year, including leap months such as Adar I and Adar II, and a year change keeps the month or moves to its common counterpart (Adar I becomes Adar). Year labels carry the era, such as令和8, and a year in which the era changes is labeled with the era of the shown month, as on iOS: 2019 reads平成31in January and令和元in July, and the month heading follows the same date, so January 3, 1989 reads昭和64年1月. A provider locale with a-u-ca-keyword keeps the Gregorian sheet; setcalendarto choose a calendar. Values stay Gregorian ISO dates. (#9842) - Core gains an internal parser for dates typed in a calendar system. It reads dates typed in any
CalendarSystem, in any decimal digits, with month and era names, leap months such as Adar I, and Japanese eras such as令和元年, and returns a Gregorian date. A date the calendar does not have is rejected and never adjusted. It also writes the committed text and the format hint, and reads them back as the same date in each calendar's own locale, in English and Swedish, and in locales whose weekday names are also month or era names. No component reads typed text with it yet, and no public API changes.Calendaroutput does not change. useCalendarDaysanduseCalendarNavigationtake an optionalcalendar(defaultgregory) for custom month views in other calendar systems; they never read the provider's calendar.- DateInput, DateTimeInput: never show the native date control in a calendar it cannot show. With a
calendarother thangregoryoriso8601, such as'persian'or'hebrew',adaptive-native(the default), the deprecatednativePickervalues, andpresentation="native"use the calendar popover on a mouse and the bottom sheet on a touch screen, because the native date control shows only Gregorian dates. An explicitpresentation="native"also warns in development. A provider locale with a-u-ca-keyword keeps Gregorian dates and the native control; setcalendarto choose a calendar. Values stay Gregorian ISO dates. WithoutTemporal, calendars other thangregory,iso8601,buddhist,roc, andjapaneseshow Gregorian dates and the native control as before. (#9842) - DateRangeInput: show the range in the calendar. DateRangeInput takes a
calendarprop, such as'persian'or'hebrew', defaulting to theInternationalizationProvidercalendar (a provider locale with a-u-ca-keyword keeps Gregorian dates; setcalendarto choose one), and writes its trigger text and shows its popover calendar in it. Values stay Gregorian ISO dates. WithoutTemporal, calendars other thangregory,iso8601,buddhist,roc, andjapaneseshow Gregorian dates. (#9842) - InternationalizationProvider takes a
calendarprop (CalendarSystem, exported from@astryxdesign/core/i18n), such as'persian','hebrew','islamic-umalqura', or'buddhist', and exposes the resolved calendar onInternationalizationContextascalendar. A locale never selects the calendar:fa-IRresolves to Gregorian until you setcalendar="persian", and a provider locale with a-u-ca-keyword, such asth-TH-u-ca-buddhist, keeps Gregorian dates; setcalendarto choose one. An unknown identifier resolves to Gregorian and warns once in development. The Gregorian-aligned calendars (gregory,iso8601,buddhist,roc,japanese) work everywhere; the others needTemporal. The context keeps the requested calendar; whereTemporalis missing, a date component that resolves it shows Gregorian dates and warns once in development. Astryx date components keep showing Gregorian dates, and date values stay Gregorian ISO strings. - Calendar shows dates in other calendar systems.
Calendartakes acalendarprop (CalendarSystem), such as'persian','hebrew','islamic-umalqura', or'buddhist', and otherwise shows theInternationalizationProvidercalendar. A provider locale with a-u-ca-keyword, such asen-u-ca-buddhist, keeps Gregorian dates; setcalendarto choose one. Values do not change:value,min,max,focusDate, and every callback stay Gregorian ISO dates.DateInput,DateTimeInput, andDateRangeInputshow dates in the same calendar. In the selected calendar, the grid shows that calendar's months, including leap months such as Adar I and Adar II and the five- or six-day thirteenth month of the Ethiopic and Coptic calendars. Its heading, day names, and announcements use the calendar; Previous, Next, PageUp, and PageDown move one calendar month; and Shift+PageUp and Shift+PageDown move one calendar year to the same month. Day numbers use the locale's digits, and week numbers stay ISO 8601. The Gregorian-aligned calendars (gregory,iso8601,buddhist,roc,japanese) work everywhere. The others needTemporal; where the runtime lacks it, such as Safari or Node.js 24, load a polyfill liketemporal-polyfill/full/globalon the server and in the browser, or those calendars show Gregorian dates and warn once in development. A server-rendered app loadsTemporalon the server too, since a server without it renders Gregorian markup. - Built-in date formats follow the calendar of the
InternationalizationProvider. Withcalendar="persian", Timestamp'sdate,date_long,date_weekday, anddate_timeformats, the full date in its hover card and accessible name, and PowerSearch date values are written in that calendar, the same oneCalendarshows. A provider locale with a-u-ca-keyword keeps Gregorian dates; setcalendarto choose one.date_timekeeps its time of day.time, the relative formats,system_*, andunix_secondsdo not change, and without a provider calendar every output stays the same.formatSharedDatefrom@astryxdesign/core/utilsandformatFilterValuefrom@astryxdesign/core/PowerSearch/utilstake an optional trailingcalendarargument that defaults to'gregory'. Each of these dates names the month and day thatCalendarshows for the same day, as doesplainDateFormatwith acalendaroption other than'gregory'. A calendar that needsTemporalshows Gregorian dates where the runtime lacks it, as the date components do. - DateInput, DateTimeInput: type dates in other calendar systems. Both take a
calendarprop, such as'persian','hebrew','japanese', or'buddhist', and otherwise use theInternationalizationProvidercalendar. A provider locale with a-u-ca-keyword keeps Gregorian dates; setcalendarto choose one.value,onChange,min, andmaxstay Gregorian ISO dates. People type a date the way the locale writes it in that calendar, in any decimal digits, such as۱۴۰۵/۸/۱۱,1 Adar 5784, or令和元年5月1日; the committed text, the popover calendar, and thedate,date_long, anddate_weekdayformats use the calendar, andsystem_datestays the ISO date. Years are years of the calendar, so a Buddhist field reads2026as Buddhist year 2026: setminandmaxon Buddhist and Minguo calendar fields to catch a Gregorian year typed by mistake. A date the calendar does not have, such as 30 Esfand in a common Persian year, is named and never adjusted. An empty focused field without aplaceholdershows an example date that the field accepts, and its description names the calendar when it differs from theInternationalizationProvidercalendar. Calendars other thangregory,iso8601,buddhist,roc, andjapaneseneedTemporal, native or a polyfill you load; without it the field shows Gregorian dates. (#9842) Typing changes for Gregorian fields too: - ClickableCard and SelectableCard no longer show their pressed look when a finger press starts on a control inside them, such as an info button, a button, or a link. A mouse press is unchanged.
useClickableContainerreturnsonPointerDown; on a container that paints its press withusePressFeedback, spreading it drops a touch press that starts on a nested control. A mouse:activepress paint is unchanged. A container that does not spread it works as before. - Table: the row-expansion toggle resolves its glyph through the
table-row-expandcomponent icon slot with state{expanded}. With no theme entry it drawschevronRight, as before. The toggle still turns the glyph a quarter turn while expanded and mirrors it in right-to-left layouts, whatever the slot resolves. A theme maps it withdefineTheme({componentIcons: {'table-row-expand': …}});nullhides only the glyph, and the toggle keeps its name,aria-expanded, and its toggling. - Table: a sortable column's sort indicator resolves its glyph through the
table-sort-indicatorcomponent icon slot with state{direction}('ascending' | 'descending' | 'none'). With no theme entry it drawsarrowUp,arrowDown, orarrowsUpDown, as before. A theme maps it withdefineTheme({componentIcons: {'table-sort-indicator': …}});nullhides only the glyph, and the sort control keeps its label, its sorting, and the header'saria-sort. - Timestamp: the hover card's copy button resolves its glyph through the
timestamp-copycomponent icon slot with state{copied}. With no theme entry it drawscopy, thencheckwhile copied, as before. A theme maps it withdefineTheme({componentIcons: {'timestamp-copy': …}});nullhides only the glyph, and the button keeps its name, tooltip, and copy action. - A theme chooses which shared icon a component's own icon role uses, by slot, with
defineTheme({componentIcons}). The first slot iscode-block-copy: CodeBlock's copy button passes{copied}and, with no theme entry, drawscopy, thencheckwhile copied. A slot value is a shared icon name,nullto hide the icon, a partial{icon, variant, size}request, or a pure function of the slot's state that returns one; a field the request leaves out keeps the component's own value. For the copy button,nullhides only the glyph.theme.componentIconsreads back the static values.ComponentIconSlotMapand the slot value types are exported from@astryxdesign/core/Icon.astryx theme buildcarries static slot values into built themes and fails on a slot function, andastryx componentlists a component's slots. - Under a finger (a coarse primary pointer), an interactive
Listrow's hit target grows toward 44px where its neighbors leave room: the shared touch hit area measures each row and stops at half the gap to the nearest neighboring row or control. Rows look and lay out exactly as before, and a mouse is unchanged. Under a finger a list row's::afteris that invisible layer, so decorate a row with a child instead. AnItemthat stops delegating to a nested control now drops its pressable-container marker, so a clickable card around it gets a mouse click in the row's padding again.InfoTip's button takes taps through the same layer: it still grows toward 44px where its neighbors leave room, and waits for motion around it to end before it grows; it clears when it stops taking taps. A labelledCheckboxInputand aRadioListItemoption keep their band's insets through the same hook, so the insets clear when the control stops taking taps. - Under a finger, on every device, the finger that opened a DropdownMenu or MoreMenu now picks a row only after it has moved 10 px (
spec:AST-094FR29, FR43), so a menu that appears under a resting finger never picks the row beneath it, however long the finger rests. To keep the previous behavior, where that finger's lift picked once the press had lasted 300 ms, passpresentation="popover". A mouse and the publicuseMenuPresshook are unchanged. - Holding a NumberInput stepper with a mouse or a pen repeats the step: the first repeat comes after 0.5 s, and later ones come faster. The field shows each repeated value as its draft and calls
onChangeonce, when the hold ends by release or pointer cancel. A click still steps and commits at once. createPanGesture(element, {axis?, onPan})andusePanGesture(ref, {axis?, onPan})report a drag on an element as values:onPangets{state, translation, velocity}as the drag begins, changes, ends at the release, or is cancelled, and a finger, a mouse and a pen all drive it. A mouse or pen drag that starts on selectable text selects it instead; give text the drag should moveuser-select: none.axislimits the drag to'x'or'y'; a drag along the other axis is not reported.translationcounts from where the drag began, so an element that follows it does not jump, andvelocityatendedis the release velocity in pixels per second. The drag claims its touch at UIKit's 10 pt and leaves presses and long presses alone.destroy()removes every listener; the hook creates one pan for the element behindrefand destroys it at unmount.LayoutPanel,ResizeHandleandSideNavtakeuseResizable's output directly in theirresizableprop:const resizable = useResizable({…}); <LayoutPanel resizable={resizable}>…</LayoutPanel> <ResizeHandle resizable={resizable} />. The output'spropsstill works, andSideNav'strueand config object are unchanged. Given the output,SideNav's rail follows the region: its width and collapse state come from the region, its toggle calls the region'scollapseandexpand, and the region'sautoSaveIdsaves the width. Whencollapsiblealso sets a collapsed state, the region wins andSideNavwarns in development. Any other element can use the hook'ssize; the Resizable docs show one sized with a StyleX dynamic style.- Under a finger, a labelled CheckboxInput and each RadioList option get an invisible hit area. It grows toward 44 px, never makes the target smaller than the control’s own box, and stops at half the gap to a closer neighbour, so neighbouring targets never overlap. Nothing changes size. Under a finger a RadioListItem row’s
::afteris that hit area, so decorate a row with a child. A label-hidden checkbox inside another component’s row keeps that row’s target. With a mouse or trackpad nothing changes. - Motion: a theme's
temponow times the springs of touch motion as well as its CSS durations. Each spring keeps its shape and takestempotimes as long, and so does the animated-layout glide. Finger tracking and busy loops stay as measured. A theme with only a duration scale keeps its springs at tempo 1, even inside a theme with a tempo. The springs don't followcharacteryet. The motion doc says so.
- A backdrop press that closes a menu or popover open inside a
Dialog(purpose="info"), aDrawerwith its scrim, orCommandPalettenow closes only that menu or popover. The next backdrop press closes the dialog, as a second Escape does. Fixes #9920. - BottomSheet: a finger's pull up past the top stretches the sheet on every pull, on iOS's rubber band, with no 48 px cap, unless the caller sizes or styles the sheet (an inline block size, any
xstyleor class name), which keeps it. The sheet keeps enough of its surface below the screen that the page never shows. A pull on the content stretches it too once the content has no room left to scroll: at once for content that fits, and after a long list reaches its end. A mouse or a pen keeps its current stretch. - BottomSheet, Tokenizer, PowerSearch: a swipe that asks to close a sheet whose owner keeps it open — the Tokenizer and PowerSearch sheets ask before a changed draft is discarded — no longer leaves the page behind the sheet undimmed. The scrim the drag thinned returns with the sheet to its resting detent, so the page stays dimmed while the confirmation is open and after Keep editing; Discard still closes the sheet with its exit.
- BottomSheet: a standalone sheet (not a
BottomSheetSwitcherstep) removed while it is open (rendered only while open, or removed with the rest of a view) returns focus where a close would send it, while that place is still on the page: tofinalFocusRef, else the control that opened it, or into the sheet beneath. A whole stack of standalone sheets removed at once returns focus to the first sheet'sfinalFocusRefor opener. When none of these is left on the page, for example when the opener is removed with the sheet, focus stays where the browser leaves it. Focus the person had already moved out of a sheet, to the page body, stays where it is. A sheet that opens in the same update keeps focus, and removing a covered sheet under a top sheet that stays moves no focus. - The internal calendar date parser reads back the text it writes in more locales. It reads month names that start with a number, such as Latvian
1. adarsfor Adar I and1. rabīfor Rabi' I, and still reads1. adarsas day 1 of Adar when no other number can be the day. It reads a numeric pattern that uses two separators, such as the Hindi Buddhist format hint. In the Japanese and Minguo calendars, whose era changes between 1900 and 2100, a year without its era can read as the wrong date. There, a format hint that would otherwise leave out the era shows the narrow era when it keeps the locale's field order, such as Amharic1/1/8 R. Where every era width moves the fields, a date of an earlier era adds the era, such as ColognianBROC 1. Jan. 12, which no longer reads as a date in 1923. Calendars with one era in that range, such as Buddhist, Ethiopic or Hijri, write the same text as before. No public API changes. useChatNewMessages(whichChatLayoutuses),useSpeechRecognitionanduseChatDictationread their callbacks and other latest values as last committed. A render that React discards, as a suspended transition does, no longer has its callbacks called on the next resize or recognition event. Its audio context is no longer used either. After such a render,useChatNewMessagesalso no longer flags new messages while the list follows the bottom.- A checked, enabled, editable
CheckboxListItemrow now reflectsdata-selected="selected"on its row, the element that carries itsitemandlist-itemtargets, so a theme'sselectedrules for those targets restyle checked rows and the text on their fill. - On a touch screen, a CheckboxList row now answers a finger the same way wherever it lands. Under a finger, pressing a row's label painted the whole row while pressing its box painted only the box; under a coarse primary pointer the row is now the one touch press surface, so the row and its checkbox show the pressed state together whether the finger lands on the label, the description or the box. Where the primary pointer is fine (a mouse, a trackpad, or a pen on a desktop page), the box keeps its own press and hover, as before.
- A disabled
CheckboxInputno longer runs a caller'sonKeyDown,onKeyUp,onPointerDown,onMouseDownor any otheron*prop exceptonFocusandonBlur. Before, a disabled checkbox stayed focusable and clickable, so a key or pointer press on it still reached them; onlyonClickwas withheld. Now a disabledCheckboxInputruns no caller handler other thanonFocusandonBlur, as a disabledSlider,TextInputandTextAreado (spec:AST-085FR2). An enabledCheckboxInputis unchanged. No API changes. - When a
LayoutPanelbeside aResizeHandlecollapses with focus inside it, focus moves to the handle, and the collapsed panel is inert and hidden from assistive technology until it opens, instead of keeping focus, and a Tab stop, in a panel of no width. This holds for a panel that takes auseResizableregion'sresizableprops, whether the hook's own or a hand-built object, and for a panel at the region's size beside a handle given them. A collapse started from the handle or from outside the panel keeps focus where it is. ComplexSelectorwith a status and the defaultattachedplacement now shows the status icon on its trigger in place of the chevron, asSelectorandMultiSelectordo, so an error is no longer shown by color alone on the field.- The transient copy a layout motion holds of old content (an in-place swap's old content, the SideNav rail's and AppShell content's old state during a collapse or expand) carries on the CSS animations and transitions running in it from where they were. It no longer starts each CSS animation again (a press highlight lit again, an entrance that had played playing again, whatever its fill) or shows a transition's end at once.
- DateInput and DateTimeInput keep typed text that has not reported a date, without an error, while disabled or busy, and commit it on the next Enter or blur once editable. A new value still replaces it. Typed text whose date
onChangealready reported gives way to the field's value once the field is editable again, on the next Enter or blur if the field has focus. (#9842) - DateTimeInput: a press that never becomes a click no longer leaves its document click watchers behind when the field unmounts (#10155)
- On a phone or tablet (a coarse primary pointer), a tap or a drag that lands while a
Dialogor aDraweris still entering no longer closes it, runs one of its actions, moves focus or scrolls the page: it reaches nothing until the entrance has played, and the dialog or drawer finishes entering and stays open. Around aDrawerwithout a scrim only a tap or a drag on the panel is held, and the page stays live. Keys and assistive technology stay live during the entrance, the content stays in the accessibility tree, a pinch still zooms the page, and a mouse or a trackpad still clicks: at once when it was the last pointer used, otherwise once it moves. - On a phone or a tablet, a finger's tap or drag that lands while a DropdownMenu is still opening is now ignored, as on iOS: the menu finishes opening, stays open and keeps focus, and nothing under the tap reacts. The finger that opened the menu still picks a row. Keys and assistive technology stay live. A mouse, a finger on a touchscreen laptop and
presentation="popover"are unchanged. - DropdownMenu trigger tooltips stay closed after pointer selection and still reappear for returning keyboard focus.
- FileInput: a busy or disabled dropzone now shows the no-drop cursor for a dragged file instead of the copy cursor, and the browser no longer delivers a drop the zone would ignore.
- Focusing the clear or status button of a ghost or secondary
Selectorno longer also rings the whole trigger: each tab stop shows one focus ring. - Under a finger, a Switch or InfoTip measured while an ancestor is scaled keeps the touch insets of its unscaled layout. Before, that measurement kept the scaled frame's insets until the next resize.
- InputGroup: a focused input now stays above an unfocused input beside it, so the neighbour's border no longer covers part of its focus ring.
- A selected interactive
ItemorListItemrow now shows hover and mouse-press paint over its fill, and a highlightedItemrow shows mouse-press paint. Before, the fill hid both. A highlighted row shows no extra hover, because its fill is already the hover tone. - Item: the
itemtheme target now reflects the row's state asdata-highlighted,data-selected, anddata-disabled, so a theme can restyle a highlighted, selected, or disabled row. A row that composes Item reflects the states it passes to Item: for example, ListItem reflects selected and disabled, and DropdownMenuItem reflects disabled. The docs listclassNameandstyle, giverefthe root element type, and givexstyleits standard description. - Keep TabMenu arrow-key navigation from moving focus to the outer tab strip.
- A layer's trigger (Tooltip, Popover, HoverCard, DropdownMenu, ContextMenu and every other
useLayercaller) now carries its CSSanchor-nameonly while the layer is shown or its exit animation runs. A closed trigger is no anchor, so in WebKit's Linux ports a transform animation on an element that contains a closed trigger keeps running while the main thread is busy. A layer that fades out keeps its trigger's anchor name until the fade ends. If you write a layer'sanchorIdas an anchor name yourself, write it only while the layer is shown or its exit animation runs. - An anchored layer (a Popover, a menu, a Selector's or MultiSelector's panel, a Typeahead's list) that would run under the software keyboard, in Safari on iOS, now keeps its top and shrinks to end 10 px above the keyboard, its content scrolling, and grows back when the keyboard goes down; before, the keyboard covered its lower part and a button there could not be reached. A layer clear of the keyboard, or placed above its trigger, does not change.
- A
LayoutPanelwhose width is the number 0, such as one given a collapseduseResizableregion'sresizableprops orwidth={0}, now takes no space and shows none of its children. Before, its padding kept it about 32px wide and its children showed squeezed into that strip, one letter per line. This is visual only: keyboard and assistive-technology hiding for a collapsed panel is separate. - Link: the label now takes the link's own color, at rest and on hover, so on hover a
primary,secondary, oraccentLink tints its text with its underline and external-link icon. Before, only the underline and the icon took the hover tint. A theme override on thetexttarget (for exampletext[data-color="accent"]) no longer reaches Link labels: restyle Link labels through thelinktarget. A theme that styles thetexttarget's color now also keeps any Text withcolor="inherit"on its parent's color. - A list row's touch press release keeps fading while the page runs script, once the release has started.
ListItem,ItemandTreeListrows used to freeze mid-fade until the main thread was free, and every frame of the fade repainted the row; the release now runs on the compositor, with the same color as before. Script that runs in the tap's own handlers, before the next frame, still holds the row pressed until it ends. Under a finger, while a row is pressed and through its release, the press paints on the row's::beforeand the row is its own stacking context; at rest nothing of it applies, so a row's own::beforedecoration and its children's stacking are as they were. During a press the layer is the row's::before, and any::beforeproperty a caller sets, fromxstyle(whichItemcomposes after the layer) or from a stylesheet, wins over the layer's: a decoration with its own size and background jumps to the row's corner, and the row shows no pressed fill until the release ends. Decoration that should stay through a press belongs on::afteror a child element. With a mouse or trackpad the row is unchanged: no layer and no new stacking context. ChatMessageList,TooltipandHoverCard: the chat log and the span thatTooltipandHoverCardwrap around text-only children draw the theme's focus ring instead of the browser's default. A theme's--focus-outline-*tokens now reach them. The chat log's ring sits inside its box, so the area that scrolls it no longer cuts it off.- Markdown's GFM autolink option (
autolink: 'gfm') no longer slows to seconds on long text. The bare-email scan started over at every character of a long run, so its time grew with the square of the run: a 100,000-character word took over 10 seconds. It now starts from each@, and trailing)are peeled off a link in one pass, so a long run costs about as much as a plain parse. Linked emails and URLs are unchanged. - While a finger or a pen is held in a DropdownMenu, MoreMenu or ContextMenu, the row under it now takes the pressed overlay, and no other row keeps it, so the highlight can be seen following it (
spec:AST-094FR27, FR43). A held mouse, the keyboard and a hover keep the hover overlay. - On a phone or tablet (a coarse primary pointer), a tap or a drag during MobileNav's slide-in reaches nothing; keys and assistive technology stay live, and a mouse or a trackpad still clicks: at once when it was the last pointer used, otherwise once it moves.
- MobileNav: Tab now wraps inside the open navigation drawer. Tab from the last control moves to the first, and Shift+Tab from the first moves to the last, so keyboard users no longer move from inside the drawer to the browser's toolbar. The drawer uses the same focus-region module as Dialog, BottomSheet and Lightbox.
- Dialog, AlertDialog, CommandPalette, BottomSheet, Lightbox: Tab now wraps inside an open modal Dialog, AlertDialog, CommandPalette, modal BottomSheet or Lightbox. Tab from the last control moves to the first, and Shift+Tab from the first moves to the last, so keyboard and screen-reader users no longer land in the browser's toolbar from inside these modals. They now use the same focus-region module that Drawer and Popover use. When modals nest, the innermost one handles Tab. Non-modal sheets and inline dialogs do not trap focus. Fixes #8841.
- MultiSelector: in the open list, a repeated letter now moves to the next option that starts with it, so
t,t,tover Tea, Toast and Tofu walks Toast, Tofu, Tea instead of staying on Tea. A single letter typed after a pause searches from the option after the highlighted one, not from the top of the list, as in Selector. Space still toggles the highlighted option, so a typed Space does not extend the prefix as it does in Selector.useMultiComboboxgets the same behavior. (#9921) - With a finger, a press that starts on a control inside a list row with
onClickorhref, a TreeList row withonClickor children, or a clickable or link Token withonRemoveno longer makes the row or token look pressed, since it does not run the row's or token's action. A press on the row or token itself still looks pressed. Mouse presses are unchanged. - When an
OverflowList(or auseOverflowhost) resizes, it now shows the new visible set in the same frame. Before, the resize rendered after the frame painted, so one frame showed the old set at the new width: items spilled past the edge as the box shrank, or stayed collapsed as it grew. A resize now measures again in a microtask before paint, every list that one resize reports renders together, and a resize that changes nothing renders nothing. A resize whose new set can change the list's own height (a taller indicator appearing, a multi-row list filling a different number of rows or measuring a new row height, or, withbehavior="observeParent", the indicator appearing or disappearing, which changes how the list fills its parent, or a list sized from its items, such as a flex item beside a menu that can shrink) still renders one frame later, as before, because rendering it before paint would make the browser report a ResizeObserver loop error. A resize that folds the list before paint can make Chromium report "ResizeObserver loop completed with undelivered notifications" once in that frame when another observer watches an outer element (Storybook's preview observes<body>); no notification is lost, and an error monitor should ignore this message. Tests: a resize the observer reports now applies in a microtask, still before paint. A test that calls a mockedResizeObservercallback and asserts synchronously right after it should first await the update by wrapping the call inawait act(async () => { … }). - BottomSheet and Dialog: the page no longer jumps after a sheet or a dialog closes in Safari and on iOS. Returning focus to the control that opened the overlay asks the browser not to scroll. WebKit focuses the nearest focusable ancestor of a tapped button, such as an app's
tabindex="-1"main region, and records it as the opener; the focus return then scrolled the page to that region's top edge. The focus ring still follows the last input. - Pagination: the dots variant now exposes the APG radio group it already behaves as. Before, the dots were a
groupofbuttons named "Go to page N", witharia-current="page"on the current page. Now the container is aradiogroupnamed by the page-indicators label, and each dot is aradionamed "Page N" witharia-checkedon the current page and noaria-current. Keyboard behavior is unchanged. A press on a dot now chooses its page on release, so sliding off before release takes the press back. - PowerSearch: in the sheet presentation, a placeholder longer than the trigger stays on one line and ends in an ellipsis. Before, it ran under the result count and, on a narrow field, past the field's border.
- A press's release now fades on the theme's exit motion tokens,
--duration-exitand--ease-exit, instead of 200 ms, scaled by the theme'stempo, on a curve of its own. This covers every release that fades: a finger, mouse, pen or key press on a phone or tablet, and a pen press on a desktop, on buttons, cards, switches, checkboxes, list and tree rows, tabs, menu items and action groups. With the default tokens the release is 175 ms and holds its colour a little longer before it goes. A theme that changes--duration-exitor--ease-exitnow changes the release too; a theme'stempostill does, through--duration-exit. Under Reduce Motion a finger's release still fades for no more than 200 ms. A mouse press on a desktop is unchanged. - Under a finger, a pressable (a button, card, link, list row or any other surface) outside a scroll view now highlights in the frame the finger lands, as UIKit's controls do, instead of after a 150 ms delay. Inside a scroll view it still waits that delay, so a flick paints nothing, and a scroll that takes a held press cancels it with no fade. A page that scrolls counts as a scroll view, so on a page taller than the screen a press still waits; a control in a fixed bar, or on a page that fits, highlights at once. A mouse on a desktop keeps
:active. - Under reduced motion, a pressed Button no longer shrinks, and ClickableCard, SelectableCard and Thumbnail change their hover, border and selection colors at once on every pointer, whatever the theme's duration. A finger's press highlight still fades out on release, within 200 ms.
- LayoutContent, LayoutPanel and a scrollable
divorspanStackItem name their region while it scrolls. Before, a scrolling region was a nameless element that Chromium could make a Tab stop, so a screen reader announced nothing about it. It is now a group named by the caller's label, or by a translated "Content" (accessibility target: LayoutContent AR3, LayoutPanel AR3 and Stack AR2). A caller's role stays with only the caller's name, and Tab behavior stays the browser's. - Selector: after keyboard input, the active option draws the standard focus ring inside its edge, so people moving through the list with the keyboard can see where they are. The overlay fill alone measured about 1.09:1 against the listbox in light mode and 1.15:1 in dark, under the 3:1 a state indicator needs; with the stock theme the ring measures 5.39:1 (light) and 3.10:1 (dark). The ring takes its width, style and color from the
--focus-outline-*tokens, like every other focus ring. After pointer input the active option keeps the fill alone, as a focused DropdownMenu row does. This includes a mouse that moves onto another option after keyboard input, without a click. - A disabled
SideNavItemno longer runs a caller'sonKeyDown,onKeyUp,onPointerDown,onMouseDownor any otheron*prop exceptonFocusandonBlur. Before, a key other than Enter or Space on a disabled item still reachedonKeyDown, every key reachedonKeyUp, and pointer or mouse input that bypassespointer-events: none(programmatic or assistive-technology input) reachedonPointerDownandonMouseDown. This covers the plain, link, collapsed leaf and split-row forms; the flyout trigger of a collapsed parent item is not covered. Now a disabledSideNavItemruns no caller handler other thanonFocusandonBlur, as a disabledSlider,TextInputandTextAreado (spec:AST-085FR2). An enabledSideNavItemis unchanged. No API changes. - Spinner: a turning ring now wakes the main thread once every 100 turns instead of every turn. In a React app, Chromium recalculated style at the end of each turn, about seven times a second with one ring at a 525 ms turn. The ring looks and turns the same, and reduced motion still slows it to 3 seconds a turn.
- A standalone Spinner used to mount
role="status"already holding its name, so screen readers often said nothing when it appeared. It is now an indeterminate progress indicator (role="progressbar"with noaria-valuenow, named by its visible string label, itsaria-labelor a translated "Loading") that announces once through the shared polite channel when it appears after page load, reading its rendered text in order with stacked lines kept apart, or its accessible name (AST-020 FR15; AST-086 FR2, FR7, FR11–FR12; WCAG 2.2 4.1.3). BaseTypeahead, Typeahead and Tokenizer keep their search Spinner named and never live while they announce the search themselves, and app code silences a composed Spinner witharia-hidden. No app change is needed (AST-017 FR53): a Spinner given aroleother thanprogressbarstays silent, as before. The lab EmojiPicker and Schedule now hide their loading rings and announce their own busy start once, and the Comments history dialog announces it inside the dialog (AST-086 FR6, FR8, FR14); their loading words stay readable. Every Spinner's indicator changes fromstatustoprogressbar, so a test that queries it by role changes, including the hidden rings inside Button, CheckboxInput, CheckboxList, CheckIndicator, ChatMessageList, ChatToolCalls, CommandPaletteInput, ComplexSelector, DateInput, DateRangeInput, DateTimeInput, DropdownMenu's sub-menus, FileInput, MultiSelector, Selector, Switch, TextArea, TextInput, Thumbnail and TimeInput, and lab's EmojiPicker, Comments and Schedule. - The stock theme's dark-mode accent (
--color-accent) is now#0171E3instead of#2694FE, so white text on an accent fill, such as a primary Button's label at rest, meets 4.5:1 (4.70:1, was 3.11:1). Hovered and pressed primary Buttons improve too (about 4.36:1 and 4.03:1, from under 3:1) but stay under 4.5:1. Light mode keeps#0064E0. Everything else painted with--color-accentin dark mode also darkens: accent fills, focus rings and accent icons. MetadataList's "Show more", Table's sort rank and DateRangeInput's applied preset now use--color-text-accent, so their text stays readable on dark surfaces. The theme template thatastryx theme templatewrites uses the same dark accent, and the generated color token docs list it. To keep the previous look, a theme can set'--color-accent': ['#0064E0', '#2694FE']. - A disabled
Tabno longer runs a caller'sonPointerDown,onMouseDown,onKeyDownor any otheron*prop exceptonFocusandonBlur. Before, a press or key on a disabled tab still reached them, for both the button and the link form; onlyonClickwas withheld. Now a disabledTabruns no caller handler other thanonFocusandonBlur, as a disabledSlider,TextInputandTextAreado (spec:AST-085FR2). An enabledTabis unchanged. No API changes. - A toast plays its entrance once. When a
Dialog, a modalDraweror a bottom sheet with a scrim opens or closes while toasts show, the viewport moves into it or back out, and a toast already on screen now stays where it is instead of sliding in again. - Toast: without a LayerProvider, a toast dismissed before the fallback viewport mounts no longer shows, and its
onHideruns once with'manual'. - Tokenizer: in the sheet presentation,
endContentrenders at the field's inline end andrenderTokenrenders the field's tokens, as in the inline field, so the same props work on a phone under the'adaptive'default. Their own controls act without opening the sheet: an end-content button runs its handler, and a custom token's remove control commitsonChangeat once and moves focus to the trigger. A tap on a token, the placeholder or the field's empty space still opens the sheet. Before, the sheet dropped both props with a development warning.renderItem,hasClear(the sheet has its own Clear all),hasEntriesOnFocus,menuWidth,tokenOverflowBehaviorandhasAutoFocusstill apply to the inline field only. - A disabled
TopNavItemno longer runs a caller'sonPointerDown,onMouseDown,onKeyDownor any otheron*prop exceptonFocusandonBlur. Before, a key pressed while script had focused a disabled item, or an event dispatched to it, still reached them, in both the default and the drawer form; onlyonClickwas withheld. Now a disabledTopNavItemruns no caller handler other thanonFocusandonBlur, as a disabledSlider,TextInputandTextAreado (spec:AST-085FR2). An enabledTopNavItemis unchanged. No API changes. - DateInput: under a finger, every row in view of the bottom-sheet picker's columns meets WCAG AA contrast; their edge fade is shallower.
- Typeahead, Tokenizer: picking a result now calls
onChangeQuery(''). The pick empties the input but never reported it, so an app that mirrored the query kept the text typed before the pick. A pick made while the query was already empty reports nothing, as nothing changed. (#8929) useMediaQuerynow shares one listener per query among all its callers, so a long list of components that ask the same query adds one listener, not one per component. Every caller still reads the same answer. It also listens on Safari before 14, which has only the older listener pair, where it threw before.- Gestures: a late or merged trackpad wheel that keeps the glide falling stays in the flick. When the next wheel grows instead, the new gesture keeps the late wheel's travel. A mouse wheel's notches keep their rules.
- Under a finger, the touch-inset pass of a Switch or InfoTip resolves a control's style only when a transform scales it.
- LayerProvider no longer carries the toast viewport. An app that imports
LayerProviderfrom@astryxdesign/core/Layerand never imports Toast loads about 45 KB (46,161 bytes) less JavaScript (gzip). Toast registers its viewport when it is imported, and LayerProvider then renders it after the app. Without a Toast import, LayerProvider renders no empty viewport. A toast shown before the viewport mounts waits, then shows. On the server, LayerProvider renders no viewport; it mounts after hydration. - A single-line
OverflowListno longer renders again after mount only to record an item height it never shows: it does not track the row count and item height that only its multi-row form (maxRowsabove 1) renders from. One whose items all fit now renders once on mount; one that collapses items still renders again for the new visible count. The publicuseOverflowhook is unchanged and still reports both on every path.
- A BottomSheet source comment names the pen beside the mouse for the resisted stretch past fully open. Nothing a consumer imports or renders changes.
astryx hook --listgroups the motion hooks under one category, "Motion & gestures":useAnimatedLayout,useAnimator,useEntryAnimation,usePanGestureandusePressFeedback; the docs ofcreateAnimatorandcreatePanGesturecarry the same category. The "Animation" group goes away.useLongPress,useMenuPressand the other interaction hooks stay under "Interaction".- Hook docs for
useCalendarDays, soastryx hook useCalendarDaysandastryx searchreturn it, and auseCalendarDays — Month Gridexample block: a compact month table built from the hook'sweeksanddayNames, with the previous and next months' days dimmed and a Week starts on control (Sunday or Monday) that reorders both the header and the grid. Copy it withastryx template useCalendarDaysHookUsage <path>. - Hook docs for
useIcon, soastryx hook useIconandastryx searchreturn it, and auseIcon — Status Rowexample block: a custom status row draws the success, warning and error icons withuseIcon, and under a Theme that overrides those icons the same row draws the theme's icons. Copy it withastryx template useIconHookUsage <path>. - Hook docs for
useLinkComponent, soastryx hook useLinkComponentandastryx searchreturn it, and auseLinkComponent — Article Cardsexample block: custom Article cards render their title link with the component the hook resolves. Inside a LinkProvider wired to a client-side router the title navigates without a page load,as="a"gives a native anchor even inside the provider, and outside the provider the title falls back to the next provider up or a native anchor. Copy it withastryx template useLinkComponentHookUsage <path>. - Hook docs for
useOverlay, soastryx hook useOverlayandastryx searchreturn it, and auseOverlay — Product Quick Viewexample block: a product Card spreads the hook'scontainerRefandcontainerPropsand renders the returned scrim once over its image. Hovering the card, or moving keyboard focus into it, reveals a Quick view button, and the image link before it lets Tab reach the button. Copy it withastryx template useOverlayHookUsage <path>. - Hook docs for
useTableSortableState, soastryx hook useTableSortableStateandastryx searchreturn it, and auseTableSortableState — Multi-Sort Ordersexample block: an orders Table with no sort code of its own, where clicking Customer and then Shift-clicking Total sorts by customer and then by total. Copy it withastryx template useTableSortableStateHookUsage <path>. - Internationalization gains a short Other calendars guide: choose a calendar on
InternationalizationProviderorCalendar, values stay Gregorian ISO dates, and most calendars needTemporal(loadtemporal-polyfill/full/globalwhere it is missing). A newastryx docs calendarsnamespace has the detail: the supported calendars, loadingTemporalon the server and in the browser, why the lunisolar calendars (chinese,dangi) can differ by a day between runtimes, and ISO 8601 week numbers. The guide andCalendar'scalendarprop docs say how to get identical server and browser markup for those calendars:installImplementation()fromtemporal-polyfill/full/shimon both sides, since thefull/globalimport keeps a nativeTemporal. - InfoTip: the component page,
astryx component InfoTip --showcase, andastryx component InfoTip --blocksnow have worked examples — a showcase metric label, a row of metric definitions, and read-only settings with permission notes. InfoTip's docs list its anatomy (trigger button, info icon, help surface) and say it follows the toggletip pattern: the button reportsaria-expanded="true"while the help is pinned, and a screen reader hears the help once when it pins. - InputGroup: the docs no longer say
statuspaints the group border or that the group shares one focus ring.statusshows its message below the group and reflects its type asdata-status; a focused member stays above its neighbours.isOptionalnames the "Optional" indicator it shows. - InputGroupText: the docs now say when to use a text addon and what it is not: short fixed text or a decorative icon, read as plain text and not part of the input's accessible name. They document
ref, givexstyleits standard description, and the code example no longer gives the group and its input the same label, which made a screen reader read the name twice. - Long comment sentences in some menu press sources and tests are split into shorter ones, and DropdownMenu's
presentationdescription no longer says "as before". Nothing a consumer imports or renders changes. - The
usePanGesturepage opens with a draggable box in two forms side by side: the hook andcreatePanGesture, which takes any element, with the same StyleX styles and Astryx tokens. The playing card follows as the advanced example. ThecreatePanGesturepage points to that example, and theusePanGestureguidance warns against holding the drag offset in a large component's state.
-
Internal: the undocumented
@astryxdesign/core/internal/calendar-systementry gives Lab's Schedule the calendar that Core's date components resolve, and the helpers that name its months, days, and date ranges asCalendardoes. Internal entries are outside the public API and its compatibility promise. Lab's Schedule follows that calendar. Without a provider calendar, the accessible label of a timed event that spans days now writes its dates in the Gregorian calendar; before, the dates followed the locale's default calendar, such as the Persian calendar underfa-IR. A locale never selects the calendar. -
onChangefires while typing only once the date is complete, and once for each date, so partial input such as12/0or12/01/202no longer reports wrong dates. A two-digit year, such as12/01/90, or a date without a year commits on Enter or blur, and is read in the locale's field order. A one-digit or three-digit year, such as1/5/2or12/01/202, is not a date: Enter or blur keeps it and shows it as invalid.parseDateInputstill reads, on Enter or blur, text the field cannot otherwise read and a date the locale's field order does not have, such as13/5/2026inen-US. -
A typed date outside
min,max, ordateConstraintsstays in the field with an error that names the allowed range, or says the date is not available when only adateConstraintsrule rejects it, instead of reverting on blur; the error shows even when you setstatus. Unreadable text, a date that does not exist, and an out-of-range date each announce their own message, once.Fixes #8958.
-
Internal: Core's internal touch entry also names, for Lab, the screen-edge pan recognizer, the spring solver, the motion resolver, UIKit's navigation table and four navigation springs, and the focus helpers that follow the last input. Core's English catalog gains
@astryx.navigationStack.back. Apps import nothing new. -
Internal: Core's internal motion engine factory is renamed
createMotionEngine(fromcreateMotionAnimator), with its typesMotionEngineandMotionEngineOptions, at its source and in every internal caller. Core's internal touch entry also re-exports, by name, the UIKit gesture values, the right-to-left check, and the touch-presentation hook and query that Lab components read. Lab'suseMotionEnginehook wraps the engine, and Lab's refresh control uses it. Apps import nothing new. -
Internal: Core's internal touch entry re-exports what Lab's useRefreshControl reads. That is the pan recognizer, its hook and the gesture types, and the motion animator. It is also the motion math, the map of a companion curve, the UIKit scroll table of its pull, and the motion-role parsers. None is in the public entry. Apps import nothing new.
-
Internal: one input hold for every layer (
Layer/inputHold). While a layer presents, a finger's or a pen's touch, press or click reaches nothing: anywhere around a modal layer, and only on the layer itself around a non-modal one, whose page stays live. A mouse passes once it moves, at once when the page last heard a mouse (keys and assistive technology still act, and a pinch still zooms the page). While it dismisses, every press and click reaches nothing, and the layer's content is inert. The gesture host asks the hold about each touch (holdsTouch), andisInputShieldlets a hit test see past a hold's shield. Not exported from the package entry point; Dialog's and Drawer's entrance holds and MobileNav's drawer use it. -
Internal: each spring role, and the navigation, paging and picker motion tables, register themselves when their module loads, so a spring role plays at the theme's
tempowherever it plays, with no register call. A page that plays no spring ships no springs registry. A module that imports single spring rows carries only those rows, unless it also reads the wholespringstable or callsregisterSpringsTable(). Not exported from the package entry point. -
Internal:
usePanGesturecopiesonPaninto its ref at commit, not during render, before the hook's first release. A render React discards, as a suspended transition does, no longer hands the next drag to itsonPan. -
Internal: a pan gesture's begin threshold can be read from each press's first touch, so a mouse or a pen can begin a pan sooner than a finger. It is not exported from the package entry point, and nothing changes for existing callers.
-
Internal cleanups in SideNav and in how a resize handle finds its panel: a source comment that only restated the line after it goes, and one lookup function replaces two. No behavior change.
-
Internal: Spinner's rotor (the turning arc's keyframe, timing and timeline-origin pin) moves into one internal module that Lab's indeterminate CircularProgress also uses. Spinner does not change.
-
Internal: one shared reader times motion from the theme's duration and easing, as a computed transition resolves them. SegmentedControl's selection slide now reads its timing with it; its timing is unchanged,
calc()tokens included. -
Internal: DateInput and DateTimeInput keep their typed-entry state, rejection status, and commits in one shared hook instead of two copies. Typing, committing, and rejection messages are unchanged. Not exported from the package entry point. (#9842)
Thanks to everyone who contributed to this release:
- @aashish254
- @cixzhang
- @duytbp
- @harjothkhara
- @HelloOjasMutreja
- @imdreamrunner
- @korkt-kim
- @MannXo
- @nynexman4464
- @parinith-web
- @vjeux
- RichTextExtensionNode is constructible with no arguments, as a registered node class must be. A Yjs collaboration binding builds one instance of every registered node class, with no arguments, to read its default properties, so creating a binding over an editor with this package's default nodes threw
TypeError: Cannot read properties of undefined (reading 'display')before any document was loaded. Itsfactsnow default to the same empty values the class already reads for damaged stored state, so a no-argument node reports an empty inline extension instead of throwing. A node built with facts is unchanged.
Thanks to everyone who contributed to this release:
- @potatowagon
- Under the Neutral theme, a selected row, a calendar range and the other selected fills on Neutral's surfaces are visible again, and highlighted code lines are stronger.
--color-accent-mutedmatched the surface in dark mode and barely differed from the hover tint in light mode; it is now#d4d4d4in light and#474747in dark. In dark mode a selected Item, TreeListItem or checked CheckboxListItem row, a numbered Citation and a FileInput dropzone lift their secondary text so it stays readable on the fill; a dropzone's hint is slightly lighter at rest too. Neutral's code comments, operators and punctuation are slightly less muted so they stay readable on a highlighted line. The CLI's Neutral theme template carries the same values.
Thanks to everyone who contributed to this release:
- @cixzhang
Astryx v0.7.8
Astryx 0.7.8 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.7 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.8 @astryxdesign/cli@0.7.8 # plus every other @astryxdesign/* package you use, at 0.7.8
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
In Chrome on Android, on a touch screen, a Tall BottomSheet places the focused field just above the on-screen keyboard when Chrome reports it, then rides the rest of Gboard's slide; through the hide the sheet's scroll room stays while its content rides down, so nothing jumps while the keyboard is still on screen. Under Reduce Motion it cross-fades instead of moving. The browser-support guide says so.
Also released in
@astryxdesign/cli. -
Calendar: weekday headers show the locale's abbreviated names where all seven fit in four characters, and keep the short names otherwise. English now reads
Sun Mon Tueinstead ofSu Mo Tu; French readsdim. lun. mar., and Spanish, Swedish, Norwegian, Romanian, Greek, Serbian, Turkish, German, and Traditional Chinese switch the same way. Portuguese (Portugal), Arabic, Hebrew, Polish, Danish, and Vietnamese, whose abbreviated names are longer, keep their short names. A locale Astryx ships no translations for shows its own names instead of English: the abbreviated names where they fit the same way (IndonesianMin Sen Sel), else the narrow ones (SwahiliS M T). The popovers of DateInput, DateRangeInput, and DateTimeInput follow because they render Calendar. The touch bottom sheets of DateInput and DateTimeInput now show the same names as Calendar in every locale: Portuguese (Portugal) no longer runs whole words such asdomingotogether, and Polish, Danish, Vietnamese, Arabic, and Hebrew switch to their short names there. -
CheckboxListtakesisOptional, asRadioListandCheckboxInputdo. It shows the optional indicator after the group label, so an optional checkbox group can say so, including as the exception in aFormLayoutwithdefaultOptionality="required". UnderdefaultOptionality="optional"the indicator stays hidden, as for every field. A checkbox group takes no required state from a form default: with or withoutisOptional, its checkboxes carry noaria-requiredfrom it, and it adds no nativerequired. -
CheckboxListtakesisRequired. The group label shows the required indicator by the same rules as every input field. While no box is checked, the first box that is neither disabled nor read-only carries nativerequired, so the browser blocks submit and moves focus to it with its own message. Once any box is checked, the form submits. A disabled or read-only group requires nothing. Show your own error text throughstatus. -
CodeBlock adds startLineNumber so code excerpts show real file line numbers
-
A component doc can mark its component deprecated with
deprecated: {replacement, description}: thenameof the component to use instead and the modernization route.astryx searchresults andastryx buildkit entries for that component carry the field asdeprecated(adeprecated:line in their text output), and the docsite shows a Deprecated badge in the component's page header (beside any stability badge) and a notice at the top of its page that names and links the replacement, and labels it Deprecated on its components index tile and in site search.BottomSheetSwitchersets it, namingBottomSheet; the component keeps working unchanged.Also released in
@astryxdesign/cli. -
CheckboxInput can leave its rounded-square press layer off over a first-party replacement indicator that paints its own press. Indicators in this release are unchanged.
-
PowerSearch gains a touch surface through a new
presentationprop,'popover' | 'bottom-sheet' | 'adaptive', typed by the new exportedPowerSearchPresentation, with'adaptive'the default.bottom-sheetmakes the whole field one trigger showing display-only filter tokens, and moves filter editing into a flow of tall modal sheets that stack: each step opens above the one that led to it, and dismissing a step reveals the one beneath, so no sheet has a Back action. A Filters sheet lists the active filters as rows that edit a filter, each with a trailing remove button, under a fixed header with Add filter and over a fixed footer with Clear all and Done; with no filter it shows one centered Add filter. The flow edits a draft of the filter list: adding, editing and removing a filter, and Clear all, change the draft, and Done applies it by callingonChangeonce per edit, in order, each with the list after that edit; a swipe, scrim or Escape close of a changed draft asks before discarding it, a clean one closes directly, and Done on a field that became read-only while the flow was open drops the draft. Clear all asks for confirmation, removes the editable filters, keeps read-only ones, and leaves Filters open. An Add filter sheet lists the fields grouped (searchable from eight fields), or the content search with the field typeahead's suggestions listed inline, and leaves its search unfocused until tapped; a field whose only operator takes no value adds at once. A value step stages operator → value and confirms from its footer, the editor on the sheet's surface, or in muted sections beside the operator choice. Closed vocabularies are full-width rows, numbers stage as typed, andstring_list/entity_listvalues edit through the Tokenizer's own sheet presentation titled with the field label.adaptiveuses the sheet on compact coarse-pointer screens and the popover otherwise, resolved the same way Selector resolves it. The sheet flow loads on demand, only when a field presents it. New@astryx.powersearch.sheet.*catalog keys for the sheets' strings; no new theming target. The API change is additive: the prop is new and optional, and no existing prop, type or export is removed or narrowed. The behavior changes only on compact coarse-pointer screens (phones), which is what'adaptive'is for: there a PowerSearch with nopresentationshows the trigger and the sheet flow, a filter reachesonChangewhen Done applies the sheet's draft, andmenuWidthandtokenOverflowBehaviorhave no surface, with a development warning that names them. With a mouse or trackpad, on a screen that is not compact, in the server render and while hydrating, nothing changes. Passpresentation="popover"to keep the previous behavior on every device. Shipping this default in a patch is a product decision of the engineering owner, agreed with the owner of the compatibility policy. -
createAnimator(element)and its hookuseAnimator(ref)animate one element with the motion Astryx's components use; the hook takes the element's ref, so a gesture hook can share the element.animatespringsx,y,scale,rotateandopacityto a target on the state-change motion,decaycoasts any of them from a release velocity,setjumps,getandgetVelocityread, andstophalts;animateanddecayreturn a promise. Reduce Motion is planned for every call.createAnimatoris exported from the package root anduseAnimatorfrom@astryxdesign/core/hooks; the CLI's templates gain a playing-cards example of each.Also released in
@astryxdesign/cli. -
Table: let row-expansion and tree plugins include row identities in localized expand and collapse labels.
-
Tokenizer's
presentationprop is stable, and its default is'adaptive'.presentationtakes'popover' | 'bottom-sheet' | 'adaptive', typed by the new exportedTokenizerPresentation. The API change is additive: the prop is new and optional, and no existing stable prop, type or export is removed or narrowed (TokenizerProps['ref']keeps its input type, and the component also accepts a ref typedRef<HTMLInputElement | HTMLButtonElement>). The behavior changes only on compact coarse-pointer screens (phones), which is what'adaptive'is for: there a Tokenizer with nopresentationshows a trigger that opens the bottom sheet, the sheet edits a draft soonChangereports once, on Save,refreceives the trigger button, andrenderItem,renderToken,endContent,hasClear,hasEntriesOnFocus,menuWidth,tokenOverflowBehaviorandhasAutoFocusare not rendered, with one development warning that names them. With a mouse or trackpad, on a screen that is not compact, in the server render and while hydrating, nothing changes. Passpresentation="popover"to keep the previous behavior on every device. Shipping this default in a patch is a product decision of the engineering owner, agreed with the owner of the compatibility policy. -
useTooltipreturnsshow()andhide().show()opens the tooltip and keeps it open untilhide(), Escape, a press outside, or focus leaving its trigger, and its text is announced once.hide()closes it. Both fireonShowandonHide. Under a controlledisOpen, they only call those callbacks. Use them to build a toggle-style trigger: your own button calls them on each press, setsaria-expandedandaria-controls={describedBy}, and keeps its own accessible name. -
On a touch device with a trackpad or a mouse, such as a tablet with a keyboard, the picker wheels in the TimeInput, DateTimeInput and DateInput bottom sheets now take a trackpad's two-finger scroll as a finger: the rows follow the fingers, coast on at their lift, and rest on a row. One mouse-wheel notch turns a wheel one row, as an arrow key does, with no coast. Before, both moved the rows by each scroll's own distance, so a trackpad's momentum ran at the browser's rate and one notch moved several rows. A ctrl-scroll still zooms the page.
-
Under a coarse primary pointer, as on a phone or a tablet, the picker wheels in the TimeInput, DateTimeInput and DateInput bottom sheets now move like UIPickerView. Their rows keep the 28 px pitch and lie flat, fading toward the edges of the column in every browser; the scrolling column under a mouse tilts and fades its rows only where the browser supports scroll-driven animations, and shows a plain list elsewhere. The row under the band is in semibold accent text on its plate while the wheel rests and while a finger drags it; no row is marked while the wheel coasts, snaps or turns. A flick coasts at UIKit's deceleration onto the row UIKit's projection picks. A finger landing on a moving wheel stops it. A tap on a row turns it onto the band, and a value changed from outside while the sheet is open, as when a bound clamps the time, turns the wheel onto its row. Past the first or last row, a drag rubber-bands and the wheel bounces back. As on iOS, the value commits when the wheel comes to rest, and the coast keeps running while the page's main thread is busy. Arrow keys and clicks on a row still commit at once. Under reduced motion a flick still coasts, as scrolling does; a tap, a key or a slow release cross-fades onto its row.
presentation="popover"keeps the previous surface; no value keeps the native-scroll column under a finger. Each row that reaches the band ticks with a short vibration where the browser supports it, as on Android; iOS Safari has no vibration. Under a fine primary pointer, as with a mouse on a desktop, the wheels keep the scrolling column.
-
AlertDialog: under the touch presentation, an action lifted while the alert stays open now ends its release fade on the theme's tempo-scaled clock, as the stylesheet's fade does, instead of at a fixed 200 ms.
-
AlertDialog: under the touch presentation, its two actions are tracked as one group for a finger and a pen, the way iOS tracks an alert's actions. A press that lands on one action and slides to the other runs the action it lifts on, and lifting off both runs nothing. The pressed action highlights at once, and the highlight follows the finger between the actions. A second finger or the window losing focus ends the press with nothing run. A press on the title or the message is not tracked. A mouse press stays the native button's, and the keyboard and assistive technology keep each button's own activation.
-
Motion: a call made while an animation settles, with the element already still on screen, waits for the browser's first frame as a call from rest does. A busy page no longer skips the start of the new motion, a jump of up to about 14 px at a Switch's return.
-
BottomSheet: a sheet whose height moves by a fraction of a pixel as it starts closing now slides off instead of vanishing. This happens in Chromium, for example, when a sheet that fits its content is dismissed by a drag. The browser replaces the exit's transform transition when that transition's end value changes mid-flight. The exit treated the cancelled transition as its end and closed the dialog before the sheet had moved. It now waits for the replacement transition to finish.
-
BottomSheet: on iOS Safari the grabber stays drawn while the sheet moves between detents, instead of vanishing until the sheet comes to rest.
-
Calendar: day numbers and week numbers now use the locale's digits, the same as the month heading. Under
InternationalizationProvider locale="fa-IR"the days read۱ ۲ ۳…, and under"ar-EG"they read١ ٢ ٣…; English is unchanged. The month panes of DateInput's touch calendar follow the same rule. The dates themselves do not change: each number is still the Gregorian day. -
Calendar: Shift+Page Up and Shift+Page Down now move the focused day to the same date one year earlier or later, as in the WAI-ARIA date picker pattern, instead of one month. A February 29 lands on February 28 in a year without one. The year step follows the same rules as Page Up and Page Down: it changes nothing past
minormax, and on a day thatdateConstraintsdisables it focuses that month's first enabled day.useGridFocusnow passes the key event toonPageUpandonPageDown, so a grid can readevent.shiftKey; callbacks that take no argument keep working.Fixes #8947.
-
CheckboxInput,SwitchandCheckboxList: in aFormLayoutwithdefaultOptionality="required", an unchecked box, an off switch or an empty checkbox group no longer carriesaria-required. A screen reader used to say "required", which on a checkbox means "must be ticked", while the form still submitted. Unchecked or off is an answer, so these controls take no required state from the form default. ACheckboxInputorSwitchis required only through its ownisRequired, which still setsaria-requiredand nativerequired. The "Optional" and "Required" labels follow the same rules as on every other field. No code change is needed (WCAG 4.1.2). -
clampTimewithout seconds now gives the nearest whole minute inside a bound that falls between minutes. Before,clampTime('08:00', '09:00:30')gave09:00, a time outside the range. -
Closing a
ComplexSelectorby clicking into another control now leaves focus in that control instead of pulling it back to the selector, asSelectorandMultiSelectoralready do. Escape, a close from the content, or a click on nothing focusable still returns focus to the trigger. A caller-rendered trigger (renderTrigger) still gets focus back on every close. -
Typing a numeric date into
DateInputorDateTimeInputno longer reports month-first dates on the way in day-first locales. -
The theme token
--duration-exit, the standard dismissal duration, now exists. It defaults tovar(--duration-fast), so it follows a theme'stempothrough that token, and a theme can set it like any duration token. Before, a theme or component that readvar(--duration-exit)found no value. The motion and token docs, and the theme template's token list, name it.Also released in
@astryxdesign/cli. -
A text selection that an action's own handlers make when a claimed mouse or pen press lifts on it now stays. Before, the drag's selection hold put the press's selection back over it. When the handlers change nothing, the press's selection still comes back, as before.
-
Under
focusTrigger="auto", aHoverCardnow decides whether focus opens it when the focus arrives, asTooltipdoes. A roving-tabindex trigger that wastabindex="-1"when the card attached, such as a toolbar member, opens on arrow-key focus, and a focusable trigger such as a<summary>or an SVG link opens on focus. -
A
HoverCardwhose trigger is text written around an expression, such asEdited {when}, now wraps that text in its focusable trigger, so hover and keyboard focus open the card, the trigger carries its popup attributes or description, and it shows the same hover cue as a plain text trigger. Before, such text had no trigger at all. -
When a
HoverCard's trigger element is replaced after mount, by new children or by a child component that swaps its own root element, the new element now gets the card's popup attributes or description and opens the card on hover and focus. Before, it stayed unwired until the card next opened or closed or itslabelchanged. -
Icon: a labelled icon component that hides itself unless a prop replaces it, such as a Heroicons icon, is now exposed to assistive technology as an image with its
label. Before, the component's ownaria-hidden="true"stayed on the SVG and hid the label. If a parent control already names the icon, removelabelso the name is not announced twice. -
Icon'srefnow reaches the rendered<svg>for a semantic or namespaced name, as its type promises. Before, it reached the<svg>only wheniconwas a component; for a name, the ref stayed empty. For a name whose glyph has no<svg>, the ref isnull. -
InfoTip renders only its button and its help: the
display: contentswrapper around the button is gone, and the button is the tooltip's trigger directly, built onuseTooltip'sshow()andhide(). Hover and keyboard focus still preview the help, and a click, tap, Enter, or Space still pins it until Escape, a second press, a press outside, or focus leaving. A mouse press on a previewed help keeps it in view as it pins, and a press that ends off the button does not pin it. A right-click on a previewed help now closes it at once, as it does on any tooltip trigger. Styles that reached the button through a wrapper selector now select the button itself. -
BottomSheet reads the on-screen keyboard from core's shared keyboard module. It now takes over focus moves into a fully expanded Tall sheet wherever a top-level document has a visual viewport and the primary pointer is coarse, Chrome and Firefox on Android included, instead of only under an iOS user agent. A pinch zoom no longer reads as a keyboard, and a pinch-zoomed page still reads the keyboard's full height. The sheet lays its keyboard room out through its own style rather than a CSS custom property. The browser-support guide documents Chrome on Android's
interactive-widgetviewport setting. -
A layout motion made late in a long main-thread task, such as a tap on a slow device, now plays instead of being skipped: under Reduce Motion the side navigation rail's cross-fade showed no fade at all after such a block. A layout change's animations start on the frame time the page last read only while that frame is at most 34 ms old; otherwise they start at the moment the change makes its first animation, so the block delays the motion. A glide such a change retargets carries on from where the compositor has it. An edge that rides such a glide, as the side navigation rail's does, moves with it. In Safari, a change that reverses such an edge mid-motion reads where the glide shows on the motion's own clock, so the edge no longer trails the content. Such a reversal also starts the rail's and the content area's fades from that moment, so the rail's icons no longer flash back. A change keeps one start from its first animation through the flush of its glides, and the parts riding those glides, however long the rest of the commit runs. A change that begins after a block since the last layout motion takes a fresh start, unless it joins an earlier change in the same area whose glides have not started yet. A side navigation collapse or expand made before the rail first paints, other than by its own toggle, lands at once, so a restored state never animates on load.
-
Lightbox: a viewer that unmounts while it is open (rendered only while open, or removed with its view) now returns focus to the element that opened it, when that element is still on the page, instead of dropping it to the page. A control the user pressed to remove the viewer keeps its focus. -
useLongPresstimes a hold on the touch events' own timestamps (spec:AST-094FR16). When a busy page handles the lift late, a finger held for the full delay still reports its long press before the lift acts, instead of losing it, so a ContextMenu's long press opens on a loaded page too. A touch the page handled late no longer lengthens the hold, and a lift stamped before the deadline still cancels the press when its timer ran late.onTouchEndandonTouchCanceltake the touch event, optionally; spreading the handlers passes it. -
Tooltip and HoverCard: a pen held on the trigger before it lifts no longer closes the tooltip or card it just opened.
-
PowerSearch: a date-only
date_absolutevalue (isDateOnlyunset ortrue) reads as one day in one zone — on the token, in the accessible label and announcements, and in the edit popover's date editor — and the editor writes the day picked. Before, the token showed the device's day, the label showed a date and a time intimezoneID, and the editor read and wrote the UTC day without receivingtimezoneID, so west of UTC a filter opened on the day after the one its token showed and re-picking that day moved the value a day earlier. Now a date-only value (isDateOnlyunset or true) is a calendar day intimezoneID, else the UTC day: the token shows that day; the accessible label andformatFilterValueshow that day with no time of day (UTC midnight March 9 in Los Angeles read "Mar 8, 2024, 4:00 PM" and reads "Mar 9, 2024"); the editor opens on it; and a picked day stores as that zone's midnight — withtimezoneIDset this is a different instant from the UTC midnight stored before, so a caller that derived the day from the instant's UTC date reads it intimezoneIDinstead, and a value the old editor stored as UTC midnight under atimezoneIDwest of UTC now reads the day before in the editor on every device, and on the token for a viewer at or east of UTC (UTC midnight March 9 underAmerica/Los_Angelesreads March 8 everywhere; a Los Angeles viewer's token and the label already did), the day it would have stored — re-save such values, or read them as UTC days; withtimezoneIDunset no stored value changes. Each absolutedate_rangepart is read and written as a calendar day the same way in the range editor. An operator withisDateOnly: falsekeeps its label; its token and editor change as its own entry describes. In the sheet presentation the rows and the value step read and write the same day. The exportedPowerSearchTokenand acomponentsToken override receivetimezoneID(a new optional prop onPowerSearchTokenProps), andPowerSearchTokenshows that day too, where it showed the label's date and time. A[fix], not a breaking change: the released popover read one value in three zones, so nothing valid relied on how a day was stored, andtimezoneIDis documented for date formatting. AcomponentsEditor override andPowerSearchFilterEditorreceivetimezoneID. -
PowerSearch: a
date_absoluteoperator withisDateOnly: falsegets the time of day the option names. The edit popover shows a time field beside the date picker, the token shows the date and the time, and both read and write the instant intimezoneIDwhen it is set, else the viewer's zone, so the time typed is the time shown. Before,isDateOnlywas read nowhere: everydate_absoluteedited in the date picker and stored UTC midnight of the picked day. Only operators that setisDateOnly: falsechange: a value saved from their editor now carries the time entered where it carried midnight, and their token shows the time;isDateOnlyunset ortrueis unchanged, and stored values are read as the instants they are. -
Under a finger, a press's release now lasts until its fade has played. The touch press controller ended the release on a clock started at the lift, so when the page's script delayed the fade's first frame, the release was cut short mid-fade. It now ends when the press's release animation ends, on the surface or on a part inside it that a component draws the release on, or on its clock where no release animation runs (an instant release, a surface without one, or an engine without Web Animations). This applies to every surface the touch press controller drives: buttons, switches, checkboxes, cards, menu rows and list rows.
-
A server-rendered
useResizableregion whosedefaultSizeis a percentage and that has nocontainerRefhydrates with the server's markup, then resolves the percentage against the window, instead of keeping the size the server resolved. -
A server-rendered
useResizableregion with anautoSaveIdhydrates with the server's markup and takes its saved size in the next commit, so hydration no longer reports a mismatch and the handle announces the saved size. -
A disabled
ResizeHandlekeeps its tab stop. Before, it left the tab order, so keyboard users could not reach it to hear that it is disabled. Now it stays in the tab order, as a disabled control keeps its tab stop, and it still ignores pointer and keyboard input and says so witharia-disabled. -
ResizeHandle's grab zone stays centred on the divider whateverpillPlacementsays, which now moves only the pill. An inline zone takes at most half of a pane shorter than it, and an overlay Handle takes at most half of the pane it sits in. A short item, such as a 30-minute calendar event resized from its edge, keeps its own drag, and a drag on the pill still resizes wherever the pill is drawn. -
useScrollLock, and so Dialog, BottomSheet, Drawer, Lightbox and MobileNav, keeps the page where it is while an overlay is open. The lock used to pin<body>withposition: fixedat minus the scroll offset and scroll back on release: the page's offset read 0 for the whole lock, and on iOS Safari the jump to the top brought the toolbar back, where it stayed after the overlay closed. Now the page getsoverflow: hidden(on the root, or on<body>when the body's own overflow is the one the viewport uses), and where the primary pointer is coarse (phones and tablets), a one-finger pan that would scroll the page is cancelled, which iOS Safari needs because it scrolls anoverflow: hiddenpage under a finger. Pans that a scroller inside the overlay can take, drags on a native range input, pinch-zoom, and one-finger drags on a pinch-zoomed page (they pan the zoomed view) still work. The lock no longer pins<body>, andwindow.scrollYkeeps its value while the lock holds. The lock cancels those pans itself, leaving a touch a gesture recognizer owns to it, and judges each pan after a small slop so a swipe's first wobble does not fix the wrong axis. It follows the browser's scroll chain, so an overlay rendered inside a scrolling container still holds the page: a modal dialog's pans go to the page, not to that container. It also setsoverscroll-behavior-y: noneon the root and<body>, which stops the page's overscroll bounce while an overlay is open. MobileNav now takes the same lock: while it is open, the page's bounce stops and one-finger pans are held as behind any other modal, and closing it while another modal holds the page keeps that modal's scrollbar gutter. -
A
Selector's open option list is now named by the field's label in every presentation. In the popover without search, the list was named by the trigger, so a screen reader announced the selected value, or the placeholder when nothing was selected (for example "Banana" instead of "Fruit"), against WCAG 2.2 SC 4.1.2.getByLabelText(<label>)now matches the list as well as the trigger. -
A disabled
Sliderno longer runs a caller'sonPointerDown,onPointerMove,onPointerUp,onPointerCancel,onKeyDown,onClickor any otheron*prop. Before, a press, drag or key on a disabled slider still reached them, for both the single and the range form. Now a disabledSliderruns no caller handler other thanonFocusandonBlur, as a disabledTextInputandTextAreado (spec:AST-085FR2). An enabledSlideris unchanged. No API changes. -
Spinner keeps turning while a script runs. The ring used to move by repainting its arc on the main thread every frame, so it stopped for as long as the page ran JavaScript, which is exactly when a loading indicator is on screen. The arc now sits in its own layer that the browser turns on its compositor: through a 700 ms main-thread block it keeps turning at full rate, and it paints nothing per frame. The ring looks the same at rest and turns at the same speed; sizes, shades, the themeable vars and reduced motion are unchanged.
-
In a
Tablewith resizable columns, the resize handle's name and width value no longer join the column header's name. Before, screen readers read "Name 60" with every cell in the column. -
Under a finger, the time wheels in the TimeInput and DateTimeInput bottom sheets now follow iOS's date picker:
- The AM/PM column follows the hour. Turning the hour from 11 to 12 now gives 12 PM, not 12 AM, and the AM/PM column turns onto PM. From 12 PM to 1 it stays PM.
- A bound that falls between whole minutes, such as
min="09:00:30"without a seconds column, now commits the nearest whole minute inside it, with a finger as with a mouse.
With a mouse, each column still turns on its own.
-
Toast: a toast updated throughuniqueID(collisionBehavior: 'overwrite') now updates in place, so focus on its controls stays put instead of dropping to the page. If the update removes the focused control, focus moves to a control in the toasts (such as a dismiss button) or, with none, back to where it was before entering the toasts. Dismissing a focused toast when only toasts without controls remain also returns focus there. An update that makes a toast auto-hide keeps its timer held while focus is inside it. Outside a modal, toasts in aToastViewportno longer carry their own live region, so each toast and each update is announced once, by the viewport; while a modal hosts the viewport, each toast announces itself, because the modal hides the viewport's channel. -
Tokenizer's bottom-sheet presentation (
presentation="bottom-sheet", and the defaultadaptiveon compact touch screens): a confirmed Clear all keeps focus on the Clear all action, now disabled with its reason, instead of moving it to the search field, which raised the on-screen keyboard over the rows the person had just cleared. The inline presentation is unchanged. -
Typeahead,Tokenizer,PowerSearch: a search no longer stays busy forever when React renders a new search source and then discards that render, for example a transition that suspends and that a newer update replaces before it commits. The search of the source that stays now finishes: its results show, and the loading indicator andaria-busyclear. -
In the DateInput, TimeInput and DateTimeInput bottom sheets, a wheel's Arrow, Page, Home and End keys move through its enabled values in time order, skipping disabled ones, and stop at the first or last enabled value, with a mouse as with a finger. On a 12-hour hour wheel 12 PM comes before 1 PM, so ArrowDown from 12 PM moves to 1 PM, and a key past the last allowed hour commits nothing.
-
DateInput: with a mouse, the rows of the bottom-sheet picker's columns meet WCAG AA contrast at every scroll position; enabled rows fade by the theme's text colors instead of opacity.
-
BottomSheet: opening a sheet no longer forces a layout to measure its height while it mounts; the sheet reads its height from the browser's own layout instead. On a phone-sized page with a 4× slowed CPU, a Selector's sheet shows its first frame about one frame sooner (about 110 ms to 94 ms after the tap) and the open does about 7 ms less forced layout. The open motion and the sheet's size are unchanged.
-
Popover, DropdownMenu, Carousel, ContextMenu, DateRangeInput, Markdown, MoreMenu and Table no longer load BottomSheet's container padding styles up front. Popover loads a BottomSheet on demand for its phone presentation, and a bundler that splits code put the padding module both of them use into one chunk that loads with the component, keeping every export either side uses.
paddingStylesandoverlayPaddingResetnow have their own modules, still exported from@astryxdesign/core/Layout/padding.stylex, andisFocusDetachedhas its own module, still exported from@astryxdesign/core/utils. A component that uses BottomSheet's padding itself still loads it. Rendering is unchanged.
-
Source comments above 88 kept Effects in Core now name the external system each one syncs. Nothing a consumer imports or renders changes.
-
Hook docs for
useLightbox, soastryx hook useLightboxandastryx searchreturn it, and auseLightbox — Gallery Gridexample block: a grid of photo thumbnails that opens a fullscreen gallery at the clicked item.Also released in
@astryxdesign/cli. -
Icon: list the ten palette
colorvalues and namespacediconkeys, and documentclassName,style, andrefin every doc language. -
IconButton: document
isInterruptible,width, the form props (type,name,value,form), and the link props (href,as,target,rel), and say that a disabled IconButton with a tooltip stays focusable througharia-disabled. -
Icon's documentedcolortype now lists every value the component takes: the ten semantic colors and the ten palette colors (blue,red,green,gray,cyan,teal,yellow,orange,pink,purple). Before, the type listed only the semantic colors, though the description named the palette. Native platforms still draw only the semantic colors. -
The source comment above the Effect that copies an
Overlay's first-child corner radius onto its wrapper now says why it stays an Effect. New tests pin when the radius is read. Nothing a consumer imports or renders changes. -
TypeaheadItem: the docs say that the
groupprop has no effect, and that results are grouped throughitem.auxiliaryData.groupon search-source items.
-
Internal: the undocumented
@astryxdesign/core/internal/touch-sheetentry is removed. It re-exported the touch sheets' confirmation, search-drag dismissal and draft rules for the Lab prototypes of the Tokenizer and PowerSearch sheet presentations, which no longer exist; Core's sheets import the same modules by relative path. Internal entries are outside the public API and its compatibility promise. -
The configuration-object
useResizablebuilds on one internal resize region, through the same size model as before, so the region's state has one implementation. -
The internal resize factory can drive a plain handle element: it gives the element the separator's role, name, value and tab stop, and answers its pointer drag, keys, Enter and double-click. ResizeHandle and the factory derive the separator's attributes from one helper, with no behavior change.
-
Internal:
useLongPressruns its long-press detection through an internal detector with no React, so a press model that runs without React can share it. The hook and its handlers behave as before;onLongPressnow also comes from the committed render. Not exported from the package entry point. -
Internal: one progress module for the motion foundation.
progressCurvegives a spring's progress from 0 to 1 as a closed-form curve,mapProgressmaps any curve from another (a companion's dim following a sheet, a clamped range),mapRangeis the clamped linear map they share, andpresentedProgressVelocityreads the velocity an interrupted motion continues from. One velocity unit throughout: progress per second. Nothing public changes; no component imports it yet. -
Internal: the touch press controller leaves the press of an action that its group's own tracker paints (
data-astryx-press-group-item) to that tracker, so one writer paints each press. A key's press on the action still paints as before. -
Internal: press tracking imports only the UIKit timing table's press clocks, so Switch, Slider, SegmentedControl and DateTimeInput, the controls built on press tracking, no longer ship the whole table. Nothing changes in how a press behaves.
-
Internal: the scroll lock's touch guard asks the gesture system's native-scroll test whether an element under a finger can scroll, instead of keeping its own copy. The copy left out
overflow: overlay, which current Chromium and WebKit compute asauto, so pages there behave the same. -
Internal: SelectableCard reads an internal input context that Lab's SelectableCardGroup uses to render its cards as a native radio group. SelectableCard's public props and behavior do not change.
-
Internal: a horizontal Stepper stops measuring its list from the cleanup that the list's ref callback returns, not from an Effect. It still measures before the first paint, and it still stops when the list detaches or the Stepper turns vertical. Nothing a consumer imports or renders changes.
-
Internal: a theme's reduced-motion mark and its readers are in place for
reducedMotion: 'always'. No theme can set it yet, so nothing changes for anyone. -
Internal: the Tokenizer bottom sheet checks its result rows for
actionwhile it renders, not in an Effect after the commit. The development warning, its text and the rows are unchanged. Not exported from the package entry point. -
Internal: the rules UIDatePicker adds to its wheels, measured on iOS 26.2, join the UIKit constants table: the month/year wheels changing the date, the AM/PM column following the hour, the turn back onto a bound, and the day clamped to the month. Each rule comes with its source. None is exported from the package entry point.
-
Internal: browser proofs for the touch picker wheel in Chromium and WebKit, which a finger gets on every engine. A flick coasts on UIKit's curve onto the row it projects and commits on arrival. A finger landing on a coasting wheel stops it, and it then eases onto the nearest row. A storyboard films a flick and its coast. In Chromium, the coast also keeps advancing every frame while the main thread is blocked, and does no Layout or Paint per frame. Under reduced motion, a flick still coasts as momentum with its rows flat, and a tap cross-fades onto its row, animating opacity alone for 200 ms or less. Opening the month and year wheels writes no element per year, and each year is drawn once. Under a mouse, a drag still scrolls the column onto a row.
-
Internal: the Wheel's two presentations, the scrolling column under a mouse and the picker wheel under a finger, share one listbox hook for their ids, ARIA attributes, Arrow, Page, Home and End keys, and row clicks. Each keeps where its moves start: the scrolling column steps from the row under its band, and the picker wheel from the row it is heading to.
-
Internal: the picker wheel turns from script, for the time columns that use it. Under a finger,
spinToon the wheel's ref turns it onto a row on the tap spin, then commits it as a rest would; under a fine pointer it commits the row at once. Either way it reports whether that row was committed: it refuses a disabled row and an index outside the rows, and a turn the wheel's unmounting cuts short reports that it did not arrive. Nothing public changes: the wheel is not exported from the package entry point. -
Internal: UIPickerView's values measured on iOS 26.2 join the touch motion tables as internal constants: the row pitch, the picker's height and its rubber band, the coast's stop speed and velocity floor, the snap at rest, the tap spin and the selection tick. The pure math a wheel moves with comes with them. It projects the row a release rests on as UIScrollView sums its deceleration, coasts with the rate re-solved to stop on that row, snaps, bounces at an end, rubber-bands, and spins to a tapped row. It is checked against UIKit's recorded frames. Nothing public changes: none of it is exported from the package entry point, and themes do not set these values.
- In
RichTextEditor, Cmd+A (Ctrl+A on other platforms) in a code block or a table cell now selects the code or the cell text first, and the whole document on the next press. Anywhere else it still selects the whole document at once.
astryx upgradegains thepromote-tokenizer-presentationcodemod. It rewrites a staticexperimental={{presentation: x}}on Tokenizer, the 0.7.7 spelling that Tokenizer no longer reads, topresentation={x}. Where it cannot prove the rewrite, including any Tokenizer that spreads props (a spread may also setpresentation), it leaves the call unchanged with a TODO.
astryx componenttakes a component's exact name in another case as that component's, never a module's that only shares the spelling.tokenizeropens Tokenizer's doc instead of CodeBlock's, which it reached throughCodeBlock/tokenizer.ts.--sourcewithtokenizer,slider,switchorprogressBarno longer printsCodeBlock/tokenizer.tsor the motion tables inmotion/uikit/, and answersERR_NO_SOURCE, as--source badgedoes.
-
integrationComponentConflicts(),integrationDocConflicts()andintegrationCheck()from@astryxdesign/cli/api, anddoctor integration components,doctor integration docsandintegration check, find Core's components from the folder listings they already read, with far fewer file system calls. Their results are unchanged. -
A run of
astryxloads only the command it names, so it starts with less work:astryx --versionuses about 0.31 s less CPU, andastryx docs --json,astryx component --listandastryx theme buildabout 0.25–0.3 s less. Help, the manifest and an unknown command still load every command. Output and exit codes are unchanged. -
astryx searchandastryx buildparse a page template's source for the components it renders only when the query could match one of them. A query no page renders parses only the few pages whose source holds an escape, and a first search for it uses about 20% less CPU. A query whose words name components on most pages still parses most of them and can take up to about 4% more. Results are unchanged.
-
The browser-support guide has a section on the on-screen keyboard: a fully expanded Tall BottomSheet measures it as the layout viewport's height minus the visual viewport's, and keeps the focused field above it in Safari on iOS, Firefox for Android and Chrome on Android. In Chrome, by default (
interactive-widget=resizes-visual), the sheet adds its scroll room once Chrome reports the keyboard; withinteractive-widget=resizes-contentChrome shrinks the page for the keyboard itself and the sheet changes nothing. Your app owns its viewport<meta>element; Astryx never sets it. -
A new
useAnnounce — Filter Result Countexample block shows the hook on a product filter: once typing pauses for 500 ms, a screen reader hears the result count ("3 results", or "No results"). The count has its ownhasReplaceinstance, as the hook's docs advise for a changing value. Copy it withastryx template useAnnounceHookUsage <path>. -
A new
useClipboard — Share Linkexample block shows the hook on a share card: Copy writes the invite link, the button reads "Copied" whileisCopiedis true and resets on the hook's timer, and a screen reader hears "Link copied". Copy it withastryx template useClipboardHookUsage <path>. -
A new
useFocusTrap — Quick Edit Panelexample block traps focus in a custom quick-edit panel that is not built on Dialog:focusFirstmoves focus to its field on open, Tab and Shift+Tab stay inside it, Escape closes it throughonEscape, and closing returns focus to the Quick edit button. Copy it withastryx template useFocusTrapHookUsage <path>. -
A new
useHotkeys — Search and Help Shortcutsexample block shows the hook on a page header: "/" focuses the search field and "?" opens the shortcut help, typing either character in the field does not trigger them, and a switch turns the single-key shortcuts off throughisDisabled. Copy it withastryx template useHotkeysHookUsage <path>. -
A new
useInputStatusIcon — Coupon Code Statusexample block shows a custom bordered input that takes its status affordance fromuseInputStatusIcon: a wrong code shows the error status and the valid code shows success, and the variant switch moves between a glyph with a message below (attached), no icon on the field (detached), and a focusable button with a tooltip that keyboard and screen-reader users can reach (tooltip). Copy it withastryx template useInputStatusIconHookUsage <path>. -
The
useKeyboardHint — Arrow-key Hintexample block now callsuseKeyboardHintitself instead of relying on Toolbar, which calls the hook internally. It is a five-star rating with one Tab stop, where Left and Right change the rating: tabbing into it shows the "← → to navigate" hint, the first arrow press dismisses it, and tabbing back in does not show it again. Copy it withastryx template useKeyboardHintHookUsage <path>. -
A new
useLocale — Invoice Summaryexample block formats an invoice date and amount withIntlusing the locale fromuseLocale, so switching the provider from English to German changes "Nov 2, 2026 · $1,234.50" to "2. Nov. 2026 · 1.234,50 $" with no second locale source. Copy it withastryx template useLocaleHookUsage <path>. -
A new
useScrollableArea — Activity Log Panelexample block shows a fixed-height Activity log whose entries scroll.useScrollableAreamakes the panel a keyboard tab stop only when its entries overflow, shows a top or bottom edge shadow only where entries are hidden, and stops a scroll at the end from scrolling the page. Add entry flips it from not scrollable to scrollable. Copy it withastryx template useScrollableAreaHookUsage <path>. -
A new
useTreeFocus — Keyboard File Treeexample block builds a small file tree from plain rows with tree roles and gives it the WAI-ARIA tree keyboard model withuseTreeFocus: arrow keys move over the visible rows and open, enter, leave or close folders, Home and End jump to the ends, a typed letter jumps to a matching name, Enter opens a file, and one row is the tab stop. Copy it withastryx template useTreeFocusHookUsage <path>. -
A new
useTypeahead — Type to Focus a Countryexample block adds type-to-focus to a country list of buttons. Typing "can" focuses Canada, pressing "b" again and again cycles through Belgium, Brazil and Bulgaria, and "e" finds Éire with the accent ignored.useTypeaheadreports each match throughonMatch, anduseListFocusmoves focus. Copy it withastryx template useTypeaheadHookUsage <path>.
-
Internal: the file read behind
astryx doctor --builttakes its file limit as an option, 20,000 unless a caller passes one, and the checks' messages name the limit the read used. The command's checks and output are unchanged. Not exported from the package entry point. -
astryx discoverno longer lists the Lab componentsMobileTokenizerandMobilePowerSearch, which are removed from@astryxdesign/lab; their touch flows are Core's Tokenizer and PowerSearchpresentationsheets. -
Internal: the public-import check's
declaredTargetsandmissingNamesare exported from their foundation module, so the docsite's production registry judges a copied example's imports by the same rule. The CLI's checks and their output are unchanged. Not exported from the package entry point. -
Internal: a gap-report handler's time budget starts once its module has loaded. Starting its worker and loading the module have the default deadline, so a short budget in a contract test no longer covers a slow start on a busy machine. The 30-second handler budget is unchanged.
-
Internal: generating the CLI's type declarations no longer fails when builds in two checkouts run at once on one machine, and it no longer needs pnpm on PATH.
-
The Tokenizer blocks and page templates that show a prop the bottom sheet does not render (
hasClear,endContent,tokenOverflowBehavior,hasEntriesOnFocus,renderToken) passpresentation="popover", so they keep the inline field on phones under Tokenizer's new'adaptive'default.
Thanks to everyone who contributed to this release:
@10k11 @cixzhang @duytbp @emilyhorsman @ernestt @Geervan @humbertovirtudes @imdreamrunner @korkt-kim @ksying @kyu-rong @MannXo @nbozidarevic @nynexman4464 @parinith-web @vjeux
Full Changelog: https://github.com/meta/astryx/compare/v0.7.7...v0.7.8