为astryx打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 astryx,你可以:
完全开源、支持自定义的标准化设计系统,原生适配各类AI智能体调用,可自由修改组件、样式与交互规范。
用户评论 (0)
2026年08月04日
2026年08月03日
2026年08月17日
2026年02月27日
2026年03月13日
2026年03月12日
2026年08月27日
2026年07月02日
2026年07月02日
v0.7.8
2026年11月05日
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 .@astryxdesign/core
New Features
-
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.
Fixes
-
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.
Performance
-
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.
Documentation
-
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.
Other Changes
-
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.
@astryxdesign/richtext
New Features
- 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.
@astryxdesign/cli
New Features
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.
Fixes
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.
Performance
-
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.
Documentation
-
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>.
Other Changes
-
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.
Contributors
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: v0.7.7...v0.7.8
详细ChangeLogv0.7.7
2026年11月04日
Astryx 0.7.7 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.6 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.7 @astryxdesign/cli@0.7.7 # plus every other @astryxdesign/* package you use, at 0.7.7
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New Components
- Promote
InfoTipfrom Lab to Core, imported from@astryxdesign/core/InfoTipor the package root: an info-icon button whose press pins its help. Hover and keyboard focus preview the help, and a click, tap, Enter, or Space pins it open until Escape, a second press, a press outside, or focus leaving. Its default name is the translated "More information", and under a coarse pointer it takes taps out toward 44 px without taking a neighbour's. The@astryxdesign/labInfoTipexport is now a deprecated re-export of the Core component and is removed in the next release: import it from@astryxdesign/coreinstead.
New Features
-
AppShell keeps its header items and the end of its content inside the device's safe area on a phone page that opts into the full screen (
viewport-fit=cover). A header region or the phone top bar reaches under the status bar and out to the screen's sides while its items stay clear of the status bar, the Dynamic Island and a landscape notch. Inheight="auto", a phone top bar below a banner sticks under the top inset instead of at the top edge, so its items stay clear when the page scrolls. The main content ends clear of the home indicator (its block-end padding iscontentPaddingplus the bottom inset, so a child that fills it ends above the indicator), in the page or in the main region's own scroller. A shell with no header region or phone top bar takes no top inset, so its content keeps its own top padding there. In landscape only the header is inset, not an inline SideNav or the content's sides. Withoutviewport-fit=coverthe insets are zero and nothing moves. The AppShell docs say how a page and an installed web app opt in. -
ChatComposerInput's Return key says Send on a touch keyboard. Enter already sends the message; the editor now sets
enterkeyhint="send", so iOS shows its Send key instead of a plain Return. A newenterKeyHintprop, typed by the exported closed unionEnterKeyHint, takes another label, such asenterfor a composer whoseonKeyDownmakes Enter insert a line break on touch keyboards. -
Dialog (and so AlertDialog and CommandPalette), Drawer and MobileNav no longer blur the page behind the modal, under every pointer: the 2px full-viewport backdrop blur is costly to repaint. The dim keeps the theme's
--color-overlay, and in forced colors the modal keeps an edge so it still stands apart from the page. BottomSheet never blurred. A theme keeps the blur by settingbackdropFilter: 'blur(2px)'on the component's modal backdrop:components.dialog.base['::backdrop'],components['mobile-nav'].base['::backdrop'], and for Drawercomponents.drawer.base[':modal::backdrop'], which leaves a non-modal drawer (hasScrim={false}) unblurred. -
Under reduced motion, an indeterminate ProgressBar no longer slides: on every pointer its fill spans the whole track and gently pulses its opacity in place, from full down to 84% and back, two seconds each way. A theme's tempo does not change the pulse, and in the default light and dark themes every fill tone that stands out from the track at 3:1 still does at the pulse's lowest point.
-
Under a finger (a coarse primary pointer, on every touch device), a determinate ProgressBar moves to a new value the way iOS's progress view does: linearly, taking one second per full track of change at the theme's default tempo (0.8 s from 10% to 90%), and from wherever the fill is drawn when the value changes again mid-way. A theme's tempo scales that time. Above zero the fill never draws shorter than two track heights, and at zero it is not drawn. The motion runs on the compositor, so it keeps going while a script runs; under reduced motion, or with forced colors on, a new value lands at once. A mouse or trackpad keeps the theme's duration and easing.
-
Search fields ask a touch keyboard for its Search key and no autocorrection. The search inputs of Typeahead, Tokenizer (and so PowerSearch), CommandPaletteInput and the Selector and MultiSelector search row now carry
enterkeyhint="search"andautocorrect="off". A phone keyboard then shows a Search key instead of Return and leaves names and identifiers as typed. The key is only a label: Enter does what it did before in each field. -
SegmentedControl: under a finger, on a touch device (a coarse primary pointer), the control tracks the touch. Dragging the selected segment carries the selection along with the finger, and the segment under the finger is chosen when it lets go (
onChangefires once, at the lift); letting go outside the control selects nothing. While the selection is dragged, the selected label's colour follows it, with a margin around each boundary so a finger resting on one never flickers; label weights change only at the lift, so nothing reflows under the finger. A tap selects through the browser's own click, and a pressed segment shows the shared pressed overlay; nothing lifts or dims. A vertical drag that starts on the control still scrolls the page. A commit the item'sonClickvetoes sends the selection back at once; one a controlled parent adopts later lands without a bounce. With Reduce Motion the selection still follows the finger, with no chase, and only the lift cross-fades. Keyboard and assistive technology keep the click; no element is added. -
SegmentedControl: a mouse or a pen drags the selection as a finger does. A drag from the selected segment carries it with the pointer, and the release commits the segment under the pointer (
onChangefires once, at the release). A release outside the control selects nothing, and a drag that starts on another segment commits where it lifts. Under a mouse or a pen, every change slides the selection on the theme's duration and easing, not UIKit's spring, and a click slides it too. With Reduce Motion, a mouse's or a pen's drag still carries the selection, and its release lands at once. Keyboard and assistive technology keep the click. -
SegmentedControl: under a finger the selection slides to the new segment on UIKit's spring, whether a tap, an arrow key or a new
valuemoved it. The selection indicator is the control's own pseudo-element, so no element is added. The motion runs on the compositor and keeps moving while the main thread is busy. With Reduce Motion nothing travels or scales: the old selection fades out where it is as the new one fades in. The spring is UIKit's measured one, an internal motion role no theme retunes, and no theme value lengthens the Reduce Motion fade. With a mouse or a pen it slides on the theme's duration and easing instead. -
Switch's press and drag work with a mouse and a pen as well as a finger: a drag past the flip point toggles the switch at the release, unless the pointer came back past where it pressed. A mouse or pen press released away from the switch leaves it alone, flipped or not, as a checkbox does. With a mouse the switch keeps its desktop look, and the value moves the thumb. On a touchscreen laptop a finger flips it by the same rule, with the desktop look.
-
Under a finger, on every touch screen, Switch moves like the iOS switch. A press lifts the thumb a little, with a soft shadow, and a horizontal drag moves it with the finger and flips the switch once the finger has travelled most of the track; lifting the finger commits. A tap toggles through the browser's own click, and a hold or a short drag toggles at the lift. The thumb stays inside the track however far the finger drags past either end, in either writing direction. A press slid off the switch and lifted outside still toggles it, as on iOS. A vertical drag scrolls the page and the switch lets go. The motion runs on the compositor, so it stays smooth while scripts run. The thumb keeps its circle and its size on every device, and under a coarse pointer the switch's invisible hit area grows toward 44 × 44 px with nothing visible added, stopping halfway to any neighbouring control so a tap goes to the nearer one. The track keeps its theme's fill, and the colour change crossfades over it. With reduced motion on, a change cross-fades instead of moving on a touch screen and is immediate with a mouse. A press shows the pressed overlay, through a drag too, and a still hold selects no text. Keyboard and assistive technology behave as before. In Chromium, a Switch retargeted right after a tap, such as one tapped again mid-travel, turns around from where it is, with no step back to the start of its travel. Switch joins Slider on the shared press tracking and touch negotiation.
Fixes
-
A
Dialogwithpurpose="info", aDrawer's scrim, andCommandPalettenow close on a backdrop press only when the press both starts and ends on the backdrop. Selecting text in a field and releasing past the edge no longer closes it and loses the input. A press on the backdrop alone still closes it, with a mouse, a pen, or a finger. -
BottomSheet: in WebKit, including iOS Safari, a sheet at a set height whose content sits directly in it keeps its bottom padding at the end of its scroll (0 → 16 px), instead of ending flush with the last line.
-
BottomSheet: the open sheet's dialog places its panel with a flex row instead of a grid. In desktop WebKit, measured in Playwright, an update inside an open sheet lays out faster; the iOS simulator showed no difference. A percentage
height(for example'50%') now takes that share of the screen at the bottom edge; before, a short sheet was cut short and a long one hung from the top of the screen. -
BottomSheet: a sheet closed from a control inside it, such as a Done button, a Selector's search field or a menu row, marked itself
inertandaria-hiddenwhile that control still had focus. The browser then dropped focus to the page, or screen readers were left in a hidden subtree, for the length of the exit. Now a standalone sheet that closes with focus inside it stays out ofinertandaria-hiddenwhile that focus stays, and ignores pointer and keyboard activation during its exit; when the exit ends, it closes and returns focus to its opener. The exit still plays. A sheet that closes with focus elsewhere, or that focus leaves during the exit, goes inert at once, as before. -
BottomSheet: a sheet that a Suspense boundary hid while it was closing, and then showed again, never finished closing. Its dialog stayed open, modal and inert, so the whole page under it ignored taps, clicks and focus until a reload. This happens, for example, when a sheet's action navigates to a route that suspends. Now the sheet finishes closing when it is shown again, and the page is usable.
-
A
BreadcrumbItemlink or button inside the AppShell mobile drawer now closes the drawer after it runsonClick, like theTopNavItemandSideNavItemrows beside it. Before, a crumb navigated and left the drawer open over the new page. A crumb markedisCurrent, which goes nowhere, leaves the drawer open. (#9465) -
Button, IconButton: a tooltip that repeated the button's accessible name was also added as its description, so screen readers read the same words twice ("Close, button, Close"). Astryx's own close, pagination, copy and collapse buttons did this by default. Now a tooltip whose trimmed text equals the accessible name still shows, but adds no description, when Button can read that name: its
aria-label, or its label when any icon or end content is a decorative Icon. A tooltip that says more, or a Button named another way (aria-labelledby, or text in its icon or end content), keeps the description. -
A
CheckboxListwith an errorstatusnow makes every checkboxaria-invalid, so a screen reader announces the list as invalid as each checkbox takes focus, asSwitchand the text inputs already do. The message still renders once, from the list. -
After a gesture takes a touch, the page no longer sees that touch's late
mousedownandmouseup. WebKit sends them a few milliseconds after a held tap's cancelledtouchend, aimed at whatever is under the finger by then; they now go with the click. -
Avatar, BreadcrumbItem, Button, Lightbox, SegmentedControlItem, Tab, Tokenizer: a slot whose value is
0showed a stray "0" beside its slot, or, in SegmentedControlItem's and Tab's icons and Tab's end content, was dropped. That coversstartIcon,icon,endContent, a LightboxcaptionandselectedIcon. Now each slot follows the shared presence check. Empty values (null,false,'') render no slot, as an omitted one does, and0renders inside its slot as content. A Tab whoseselectedIconis0shows it while selected instead of falling back toicon. An Avatar whosestatusis0no longer shows a stray "0"; its status slot still renders only for a truthy value. -
Pressing Enter in the typable date field of a
DateInputorDateTimeInput(the pointer surface) now submits the surrounding form when nothing is typed, as in any text field. Typed text is still committed first, and that Enter does not submit. A disabled or busy field still does nothing on Enter. -
DateRangeInput: with
presets, the popover overflowed a phone-width screen. The calendar was cut off on the right, so the Saturday column and the end of a selected range were hidden, and on screens under about 364 px Next month was out of reach too. Now, when the presets and a one-month calendar do not fit side by side, the presets stack above the calendar, and the calendar and its navigation stay inside the popover. On a short screen the popover's content scrolls. Where the presets fit beside a one-month calendar, the layout does not change. -
Dialog(andAlertDialog,CommandPalette): a dialog that unmounts while it is open, for example one rendered only while open ({isEditing && <Dialog 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. -
Opening a
Drawerwithout its scrim from the keyboard no longer throws anInvalidStateErrorwhen its first control has a tooltip, such as aDrawerHeaderclose button. The tooltip now opens once the drawer is shown. -
A toast shown while a modal
Draweris open now appears inside the drawer, above it, and can be pressed and reached with Tab, as it already does over aDialogor aBottomSheet. Before, the toast stayed outside the drawer's modal dialog: it was inert there (a press on Undo did nothing, and Tab never reached it), and a wide drawer hid it completely. Toasts go back to the page as the drawer starts to close. A drawer without a scrim is unchanged. -
A toast shown before a
Drawerwithout its scrim (hasScrim={false}) opens now stays above the drawer, as it already does above a scrimlessBottomSheet. Before, the drawer painted over it, so where the drawer covered the toast's corner its action could not be seen or pressed. -
A data-mode
DropdownMenuthat opens as a bottom sheet from arenderTriggernow titles the sheet, and names its dialog, after the menu'saria-label, else the trigger's own name, as its popover does. It no longer reads "Menu" for every such sheet. (#9525) -
A window blur during a pen's press, or during a press by a finger read from its pointer events, now ends it with nothing acting at the later lift, on every surface: a
Switchno longer toggles at that pen's click. Where fingers come from pointer events, a second finger leaves both to the page's pinch even when the first rests on plain page. A disabled recognizer brings no blocking listener. -
With Reduce Motion on, a layer that opens under a finger fades in over 200 ms on easeInOut, the motion foundation's Reduce Motion values, instead of the theme's fast duration and curve. Under a mouse it still appears at once.
-
A
Linkrendered as a button (withonClickand nohref) lines up its wrapped text like the text around it, as anhrefLink does, instead of centring its second and later lines. -
A disabled
CheckboxListorRadioListnow setsaria-disabled="true"on its group, so a screen reader announces the group itself as unavailable, not only each option, and the dimmed group label counts as the label of an inactive control. -
A finger's tap that a DropdownMenu (or any menu on the press model) tracks now cancels that touch's
touchend, on every device, so the browser sends no click and no compatibility mouse events for it. Before, a busy main thread could hold that click past the 400 ms click guard window. After a tap that drilled into a sub-menu, the late click picked the sub-menu row that had come under the finger and closed the menu. A mouse or pen release keeps the 400 ms window. -
With Reduce Motion on (
design:reduced-motion), the month arrows in the DateInput and DateTimeInput bottom-sheet calendars, Reset, and a keyboard move into another month no longer scroll the months: on a computer with a mouse or trackpad the month changes at once, and on a touch screen it changes through a short opacity dip. A second step during the dip replaces the first, and unmounting the calendar during the dip scrolls nothing. -
Every
Outlinelink is now in the normal Tab order, and Tab moves from link to link, as the Outline record says. Before, the outline was one Tab stop on the current heading, with arrow, Home and End keys moving between links, so a keyboard user who did not know those keys reached only one link. The arrow, Home and End keys no longer move focus between links. (#9001) -
PopoverandusePopover: in the anchored presentation, initial focus now lands within the tap or click that opens the popover, so on iOS a text or number field in it raises the on-screen keyboard at once. Focus thatonShowmoves inside the popover is no longer pulled back to the first control. -
PowerSearch: Clear all keeps read-only filters. It removes only the filters the user can edit, the clear button shows only while an editable filter exists, Backspace on an empty input no longer removes a read-only filter, and Clear all announces "Editable filters removed" while a read-only filter remains. For callers, Clear all now callsonChangewith the read-only filters andremoveat the first removed index (0when no filter is read-only) instead of[]at the last filter's index. -
PowerSearch: in a read-only field (isReadOnly), Backspace on an empty input no longer removes the last filter. A read-only field now removes no filter, as itsisReadOnlydocs promise. -
PowerSearch: in the popover presentation, a built-in filter token's button was named by its field and operator only ("Status: is") and gave no sign that it opens an editor. Two filters on one field sounded the same, and the visible value was missing from the name. Now the token is named by all its visible text ("Status: is Open"), has
aria-haspopup="dialog"andaria-expanded, and opens an editor that is a dialog of the same name. Its remove button is "Remove Status: is Open". Token:aria-haspopupandaria-expandednow reach a clickable token's inner button, besidearia-labelledbyandaria-describedby. -
Under Reduce Motion on a touch screen, a step on a DateInput, TimeInput or DateTimeInput wheel, and a month step in the touch calendar, change under their cross-fade even on a busy page. Before, the change landed on a timer at the fade's middle, and a busy page could fire it after the fade had ended, so the rows or the month moved fully visible. Now the change lands when the fade-out ends, on the fade's own timeline, and the fade-in starts only after it, so it never shows at full opacity. The month's dip now eases each half, as the wheels' does.
-
A
ResizeHandlewhoseresizableprop goes away in the middle of a drag now ends the drag as it does on unmount: it releases the page's resize cursor and text selection, and the region hears that its gesture is over. -
A Selector's option list no longer fades in when Reduce Motion is on with a mouse or trackpad; it appears at once. On a touch screen it uses the shared Reduce Motion cross-fade.
-
In an open Selector, MultiSelector, CommandPalette, DateTimeInput time list or Chat trigger menu, a key that scrolls the list (End, Home, PageDown, type-to-select) keeps the highlight where the key put it, even when the mouse is resting over the list. Before, the row that scrolled under the still pointer took the highlight. A mouse that moves or presses still takes it.
-
Slider: every pointer drags a thumb by its travel, as UISlider does. A press on a thumb no longer jumps the value to the pointer: once the pointer has moved 10 px, the value follows its further travel along the track. A finger or a pen claims the drag only along the track, so a swipe across the slider scrolls the page; a mouse claims in any direction. On a touch screen each thumb takes a finger or a pen through a 48 px target, capped at half the gap to a range's other thumb, and the held thumb lifts. After a finger's flick the thumb coasts on UISlider's measured spring for about 0.6 s,
onChangefiring through the coast, andonChangeEndreports the value once it settles; a slow drag, a mouse drag and a pen drag end at the release. A tap on the track sets the value when the finger lifts, and a mouse click where it lands; a right click and a macOS ctrl-click change nothing. Under reduced motion the thumb does not lift and a tap's value applies at once. -
Toast: a toast raised while the window is in the background now starts with its auto-hide timer paused, so it can no longer disappear before the user returns to the tab. -
A removable
Tokenthat its width cuts off now keeps its 16 by 16 remove button. The button used to shrink to 12 px wide, so its focus ring drew as an oval and its press target narrowed to 20 by 24 px. Only the label is cut now. (#9599) -
Tooltip, HoverCard: a tap-opened tooltip or hover card whose trigger renders in another document, such as an iframe, now closes on a scroll that starts outside in that document, and on a tap outside there when the trigger takes no focus.
-
Typeahead: with focus entries on, an open list whose focus entries come back empty, or fail to load (for example after the query is cleared), now closes instead of staying open and empty. A typed search with no results still shows its message. -
Typeahead: pressing Escape while editing the selected value now restores the value and moves focus to its token, instead of dropping focus to the page. With the list shown, the first Escape only hides the list. -
useMediaQueryreturns its server default where the window has nomatchMedia, as in a test DOM, instead of throwing. Components that read it, such as Slider, now render in such a DOM; SegmentedControl, which reads it from this release, keeps rendering there. -
A picker wheel that stops on a value outside the bounds now settles on the nearest value inside them. Before, it bounced back to the value it started from. This applies to the wheels in the TimeInput, DateTimeInput and DateInput bottom sheets. For example, with
min="09:00", dragging the hour wheel from 10 to 7 settles on 9, as the iOS time picker does. A stop on a value inside the bounds is unchanged. Opening a sheet on a value outside the bounds commits nothing. When a bound changes a wheel's value while the sheet is open, as when the meridiem wheel turns past the maximum, that wheel turns onto the new value instead of jumping there. Under reduced motion, the wheel's own scrolls no longer glide. On a touch screen this travel, the step from an arrow key and a click on a row cross-fade, the rows landing while they are faded out; with a mouse or a trackpad they land at once, except the travel after a touch drag, which cross-fades on any screen.
Performance
-
Opening a Selector's list or moving its highlight re-renders only the options whose highlight or selection changes, not every option, so a long list opens sooner and arrow keys respond faster.
-
Opening a Selector with a long option list is faster: the list no longer restyles every option a second time on its first open to switch to its scrolling touch behavior.
Documentation
-
Hook docs for
useOutlineFromMarkdown, soastryx hook useOutlineFromMarkdownandastryx searchreturn it, and auseOutlineFromMarkdown — Docs Articleexample block: a Markdown article and an Outline built from the same string through the hook, with a button that adds a section and its linked entry.Also released in
@astryxdesign/cli.
Other Changes
-
Internal: the touch presentations' animator carries a channel on from the screen when a rebase, a set or a retarget that starts now rebuilds it after its call's first frame came late and left the start unread. The channel leaves that call with a start of its own, dated from that frame, instead of starting its curve again; the call's other channels keep waiting for the browser's start. Not exported from the package entry point.
-
Internal: the touch presentations' animator reads a call whose first frame came late, and left its start unread, as started at that frame. A retarget or a read before the browser reports the start, of now or of a later time, continues near where the screen has it instead of from the call's first value. A rebase or set that rebuilds one channel's animation in that window reads that channel's first value until the frame that commits it, and the call's other channels keep reading from the first frame. The browser's start, once read, still decides. Not exported from the package entry point.
-
Internal: ChatMessage's avatar offset variable now has the private literal name
--_chat-avatar-offsetinstead of a hashed name, so the published stylesheet no longer declares an internal variable that looks public. The avatar's offset is unchanged. Not exported from the package entry point. (#9602) -
Internal: a mouse or pen drag that a gesture claims takes no new text selection and keeps the page's existing one, from the claim of whichever recognizer makes it (a swipe or a recognizer waiting on another's failure included), and a drag that starts on selectable text is left to the browser, which selects that text. Not exported from the package entry point.
-
Internal: a pan follows a trackpad's two-finger scroll where its owner allows it (
allowedScrollTypes: ['continuous'], UIKit'sallowedScrollTypesMask; none by default), along its own axis and after the scrollers under the pointer, and never a mouse wheel's notches, which scroll what is under the pointer; the screen-edge pan takes none; and a pinch takes a ctrl-wheel from a trackpad or a mouse (AST-094 FR43, DEC-24). A watcher pan never takes the wheel, and a wheel another handler already prevented stays the page's. Input the deltas cannot place, Shift+wheel included, reads as a mouse wheel; a trackpad scroll a pan follows keeps moving at the fingers' speed until their lift is read, ends there still moving, and the momentum never moves it. Not exported from the package entry point. -
ResizeHandle's pointer drag, keys and double-click move into one internal module, with no behavior change. -
Internal: when a main-thread stall delivers a late trackpad wheel and bunched wheels after it, a followed pan reads the fingers' speed over the late wheel's interval, so a flick no longer coasts short. The reading never passes the speed before the stall. Not exported from the package entry point.
-
Internal: a followed trackpad pan takes no speed from a wheel within 1.5 ms of the one before, so bunched wheels after a main-thread stall no longer carry it past the fingers' travel, at 60 to 500 Hz. Not exported from the package entry point.
-
Internal: the trackpad splitter reads a bunched wheel, one within 1.5 ms of the one before as a main-thread stall delivers it, as the steps it merged. During momentum a bunched wheel is not a jump, so momentum no longer restarts a followed pan, and the steps after it no longer read as a lift. Not exported from the package entry point.
-
Internal: a pager for touch presentations that pages like a UIKit paging scroll view. A horizontal pan moves the pages one to one and rubber-bands at the ends. The release picks the page with UIKit's rule and settles on UIKit's paging curve on the compositor, and a finger can catch it mid-flight. It takes every pointer: a mouse drags it as a finger does, and its pan follows a trackpad's horizontal scroll, at most one page per swipe. A mouse wheel's scroll stays the page's. Its motion values are internal constants. Not exported from the package entry point.
-
Internal: UIKit's paging values and math for touch presentations, measured on iOS 26.2: the thresholds that pick the page a release settles on, the settle that carries it there and
setContentOffset(animated:). The settle andsetContentOffset(animated:)replay the recorded frames to under half a pixel. The unused projection rule (selectPageandscroll.paging) is gone, so the measured thresholds are the one paging rule. Not exported from the package entry point. -
Internal: UISwitch's values measured on iOS 26.2 (its geometry, the springs of the thumb's lift, settle, travel and drag, the track colour, its minimum lift time and its flip distance) join the UIKit constants table as internal constants, with the rule a switch's drag follows as a pure function: the finger flips the switch once it has travelled the track width minus the thumb width from where it landed, coming back past that point flips it back, and lifting the finger commits the side shown, or toggles when nothing flipped. Not exported from the package entry point, and no theme sets them. Switch's touch presentation plays them.
@astryxdesign/richtext
Fixes
- RichTextEditorToolbar: Insert link with nothing selected did not insert a link at the caret. In an empty paragraph nothing was inserted, and with the caret inside text the whole text around it was linked, while the dialog closed as if it had worked. Now, with the caret outside a link, Insert link inserts the entered URL as link text at the caret; with a non-empty selection it links the selected text, and with the caret inside a link it updates that link, as before.
Performance
- Typing in a
RichTextEditorcode block no longer re-tokenizes the whole block. In TypeScript, JavaScript, Python, and shell code, an edit inside one line re-tokenizes that line, plus at most the line above it, and replaces only the color ranges inside the text node it edited, so a keystroke in a 2,000-line block tokenizes as little code as one in a short block. Edits that open or close a string or comment across lines, and other languages, still re-tokenize the whole block. Colors are unchanged, except that a block whose text nodes are replaced by others with the same text is now recolored instead of left uncolored.
@astryxdesign/cli
New Components
astryx discoverno longer listsInfoTipamong the components@astryxdesign/labcontributes: InfoTip is a Core component now, described byastryx component InfoTip.
Performance
- With TypeScript 5.3 or later,
validateIntegration(),integrationComponentConflicts()andintegrationCheck()from@astryxdesign/cli/api, and the commands that run them, reuse each TypeScript file a check parsed for later checks in the same process that parse it the same way, while the file is unchanged, instead of parsing it again for every check. Their results are unchanged.
Documentation
-
The
usePressFeedback — Pressable Cardexample now shows a small card in real playing-card proportions, with corner indices, a full face and a patterned back, and a line under it that says what to try: press and hold to see the press, tap, click, Enter or Space to flip. Copying the example (astryx template, the docsite's Code tab and Install) still gives you only the hook on a Card (width={120},padding={1}) with one<Text>placeholder: the hint line is left out, not replaced. -
A new
useCombobox — Assign To Fieldexample block spreads the field, listbox and option props fromuseComboboxonto aTextInputand a list ofItemrows: typing filters a list of teammates, ArrowUp and ArrowDown move the active option while focus stays in the input, Enter or a press picks one, and Escape closes the list. Copy it withastryx template useComboboxHookUsage <path>. -
A new
useGridFocus — Color Swatch Gridexample block wiresuseGridFocusto a color swatch picker in rows of eight: the grid has one Tab stop, the arrow keys move focus cell to cell, Home and End jump within a row, Ctrl+Home and Ctrl+End jump to the corners. Each swatch is a button, so Enter or a click picks it. Copy it withastryx template useGridFocusHookUsage <path>. -
A new
useListFocus — Recent Filesexample block gives a list of buttons keyboard navigation fromuseListFocus: ArrowUp and ArrowDown move between rows, Home and End jump to the first and last row, focus wraps at the ends, and only one row is in the tab order. Copy it withastryx template useListFocusHookUsage <path>. -
A new
useOverflow — Editor Toolbarexample block shows the hook on its own: eight toolbar actions sit in a card you can resize, a hidden copy of the row holds every action plus theMoremenu markeddata-overflow-indicator, and the actions that do not fit move into theMoremenu with no flicker. Copy it withastryx template useOverflowHookUsage <path>.
@astryxdesign/build
New Features
withAstryx()builds Astryx from source under Turbopack instead of refusing to. It points each package's documented entry points at their source (Core, Lab, Charts and Rich Text), compiles that source with the settings the prebuilt stylesheets use, and keeps the app's own Turbopack rules off it. The new PostCSS plugin@astryxdesign/build/next/postcssreplaces an@astryx;rule with each source-built package's prebuilt stylesheet, compiled from that source: the same rules and selectors, in the same order, inside@layer astryx-base. To set it up, list@astryxdesign/build/next/postcssin the app's PostCSS config and put one@astryx;rule in the app's global stylesheet (optioncwd, the app root, defaults to the working directory). Under Turbopack, the webpack setup's@astryxdesign/build/postcssrefuses to run besidewithAstryx(), since its rules never match the classes Turbopack renders. In this source build, an installed Astryx package with a malformedpackage.jsonfails the build instead of being left out. The webpack setup is unchanged: it builds Core and Lab from source, and Rich Text and Charts keep their prebuilt stylesheets there.
Other Changes
- The prebuilt stylesheet build and the Turbopack source build share one module walk, compile and layer block, so a source build prints the prebuilt rules by construction. Every prebuilt stylesheet keeps its bytes.
Contributors
Thanks to everyone who contributed to this release:
@cixzhang @duytbp @emilyhorsman @ernestt @HelloOjasMutreja @hskl18 @imdreamrunner @kyu-rong @maheshrijal @vjeux
Full Changelog: v0.7.6...v0.7.7
详细ChangeLogv0.7.6
2026年11月03日
Astryx 0.7.6 — all @astryxdesign/* packages ship at this version.
OLD_VERSION=0.7.5 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.6 @astryxdesign/cli@0.7.6 # plus every other @astryxdesign/* package you use, at 0.7.6
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New Features
-
useAnnounce takes an optional
{hasReplace: true}. An instance created with it states one current state, such as a search's result count: each message it writes withdraws that instance's previous message while it has not been spoken yet, whatever their politeness, and is spoken at its own politeness, so input faster than a frame (a barcode scanner, dictation, automation) says only the latest. Messages from other instances, and from instances without it, still join. MultiSelector sends its result count, its create row and its empty-search message through such an instance, so fast typing no longer says1 result Create "Urg" Create "Urge" …; its selection changes keep their own instance and still join. This follows spec:AST-086 FR9 and FR13 (#9070). (#8640) -
Adds three
@astryx.diffViewer.*keys to theencatalog for the labDiffViewer's large-change fold: its "Large change: N lines" label and its Show full diff / Hide full diff button. No existing string changes; locales without a translation fall back to English. (#9462) -
FieldLabel: a tap on the label's info icon (
labelTooltip) opens its help without also toggling or focusing the control (component:FieldLabelFR9). Before, the tap that opened the help also activated the label's control, as a tap anywhere on a native label does: on a touch screen it focused the field, raising the keyboard, or toggled the switch or checkbox the label names, an unintended second action. Now a tap by finger or pen opens the help alone; a mouse click on the icon still activates the control like the rest of the label, and hover still shows the help. (#9089) -
FieldStatus: the
tooltipvariant is deprecated and is removed in the next minor release. FieldStatus has no tooltip presentation: a direct<FieldStatus variant="tooltip">draws a plain message box with no tooltip, and your editor now marks it deprecated. To show a status message from a field's on-field icon, setstatusVariant="tooltip"on the field control instead; that stays supported. (#9196)
Before:<FieldStatus type="error" message="Required" variant="tooltip" />
After:
<TextInput label="Name" value={name} onChange={setName} status={{type: 'error', message: 'Required'}} statusVariant="tooltip" />
-
Adapt NumberInput's compact steppers to primary-pointer precision: hide them on coarse pointers and restore the field's themed end padding. Fine-pointer steppers are unchanged. (#8015)
Compatibility: this is a non-breaking presentation adaptation. The public props and exports, numeric value and callback contracts, validation, direct entry, and keyboard stepping remain unchanged; existing NumberInput calls require no source or configuration migration. Coarse-pointer users enter the value directly instead of using the compact visual stepper aids. -
TextInput and TextArea tell a touch keyboard what the field holds. New props
enterKeyHint(what the Return key says: Search, Send, Next, Go, Done),inputMode(which keyboard: number pad, decimal pad, phone pad, web search, email, URL),autoCapitalizeandhasAutoCorrect, plushasSpellCheckon TextInput (TextArea already had it). TextInput'stypealso acceptssearch,telandurl. The value types are the new exported closed unionsEnterKeyHint,InputModeandAutoCapitalize, so TypeScript rejects any other value. Each prop renders the native attribute of the same name and nothing when unset, so existing fields keep the browser's defaults. (#8166) -
A theme's
motiontakes two knobs beside the duration scale:tempo(0.75–1.5) scales every motion duration, andcharacter('crisp','standard'or'expressive') sets the new--ease-entranceand--ease-movetokens;--ease-exitstays the same at every character. Their types,ThemeMotionConfig,ThemeMotionKnobsandMotionCharacter, are exported. A theme without them renders exactly as before; a duration scale and explicit tokens win over the knobs, Spinner's and Skeleton's loops keep their timing under every tempo, and the press release fade follows tempo up to the 200 ms Reduce Motion cap under the person's setting. Springs don't read the knobs yet. The motion, token and theme-authoring docs and the theme template describe the knobs. (#8661)Also released in
@astryxdesign/cli. -
TimeInput, DateTimeInput: the
hourFormatdefault follows the locale. This is a default change. The old default was always'12h'; the new default, whenhourFormatis unset, is theInternationalizationProviderlocale's hour cycle, so ade-DE,en-GB, orvi-VNapp shows "14:30" likeTimestampbeside it, whileen-USand an app with no provider keep "2:30 PM". To keep the old default, passhourFormat="12h". To honor a person's own 12/24-hour preference everywhere, put it on the provider locale (en-US-u-hc-h23). Twelve-hour text now uses the locale's own day period ("오후 2:30", "午後2:30", "2:30 p. m.") instead of a fixed English AM/PM, along with its digits and separator, and the typed field reads that text back. Fixes #8992. (#9022) -
A
SearchSourcecan show results before its search settles.search(query, context)may callcontext.update(items)(new exported typeSearchContext) to show matches it already has, such as people the page loaded earlier, and then return the server's answer.BaseTypeahead,TypeaheadandTokenizershow each list for the current query, change the list at most once per keystroke, and add later rows only after the ones already shown, so the highlighted row never moves; the field stays busy and the result count is announced once, when the search settles. A later list that moves or removes shown rows is shown as given with a development warning. Sources that never callupdateshow one list per query as before, with two changes every field sees: option element ids now follow the item'sidinstead of its row index (tests that select options by an index-based id need updating), and a groupedTokenizerwithhasCreateshows its Create row after the groups instead of first. To show local matches at once, passdebounceMs={0}and delay the server request inside the source (spec:AST-092). (#7962)
Fixes
-
A bottom-sheet DropdownMenu whose sheet preload fails (a dropped connection) no longer reports an unhandled promise rejection, and no longer keeps the failed load, so a module loader that retries loads the sheet's actions on the next open. (#8478)
-
DropdownMenuno longer rewrites its trigger's style on every render. Its trigger refs, and the trigger refusePopoverreturns, now stay the same function when the popover'sonShoworonHidechanges, so React stops detaching and reattaching the trigger, and a tooltip anchored to the same trigger keeps its place. Triggers that takeusePopover's ref directly (ComplexSelector's built-in trigger, DateTimeInput's date field and Breadcrumbs) get the stable ref too. (#9130) -
A
Popoverin a Document Picture-in-Picture window now scrolls once that window gets too short for it or its content grows past it, instead of being cut off: it measures its overflow from the window it renders in, not the page. (#9098) -
In Safari, content already gliding after a layout change no longer jumps ahead when a second change retargets it, such as a row that moves again while it is still moving, or a row inside a card that is itself gliding: the new glide started up to about 3 px ahead of where the row was drawn, more the later in its frame the change was made. A gliding element's place before a change is now read on the clock of every glide that carries it, its own and its gliding containers', so the new glide starts where the old one is drawn. (#9327)
-
AppShellis a layout root: the layout values its ancestors pass down stop at its root, so it lays out the same inside a paddedCard, aSectionor aLayoutas at the page root. Before, its internal Layout escaped a padded host's padding on all four sides, so in a paddedCardthat clips its overflow the shell's logo was cut at the inline start and its navigation and content at the other edges. A caller's own props and styles onAppShellstill apply; theme, color mode, direction and translations keep inheriting. (#9418) -
With
height="fill", AppShell's main region can be scrolled from the keyboard when its content overflows and has nothing focusable (WCAG 2.1.1 Keyboard). Before, main was only the skip link's target (tabIndex={-1}): Tab passed it by, so long text, a report or a read-only page could not be scrolled without a pointer. Now, while main scrolls overflowing content, it is a stop in the tab order and keyboard focus on it draws the standard focus ring, inset; in an elevated shell with a top nav and an inline side nav, main then takes the surface's rounded top-start corner so the ring follows it. Tab entry moves on when the first focusable element inside main is a plain link or button; otherwise main is one stop before it. A main region that fits, andheight="auto"(where the page scrolls), are unchanged. (#8111) -
DateInput ignores selections from an already-open disabled picker and blocks Reset's value change and month navigation while disabled, without dismissing the picker or moving focus. (#8813)
-
DateRangeInput ignores calendar and preset commits after its open picker becomes disabled, without dismissing the picker or moving focus. Presets reflect the field's disabled state and reason. Enabled selection, clear behavior, and loading-only dismissal remain unchanged. (#9155)
-
MultiSelector blocks selection and creation callbacks and Actions when it becomes disabled while its panel is open, without removing the focused control. (#9152)
-
Selector ignores option selections after it becomes disabled, including selections from an already-open popup and pointer gestures started while enabled. Its trigger remains focusable and disabled values remain excluded from forms. (#9137)
-
In forced colors (Windows High Contrast), a lone
Avatar's initials and default person icon now take the color around them, as the browser forces it, instead of always showing CanvasText: inside a control that paints itself disabled they show GrayText. Faces inside anAvatarGroupkeep CanvasText on the group's ring. Outside forced colors nothing changes. (#8819) -
Badge: a badge with a label is now never shorter than one line of that label. With a larger text size, a badge's label grew while the badge kept its fixed height, so the label spilled out of the pill and white text on a colored badge became unreadable. The badge now grows with its label. At the default size nothing changes, a theme that sets the badge's height keeps that height there while its badges still grow with larger text, a color-only badge keeps its size at every text size, and a badge still shrinks and truncates in a container too narrow for it. (#8236)
-
Dragging a
BottomSheetwith snap points up from a shorter detent, or back down past it, no longer flashes the sheet away from the finger. For one frame the sheet jumped by the height its scrolling area gives up at that detent (about half the screen at a half-height stop) and then snapped back. The height and position now change in the same frame. (#9193) -
A BottomSheet opened from inside another sheet's content drags down to dismiss on its own. The covered sheet underneath no longer takes the gesture, so dragging the top sheet's grabber no longer moves or dismisses the sheet beneath it. (#8820)
-
Calendar, DateInput, DateTimeInput: a month label that stands alone starts with a capital where the locale capitalizes one. In Spanish, French, Italian, Dutch, Polish, Russian and Ukrainian, Calendar's heading read "octubre de 2026"; it now reads "Octubre de 2026", following CLDR's stand-alone capitalization, as the weekday headers already use CLDR's stand-alone names. A two-month view capitalizes both months, and each month grid's name, the touch date fields' month headings and
useCalendarNavigation'smonthYearLabeldo the same. Dates in running text, such as a field's value, are unchanged, and so is every locale CLDR does not capitalize, Vietnamese included. (#9371) -
Carousel's scroll area is a group named like the carousel, so a screen-reader user who tabs onto it hears where they are. It is a tab stop only while its content overflows; a carousel that fits no longer adds an empty stop. (#8155)
-
ChatComposerInput: a tap on a pasted-text token opens its preview without raising the keyboard. Before, the tap that opened the preview also focused the composer around the token and placed the caret in it, which on a phone raises the on-screen keyboard over the preview. Now a tap by finger or pen stops at the token, so touch reaches the preview and its Expand action without the keyboard covering them, the operable path
architecture:interaction-modalityINV4 asks of every modality; a mouse click on the token still places the caret in the composer, and hover still opens the preview. (#9189) -
A click inside an open Tooltip or HoverCard in a ChatComposer's body no longer moves focus to the composer's input. A click on the body's empty space still focuses it. (#9375)
-
A press in a ChatComposerInput's own editor no longer closes its open trigger menu (the
@mention or/command list). Clicking inside the query keeps the menu showing; a click that moves the caret out of the query, a press anywhere else on the page and Escape still close it. (#9503) -
Safari no longer slows down as a page fills a container with many children because of ChatMessage's avatar-spacing rule. The avatar's top spacing beside a named bubble is now judged from the message itself instead of from its siblings. It looks exactly as before. (#9438)
-
CheckboxList: a group disabled with a
disabledMessagegives that reason to each checkbox as its description (aria-describedby), as well as to the group, so a screen reader announces it on the focused checkbox. A row's own description comes first. (#9168) -
ClickableCard: a disabled link card no longer passes an undefined
hrefto the router link component, and a focused link card keeps focus when its disabled state changes. (#8659) -
CodeBlock: in right-to-left layouts the collapsed disclosure chevron now points toward the inline end (left), as other disclosure chevrons do. Expanded, it still points down. (#9294)
-
When a
Collapsiblecloses while keyboard focus is inside its content, for example from an owner-setisOpenor a group's value, focus moves to its trigger. Before, focus fell to the page, so a keyboard or screen-reader user lost their place (WCAG 2.2 SC 2.4.3). Focus anywhere else is not moved. (#9250) -
TypeaheadandTokenizerexpose their state on the combobox (WCAG 2.2 SC 4.1.2;component:FormLayoutFR5 and AR2). Before, the combobox had noaria-required, so underFormLayout defaultOptionality="required", where the visible "Required" marker is hidden, a screen reader announced a required field as optional; and an error status showed its message with noaria-invalid. Now the combobox setsaria-requiredfor the resolved required state andaria-invalidfor an error status. A caller's ownaria-requiredoraria-invalidstill applies when the field's own state is off. (#9034) -
CommandPalette no longer shows its "Type to search" text after you have typed. While the first search is still loading, the list stays empty and the field's loading spinner shows; the no-results text appears once that search finishes with nothing. Clearing the field brings "Type to search" back. (#9420)
-
Comments: the failure announcement spoken for a Comments error banner now comes from the
@astryx.comments.errorAnnouncementlocale entry, so it can be translated like the rest of the component's messages. (#7902) -
ComplexSelector's popup content keeps its last rows clear of a bottom bar the app declares through
LayerProvider'sinset, instead of scrolling them underneath it, and its chevron turns at once when the person prefers reduced motion instead of animating its rotation. (#8551) -
ComplexSelector: with
statusVariant="tooltip"the status message is no longer lost. The trigger row now shows the status icon as a focusable info-tip button that reveals the message on hover, keyboard focus, or tap, and the trigger is described by that message instead of pointing at an element that did not exist. Pressing the info-tip does not open the popup. (#9026) -
A context menu that was never opened no longer mounts its menu surface; it mounts at the first open and shows as it attaches. A Table whose cells carry context menus (row expansion gives every body cell one) showed its first rows after a minute or more at 2,000 rows in Safari; it now shows them in a few seconds. (#9278)
-
An app bundled into one esbuild file (no code splitting, as no-build pages are) no longer crashes on first render with a TypeError such as "Cannot read properties of undefined (reading 'useId')" or "(reading 'useEffect')", for example when it uses
ListorButton. Code-split apps are unchanged and still load Core's lazy modules on demand. (#9055) -
DateInput, DateRangeInput and DateTimeInput no longer build their calendar while the popover is closed. Each closed field used to mount a full month grid at page load and keep it updated, so a form with many date fields paid that cost per field. The calendar now mounts when the popover opens and opens on the field's current value. Opening, focus and dismissal are unchanged. (#8902)
-
A press in a DateInput's own text input, on its clear button or on its label no longer closes its open calendar. Clicking into the date text to fix a digit keeps the calendar showing; a press anywhere else on the page and Escape still close it, and moving focus from anywhere in the field (its text, clear button or calendar button) to another field now closes it too. (#9433)
-
A press in a DateTimeInput's own time input no longer closes its open list of preset times. Clicking into the time text to fix a digit keeps the list showing; a press anywhere else on the page, moving focus away and Escape still close it. (#9459)
-
A
Dialogrendered into a same-origin iframe through a portal now returns focus, when it closes, to the control in the iframe that opened it, as it does in the page. (#8381) -
A disabled field that keeps its tab stop (TextInput, TextArea, NumberInput, Typeahead, Tokenizer, Selector, MultiSelector, and DateInput, TimeInput, DateRangeInput and DateTimeInput on every surface: popover, native and bottom sheet) now shows keyboard focus under forced colors, such as Windows High Contrast. Its focus border takes the system Highlight color there, as enabled fields' does. Nothing changes outside forced colors. (#9410)
-
A disabled
Item,ListItemorTreeListrow with anhrefno longer navigates from a screen reader, Enter, or a link menu. Its link now has nohref,targetorrel, as a disabledLinkdoes, and it keeps the link role. (#9056) -
Under a finger in Chrome, the page beside an open non-modal
Drawer(hasScrim={false}) scrolls again. The panel clipped its content withoverflow: hidden, which made it a scroll container, and Chrome held a drag on the page beside it in that container's overscroll containment, so the page did not move. It now clips withoverflow: clip, which clips the same way without a scroll container. The panel's content area still scrolls on its own, and a modal drawer is unchanged. (#8636) -
The development warning for passing both
buttonandrenderTriggertoDropdownMenunow namesrenderTrigger; it named atriggerprop that does not exist. The docs match the component too:buttonis mutually exclusive withrenderTrigger, the private menu radius defaults to--radius-container, and a disabledDropdownMenuCheckboxItemorDropdownMenuRadioItemtakes no focus — the arrow keys, typeahead, and the pointer highlight skip it — while it stays in the accessibility tree as disabled. (#7517) -
A keyboard-focused
DropdownMenurow now shows the standard focus ring, drawn inside the row, in every color mode. Rows showed focus only with a translucent background, which forced colors (Windows High Contrast and similar modes) replace with the page color, so a keyboard user there could not tell which row Enter would activate. The ring follows the last input: after a key press it marks the focused row, including a row the mouse then moves focus to; after a mouse or touch press it does not show. Action, destructive, checkbox, radio and sub-menu rows all show it, including inContextMenuand breadcrumb menus. AContextMenuopened by right-click or long-press focuses its first row without the ring; one opened from the keyboard shows it. (#7517) -
The anchored
DropdownMenunow reflectsdata-presentation="popover"on itsdropdown-menutarget, as the bottom sheet already reflectedbottom-sheet. A theme rule written forpresentation:popover, which the docs list as a visual prop of that target, now applies. (#7517) -
DropdownMenuandMoreMenunow forward the caller's ref to the trigger button in the bottom-sheet presentation (architecture:public-component-apiINV8). Before,presentation="bottom-sheet", orpresentation="adaptive"on a compact touch screen, replaced thebutton.ref(and therefthatMoreMenupasses) with an internal ref, so a caller's ref stayed empty. The popover presentation already forwarded it. Apps need no code change. (#8898) -
DropdownMenu,MoreMenuandContextMenurender a submenu for a data item with nesteditemsinside a{type: 'section'}, as they do at the top level. Before, such an item rendered as a plain row with no flyout and noaria-haspopup, although its type allows nesteditemsthere; the bottom sheet on a phone already showed it as a submenu. (#8858) -
With an
animatedLayouthandle, a Collapsible or a TreeList row closed while it opens, or opened again while it closes, continues from what it shows: the content's edge stays on the content after it on every frame, instead of jumping back to fully shown or hidden. Under Reduce Motion with a touch pointer, where the content cross-fades instead, a reversal still starts its fade over. (#8721) -
Field:
FieldStatusPlacement, the type of every field control'sstatusVariant('attached' | 'detached' | 'tooltip'), is exported from@astryxdesign/coreand@astryxdesign/core/Field, so a wrapper component can type astatusVariantprop it forwards. (#9368) -
Enabled Field inputs (TextInput, TextArea, NumberInput, Selector, MultiSelector, Typeahead, Tokenizer, and the date and time inputs) now show keyboard focus under forced colors, such as Windows High Contrast. Forced colors drop the inset focus shadow and repaint every border in one system color, so a focused field looked the same as one at rest. A focused field's border now takes the system Highlight color there, with or without a status. Disabled fields, which stay focusable, don't get it yet. Nothing changes outside forced colors. (#9392)
-
FieldStatus wraps a long unbroken word in a validation message, such as an email address or URL echoed from the field, inside the message box instead of painting it past the field's edge where its end could not be read. (#9126)
-
TextArea, Typeahead and Tokenizer: a caller's
aria-labelledbyno longer replaces the field's own label. Before, it was the only name the control had, solabel="Notes" aria-labelledby="billing-heading"named the textarea "Billing". Now the caller's ids follow the field's own label ("Notes Billing"), as TextInput, NumberInput, Selector and MultiSelector already do. A Typeahead inside an InputGroup, which ignored the caller's ids altogether, is now named by the group, its label, then the caller's ids. The visible label stays in the accessible name (WCAG 2.2 SC 2.5.3 Label in Name;family:input-fieldsFR10.1). Fields without a calleraria-labelledbyare unchanged. No API changes. (#8862) -
FileInput with
statusVariant="tooltip"keeps its status button, and the message it reveals, in dropzone mode and while the field is busy (loading or uploading), instead of dropping it and leaving the field's description pointing at nothing. (#9134) -
FileInput: a caller's
aria-describedbyand otheraria-*props now reach the trigger button, the field's focusable control. Before they were set only on the hidden native input, which isaria-hiddenand never focused, soaria-describedby="hint"was never read ("Report" announced without "PDF only, up to 10 MB"). The caller's ids are now joined to the trigger's own description ids, first. The props the trigger composes itself (aria-label,aria-labelledby,aria-invalid,aria-busy,aria-disabled,aria-hidden) are not copied. Seefamily:input-fieldsFR10.1. No API changes. (#9031) -
When several picked or dropped files break
acceptormaxSize,FileInputnames every rejected file and why in its status message, not only the first (WCAG 2.2 SC 3.3.1). The messages are listed in the active locale. Going overmaxFilesstill reports the limit, "Maximum N files allowed". (#9043) -
Inside
<FormLayout defaultOptionality="required">, FileInput and Slider now tell screen readers they are required even without their ownisRequired, like the other fields.isOptionalstill opts a field out. (#9053) -
ButtonGroup and InputGroup: the rule that rounds a group's last member no longer slows down filling a container in WebKit (as measured), on any page, groups or not. In WebKit, inserting 10,000 children into one element took about 1.15 s with the old rule on the page and about 10 ms with the new one. Corners look exactly as before: only the last member, skipping trailing popovers, templates and dialogs, rounds its trailing corners. (#9394)
-
Include the visible heading in SideNavHeading and TopNavHeading menu button names, with or without heading links. Keep the translated generic name when TopNavHeading has no heading. (#9329)
-
Tooltip and HoverCard: a tap on a disabled
Button,IconButtonorToggleButton, or a disabled menu item, now opens the tooltip that explains why it is disabled, and nothing activates. Before, withtouchTrigger="auto"(the default), the tap counted as the control's own action, so on a touch screen the disabled reason could not be reached (spec:AST-085FR5,architecture:interaction-modalityINV4). Anaria-disabledcontrol now performs no action, and a tap on a label for a disabled control opens its reason too. A tap on a disabled control inside another acting trigger, such as an option row or a link-role card, now opens that trigger's tooltip or hover card. Taps on enabled controls,touchTrigger="tap"and"none", and mouse hover are unchanged. (#8207) -
Touch press feedback now hears scrolls and page hides on the window's capture phase, where its pointer listeners already were. Under an app's window-capture
stopPropagation, or a document-capturestopImmediatePropagationregistered before Core, a finger's pressed look now ends when the content under it scrolls, and every pressed look ends when the page is hidden. (#8360) -
TypeScript users applying
interactionOverlayStylesthrough an Astryx component'sxstyleno longer get a type error. The touch-press properties of each variant (animationName,animationDuration,animationTimingFunction,animationFillMode, and the colour variants'backgroundImage) now carry their CSS value types instead ofunknown. The generated CSS is unchanged. (#9440) -
A disabled swipe action on an
Itemrow now stays focusable while the row is swiped open. Before, it rendered a<button>with the nativedisabledattribute, so Tab skipped it and a keyboard or screen-reader user could not reach it to learn it exists. Now it exposesaria-disabled="true"and keeps its Tab stop, while a click, Enter or Space still runs noonActivate, leaves the row open, and does not reach the row's ownonClick(spec:AST-085FR1, FR2). No API changes. (#9211) -
The arrow-key hint of TabList, Toolbar and SegmentedControl no longer appears, or gets used up, when focus lands in content a tab or toolbar button opens through a portal, such as a sheet, dialog or popover. It still shows the first time keyboard focus enters the row itself. (#9362)
-
A tall tooltip, or any layer that keeps clear of its trigger, no longer covers the trigger for an extra frame when the page scrolls on a busy device. The layer re-checks its place in the frame after the scroll, before that frame paints, so the trigger stays visible from the second frame on. (#9123)
-
useLayer: a show that a browser-run popover hide refuses (Chromium 156 throws an
InvalidStateError) is replayed once that hide has ended, so the layer ends shown. For example, when the browser's own Escape closes a light-dismissible layer, the tooltip on the button that opened it now shows instead of failing. (#8543) -
A press inside an open layer (a popover, tooltip, hover card, menu, dialog, drawer, lightbox, mobile navigation, bottom sheet or toast) no longer runs click, pointer, mouse or touch handlers on the elements around where the layer is written. Before, a click inside a menu written inside a clickable card or row could also activate that card or row. Handlers inside the layer, capture-phase handlers, and document and window listeners still receive the press. A handler that needs presses inside a layer belongs on the layer's content. (#9497)
SelectableCard: a click inside an open layer within the card (such as a popover's content) no longer toggles it. Until the next minor, the caller'sonClickstill receives that click, now during the capture phase, so before the layer's own handlers. -
Link:
maxLinesnow truncates when the link sits in a line narrower than its text. The link, as an anchor or a button, stops at its container and its label draws an ellipsis, instead of growing to its whole text and being clipped with no ellipsis. (#9059) -
A caller's
data-colorno longer replaces the oneLinkreflects for theme targeting (architecture:public-component-apiINV5,LinkFR11). Before, caller props were spread after the theme attributes, so passingdata-colorchanged what theme rules saw on the root even though the realcolorprop was unchanged. This holds for the anchor, button and disabled forms. Other callerdata-*attributes still reach the root. (#9157) -
A finger held on a DropdownMenu trigger may drift up to 13px on each axis and still open the menu under every primary pointer, a phone's, a tablet's and a touchscreen laptop's alike, as AST-094 FR29 allows; it cancelled past 10px. No menu, row or trigger reads the pointer query. (#8360)
-
MobileNav's header row grows with its content. It was a fixed one-bar height, so a header taller than one row (a title with a search field under it, or a title that wraps at a larger text size) overflowed the row: the bottom border ran through it and the content ran into the first navigation item. The row is now at least one bar high, so a one-line header looks as before.SideNavin drawer mode, which passes itsheadertoMobileNav, gets the same fix. (#8865) -
Components rendered into a same-origin iframe or a Document Picture-in-Picture window now read the last input in their own document for their keyboard focus rings and keyboard highlights (Slider, MultiSelector, DropdownMenu, ChatComposer, CommandPalette, panel search fields, menus), and for the ring on focus they move themselves. On the page, behavior is unchanged. Where an overlay returns focus on close is unchanged. vjeux wrote the original per-document fix, for Dialog (#8381); this extends it to every reader. (#9148)
-
In the DateInput and DateTimeInput bottom-sheet calendars, a month arrow clicked or tapped as the previous arrow's scroll is ending now brings the calendar to the month its title names in Safari, instead of back to the previous arrow's month. (#8513)
-
In the DateInput and DateTimeInput bottom-sheet calendars, a month arrow no longer sets the calendar paging on by itself in Safari when the page stalls for a moment right after the tap; the calendar moves one month and stays there. (#8513)
-
MultiSelector: the default count text on the trigger (
triggerDisplay="count", for example "2 selected") now comes from the message catalog (@astryx.multiSelector.selectedCount), so it is translated and can use plural forms under any locale.formatValuestill replaces it. (#9020) -
In a SideNavHeading or TopNavHeading menu built with NavHeadingMenu, one ArrowDown or ArrowUp now moves focus one item. It used to move two, skipping every other item, and in a two-item menu ArrowDown never moved focus. (#9019)
-
Fix FileInput to prevent file picker activation and file selection while busy. Clear drag-over highlighting when disabled or busy, and expose the busy trigger as disabled to assistive technologies. (#9167)
-
NumberInput: with
formatValue, tabbing into the field keeps its text selected, so typing replaces the value. Before, the editable text replaced the formatted text after focus and collapsed Tab's selection to the end, so with1,500,000shown, Tab then7gave15000007and committed it on blur. Now1,500,000becomes a fully selected1500000and7replaces it. A click still places the caret where it landed. Fields withoutformatValueare unchanged. No API changes. (#9033) -
Following an
Outlinelink moves focus to the chosen section, as a native in-page link moves the focus starting point, so the next Tab continues from that section instead of jumping back to the top of the page. The section is focused without scrolling, so Outline's own scroll is unchanged (WCAG 2.2 SC 2.4.3 Focus Order). (#9045) -
Dismissing a file picker (Escape, or Cancel in the chooser) inside a
Drawer,MobileNavorLightboxno longer closes it and loses what was in it. Only a close request fired at the surface itself closes it, asDialogandBottomSheetalready do. (#8855) -
A
Dialog,DrawerorBottomSheetthat is open on the server now renders closed until hydration, and opens right after it where it rests, with no entry motion, as anything present on page load does; its later opens and closes animate as before. Before, it painted open over a live page witharia-modal="true"but no modal state: the page under it stayed interactive, a sheet's invisible host could swallow clicks, and assistive technology was told a modality that didn't exist (WCAG 2.2 SC 4.1.2). ABottomSheetSwitcherwhose active sheet is set on the server is covered too. Client-rendered overlays are unchanged. (#9360) -
A determinate ProgressBar keeps moving to its new value while a script runs. The fill animated its
width, which lays out and repaints on the main thread every frame, so a value change stalled for as long as the page ran JavaScript and then jumped. The fill now spans the track and slides into place with a transform that the browser animates on its compositor, in Chromium and in Safari, laying out and painting nothing per frame. Under reduced motion a new value now lands at once, on every pointer. Otherwise duration, easing, colors, marks and right-to-left drawing are unchanged (the fill mirrors with the bar's own direction, so a bar in a left-to-right region of a right-to-left page still fills from the left); the track now clips its fill to the rounded rail in both modes, so below about one track height of fill the leading end follows the track's curve instead of drawing a narrower full-height capsule, and a runtime change of the bar's direction slides the fill across to the other side instead of jumping there. (#8196) -
A disabled
RadioListItemno longer runs a caller'sonClick(spec:AST-085FR2). Before, a radio in a group disabled with adisabledMessagestays focusable througharia-disabledrather than nativedisabled, so the browser did not silence it and the handler still ran on a click on the radio, on Space, and on an arrow key onto it. It still refused to select. An enabled radio is unchanged: itsonClickstill runs. (#9120) -
RadioList: a group disabled with a
disabledMessagegives that reason to each radio as its description (aria-describedby), as well as to the radio group, so a screen reader announces it on the focused radio. A radio's own description comes first. (#9169) -
RadioList and Switch: a required field no longer reads as "invalid entry" to screen readers before the user has answered. Each required radio and a required switch take their invalid state from
status. (#9042) -
useResizable(and every component that uses it, such asSideNav) no longer reads the window size again after each render it commits. That read forced a layout of the whole page inside every commit, so a tab switch under anAppShellwith aSideNavpaid for it on slow devices. The window is still read during render, and every size, bound and reported maximum is unchanged. (#8857) -
A
Tablecolumn-resize handle is named by its column's visible text when the header is a node, such as<span>Amount (EUR)</span>, instead of by the column key. The key remains the fallback only for a header with no text. (#9057) -
useScrollOverflowmeasures again when the container's content changes with the container keeping its size: a child added, removed or resized, or a new gap or padding. Carousel's scroll area, a tab stop only while its content overflows, and its edge buttons and fades follow slides added or removed and a slide that grows; TabList's fades follow its tabs the same way. (#8155) -
SegmentedControl: a control disabled with a
disabledMessagegives that reason to each segment as its description (aria-describedby), as well as to the group, so a screen reader announces it on the segment that has focus. The control also always keeps one Tab stop: the selected segment, even when it is itself disabled, else the first segment not disabled on its own, else the first. (#9176) -
SegmentedControl: a disabled control, or a disabled selected segment, keeps the control's Tab stop. Before, a control disabled without a
disabledMessagehad no Tab stop and ignored the pointer. A selected segment that was itself disabled lost the stop to another segment, and once the stop had moved there, selecting a third segment left it behind, so Tab re-entered on an unchecked segment. Now the selected segment always holds the one Tab stop, announced as disabled (aria-disabled) when it is, and nothing can be selected while disabled. (#9314) -
A disabled
SegmentedControlItemno longer runs a caller'sonClick(spec:AST-085FR2). Before, the segment refused to select but still called the handler on a click, and on Enter or Space for the selected segment of a group disabled with a reason, which stays focusable. This covers a segment disabled by its ownisDisabledand one disabled by its group. An enabled segment is unchanged: itsonClickstill runs first and can still cancel selection withpreventDefault(). (#8989) -
Selector, MultiSelector: pressing another field while the list is open now leaves focus in that field. Before, the list's close handler moved focus back to the Selector's trigger, so the next key went to the closed Selector (a letter could change its value through type-to-select). Escape, picking an option, or a press on nothing focusable still return focus to the trigger, and a MultiSelector with
renderTriggerstill returns focus to the caller's control on every close. (#9018) -
A disabled
SideNavItemstays focusable. Before, it rendered a<button>with the nativedisabledattribute, so Tab skipped it and keyboard and screen-reader users could not reach it, and an item that became disabled while focused dropped focus to the page. Now it exposesaria-disabled="true"and keeps its Tab stop, while a click, Enter or Space still runs noonClick, does not navigate, and does not close the mobile drawer. In a collapsed rail, a disabled item's label tooltip now opens when Tab focuses it and describes the focusable control rather than its row. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2, FR4, FR5). No API changes. (#9102) -
When a collapsible
SideNavcollapses and takes the keyboard focus with it, focus now moves instead of falling to the page, where a keyboard or screen-reader user lost their place (WCAG 2.2 SC 2.4.3). From a row the collapsed rail does not render, such as an item without an icon, focus moves to the collapse toggle, or, with no toggle in the SideNav, to the nearest row still in the rail. On a row the rail keeps, focus stays on that row, and a header or footer control the collapse keeps or re-renders under the same name keeps it. From a header or footer control the collapse removes or replaces under another name, or the resize handle of aresizableSideNav, focus moves to the collapse toggle, or, with none, to the first row. Focus the collapse does not take is not moved. (#9249) -
A
resizableSideNavkeeps its nav and items mounted when it collapses or expands, as a plain one does. Before, every collapse remounted them, so an open nested group closed and item state reset. (#9290) -
SideNav (
footerIcons,topContent), SideNavHeading (icon,headerEndContent), SideNavItem (endContent) and SideNavSection (endContent): a slot whose value is0showed a stray "0" beside its slot, or nothing at all. Now each slot follows the shared presence check. Empty values (null,false,'') render no slot, as an omitted one does.0renders inside its slot as content, including a collapsed rail's icon-only heading and the footer and top areas around it. (#9498) -
Slider: a press on the mark label of two coincident thumbs' shared value now goes to the upper thumb, as a press on the thumbs does, so a press that never moves leaves focus on the same thumb wherever it lands. Before, a press on that label went to the lower thumb, which the upper one covers. (#9184)
-
Slider: a range slider whose two thumbs sit on the same value can be dragged apart again. Only one of the two thumbs can travel toward where the pointer goes: a press on the track beside them picks the thumb on its side, and a press on the thumbs themselves waits for the pointer to move, so the direction of that first movement picks the thumb, which takes the drag's focus, pressed paint and value tooltip. Such a drag always follows the pointer: once the pointer passes the other thumb, the dragged thumb stops against it and the other one takes the drag, so a first step that drifts the wrong way never sticks it. Before, two thumbs at the maximum could not be dragged down, and a press on the track above two coincident thumbs moved neither. (#8151)
-
Slider: a range slider's thumb names ("Minimum value" and "Maximum value", announced to screen readers) now come from the message catalog (
@astryx.slider.minimumThumb,@astryx.slider.maximumThumb), so they follow the app's locale. (#9023) -
Published packages no longer include repository test and benchmark files, reducing install size without changing exports. (#9153)
Also released in
@astryxdesign/richtext,@astryxdesign/cli,@astryxdesign/build,@astryxdesign/theme-butter,@astryxdesign/theme-chocolate,@astryxdesign/theme-gothic,@astryxdesign/theme-matcha,@astryxdesign/theme-neutral,@astryxdesign/theme-stone,@astryxdesign/theme-y2k. -
More slots treat
'',falseandtrueas empty, the way React renders them, instead of drawing an empty wrapper: ChatSystemMessage'sicon, Item'sstartContent,endContentanddescription(so a ListItem or menu row gains no blank lane), and MetadataList'stitleand MetadataListItem'sicon.0still counts as content and shows "0". (#9204) -
DropdownMenuGroup'stitleandBadge'slabelnow use the sharedisRenderablecheck, sonull,undefined,true,falseand''count as rendering nothing, and0still counts as content. ADropdownMenuGroupwithtitle={true}no longer renders an empty heading that names the group.Badgeis unchanged (thanks @vjeux, #8236). Other slots are unchanged. (#9160) -
More slots treat
'',falseandtrueas empty, the way React renders them, instead of drawing an empty wrapper: TreeList'sheader(a header that renders nothing no longer names the tree, so it keeps itsaria-label), TreeList items'startContentandendContent, TopNavMegaMenu'sitemsandfeatured, Table headeraftercontent, and OverflowList's measured overflow indicator.0still counts as content and shows "0". (#9206) -
Many components that show built-in text are smaller. Each one now carries only the English for its own strings instead of every Core string, so a component such as Button loads about 7 KB less (gzip) and a new string elsewhere in Core no longer makes it bigger. Table (and Markdown, which renders it), Chat, PowerSearch, CommandPalette and the date and time inputs still carry every Core string for now. Nothing you see changes: every built-in string still shows the same English, translations and overrides resolve as before, and
useTranslator,InternationalizationContextand@astryxdesign/core/locales/en.generated.jsstill reach every Astryx string. (#9429) -
Table, Markdown, Chat, CommandPalette and the date and time inputs are smaller too. Each now carries only the English for its own strings instead of every Core string, about 7 KB less (gzip) each. PowerSearch still carries every Core string, because a custom operator's
i18nKeycan name any Astryx key. Nothing you see changes: every built-in string shows the same English, and translations and overrides resolve as before. (#9452) -
TextArea: a
startIconof0showed a stray "0" beside the start-icon slot, with no padding reserved for it. The slot and its padding now follow one presence check: empty values (null,false,'') render no slot, and0renders inside the slot like any other content. TextInput uses the same check, with no visible change. (#9443) -
In a clickable
Stepper, a disabledStepnow keeps its button: it stays in the tab order, is announced as unavailable (aria-disabled), and keeps focus if it becomes disabled while focused, but still does not activate. Its description (the reason it is unavailable) describes the button (spec:AST-085FR1, FR4, FR5). Before, it rendered as plain text, so keyboard and screen-reader users could not find it or tell it was unavailable. (#8867) -
A disabled
Switchno longer runs a caller'sonKeyDownoronKeyUp(spec:AST-085FR2). Before, the switch stayed focusable througharia-disabledinstead of nativedisabled, so a key pressed on it still reached those handlers, while itsonClickwas already withheld. It still refused to toggle. An enabled switch is unchanged: its key handlers still run. (#9122) -
Tablenames say what they belong to (WCAG 2.2 SC 4.1.2 and 2.4.6; the APG sortable table pattern underspec:AST-020FR15;spec:AST-025FR12). (#9047)- A sort button was named "Sort by Name", or "Sort by Name, sorted ascending" with "priority 2 of 3" in multi-sort, and that phrase replaced the column header's name. It is now named by its column's text, so the header keeps that name; the direction comes from the header's
aria-sort, and while several columns sort, each button is described by its priority ("Priority 2 of 3"). - The scroll region was a group named "Table" on every table. It now takes the table's own name (its
aria-labelledby, else itsaria-label), and "Table" only for an unnamed table.
- A sort button was named "Sort by Name", or "Sort by Name, sorted ascending" with "priority 2 of 3" in multi-sort, and that phrase replaced the column header's name. It is now named by its column's text, so the header keeps that name; the direction comes from the header's
-
TabList: pressing or arrowing to a tab in a scrolling strip no longer measures the strip inside the press. Focusing the tab already scrolls it into view, so the check that keeps the selected tab whole now runs in the next frame instead of forcing the new selection's style and layout before the press can paint. (#8856)
-
Text and Heading: a long unbroken word, URL or ID in text that isn't truncated now wraps instead of running past its container, so in ordinary flow a phone-width page (320 px) no longer scrolls sideways. Ordinary text lays out exactly as before, and truncation (
maxLines) is unchanged. Inside a flex row, the flex child still needsmin-width: 0. Text and Heading now setoverflow-wrapthemselves, so a container you style withoverflow-wrap: anywhereno longer reaches their text; Astryx's own containers (CommandPaletteEmpty, Toast, FieldStatus, Banner) pass theiranywherewrap through. (#9351) -
TextArea: the
maxLengthcharacter counter now comes from one catalog message (@astryx.textArea.counter), so its numbers use the locale's number format and translators can change the order or separator. In English a limit of 1,000 or more now shows grouped digits (62/2,000instead of62/2000). (#9025) -
TextInput: the clear button no longer shifts inward when the field turns busy. The busy Spinner now sits inward of the clear button, as in Typeahead and Tokenizer, so a user reaching for the button while a search runs does not miss it. No API changes. (#9027)
-
ProgressBar target marks expose their label as an accessible name before the tooltip loads, while keeping keyboard focus and hover/focus tooltips. (#9276)
-
Timestamp keeps a caller's
aria-labelon relative output and a caller'stabIndexwhile its hover card is attached. Before, the full-date name and the card's tab stop overwrote them, so a timestamp named for its context (for example "Posted 5 minutes ago") lost that name, and one taken out of the tab order came back into it. Without a caller value, nothing changes. (#8726) -
Toast: a
Themeinside toast content shown by the fallback viewport (noLayerProvider) now themes only its own subtree. It no longer rewrites the page's<html>theme as if it were the app's rootTheme. First fixed in #5617. (#9253) -
A toast that is closing when a new toast takes its visible place under
maxVisible, or that the same handler pushes out and then dismisses, leaves the stack at once. Before, it came back later as an invisible, empty row that kept the notifications landmark, took one of the visible places, and let F6 move focus to its hidden dismiss button. A secondcollisionBehavior: 'ignore'toast with the sameuniqueID, raised in the same handler as the first, is now dropped unannounced, as it already was once the first had rendered. When a control inside a toast raises toasts and then dismisses its own toast, focus moves to a toast that shows, the new one included, instead of to the notifications region. (#8051) -
Toast: a toast's auto-hide timer stays paused while any pause condition still holds. Before, the pointer leaving the card, focus leaving it, or the window regaining focus resumed the timer even if another condition was still active, so a toast could hide while focus was on its action or the pointer was over it. Focus moving between the toast's own controls also keeps it paused. (#9016)
-
Toast: dismissing the last toast after reaching it with Tab or a click returns focus to where it was before, instead of dropping it to the page. (#9039)
-
A caller's
aria-pressedordata-is-pressedno longer replaces the pressed stateToggleButtonreflects (architecture:public-component-apiINV5,ToggleButtonFR12). Before, caller props were spread last, so passing either attribute made assistive technology and theme rules see a state that did not matchisPressed.ToggleButtonnow ownsaria-pressedand the reflecteddata-is-pressedanddata-elevation. Other callerdata-*attributes still reach the root. (#9159) -
ToggleButtonGroupacceptsclassName,style,id,aria-*,data-*and event handlers, and passes them to its group element. The group keeps its ownrole,aria-labeland theme target. (#9040) -
A disabled
Tokenreflects its state on thetokentheme target (data-disabled) in every structure, so a theme can style it. A disabled link token keeps a focusable link announced as disabled (aria-disabled="true", nohref), instead of becoming plain text with no tab stop. (#9037) -
A
Tokenwith anhrefnow calls a caller'sonClick(architecture:public-component-apiINV5,TokenFR3). Before,onClickwas dropped wheneverhrefmade the token a link, so the handler never ran on a click. This covers the link token and the link token with a remove button, where a plain click on the token surface runs the handler once, a Cmd/Ctrl-click or middle click on the surface opens the link in a new tab without running it, and a click on the Remove button does not run it. Navigation is unchanged, and callingpreventDefaultin the handler still stops it. (#9205) -
The inline
TokenizerClear all button announces "All items removed", once, as the touch sheet does, so a screen reader user learns the selection was emptied.PowerSearch's Clear all announces its own words, "All filters removed". (#9038) -
Tokenizer: the inline create row now takes its
Create "…"label from the@astryx.tokenizer.createmessage, the same one the bottom sheet uses, so it follows the provider's locale instead of always reading in English. Fixes #8931. (#9029) -
A link in a Toolbar (such as a Button with
href) now shares the toolbar's single tab stop. Arrow keys reach it like any other control, and it no longer adds a second Tab stop to the row. (#8921) -
Tooltip: under the default
focusTrigger="auto", keyboard focus opens the tooltip of a trigger that was out of the tab order when the tooltip attached. A Button or IconButton in a Toolbar or ButtonGroup whosetooltipwas set after mount, or any roving-tabindex member rendered withtabindex="-1", now shows its tooltip when the arrow keys reach it. Whether focus counts is decided when it arrives, so a focusable trigger the old check missed, such as a<summary>, opens too. Focus inside a trigger that is not focusable still does not open it. (#9366) -
A click inside an open Tooltip or HoverCard no longer activates the card, row or field around its trigger: a FileInput no longer opens its file picker, and a ClickableCard, SelectableCard, Token, or Item, TreeList or Table row no longer activates. Links and buttons inside a HoverCard keep working. (#9252)
-
TopNavMenuandTopNavMegaMenunow forward theirrefto the trigger button in drawer mode (architecture:public-component-apiINV8). Before, only the desktop popover trigger received the ref, so a caller's ref stayed empty whenever the menu rendered inside the mobile drawer. Apps need no code change; the desktop trigger and every other prop are unchanged. (#8897) -
TopNavMegaMenuFeaturedCard: in right-to-left layouts the link arrow now points toward the inline end (left) instead of backwards. The link's text and accessible name are unchanged. (#9317)
-
TopNav (
heading,startContent,endContent), TopNavHeading (logo,headerEndContent), TopNavMegaMenuItem (icon), TopNavMenu drawer items'iconand NavHeadingMenuItem'sdescription: a slot whose value is0showed a stray "0" beside its slot. Now each slot follows the shared presence check. Empty values (null,false,'') render no slot, as an omitted one does: an emptycenterContentorstartContentno longer switches the bar to its center layout, shows the mobile-bar menu toggle or opens an empty drawer section.0renders inside its slot as content. (#9500) -
Where the primary pointer is fine (a mouse, a trackpad, a touchscreen laptop, a desktop pen tablet), the press feedback controller no longer registers a touch listener: it reads the primary pointer at the first finger or pen press and keeps its
touchcancellistener only while that pointer is coarse. (#8360) -
When a
TreeListrow collapses while keyboard focus is inside its children, for example from anitemschange, focus moves to that row (the outermost one when nested rows collapse together), which then holds the tree's Tab stop unless it is disabled (a disabled row takes focus, and the stop goes to the tree's first enabled row if the collapse removed the row that held it). Before, the focused row disappeared and nothing held focus, so a keyboard or screen-reader user lost their place (WCAG 2.2 SC 2.4.3). Focus anywhere else is not moved. (#9251) -
ChatComposerInput's trigger menu announces its "Searching…" row through Core's shared busy announcement, like other busy controls: once per search, not repeated while typing continues, and not at all when results arrive first. Inside a native modal dialog an app renders without Astryx, it is now heard inside that dialog. (#9154)
-
TypeaheadandTokenizer: after the search source is replaced, pressing ArrowDown on the closed field loads the new source (its focus entries, or the typed query against it) instead of opening the old source's list. (#9166) -
A
TypeaheadorTokenizerdisabled with a reason (isDisabledwithdisabledMessage) no longer opens its results from ArrowDown or a click. ATypeaheaddisabled this way also no longer accepts a pick by Enter or a press, even from a list that was open before it became disabled (aTokenizeralready refused those). Escape or Tab still closes such a list. (#9036) -
Typeahead, Tokenizer, PowerSearch: a disabled field keeps its tab stop. Before, a field disabled without a
disabledMessagerendered a natively disabled input, so Tab skipped it and screen-reader users moving by focus never reached it. Now the input is announced as disabled (aria-disabled), stays read-only, opens and picks nothing, and shows a focus ring under keyboard focus. A search still in flight when the field becomes disabled is dropped: it opens, announces, and spins nothing. A Tokenizer or PowerSearch withtokenOverflowBehavior="unfocusedLayer"and nodisabledMessagekeeps its natively disabled input for now. (#9275) -
Type-to-select ignores accents in every locale. Pressing
dnow reaches "Đào",areaches "Ánh" and "Åsa",nreaches "Ñandú",lreaches "Łódź", andınow reaches "Isparta" and "İzmir". This applies to a closed Selector and to open DropdownMenu, ContextMenu, MultiSelector and TreeList lists, and to the publicuseTypeaheadanduseTreeFocushooks. Before, a key typed without the mark skipped every item that starts with the marked letter. Matching ignores case, the combining accents U+0300–U+036F, the stroked letters đ ł ø ħ ŧ ƀ, and Turkish dotted and dotless i. It works the same way in every locale, because type-to-select is navigation, not sorting. When you type the accented letter itself, an exact match comes first. For Turkish, ı pairs with I and İ with i. A combining mark typed first is ignored; typed after a letter, it is part of that letter. Sorting and search filtering are unchanged. This meetsarchitecture:internationalizationINV17. No API changes. (#8864) -
A press in a Typeahead's or Tokenizer's own text input, or on its buttons, no longer closes its open list. Clicking between two letters to fix a typo moves the caret and keeps the matches showing; a press anywhere else on the page still closes the list, and Escape still does. (#9367)
-
Tokenizer: an open list reloads when the tokens change, so it shows current choices instead of the old ones — a token removed with its button is offered again, and a value set from outside is no longer listed. (#9416) -
With a value, a
Typeahead's Tab stop is the value's token button (WCAG 2.2 SC 2.4.6 and 4.1.2). It was named by the value alone ("Apple"), so screen reader users could not tell which field it belonged to. It is now named by the field label and the value ("Fruit Apple"), and described by the field's description and status. (#9049)
A clickableTokenpassedaria-labelledbyandaria-describedbyto its root, a generic element where they named nothing. It now passes them to its inner button, the element that owns its action. Every other structure keeps them on its root. -
useTheme:
modeis always'light'or'dark'. A mode outsidelight | dark | system, such as a stale persisted preference, now resolves through the OS preference like'system'instead of being returned as is. First fixed in #5617. (#9254) -
Dragging a picker wheel with a mouse now commits the value when the button is released, as a finger's drag does. Before, the wheel committed every row it passed while the button was still down, so in DateInput the calendar behind the month and year wheels changed under the hand. This applies to the wheels in the TimeInput, DateTimeInput and DateInput bottom sheets. Touch, keys and a click on a row are unchanged. (#8483)
Performance
-
Calendar, DateInput and the other date components now reuse one date formatter per locale and format instead of building one for every label they show, so rendering a month (42 day labels) no longer builds 42 formatters. (#8335)
-
useResizablewithautoSaveId(andSideNavwithresizable={{autoSaveId}}) now saves a dragged size tolocalStorageonce, when the drag ends, instead of on every pointer move. Every write reached each other open tab of the site as astorageevent, so one drag sent dozens of them. The storage key, the stored format and the size saved at the end are unchanged, and keyboard steps,resize(),collapse()andexpand()still save at once. (#7782) -
Table: when nothing in a table depends on a row's position, re-sorting it no longer re-renders every row; the rows only move. On a 1,000-row table this is about a tenth of the work a sort click does. This applies to a table that has an
idKey, sets neitherrowCountnorrowIndexStart, and uses neitheruseTableRowIndexnor a plugin that transforms body rows (selection, row expansion, grouped rows, tree data). Those tables still re-render their rows on a sort. (#9234) -
Pages that mount many truncated
TextandHeadingelements at once mount faster. Each one used to measure whether its text overflows while React was still committing the page, so every measurement forced its own style and layout pass; they now measure right after the commit, all of them together, so the page reads layout once. The ellipsis, the line clamp and the full-text tooltip are unchanged. (#9013)
Documentation
-
Source comments in the BottomSheet gesture and mobile keyboard code are shorter and explain only non-obvious reasons. Nothing a consumer imports or renders changes. (#9524)
-
Source comments in BottomSheet and BottomSheetSwitcher are shorter and explain only non-obvious reasons. Nothing a consumer imports or renders changes. (#9523)
-
Component specs are no longer shipped inside the npm package; they live in the repo at
docs/specs/components/, one folder per component, beside each platform's spec.astryx swizzleno longer copies the component's spec file into your project. Nothing a consumer imports or renders changes. (#9007) -
FileInput's
statusVariantdocs say that dropzone mode does not supportattached; usedetachedortooltipthere. Rendering is unchanged in this release. From the next minor release, a dropzone resolvesattachedtodetachedand defaults to it. (#9258) -
The gesture arena's and the gesture host's internal doc comments sit on the declarations they describe. (#9114)
-
Grid's
alignandjustifydocs no longer claim a'stretch'default. Unset, they leave the browser default,normal, which stretches items that have no natural size or aspect ratio. Rendering is unchanged. (#9347) -
GridSpan: document the
xstyle,className,style, andrefprops, including that a setcolumnsorrowsreplaces the same grid placement instyle. (#9312) -
Heading: document the
xstyle,className,style, andrefprops, including that amaxLinesabove 1 replaces anyWebkitLineClamppassed instyle. (#9328) -
More source comments in the core hooks are shorter and explain only non-obvious reasons. Nothing a consumer imports or renders changes. (#9520)
-
Source comments in the core hooks are shorter and explain only non-obvious reasons. A few hook doc comments are reworded. Nothing a consumer imports or renders changes. (#9514)
-
HoverCard: document the
xstyle,className,style, andisOpenprops in every doc language, say that a text trigger is wrapped for you and an element trigger needs no ref, and say thathasHoverIndicationapplies to text triggers only. (#9536) -
HStack: say that items follow the writing direction (right to left in RTL), that an explicit
hAlignorvAlignwins over itsjustifyoralignalias, and document theclassName,style, andrefprops. (#9540) -
Recorded the component contract updates completed in this release.
Covered records: #8783, #8822, #8878, #9050, #9058, #9062, #9081, #9083, #9090, #9096, #9100, #9101, #9103, #9105, #9108, #9111, #9112, #9113, #9117, #9118, #9124, #9125, #9127, #9128, #9129, #9131, #9132, #9133, #9135, #9158, #9175. -
Stack, VStack, and StackItem: say that a horizontal stack follows the writing direction (right to left in RTL), and document the
className,style, andrefprops, plusxstyleon VStack and StackItem. (#9583) -
More source comments in the core utilities are shorter and explain only non-obvious reasons. Nothing a consumer imports or renders changes. (#9527)
-
Source comments in ten core utility files are shorter and explain only non-obvious reasons. Nothing a consumer imports or renders changes. (#9522)
Other Changes
-
Internal: the touch presentations' animator rechecks a finished animation's end in frame callbacks, starting a frame before it and looking again while up to two frames remain, instead of only on timers that a loaded page can run a frame or two late, so the frame that reaches the curve's end drops the animation before it paints, unless the timer that starts those rechecks itself runs more than a frame late. The timers remain for a page that draws no frames. Not exported from the package entry point. (#9285)
-
Internal: the touch presentations' animator keeps each animation's frame-callback recheck of its curve's end its own, so a recheck still waiting for a replaced animation no longer stands in for the next animation's, which then fell back to its timer. Not exported from the package entry point. (#9325)
-
Internal: the touch presentations' animator starts a call from rest, made in a task, at the first frame after it when the browser has not yet told the page that start (Chromium reports a compositor's start a frame or more later), so a retarget or a rebase in that window continues from the value on screen instead of replaying the curve from its start. A call made in a frame callback, or one whose first frame comes after a block, keeps the browser's start. Not exported from the package entry point. (#9255)
-
AppShell drops an unmount Effect that repeated the release main's ref already performs; main's overflow observation and keyboard delegation are still released on unmount. No behavior changes. (#9262)
-
Internal: the gesture recognizers and the menu press model share one guard for the browser's click after a gesture that already acted, swallowing it for 400ms or until the next press. Keyboard and assistive-technology clicks (
detail0) always pass. (#8360) -
Internal: the touch motion tables register the three context-menu springs spec:AST-094 FR4 names (
springs.contextMenuLift,springs.contextMenuDismissandsprings.contextMenuMorph, a new row at response 0.3 s and damping ratio 0.8) as internal motion roles, so the registered roles are FR4's again. Nothing public changes: themes do not set motion roles, and no shipped component reads these springs yet. (#9432) -
FileInput's source is formatted with the repository's Prettier settings. No behavior changes. (#9263)
-
Internal: a gesture that cancels itself on a finger's move (a long press dragged past its tolerance) keeps that finger claimed until it lifts, so the page never takes the drag over midway; a resting finger is still given back when its gesture is cancelled. Not exported from the package entry point. (#8076)
-
Internal: touch-action derivation, the native scroll probe and haptics for the gesture system. Not exported from the package entry point; no component uses them yet. (#8071)
-
Internal: the gesture hooks call nothing back after unmount;
usePressTrackerbrakes with the host by default and keeps one tracker, so an option change or a new ref never drops a press in progress; the recognizer's arena plumbing isprotected. Not exported from the package entry point. (#8360) -
Internal: gesture host fixes from review. A claimed pen holds only its own stylus touches, and a finger is matched to its scroller, its target and a moving element along the flat tree, through slots and shadow roots. Not exported from the package entry point. (#8360)
-
Internal: the gesture host becomes the one document-level touch owner: the finger count, touch gates, and a kept press for continuous-tracking controls, whose element gets
touch-action: manipulation. A scroll lock's page hold and the finger-scroll watch keep their own listeners and ask the host only about the touches it owns. A second finger fails a one-finger pan that has not claimed, so the page can pinch. A scroll-edge pan holds a lone finger from the first move that pulls away from an edge every scroller under it is at, so those moves are cancelled before it begins; with a second finger anywhere on the screen the page keeps its pinch. A press tracker whose hold acts (a stepper's hold-repeat) can bring a selection lock for its presses, as a recognizer can. Internal, for the touch components that adopt them; not exported from the package entry point. (#8360) -
Internal: the gesture system's DOM host (claims, click suppression, the browser's takeover, the pointer behind a contact), serving a mouse, a pen and a finger alike, with no page listener while idle where the primary pointer is fine. Not exported from the package entry point; no component uses it yet. (#8071)
-
Internal: UIControl press tracking with control and cell profiles and the gesture hooks. Not exported from the package entry point. (#8076)
-
Internal: the gesture system's README for component authors, with its browser proof in Chromium and WebKit. (#8076)
-
Internal: gesture recognizer and arena fixes from review; a pan claims nothing before it begins at 10 pt; one velocity tracker for every gesture (
spec:AST-100: UIKit's measured blend, a scrolling surface's release through the pan'sscrollVelocity(), and FR2's release rules). Not exported from the package entry point. (#8360) -
Internal: swipe, pinch and screen-edge pan gesture recognizers. Not exported from the package entry point; no component uses them yet. (#8061)
-
Internal: a recognizer created with
claimsTouches: falseis a watcher: passive listeners only, simultaneous with every recognizer, and it follows a touch the browser takes for a scroll to the lift. Not exported from the package entry point. (#8360) -
Internal: with the gesture host serving every pointer, a press tracker takes a mouse press as a press, painting at once with no scroll brake (AST-094 FR11); a finger's or a pen's hold that does something keeps text unselected under any primary pointer, a touchscreen laptop's included, while a mouse keeps its released behavior (FR41); a finger is read once where the browser sends Touch Events without exposing
ontouchstart; andperEventPointer, from before FR43, is accepted and does nothing. Not exported from the package entry point. (#8360) -
Internal: the gesture recognizers hear page-wide input through the same shared stream on the window's capture phase, so an app's window-capture
stopPropagation, or a document-capturestopImmediatePropagationregistered before Core, no longer hides a touch from them; a recognizer that must claim a touch mid-gesture still needs the touch to reach its element. Each event type's listener is passive unless a subscriber cancels it (the gesture host'stouchendandcontextmenuwhile a claiming recognizer or press tracker is attached, the page hold'stouchmovewhile it holds, and the click guard'sclickwhile it is armed, and from the menu press model's first arm on), so a page of pressables registers no listener that can hold a scroll. (#8360) -
Internal: ChatLayout drops a scrollbar style rule whose condition nothing ever set, and Popover, Table and the press feedback controller each read an internal marker through one shared name instead of a second hand-typed copy. No visible or behavioral change. (#9256)
-
Item, Token and ChatComposer no longer run their own check for presses inside an open Tooltip or HoverCard; the layer root already keeps those presses from them. No behavior changes. (#9531)
-
Internal:
useLongPresstakes its default duration and tolerance, 500ms and 10px on either axis, from the same source as the long-press gesture recognizer, so ContextMenu's long press behaves as before. A finger held on a DropdownMenu trigger passes its own 13px allowance instead (see the trigger drift fix). (#8360) -
A bottom-sheet DropdownMenu's internal sheet preload reports a failed load in its result, with the loader's error, instead of catching it with an empty handler. Nothing changes for callers: a failed preload still raises no unhandled rejection, and the next open loads the sheet's actions. (#9069)
-
Restore a Tall BottomSheet's internal position after keyboard dismissal. (#8742)
-
Internal: the announcement routing inside open modals watches each dialog's
open,inertandaria-hiddenthrough Core's shared MutationObserver, so any number of open modals use one observer instead of one each. Routing is unchanged. (#9151) -
The date picker's month scroller attaches and removes its four input listeners directly, each with one shared options object, instead of looping over an array of event names and creating an options object on every attach. Behavior is unchanged. The scroller and its listeners come from @vjeux's month scroller fix. (#9146)
-
Internal: the motion roles test's header and the motion README's files table name the internal motion roles, exactly the ones
spec:AST-094FR4 lists. Documentation only; no behavior change. (#8502) -
MultiSelector's source is formatted with the repository's Prettier settings. No behavior changes. (#9247)
-
Internal: when Tab moves focus into a NumberInput with
formatValue, the focus handler itself puts the editable text in the input and selects it, instead of a layout effect that waited for the next render. Behavior is unchanged: typing still replaces the whole number. (#9150) -
An internal
usePresentation/readPresentationresolves a component'spresentationprop into the surface to render and whether its touch input modes apply, keeping an omitted value distinct from an explicit'popover'so a caller's choice always wins over a touch default. Not exported from the package entry point. (#8298) -
On iOS, a touch on an element the compositor animator is moving reaches what is drawn: the animator reports each moving element's offset from its layout box, and the gesture host sends the touch, press bounds and the tap's click there instead of to the layout position iOS WebKit hit-tests. (#8360)
-
Internal: under Reduce Motion, a call that names the opacity a waiting dip returns to, with no travel, joins that dip instead of fading the element out a second time, and
reducedMotionFade()resolves the cross-fade's curve as a registered motion role where it plays. Not exported from the package entry point. (#8076) -
useResizable's size parsing, bound resolution, clamping and snapping, saved-size storage and content-box measurement move unchanged into one internal module, so the factory that follows resolves, clamps, snaps and saves exactly as the hook does. No behavior changes. (#9197) -
Tokenizerhands focus between its controls from callback refs and the Clear all confirmation's close handler, not from effects, asarchitecture:react-component-runtimeINV2 and INV6 require. Where focus lands is unchanged. The presentation swap and the sheet are internal (not yet public). Thanks @imdreamrunner (#7977). (#9162) -
Internal: the gesture host applies a recognizer's own
selectionLockto that recognizer's contact and imports no lock itself; a long press brings one only when it has a hold (aminimumPressDurationabove 0), andselectionLock: nullopts out. Not exported from the package entry point. (#8360) -
Internal: core's touch style keys stay literal, and a test pins every one to the touch presentation resolver's constants (
touchKeys, internal to core). An importeddefineConstskey compiles to a different StyleX priority than the same literal. No public export and no style changes. (#8331) -
Internal: the touch presentations' animator drives a pseudo-element such as a dialog's ::backdrop: a static filling animation holds its value after a curve ends and after
set, a custom property on its host promotes it, and a Reduce Motion dip borrows and hands back the pseudo-element's own opacity. Not exported from the package entry point. (#8522) -
Internal: the gesture hooks' attach-and-release lifecycle,
useAttachment, moves tohooks/(not exported), where other hooks can use it, anduseFingerScrollkeeps its finger-scroll watch through it instead of its own copy of that lifecycle. The gesture-sync helpers stay ingestures/gestureSync.ts. No behavior changes. (#9414) -
Internal:
useFingerScroll(scroller)tells a finger's scroll from the program's, and the gestures README gains a guide to migrating a raw-touch drag onto the recognizers. Internal to the touch components: not exported from the package entry point or the gestures barrel. (#8360)
@astryxdesign/richtext
Fixes
- RichTextEditor's
toolbarnow treats''as empty, as it already treatednull,undefinedand booleans, sotoolbar=""no longer adds the toolbar's top border to the editing surface. RichTextEditorToolbar'sendContenttreats'',falseandtrueas empty, so it no longer adds a trailing separator.0still counts as content and shows "0". (#9265)
Other Changes
- RichTextEditor:
statusVariantnames'tooltip'in its own type, so it keeps acceptingstatusVariant="tooltip"after FieldStatus drops its deprecatedtooltipvariant in the next minor release. No behavior change. (#9196)
@astryxdesign/cli
New Features
- When a template imports Astryx's docs-only demo content,
astryx template <name> <path>,astryx template <name>,astryx template <name> --skeleton, andastryx component <Name> --showcasereplace each demo-content element with a marked<Text>Card content</Text>placeholder and remove the demo-content import, so the code they hand out never imports a module that only Astryx's own previews have. The placeholder uses the file's own AstryxTextimport when that import is in scope, and otherwise importsText, under an alias when the file already uses that name.template.copyandtemplate.showgaindemoContentReplaced(0 when the template carried none), their text output says how many elements became placeholders, and thecomponentsthattemplate.showandtemplate.skeletonlist are the components of the returned source. No shipped template uses demo content yet, so every current template is copied, shown, and outlined exactly as before. The docsite's shadcn install of a block or page applies the same replacement and also replaces demo media, each with a marked placeholder: a placeholder image for an image and adata:,placeholder-video-add-your-ownsource for a video. The item's description says how many references and elements were replaced. The adjacent.astryx/<item>.jsonreceipt keeps its current shape, so every releasedastryx upgradestill reads it. (#9430)
Fixes
-
BottomSheet checklist examples use CheckboxList so the whole row toggles, not just the label (#9533)
-
The motion guide now says that under Reduce Motion, components cross-fade under a finger and change at once under a mouse, and that a value changing in place, such as a progress fill, takes its new value at once under any pointer (design:reduced-motion DR1–DR3). (#8615)
Performance
-
Calling
integrationComponentConflicts()orintegrationCheck()from@astryxdesign/cli/apimore than once in one process now reads each TypeScript file a package'stsconfig.jsonincludes once while the file is unchanged, instead of on every call. A singleastryx doctor integration componentsorastryx integration checkrun is unchanged. (#9422) -
search()shares a catalog gather that is still running: searches that start together in one long-running process, such as a docs site's search right after it starts, now gather once instead of once each (#9460)
Documentation
-
A new
useCollator — Locale-aware Name Sortexample block sorts a list of names with the compare function fromuseCollator: accented and lowercase names land where a reader expects, and switching the provider locale to Swedish moves Å and Ö after Z. Copy it withastryx template useCollatorHookUsage <path>. (#9510) -
A new
usePressFeedback — Pressable Cardexample block shows the hook on an Astryx Card: the hook's marker and theinteractionOverlayStyles.backgroundImageoverlay go straight on the Card, so pressing the card darkens it the way every Astryx pressable does, under a finger or a mouse (Enter or Space flips it), andfocusOutlineStyles.focusVisiblegives keyboard users the shared Astryx focus ring on it. Copy it withastryx template usePressFeedbackHookUsage <path>; the docs-only playing card it shows becomes a<Text>placeholder for your own content. (#9431) -
A new
useToast — Settings Savedexample block calls the function fromuseToaston a settings form: Save shows a "Settings saved" toast with an Undo action, itsuniqueIDmakes a second Save replace the toast instead of stacking another, and a failed save shows an error toast instead. Copy it withastryx template useToastHookUsage <path>. (#9512) -
A new
useTranslator — Load More Footerexample block gets a list footer's "Load more" label and its "Showing 3 of 9" count from the functionuseTranslatorreturns. The app's own message keys are supplied per locale throughInternationalizationProvider, so switching the provider to French changes both strings. Copy it withastryx template useTranslatorHookUsage <path>. (#9573)
Other Changes
- Preserved the v0.7.5 upgrade codemod registry when the release outputs returned to main (#9086), so the v0.7.6 CLI continues to offer that migration.
@astryxdesign/build
New Features
- A production build with
astryxStylexwarns when its stylesheet reads a StyleX-generated custom property that nothing declares, naming the variable and the rule that reads it. It checks the class-name prefixes the build uses,stylexOverrides.classNamePrefixincluded, and never reports a custom property an app declares in its own CSS. (#8075)
Fixes
astryxStylexresolvesdefineConstsvalues read from another file. With the{stylexOptions}form (the one Storybook uses), a file that read only constants from a.stylex.tsmodule lost that import once StyleX compiled it, so the constants never reached the CSS: a constant used as a media-query key failed the build ("Invalid empty selector") and one used as a value shipped as a custom property nothing declares. In either form, a constant defined on the other side of the layer split, or in an Astryx package (compiled with the library class-name prefix) and read from an app file (compiled with its own), stayed unresolved. (#8075)
Documentation
- The Next.js setup in the README says that its Babel config turns off SWC, which
next/fontneeds, so a freshcreate-next-applayout must drop itsnext/fontimport before the webpack source build will compile. (#9439)
Contributors
Thanks to everyone who contributed to this release:
@AKnassa @cixzhang @czarandy @divyanshudhruv @duytbp @ernestt @harjothkhara @HelloOjasMutreja @humbertovirtudes @imdreamrunner @korkt-kim @kyu-rong @MannXo @nynexman4464 @parinith-web @potatowagon @rubyycheung @vjeux
Full Changelog: v0.7.5...v0.7.6
详细ChangeLogv0.7.5
2026年10月31日
Astryx 0.7.5 is a patch release. Every @astryxdesign/* package ships at 0.7.5, and there are no breaking changes.
OLD_VERSION=0.7.4 # the Core version your project uses today
npm install @astryxdesign/core@0.7.5 @astryxdesign/cli@0.7.5 # plus every other @astryxdesign/* package you use, at 0.7.5
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .Highlights
Status colors you can read
Status text, icons, and input borders now use readable shades on the page, and Info is a status of its own instead of borrowing your accent. Text on dark-mode error fills reaches 4.5:1 contrast. In Tailwind, text-<status> and border-<status> now use the readable shades; write text-[var(--color-warning)] to keep the old fill color on text.
| Before · 0.7.4 | After · 0.7.5 |
|---|---|
![]() |
![]() |
![]() |
![]() |
Bottom sheets that stack and hand off
A sheet opened over another sheet now stacks on top. The sheet underneath keeps its state, only one backdrop dims the page, and Escape or a swipe closes just the top sheet. When one sheet closes as another opens, the new one replaces it smoothly, so a multi-step flow can be plain BottomSheets. BottomSheetSwitcher is deprecated but keeps working; the Core changelog has the four-step migration.
- <BottomSheetSwitcher activeSheet={step} onActiveSheetChange={setStep}>
- <BottomSheet sheetId="shipping" label="Shipping">…</BottomSheet>
- <BottomSheet sheetId="payment" label="Payment">…</BottomSheet>
- </BottomSheetSwitcher>
+ <BottomSheet isOpen={step === 'shipping'} onOpenChange={isOpen => !isOpen && setStep(s => (s === 'shipping' ? null : s))} label="Shipping">…</BottomSheet>
+ <BottomSheet isOpen={step === 'payment'} onOpenChange={isOpen => !isOpen && setStep(s => (s === 'payment' ? null : s))} label="Payment">…</BottomSheet>Popovers that become sheets on phones
Popover takes presentation: 'popover', 'bottom-sheet', or 'adaptive', which uses a sheet on phones. Adaptive menus and selectors now share one rule for "phone-sized": narrower than the theme's md breakpoint (768px by default) or shorter than 500px. On touch screens, a phone in landscape now gets the sheet, and a screen exactly 768px wide keeps the popover.
- <Popover label="Settings" content={<SettingsContent />}>
+ <Popover label="Settings" content={<SettingsContent />} presentation="adaptive">
<Button label="Settings" />
</Popover>CodeBlock: more languages, your own controls, and a Copy button that stays clear
C, C++, SQL, Rust, Kotlin, Swift, and Go are highlighted with no setup. Nine more languages load one at a time, and you can define your own with createCodeLanguage. endContent places your own buttons next to Copy. In a block without a header, Copy gets its own column and no longer covers code.
+ import {createCodeLanguage} from '@astryxdesign/core/CodeBlock';
+ import {graphql} from '@astryxdesign/core/CodeBlock/languages/graphql';
- <CodeBlock code={source} language="zig" tokenizer={tokenize} />
+ <CodeBlock code={source} language={createCodeLanguage({name: 'zig', identifiers: ['zig'], tokenize})} />
+ <CodeBlock code={query} language={graphql} />
+ <CodeBlock code="pnpm astryx init" hasLanguageLabel={false} endContent={<Button label="Run in terminal" />} />| Before · 0.7.4 | After · 0.7.5 |
|---|---|
![]() |
![]() |
Smooth expand and collapse
This is opt-in: pass a useAnimatedLayout handle to Collapsible, TreeList, or Table row expansion as animatedLayout, and the content around the change glides into place instead of jumping. Reduce Motion is respected.
+ const containerRef = useRef(null);
+ const animatedLayout = useAnimatedLayout({containerRef}); // from '@astryxdesign/core/hooks'
- <div>
- <Collapsible trigger="Advanced settings">…</Collapsible>
+ <div ref={containerRef}>
+ <Collapsible trigger="Advanced settings" animatedLayout={animatedLayout}>…</Collapsible>
</div>Lists and trees line up
Numbered markers end on one edge, and multi-digit numbers stay on one line, so the periods after 10, 11, and 12 line up with those after 1 to 9. TreeList chevrons and guide lines sit 4px closer to the edge, with more room before the label.
| Before · 0.7.4 | After · 0.7.5 |
|---|---|
![]() |
![]() |
![]() |
![]() |
Themes choose icon artwork and size
A theme icon can pick its artwork by size and by variant, as in <Icon icon="info" variant="filled" />, and themes can set the real glyph size of each Icon size. Built themes keep all of this. Themes that don't use these features look the same as before.
defineTheme({
+ iconVariants: ['filled'],
icons: {
- info: <InfoIcon />,
+ info: ({variant}) => (variant === 'filled' ? <InfoFilledIcon /> : <InfoIcon />),
},
});
- <Icon icon="info" />
+ <Icon icon="info" variant="filled" />Try it: render a page to one HTML file
astryx experimental render <page> turns a page built with Astryx into one self-contained HTML file that runs no scripts and loads nothing from the network, and --reverse turns the file back into source. Building an icon-set package from an icon library also takes fewer steps. Experimental commands may change in any patch release.
Fixes
102 fixes, mostly for keyboard, screen-reader, and touch users:
- Reachable and announced: disabled TextInput, TextArea, and NumberInput fields stay in the tab order. Your
aria-labelledbyandaria-describedbyare kept by TextInput, NumberInput, Selector, MultiSelector, Slider, and SegmentedControl. Announcements made inside dialogs and sheets are now spoken, and messages announced together are no longer dropped. - Touch: the phone keyboard opens on the first tap of a clear button or search field. Tooltips open only on a real tap. Pinch-zoom works over swipeable rows and date pickers. A long-press ContextMenu stays open when the finger lifts.
- Layers and motion: toasts stay usable above open bottom sheets. Tall tooltips no longer cover their trigger. Popovers no longer capture Tab presses from the rest of the page. Reduce Motion now gives touch users a short fade instead of slides.
- Faster: pages with many closed popovers load faster, and scrolling does less work per frame.
- CLI:
astryx upgradefinishes and lists anything it can't migrate safely, lists the files it already changed when it fails, and skips symlinked dependency folders.
Breaking changes
None. No package, entry point, or exported name was removed. BottomSheetSwitcher, BottomSheet's sheetId, and CodeBlock's tokenizer prop are deprecated but still work.
Changelogs
core · cli · richtext · build · theme-butter · theme-chocolate · theme-gothic · theme-matcha · theme-neutral · theme-stone · theme-y2k
The images are real renders of the same scene, built from the 0.7.4 source and from 0.7.5 in Chrome with the default theme. The two animations are recorded from the project's own Storybook examples at 0.7.5.
Contributors
Thanks to everyone who contributed to this release:
@aashish254 @cixzhang @ejhammond @ernestt @harjothkhara @HelloOjasMutreja @imdreamrunner @josephfarina @kentonquatman @korkt-kim @kyu-rong @light-merlin-dark @nbozidarevic @nynexman4464 @parinith-web @rubyycheung @thewebartisan7 @vjeux
Full Changelog: v0.7.4...v0.7.5
详细ChangeLogv0.7.4
2026年10月24日
Astryx 0.7.4 — every published @astryxdesign/* package ships at this version.
OLD_VERSION=0.7.3 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.4 @astryxdesign/cli@0.7.4 # plus every other published @astryxdesign/* package you use, at 0.7.4
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New features
BottomSheetSwitchernow gives every step its own native<dialog>while preserving one scrim, focus containment, scroll locking, Escape handling, and focus return. The public props and defaults are unchanged. Its forwardedrefnow follows the dialog that hosts the active step. (#7720)
Fixes
-
Busy controls now announce “Loading” once through the shared polite announcement channel instead of competing with a second live Spinner. This covers
TextInput,TextArea,Selector,MultiSelector,CheckboxInput,CommandPalette,DateInput,DateRangeInput,DateTimeInput,TimeInput,FileInput,DropdownMenuSubMenu,Thumbnail,ChatMessageList,ComplexSelector,Typeahead,Tokenizer, andBaseTypeahead. Announcements made inside an open modal stay inside that modal. (#7920, #7930, #7939, #7942, #7948, #7950, #7954, #7956) -
ChatComposerInputannounces a trigger menu’s visible loading state once, while cached results that arrive before the loading row appears stay silent. (#7900) -
When a focused Carousel arrow reaches the end and becomes unavailable, focus moves to the scroll area without undoing the scroll. (#7926)
-
CommandPaletteItemexposes highlighted, selected, and disabled states on its theme target:.astryx-command-palette-item[data-highlighted] { /* … */ } .astryx-command-palette-item[data-selected] { /* … */ } .astryx-command-palette-item[data-disabled] { /* … */ }
Rendering, semantics, and props are unchanged. (#7967)
-
A busy
DateInputkeeps its ordinary appearance and shows its Spinner; only a disabled field is dimmed. (#7968) -
Selector, DropdownMenu, and ContextMenu options inside open, closed, or nested shadow roots now commit when clicked. (#7914)
-
useTypeaheadclears its pending type buffer when its component unmounts or becomes hidden, leaving no timer behind and restoring with an empty buffer. (#7938)
Documentation
BottomSheetSwitcheranatomy now describes the per-step dialog structure. (#7720)
@astryxdesign/cli
Experimental icon sets
Integrations can ship an icon set, projects can select one, agents can find icons by meaning, and copied templates can replace declared icons with the selected set. The feature is isolated under astryx experimental and does not change stable search results or template output unless a project opts in with experimental.iconSet. (#7759)
astryx experimental icon --list
astryx experimental icon "delete"
astryx experimental icon use <set>New features
- Docs, schema fields, and enum values can declare
stability: 'experimental'. The CLI labels experimental commands, keeps experimental docs out of stable search, and tells integration authors when an older supported CLI would drop the descriptor. (#7759) - Docs can render commands for each reader’s package manager with
{@command …},{@pm …}, and{@pm-only …}tokens.integration check --nextcan validate them before their findings become warnings in the next minor release. (#7868) - An integration doc can
replaceorextendan existing guide by route and place a sectionbeforeorafteranother section. Reads name the contributing package, and unresolved placement is reported as a non-failing note. (#7936) astryx doctor --built <path>checks a finished project, output folder, or HTML file for Astryx use and reports source-level purity issues when source is available. It reads files only and does not execute them. (#7886)astryx theme palette generatereceipts now identify the generator and candidate format without changing existing receipt fields. (#7678)- Integration validation reports what examples need to run wherever they are shown, including package availability, exported subpaths, props, browser-only dependencies, assets, and runnable code. These are notes today and become strict warnings in the next minor. (#7891)
- Project agent docs written by
astryx initnow tell agents to runastryx doctor --builtbefore delivering a build when the installed CLI supports it. (#7944)
Fixes
astryx doctor --builtno longer counts type-only imports as shipped Astryx use. (#7945)astryx discoverresults name their source package, and typo-tolerant lookup now matchesastryx search. (#7147)astryx searchfinds family members by their spelled-out names, lists representative members for a family-name query, and orders tied results by fit instead of alphabetically. (#7927, #7955, #7959)astryx integration verifynow reads the tarball filename npm 8 actually writes for scoped packages. (#7933)
Documentation
- Four block templates now say what they show and when to use them. (#7963)
- BottomSheetSwitcher templates describe the new per-step native dialogs. (#7720)
- The CommandPaletteItem showcase describes its rendered command and shortcut rows. (#7967)
- Lab ListInput showcase blocks are discoverable as templates. (#7953)
- Six guide titles now use plainer, consistent sentence case without changing their routes. (#7934)
Themes
Butter, Gothic, Matcha, Stone, and Y2K move their maintained light and dark themes to reviewed named palette stops. Public compatibility palette objects and metadata stay available, and apps can preserve the previous appearance by overriding the affected color, syntax, shadow, and component tokens. The CLI templates ship the same mappings. (#7669, #7670, #7671, #7672, #7675)
Contributors
Thanks to everyone who contributed to this release:
@cixzhang @ernestt @HelloOjasMutreja @imdreamrunner @josephfarina @rubyycheung @vjeux
Full Changelog: v0.7.3...v0.7.4
详细ChangeLogv0.7.3
2026年10月23日
Astryx 0.7.3 — every published @astryxdesign/* package ships at this version.
OLD_VERSION=0.7.2 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.3 @astryxdesign/cli@0.7.3 # plus every other published @astryxdesign/* package you use, at 0.7.3
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New Features
-
DropdownMenuSubMenutakesheaderandfooter, as the rootDropdownMenudoes, so a sub-menu can have a filter field above its rows, or an action such as "New folder" below them, outside the sub-menu's menu itself. With either, the sub-menu's surface (the flyout, or the drilled-in view on a phone) is a modal dialog named by its row: the row saysaria-haspopup="dialog", Tab and Shift+Tab walk the header, the rows and the footer and wrap, Escape returns to the row, and a pointer leaving the flyout closes it only once focus leaves too. AContextMenudoes not show a sub-menu'sheaderorfooter. Without them nothing changes.<DropdownMenuSubMenu label="Move to" + header={<TextInput label="Filter folders" isLabelHidden value={query} onChange={setQuery} />} + footer={<Button label="New folder" onClick={createFolder} />} > <DropdownMenuItem label="Folder A" onClick={() => move('a')} /> </DropdownMenuSubMenu>
Fixes
-
TimeInput's arrow keys ignore a fractional increment instead of writing a malformed time such as "14:30.5":adjustTimereturns the time unchanged for a fractional minute delta (#7823). -
Screen readers now announce a
Buttonthat is first rendered withisLoading(for example after a remount). Its visually hidden loading live region mounts empty and gets "Loading" on the next frame, because screen readers skip a live region that already holds its text when it appears. A Button that becomes loading after it mounts is unchanged, and a Button mounted idle does no extra render. -
ChatComposer: screen readers now announce a status message, errors assertively and warnings politely, once per occasion: a rerender does not repeat it, and a status that clears and then returns is announced again. Before, the status bar mounted as arole="alert"orrole="status"region already holding its text, which screen readers often skip. The message now goes through the shared announcement channel, and the visible bar no longer carries a live role. No API changes. -
ChatSystemMessage: a new chat notice inside aChatMessageListnow has one live region announcing it, the list's polite log, instead of also being a second live region nested in it (WCAG 2.2 SC 4.1.3). Its root no longer forcesrole="status", in either variant, so date and divider rows are no longer presented as status messages, and arolepassed to the component reaches its root. Tests that found a system message by thestatusrole should query it by its text instead. -
Keyboard and screen-reader users can now reach disabled
CheckboxInput,CheckboxListitems,Switch,SliderandFileInput, and hear that they are disabled. Before, they rendered the nativedisabledattribute unless adisabledMessagewas set, so Tab skipped them. Now every disabled control exposesaria-disabled="true"and keeps the Tab stop it has when enabled, while toggling, selecting, dragging, opening the file picker and anyonClickstay blocked, and its value is still left out of form submission. A focused disabled checkbox, switch, slider thumb or file input shows its keyboard focus indicator. No API changes. -
The agent guide that global mode writes to the home folder now tells agents to deliver a page built with Astryx, not only how to find things. Before, agents that found the right template could still build the page with a tool that cannot install packages and deliver a page with no Astryx in it. The guide now tells agents to work in a project folder (creating one if there is none); add
@astryxdesign/coreand@astryxdesign/clito a new project or one without Core, or, in a project that already has@astryxdesign/core, the CLI at the same version; runastryx initthere; follow the same template-first workflow and self-check the project agent docs give; and end by building the project and delivering that build. The guide stays version-free and names only commands every release keeps. The project agent docs are unchanged, and so is what@astryxdesign/core's install script prints: its copy of the shared agent-docs file only gains the same workflow lines.Also released in
@astryxdesign/cli. -
Keyboard and screen-reader users can now reach a disabled
ComplexSelectorand hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the nativedisabledattribute, so Tab skipped it and a focused trigger lost focus when disabled; now it exposesaria-disabled="true", keeps focus, shows its keyboard focus outline, and still opens nothing. A press or key on it reaches no handler: not the toggle, not a caller'sonClickoronKeyDown, and not an ancestor's click handler. -
Keyboard and screen-reader users can now reach a disabled
Calendarday orPaginationdot and hear that it is disabled. DisabledTreeListrows' expand toggle and action button, disabledPaginationdots and disabledCalendardays exposearia-disabled="true"instead of the nativedisabledattribute, while clicks, Enter and Space still do nothing and arrow keys still skip disabled days as before. No API changes. -
DateInput: keyboard and screen-reader users can now reach a disabled date field and hear that it is disabled. A disabled or busy field no longer renders nativedisabled: its input and calendar button keep their place in the focus order and exposearia-disabled, while typing and opening stay blocked, and a focused disabled field shows its focus ring. Tests that query a disabled DateInput withtoBeDisabled()or:disabledshould checkaria-disabled="true"instead. -
DateRangeInput: keyboard and screen-reader users can now reach a disabled field or preset and hear that it is disabled. A disabled or busy field and a disabled preset no longer render nativedisabled: the trigger, calendar button and presets keep their place in the focus order and exposearia-disabled, while opening and selecting stay blocked, and a focused disabled field shows its focus ring. Tests that query them withtoBeDisabled()or:disabledshould checkaria-disabled="true"instead (#7866). -
DateTimeInput: keyboard and screen-reader users can now reach a disabled or busy field and hear that it is disabled. It no longer renders nativedisabledon its text, native-picker or touch fields, or on its calendar and clock buttons: they keep their place in the focus order and exposearia-disabled, while typing, picking, opening and a caller'sonClickstay blocked, and a focused disabled field shows its focus ring.TimeInput's native picker button, which shares the time segment and stays out of the tab order, also moves fromdisabledtoaria-disabledand stays inert. Tests that query a disabled DateTimeInput withtoBeDisabled()or:disabledshould checkaria-disabled="true"instead. -
Apps that use Core's prebuilt CSS without a StyleX build step now get the default data colors: the prebuilt CSS defines the canonical
dataVarsdefaults, so compiled imports and raw CSS references paint correctly.Also released in
@astryxdesign/cli. -
Dialog,BottomSheetandBottomSheetSwitcherstay open when a file picker inside them is dismissed. A file input fires a bubblingcancelevent when its picker closes without a choice, and all three took that event for a close request of their own and closed (a switcher closed its whole flow). They now act only on acancelaimed at their own<dialog>, so Escape and platform close requests (the Android back gesture) behave as before. No API changes. -
DropdownMenuRadioGroupnow forwardsref, and its docs explain controlled selection, how to name the group, when the menu closes, and how it composes inside aDropdownMenu. -
astryx initwrites the agent docs at the project root, in files the project commits, so Codex, Gemini CLI, Copilot CLI and Claude Code all read the block from the project root or any folder below it (#7497). It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as~/.gemini.AGENTS.mdholds the block, created when missing. Before, a project with onlyCLAUDE.mdgot the block only there, so Codex and Gemini CLI never saw it.- Claude Code skips
AGENTS.mdin a folder that has aCLAUDE.mdor.claude/CLAUDE.md, so the Claude Code file the project already has keeps a full copy: rootCLAUDE.md, else.claude/CLAUDE.md. It keeps the copy even when it importsAGENTS.md, because Claude Code does not follow that import in a session started in a subfolder; started at the root, Claude Code then reads two. When both exist, the copy goes in rootCLAUDE.md, which projects commit even when they ignore.claude/, and a block in.claude/CLAUDE.mdis removed. Init creates no Claude file.astryx upgraderefreshes every copy, except in a project at the top of a home settings folder (see the next entry). - Gemini CLI reads only
GEMINI.md: init adds a one-line import,@./AGENTS.md, creatingGEMINI.mdwhen it is missing. It adds none whenGEMINI.mdalready importsAGENTS.md, inline or on its own line. It adds the import even when the project's.gemini/settings.jsonhas Gemini readAGENTS.mdthroughcontext.fileName: Gemini loads those settings only when it starts at the project root, so a session started in a subfolder would otherwise get no copy. Started at the root, Gemini then reads two. - The project root is the nearest folder at or above where init runs whose
package.jsondeclares an@astryxdesignpackage, else the nearest with anypackage.json. The search stops at a repository root and never counts the home folder. With nopackage.jsonfound, init writes where it runs, as before.docsWrittenstill lists each file relative to where init ran, for example../../AGENTS.md. - A
GEMINI.mdthat resolves outside the project, for example a link to a shared file, is skipped and reported indocsErrorwith one note (not an error line), in the default layout and in a project's own layout; the rest is written and init exits 0. - The managed block belongs to Astryx: init and
astryx upgradewrite, refresh, and remove only the block, whatever ignore rules or generated markers say, as 0.7.1 did, and never change the text around it. Every write stays inside the project: run in the folder 0.7.1 wrote, an agent file 0.7.1 wrote there whose path leaves the project still refuses the run with exit 1. The project's Claude Code file (rootCLAUDE.md, or.claude/CLAUDE.mdwhen there is no root one) that resolves outside the project and is a block-less import of an existingAGENTS.md, which 0.7.1 left alone, is skipped and reported indocsErrorwith one note, and init exits 0. Run from a folder below the project root, where 0.7.1 wrote in that folder instead, a project-root file whose path leaves the project is skipped and reported indocsErrorwith one note, the rest is written, and init exits 0. - While root
CLAUDE.mdis untracked and ignored by the repository's ignore rules (any ignore file from the repository root down, such as a monorepo's root.gitignore, the local exclude file, or configured excludes; init asks git, Sapling or Mercurial), a.claude/CLAUDE.mdthe project commits gets the copy too, so a fresh clone still gives Claude Code a copy;--agent claudeand--agent allwrite it there as well. A file the repository tracks counts as committed whatever the ignore rules say, as git and Mercurial ignore only untracked files, and when the repository cannot answer, the copy is kept, on the first run as on later ones. Such a copy that resolves outside the project refuses the run with exit 1 where 0.7.1 wrote it too; one 0.7.1 did not write (the one--agent claudeadds, or a block-less import of an existingAGENTS.md) is skipped and reported indocsErrorwith one note, and init exits 0. So is a.claude/CLAUDE.mdwhose block--agent claudewould remove beside aCLAUDE.md, since 0.7.1'sclaudepreset wrote onlyCLAUDE.mdthere. Beside a committed rootCLAUDE.md, with.claudelinked outside the project, three cases that 0.7.1 refused now exit 0 with nothing written: the default with a.claude/CLAUDE.mdof plain text, and--agent allwith one of plain text or a block-less import ofAGENTS.md; rootCLAUDE.mdholds the copy, so no write leaves the project. In a project that keeps its own layout, aGEMINI.mdthat imports no agent file now gets a copy, as the other agent files do. - The copy in
.claude/CLAUDE.mdis removed only once rootCLAUDE.mdholds the same block, and only the managed block between its markers: the rest of the file stays, and the file is deleted only when nothing but whitespace is left.astryx init --remove-agentsdeletes a file it created only when nothing but whitespace or init's own heading is left; 0.7.0 also deleted a file whose remaining text had a heading and any line with the word "guidance". astryx init --remove-agentsremoves the block at the project root, whereinitwrites it, and in the folder it runs in. Run from a subfolder, it removes whatinitwrote at the root, and a block an earlier version left in that subfolder; a root agent file with a block that resolves outside the project is left as it is with a note, and the run exits 0, as 0.7.1 did when it touched only the subfolder. Exit codes and the JSON shape are unchanged.--agent claudeand--agent allnever leave a block in bothCLAUDE.mdand.claude/CLAUDE.md, unless the project ignoresCLAUDE.md: whenCLAUDE.mdgets the block, a block in.claude/CLAUDE.mdis removed.--agent allkeeps theGEMINI.mdimport. The--agenthelp and the working-with-AI guide say so.--agent-docs-pathwrites where init runs, as before.astryx doctorfails when theGEMINI.mdimport points at anAGENTS.mdwith no block. The setup check in the CLI and in@astryxdesign/coreno longer counts that import as set up, and looks atGEMINI.md. The reminder to runinitthat commands print looks at the project root too, so it stops onceinithas run in a nested package.
Also released in
@astryxdesign/cli. -
astryx initandastryx upgradeno longer write agent docs into your home folder, or into a settings folder in it such as~/.geminior~/.claudeoutside a project. Agents read the files in those folders in every project, so a block there reached unrelated work. This follows the CLI's existing rules that no command writes agent docs into those folders and that a write outside a command's own folder is refused before anything is written.- Refused by
init: the home folder itself, and the top of any folder in it whose name starts with a dot (every such folder is a settings folder), even when it holds apackage.json. A folder below it with its ownpackage.jsonis a project and is set up normally, such as an agent worktree in~/.codex/worktrees/or~/.cursor/worktrees/, andastryx upgraderefreshes it. With--agent-docs-path, each file's own folder is checked: from the home folder,notes/AI.mdis written as before, whileAI.mdor.claude/CLAUDE.mdis refused. - What
initdoes instead: it writes no agent docs, reportsdocsErrorasinstall-failedwith the reason, and exits 0, as before. - Refused by
upgrade: refreshing a block in a project whose root is the home folder or the top of a settings folder, such as~/.dotfileswith apackage.json, with or without--apply. It leaves the block as it is, setsagentDocs.actiontoerror(neverwould-refresh), and warns with the folder and why; its other steps and its exit status are as before. With no block there, it gives the same reason instead of suggestingastryx init.astryx doctor's agent-docs fix does the same, and the setup reminder after each command stays quiet. - Migration: run
astryx initfrom the project's own folder, or add the block to the file by hand. Move a project rooted at the home folder or a settings folder into a folder of its own, or update or remove its block by hand. To remove a block an earlier version wrote into~/.claude/CLAUDE.md, runastryx init --remove-agentsin the home folder.
Also released in
@astryxdesign/cli. - Refused by
-
Keyboard and screen-reader users can now reach a disabled
MultiSelectorand hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the nativedisabledattribute andtabIndex={-1}, so Tab skipped it and a focused trigger lost focus when disabled; now it exposesaria-disabled="true", keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (WCAG 2.2 SC 2.4.7). -
Keyboard and screen-reader users can now reach a disabled
LinkorClickableCard, and the buttons of a disabledToken. Before, they rendered the nativedisabledattribute ortabIndex={-1}, so Tab skipped them. Now each disabled control exposesaria-disabled="true"and keeps the Tab stop it has when enabled, while activation by click, Enter or Space,onClick, removal and navigation stay blocked; a disabled Link keeps no live destination and is exposed with the link role. APopoverno longer opens from a wrapped oranchorReftrigger markedaria-disabled="true"(for example a disabledButtonwith atooltip), including for a click dispatched straight on the trigger; before, such a click opened it. No API changes. -
Keyboard and screen-reader users can now reach a disabled
Selectorand hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the nativedisabledattribute andtabIndex={-1}, so Tab skipped it and a focused trigger lost focus when disabled; now it exposesaria-disabled="true", keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (WCAG 2.2 SC 2.4.7). -
Selectoroptions in a narrow list now shrink and truncate a long label with an ellipsis instead of being clipped past the list edge. -
Switch: a busy switch announces "Loading" once per busy start. Under React StrictMode the announcement used to be made twice. -
TimeInput: keyboard and screen-reader users can now reach a disabled field, or a busy bottom-sheet field, and hear that it is disabled. It no longer renders nativedisabledon its typed, native-picker or touch input or its picker button: they keep their place in the focus order and exposearia-disabled, while typing, arrow-key adjustment, opening, submitting a surrounding form with Enter, and a caller'sonClickstay blocked, a draft typed before the field became disabled is dropped, and a focused disabled field shows its focus ring. Tests that query a disabled or busy TimeInput withtoBeDisabled()or:disabledshould checkaria-disabled="true"instead. -
Pages that use
Timestampwith an absolute format (date,time,date_timeand the other fixed formats) now prerender in Next.js withcacheComponentsturned on, where they used to fail the build:Timestampno longer reads the current time while rendering on the server, and absolute formats never read the clock.relative,relative_shortandautoread the clock on the client only: a server render or static prerender shows the full date and time in UTC, labelled, and the client switches to the format's normal output right after hydration, so server and client markup now always match. Client-only rendering is unchanged. No API changes (#7883). -
Tooltip: moving the pointer straight from the trigger onto the tooltip in one step no longer hides it, so it stays open while hovered (WCAG 2.2 SC 1.4.13). -
A
SideNavItemin a collapsedSideNavnow shows its tooltip on hover and getsaria-describedby, even when the item first appears inside an already-collapsedSideNav, the common case for saved collapse state. Before, only an item that collapsed after it appeared got a tooltip. Fixes #7692.A
Tooltipwith ananchorRefthat renders inside the very element the ref points at, asSideNavItemdoes, now attaches however it mounted. The effect now re-checks the anchor once the commit has finished attaching refs; event listeners and thearia-describedbymerge and restore are unchanged. -
TopNavon narrow screens: a longTopNavHeadingnow gives way (it truncates with an ellipsis, or wraps when the heading is a link) instead of pushing the end content and the menu toggle past the edge of the bar, and the mobile drawer's close button is back on screen. -
Typeahead: clearing the value while editing it now empties the input and reportsonChangeQuery(''), instead of leaving the old label in a field with no value. Fixes #7038.
Performance
-
Pages with many code blocks, such as a long Markdown document, paint sooner on first load:
CodeBlockinserts its syntax-highlight rules before the first layout read instead of after it, which cut first paint by 16–19% in 100–500 KB test documents (#7875). The rules and the highlighted output are unchanged. -
Pages that update around a long
Markdowndocument stay responsive: Markdown skips re-rendering its document when a parent re-renders without changing the text or any rendering prop, and a link handler passed as a new function on each render no longer forces that work. The rendered output is unchanged.
Documentation
- The
DropdownMenuItemdocs now explain when an item is an action or a destination, disabled items, and supporting content.
@astryxdesign/cli
New Features
-
astryx buildnames the right block first far more often. It ranks every block in the catalog by what the request means, read from each block's own name, description, and component, so a block that word matching missed can still come first, with its own score and reason; and the block picker's fixed values are refitted on a larger, more varied set of written example requests, which helps most with requests worded in a product's own terms. A block the request names by its exact name, and a block from an integration, keep their place. The kit never lists more blocks than before, and its fields, page call, start template, and alternatives are unchanged. -
astryx searchputs the entry you are after first more often: it orders the matches inside each score band, every result keeps its match score and reason, and a query that is an entry's exact name still answers with that entry first (#7752). -
astryx doctor integration validateandastryx integration checkcheck the component names a package's docs and blocks give, and list what they find as notes beside validate's issues, each with its fix. Nothing counts a note andintegration check --strictdoes not fail on them; they become failing warnings in the next minor release:doc_name_mismatchlists a component doc whosenameis not the name the component is listed under when the module its printed import names (the doc'simport, the published subpath, or the package root) provably does not export that name, soastryx componentwould print a broken import. TheFix:proposes the file name when that module exports it, otherwise the component it exports. A name that module's exports cannot prove or rule out (a re-export from another package,export =, a destructured binding, a namespace, an import that resolves to no file, or, when no import can be resolved, a source that only exports a default) is listed as not checked, with the reason, in validate's newdocNamesreport.unknown_block_componentlists a name a template'sexampleFororcomponentsUsedgives that neither the package nor Core has (every docastryx componentresolves in Core counts) and the template does not import it. Imports the template's local helpers make count too, including through a barrel such asparts/index.ts. A name is judged only where the template reaches components solely through named imports and re-exports from Core, React, StyleX, local helpers read in full, or the package's own name (followed through itsexportslike a helper). Anything else is listed as not checked in validate's newblockComponentsreport: an import from another package, which may render other components; anydefaultbinding other than React's or StyleX's; a namespace import; an alias of or member read off an imported binding; a component held in a variable;require(); a dynamicimport(); a file that does not parse cleanly; a local module this check cannot read; and, without Core installed, any name only Core could resolve.
integration check --strictdoes not fail on anything listed as not checked. -
New
@astryxdesign/cli/hostentry for tools that carry the CLI:runHostedCliruns the CLI once per process, with the command name that tool's users type (printed commands start with it) and, when the tool skipped the project's own CLI, the reason, so that CLI is never run.import {runHostedCli} from '@astryxdesign/cli/host'; const result = await runHostedCli({ argv: ['search', 'button'], cliCommand: 'acme astryx', });
-
astryx doctor integration validatenow notes, from source and without a build, what an integration package tells apps to import that they cannot import, the way it lists an ignoredcliCommand. Each note is indata.notesand names its fix, such as the exactexportsentry to add. Notes are listed only: neitherdoctor integration validatenorastryx integration check --strictcounts or fails on them in 0.7.3, and they become failing warnings in the next minor release, so fix them now. It notes:- a component's import (the doc's
import, or the one the CLI derives when the doc has none) or a template's public import whose subpath package.jsonexportsdoes not declare, or that names another package. A subpath is not declared by a missing key, a key whose only conditions an ES module import does not load (such asrequireortypes), anexportsthat is a single string, a wildcard that does not match, or an emptyexportsmap; - a component example that imports a subpath the package does not declare;
- a template that imports a relative path outside the templates root, or a path its own package or Core does not export.
A subpath is judged from its
exportsdeclaration alone, never by its target file, soexportsmay point at build output that does not exist yet; whether that module exports the names an import asks for is the next entry's check. Wildcards and condition objects withimportordefaultpass. An import of a subpath whoseexportsentry has onlytypestargets, or that an ES module import reaches only throughtypes(such astypesbesiderequire), is never judged as a run-time import: it passes when it isimport type, when every binding is an inlinetype, or when every name it imports is one thetypesfile declares as a type, and is listed underuncheckedotherwise. Atypestarget underrequiredoes not count, and a package with noexportskeeps its deep paths to files it ships. What it cannot judge (in a package with noexports, a deep path into build output not built yet, such asdist/; a template import of Core when@astryxdesign/coreis not installed beside the package; every import of the package's own name when package.json has noname) is listed underuncheckedin a newpublicImportsreport on the result ({status: 'checked', findings: [], unchecked: [{file, specifier, reason}]}), whichintegration checkcounts as not compared. - a component's import (the doc's
-
astryx doctor integration validatenow also notes, from source and without a build, an import that names something its module does not export (indata.notes, each with its fix). These notes are listed only in 0.7.3 too, and become failing warnings in the next minor release. It notes:- a component's import (the doc's
import, or the one the CLI derives) that leads to a module that does not export the component, naming the subpath that does or theexportsentry to add; - a component example or a template that imports a name the package does not export;
- a template source with no default export (
astryx templatestill copies it, but its public import and anything that renders it get nothing), suggesting an exported PascalCase function, class orconst, never a hook such asuseAccount, a helper such asformatBalance, an ALL-CAPS constant or a type; with none, the fix stays generic.
A name is judged only when a file the
exportsentry names is there to read in full.export *is followed, cycles included; a built module's declaration file (x.d.tsbesidex.js, and the.d.tsfiles itsexport *names) is read for the types it exports;export import Alias = Inner.Valuecounts as an export; TypeScript source resolves a./x.jsspecifier to./x.ts; and a declaration file that is a module exports every top-level declaration unless it has an export list,export *,export =or a default export of an expression, as TypeScript does. Whatever the reader does not fully model is listed underuncheckedin thepublicImportsreport instead of as a note: a file theexportsentry names that does not exist yet; a module whose list cannot be read in full (CommonJS,export *from another package); a declaration file with no import or export (a global script); a name missing from a JavaScript module with no declaration file, which may be a type; and every name it would report, other than a component doc's own component, while a TypeScript file in the package (outsidenode_modules) has a parseddeclare moduleblock for a relative path, the package's own name or a subpath of it, since that can add names to the module. The reason names that file;declare global, a wildcard spec such as'*.css', another package's name and adeclare modulein a comment do not count, and a file withdeclare modulein its text that cannot be parsed counts.astryx docs authoring/ship/checksexplains each check. - a component's import (the doc's
-
A failed
astryx component,templateordocslookup lists the entry you most likely meant first. Components that tie on match score are ordered by how early the name you typed appears in their keywords and by how close their names are, instead of alphabetically; among the suggestions offered, a component one of whose other names was typed (including another library's name for it, such asMUI TextField, with or without the library's name) comes first; a compound name that does not exist (a family part named with other words, or without one of its family's words) suggests the real part or its family. Templates are ordered by how closely their id or title matches the name you typed, and unknown docs routes by how closely the route matches. Suggestion lists never get longer, every suggestion is a real entry, and a name that resolved before still resolves to the same entry. -
Integration docs that tell readers to run an Astryx command through a package runner now get a
runner_commandnote fromdoctor integration validate(and sointegration check) indata.notes, with its file, line and the bareastryx <command>to write instead. A note fails nothing, sointegration check --strictexits as before. The unscoped name after a download runner (npx astryx) always counts, because it fetches an unrelated package; the scopednpx @astryxdesign/cli, for install steps, does not.
Fixes
-
astryx buildstarts from a page template its word weights do not list (an integration's template, or one added since the weights were fit) only when the request names as many words of that template's own display name, category and keywords (search's stopwords aside) as of the best listed template, or names that template's family (the first part of its category) before the listed template's family and at most two fewer of its words; otherwise it starts from that listed template and offers the other as the first alternative. -
The CLI finds the project's
@astryxdesign/corefrom any folder inside the project, socomponent,hook,build,search,swizzle,theme targetsanddoctornow work five or more folders deep, in workspace members whose Core the workspace installs at its root, and in Yarn Plug'n'Play projects. They still search the folders they searched before, and past them continue up to the workspace root of the nearest folder whose package.json declares an Astryx package.upgrade --fromrun from any folder in a project upgrades that project: the nearest folder whose package.json declares an Astryx package or that an Astryx workspace lists, found without passing a repository root or counting the home folder. It targets only the project's own Core (the one in itsnode_modules, or for a member its workspace lists, the one the workspace installs), scans the project'ssrcby default, reads a--pathyou type from the folder you ran in, names the files in its--jsonresult relative to that folder, refreshes the project's agent docs, and names the project root and the source folder it scans before it changes anything. With no such project,upgradereads only the current folder, as before.- An
upgraderun in a folder that installs Core but declares no Astryx package now upgrades the Astryx project above it instead of that folder alone, since such a folder was never a separate upgrade root. To keep a sub-folder that installs Core its own project, declare an Astryx package in that folder's package.json. - A
packages/corefolder that holds another package is no longer read as Core, and an integration named inastryx.confignow loads when the workspace installs it at its root, as an autolinked one already did.
-
The CLI's install advice no longer adds a package to a
package.jsonthat is not an Astryx project's. This covers the daily hint, the setup reminder, the update notice,astryx doctor's version-alignment and integration fixes, andastryx discover's install command for an integration installed for the computer. The project is the nearest folder whosepackage.jsondeclares an Astryx package, or a member its workspace lists, never the home folder and never past a repository root.- From a folder inside such a project whose own
package.jsonis not the project's, such as a tool folder that installs its own@astryxdesign/core, the daily hint that matches a project's CLI to its Core, the setup reminder andastryx doctor's version-alignment fix used to name a command that added the CLI to that folder'spackage.json, making it a separate Astryx project. They still compare the CLI with the Core the run reads, and when the two differ they say to run from the project's folder, or to declare an Astryx package in that folder; the update notice upgrades the project from its folder, with the project's release. - For an integration installed for the computer,
astryx discovergives no install command from such a folder, andastryx doctor's fix says to run from the project's folder, where the command adds it for the project; in a folder that belongs to no project, neither names a command. - In a folder that belongs to no Astryx project, the hint, the setup reminder and the update notice no longer print, and
astryx doctor's fix says how to reach a project. - Unchanged: the official packages
astryx discoverlists and the theme packagesastryx doctorsuggests still use the folder the command runs in; a member its workspace lists keeps its own advice; in a folder whosepackage.jsondeclares an Astryx package, the advice is the same. No JSON shape or exit code changes.
- From a folder inside such a project whose own
-
astryx doctor integration validate,astryx integration checkandastryx integration verifycatch more package mistakes, and each new finding ends in aFix:that clears it. Findings that 0.7.2 did not fail on are listed as notes beside validate's issues, which nothing counts, until the next minor:- Two docs for one component (
AcmeWidget.doc.mjsandAcmeWidget.doc.js) are listed asduplicate_component_doc, naming the one read; discovery now always reads the same one. - A component doc whose file name differs from its source only in letter case is one finding that says which file to rename: an error where the pair fails (Linux), a listed
source_without_component_docwhere it still pairs (a case-insensitive disk); a hidden doc that does not pair keeps the source warning it had. - A root reached through a symlinked folder is listed as
symlinked_root: npm pack does not follow it. - An absolute root says roots are relative and gives the relative path; a root that is a file is reported by every check instead of crashing it.
- A package.json without
nameorversionis listed with a fix, instead of a crash;verifyfails on it. A package whosenameand manifestproviderIdgive no provider ID is listed asno_provider_id. - A contribution file Astryx cannot read is listed as
unreadable_file, before npm pack fails on it.
astryx integration check --strictdoes not fail on these pairing, root and package.json notes either; they become failures in the next minor.astryx integration verifystill fails on a package.json npm cannot pack. - Two docs for one component (
-
astryx doctor integration validate,astryx integration checkandastryx integration verifysay more plainly what is wrong in findings they already reported, and how to fix it:- An empty doc or manifest, or one with no default export, says so and names what it does export, instead of "(root): Invalid input".
- A manifest key one or two letters off a known key asks "did you mean
components?" before suggesting a newer CLI. - A theme descriptor named for the built file (
ocean.doc.mjsbeside a builtocean.jsthat lacks theoceanexport) says it must share its stem with thedefineThemesource, naming that source when the built module'sSource:line or the source'sdefineThemename confirms it. - A template doc with no source, a theme descriptor with no source, a theme source with no descriptor, and a component whose source is
.jsxget aFix:. - A theme source named for its theme (
brand.ts) beside the module the build writes (brand.js) is told to take thebrandThemestem. verifynames packed files by their path in the package, not the scratch copy's; says npm pack does not follow a symlinked root instead of asking for afilesentry; and, when a theme'sdefineThemename differs from the files its package exports, says a rebuild writes files under the new name.
-
Integration authors now learn when the running CLI is outside their package's
@astryxdesign/clipeer range:astryx doctor integration validateandastryx integration checklist acli_peer_versionnote naming the package, the range and the running version. Below the range the note gives the project's commands to install a newer@astryxdesign/coreand@astryxdesign/clitogether (as dev dependencies in the package's own folder) and then runastryx upgrade --from <version> --apply. Above the range it asks for a release of an installed package that supports this CLI, or asks the author of the package in the current folder to test with this CLI and widen the range. A note fails nothing:--strict,integration verify,doctor, and exit codes are unchanged. -
astryx component <Member> --package @astryxdesign/corenow answers with that member, as the unscoped lookup does. A Core component documented in its family's doc (HStack and VStack in the Stack doc) used to come back as the family doc, named after the family and with no props. -
Agents that follow the guide global mode writes to the home folder now know what to do when
astryxis not found: run the command that installed the CLI for the computer first, with the same package manager and folder, such asnpm i -g @astryxdesign/cliorpnpm add -g @astryxdesign/cli. On machines that keep the home folder but reset system folders on restart, the guide outlived the CLI installed for the computer and told agents to run a command that was gone. Outside a project, when the guide namesastryxand noastryxcommand is on the search path, apart from a package runner's own copy,astryx doctornow says so and names the install step the guide records, or npm's when it records none. The global-mode guide for CI and containers explains how to keep the CLI across restarts. A guide written for a host's own command is unchanged. No JSON shape or exit code changes. -
Repeated searches in one process answer faster:
astryx searchreuses its entry index while the catalog is unchanged, and ties that reuse to one list of the fields the index reads, so the index is never reused after any of them changes. Every answer is unchanged. -
Tools that bundle the CLI into a server function no longer pack their whole project folder into it: one path in
integration check's import checks was built in a way file tracers cannot follow. The path and its results are unchanged. -
search()from@astryxdesign/cli/apianswers faster when one process searches again: it reuses the components, docs, templates and themes it gathered for the same folder andtypewhile no file it read, and no folder it listed, has changed since (a linked workspace package included). To see those reads, the first such search in a process wrapsnode:fs's read functions for that process; outside a search they behave exactly as before. Results are unchanged. Short-lived runs are unaffected: eachastryx searchcommand gathers once, as before (#7830). -
astryx searchandastryx buildfind a block by its authored display name when that name has two words or more and holds every word of the component the block shows: a query naming it, such as "rich text editor" for an integration's Rich Text Editor block, ranks it first. A display name that labels only the variant, such as "Inside a card", is not read.
Documentation
-
astryx docs cli/commands/postinstallnow documents the hiddenpostinstallhook,astryx docs cli/commandslists it, andastryx postinstall --helpshows its exit code and an example. The summary ofastryx docs cli/commands/manifest(text and--json) drops its final period, so it matches the description the manifest has always printed. What each command prints when it runs, its JSON and its exit codes are unchanged. -
Everything an integration author reads now lives under one home,
astryx docs authoring: the integration guides' routes moved fromcli/integrations/…toauthoring/…(for example,cli/integrations/quick-startis nowauthoring/quick-start), beside the field reference atastryx docs authoring/field-reference.astryx docs authoring <name>still opens one field reference section, and an oldcli/integrations/…route's error names its new route. The loose topics now sit in Guides or Foundations instead of Unorganized, under the same names:astryx docs getting-startedstill opens, and its Up isastryx docs guides. -
A new guide,
astryx docs is-my-code-good, checks component use, icons, custom styles, layout, assets, and code health from source and rendered evidence, in one page you can share. It includes an agent prompt and requires missing evidence to stay visible. The template grading rubric now links each category to these shared criteria instead of repeating them, and keeps its own weights, counting rules, and version 1.4. -
Questions like "add an integration" or "install a package" now find a guide for app builders first.
Added a "Use integrations" guide (use-integrations.doc.mjs) that covers discovering, installing, and using integration packages in an app; open it withastryx docs use-integrations. Search ranks it above authoring and API-function docs for those questions, while queries like "build an integration" still rank authoring content first.
Themes (@astryxdesign/theme-*)
Fixes
-
The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled
ComplexSelectortrigger, whether the trigger is natively disabled or exposesaria-disabled="true", the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themesastryx theme ejectcopies carry the same guard.Also released in
@astryxdesign/cli(templates).
Contributors
Thanks to everyone who contributed to this release:
@aashish254 @cixzhang @ejhammond @HelloOjasMutreja @josephfarina @kyu-rong @Pushpak731 @vjeux
Full Changelog: v0.7.2...v0.7.3
详细ChangeLogv0.7.2
2026年10月22日
Astryx 0.7.2 updates the stable @astryxdesign/* package set to this version.
OLD_VERSION=0.7.1 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.2 @astryxdesign/cli@0.7.2 # plus every other stable @astryxdesign/* package you use, at 0.7.2
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New Components
-
Promote
DrawerandDrawerHeaderfrom the canary-only Lab package to Core, imported from@astryxdesign/core/Draweror the package root. The stable package now ships the full-height side panel with modal and non-modal presentation, the shared dismissal stack, Dialog'spurposedismissal policy, aDrawerHeaderwhose close button appears when givenonOpenChange, and Dialog-style container padding (--spacing-4by default,paddingprop, or a theme'sdrawerpadding), plus Core documentation and runnable examples. Canary users importing from@astryxdesign/labswitch to@astryxdesign/core/Drawer.Also released in
@astryxdesign/cli.
New Features
-
An integration can set the command its users run the CLI with: a new
cliCommandfield inastryx.integration.*, such ascliCommand: 'acme astryx'. In a project that loads that integration, every command the CLI prints starts with it instead of the package-manager prefix (npx astryx,pnpm exec astryx): next-step hints, errors, suggestions, Doctor fixes,--help, the setup reminder, the agent-docs block, and doc text. If two loaded integrations set different commands, neither is used, and the newcli-commandcheck inastryx doctorwarns. An invalidcliCommandis ignored with aninvalid_cli_commandwarning; the rest of the manifest still loads.
Docs, including an integration's, are now written with bareastryx ...commands, andastryx docsprefixes them for the project when it prints them. JSON output keeps every command bare, as before. The install-time setup reminder from@astryxdesign/coreand@astryxdesign/clinames the command the project's package manager runs, instead of alwaysnpx @astryxdesign/cli.Also released in
@astryxdesign/cli. -
Adds the
@astryx.diffViewer.*keys to theencatalog so the labDiffViewerreads its file-status badges, line counts, line-number button labels, per-line "Added"/"Removed" labels, and empty-state messages from the translation runtime. No existing string changes; locales without a translation fall back to English. -
Itemacceptsalign="first-line", which centers each start and end slot on the label's first line. A small status dot, radio, checkbox, or timestamp beside a wrapping label now stays level with the first line, wherecenterdrops it to the middle of the row andstartleaves it above the line. A slot taller than the first line moves the text down rather than leaving the row, and a one-line row with no description looks the same ascenter.ListItem,RadioListItem, andCheckboxListItemaccept the samealignand pass it to their row. Themes can style these rows through theitemtarget'salignaxis. The default stayscenter, so existing rows don't change. -
i18n catalog: add the English messages used by the Lab CommentComposer for its input, image upload, inline quote, emoji action, cancel action, and retry affordance.
-
i18n catalog: add the English messages used by the Lab CommentThread for replies, reactions, edit history, resolution, errors, comment actions, and the unsaved-draft warning it announces when a dismissal would discard a reply or edit.
-
i18n catalog: add the English messages used by the Lab Comments panel for its region, empty/loading states, pagination, and posting errors.
-
i18n catalog: add the English messages used by the Lab EmojiPicker so locale catalogs and provider overrides can replace its labels, search status, loading state, and group names.
-
List: addedgeto choose where each row's text, dividers, and hover and selection backgrounds sit.padded(default) keeps today's look.flushdrops the rows' side padding, so text and dividers start on the same line as the list header and a heading above, with no container needed.outsetkeeps backgrounds' room around the text while reaching into the padding of a Card, Section, or Dialog, so text lands on the heading's line.bleedreaches rows to the container's edges with square corners, like Table rows in a Card.edgeCompensation="inline"is deprecated in favor ofedge="outset"and keeps working; its rows' outer room is no longer cut off by the list's swipe clip. Runastryx upgradeto rename it. -
Pagination:variant="compact"shows first/last buttons around previous/next whenhasFirstLastistrueand the page count is known. Compact still omits them by default, and theinputvariant still shows them unlesshasFirstLastisfalse. -
reset.css: in Chromium, the dropdown marker of an<input>with alistsits in the middle of the field. Chromium sets the marker on the field's line-height, so above a line-height of 1 it sits low, and the reset makes every field inherit the page's 1.5: the marker sat 3.5px below the middle of a 40px field, and further down on taller lines. Date and time fields, whose calendar icon uses the same part, keep their icon where it was. To keep the old placement, addinput[list]::-webkit-calendar-picker-indicator { line-height: inherit; }after the reset. -
SideNavItem: nested items now span the full width of the nav list, like top-level items, so their hover and selected fill lines up with the rows above them. Before, a nested item started 24px in from the list edge. The indent now sits inside the row, one--spacing-6step per nesting level, so icons and labels stay exactly where they were. The indent area is now part of the nested row, so it shows hover feedback and clicking it activates the item. Content placed directly inside aSideNavItemthat is not itself aSideNavItemis no longer inset by the children group. There is no supported way to keep the old inset look. -
TabMenupasses host attributes and DOM event handlers to its trigger button. The trigger keeps its button semantics, tab stop, and menu disclosure attributes; a caller'sonClickruns after the menu toggle. -
Tables draw a line on every cell edge, not only between rows, on both
Markdownand the RichText surfaces, and the grid closes at the table's rim. A reader following one row across never needed vertical lines, but someone editing a table has to aim at a cell and judge where a selection stops, and the empty 3×3 a toolbar insert produces was three horizontal rules with no sign it had three columns. The line is the same--color-borderalready used between rows, the rim merges with it into one rule rather than doubling at the edge, and both surfaces move together — the read and edit renderings match block for block, more closely than before.Also released in
@astryxdesign/richtext. -
TreeList: nested rows now span the full width of the list, like root rows, so their hover and selected fill lines up with the rows above them. Before, a nested row started at its indent. The indent now sits inside the row, so chevrons, icons and labels stay exactly where they were. The indent area is now part of the row, so it shows hover feedback, and clicking it activates the row: clicking a folder's indent toggles the folder, and clicking a row whose only action is its link anywhere outside its label follows the link, as Enter already did: modifier keys are kept, so Cmd/Ctrl-click opens a new tab, and a middle-click opens one too. Controls in a row's start or end content keep their own clicks, including role-based ones such as arole="switch"element, which no longer also toggle the row or run itsonClick. Guide lines draw above the rows, so a hover or selected fill doesn't break them, and they let clicks pass through to the row underneath. The one exception is a row with keyboard focus: it draws above the guides so they never cut its focus ring, which means that if it is also filled (selected or hovered), its fill covers the guides at that row. Padding set on a row through thetree-list-itemtheme target or an item'sclassName,styleorxstylestill composes with the indent.--tree-list-indentstill retunes the indent step. There is no supported way to keep the old inset rows.
Fixes
-
Allow MetadataList label width without an explicit position while preserving single- and multi-column label defaults (#6310)
-
AppShell: defer hiding the mobile nav's Activity boundary until its close animation finishes (#5701)
AppShellmounts the mobile nav drawer inside aReact.Activityboundary that flipped tomode="hidden"in the same commit as the drawer closing. React'sActivityhides its subtree withdisplay: none !importantsynchronously and re-runs the cleanup of every effect inside it, which cut offMobileNav's own slide-out CSS transition and cancelled its delayeddialog.close()before either could run. The drawer still closed correctly (a safety-net effect force-closed the native dialog on that same cleanup), just with the close animation skipped entirely.AppShellnow holds theActivityboundary visible for a beat after the drawer closes, strictly longer thanMobileNav's own worst-case close delay, soMobileNav's normal close effect gets a real chance to run its transition and its own timeddialog.close()beforeActivityever hides the subtree.MobileNavalso keeps its dialog rendered from the commit that closes it until its delayedclose()has run, instead of relying on the dialog's discretedisplaytransition to do so. A browser that does not hold that transition (WebKit) dropped the dialog todisplay: noneat once while it was still an open modal, so for about 200ms nothing was visible and the page stayed inert. The slide-out itself is unchanged. -
AspectRatio'sfit="cover"andfit="contain"now fill the box on the documented Tailwind setups. The fit rules lived inreset.css, in theresetlayer, and the setup guides put Tailwind's preflight in a layer above it, so preflight'simg, video { height: auto }won and a fitted image kept its own aspect ratio. The fit sizing now ships with the component's own styles inastryx-base: above preflight, and below Tailwind's utilities, so a utility class on the child still wins.reset.cssno longer carries AspectRatio rules.
Withfit="cover"orfit="contain", a direct child's own Astryx styles (an Astryx component's own size orobject-fit) no longer override the fill. To keep a child's own size, set it with an inline style, unlayered CSS or a rule in a later layer, or leavefitunset. -
The static
AvatarGroupOverflowchip (noonClick) is exposed to assistive technology as an image named by its count label ("5 more"). Before, it was a span with anaria-labelbut no role, a name the generic role does not allow, so screen readers could skip the count. This meets WCAG 2.2 SC 4.1.2 Name, Role, Value. Nothing changes visually; the clickable chip stays a button, and arolepassed by the caller still wins. -
Button(andIconButton) no longer use the nativedisabledattribute while a busy state (isLoading, or a non-interruptibleclickActionin flight) is the only reason the button can't be clicked. A natively disabled element can't hold focus, so the browser moved focus to<body>the instant an action started and never restored it — the classic reason busy state should be visual-only. Busy now usesaria-disabled(button stays focusable) witharia-busyand the spinner, matching the documented "Disabled vs Busy" API convention and the behavior input components already follow.isDisabled(andisDisabledtogether with a busy state) is unchanged — that still uses nativedisabled.isInterruptibleis also unchanged.
aria-disabled, unlike nativedisabled, still lets the button dispatch a click — the busy guard already calledpreventDefault()to block the button's own action, but a click on a busy button could still bubble to a wrapping ancestor's own click handler (a clickable row, card, or backdrop), which the previous native-disabledbehavior never allowed.handleClicknow also callsstopPropagation()in that guard, containing an unavailable click at the Button boundary the way a natively disabled control always did.The
href-rendered anchor path had the same gap for keyboard activation: it only wiredonClickto the busy guard, notonKeyDown, so a consumer's ownonKeyDownstill received Enter/Space on a busy-only anchor Button while it was announcedaria-disabled. The anchor path now wires the samehandleKeyDownsuppression the button path already had, so Enter/Space are swallowed and every other key still reaches the consumer, on both render paths. -
ChatLayoutScrollButton: the scroll-to-bottom pill now gives up keyboard focus, and refuses new focus, as soon as it starts to hide. Previously focus stayed on the fading pill for about half a second, untilvisibility: hiddenapplied, so it could sit on a control that was fading out or already transparent (WCAG 2.2 SC 2.4.7 Focus Visible). (#7738) -
Preserve caller-provided IDs on CheckboxInput and keep labels associated with the native input.
-
CheckboxList keeps a caller's
aria-labelledby. The group always replaced it with its own label id, so the caller's ids never reached the accessible name. The group is now named by its label and then the caller's ids, the same order RadioList and TimeInput use. -
The setup reminder, the swizzle StyleX note, and one doctor line say only what is true
Also released in
@astryxdesign/cli. -
CommandPaletteInput: the query field now draws the shared keyboard focus ring. Previously it suppressed the browser outline without replacing it, so keyboard users could not see which field held focus. -
Source builds through Next.js's Babel no longer fail with
Unknown property: L(orZs,Letter) when the app sets no browserslist or targets a browser without Unicode property escapes.Avatar's initials and the Markdown parser's emphasis and heading-link rules now build their\p{…}regular expressions at runtime, asNumberInputalready does, so there is no literal for Babel to rewrite. Matching is unchanged. -
DrawerHeadernow renders numeric zerostartContentinside its start slot and preserves numeric zeroendContentwhen no close button is present. -
Drawernow slides from the correct logical edge whendir="rtl"is set directly on the drawer, matching inherited right-to-left regions. -
DropdownMenuDividernow forwards host attributes and DOM handlers (id,data-*,aria-*, event handlers) to its separator, as other DOM-owning components do. Before, it accepted onlyxstyle,className,styleandrefand dropped everything else, so a separator could not carry a test id or an accessible label. Itsrole="separator"and orientation stay component-owned. -
DropdownMenu: load the touch bottom sheet only when a menu shows it
DropdownMenuimported its touch sheet (BottomSheet, its gestures, and the touch action list) up front, so every page with a dropdown shipped it, even when the menu only ever opens as an anchored popover. The sheet now loads on demand, the wayContextMenualready loads it. A popover-only dropdown's own code drops by about a third (about 23 KB gzipped). Bottom-sheet and adaptive menus behave as before. The sheet starts loading when the trigger mounts, and a menu opened from the keyboard before it arrives still focuses its first action once it loads. -
EmptyStateno longer leaves blank icon or action spacing when those optional slots receive a boolean or an empty string. An empty description also omits its theme target. The docs now describe configurable heading levels and map the container anatomy to the public theme target. -
Keep
Field's horizontal-label layout marker authoritative when callers pass conflicting data attributes, and keep hidden descriptions visually hidden in that layout. Correct its custom label-icon type, all three status placements, complete anatomy, and guidance for controls that cannot safely use attached status. -
FieldStatus(and any element usinguseEntryAnimation) no longer causes a hydration mismatch on server-rendered pages. An element that arrives in the server's HTML now hydrates without the entry style and never plays its entry animation, even when hydration runs after the page has painted; elements mounted after hydration still animate.useEntryAnimationno longer documents server rendering as unsupported. -
Keep
FormLayout's direction metadata authoritative when callers pass conflicting data attributes. -
GridSpankeeps its content inside the span. A child whose min-content width is wider than the span, such as aTokenizerwith a long token, used to stretch the span's column past the grid cell; it now gets the span's width and truncates the way it does outside a Grid (#7438) -
Keep
Grid's theming metadata authoritative when callers pass conflicting data attributes. -
useHoverCard: closing a hover card withhide()or Escape while the pointer rests on the card no longer leaves the next open stuck. The hook kept believing the pointer was still over the card, because a card closed that way unmounts without amouseleave, so the trigger's next hover-open never closed on leave or afterhideDelay. Both paths now clear that state, as the touch dismissal already did. -
Compute ISO week numbers (
Calendar hasWeekNumbers,getWeekNumber) on UTC anchors instead of local-timeDatearithmetic. In timezones whose DST ends after New Year (Sydney, Auckland, Santiago), the local-millisecond difference between the week's Thursday and January 1 carried the DST offset, and in years whose January 1 is a Friday that extra hour rounded a whole week up: the entire ISO week 14 of April 2021 displayed as week 15. Week numbers are now identical in every timezone. -
Anchored layers (
Popover,DropdownMenu, and every component built on them) now keep their safe-area gutter and dynamic-viewport size cap in the shipped stylesheet. The compiled CSS referenced an undefined variable for the preferred value, so every browser used the fallback: on a phone with a dynamic toolbar or a notch, a tall layer could run past the visible screen or under a declared bottom bar. Desktop sizes are unchanged. -
createMarkdownFrontmatternow hands itsparsefunction a plain object, so a parser that returns the decoded fields unchanged (parse: fields => fields) is accepted as metadata. Before, the record had no prototype, failed the JSON-like metadata check, and the document fell back to readable text with its frontmatter still showing. -
MultiSelector: the row action cell the keyboard reaches with the inline-end arrow draws the standard focus ring. Before, its outline read four CSS variables that nothing declared, so no ring showed on the active action cell. -
PowerSearch: clear every filter with one press of the clear-all button instead of removing only the last filter.
-
Prevent pressing a built-in PowerSearch filter token with the mouse from opening search suggestions before the filter editor. Token editing, removal, and keyboard navigation retain their existing behavior.
-
Keep built-in PowerSearch value controls disabled in read-only filter editors, matching custom editors.
-
RadioList keeps a caller's
aria-labelledby. The radiogroup always replaced it with its own label id, so the caller's ids never reached the accessible name. The group is now named by its label and then the caller's ids, the same order TimeInput uses. -
Restore focus to the element that opened a Dialog when its content mounts in the open commit. The opener was captured in the Dialog's passive effect, which runs after a freshly mounted DialogHeader's autofocus effect had already moved focus to the dialog's own title — closing then restored focus to that detached title and the user's focus landed on
<body>. The capture now runs in a layout effect, before any descendant's passive effect. (#5637) -
astryx searchfinds more of what a reader means when the words differ from the catalog's.Also released in
@astryxdesign/cli. -
astryx searchranks a match on more of your words above a shorter named entry.Also released in
@astryxdesign/cli. -
SideNavItemkeeps a caller'sclassNameon its row element (the link or button, and the collapsed rail item) next to its own classes. Before, the row's generated class replaced it, so a class passed to style the row (for example, a cursor while a row is dragged) never reached the DOM, even thoughstyle, ARIA, data attributes and handlers did. -
Shrink Token's invisible remove-button target from 44px to 24px without changing the visible icon. Clicking adjacent text or values in PowerSearch now edits the filter instead of accidentally removing it.
-
DropdownMenu submenu flyouts close with their menu when it is light-dismissed: previously a submenu opened by tap or a fast click stayed open (and re-anchored to the viewport corner) after the menu was dismissed and reopened. A hover-open scheduled on a submenu trigger before the menu closed from elsewhere is also cancelled, so it can no longer reopen a flyout behind the dismissed menu
-
Switchnow adds a caller'saria-describedbyto the switch control, ahead of its own description, status, and disabled-reason ids. Before, the value landed on the field wrapper, so a hint rendered elsewhere on the page could not describe the switch to assistive technology. -
Switchnow puts a caller'saria-labelledbyon the switch control. Before, the value landed on the field wrapper, so a visible title elsewhere in the row could not name the switch for assistive technology. -
A truncated
TextorHeading(maxLines) now re-measures when its content changes, not only when its box resizes. A fixed-width single-line status whose message changed kept showing the first message in its truncation tooltip, and a new short message could keep a tooltip while a new long one lacked one.useTruncationnow also observes the element's text, so the tooltip text and the truncated state follow the current content. -
ToggleButtonkeeps toggling when it also receives anonClick, for example from a wrapper that renders it as its trigger. ThatonClickused to replace the toggle's own click handling, soonPressedChangenever ran and aToggleButtonGroupmember never asked its group to toggle (pressedChangeActionstill ran). The caller'sonClicknow runs first and the toggle request follows. On a standaloneToggleButton, callingpreventDefault()in thatonClickcancels the request: neitheronPressedChangenorpressedChangeActionruns. -
useTooltip(and every component built on it, such asButton'stooltipprop) now drops a show that is still waiting out its delay whenisEnabledturnsfalse. Before, hovering a trigger and then disabling its tooltip within the delay let the timer fire anyway: the tooltip opened after its triggers were turned off, with no pointer-leave listener left to close it. A pending hide still runs, and an enabled tooltip is unchanged. -
Tooltip: an icon-only trigger now opens instead of throwing. The layer passed its trigger to
showPopoveras the invokersource, which the Popover API declares as anHTMLElement; a caller-rendered icon is anSVGElement, whose dictionary conversion throws before the popover opens, so the hint never appeared. An icon trigger now reachesshowPopoverwithout a source — positioning is unchanged, since the layer is anchored by its anchor-name pair, and only the invoker's focus order is given up. -
A collapsed
TopNavMenuorTopNavMegaMenusection in the mobile drawer is nowinertand hidden from assistive technology, so Tab no longer moves focus onto links that are not shown and screen readers no longer list them under a section announced as collapsed. -
An expanded
TopNavMenuorTopNavMegaMenusection in the mobile drawer no longer clips the focus ring of its items. The section still clips while collapsed and while it animates open or closed. -
Typeahead,Tokenizer, andPowerSearch: clear loading state and stop busy indicator when search source is replaced (#7457)
Performance
TextandHeadingwithmaxLinesandhasTruncateTooltip={false}no longer measure their text or observe it for resizes and content changes. Only the tooltip uses that measurement, so with the tooltip off the text is cut by CSS alone, and a long table of truncated cells no longer pays a layout read per cell. Rendering is unchanged; with the tooltip enabled (the default) nothing changes.
Documentation
-
AvatarandAvatarGroupdocs list the numeric sizessizeaccepts (16, 20, 24, 32, 36, 40, 48, 60, 64, 72, 96, 128, 144, 180) instead of implying any pixel value, and say that anAvatarGroup's size always overrides a childAvatar's size, including the group's default. -
Docs and CLI examples import each Core export from the path
astryx component <Name>prints.Also released in
@astryxdesign/cli. -
ContextMenudocs now state that data-drivenitemsand compoundmenuContentare mutually exclusive choices instead of markingitemsas unconditionally required. -
Document DropdownMenuGroup's complete wrapper props, group semantics, and non-interactive heading guidance.
-
Document FieldLabel's complete public prop surface, group-label semantics, and supporting descriptions.
-
Make
FormLayoutdocumentation match logical fractional grid tracks and viewport collapse, and make the public layout target discoverable from component anatomy. -
Make
GridandGridSpandocumentation match fractional track sizing, responsive repeat behavior, implicit rows, and explicit-column spans. -
useCombobox, the single-select combobox hook exported from@astryxdesign/core/Selectorthat powersSelectorandCommandPalette, now has hook docs, soastryx hook useComboboxandastryx search comboboxreturn it with its options, its return fields, and how to wirearia-activedescendantwhile focus stays on the control. -
The
useMultiComboboxhook docs now say that ArrowDown or ArrowUp opening the list lands on the first or last option even withhasSearchor a disabled end option, and that the hook still handles Home and End withhasSearch, so a search input that keeps those keys for the caret stops them first and relies on PageUp and PageDown. -
useMultiCombobox, the multi-select combobox hook exported from@astryxdesign/core/MultiSelectorthat powersMultiSelector, now has hook docs, soastryx hook useMultiComboboxandastryx search comboboxreturn it with its options, including the grid rows with an action cell, its return fields, and how to wirearia-activedescendantwhile focus stays on the control. -
InternationalizationProvider documentation now names its nonvisual provider boundary so the new component contract can map its anatomy without implying rendered DOM. (#6048)
-
ListItem's docs now listlabelas aReactNode, matching its props type: a string is truncated to one line, and any other node renders as given. They used to saystring, which told readers a rich label had to be restructured away.
Other Changes
-
VStackandHStackcome from@astryxdesign/core/VStackand@astryxdesign/core/HStack,Headingfrom@astryxdesign/core/Heading,Textfrom@astryxdesign/core/Text, andThemeanddefineThemefrom@astryxdesign/core/theme.Also released in
@astryxdesign/cli. -
This covers the guides, the
Carddocs, the next stepsastryx initprints, the install exampleastryx theme buildprints, the wiring exampletheme addprints, the build rules, the theme-module fixastryx doctorprints, and the annotated theme template.Also released in
@astryxdesign/cli. -
Every path was already exported. Nothing else changes.
Also released in
@astryxdesign/cli. -
The "run init to finish setup" reminder no longer prints where agents already have the Astryx prompt. In a git repository it looks for init's block in the agent docs from the project up to the repository root, because coding agents read every agent doc in between, so a package in a monorepo that ran
initat its root stays quiet. This holds for every command and for the reminder printed when@astryxdesign/coreor@astryxdesign/cliis installed. Running the CLI from its own source checkout, inside that checkout, prints no reminder. A project with no block in reach still gets it, and--jsonnever prints it.Also released in
@astryxdesign/cli. -
astryx swizzleno longer says StyleX components "render unstyled (no error)" without a StyleX compiler. Importing them throws StyleX's "Unexpected 'stylex.create' call at runtime" error and the page does not render, and the note now says so.Also released in
@astryxdesign/cli. -
In an integration package, where the package's own manifest loads,
astryx doctor's implicit-integrations line no longer says that "every loaded integration is named in astryx.config". It names the package's own manifest: as the only loaded integration, or beside the integrations astryx.config names.Classification: contract-restoring. Only message text changes: JSON keys, check ids, statuses, and exit codes are unchanged. The doctor line's new text also appears in its
--jsonmessage.Also released in
@astryxdesign/cli. -
Internal groundwork for a sub-menu's header and footer:
DropdownMenu's Tab walk through its header, menu and footer moves, unchanged, into a module of its own, so another menu level with regions can share it.DropdownMenu's behavior does not change. -
Adjacent query words that join into a component, hook, or template name, or into a one-word keyword, match it:
table header cell with sort arrowfindsTableHeaderCell,tree view foldersthetreeviewkeyword, and a hook answers to its words withoutuse. Most of a name, a name's leading words, or a run of its words also count for components and hooks, a step below the full name.Also released in
@astryxdesign/cli. -
A query that is one camelCase identifier and matches nothing as typed is read as the words it spells, so an unknown API name such as
useTablePaginationStatereachesuseTablePagination. In a query of several words each identifier stays one term.Also released in
@astryxdesign/cli. -
When the whole query is an entry's name, these readings add no near siblings beside it. A match on a joined keyword never ranks above an entry the query names, and a match on part of another name does only when it spans more query words than that entry's name.
Also released in
@astryxdesign/cli. -
A gerund matches its verb (
spacingandspace,dragginganddrag), and a plural can start a longer word through its singular (tokensandTokenizer).Also released in
@astryxdesign/cli. -
Core component docs declare more keywords: other libraries' names (
scrollarea,togglegroup,pageheader,splitpane,circularprogress,linearprogress,commandmenu,relativetime,sidesheet,descriptionlist,inlinecode) and common glyph names onIcon, since any icon library's glyph renders through it.Also released in
@astryxdesign/cli. -
The JSON shape is unchanged.
Also released in
@astryxdesign/cli. -
A match on part of a longer name that reads more of the query than the entry the query names is no longer held below it:
dropdown menu radio optionsleads withDropdownMenuRadioItem, notDropdownMenu.Also released in
@astryxdesign/cli. -
useResizabledrops thesplitviewkeyword, which put it ahead of the side-panels guide.Also released in
@astryxdesign/cli.
@astryxdesign/richtext
Documentation
- The
RichTextEditordocs now listisOptional,isRequired,labelTooltipandnamespace, four props the editor already accepted, soastryx component RichTextEditorand the docsite props table show the Required/Optional indicator,aria-required, the label tooltip and the Lexical namespace.
@astryxdesign/cli
New Features
-
An integration component doc can name a differently named export of the file beside it: when
Slides.tsxexportsAcmeCarouseland nothing namedSlides,Slides.doc.mjscan setname: 'AcmeCarousel', and a kebab-caseacme-widget.doc.mjscan nameAcmeWidget.component --list,component <Name>,search,swizzle, thedoctor integrationchecks andintegration verifyknow the component by that name, and its file name still opens it. A name that Core or another doc's file already has stays theirs on every surface unless--packagenames the integration. Docs and sources are read without running them; a doc named after its file, or beside a file that exports its own name, reads exactly as before. -
Each full entry an integration's family doc lists in
components, such asAcmeSlidein anAcmeCarouseldoc, is a component under its own name when the module the doc'simportnames exports it. Its source is the.tsxfile in the family's folder that declares it; a member that only built output or a file outside that folder declares has no source to show or copy.component --list,component <Name>,search,swizzle, thedoctor integrationchecks,integration verifyandintegration addknow these members. A member's detail is scoped to its own entry, as a Core sub-component's is, and it never carries the family'sreplaces. A member named like a Core component or another doc's file opens with--package. -
The CLI installed for the computer keeps one short Astryx skill for every agent on the computer:
~/.agents/skills/astryx/SKILL.md, which most coding agents read, linked into the skill folder of each agent that reads only its own (~/.claude/skillsalways; Kiro, Windsurf, Letta, Xcode's coding assistant, and~/.config/agents/skillswhen that folder exists) with a folder link and a relative target, a junction on Windows, or a copy where no link can be made. Continue, whose scanner skips links, gets a managed copy. The text tells agents that Astryx is on the computer, when it is relevant (building or changing UI), to start withastryx search, and to read docs withastryx docs; it names no version and only commands every release keeps. It is written on the global copy's first run and after each upgrade, in the background; package install scripts never write it.astryx init --userwrites it now, in any folder, andastryx init --user --remove-agentsremoves the file, every link Astryx made, and the copy, and turns it off. The setting and the links Astryx made are kept inastryx/settings.jsonin the per-user configuration folder. The file records a hash of its text, so a file a person edited is never overwritten or removed, and nothing Astryx did not create at a link folder is replaced.init --userwarns, while still writing, when noastryxcommand on the computer runs the Astryx CLI, and itsinit.userreceipt lists each path and what happened to it. Outside a project,astryx doctoradds acomputer-agent-textcheck (info only) that says whether the text is present, current, edited, or turned off, where it is linked, and any link folder it skipped or whose skill folder is missing. A cache or configuration folder set throughXDG_CACHE_HOME,XDG_CONFIG_HOME,LOCALAPPDATA, orAPPDATAis used only when it is an absolute path. -
Integrations installed for the computer. An integration package installed in the same place as the CLI installed for the computer (
npm i -g,pnpm add -g,yarn global add, orbun add -gbeside@astryxdesign/cli), or installed with the CLI in one package set by a tool that runs it, is a computer-level integration. Outside a project, it loads the way a project's integrations do: its components, templates, docs, themes, discover source, andcliCommandapply, with the same validation, and one whose@astryxdesign/coreor@astryxdesign/clipeer range excludes the CLI's release is skipped. pnpm 11 and later, which give each global package a folder of its own, count every one of those folders. Inside a project, only the project's own integrations load: a computer-level one adds nothing there, andastryx discoverlists it undermeta.availablewith sourceinstalled for this computerand the project's install command ininstall, when its peer range admits the project's release and it loads. A project that installs the same integration uses only its own copy.astryx doctoradds acomputer-integrationscheck: outside a project, each one it uses, each the folder replaces with its own copy, and a warning for each it skips or cannot load; inside one, the ones the project could add. -
astryx gap-report --to <package>sends a report to the issues URL of the loaded integration the person chose, under the same--confirm-publicrule, instead of the default handlers. When loaded integrations name their own issues URLs,--list-categoriesand the receipt list every destination and tell the agent to ask the person where to file. The default route is unchanged. -
Install the CLI once for your computer (
npm i -g @astryxdesign/cli) and runastryxin any folder. In a project, the project's own CLI answers, whatever its version, as before: a copy started anywhere else (the global install,npx, a typed version) hands the run to it. A project with no CLI of its own (only@astryxdesign/core, or a fresh clone) is answered by the copy you started, as before; when that copy is not the Core's release, one hint after the command, at most once a day per project, names the command that adds the CLI at Core's version, and JSON reportsmeta.answeredBy.copy: "starting". Only a project whose own CLI cannot start is answered by the CLI release equal to its Core, installed once into a per-user cache (from the installed Core, else the lockfile, else the declared range).astryx doctorwarns when a project's CLI and Core are different releases, or when a project has no CLI and the copy that answered differs from its Core, and prints the command that aligns them.astryx --helpand the manifest's newglobalModefield point toastryx docs global. The hand-off keeps the arguments, folder, standard streams, and exit status. Outside a project, the copy installed for your computer answers with its own release; commands that read Core use the Core of that release there: the global copy downloads it into the cache in a background step it starts as a run ends (never in CI, and not on Windows, where a background process would hold the caller's pipes and the first component command downloads it instead), so component reads work offline after one online run. Nothing that worked before breaks: when that release cannot be obtained (offline, a registry without it, an unwritable cache), the copy you started answers, as before global mode, with one warning line on standard error (astryx: could not get Astryx <version> to match this project's Core (<reason>); answering with CLI <version> instead) andmeta.answeredBy.copy: "fallback"in JSON. A copy counts as installed for the computer only in npm's global folder or in a global folder a package manager's own settings name (Bun'sBUN_INSTALLorglobalDir, Yarn'sglobal-folder, pnpm'sPNPM_HOMEorglobal-dir, or their defaults), never by a folder's layout alone, so an app made withyarn addis never mistaken for one; a moved Bun or Yarn global folder counts, and its notice reinstalls there. A failed install is remembered in the cache, so offline runs do not start npm again each time: it is retried after 2 minutes, then after 10 once it fails again, and a success forgets it. A stale install lock ends the process it records only when that process is exactly this CLI's install of that release (npm, or node running npm-cli.js, installing@astryxdesign/cli@<version>, started after the lock); otherwise the lock is simply taken over. The newERR_VERSIONS_UNAVAILABLEis kept for runs nothing can answer, such as a command that needs Core outside a project that cannot install it. The CLI starts npm from npm's own entry file with the running Node, never through a shell, and reads a project's declared Core range only when it is a plain version range.
Every successful--jsonresult now carriesmeta.answeredBy(cli,core,copy:project,starting,matched,carried, orfallback), typed inCLIResponseand described in the output envelope docs. In text mode, a run answered by anything other than the project's own CLI prints oneastryx: answered by …line on standard error. Printed commands start with a name that reaches the same release: the project's runner when its own CLI answers,astryxoutside a project for the copy installed for the computer, and otherwise the CLI package pinned to the answering version (npx @astryxdesign/cli@0.7.2). The newERR_PROJECT_REQUIREDcode names a command that needs a project. Seeastryx docs global/install-once. -
astryx doctor integrationandastryx integration checkcatch more doc mistakes, and stop flagging one pattern Core itself uses. -
The integration manifest accepts an optional
docsiteUrl, a link to the integration's docs site, as a known field, so setting it no longer raises an unknown-key warning. -
Update notices, the way
ghand the Vercel CLI do them. Once a day, never in the first day after its first run, the CLI installed for the computer checks the registry'slatestrelease in the background without delaying the command; it never installs a release by itself. When a newer release exists, a command that finishes successfully prints two lines on standard error, at most once a day:A new release of Astryx is available: <current> → <newest>andTo upgrade, run: <command>, with the command of the package manager that installed the CLI (npm i -g,pnpm add -g,yarn global add,bun add -g, orvolta install), after the Node the release needs when the computer runs an older one. Inside a project the notice names the project's install andupgradecommands instead, and anastryxfirst on the search path from before the hand-off gets a notice naming its upgrade. No notice prints with--json, after a failed command, or whenCIorNO_UPDATE_NOTIFIERis set, and neither variable lets the check run; unlikegh, a notice prints when standard error is not a terminal, because agents run the CLI without one. What the check found lives inastryx/state.jsonin the per-user configuration folder.astryx doctorreports the same: thenewest-releasecheck names the upgrade commands, and a newcli-on-pathcheck lists everyastryxcommand on the search path. -
A
{@link <target>}in a component doc's text now reads as the command that opens its doc, inastryx component <Name>, its--propsview, and component lists, in text and JSON: the description, usage, best practices, anatomy and accessibility notes, and each prop's and example's description. A topic's description reads the same way inastryx docs, its list, and the docs tree. Code fields and code ticks show the link as written. A Core component's links resolve against the CLI's docs; an integration's against its own.astryx doctor integration componentswarns on a link in an integration's component docs that names no doc, anddoctor integration docsdoes the same for a topic's description. The written-pointer warning also reads component docs and topic descriptions, and each finding now names itskindandfield. -
Component prop docs accept
stability: 'experimental', the machine-readable marker for a prop outside the stable compatibility promise, such as a component'sexperimentalprop object. -
doctor integration docs(and sointegration check) lists each pair of topics that repeat 10 or more words of prose word for word: two of the package's own topics, or one of them and a Core topic other than the one it replaces. Each entry names the topic that keeps the text (a Core topic, or of two package topics the one the passage fits), the line to change in the other, and the exact link to put there, and is in the newcopiedPassagesfield. A run with fewer than 4 distinct content words (words other than function words such as "the", "in" or "it"), or one that three or more topics share, is not listed. Each pair is also acopied_passagewarning, sointegration check --strict(new in this release) fails until it is fixed;doctor integration docsstill exits 0.
The CLI's own guides no longer repeat 18 passages that another guide owns; each copy is now a link to the guide that owns the fact. -
astryx discoverlists the official Astryx packages, first, from a list each CLI release carries, so a project with no discover source sees the official themes, even offline. Each entry inmeta.availablecarries the command that adds it (install), so a project that loads no integration and has no discover source of its own, where every query still answers with the list, can add a package straight from it. An official entry'slatestis the newest release the CLI knows (its own version on a release CLI, or a newer Core release the project has), and itsversionsalso list the project's Core version, so both can be looked up. Its add command pins the project's Core version (installed, or declared exactly), else the Core range the project declares (quoted), else the latest release; on a canary CLI with no Core it pins none for packages released with Core, and canary-only packages are listed only beside a canary Core or no Core. Official entries nameAstryxas theirsource, andmeta.sourcesreports the list last. A project's or an integration's source keeps its entry for an official package, and for any package of the same integration. A theme package that the project's own package.json declares as a dependency, under an npm alias too, shows as installed from any folder of the project, and a theme's add text ends withastryx theme add <slug>. A version or item that the official list does not show still answersERR_UNKNOWN_PACKAGE, as before. -
doctor integration docs(and sointegration check) lists fluff in a package's prose, in the newflufffield: each padding phrase such as "in order to", "note that", or "it is worth noting", with its file line and what to write instead, and each topic of 80 or more prose words in which fewer than half the words carry content. Each is also adoc_fluffwarning, sointegration check --strict(new in this release) fails until it is cut;doctor integration docsstill exits 0. The phrase list and the floor are in the check-your-docs guide (astryx docs cli/integrations/building-blocks/docs/check-your-docs). Core'sbrowser-supportguide loses its one padding phrase, and three of Core's guides (debug-and-gap-reports,sections-and-placement,publishing) are tightened to meet the density floor. -
astryx doctor integration validatenow checks every doc an integration ships under its roots (components, templates, docs topics, themes, and their translations, served or not) against the published authoring type for its kind, with the project's own TypeScript, the waytscwould. Each unknown field, missing required field, or value outside its field's type is a warning that names the doc, the line, the field, and a fix; the exit code is unchanged. A doc it cannot fully check, or a themes root that does not load, is listed with the reason; test fixtures under__tests__in the components or docs root are counted, not checked. JSON addsdata.docTypes. Without TypeScript the check prints one[skip]line instead of passing silently; with a TypeScript it cannot read types with (one with no JavaScript compiler API, such as TypeScript 7), that line names the installed version. With no doc files, it says there is nothing to check. -
astryx doctor integration componentscompares each component doc's props with the component's TypeScript props, read with the project's owntypescript. It warns about a documented prop the code does not have, a prop the package declares that the doc leaves out, and a wrongrequired. Without TypeScript it prints one line saying the comparison was skipped; with a TypeScript it cannot read types with (one with no JavaScript compiler API, such as TypeScript 7), that line names the installed version. The findings are warnings, so the exit code does not change; the JSON response gainsdata.propDrift, and nothing else in it changes. -
astryx doctor integration componentsalso judges each documented prop's type against the code, for props the package declares, a documented field such asstatus.typeand a name the package's own index signature takes included, and warns when they differ (type_mismatch). A type is judged only where both sides read exactly, with the project's owntypescript: the same text once whitespace, quotes and union order are set aside, or primitives, literals, arrays and unions of those, and names for them. Every other type (a callback, an object, a generic with arguments, an intersection,keyof, a type that does not resolve, a name two index signatures take) is listed as not compared, never reported. The comparison needs TypeScript 4.8 or later: with an older one, no type is judged and the text says so in one[skip]line. JSON addstypesCompared,typesNotComparedand, when the types were not judged,typesSkippedtopropDrift. The findings are warnings, so the exit code does not change. -
New
astryx integration check, the CI check for an integration package's own build. It takes no package argument and checks the integration package in the current folder. It runs the fourdoctor integrationchecks (validate,components,templates,docs), prints each result, then a summary, and exits 1 when any of them would.--strictalso exits 1 on any warning and on any check that did not run, such as a package with noastryx.integration.*: add"typecheck": "tsc --noEmit && astryx integration check --strict"to package.json so every build keeps the package's docs in sync. Its exit codes and JSON are a contract for the builds that run it: from this first release on, a new check, or a new failure code, joins only in a minor release named in the release notes. JSON: a newintegration.checkenvelope carries each check's own envelope unchanged. Its docs say to run it in CI, soastryx search cifinds it. Thedoctor integrationsubcommands keep their exit codes; their JSON gains only additions. -
Three new published types describe an integration package's templates:
IntegrationPageTemplateDocandIntegrationBlockTemplateDoc, each with every field of itsTemplateDocmember butcategoryas the package's own string instead of aTemplateCategoryvalue, and their union,IntegrationTemplateDoc.@astryxdesign/cli/authoringexportsIntegrationTemplateDoc;@astryxdesign/cli/docand@astryxdesign/cli/templateexport all three.TemplateDocis unchanged. -
astryx upgraderenames a staticedgeCompensation="inline"onListtoedge="outset", and dropsedgeCompensationbeside anedgethat is a fixed string. It keepsedgeCompensationwith aTODO(astryx upgrade)comment where it can't prove the result: whereedgeis computed (it may be undefined, and thenedgeCompensationstill applies), on a dynamicedgeCompensationvalue, and where theListalso spreads props, which may setedge. The deprecated prop keeps working there. -
astryx doctor integration docslists each code span in an integration's prose that is exactlyastryx docs <name>for a doc that exists, and says which{@link}to write instead:{@link generic:<name>}for the package's own topic,{@link @astryxdesign/cli:generic:<name>}for Core's. The link prints the command that opens the doc, and doctor's link check fails it if the doc goes away. A command with more words, a route, or a code block is not listed. Each is astray_doc_pointerwarning, soastryx integration check --strictfails on it, and is in the newstrayPointersfield;doctor integration docskeeps exit 0. Core's own guides point with links, and a test keeps them that way. -
astryx doctor integration validateandastryx integration checknow warnsource_without_template_docwhen a.tsxdirectly in an integration's templates root has no same-stem template doc, soastryx templatewould never list it. The warning names the file and the doc to add. Files in subfolders, such as helpers a template imports, and test, spec or story files such asstray.test.tsxare not checked; a dotted template id such aslanding.page.tsxis, andintegration check --strictfails on the warning. -
The doc-type and prop checks in
integration checkanddoctor integration validate|componentsread types with@typescript/typescript6, the TypeScript 6 API package TypeScript publishes for tools, when the project installs it and its owntypescriptis missing or has no JavaScript compiler API, as TypeScript 7 does. When no usable TypeScript is found, the skip reason now ends with the remedy: add@typescript/typescript6on TypeScript 7, or install TypeScript 5.0 through 6 (npm install -D typescript@6).
Fixes
-
extractComponentsreported phantom components from locally-declared helper functions in template files — e.g. "Timeline", derived from afunction TimelineSection() {...}helper declared directly in the detail-page template, which isn't a real component. It now excludes any name bound by a top-levelfunction,class,const,letorvardeclaration in the same file (read from the parsed source, so comments, strings and type annotations don't count), before suffix-stripping runs, so a locally-declared helper is never mistaken for an imported component. A component whose whole name is a stripped suffix, such as a bareSection, now stays in the list instead of emptying out. -
Global and project copies of the CLI meet more predictably. A repository that builds the CLI itself, with
packages/clibesidepackages/core, answers with that CLI instead of failing withERR_VERSIONS_UNAVAILABLE. On a cache folder shared between computers, a release install renews its lock every 10 seconds, and a lock from another computer that goes a minute without renewal is taken over, instead of blocking runs for 20 minutes. Folder names are compared without letter case on macOS and Windows, a Yarn 1 global install on Windows is recognized as a global install, and the shims npm, pnpm (including pnpm 12's), and PowerShell write are read when doctor and the reminders look for theastryxcommands on the search path. -
A CLI installed with npm under a prefix of its own (
npm i -g --prefix ~/.local,NPM_CONFIG_PREFIX, orprefix=in an.npmrc) is now upgraded into that same prefix: the update notice andastryx doctorprintnpm i -g --prefix <prefix> @astryxdesign/cli@latest, with~for the home folder. npm's default prefixes (Node's own,/usr/local,/usr, and%APPDATA%\npmon Windows) keep the plain command. -
The CLI now uses
postcss-selector-parser7.1.6, which parses flat selectors in linear time and closes a CPU-exhaustion vulnerability (#6985). -
integration verifyreads a package's exports with the same reader discovery uses, so the two agree: a component re-exported through a folder's index file passes, and a type-only re-export no longer counts as the component. -
astryx component --listandastryx searchfind VStack, HStack and Heading
Each has its own import path, but its doc lives in its family's folder: Stack's doc documents HStack and VStack, and Heading's doc sits next to Text's. The list only counted a doc in the component's own folder, so the three were missing from the list and from search, andastryx component VStackfound its doc only through fuzzy matching. A component whose doc is elsewhere is now listed and searchable with its own import path, andastryx component VStackopens its doc directly. -
A doc link to a component, page, or block (
{@link component:AcmeButton},{@link @astryxdesign/core:component:Button},{@link block:acme-card}) now resolves, and reads as the command that opens it:astryx component <Name>orastryx template <id> --type <page|block>, with--packagefor anything not from Core. Before, every such link printed as written, andastryx doctoranddoctor integration docswarned that it named no doc, for Core's components as for a package's own. A link that names no component or template still warns, and its hint now searches components or templates instead of topics. A resolved link'srouteis null for these kinds, which noastryx docsroute opens. -
astryx doctorno longer fails "Theme owners and built imports", andastryx componentno longer stops with "Could not load the recorded theme", when an added theme's built module imports a stylesheet, as inimport './ocean.css'. Node cannot load a stylesheet, so the CLI checks that each imported.cssfile exists, then treats it as empty. It looks for each stylesheet from the theme module's folder, also when a module that the theme imports from another folder names it. Doctor still fails when an imported stylesheet is missing, and when the module has any other problem, such as a missing dependency, a syntax error, or an error thrown while it loads. -
astryx searchkeeps a guide first when the query is a phrase of two or more words that the guide declares as a keyword.font sizeandfont weightnow open the font setup guide before the Text component, anddark modeopens the theme guides before the theme hooks. A component whose name is the whole query still comes first, one-word queries are unchanged, and the code terms and table cells in a reference doc don't count as its keywords. -
astryx integration check --strictprints each finding once. The checks' own output shows its message and fix, and the closing "Failing under --strict" list names each failure by check, code and place only, so a long report is no longer doubled. -
The
table-filterpage template's phone-width view-options panel is now labelled by its selected tab (aria-labelledby) instead of a fixedaria-label, so screen readers get the panel's name from the tab that controls it and the tab–panel relationship resolves in both directions. -
astryx theme build --checkandthemeBuild({check: true})keep comparing outputs outside the working directory, as the latest release does, rather than refusing them withERR_PATH_TRAVERSALthe way a build does. Check mode writes nothing, so the write confinement ofarchitecture:cli-surface/INV10andINV10adoes not apply to it: an absolute--outpath outside the working directory, a theme file outside it whose outputs sit beside it, and--familywith its root theme file outside it are each checked read-only. A relative--outpath that escapes the working directory is still refused, as before. Builds keep refusing every one of these writes, so when such outputs are stale, the report no longer ends with aRebuild with:command the build refuses. It names the nearest directory that contains the theme files and the outputs, and the build and check commands to run from there: each output'sSource:header records the directory its build ran from, so the check passes only from that same directory. Stale outputs inside the working directory keep theRebuild with:line. -
astryx theme buildandthemeBuild()now write only inside the working directory (cwdfor the API), asarchitecture:cli-surface/INV10requires; underarchitecture:cli-surface/INV10athe refusal is a compatible fix. Each of these builds now fails withERR_PATH_TRAVERSALbefore anything is written: an absolute--outpath outside the working directory, a theme file outside it whose outputs would go beside it, and--familywith its root theme file outside it. Paths inside the working directory still build, including through a symlink. To migrate, run the build from a folder that holds the theme file and its outputs, or pass an--outpath inside that folder; API callers pass acwdthat holds them. -
astryx upgradeno longer reports your code as up to date when the CLI is older than the installed@astryxdesign/core. Core codemods ship inside the CLI, so an older CLI has none for the releases after its own version. It used to print "No changes needed" and "No codemods available for this version range" and exit 0 while the code still needed those releases' migrations. It now warns once that it cannot finish, prints the same upgrade pinned to the CLI release that matches your Core (such ascd <project> && npx @astryxdesign/cli@<core-version> upgrade --from <old-version> --path <source-dir> --apply), and ends with "Upgrade incomplete". That command changes to the folder the run used and names the directory it scanned as an absolute path, both with symbolic links resolved, so it upgrades the same code wherever you paste it. It is written for a POSIX shell, or for PowerShell on Windows.upgrade.status(no_codemodsandconfig_fixable) andupgrade.rungain an optionalcliBehindCorefield withcliVersionandcommand, present only in that case. The codemods the CLI has still run, and the exit status and every existing field are unchanged. -
astryx integration verifyaccepts a theme module that loads the theme's own styles. Such a module imports the theme's exported stylesheet and font stylesheet for their side effects, and re-exports from the moduleastryx theme buildwrites either everything or only its theme, under the theme's export name. Verify also finds that built module by the nametheme buildgives it, the theme's own name, so a theme whose name differs from its slug no longer fails to rebuild. Any other difference from the built module still fails withtheme_module_stale, and for a module that re-exports the theme, the message now says what is wrong.
Performance
- The CLI loads Core's runtime (
@astryxdesign/coreand@astryxdesign/core/theme) only when it builds or checks a theme (theme build, and thedoctorandintegration packtheme checks), not on every start. In a project with Core installed, every other command, and an import of@astryxdesign/cli/api, skips loading Core's components and React:astryx --versiondrops from about 1.3 s to 0.5 s. Output is unchanged.
Documentation
-
Global mode docs:
astryx docs globalis a top-level docs section (and one docsite page, under Guide, which Getting Started introduces and links) explaining what global mode is, the one install command, what you get, and which version runs where. Its pages, each answering one question: project, global, or both (both is recommended;global/project-global-or-both), install (global/install-once, with what to do aboutEACCES), which version runs and why (global/who-answers), updates and notices (global/updates), the agent guide on your computer (global/computer-agent-guide), integrations installed globally (global/computer-integrations), monorepos and nested folders (global/monorepos), CI and containers (global/ci-and-containers), troubleshooting every line global mode prints (global/problems), uninstall and reset (global/uninstall), and a reference of paths, environment variables, JSON fields, and error codes (global/reference).astryx docs globaland its pages are answered by the copy you start, even inside a project whose version predates them. Integration authors get a checklist with the commands to try a package globally (cli/integrations/global-integrations). Every command that does something else outside a project says exactly what in its "In global mode" note, checked against the command run in an empty folder, and every terminal line the global-mode pages show is checked against the CLI's own strings. A project's update notice now installs the CLI beside Core, so a project that installed only Core gets its own CLI too. -
The integration guides make
integration check --stricta required step in every integration's build: the quick start installstypescript@6(the checks need its JavaScript compiler API, which TypeScript 7 does not ship) and adds "Check it in every build (required)", the Build an integration overview says so, and the checks guide's section reads "Run every check in every build (required)". -
The
astryx docs cli/integrationsguides andastryx docs authoringnow match the current CLI, and the guides point to the matchingastryx docs authoring <section>for every field instead of repeating its tables. -
Fix the MCP setup snippet in working-with-ai — "type": "url" is not a transport type, and Claude Desktop adds remote servers through Connectors
Other Changes
-
A
docsZhordocsDenseoverlay may setnameanddisplayName, as Core's own docs do; both are ignored when the doc renders, so--strictno longer fails on them. -
doctor integration componentsreports a documenteddefaultthat differs from the literal default the component writes in its props destructuring (size = 'md') asdefault_mismatch. Quotes and spacing are ignored; where either side's default is not a literal, the prop is listed as not compared. -
doctor integration validatewarns, each with a fix, on a prop documented twice (duplicate_prop), apropDescriptionskey that matches no prop entry's name as written (unknown_translated_prop), a section with no content (empty_section), two sections of one topic with the same key (duplicate_section_key, whose fix names the key the second one is already served at), and a.doc.zh.mjsor.doc.dense.mjsoverlay beside no topic file (orphan_doc_overlay). -
A topic that takes the route of one of Astryx's own docs is named by its topic name, not an internal id, with the rename to make. A link written as a bare name (
{@link deploying}) gives the exact link to write, or says no topic has that name. -
When a doc is missing several required fields, each finding's message names only its own field.
-
doctor integration validateprints each issue's fix and file in text output, as JSON already carries them. -
Internal groundwork for
astryx doctor integration components: a comparison of the props a component doc documents with the props its TypeScript source declares, read with the project's owntypescript. Nothing reaches it yet, so the CLI's behavior and output do not change; the command starts running it in a later change, which describes what users see. -
Internal groundwork for
astryx doctor integration components: reading two written TypeScript types as one type when they differ only in how they are written (whitespace, comments, quotes, member order,Array<T>forT[], parameter names,React.qualifiers), and judging a documented prop type against the type the code declares where both read exactly. Nothing reaches either yet, so the CLI's behavior and output do not change. -
Internal groundwork for
astryx doctor integration components: finding the project's owntypescript, and reading a package's TypeScript project the waytscreads it (its owntsconfig.jsonor a monorepo root's, a solution-style config's references, and the declaration files the config includes), and finding the references in that project the compiler cannot resolve. Nothing reaches it yet, so the CLI's behavior and output do not change. -
Old-CLI notes name the published releases that behave that way: template
replaces, links, docs sections, sectionids and typed theme descriptors work from 0.6.4, and templatekeywordsfrom 0.6.6.integration verifystill names the CLI range to declare. -
The quick start makes the package an ES module, so a theme it builds can be imported.
-
Samples and output that had drifted are fixed, among them the subcomponent imports, a theme that extends another, and the upgrade output.
-
The Authoring Reference corrects how an invalid
astryx.configis handled, theissuesUrlformat, where codemod files go, and which fields nothing reads yet. Its examples use theexport default {type: ...}form thatintegration addwrites. -
astryx docs cli/integrationslinks to the Authoring Reference, and the reference links back to the guides. -
astryx docs styling-overviewandtokens-and-setupgive the real symptom of a missing StyleX compiler: importing a swizzled component throws an error that startsUnexpected 'stylex.create' call at runtime.
@astryxdesign/build
Fixes
-
withAstryx()builds again under pnpm's default isolated layout. It no longer turns off webpack's symlink resolution, which hid each Astryx package's own dependencies (Can't resolve 'intl-messageformat','lucide-react'). Astryx modules are still matched by their real path, so a workspace-linked package keeps resolving itssourceentries. -
The PostCSS plugin now scans what each installed Astryx package publishes (its
filesfield, or the whole package minus nestednode_moduleswhen it has none) instead of everything undernode_modules/@astryxdesign. A package linked from a workspace no longer drags in its ownnode_modules, whose links can cycle back to it and made the build run out of memory, or its unpublished test fixtures. Registry installs scan the same files as before.
Performance
- The PostCSS plugin no longer loads the app's root Babel config when it compiles Astryx source. In the documented Next.js setup that config (
next/babelplus Astryx's StyleX plugin) ran over every installed Astryx module on each build only for the plugin to read StyleX metadata, roughly doubling the CSS pass. The emitted CSS is unchanged, and the app's own files still compile with its config.
Contributors
Thanks to everyone who contributed to this release:
@abu-abdullah22 @azure-553 @cixzhang @dependabot @ernestt @Geervan @harjothkhara @HelloOjasMutreja @imdreamrunner @josephfarina @kentonquatman @korkt-kim @kyu-rong @Kyujenius @latxh @ManoharPaturi @nynexman4464 @potatowagon @Pushpak731 @rapsealk @vjeux @WeAreResilience
Full Changelog: v0.7.1...v0.7.2
详细ChangeLogv0.7.1
2026年10月16日
Astryx 0.7.1 updates the stable package set, including RichText's first stable release.
OLD_VERSION=0.7.0 # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.1 @astryxdesign/cli@0.7.1 # add each other 0.7.x @astryxdesign/* package you use at 0.7.1
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .@astryxdesign/core
New Features
-
Chat: mention people and topics by multi-word names with opt-in
hasMultiWordQueryonChatComposerTrigger(#6128)
SethasMultiWordQuery: trueon a trigger whose suggestions contain spaces, and typing@Jordan Lekeeps narrowing the menu instead of closing it at the first space. The query runs until a line break or about 64 characters, typed text is never changed unless a row is picked, and an unmatched multi-word phrase hides the menu unless the trigger setsemptySearchText. Triggers that don't opt in still end their query at a space.For every trigger: while results for the current query are still loading, Enter sends the message as typed and never picks a row from an earlier query. Results that arrive after a send or after the editor clears are dropped, so the menu never reopens over an empty composer. Escape and the arrow keys pass through while the menu is hidden, and IME keystrokes never pick a row.
-
CodeBlockgainsisDiff, a diff layer over anylanguage, and Markdown renders a fenceddiffcode block as tinted diff rows instead of plain text. (#7389)
WithisDiff, lines starting with+sit on a success-tinted row,-on an error-tinted row,@@hunk headers (and a---/+++file-header pair directly before one) on a quiet muted row, and the rest of every line keeps the language's syntax highlighting. The glyph renders in its own column so the code's indentation lines up on every row and stays in the copied text. A changed row's margin reads the change: the tint runs under the line-number gutter too and spans the full scroll width of a long line, and the line number and the glyph take the row's marker colour, while the code keeps the syntax theme's colours. These are five new syntax-theme slots —--color-syntax-added,--color-syntax-removed,--color-syntax-diff-header(row paints, defaulting to--color-success-mutedand--color-error-mutedat 25% strength and to--color-background-muted; a defined syntax theme that leaves the header paint unset gets none, its header rows sitting on its own background in its punctuation colour) and--color-syntax-added-marker,--color-syntax-removed-marker(defaulting to--color-text-greenand--color-text-redin the default syntax theme; a defined syntax theme that leaves them unset keeps its own line-number colour) — so existing and custom syntax themes need no change and may override them.Markdown maps a
diff-<lang>code fence to the layer over<lang>(labelled<lang> diff) and adiffcode fence to the layer over plaintext (labelleddiff), so a diff keeps its header, copy button, disclosure, and a viewport name that still saysdiff.A
diffcode fence that should stay plain text can usetext. A customcomponents.coderenderer is unchanged: it keeps receiving the fence's leading word characters inlanguage(difffor bothdiffanddiff-tsx, as today), so an existinglanguage === 'diff'check still matches, and receives nothing new. -
Clearable inputs: the clear button's tooltip now reads just "Clear" (localized) instead of repeating the field's label, so a long label no longer turns into awkward tooltip copy such as "Clear Assigned engineering partner". The button's accessible name is unchanged and still names the field, such as "Clear Search". Applies to every input that renders the shared clear button, including
TextInput,NumberInput, the date and time inputs,FileInput,Selector,MultiSelector,Typeahead, andTokenizer. Override the new@astryx.inputClearButton.tooltipcatalog key to change the wording. (#7476) -
Markdownfenced code blocks wrap long lines instead of scrolling them sideways. A reader on a narrow screen sees the whole line without a horizontal scroll, and whereMarkdownand RichText give a code block the same width, a long line takes the same number of lines in both. Only the appearance changes: the code's text, line numbers, syntax colours and what Copy returns are unchanged, and a code block whose lines no longer overflow also no longer takes the scroll region's Tab stop, as a code block that fits never has. To keep the old sideways-scrolling look, render code yourself through thecomponents.codeprop with aCodeBlockthat leavesisWrappedoff. (#7564) -
Selector, MultiSelector, and ComplexSelector gain a
secondaryvariant: a borderless, neutral-filled trigger matching secondary buttons in navigation and toolbar compositions. Inside anInputGroup, a secondary Selector or MultiSelector keeps its fill and takes the group's row height and connected edges. Existinginput(default) andghostbehavior is unchanged. (#7252)
Fixes
-
Typeahead,Tokenizer, andPowerSearch: focusing an empty field withhasEntriesOnFocusafter its search source changed now bootstraps entries from the new source. Previously the results cached from the old source were already invalidated but still blocked the bootstrap, so focusing or clicking into the field opened nothing until the user typed. Cached results that are still current are re-shown without a new bootstrap, as before. (#7157) -
BottomSheetreturns focus without a focus ring after a pointer close (a tap in WebKit, or a pointer close of a sheet opened from the keyboard) and keeps the ring after a keyboard close, including on aDropdownMenubottom-sheet trigger the caller renders (renderTrigger). The sheet now asks the browser not to treat that focus as keyboard focus, the way Dialog's focus moves do. (#7388) -
Keep DateInput's calendar selection empty after clearing the field. (#6935)
-
Calendar: PageUp and PageDown move the focused day by a month — into the month the grid shows, on the same day of the month where it exists — instead of by a week; a page from a borrowed adjacent-month day lands on that day of the month now shown rather than on the month's first day. With two months, a page or an arrow crossing a month edge from the first month now lands on the correct day (the second grid no longer overrides the first grid's target). An arrow or page pastmin/maxchanges nothing, and a page into a month with no enabled day keeps focus in the grid. (#7467) -
Calendar: the arrow keys, Home and End no longer land on a borrowed adjacent-month day (shown dimmed, exposed as disabled, and inert to Enter, Space and clicks). An arrow crosses into that month and focuses the real day there, including across the two grids of a two-month view; Home and End stop at the first or last enabled day of the week in the month shown. A month with no enabled day holds no Tab stop. (#7511) -
CalendarwithhasWeekNumbers: the blank cell above the week-number column is now acolumnheadernamed with the locale's own word for the week field (from CLDR, visually hidden), so every cell in the header row has a grid role and assistive technology reads the weekday header row without a stray unnamed cell. (#7509) -
ChatMessageno longer leaves empty space for an avatar, name, or metadata that renders nothing. Booleans and empty strings create no slot, and any other slot content that renders nothing, such as an empty Fragment or a component that returnsnull, collapses its wrapper. A name that renders no text falls back to the translated sender label, while numeric values such as0still render. (#6597) -
CodeBlock's code viewport is a keyboard Tab stop only while its content actually overflows, through the shared scroll capability: a short snippet no longer adds an unexplained stop to the page's Tab order, a wide or capped block still does, and a viewport that stops overflowing keeps focus where it is. Role and accessible name are unchanged. (#7424) -
CommandPaletteInputnow exposes the semantics and name that its visible state promises. (#7321)-
A standalone field with no popup attributes was
role="combobox"witharia-expanded="true"andaria-autocomplete="list"; it is nowrole="searchbox"with no popup state. Passrole="combobox", or your popup's own ARIA attributes, to keep the old semantics. A field that already passes popup attributes (aria-expanded,aria-controls,aria-owns,aria-haspopup, and the like) stays acomboboxand keeps them, and a field insideCommandPaletteis unchanged. -
The field's default accessible name was its placeholder (
Search…, or the caller'splaceholder); it is nowSearch commands, translated. Passlabelto keep a specific name, for examplelabel="Search…"for the old default. A caller whose customplaceholderserved as the name keeps working code and hears the generic name until it passeslabel. -
The CLI's async-search CommandPalette block names its field
Search files. -
endContent={true}no longer renders an empty trailing slot, andendContent={0}renders inside the trailing slot instead of after it.
Also released in
@astryxdesign/cli. -
-
A standalone
CommandPaletteItemnow keeps a caller-supplied id on its rendered option and ignores click callbacks while disabled, so labels and test hooks keep pointing at the option and a disabled command cannot run. (#7324) -
CommandPalettenow keeps dismissal, text entry, result focus, and empty-state announcements aligned with what the reader sees. (#6950)-
While no selectable result exists, the results container no longer exposes an empty
listbox, and the query field reportsaria-expanded="false"with noaria-controlsoraria-activedescendant. It was an expanded combobox controlling an empty listbox. -
Home and End move the caret in the query field, as in any text field; they used to jump to the first and last result. Page Up and Page Down still jump to the first and last result.
-
A search with no results announces the empty message the palette renders (
No resultsby default, or the caller'semptySearchText), once the search settles. It used to announceNo results for <query>, whatever the palette showed. An override of the@astryx.commandPalette.noResultsForcatalog entry no longer has any effect; useemptySearchTextto customize the message.
-
-
ContextMenupaints in Safari when its trigger sits inside a scroll container. The menu is anchored to a box at the pointer, and that box was empty: WebKit counts an empty anchor box inside a scroller as clipped, so the defaultposition-visibility: anchors-visiblehid the open menu. The anchor is now 1px, kept inside the trigger, so the menu still hides while a scroller clips the pointer position and paints again when it scrolls back. A pointer-opened menu now starts 1px lower, below the pixel under the pointer. (#7369) -
ContextMenunow lets Escape dismiss the topmost nested overlay before the menu itself, and preserves consumer trigger handlers while adding its own, so an overlay opened from a menu stays usable and product event logic still runs. (#7167) -
The touch month scroller shared by
DateInputandDateTimeInput: under RTL the horizontal arrows follow the reading direction (ArrowLeft moves to the next day, ArrowRight to the previous), and every keyboard move — arrows and Home/End — now lands on the real day in its own month pane rather than on the dimmed, disabled copy a neighbouring pane shows at its edge. Touch scrolling is unchanged. (#7466) -
DateRangeInput: activating the clear button with the keyboard now returns focus to the range trigger. Previously the button unmounted once the range was cleared and focus fell to<body>, so a keyboard user had to Tab back in from the top of the page. Pointer clears are unchanged. (#7507) -
Dialognow preserves consumeronClickhandlers while retaining its controlled backdrop-dismissal behavior. (#7452) -
DialogHeadernow keeps valid numeric zero content inside itsstartContentandendContentwrappers and theme targets. (#7454) -
Dividernow keeps numeric zero labels inside the labelled separator and omits boolean or empty-string labels without leaving empty label spacing. (#7572) -
DropdownMenuCheckboxItemnow preserves consumer click and pointer-move handlers while keeping its checked-state, disabled, hover-focus, and close-menu behavior. (#7573) -
A
DropdownMenuwithheaderorfooteris now exposed as a modal dialog around its menu, as the APG Dialog pattern requires. The popover is a namedrole="dialog"witharia-modaland therole="menu"inside it; the trigger saysaria-haspopup="dialog"and itsaria-controlsnames the popover holding the dialog. Tab and Shift+Tab wrap through the header, the menu and the footer instead of closing the menu at either end. Escape still closes and returns focus to the trigger. A menu without either prop is unchanged. (#7515) -
A
DropdownMenuwhose trigger the caller renders (renderTrigger) returns focus to it without a focus ring after a pointer pick (a mouse click in Chromium, a click or a tap in WebKit), as the built-in trigger already did: the menu now asks the browser not to treat that focus as keyboard focus, the way Dialog's focus moves do. (#7382) -
DropdownMenuandMoreMenu: a disabled trigger no longer opens the menu. A disabled trigger with a tooltip stays focusable (aria-disabled), and Button swallowed only Enter and Space, so ArrowDown, ArrowUp, a press, or a click could still open the anchored menu; the anchored open path and the bottom-sheet trigger's click now check the trigger's availability first, for the default Button and for a natively oraria-disabledcustom trigger. (#7475) -
FormLayout: below the 480px collapse,direction="horizontal-labels"controls now fill the column the way they do in a verticalFormLayout. Previously each control shrank to its content, so aSelectorwas only as wide as its current value. The two-column layout above 480px is unchanged. (#7501) -
Buttons used as InputGroup addons now share the group's outer shape, with square inner corners where they meet the adjacent input. (#7233)
Standalone buttons and buttons rendered inside an input keep their existing shape and behavior. -
Keep
useHoverCard()trigger refs stable across unchanged rerenders. The hook returned a freshref/interactionRefon every render because its callbacks depended on the wholelayerandtouchobjects, which are rebuilt each render — React detached and re-attached every trigger listener and rewrote the trigger's inlineanchor-nameon each rerender. Hooks now depend on the stable layer and touch members instead, mirroring the Tooltip fix in #5951. (#6472) (#6606) -
MobileNav: return focus to the element that opened the drawer when it closes. The drawer relied entirely on the browser's implicit
<dialog>focus restore, which was reported failing in Safari 26.5.2:document.activeElementbecame<body>after close, stranding keyboard and screen-reader users at the top of the document. MobileNav now captures the opener beforeshowModal()moves focus into the top layer and hands it back as soon as the native dialog has closed, matching whatDialogalready does. The close is deferred until the slide-out has played, so the restore waits for it too; until then the rest of the document is inert and an earlierfocus()would be silently dropped. The restore also covers the AppShell path, where the drawer is torn down by an<Activity>switching tomode="hidden"rather than by the close branch re-running. No API change. Focus is left untouched when there was no real opener (activeElementwas<body>), when the opener has since left the DOM, or when the drawer is reopened before its pending close runs. (#3343) (#4410) -
MultiSelector: activating the clear button with the keyboard now returns focus to the trigger, ashasCleardocuments. Previously the button unmounted once the selection was empty and focus fell to<body>, so a keyboard user had to Tab back in from the top of the page. Pointer clears are unchanged. (#7506) -
NumberInput: the screen-reader "Invalid number" alert now goes through the i18n translator, so anInternationalizationProviderlocale or override can replace it. Adds@astryx.numberInput.invalidNumberto theencatalog. Locales without a translation yet still fall back to English. (#7482) -
astryx.css,reset.css, and every other package stylesheet (richtext.css,lab.css,charts.css) now open with@layer reset, astryx-base, astryx-theme;, the same line theme stylesheets carry. The Astryx layer order holds whichever Astryx stylesheet loads first: loadingreset.cssafterastryx.cssno longer lets the reset override component styles, and theme overrides keep winning. Setups that already declare the order on their own first line are unchanged. (#7585)Also released in
@astryxdesign/richtext. -
plainDateToInstantnow resolves skipped and repeated wall times the way Temporal's default"compatible"disambiguation does. (#7081)-
A skipped wall time moves forward by the length of the gap. In a zone that springs forward from a negative offset at local midnight, such as America/Santiago on September 6, 2026 or America/Havana on March 8, 2026, the start of that day came back as 11:00 PM the day before, so a week or day range landed on the wrong date; it is now the day's first instant (1:00 AM).
-
A repeated wall time resolves to its earlier occurrence in every zone. In zones with a positive offset, such as Europe/Berlin on October 25, 2026, it resolved to the later one.
-
-
Calendar: dates in years 1-99 now show their own year instead of 1900-1999. A value of0001-01-15was captioned "January 1901" with 1901's weekday layout and day labels, whileonChangestill emitted the year-1 ISO date. The shared date helpers behind the caption, day grid, week numbers, day counts, and timezone instants now keep years 1-99 as given. One limitation remains: in a timezone west of UTC, the instant for January 1 of year 1 still comes out a year early, because its timezone offset is read from a 1 BC wall clock without the era. (#7465) -
PowerSearch: pressing Enter on a focused button in the filter editor now activates that button. Enter on Cancel closes the editor without applying the draft, and Enter on Delete removes the filter; before, both applied the draft instead. Enter in a text or number value field still applies the filter; Enter on the date picker's calendar button now opens the calendar. (#7500) -
CommandPaletteListnow preserves a caller-supplied id when used standalone, while a managedCommandPalettestill assigns the ARIA id its search field controls. External labels and test hooks stay attached without breaking the palette's combobox relationship. (#6988) -
reset.cssno longer hideshidden="until-found"content withdisplay: none. The browser's own rendering,content-visibility: hidden, now applies, so find in page and text fragment links can find the content and reveal it, as the HTML Standard specifies. Plainhiddenelements are stilldisplay: none, and a browser without until-found support still hides the content with its own[hidden]rule. (#7520) -
ResizeHandle: on a collapsed pane, the arrow that grows it opens it one step above its minimum, or at itscollapsedSizewhen that is larger (a single step below the collapse threshold used to leave it collapsed); the arrow that shrinks it stays a no-op. Enter and double-click still restore the previous size. (#7512) -
ResizeHandle: Enter and double-click on a collapsed pane restore it to the size it had before it collapsed, not to its minimum, and reopen it even whenminSizeis belowcollapsedSize. The handle usesuseResizable's own collapse and expand transitions;ResizablePropsis unchanged, and a hand-built props object keeps the previous resize-to-minimum behavior. (#7479) -
ResizeHandle: with snap points set, an arrow key moves the pane to the adjacent snap point in its direction (Shift moves two), a point beyond the bounds counting as that bound — a 10px step used to snap straight back to the point it started on. With snap points, a shrink arrow at the lowest point no longer collapses a collapsible pane; Enter, double-click and dragging still do. (#7514) -
ResizeHandle: a separator whose region sets nomaxSizenow reports anaria-valuemax— a measured extent standing in for the missing maximum (the window's extent on the region's axis, or the container's content box while a percentage bound observes it), never below the current size or, while collapsed, the minimum. Pixel-only regions inside a container still report no maximum (measuring one would add an observer).ResizablePropsis unchanged; End still moves only to a configured maximum. (#7481) -
useScrollOverflow(the strip ofTabList, the scroller ofCarousel) measures a resize, and its container at registration, only while the container is rendered. Inside adisplay: noneancestor or acontent-visibility: hiddensubtree the hook keeps its last state instead of reading layout, since a layout read there made the browser render the whole hidden subtree for the answer; the resize observation that comes with the reveal measures again, one frame after the reveal paints. A scroll is measured hidden or not, so a container script scrolled while hidden (a selected tab's reveal) is right at a reveal that brings no resize. Before, a hidden container reported no overflow. (#7518) -
A
secondarySelector, MultiSelector, or ComplexSelector now matches the theme's secondary Button: under butter, chocolate, gothic, stone, and y2k it takes that Button's border, fill, text color, and hover instead of the default borderless neutral fill, so a toolbar mixing secondary buttons and selectors reads as one set of controls. Disabled and read-only triggers keep a still fill on hover, as a disabled Button does, and a Selector or MultiSelector inside an InputGroup keeps the group's neutral fill and edges. The default theme is unchanged, the selector docs now saysecondaryfollows the theme's secondary Button, and themes added with the CLI get the same parity. (#7548)Also released in
@astryxdesign/cli,@astryxdesign/theme-butter,@astryxdesign/theme-chocolate,@astryxdesign/theme-gothic,@astryxdesign/theme-stone,@astryxdesign/theme-y2k. -
Selector: activating the clear button with the keyboard now returns focus to the trigger, ashasCleardocuments. Previously the button unmounted once the value was cleared and focus fell to<body>, so a keyboard user had to Tab back in from the top of the page. Pointer clears are unchanged. (#7455) -
SideNav: the resize handle now names the navigation pane it resizes witharia-controls(the nav gets a generated id when the consumer gives none), as the APG window splitter pattern requires, so assistive technology can relate the separator to the pane. (#7473) -
Slider: End now reachesmaxeven when the step grid does not land on it (formax={100}withstep={3}, End stopped at 99). Arrow and Page key results still snap to the nearest step and then clamp. (#7484) -
Slider: on a horizontal track under RTL the arrow keys now follow the mirrored track — ArrowLeft increases the value and ArrowRight decreases it, matching where the thumb moves on screen. ArrowUp/ArrowDown, PageUp/PageDown, Home/End, and vertical sliders are unchanged. (#7461) -
Stop Tokenizer's
hasCreate"Create X" entry from offering a label that is already tokenized under a different id. The duplicate check compared the typed text against selected ids, but real selections usually carry an opaque id (u1under the label "Alice"), and the search results could not catch the match because they are pre-filtered to remove already-selected items — so typing an existing token's label offered "Create", which committed a second, duplicate token with a new id. The check now also compares against selected labels (case-insensitive), in both the Create entry and the stale-entry commit guard. (#6367) -
Keep Toolbar keyboard navigation and roving tab stops outside nested popover menus, without disabling toolbar navigation inside an outer popover. (#7446)
-
TreeList: each row is now named by its label alone and described by its description (aria-labelledby/aria-describedbyon thetreeitem), so screen readers no longer read the chevron toggle's label or the description as part of a row's name, and link and action rows are named as rows, not only through their inner control. Typeahead matches the label rather than the row's whole text. (#7472)
Documentation
-
AlertDialog's anatomy lists the dialog surface — the modal panel that holds the title, description, and buttons — andCalendar's anatomy lists the calendar root and the day button, so every part that carries a theming target (alert-dialog,calendar,calendar-day) is named in the component docs. (#7464) -
List
DateInput'scontainerClassName,containerStyle,controlClassName, andcontrolStyleprops in its API reference, alongsidecontainerXstyleandcontrolXstyle. (#7372) -
Grid's
columnsdocs now lead with the shape that reflows: a numericcolumnsis exactly N columns at every width and never reflows, andcolumns={{minWidth, max}}is the form for columns that must survive a phone. Theastryx docs layout/responsivetopic gains a "Columns that reflow" section with a reflowing stat row beside a fixed week row. No behavior changes. (#7340)Also released in
@astryxdesign/cli.
Other Changes
- The core build now fails when StyleX rejects a declaration such as a
border,background, orallshorthand, instead of silently dropping it from the shipped CSS. The emitteddist/is unchanged. No API change. (#6830)
@astryxdesign/richtext
New Features
@astryxdesign/richtextis now a stable package, released together with@astryxdesign/coreat the same version. Install it without the@canarytag:npm install @astryxdesign/richtext. It providesRichTextEditor,RichTextView,RichTextEditorToolbar,RichTextEditorAutoLinkPlugin, the headless Markdown serializers (also at@astryxdesign/richtext/markdown), and Markdown plugin support throughcreateRichTextExtension.RichTextViewand coreMarkdownrender the same document the same way, and Markdown that is imported and exported without edits comes back byte for byte.lexicaland the@lexical/*packages remain optional peer dependencies. (#7224)
Fixes
@astryxdesign/richtext(and the Lab and Charts packages) now declare their stylesheet as a side effect, so a bundler that removes side-effect-free imports keepsimport '@astryxdesign/richtext/richtext.css'instead of dropping it and leaving the editor unstyled. JavaScript modules stay tree-shakable. (#7586)
Documentation
- The
@astryxdesign/richtextREADME shows the full stylesheet setup: Core'sreset.cssandastryx.css, your theme's CSS, andrichtext.css. It says the package ships prebuilt CSS, so you never compile its source, and thatrichtext.csssits in@layer astryx-base, so theme overrides win oncereset.css(or the layer-order line) loads first. (#7582)
@astryxdesign/cli
Fixes
astryx theme build --watchstops as soon as it is interrupted (Ctrl-C or SIGTERM). A change saved while a rebuild was running no longer starts another rebuild after "Stopped watching.", and a rebuild in progress stops with the watcher instead of keeping the process alive. (#7508)
Performance
astryx searchandastryx build, and thesearchandbuildAPI functions, read each source directory once per call instead of once per candidate. Results are unchanged. A warmsearchdrops from about 1.9 s to 0.4 s on macOS. (#7421)
Documentation
-
The generated token docs list the five diff row slots of the syntax vocabulary —
--color-syntax-added,--color-syntax-removed,--color-syntax-diff-header,--color-syntax-added-marker,--color-syntax-removed-marker— with their defaults, soastryx docs tokensdescribes nineteen syntax slots. (#7389) -
The Tailwind and migration setup docs now say that
globals.css(or alayers.cssholding only the@layerline) must be the first import in the root layout or app entry, before theastryx-themesmodule or any component that imports theme CSS; otherwise Tailwind preflight overrides Astryx base styles and theme overrides lose. The Tailwind v3 coexistence snippet moves its@layerline into alayers.cssimported first, because Next.js (webpack or Turbopack) hoists CSS imports above an inline@layerline. (#7534) -
The styling setup docs now load the prebuilt stylesheets on every path. The "StyleX from source" path becomes "StyleX for your own code": it keeps
astryx.cssand points the StyleX compiler at your own and swizzled source only. A new "Other Astryx packages" section lists each package's stylesheet (richtext.css,lab.css,charts.css) and where to import it. Getting started no longer lists the two example setups that compile Astryx source; the remaining examples all loadastryx.css. (#7587)
Themes (@astryxdesign/theme-*)
Fixes
-
Stone, Y2K, and Gothic set
CodeBlock's diff row slots in their own syntax palettes, so a reader of a diff on those themes gets added and removed rows whose code, line numbers, and+/-glyphs stay readable: every syntax token keeps at least 4.5:1 on the tinted rows in Stone (light and dark) and Y2K (light and dark), and in Gothic the rows take a deep green and a deep red at the background's own luminance, so every token keeps the contrast it has on the plain background. Line numbers and glyphs on changed rows use each theme's own green and red. The CLI's bundled copies of the three themes (astryx theme eject) carry the same palettes. (#7428)Also released in
@astryxdesign/cli(templates).
Contributors
Thanks to everyone who contributed to this release:
@AKnassa @athz @barm @cixzhang @ernestt @Geervan @harjothkhara @imdreamrunner @korkt-kim @kyu-rong @ManoharPaturi @rubyycheung @vjeux
Full Changelog: v0.7.0...v0.7.1
详细ChangeLogv0.7.0
2026年10月13日
Astryx 0.7.0 — all @astryxdesign/* packages ship at this version.
This release makes forms easier to style, improves phone typography and touch menus, keeps Markdown transforms composable, and moves spacing to rem units.
Upgrading to 0.7.0
Start here:
-
Pin Core and the CLI to 0.7.0, plus every other stable Astryx package your project uses.
OLD_VERSION=0.6.8 # replace with the Core version your project uses today npm i @astryxdesign/core@0.7.0 @astryxdesign/cli@0.7.0 @astryxdesign/build@0.7.0 @astryxdesign/theme-neutral@0.7.0The example includes Neutral; update every other stable Astryx theme in your project in the same install step.
-
Run the 0.7.0 upgrade. It rewrites supported callsites, validates data-color ownership, and leaves a TODO where it cannot choose safely.
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
Check the items below. Four need a manual code edit, ten affect CLI commands or scripts, four are visual or token changes to inspect in your app, and eight are handled or checked by the upgrade.
Biggest risk: props that used to be ignored now reach the DOM. Layout, MetadataList, NavHeadingMenuItem, and TopNavMegaMenuItem already accepted BaseProps, so there is no type error or codemod. Audit callsites that pass IDs, ARIA or data attributes, event handlers, or style props only if they relied on those props doing nothing.
Manual code edits — no codemod (4)
- Banner announcements are no longer inferred from status → call
useAnnounce()from the async transition, or add an explicit persistent role. - Previously ignored BaseProps now apply → audit the four components in the risk callout only where a passed prop was meant to stay inert.
- Complete icon registries require
upload→ add anuploadentry and artwork to every custom completeIconRegistry. - Standalone empty-operator filters no longer save on open → save at the callsite when opening should commit the filter, or skip opening it.
CLI commands and scripts — no codemod (10)
-
theme addnow imports built themes → change source-copying scripts totheme eject; existingtheme add --importcalls need no change.- npx @astryxdesign/cli theme add neutral ./src/theme --overwrite + npx @astryxdesign/cli theme eject neutral ./src/theme --overwrite
-
init --remove-agentsreportsremoved: false→ treatdata.removedas a boolean, not literaltrue. -
Conflicting CLI options are refused → remove the formerly ignored option from affected command pairs.
-
Invalid CLI input now fails → pass valid types, packages, limits, and arguments, and handle
ERR_AMBIGUOUS_COMPONENT. -
Empty positional arguments are rejected → omit
""when the intended operation is to list entries. -
Integration validation needs a package → run it where
package.jsonexists, or handle exit 1. -
Astryx-prefixed agent variables are removed → use
AGENTandAGENT_SESSION_ID; agent metadata has no replacement. -
The
layoutcommand group is removed → useastryx build,astryx template, orastryx docs layout. -
Private theme variables fail the build → fix every reported private
--_*input instead of relying on exit 0. -
Doctor fails on unloadable configured projects → install or repair the named integration, remove it from config, or fix the reported field.
Visual and token changes — inspect your app; usually no code (4)
reset.cssnow reaches pseudo-elements and search fields → do nothing unless you need the old browser result; then add a later-layer override.- Phone typography starts at 16px in four themes → take the new Neutral, Chocolate, Butter, and Stone scale, or add a touch-and-narrow override to keep 14px.
- Core spacing uses rem → CSS variable users do nothing; code that parses px must convert with the root size or read the computed length.
- Matcha and Y2K spacing uses rem → take the pixel-equal default at a 16px root, or override spacing tokens in px for fixed sizing.
Handled or checked by astryx upgrade (8)
- Data-color defaults move to StyleX → fix anything
validate-data-token-ownershipreports, then rebuild committed theme CSS. - Date and time input styling targets the control → review the
migrate-field-input-stylingrewrite or TODO. - Typeahead, Tokenizer, CheckboxList, RadioList, and Slider styling targets the field → review the generated
container*orcontrol*prop. - Selector styling targets the control → review the rewritten control styling and forwarded trigger props.
- Text input styling targets the control → review the rewritten control styling and native input ID.
- Theme styling uses current names and data attributes → review rewritten keys and selectors, especially any TODO for custom CSS.
- BottomSheet adds default content padding → review the generated
padding={0}or TODO; remove the prop when your theme already supplies padding. emptySearchResultsTextis removed → review the rename toemptySearchTextand any TODO on spreads or trigger objects.
See the complete visual guide and all 26 detailed migrations.
@astryxdesign/core
Breaking Changes
-
Stop deriving live-region roles from
Banner.status. Banners are non-live by default; calluseAnnouncefrom the actual async transition handler, or provide an explicitrole="status"for a persistent semantic mirror. (#6630)
role="alert"is now opt-in rather than automatic for warning and error banners.Old usage:
Bannerderivedrole="status"orrole="alert"from itsstatusvariant.Replacement: The caller sets the role explicitly, or announces with
useAnnounce.Migration: Call
useAnnouncefrom the actual async transition handler, or provide an explicitrole="status"for a persistent semantic mirror.Codemod: None — the right announcement depends on the callsite.
-
Layout, MetadataList, NavHeadingMenuItem and TopNavMegaMenuItem now apply the BaseProps they accept (id, role, aria-*, data-*, hidden, inert, dir, event handlers; TopNavMegaMenuItem also xstyle/className/style) instead of silently dropping them; NavHeadingMenu keeps arrow navigation when an item handler cancels. (#7331)
Migration: remove any of those props you passed that you relied on being ignored; a TopNavMegaMenuItem styled through xstyle/className/style now shows that styling.From #5656 by @harjothkhara.
-
BottomSheet pads its content by default, like Dialog. With no
paddingprop and no theme padding, the content box now pads by--spacing-4(it had no padding before) and publishes that inset. (#6884)
A sheet whose only child is a paddedSectionor aLayoutrenders as before, because both escape the inset. Content that supplies its own inset is now padded twice: drop that inset, or passpadding={0}to keep the unpadded content box.astryx upgradeshipspreserve-bottom-sheet-content-padding, which addspadding={0}where needed.Migration: pass
padding={0}to keep the unpadded content box, or drop your own inset to take the default;astryx upgradeaddspadding={0}to every BottomSheet that sets no padding unless its only child is a padded Section or a Layout. An app whose theme already setsbottom-sheetpadding on every edge is not affected by the new default; the codemod cannot see the theme, so remove thepadding={0}it adds there to keep the theme inset. A sheet whose content wraps aLayoutgets a TODO:padding={0}also removes the inset between that Layout's regions, which the Layout's ownpaddingdoes not restore. -
Require
uploadon completeIconRegistrytypes (#7329)
Old usage: A custom complete icon registry typed asIconRegistrythat omitted theuploadkey.Replacement:
IconRegistrynow requires all semanticIconNamekeys, includingupload.Migration: Add an
uploadentry drawn in your registry's icon style to complete icon registries typed asIconRegistry.Codemod: No
astryx upgradecodemod applies because icon artwork is bespoke design artwork tailored to each theme and cannot be automatically synthesized. -
Move canonical data-color defaults from generated theme CSS to the public StyleX
dataVarsgroup. (#6834)
ImportdataVarsfrom@astryxdesign/core/theme/dataTokens.stylexfor CSS-capable code. Canvas and other non-CSS APIs continue to useresolveThemeToken()oruseTheme().token(). Rebuild committed theme CSS withastryx theme build; concrete themes now emit only explicitly authored data-color overrides.Old usage: Generated theme CSS owned the canonical
--color-data-*root defaults.Replacement: The public StyleX
dataVarsgroup in@astryxdesign/core/theme/dataTokens.stylexowns the defaults; concrete themes emit only explicitly authored data-color overrides.Migration: Import
dataVarsfrom@astryxdesign/core/theme/dataTokens.stylexfor CSS-capable code. Canvas and other non-CSS APIs continue to useresolveThemeToken()oruseTheme().token(). Rebuild committed theme CSS withastryx theme build.Codemod:
astryx upgraderunsvalidate-data-token-ownership, which rewrites nothing and reports fallback-lessvar(--color-data-*)uses (whole or embedded source strings, and stylesheets) and stale generated theme CSS for manual migration.Also released in
@astryxdesign/cli. -
DateInput, DateRangeInput, DateTimeInput, and TimeInput no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*,aria-*, and DOM handlers reach the field's semantic control on every surface (the date, time, or date-time input; DateRangeInput's range trigger) instead of the wrapper, TimeInput no longer drops them, and a calleridis now honored there. A calleraria-describedbyis added to the component's own description ids, and a calleraria-labelledbyis read after the field's own label (on DateRangeInput, after its label and selected range); a calleraria-labelon DateRangeInput replaces the trigger's name. (#7337)
Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before (for DateTimeInput, the row holding the date and time segments). Rename by hand, or runastryx upgrade; it runsmigrate-field-input-styling, which rewrites JSX usage; styling passed through a wrapper's own props or a spread is never rewritten and now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored. A DOM handler ordata-*attribute that relied on landing on the wrapper now lands on the control; a handler still runs after the component's own and still receives events the component handled.From #5656 by @harjothkhara.
-
Typeahead, Tokenizer, CheckboxList, RadioList, and Slider no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props now reach the primary semantic control: the combobox input for Typeahead and Tokenizer, therole="group"/role="radiogroup"element for CheckboxList and RadioList, and therole="slider"thumb for Slider (therole="group"control in range mode). A calleraria-describedbyis kept alongside the field's own description and status, on these components and on TextInput, TextArea, and NumberInput, which previously dropped it. CLI templates use the new props. (#7339)
Migration: rename rootxstyle/className/styleto the part they styled before:containerXstyle/containerClassName/containerStyleon all five components, except a Typeahead inside InputGroup, whose root styling painted the control surface and moves tocontrolXstyle/controlClassName/controlStyle. The release'sastryx upgradecodemod,migrate-field-input-styling, performs these renames on JSX usage.Not rewritten by the codemod, so update by hand:
refandid, plusdata-*(except Typeahead and Tokenizerdata-testid, which marked the control surface),aria-*, and DOM event handlers such asonClick, previously landed on the outer Field (or were dropped by RadioList and Slider). They now land on the primary semantic control. Update code that measured, queried, or listened on the outer field, and wrap the component in your own element when you need an outer boundary.- Typeahead and Tokenizer refs are now
HTMLInputElement. - A consumer
onKeyDownon Typeahead or Tokenizer still runs after the built-in key handling, cannot cancel it, and still fires for keys on the clear button and tokens; for keys on the input it now runs on the combobox input itself. - RadioList and Slider used to drop DOM event handlers; they now run after the component's own handling, so a Slider
onPointerDown,onKeyDown,onFocus, oronBlurthat never fired before now fires (on the thumb, or on the group in range mode). - Tokenizer's
onFocus/onBlurkeep their meaning: focus entering or leaving the field. - Styling passed through a wrapper's own props or a spread is not rewritten and now fails type-checking at that callsite.
Untyped callers get a development warning and the value is ignored.
From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
Selector, MultiSelector, and ComplexSelector no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup, ahorizontal-labelsFormLayout, or withrenderTrigger) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*(includingdata-testid),aria-*, and DOM handlers reach the trigger button that carries the combobox role (or, withrenderTrigger, the caller's control), and a calleraria-describedbyis kept alongside the field's own description and status instead of being replaced. Handlers keep their existing order: a ComplexSelectoronClickon its own trigger can still cancel opening, and newly forwarded handlers (including those reaching arenderTriggercontrol) run after the built-in toggle and keyboard handling. CLI templates use the new props. (#7341)
Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before. Not a rename: adata-testidor other base prop now lands on the trigger button rather than the bordered box around it (query the box with.closest()if a test measured it), and withrenderTriggerbase props andrefnow reach the caller's control. Rename JSX usage by hand, or runastryx upgrade; it runsmigrate-field-input-styling, which does not follow styling passed through a wrapper's own props or a spread, which now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored.From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
TextInput, TextArea, NumberInput, and FileInput no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*,aria-*, and DOM handlers reach the native control, and a calleridis now honored there. CLI templates use the new props. (#7336)
Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before.astryx upgraderewrites JSX usage; styling passed through a wrapper's own props or a spread is not rewritten and now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored. Not rewritten by the codemod: a calleridused to be replaced by a generated one and now reaches the native control (the label stays associated), so remove anidyou passed but relied on being ignored. Other base props already reached the native control and are unchanged.From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
PowerSearchFilterEditorno longer callsonSavewhen it opens on an already-complete empty-operator filter (such as "is empty"). (#7347)
Old usage: opening a standalonePowerSearchFilterEditoron a complete empty-operator filter saved that filter immediately, with no Apply rendered for it, and saved it again whenever the editor remounted.Replacement: the editor saves only from a user choice in it. Opening it saves nothing.
Migration: if you relied on that save-on-open, call your own
onSavehandler with the filter at the point where you open the editor (or skip opening the editor for empty-operator filters, as PowerSearch now does). This cannot be rewritten by a codemod, because the right place to commit depends on your code. -
Remove the deprecated component-theming compatibility surface scheduled for 0.7.0. Components now emit only canonical target classes and reflected
data-*prop/state selectors. Theme discovery and build output no longer expose deprecated targets, andThemePropsOptionsplusComponentThemingTarget.deprecatedForare removed. Thetheme targets --jsonresponse drops theThemeTargetEntry.deprecatedForfield, because no target it lists is deprecated. (#7302)
Migration: run the required codemodmigrate-deprecated-theme-surfacewithastryx upgrade --from <your 0.6 version> --apply --path .after upgrading.The codemod renames removed target keys inside theme
componentsmaps (an importeddefineTheme()call, an object typed as an Astryx theme, or a theme object with a staticname), renames target classes in CSS, and replaces target-qualified bare prop/value/state classes with reflecteddata-*selectors, using every bare class the final 0.6 release emitted. It leaves dynamic/computed theme keys, unqualified or unknown classes, and CSS embedded in JavaScript/TypeScript strings for manual review. It addsTODO(astryx upgrade)when old and canonical keys coexist, and when a bare class Astryx once emitted has no known meaning on the target it qualifies.The four per-component clear-icon aliases all become the shared
input-clear-icon, which styles every input's clear icon. In CSS the codemod keeps each rule on its component with:where(.astryx-<component> *), which adds no specificity. Theme keys cannot carry that scope, so the codemod adds a TODO naming the CSS selector to use.Code that passed
{legacyNames}tothemeProps()or setdeprecatedForin a component doc should delete that argument or field; the canonical target is unchanged.Rename theme keys and CSS target classes with this complete mapping:
base-table→tablecheckbox→checkbox-indicatorcodeblock→code-blockcodeblock-copy-button→code-block-copy-buttoncodeblock-header→code-block-headercodeblock-title→code-block-titledate-input-clear-icon→input-clear-icondate-range-input-clear-icon→input-clear-iconhovercard→hover-cardmulti-selector-clear-icon→input-clear-iconnavicon→nav-iconpopover-surface→popoverprogressbar→progress-barprogressbar-fill→progress-bar-fillprogressbar-mark→progress-bar-markprogressbar-track→progress-bar-trackradio→radio-indicatorradio-dot→radio-indicator-dotselector-clear-icon→input-clear-iconstatusdot→status-dottextarea→text-area
For custom CSS, replace removed bare selectors with the corresponding reflected attribute on a canonical target—for example,
.astryx-button.primary.smbecomes.astryx-button[data-variant="primary"][data-size="sm"], and.astryx-switch.checkedbecomes.astryx-switch[data-checked="checked"]. Review unqualified classes such as.primarymanually because they may be application-owned.Also released in
@astryxdesign/cli. -
Remove the deprecated
emptySearchResultsTextprop. UseemptySearchText. (#7289)
Old usage:emptySearchResultsTextonTokenizer,Typeahead, andBaseTypeahead, and theemptySearchResultsTextkey on aChatComposerInputtrigger.Replacement:
emptySearchText, shipped in 0.6.6. It takes aReactNode, so every old string value stays valid. The old name is no longer in the types and is no longer read; a JavaScript caller that still passes it sees the default empty message.Migration: Rename
emptySearchResultsTexttoemptySearchText. Where both are set, keepemptySearchTextand delete the old one — unlessemptySearchTextcould benullorundefined: 0.6.x then fell back to the old value, so move that value intoemptySearchText(for exampleemptySearchText={value ?? 'Old copy'}).Codemod:
astryx upgraderunsrename-empty-search-results-text, a straight rename at the JSX boundary: the prop on importedTokenizer,Typeahead, andBaseTypeaheadelements, and the key on trigger objects written inline inChatComposerInput'striggers, each renamed as written. Like every Astryx codemod it does not follow variables, helpers, spreads, wrappers, or types; where it cannot attribute the value —emptySearchTextalready set, any spread onto one of these elements (whether or not the element writes the old name), atriggersvalue not written inline, a trigger object with a spread or computed key (whether or not it writes the old name) — it leaves a TODO instead of choosing a winner. The type checker reports any literalemptySearchResultsTextit did not reach; the TODOs cover the values that reach an element through a spread, which it cannot. -
reset.cssnow reaches::before,::after,::placeholderand the search field's cancel button, as its comments document. Three of its rules wrote the pseudo-element inside:where(), where pseudo-elements are invalid, so browsers dropped those parts of the selector and the rules never applied to them. Each pseudo-element now follows the:where(), as in:where(*)::before, and the rules stay in@layer reset, so any later layer or unlayered style still overrides them. (#7355)
What changes on a page that loads the reset: a::beforeor::afterwith padding or a border used to size ascontent-boxand now sizes asborder-box; setting onlyborder-widthon one used to draw nothing and now draws a solidcurrentColorborder; a placeholder with no color of its own used to show the browser's grey and now shows--color-text-secondary(or that token's own default,light-dark(#4E606F, #AAAFB5), when no Astryx CSS defines it); and atype="search"field no longer shows the browser's cancel button.To keep the old result for one of your own elements, set it in your own CSS:
box-sizing: content-boxorborder-style: noneon the pseudo-element, acoloron the::placeholder, orappearance: autoon the field's::-webkit-search-cancel-button. There is no codemod: whether a stylesheet relied on the old result cannot be read from its source. -
Spacing tokens are rem (
--spacing-2: 0.5rem), so gaps and padding follow the reader's root font size the way the type scale does. Every token value is unchanged at the default 16px root. (#7359)
One change shows at the default root: theuseTableRowExpansionchevron now sits centered in its fixed 40px column instead of running past its edge (its button moves from 24–48px to 8–32px of the column). Under a theme with a larger spacing scale, such as matcha, the chevron is visible again and the detail panel lines up with the first column instead of starting 20px past it.Old usage: The
--spacing-*defaults were fixed px (--spacing-2: 8px), souseTheme().token(),resolveThemeToken(),tokenDefaultsandspacingDefaultsreturned px strings, and spacing stayed the same size when a reader raised the browser font size.Replacement: The defaults are rem with the same value at a 16px root (
--spacing-2: 0.5rem,--spacing-4: 1rem), and those readers return the rem string.Migration: CSS that reads
var(--spacing-*)needs no change. Code that parses a spacing token as a px number converts the rem value with the root font size, or reads the element's computed length. A theme that wants fixed px spacing sets the tokens back, for exampledefineTheme({tokens: {'--spacing-2': '8px'}}).Codemod: None. A token read and parsed at runtime cannot be found and rewritten statically, and CSS uses need no rewrite.
Also released in
@astryxdesign/cli.
New Features
-
DropdownMenutakesheaderandfooter: content above and below the rows that sits in the popover beside the menu, never inside it. This is the place for a filter field or a "Create" button. The menu still holds only its rows, so it stays a valid menu to a screen reader. The controls keep their own keys and presses, and Tab walks header, menu, footer. The bottom sheet shows them above and below the actions. (#7344) -
DropdownMenuSubMenupasses host attributes, DOM event handlers and arefto its trigger row, asDropdownMenuItemdoes: a sub-menu row can carryaria-keyshortcuts, adata-*mark or anid, and a caller can reach the row element. The row keeps its own role, tab stop and popup state; a caller'sonClick,onKeyDown,onPointerMove,onMouseEnterandonMouseLeaverun after the row's own handling, except for an event the row consumes: the keys that open the flyout (the open arrow, Enter and Space) and a click on a disabled row. A caller'sidnames the row the flyout is labelled by. (#7318)
Fixes
-
A standalone
BottomSheetnow joins the shared layer dismissal stack, so one Escape press closes only the top-most layer. A Popover, Dialog, or menu opened inside the sheet closes first, and the next press closes the sheet.purpose="required"still blocks Escape without letting the press close a layer behind it, a sheet that is animating out keeps the press, and the native close request answers with the same top-most and IME composition rules. (#7225) -
ContextMenuputs only its four touch handlers on the trigger element. It used to spread everythinguseLongPressreturns, which since the press model includes the hook's imperativestart,moveToandcancel, so React warned "does not recognize themoveToprop" and "Invalid values for propsstart,cancel" on the first ContextMenu of a page. Long-press opening is unchanged. (#7322) -
DateInput: run changeAction with optimistic busy feedback on the native picker surface (#7243)
-
Dialog's initial focus and the focus it returns on close now follow the last input: the shared focus indicator is hidden after a mouse click or tap and shown after keyboard input, including focus returned after a keyboard open and a mouse close (#7306). Text fields keep their own focus treatment. (#7313)
-
A DropdownMenu hung off its own control through
renderTriggernames a drilled-in sub-menu's Back row after the menu: "Back to <the menu's aria-label>", or the name of the control it hangs off, instead of "Back to Menu". (#7304) -
Lightbox shows the next or previous image unzoomed from its first frame. The zoom and pan reset when the image changes now happens in the same update, instead of painting the new image at the previous image's zoom for one frame. (#7351)
-
With
markdownSourceLinesPlugininstalled, a transform plugin no longer falls back to its readable fallback on documents that contain a list or a quote. Blocks nested in a list item or a quote carry lines without offsets, and the transform check now accepts those Core-assigned lines while still refusing a transform that adds, shifts, or forges them. (#7345) -
A two-finger pinch over an open DropdownMenu, sub-menu flyout, ContextMenu or Selector list now zooms the page. The menus declared
touch-action: nonewhile their rows fit andpan-yonce they scroll, and neither allows a pinch, so a phone could not zoom the page while a menu was open. They now declarepinch-zoomandpan-y pinch-zoom; a one-finger slide over the rows and the press model behave as before. (#7201) -
DropdownMenu, ContextMenu and sub-menus no longer special-case text fields and buttons placed among their rows. This reverts an unreleased change. A menu holds only menu items; a control that is not a row belongs outside the menu. (#7338)
-
The PowerSearch filter editor saves an "empty" operator filter (such as "is empty") exactly once, from the choice that completes it. Choosing such an operator, or switching to a field whose default operator is one, now saves from that choice instead of from an effect. The filter is no longer saved again when the parent re-renders with a new
onSave, or twice in React StrictMode. Re-choosing the current operator or field saves nothing, and focus still returns to the search input after the editor closes. Clicking an existing empty-operator token in PowerSearch commits it once without opening the built-in editor; acomponents.empty.Editoroverride still opens. (#7347) -
The PowerSearch filter editor saves once when a value that saves on choice is picked (an enum option, a relative-date preset, a suggestion). The save no longer runs inside a React state updater, which React may call more than once, so it no longer fires twice in StrictMode. (#7350)
-
Toasts stay visible and clickable while a Dialog is open. The
ToastViewportfromLayerProvider(or the oneuseToastmounts on its own) now moves into the open Dialog, and back when it closes. Before, a Dialog opened after the viewport mounted painted over it, and clicking a toast's close button hit the backdrop and closed the Dialog. Moving the viewport does not reset visible toasts or their timers. A viewport rendered withisTopLayer={false}keeps rendering in place. (#7238) -
DateTimeInput's touch picker no longer paints a stale frame. Clearing the value from outside clears the time display in the same update, instead of showing the previous time for one frame, and narrowing
max(or raisingmin) while the sheet is open keeps the visible month in range in the same update, instead of showing the out-of-range month and then jumping. (#7349)
Performance
- An
ItemwithoutswipeActionsno longer bundles the swipe gesture. The panels and the drag that uncovers them now live in a moduleItemloads on demand the first time a row has swipe actions, so an app whose rows never swipe ships about 2.7 KB (gzip) less on its first load and a row that does swipe keeps its DOM, props and behavior; its gesture becomes live once that module has arrived, which on a first load is a moment after the row paints. (#7296)
Documentation
- Describe
CommandPaletteListas the listCommandPaletterenders itself, and as a component to render directly only for a standalone results list. (#7370)
@astryxdesign/cli
Breaking Changes
-
theme addnow imports built themes; usetheme ejectto copy theme source. (#7138)
The old contract copied theme source withtheme add <slug> [path] [--overwrite] [--package <package>]and returnedtheme.addJSON. TheThemeAddResponsetype and thetheme.addresponse type are removed, with theirThemeAddResponse.type,ThemeAddResponse.data, andThemeAddResponse.metafields. The replacement imports the built theme withtheme add <slug> [--package <package>]and returnstheme.app;--importremains an accepted no-op. Plaintheme addnow returnstheme.appwith the ownerpackagedirectly aftertype. Local themes carry no package.A path after
theme addnow exits 1 withERR_INVALID_ARGUMENT, and--overwriteexits 1 withERR_INVALID_OPTION; neither writes files. To migrate a script that copied source, runtheme ejectwith the same slug, path,--overwrite, and--packagearguments. A script that already runstheme add --importkeeps the same meaning and needs no change. -
init --remove-agentssays when there was nothing to remove. (#6623)
Migration: a consumer readingdata.removedas a boolean keeps working; a consumer that narrowed on the literaltruemust accept the corrected value. -
Four commands refuse silently ignored option pairs. (#7132)
Migration: remove the option the command was ignoring. -
Refuse invalid input that used to silently succeed. (#7149)
Migration: pass a valid type or package, an integer limit, or the documented arguments, and catchERR_AMBIGUOUS_COMPONENTfor a multi-package name. -
An empty-string argument no longer discards the rest of the command. (#6620)
Migration: remove the empty string from the invocation; omit the argument to list. -
doctor integration validateexits 1 when there is no package.json. (#7150)
A missing package.json now produces ano_packageerror, so the existing error-severity exit rule applies. A directory with package.json but no integration manifest still exits 0.Migration: run the command in a directory that has a
package.json, or handle exit 1 for that case. -
Doctor fails when the CLI cannot load what astryx.config asks for (#7130)
A newconfigured-integrationscheck fails when an integration named in astryx.config cannot be loaded: not installed, installed without a manifest, or a manifest that throws or fails its schema. Such an integration is withdrawn whole and contributes nothing. The config check fails, instead of warning, when astryx.config imports but the CLI cannot load the project from it.Unchanged: a problem inside one contribution kind (an invalid component doc, a missing or unreadable root, or an unresolved replacement) stays a warning under
integration-issues, and an autolinked dependency that cannot be loaded stays informational.No codemod applies: nothing in a project's source changes; install the integration, repair its manifest, or edit
integrationsin astryx.config.What counts as configured is every name astryx.config lists, including a package set aside for a provider conflict and the package being authored when its own config names it. Migration: install the integration, fix its manifest, or remove it from
integrations; fix the astryx.config field the message names. -
Stop reading the Astryx-owned agent variables ASTRYX_AGENT_ID, ASTRYX_AGENT_SESSION_ID, and ASTRYX_AGENT_METADATA (#7127)
The theme-import change already stopped readingASTRYX_THEME; these three were the last Astryx-owned agent variables. A test now fails on anyprocess.env.ASTRYX_*read in the CLI source.Migration: set
AGENTandAGENT_SESSION_ID, which the CLI already reads, instead of the Astryx-prefixed variants.ASTRYX_AGENT_METADATAhas no replacement variable. -
Remove the
astryx layoutcommand group. (#7137)
Removes the deprecatedastryx layoutcommand group (expand,check,grammar), its three response types (layout.expand,layout.check,layout.grammar), and the programmatic API exports (layoutExpand,layoutCheck,layoutGrammar).Use
astryx buildto choose the template to start from,astryx templateto scaffold it, andastryx docs layoutfor layout guidance. The layout guide is unaffected. The error codesERR_LAYOUT_PARSEandERR_LAYOUT_INVALIDare retained.Removed JSON ids:
LayoutBlockReference.modeLayoutBlockReference.nameLayoutCheckOptions.cwdLayoutCheckOptions.formLayoutCheckOptions.looseLayoutCheckResponse.dataLayoutCheckResponse.data.compactLayoutCheckResponse.data.errorsLayoutCheckResponse.data.formLayoutCheckResponse.data.outlineLayoutCheckResponse.data.validLayoutCheckResponse.data.warningsLayoutCheckResponse.typeLayoutExpandOptions.cwdLayoutExpandOptions.formLayoutExpandOptions.looseLayoutExpandOptions.nameLayoutExpandOptions.targetPathLayoutExpandResponse.dataLayoutExpandResponse.data.blocksReferencedLayoutExpandResponse.data.codeLayoutExpandResponse.data.componentsUsedLayoutExpandResponse.data.demoMediaReplacedLayoutExpandResponse.data.formLayoutExpandResponse.data.statesLayoutExpandResponse.data.todosLayoutExpandResponse.data.warningsLayoutExpandResponse.data.writtenLayoutExpandResponse.typeLayoutGrammarOptions.cwdLayoutGrammarResponse.dataLayoutGrammarResponse.data.aliasesLayoutGrammarResponse.data.textLayoutGrammarResponse.typeLayoutIssue.colLayoutIssue.formattedLayoutIssue.lineLayoutIssue.messageLayoutIssue.suggestions -
theme buildexits 1 when it reports private--_*variables. (#6872)
The old contract reported private-variable errors but exited 0. The corrected contract keeps the same warnings, receipts, generated files, and--checkoutput, but exits 1.To migrate, a CI step that relied on exit 0 must fix the theme's private
--_*inputs.
New Features
-
astryx upgradeaddspadding={0}to BottomSheet elements that do not setpadding, keeping their unpadded content box now that BottomSheet pads like Dialog. Sheets whose only child is a Section or a Layout are left unchanged. A sheet with a Layout anywhere in its content also gets a TODO comment, becausepadding={0}removes the inset between that Layout's regions and the Layout's ownpaddingrestores only its outer edges. A shadowedBottomSheetbinding is left alone, and a second run changes nothing. (#6884) -
astryx upgraderunsmigrate-field-input-styling, which renames rootxstyle/className/styleon Field-composed inputs to the part they styled before:controlXstyle/controlClassName/controlStyleon TextInput, TextArea, NumberInput, FileInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Selector, MultiSelector, and ComplexSelector, andcontainerXstyle/containerClassName/containerStyleon Typeahead, Tokenizer, CheckboxList, RadioList, and Slider. It rewrites JSX written directly on an Astryx import (named, aliased, or namespace). Spreads and wrappers that forward their own styling props are left for manual migration, and a callsite that already sets the target prop gets a TODO instead of a rename. (#7342) -
astryx upgraderenamesemptySearchResultsTexttoemptySearchTextonTokenizer,Typeahead,BaseTypeahead, andChatComposerInputtrigger objects, for the release that removes the old name. (#7289)
Fixes
-
templateandbuildfollow the project's package manager. The nearest directory from the target up to the workspace root that has apackageManagerfield or a lockfile decides. With neither, the command uses npm, whatever package manager launched the CLI. When that directory's lockfiles disagree and nothing it commits picks one,installCommandisnulland the note names the missing packages, the directory, and the lockfiles that disagree, instead of guessing a command that would write a second lockfile. (#7343) -
Teach generated palette references in the full custom-theme authoring guide. (#7268)
Documentation
- Clarify release-branch codemod promotion and version ownership. (#7293)
Themes (@astryxdesign/theme-*)
Breaking Changes
-
matcha's and y2k's spacing steps are rem (
--spacing-2: 0.75rem), so their gaps and padding follow the reader's root font size like the core scale. Every step is the same pixel value at the default 16px root; a reader with a larger root font size now sees proportionally larger spacing on these themes. The CLI's copies of both theme templates and the annotated theme template's spacing example change the same way. (#7374)
Migration: nothing to change to take the new behaviour. To keep fixed pixel spacing on one of these themes, extend it and override the steps in px, which is honoured as written:defineTheme({name: 'app', extends: matchaTheme, tokens: {'--spacing-2': '12px'}}).Also released in
@astryxdesign/cli(templates). -
On touch devices narrower than the
lgbreakpoint ((width < 1024px) and (pointer: coarse)), the 14px-base first-party themes now floor their type base to 16px and re-derive the ratio so Display 1 keeps its desktop size: neutral and chocolate (base 14, ratio 1.2 → 1.1736) and butter and stone (base 14, ratio 1.25 → 1.2225). On phones, body, label and code text rise from 14px to 16px; supporting text, the headings and Display 2 and 3 grow by 1–2px; only Display 1 holds its desktop size. Desktop sizes are unchanged. gothic, matcha and y2k already use a 16px base and need no rule. The CLI's theme templates carry the same rule, so a newly scaffolded theme gets it too. (#6699)
An app theme that extends one of these four themes and sets its owntypography.scaleor type-size tokens inherits this rule, and on touch + narrow screens the rule replaces those values (a base-18 child drops to a 16px body and a 42px Display 1). Append your own rule for the same condition with the values you want; a later rule for the same condition wins.Migration: nothing to change to take the new phone scale. To keep the previous 14px phone scale in an app, extend the theme and append a later rule for the same condition:
defineTheme({name: 'app', extends: neutralTheme, adaptations: {rules: [{when: {pointer: 'coarse', width: {below: 'lg'}}, value: {typography: {scale: {base: 14, ratio: 1.2}}}}]}}). For butter and stone useratio: 1.25and also settokens: {'--text-supporting-size': '12px'}in that rule's value, because those themes pin supporting text at 12px rather than the 11px the scale alone gives. This cannot be rewritten by a codemod: whether an app wants the floor is a product choice.Also released in
@astryxdesign/cli(templates).
Fixes
-
Generate Neutral's runtime palette references from the stops its theme uses, and fail verification when the package or CLI template copy drifts. (#7255)
Also released in
@astryxdesign/cli(templates).
@astryxdesign/build
Fixes
- Preserve native
light-dark()token values in Vite source builds by defaulting Lightning CSS to Astryx's supported browser floor. (#7330)
Contributors
Thanks to everyone who contributed to this release:
@cixzhang @Geervan @harjothkhara @imdreamrunner @josephfarina @ksying @rubyycheung @vjeux
Full Changelog: v0.6.8...v0.7.0
详细ChangeLogv0.6.8
2026年10月11日
Astryx v0.6.8
Astryx v0.6.8 is a patch release focused on interaction reliability, accessible state, and clearer integration tooling.
Core
New features
- Table resize handles now appear when a pointer enters the header, making resizable columns discoverable while preserving focused and scrolling states (#6194).
DropdownMenuItemnow forwards host attributes and DOM event handlers to its row without replacing its built-in role, focus, and menu behavior (#7196).markdownSourceLinesPluginadds opt-in, 1-based inclusive source-line metadata to rendered Markdown blocks and custom renderers, with no change when the plugin is omitted (#7286).
Fixes
- AppShell preserves page content, local state, and input focus across the mobile navigation breakpoint (#7236).
- Calendar and DateRangeInput keep explicit controlled-empty range state, announce required and pending state correctly, and no longer restore a cleared range (#7297).
- DateTimeInput keeps its calendar selection empty after the field is cleared (#7298).
- A DropdownMenu opened by holding a finger stays open when that finger lifts from the trigger (#7241).
- Dragging a mouse press between linked DropdownMenu rows no longer starts the browser's native link drag; the row under release acts normally (#7197).
- Kbd uses the primary text token so key labels meet WCAG AA contrast over neutral keycaps across light and dark themes (#7100).
- Steppers inside Popover, Dialog, BottomSheet, MobileNav, Lightbox, Toast, and other layer roots no longer inherit an outer Stepper's connector gap (#7287).
- A claimed semantic Markdown fence renders through its plugin even when the host supplies
components.code; unclaimed fences still use the host renderer (#7284). - Table resize handles stay keyboard-reachable on touch-first devices, stop at the table boundary without vertical overscroll, and compose with sticky columns regardless of plugin order (#6194).
CLI
integration verifynow accepts the released minimum CLI versions for templatereplaces(0.6.4) andkeywords(0.6.6) instead of requiring unreleased0.7.0(#7265).- Generated theme guidance points new authors to the palette generator and keeps the broad color scale opt-in (#6795).
Contributors
Thanks to @AKnassa, @cixzhang, @ernestt, @Geervan, @josephfarina, @korkt-kim, @rubyycheung, and @vjeux.
详细ChangeLog











