An open source design system that's fully customizable and agent ready
TypeScript
chore: version packages for v0.2.0 (#4561)
Cindy Zhange4013c900d13
diff --git a/.changeset/a11y-avatar-status-name.md b/.changeset/a11y-avatar-status-name.mddeleted file mode 100644index b20cd951f8..0000000000--- a/.changeset/a11y-avatar-status-name.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Avatar: compose the status dot's label into the avatar's accessible name so assistive tech can reach the status the `role="img"` root previously pruned (WCAG 4.1.2)-@bhamodidiff --git a/.changeset/a11y-calendar-selection.md b/.changeset/a11y-calendar-selection.mddeleted file mode 100644index aa62f255ee..0000000000--- a/.changeset/a11y-calendar-selection.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Calendar: expose selected state in day-button accessible names, announce range-selection progress and completion via the polite live region, and set aria-multiselectable on the grid in range mode-@bhamodidiff --git a/.changeset/a11y-command-palette-status.md b/.changeset/a11y-command-palette-status.mddeleted file mode 100644index 83c416020d..0000000000--- a/.changeset/a11y-command-palette-status.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] CommandPalette: announce result counts, empty, and loading states to screen readers via the shared polite live region (WCAG 4.1.3)-@bhamodidiff --git a/.changeset/a11y-content-minors.md b/.changeset/a11y-content-minors.mddeleted file mode 100644index c51a971813..0000000000--- a/.changeset/a11y-content-minors.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Divider: expose the label as the separator's accessible name via aria-labelledby; Spinner: name the status element from the visible label instead of duplicating it as aria-label-@bhamodidiff --git a/.changeset/a11y-file-input-required.md b/.changeset/a11y-file-input-required.mddeleted file mode 100644index 794df0b8b2..0000000000--- a/.changeset/a11y-file-input-required.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] FileInput: announce the required state via a visually hidden description on the trigger (aria-required is unsupported on role="button") and announce validation errors exactly once-@bhamodidiff --git a/.changeset/a11y-focus-trap-hardening.md b/.changeset/a11y-focus-trap-hardening.mddeleted file mode 100644index cefc659317..0000000000--- a/.changeset/a11y-focus-trap-hardening.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] hooks: resolve focus-trap Escape by DOM depth instead of push order, exclude aria-hidden subtrees from trap tab cycles, and auto-clear live regions after announcing so stale status text does not linger-@bhamodidiff --git a/.changeset/a11y-list-role.md b/.changeset/a11y-list-role.mddeleted file mode 100644index 6b8555c843..0000000000--- a/.changeset/a11y-list-role.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] List: keep list semantics for all listStyle variants by always emitting an explicit role="list", since the base style strips list-style-type for every variant and Safari/VoiceOver drops implicit list roles for such lists (WCAG 1.3.1)-@bhamodidiff --git a/.changeset/a11y-number-input-units.md b/.changeset/a11y-number-input-units.mddeleted file mode 100644index bb372c6bfc..0000000000--- a/.changeset/a11y-number-input-units.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] NumberInput: announce the units text through the input's accessible description, and stop TextInput/NumberInput from referencing the non-rendered status message id in aria-describedby inside InputGroup-@bhamodidiff --git a/.changeset/a11y-reset-focus-visible.md b/.changeset/a11y-reset-focus-visible.mddeleted file mode 100644index e54eef43fe..0000000000--- a/.changeset/a11y-reset-focus-visible.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] reset: stop suppressing `:focus-visible` outlines on coarse-pointer devices so keyboard users keep the WCAG 2.4.7 focus indicator-@bhamodidiff --git a/.changeset/a11y-rtl-arrow-keys.md b/.changeset/a11y-rtl-arrow-keys.mddeleted file mode 100644index 3a379b4a7f..0000000000--- a/.changeset/a11y-rtl-arrow-keys.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] hooks: auto-detect RTL direction for arrow-key navigation in useListFocus and useGridFocus (WCAG 1.3.2)-@bhamodidiff --git a/.changeset/a11y-slider-range-aria.md b/.changeset/a11y-slider-range-aria.mddeleted file mode 100644index 12b7110a40..0000000000--- a/.changeset/a11y-slider-range-aria.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Slider: constrain range thumb aria-valuemin/aria-valuemax by the sibling thumb (including minStepsBetweenThumbs) and render the label as a group label wired via aria-labelledby instead of an inert <label htmlFor>-@bhamodidiff --git a/.changeset/a11y-topnav-disabled-href.md b/.changeset/a11y-topnav-disabled-href.mddeleted file mode 100644index 2f57cab5b0..0000000000--- a/.changeset/a11y-topnav-disabled-href.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] TopNav: disabled TopNavItems now render href-less anchors so they no longer navigate or fire clicks, and Outline's active item uses aria-current="location"-@bhamodidiff --git a/.changeset/avatar-interactive-roving.md b/.changeset/avatar-interactive-roving.mddeleted file mode 100644index 136575b074..0000000000--- a/.changeset/avatar-interactive-roving.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] `Avatar` gains optional interactivity via `href`/`onClick` (with `as`/`target`/`rel`), following Button's element-swap trichotomy: `href` renders a link through `useLinkComponent`, `onClick` (no href) renders a `<button type="button">`, and with neither the avatar stays the static, non-focusable element it is today (non-breaking default). Interactive avatars get the focus-visible accent ring and a required accessible name (from `alt`/`name`). Inside `AvatarGroup`, interactive avatars — and an interactive `AvatarGroupOverflow` — now share a single Tab stop with roving ArrowLeft/ArrowRight focus, and the group exposes a screen-reader keyboard hint via `aria-describedby`. A purely static facepile is unchanged. (#4170)--@cixzhangdiff --git a/.changeset/avatar-tooltip-remount.md b/.changeset/avatar-tooltip-remount.mddeleted file mode 100644index 46bb695e26..0000000000--- a/.changeset/avatar-tooltip-remount.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Avatar: avoid remounting the avatar subtree when the name tooltip toggles — render the tooltip as a conditional sibling instead of forking the return so the avatar keeps its position in the React tree (and its image-load state) across tooltip changes.-@cixzhangdiff --git a/.changeset/card-subtle-border.md b/.changeset/card-subtle-border.mddeleted file mode 100644index 3550dd0097..0000000000--- a/.changeset/card-subtle-border.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Card: rest the bordered variant on the subtle `--color-border` instead of `--color-border-emphasized`, so a Card's outer frame matches its own LayoutHeader/LayoutFooter dividers and neighboring ClickableCards instead of rendering a heavier edge.-@ernesttdiff --git a/.changeset/citation-icon-reactnode.md b/.changeset/citation-icon-reactnode.mddeleted file mode 100644index a3758f1951..0000000000--- a/.changeset/citation-icon-reactnode.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] Citation: `CitationSource.icon` now accepts a `ReactNode` (e.g. an Astryx `<Icon>`, an SVG, or a custom element) in addition to an image URL string, and a new `CitationSource.src` field holds a favicon/logo image URL (mirroring `Avatar`/`Thumbnail`). Additive and non-breaking: a string `icon` still renders as the favicon `<img>`, so existing callers are unaffected. When both a node `icon` and `src` are set, the node wins. The icon stays decorative — the accessible name still comes solely from the citation's `aria-label`.--@freddymetadiff --git a/.changeset/cli-blog-leaves.md b/.changeset/cli-blog-leaves.mddeleted file mode 100644index ec2be7d7ab..0000000000--- a/.changeset/cli-blog-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: blog reorganized into api/blog leaf shape — list/detail leaves projecting a shared RSS adapter (`_adapter.mjs` owns all network fetch + feed parsing), with `blog.mjs` kept as a dispatcher+barrel so the same `blog` export, the CLI wrapper, api/index.mjs, and the --json/human output stay byte-identical.-@josephfarinadiff --git a/.changeset/cli-blog-normal-command.md b/.changeset/cli-blog-normal-command.mddeleted file mode 100644index 35d83e9424..0000000000--- a/.changeset/cli-blog-normal-command.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] CLI: `blog` is now a normal, agent-facing command — it appears in `--help` and the capability manifest and supports `--json` (emitting `blog.list` / `blog.detail` envelopes), instead of being hidden. Human output is unchanged; the reader still consumes the public RSS feed. Also scriptable through the `./api` barrel as `blog(slug?)`.-@josephfarinadiff --git a/.changeset/cli-build-leaves.md b/.changeset/cli-build-leaves.mddeleted file mode 100644index 221818446f..0000000000--- a/.changeset/cli-build-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: `build` reorganized into the `api/build` leaf shape — `build.mjs` is now a dispatcher + barrel that routes no-query → `build.help` (`api/build/help/help.mjs`) and a query → `build.kit` (`api/build/kit/kit.mjs`), with each leaf projecting its single `{type, data}` envelope. Pure reorganization: the `build` export, the `./api` barrel, and the CLI consumer are unchanged, and the `--json` and human output stay byte-identical for existing usage.-@josephfarinadiff --git a/.changeset/cli-component-leaves.md b/.changeset/cli-component-leaves.mddeleted file mode 100644index e6f6895e44..0000000000--- a/.changeset/cli-component-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: `component` reorganized into the `api/component` leaf shape over a shared `_adapter` resolver — `component.mjs` is now a dispatcher + barrel that routes to per-type leaves (`list`, `detail`, `detail/props`, `detail/source`, `detail/showcase`, `detail/blocks`), each a thin projection of a subject the adapter resolves once (core/external/scoped/integration ownership, ambiguity handling, and fuzzy search, deduped). Pure reorg: every `--json` envelope and human output stays byte-identical across all modes.-@josephfarinadiff --git a/.changeset/cli-discover-leaves.md b/.changeset/cli-discover-leaves.mddeleted file mode 100644index 8aa66ccd12..0000000000--- a/.changeset/cli-discover-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: discover reorganized into api/discover leaf shape (list, detail, detail/doc, search) behind a shared _adapter that owns external-package discovery and doc loading; discover.mjs is now a dispatcher+barrel keeping the same exports. Pure reorg — `--json` and human output are byte-identical and api/index.mjs + the CLI consumer are untouched. Adds colocated leaf tests.-@josephfarinadiff --git a/.changeset/cli-docs-leaves.md b/.changeset/cli-docs-leaves.mddeleted file mode 100644index a6d7ba6411..0000000000--- a/.changeset/cli-docs-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: docs reorganized into api/docs leaf shape — `docs()` in `api/docs/docs.mjs` is now a dispatcher + barrel that routes by argument shape into three leaves (`api/docs/list`, `api/docs/detail`, `api/docs/detail/section`), each projecting into a single `{ type, data }` envelope. The discovery, overlay loading, and topic resolution shared by ≥2 leaves live in `api/docs/_adapter.mjs`. Pure reorganization: the `docs` export, `api/index.mjs`, the CLI consumer, and all `--json` and human output are unchanged (byte-identical).-@josephfarinadiff --git a/.changeset/cli-drop-cliany-union.md b/.changeset/cli-drop-cliany-union.mddeleted file mode 100644index 745f0125ad..0000000000--- a/.changeset/cli-drop-cliany-union.md+++ /dev/null@@ -1,36 +0,0 @@-----'@astryxdesign/cli': minor------[breaking] cli/json: remove the central `CLIAnyResponse`, `CLIResponseType`, and `CLIResponseDataMap` types. `jsonOut` is now a structural serializer and `parseResponse` / `assertResponse` return the structural `CLIResponse` (`{type, data, meta?}`) instead of the discriminated union, so `result.data` is `unknown` until you narrow it yourself.--Runtime output is unchanged (every `--json` envelope is byte-identical). This only affects consumers importing those types or relying on `parseResponse` / `assertResponse` to auto-narrow `.data`.--To keep discriminated-union narrowing, rebuild it from the individual per-command response types, which are still exported from `@astryxdesign/cli/json`:--```typescript-import type {- ComponentDetailResponse,- ComponentListResponse,- DocsListResponse,- // ...import the responses you consume-} from '@astryxdesign/cli/json';--// Reconstruct the union you care about (replaces CLIAnyResponse):-type MyResponse =- ComponentDetailResponse | ComponentListResponse | DocsListResponse;--// Narrow parseResponse output by casting to your union:-const raw = parseResponse(stdout);-if (!isError(raw)) {- const r = raw as MyResponse;- if (r.type === 'component.detail') r.data.name; // ✅ narrowed-}--// Or wrap assertResponse for narrowing at the call site:-function assertTyped<T extends MyResponse['type']>(raw: unknown, type: T) {- return assertResponse(raw, type) as Extract<MyResponse, {type: T}>;-}-```--@josephfarinadiff --git a/.changeset/cli-hook-leaves.md b/.changeset/cli-hook-leaves.mddeleted file mode 100644index 337e851cf2..0000000000--- a/.changeset/cli-hook-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: hook reorganized into api/hook leaf shape — `hook.mjs` is now a dispatcher+barrel routing to colocated leaves (`list/list.mjs` → hook.list, `detail/detail.mjs` → hook.detail, `detail/params/params.mjs` → hook.detail.params) over a shared `_adapter.mjs` resolver. Pure reorg: `--json` and human output are byte-identical across all modes, and the `hook` export surface (api/index.mjs + CLI) is unchanged.-@josephfarinadiff --git a/.changeset/cli-init-leaves.md b/.changeset/cli-init-leaves.mddeleted file mode 100644index a3d94b16d9..0000000000--- a/.changeset/cli-init-leaves.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: init reorganized into api/init leaf shape — `init.mjs` is now a dispatcher + barrel that routes to `api/init/run/run.mjs` (the default / `--features` / `--all` install path) and `api/init/remove/remove.mjs` (the `--remove-agents` path), with the shared plain-logger contract in `api/init/_adapter.mjs`. Pure reorg: `getNextSteps`, `noopInitLogger`, and the `InitOptions` / `InitLogger` types stay re-exported from the barrel, so api/index.mjs, the CLI command, and the programmatic API are unchanged. Human and `--json` output are byte-identical.--@josephfarinadiff --git a/.changeset/cli-layout-leaves.md b/.changeset/cli-layout-leaves.mddeleted file mode 100644index 6fa66b1751..0000000000--- a/.changeset/cli-layout-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: layout reorganized into the api/layout leaf shape — a shared `_adapter.mjs` (`analyze`/`loadBlocks`/`formatIssue` over `lib/xle`) with thin `expand/`, `check/`, and `grammar/` leaves, plus a `layout.mjs` barrel. `api/index.mjs` and the CLI are unchanged (they import via the barrel). Pure reorg: `layout expand`/`check`/`grammar` `--json` envelopes and human output are byte-identical.-@josephfarinadiff --git a/.changeset/cli-swizzle-leaves.md b/.changeset/cli-swizzle-leaves.mddeleted file mode 100644index 35208462a6..0000000000--- a/.changeset/cli-swizzle-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: swizzle reorganized into api/swizzle leaf shape — the flat command splits into `api/swizzle/list` (`swizzle.list`) and `api/swizzle/copy` (`swizzle.copy` receipt, incl. `rewriteImports`), with shared @astryxdesign/core discovery + component listing deduped in `api/swizzle/_adapter.mjs`, and `swizzle.mjs` reduced to a dispatcher + barrel that keeps its existing exports (`swizzle`, `rewriteImports`). Pure reorganization with no behavior change: human output and every `--json` envelope stay byte-identical, and the CLI command, the `./api` barrel, and the central `types/swizzle` declarations are untouched.-@josephfarinadiff --git a/.changeset/cli-template-leaves.md b/.changeset/cli-template-leaves.mddeleted file mode 100644index dcb023116d..0000000000--- a/.changeset/cli-template-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: template reorganized into api/template leaf shape (shared helpers preserved on the barrel). Pure reorg — `--json` and human output stay byte-identical: shared discovery/IO moved to `api/template/_adapter.mjs`, the command modes split into `list`/`show`/`skeleton`/`copy` leaves, and `template.mjs` becomes a dispatcher + barrel that re-exports every previously-exported symbol (template, discoverTemplates, discoverAll, discoverAllWithErrors, discoverIntegrationTemplatesForOne, findShowcase, findRelatedBlocks, stripTemplateAssetRefs, listTemplates, extractComponents, and the DiscoveredTemplate/TemplateDiscoveryError types) so component/layout/search/init/discover/validate-integration and lib/project keep resolving `api/template/template.mjs` unchanged.-@josephfarinadiff --git a/.changeset/cli-theme-add-list-leaves.md b/.changeset/cli-theme-add-list-leaves.mddeleted file mode 100644index 2cf1c937d7..0000000000--- a/.changeset/cli-theme-add-list-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: `theme add`/`list` are reorganized into the fractal `api/theme/` leaf shape — a shared `_adapter.mjs` (bundled-theme manifest reader + slug resolver) with thin `add/` (copy → `theme.add` receipt) and `list/` (`theme.list`) leaves over it, plus a `theme.mjs` barrel, mirroring the `theme build` extraction (#4462). `themeList()` is now exported from `@astryxdesign/cli/api` alongside `themeAdd`. Pure reorg: `theme list`/`add` `--json` envelopes and human output are byte-identical, with new direct-API tests for both leaves.-@josephfarinadiff --git a/.changeset/cli-theme-multiword-component-keys.md b/.changeset/cli-theme-multiword-component-keys.mddeleted file mode 100644index 545c314f94..0000000000--- a/.changeset/cli-theme-multiword-component-keys.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx theme build`: component-override keys for multi-word components (TextInput, DateInput, NumberInput, DropdownMenu, SideNav, TopNav, etc.) now match the hyphenated class the component actually renders. The known-component registry used de-hyphenated keys, so overrides authored against them emitted dead selectors (`.astryx-textinput` instead of `.astryx-text-input`) that silently never applied (#4109).--@cixzhangdiff --git a/.changeset/cli-thin-api-init.md b/.changeset/cli-thin-api-init.mddeleted file mode 100644index 3605b82585..0000000000--- a/.changeset/cli-thin-api-init.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] CLI: `init` is now fully scriptable through the `./api` barrel — the non-interactive installer (agent-docs cheat sheet, starter template, `--remove-agents`) lives in `api/init` and returns a typed receipt (`init.run` | `init.remove`), with the CLI reduced to a thin parse → API call → render wrapper. Human output is emitted through an injectable logger, so a scripted `init()` stays silent while the CLI output is byte-identical for existing usage.-@josephfarinadiff --git a/.changeset/cli-thin-api-theme-build.md b/.changeset/cli-thin-api-theme-build.mddeleted file mode 100644index cc0ff70ac8..0000000000--- a/.changeset/cli-thin-api-theme-build.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] CLI: `theme build` is now fully scriptable through the `./api` barrel — the ~1,000-line theme compiler (defineTheme extraction, CSS generation via `@astryxdesign/core/theme`, variant/type-declaration + icon-module generation, override validation) lives in `api/theme/build` and returns a typed `theme.build` receipt, with the CLI reduced to a thin parse → API call → render wrapper. Human progress is emitted through an injectable logger, so a scripted `themeBuild()` stays silent while the generated CSS/JS/.d.ts, the `--json` envelope, and human output stay byte-identical for existing usage. Watch mode remains a thin CLI loop.-@josephfarinadiff --git a/.changeset/cli-thin-api-upgrade.md b/.changeset/cli-thin-api-upgrade.mddeleted file mode 100644index 658e0af7f6..0000000000--- a/.changeset/cli-thin-api-upgrade.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] CLI: `upgrade` is now fully scriptable through the `./api` barrel — the version-to-version pipeline (codemods + agent-docs refresh) lives in `api/upgrade` and returns a typed receipt (`upgrade.list` | `upgrade.status` | `upgrade.run`), with the CLI reduced to a thin parse → API call → render wrapper. Human progress is emitted through an injectable logger, so a scripted `upgrade()` stays silent while the CLI output and `--json` envelopes are unchanged for existing usage.-@josephfarinadiff --git a/.changeset/cli-upgrade-leaves.md b/.changeset/cli-upgrade-leaves.mddeleted file mode 100644index cc8951d87c..0000000000--- a/.changeset/cli-upgrade-leaves.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[refactor] CLI: upgrade reorganized into api/upgrade leaf shape — the flat pipeline is split into a dispatcher+barrel (`upgrade.mjs`), a shared `_adapter.mjs` (version detection + agent-docs refresh + codemod selection/execution machinery), and `list`/`status`/`run` leaves (`upgrade.list` | `upgrade.status` | `upgrade.run`). Pure reorg: the `./api` barrel + CLI consumer are unchanged, and both the human output and `--json` envelopes are byte-identical.-@josephfarinadiff --git a/.changeset/codeblock-collapse-chevron-left.md b/.changeset/codeblock-collapse-chevron-left.mddeleted file mode 100644index 8f521f3bf7..0000000000--- a/.changeset/codeblock-collapse-chevron-left.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] CodeBlock: move the collapse chevron to the left of the title/language label, following the leading-disclosure convention (points right `>` when collapsed, down `v` when expanded). It grows into place (width + inline margin) so it slides the title over smoothly instead of popping in and shifting the header. Respects `prefers-reduced-motion` (#4513)-@cixzhangdiff --git a/.changeset/collapsible-trigger-theme-target.md b/.changeset/collapsible-trigger-theme-target.mddeleted file mode 100644index 4154a2bf4e..0000000000--- a/.changeset/collapsible-trigger-theme-target.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] Collapsible: expose the trigger button as a distinct theming target (`astryx-collapsible-trigger`) so themes can style the trigger independently from the content — e.g. a heading font on the trigger while the content keeps the body font.-@freddymetadiff --git a/.changeset/component-hook-list-taxonomy.md b/.changeset/component-hook-list-taxonomy.mddeleted file mode 100644index 2f0848c9ad..0000000000--- a/.changeset/component-hook-list-taxonomy.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': minor------[breaking] component/hook `--json` list responses collapsed. `--detail compact`/`full` previously emitted distinct `component.brief`/`component.full` (and `hook.*`) envelopes; they now all emit `component.list` (resp. `hook.list`) with a `data.detail: 'names' | 'compact' | 'full'` field. Migrate: switch on `data.detail`, not the `.brief`/`.full` discriminator. Removed types: ComponentBriefResponse, ComponentFullResponse, HookBriefResponse, HookFullResponse.--@josephfarinadiff --git a/.changeset/control-size-alignment.md b/.changeset/control-size-alignment.mddeleted file mode 100644index 0dda8d080d..0000000000--- a/.changeset/control-size-alignment.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] CheckboxInput, RadioList, Switch: align control sizes. The visible checkbox and radio controls now fill their size exactly (20px at `sm`, 24px at `md`) instead of being inset 2px. The `sm` Switch track is now 32px wide with a 2px inset.--@cixzhangdiff --git a/.changeset/core-export-baseprops.md b/.changeset/core-export-baseprops.mddeleted file mode 100644index fe3c18780a..0000000000--- a/.changeset/core-export-baseprops.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Export the `BaseProps` type through the `@astryxdesign/core/BaseProps` subpath. Previously it was only reachable through the package barrel, so the `import type {BaseProps} from '@astryxdesign/core/BaseProps'` specifier that `astryx swizzle` generates failed to resolve (#4091).--@cixzhangdiff --git a/.changeset/date-input-clear-theme-target.md b/.changeset/date-input-clear-theme-target.mddeleted file mode 100644index e36fb0f340..0000000000--- a/.changeset/date-input-clear-theme-target.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] DateInput: add `astryx-date-input-clear-icon` and `astryx-date-input-toggle-icon` theme targets on the clear and calendar-toggle glyphs, so consumers can recolor, resize, and hover-style each icon — and style the toggle's open/closed state — via `defineTheme` instead of a fragile descendant selector or raw CSS. The toggle reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.--@freddymetadiff --git a/.changeset/date-range-input-icon-theme-targets.md b/.changeset/date-range-input-icon-theme-targets.mddeleted file mode 100644index 09a754812b..0000000000--- a/.changeset/date-range-input-icon-theme-targets.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] DateRangeInput: add `astryx-date-range-input-clear-icon` and `astryx-date-range-input-toggle-icon` theme targets on the clear and calendar-toggle glyphs, so consumers can recolor, hover-morph, and resize them via `defineTheme` instead of a fragile descendant selector or raw CSS. The toggle icon reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.--@freddymetadiff --git a/.changeset/date-time-input-segment-theme-targets.md b/.changeset/date-time-input-segment-theme-targets.mddeleted file mode 100644index afc9d3f2b6..0000000000--- a/.changeset/date-time-input-segment-theme-targets.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] DateTimeInput: add `astryx-date-time-input-date-segment` and `astryx-date-time-input-time-segment` theme targets on the two segment wrappers, so a theme can restyle their geometry (padding/height/font) via `defineTheme` instead of being unable to reach them at all. Both reflect `size` and `status` as data attributes, mirroring the root target. Default rendering is unchanged.--@AKnassadiff --git a/.changeset/dropdown-menu-hover-guard.md b/.changeset/dropdown-menu-hover-guard.mddeleted file mode 100644index 10bf516b28..0000000000--- a/.changeset/dropdown-menu-hover-guard.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Guard DropdownMenu item hover styles with `@media (hover: hover)` to prevent sticky highlights on touch devices. Forward BaseProps pass-throughs to the menu element.--@cixzhangdiff --git a/.changeset/dropdown-menu-submenus.md b/.changeset/dropdown-menu-submenus.mddeleted file mode 100644index dd2fea5f0b..0000000000--- a/.changeset/dropdown-menu-submenus.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] DropdownMenu: add submenus via a single `DropdownMenuSubMenu` component (or a nested `items` array in data mode). The row adopts DropdownMenuItem semantics (label / icon / description / isDisabled) and its children — or an `items` array — become the flyout content. Flyouts open inline-end with auto-flip, hover-intent, and full keyboard support (Right/Enter/Space opens and focuses the first item; Left/Escape closes and returns focus to the trigger).-@cixzhangdiff --git a/.changeset/field-status-detached-status-icon.md b/.changeset/field-status-detached-status-icon.mddeleted file mode 100644index 25792167e9..0000000000--- a/.changeset/field-status-detached-status-icon.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] FieldStatus renders a leading status icon on the `detached` message so status is not conveyed by color/position alone (WCAG 1.4.1). The icon is decorative for assistive tech; the message text and live-region announcement carry the status. The `attached` variant is unchanged.--@cixzhangdiff --git a/.changeset/fileinput-nested-interactive.md b/.changeset/fileinput-nested-interactive.mddeleted file mode 100644index 1e4df14662..0000000000--- a/.changeset/fileinput-nested-interactive.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] FileInput no longer nests interactive controls (the clear and status buttons) inside a role="button" trigger. The trigger is now a visually hidden button alongside them in a non-interactive container, resolving the nested-interactive a11y violation (WCAG 4.1.2) while keeping click, keyboard, and drag-and-drop behavior. (#4522)--@cixzhangdiff --git a/.changeset/fix-disabled-input-hover.md b/.changeset/fix-disabled-input-hover.mddeleted file mode 100644index f89a4202e3..0000000000--- a/.changeset/fix-disabled-input-hover.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Inputs no longer show the hover ring while disabled. The shared input wrapper's disabled state now suppresses both the base and status hover shadows, so TextInput, TextArea, NumberInput, DateInput, TimeInput, Selector, MultiSelector, Typeahead, and Tokenizer stay visually inert on hover when disabled.-@cixzhangdiff --git a/.changeset/hovercard-theme-target.md b/.changeset/hovercard-theme-target.mddeleted file mode 100644index 775e7e5c75..0000000000--- a/.changeset/hovercard-theme-target.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] HoverCard: move themeProps className to the layer container (where bg/radius/shadow live) so themes can target the visual surface. Forward consumer xstyle/className/style to that same layer container so surface customization lands next to the theme class, instead of silently dropping them.--@cixzhangdiff --git a/.changeset/input-detached-status-icon-dedup.md b/.changeset/input-detached-status-icon-dedup.mddeleted file mode 100644index 81541c0546..0000000000--- a/.changeset/input-detached-status-icon-dedup.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] With `statusVariant="detached"`, bordered inputs no longer render a status icon inside the control (this also covers DateTimeInput, which is fixed to the detached presentation) — the detached message box already carries a leading icon, so the on-field glyph was a duplicate. Also centers the detached message's icon on the first line of text.--@cixzhangdiff --git a/.changeset/input-family-width-prop-docs-tjsk.md b/.changeset/input-family-width-prop-docs-tjsk.mddeleted file mode 100644index aa52a347bc..0000000000--- a/.changeset/input-family-width-prop-docs-tjsk.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[docs] document `width` prop across 17 input component doc files (#4163)--@HelloOjasMutrejadiff --git a/.changeset/input-status-tooltip-variant.md b/.changeset/input-status-tooltip-variant.mddeleted file mode 100644index 356f7edd11..0000000000--- a/.changeset/input-status-tooltip-variant.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] Bordered inputs gain a `statusVariant="tooltip"` option that hides the status message box and surfaces the status as an info-tip on the on-field status icon. The icon is a real focusable button so the status is reachable by everyone: keyboard users tab to it (with a visible focus ring) and see the message on focus, pointer users see it on hover, and touch users tap to toggle it. The message is piped into both the input's and the button's `aria-describedby`, and the tooltip is dismissible with Escape. Added to TextInput, TextArea, NumberInput, DateInput, DateRangeInput, TimeInput, and FileInput.--@cixzhangdiff --git a/.changeset/input-status-variant.md b/.changeset/input-status-variant.mddeleted file mode 100644index 68504ddce8..0000000000--- a/.changeset/input-status-variant.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] The bordered input family now accepts a `statusVariant` prop (`'attached' | 'detached'`, default `'attached'`) that forwards to the underlying `Field`, letting you float the status message below the input with spacing instead of overlapping it. Added to TextInput, TextArea, NumberInput, DateInput, DateRangeInput, TimeInput, Selector, MultiSelector, Typeahead, Tokenizer, FileInput, and PowerSearch. Non-breaking: the default matches today's behavior. (#4187)--@cixzhangdiff --git a/.changeset/lint-no-physical-props.md b/.changeset/lint-no-physical-props.mddeleted file mode 100644index 9d6c2ab5ee..0000000000--- a/.changeset/lint-no-physical-props.md+++ /dev/null@@ -1,13 +0,0 @@-----'@astryxdesign/core': patch------[chore] Add `@astryx/no-physical-properties` ESLint rule that flags physical left/right CSS properties inside `stylex.create()` and suggests the CSS logical equivalent for RTL support.--- KEY-BASED: `marginLeft`/`marginRight`, `paddingLeft`/`paddingRight`, `borderLeft`/`borderRight` (+ their `Width`/`Style`/`Color` longhands), `left`/`right` → `insetInlineStart`/`insetInlineEnd`, and the four physical corner radii → their diagonal-aware logical names (`borderTopLeftRadius` → `borderStartStartRadius`, etc.).-- VALUE-BASED: `textAlign: 'left'|'right'`, `float: 'left'|'right'`, and `clear: 'left'|'right'` (the key stays, only the physical value is flagged).-- Scoped strictly to `stylex.create()` — physical identifiers used elsewhere are ignored.--Shipped at `warn` in both the `strict` and `recommended` tiers until the RTL Phase 4 (Calendar/Slider/Table) physical-property migration lands; it will be flipped to `error` afterward.--@nynexman4464diff --git a/.changeset/menu-hover-focus-single-highlight.md b/.changeset/menu-hover-focus-single-highlight.mddeleted file mode 100644index 9147cd1862..0000000000--- a/.changeset/menu-hover-focus-single-highlight.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] DropdownMenu/ContextMenu: mouse hover now moves the highlight instead of adding a second one, so keyboard focus and pointer hover share a single highlighted item (#4493)-@cixzhangdiff --git a/.changeset/neutral-border-color-alpha.md b/.changeset/neutral-border-color-alpha.mddeleted file mode 100644index d05db2364e..0000000000--- a/.changeset/neutral-border-color-alpha.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/theme-neutral': patch------[fix] Neutral theme: express the light `--color-border` as `#00000014` (translucent black) instead of the opaque `#ebebeb`. Same rendered color over a white surface, but it now blends over any background — matching the translucent dark-mode value.--@kentonquatmandiff --git a/.changeset/plaindate-addmonths-clamp.md b/.changeset/plaindate-addmonths-clamp.mddeleted file mode 100644index 2b8adb6d37..0000000000--- a/.changeset/plaindate-addmonths-clamp.md+++ /dev/null@@ -1,8 +0,0 @@-----'@astryxdesign/core': patch------[fix] utils: clamp plainDateAddMonths to the target month's last day--Adding a month to Jan 31 landed on Mar 3 (Date#setMonth overflow) instead of Feb 28, so month arithmetic from end-of-month dates skipped February entirely. The helper now uses pure month arithmetic and clamps the day, matching Temporal.PlainDate.add and date-fns.-@arham766diff --git a/.changeset/rtl-calendar.md b/.changeset/rtl-calendar.mddeleted file mode 100644index f0c6ece057..0000000000--- a/.changeset/rtl-calendar.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Calendar RTL: month-navigation chevrons now mirror correctly under RTL (via the shared `rtlStyles.mirror` transform on the nav-icon wrapper), and the range-selection / hover-preview fill pills use logical CSS (`insetInline*`, `border*Start/EndRadius`) so their rounded start/end caps follow the reading direction instead of the physical left/right. LTR rendering is unchanged.--@nynexman4464diff --git a/.changeset/rtl-carousel.md b/.changeset/rtl-carousel.mddeleted file mode 100644index aafc84f901..0000000000--- a/.changeset/rtl-carousel.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Carousel now supports RTL: the directional scroll-button chevrons mirror under RTL, the scroll buttons respect RTL scroll semantics (previously the button was a no-op under RTL), and the button pills sit on the correct edges.--@nynexman4464diff --git a/.changeset/rtl-direction-api.md b/.changeset/rtl-direction-api.mddeleted file mode 100644index aa8e6df325..0000000000--- a/.changeset/rtl-direction-api.md+++ /dev/null@@ -1,14 +0,0 @@-----'@astryxdesign/core': patch------[feat] Add RTL direction API: `useDirection()` hook, `getLocaleDirection(locale)` server-safe helper, and an optional `dir` prop on `InternationalizationProvider`.--- `useDirection()` returns `'ltr' | 'rtl'` for the current provider context (falls back to `'ltr'` when called outside a provider).-- `getLocaleDirection(locale)` computes direction from a BCP 47 locale via `Intl.Locale.getTextInfo()` — safe to call from React Server Components and Next.js layouts to set `<html dir>`.-- `<InternationalizationProvider locale="ar">` auto-derives `dir="rtl"`. Pass an explicit `dir` prop to override (useful for RTL testing under an English catalog, or to force LTR).-- Pagination is the first component to consume the hook: prev/next chevron icons flip under RTL while the aria-labels stay semantic.-- Storybook gains a global `Direction` toolbar for toggling every story between LTR and RTL.-- Component-level CSS migrations (borders, chevrons, sliders, calendar range pills, etc.) land in follow-up PRs.--@nynexman4464diff --git a/.changeset/rtl-directional-icons.md b/.changeset/rtl-directional-icons.mddeleted file mode 100644index 61fe399ce3..0000000000--- a/.changeset/rtl-directional-icons.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] RTL: mirror directional disclosure/navigation chevrons under RTL via a shared `rtlStyles.mirror` CSS transform, applied to the icon wrapper in Lightbox and the Table tree / grouped-rows / row-expansion plugins. The mirror composes correctly with the Table chevrons' state-rotation (expanded chevrons still point down under RTL). Semantic aria-labels are unchanged.--@nynexman4464diff --git a/.changeset/rtl-logical-props.md b/.changeset/rtl-logical-props.mddeleted file mode 100644index 7e6b1f2458..0000000000--- a/.changeset/rtl-logical-props.md+++ /dev/null@@ -1,14 +0,0 @@-----'@astryxdesign/core': patch------[fix] RTL: migrate physical `left`/`right` CSS properties to their logical equivalents so components mirror correctly under `dir="rtl"`. This is the Phase 2 mechanical, one-to-one follow-up to the RTL direction API — a no-op in the default LTR direction with no visual change.--- `textAlign: 'left' | 'right'` → `'start' | 'end'` (Selector, Typeahead, Chat trigger menu, DropdownMenu, CommandPalette, NavMenu items).-- `borderLeft*`/`borderRight*` → `borderInlineStart*`/`borderInlineEnd*`, kept as separate start/end declarations (Banner, Table cell/header dividers, DateRangeInput preset sidebar).-- Static `left`/`right` positioning → `insetInlineStart`/`insetInlineEnd` for full-bleed overlays and single-side offsets (Button spinner overlay, Chat dock/blur/placeholder, Field sr-only label, Lightbox close/nav/counter buttons, TabList indicators, Thumbnail remove slot, CodeBlock copy button).-- Inline `marginLeft` indentation → `marginInlineStart` (TreeList rows).--Behavioral/computed positioning (Slider, Resizable, floating layers, anchor-positioned popovers, transform-based centering) and directional radii are intentionally left for later phases.--@nynexman4464diff --git a/.changeset/rtl-phase4-behavioral.md b/.changeset/rtl-phase4-behavioral.mddeleted file mode 100644index 84e740f014..0000000000--- a/.changeset/rtl-phase4-behavioral.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] RTL Phase 4 (behavioral): mirror directional behavior that logical-CSS and icon name-swaps alone couldn't fix. SideNavCollapseButton and TreeListItem now compose `rtlStyles.mirror` on the icon wrapper outside the state rotation, so the chevrons point toward the correct edge in every collapsed/expanded × LTR/RTL combination. TreeList connector/guide lines position via logical `inset-inline-start`/`inset-inline-end` so they mirror to the inline-start (right) edge under RTL alongside the chevron and row indent. Slider positions its thumb, fill, and marks via logical `inset-inline-start` and flips the physical centering transform under RTL, and its pointer/click math measures the value fraction from the inline-start (right) edge under RTL — so a click at 25% of the track maps to 75 instead of 25.-@nynexman4464diff --git a/.changeset/rtl-phase4b-behavioral.md b/.changeset/rtl-phase4b-behavioral.mddeleted file mode 100644index f86693d355..0000000000--- a/.changeset/rtl-phase4b-behavioral.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] RTL Phase 4b behavioral fixes: ChatMessageBubble grouped-bubble tail corners now use logical border radii so the tail follows reading direction (mirrors under RTL, text unaffected); Table sticky-column shadows make their `translateX` and gradient direction-aware so the shadow fades from the pinned edge toward scrolled content in both LTR and RTL instead of rendering inside-out, and gate shadow visibility on `Math.abs(scrollLeft)` so the start/end shadows still appear under RTL (where spec-compliant browsers report a negative `scrollLeft`); ResizeHandle's hit-area bias is now direction-aware (mirrors about center under RTL) and the pointer-drag delta reads the handle's computed direction so dragging resizes intuitively in RTL.-@nynexman4464diff --git a/.changeset/scout-md-block-image-override.md b/.changeset/scout-md-block-image-override.mddeleted file mode 100644index 429135a2d5..0000000000--- a/.changeset/scout-md-block-image-override.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Markdown honors the `components.image` override for standalone (block) images, matching the inline image path. A standalone `` line parses as a block image, whose render path previously hardcoded a bare `<img>` and ignored a supplied `components.image`; it now uses the override just like an inline image does.-@lexsdiff --git a/.changeset/selector-group-headers-on-search.md b/.changeset/selector-group-headers-on-search.mddeleted file mode 100644index 076558102c..0000000000--- a/.changeset/selector-group-headers-on-search.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Selector & MultiSelector: keep group headers visible while searching; hide groups with no matching items. Previously, typing a query flattened grouped options into a single ungrouped list; now each group header stays above its matching items and a group is hidden only when none of its items match.--@cixzhangdiff --git a/.changeset/selector-icon-theme-targets.md b/.changeset/selector-icon-theme-targets.mddeleted file mode 100644index 90a77444ad..0000000000--- a/.changeset/selector-icon-theme-targets.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] Selector & MultiSelector: add `astryx-selector-clear-icon`, `astryx-selector-indicator-icon`, `astryx-multi-selector-clear-icon`, and `astryx-multi-selector-indicator-icon` theme targets on the clear and chevron glyphs, so consumers can recolor, resize, and hover-style each icon — and style the chevron's open/closed state — via `defineTheme` instead of a fragile descendant selector or raw CSS. Each chevron reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.--@freddymetadiff --git a/.changeset/sidenav-footer-no-top-border.md b/.changeset/sidenav-footer-no-top-border.mddeleted file mode 100644index 19bbce4db6..0000000000--- a/.changeset/sidenav-footer-no-top-border.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] SideNav: remove the top border above the footer region so the `footer` slot no longer renders a divider line.-@kentonquatmandiff --git a/.changeset/slider-step-precision.md b/.changeset/slider-step-precision.mddeleted file mode 100644index 1386111472..0000000000--- a/.changeset/slider-step-precision.md+++ /dev/null@@ -1,8 +0,0 @@-----'@astryxdesign/core': patch------[fix] Slider: round snapped values to the min/step decimal precision--With fractional steps, `min + steps * step` accumulated binary floating-point error, so a keyboard nudge on a `step={0.1}` slider emitted `0.30000000000000004` through `onChange`/`onChangeEnd` (and into `aria-valuenow`/the value tooltip once the consumer echoed it back). Snapped values are now rounded to the combined decimal precision of `min` and `step`, which removes only the error — exact steps are unaffected.-@arham766diff --git a/.changeset/switch-size-prop-tjsk.md b/.changeset/switch-size-prop-tjsk.mddeleted file mode 100644index d50737705f..0000000000--- a/.changeset/switch-size-prop-tjsk.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] add size prop (sm / md) to Switch to match CheckboxInput and RadioList boolean control scales (#4230)--@HelloOjasMutrejadiff --git a/.changeset/table-aria-rowindex.md b/.changeset/table-aria-rowindex.mddeleted file mode 100644index 3879d3eb17..0000000000--- a/.changeset/table-aria-rowindex.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] Table: `rowIndexStart` and `rowCount` props expose row numbering as a table-level ARIA concern, so `aria-rowindex`/`aria-rowcount` reflect a row's position in the full dataset: correct across pagination and even when no visible index column is rendered. Opt-in; tables that set neither prop are unchanged. Closes #3939.-@humbertovirtudesdiff --git a/.changeset/tablist-remove-orientation-prop-misleading-no-op-5s4p.md b/.changeset/tablist-remove-orientation-prop-misleading-no-op-5s4p.mddeleted file mode 100644index 5fe2863cbf..0000000000--- a/.changeset/tablist-remove-orientation-prop-misleading-no-op-5s4p.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': minor------[breaking] TabList: remove orientation prop (misleading no-op). The prop did not render vertical tabs; it only toggled the keyboard-hint badge arrows. Arrow navigation has always accepted both axes (horizontal and vertical) via orientation: both in useListFocus. Run astryx upgrade to auto-strip the prop from your code.-@HelloOjasMutrejadiff --git a/.changeset/timestamp-tooltip-timezones.md b/.changeset/timestamp-tooltip-timezones.mddeleted file mode 100644index d887448c6c..0000000000--- a/.changeset/timestamp-tooltip-timezones.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch-'@astryxdesign/cli': patch------[feat] Timestamp: new `tooltipEntries` prop renders the hover tooltip across several time zones and/or formats at once — one line per entry, each with an optional `timezoneID` (IANA id; omit it or pass `'local'` for the viewer's zone), `format` (every non-relative `TimestampFormat` plus `'full'`), and `label`. The default is unchanged: with no entries the tooltip stays the single full absolute line in the viewer's zone. Configuring entries also attaches the tooltip to absolute formats, which previously had none — note that this gives those timestamps a tab stop and focus ring, as relative timestamps already have, so a column of them gains one tab stop per row. `hasTooltip={false}` still suppresses the tooltip, and an empty array counts as no configuration. Also corrects `isTimezoneShown`'s documentation, which claimed it applied to the `system_date_time` and `system_time` formats; it never has, and those formats stay machine-readable. (#4188)-@AKnassadiff --git a/.changeset/token-color-extensible.md b/.changeset/token-color-extensible.mddeleted file mode 100644index 919a6b1f93..0000000000--- a/.changeset/token-color-extensible.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] Token: make the `color` prop extensible via module augmentation. `TokenColor` is now derived from a `TokenColorMap` interface, so theme packages can add custom colors (and `astryx theme build` generates the type augmentation), matching Badge and Button.-@cixzhangdiff --git a/.changeset/tooltip-press-to-dismiss.md b/.changeset/tooltip-press-to-dismiss.mddeleted file mode 100644index 69daaf3ff9..0000000000--- a/.changeset/tooltip-press-to-dismiss.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Tooltip: dismiss the tooltip when its trigger is pressed. Previously the tooltip stayed open through a click (e.g. a "Copy link" button's tooltip lingered after activation); now pressing the trigger hides its own tooltip. Applies to uncontrolled tooltips only.--@cixzhangdiff --git a/.changeset/tree-list-indent-var.md b/.changeset/tree-list-indent-var.mddeleted file mode 100644index 020dd8b8b1..0000000000--- a/.changeset/tree-list-indent-var.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] TreeList: the per-level indentation step is now the themeable `--tree-list-indent` variable (default `var(--spacing-4)`), so a theme can retune the indent metric via `defineTheme` on the `tree-list` target instead of the previously hardcoded, unreachable step (#4308).-@cixzhangdiff --git a/.changeset/treelist-variant.md b/.changeset/treelist-variant.mddeleted file mode 100644index 3578098d27..0000000000--- a/.changeset/treelist-variant.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] TreeList: add a `variant` prop (`'lineGuides' | 'noGuides'`, default `'lineGuides'`) to select the base hierarchy guide-line look. `noGuides` hides the connector lines while keeping indentation intact. Orthogonal to `density` (spacing); the guides stay themeable via the `astryx-tree-list-guide` target. Non-breaking — omitting the prop renders exactly as before.--@cixzhangdiff --git a/.changeset/typeahead-omit-aria-activedescendant-when-search-tjsk.md b/.changeset/typeahead-omit-aria-activedescendant-when-search-tjsk.mddeleted file mode 100644index f4d06dfa2f..0000000000--- a/.changeset/typeahead-omit-aria-activedescendant-when-search-tjsk.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Typeahead: omit aria-activedescendant when search results are empty or index is out of bounds (#4059)-@HelloOjasMutrejadiff --git a/package.json b/package.jsonindex 2a063f8205..25cfba2a5b 100644--- a/package.json+++ b/package.json@@ -27,7 +27,7 @@"package:source": "node scripts/package-source.js","changeset": "changeset","changeset:new": "node scripts/changeset-new.mjs",- "version-packages": "changeset version && node scripts/sync-theme-peer-versions.mjs && node scripts/format-changelogs.mjs",+ "version-packages": "changeset version && node scripts/sync-internal-deps.mjs && node scripts/format-changelogs.mjs","format-changelogs": "node scripts/format-changelogs.mjs","setup-trusted-publishing": "node scripts/npm/setup-trusted-publishing.mjs","verify-exports": "node scripts/verify-exports.mjs",diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.mdindex d129a25308..72005f251f 100644--- a/packages/build/CHANGELOG.md+++ b/packages/build/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/build+# 0.2.0++---+# 0.1.9#### Fixesdiff --git a/packages/build/package.json b/packages/build/package.jsonindex 16c0bb9fe0..41b372c45b 100644--- a/packages/build/package.json+++ b/packages/build/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/build",- "version": "0.1.9",+ "version": "0.2.0","description": "Build plugins for XDS source builds — babel, PostCSS, and Vite integrations","author": "Meta Open Source","license": "MIT",diff --git a/packages/charts/package.json b/packages/charts/package.jsonindex daf75b9dfb..f53da82a07 100644--- a/packages/charts/package.json+++ b/packages/charts/package.json@@ -58,7 +58,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19.0.0","react-dom": ">=19.0.0"},diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex 5b5d3a7a1b..40736310e1 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,50 @@# @xds/cli+# 0.2.0++#### Breaking Changes++- cli/json: remove the central `CLIAnyResponse`, `CLIResponseType`, and `CLIResponseDataMap` types. `jsonOut` is now a structural serializer and `parseResponse` / `assertResponse` return the structural `CLIResponse` (`{type, data, meta?}`) instead of the discriminated union, so `result.data` is `unknown` until you narrow it yourself.+ Runtime output is unchanged (every `--json` envelope is byte-identical). This only affects consumers importing those types or relying on `parseResponse` / `assertResponse` to auto-narrow `.data`.+- component/hook `--json` list responses collapsed. `--detail compact`/`full` previously emitted distinct `component.brief`/`component.full` (and `hook.*`) envelopes; they now all emit `component.list` (resp. `hook.list`) with a `data.detail: 'names' | 'compact' | 'full'` field. Migrate: switch on `data.detail`, not the `.brief`/`.full` discriminator. Removed types: ComponentBriefResponse, ComponentFullResponse, HookBriefResponse, HookFullResponse.++#### New Features++- CLI: `blog` is now a normal, agent-facing command — it appears in `--help` and the capability manifest and supports `--json` (emitting `blog.list` / `blog.detail` envelopes), instead of being hidden. Human output is unchanged; the reader still consumes the public RSS feed. Also scriptable through the `./api` barrel as `blog(slug?)`.+- CLI: `init` is now fully scriptable through the `./api` barrel — the non-interactive installer (agent-docs cheat sheet, starter template, `--remove-agents`) lives in `api/init` and returns a typed receipt (`init.run` | `init.remove`), with the CLI reduced to a thin parse → API call → render wrapper. Human output is emitted through an injectable logger, so a scripted `init()` stays silent while the CLI output is byte-identical for existing usage.+- CLI: `theme build` is now fully scriptable through the `./api` barrel — the ~1,000-line theme compiler (defineTheme extraction, CSS generation via `@astryxdesign/core/theme`, variant/type-declaration + icon-module generation, override validation) lives in `api/theme/build` and returns a typed `theme.build` receipt, with the CLI reduced to a thin parse → API call → render wrapper. Human progress is emitted through an injectable logger, so a scripted `themeBuild()` stays silent while the generated CSS/JS/.d.ts, the `--json` envelope, and human output stay byte-identical for existing usage. Watch mode remains a thin CLI loop.+- CLI: `upgrade` is now fully scriptable through the `./api` barrel — the version-to-version pipeline (codemods + agent-docs refresh) lives in `api/upgrade` and returns a typed receipt (`upgrade.list` | `upgrade.status` | `upgrade.run`), with the CLI reduced to a thin parse → API call → render wrapper. Human progress is emitted through an injectable logger, so a scripted `upgrade()` stays silent while the CLI output and `--json` envelopes are unchanged for existing usage.+- Timestamp: new `tooltipEntries` prop renders the hover tooltip across several time zones and/or formats at once — one line per entry, each with an optional `timezoneID` (IANA id; omit it or pass `'local'` for the viewer's zone), `format` (every non-relative `TimestampFormat` plus `'full'`), and `label`. The default is unchanged: with no entries the tooltip stays the single full absolute line in the viewer's zone. Configuring entries also attaches the tooltip to absolute formats, which previously had none — note that this gives those timestamps a tab stop and focus ring, as relative timestamps already have, so a column of them gains one tab stop per row. `hasTooltip={false}` still suppresses the tooltip, and an empty array counts as no configuration. Also corrects `isTimezoneShown`'s documentation, which claimed it applied to the `system_date_time` and `system_time` formats; it never has, and those formats stay machine-readable. (#4188)++#### Fixes++- `astryx theme build`: component-override keys for multi-word components (TextInput, DateInput, NumberInput, DropdownMenu, SideNav, TopNav, etc.) now match the hyphenated class the component actually renders. The known-component registry used de-hyphenated keys, so overrides authored against them emitted dead selectors (`.astryx-textinput` instead of `.astryx-text-input`) that silently never applied (#4109).++#### Other Changes++- CLI: blog reorganized into api/blog leaf shape — list/detail leaves projecting a shared RSS adapter (`_adapter.mjs` owns all network fetch + feed parsing), with `blog.mjs` kept as a dispatcher+barrel so the same `blog` export, the CLI wrapper, api/index.mjs, and the --json/human output stay byte-identical.+- CLI: `build` reorganized into the `api/build` leaf shape — `build.mjs` is now a dispatcher + barrel that routes no-query → `build.help` (`api/build/help/help.mjs`) and a query → `build.kit` (`api/build/kit/kit.mjs`), with each leaf projecting its single `{type, data}` envelope. Pure reorganization: the `build` export, the `./api` barrel, and the CLI consumer are unchanged, and the `--json` and human output stay byte-identical for existing usage.+- CLI: `component` reorganized into the `api/component` leaf shape over a shared `_adapter` resolver — `component.mjs` is now a dispatcher + barrel that routes to per-type leaves (`list`, `detail`, `detail/props`, `detail/source`, `detail/showcase`, `detail/blocks`), each a thin projection of a subject the adapter resolves once (core/external/scoped/integration ownership, ambiguity handling, and fuzzy search, deduped). Pure reorg: every `--json` envelope and human output stays byte-identical across all modes.+- CLI: discover reorganized into api/discover leaf shape (list, detail, detail/doc, search) behind a shared _adapter that owns external-package discovery and doc loading; discover.mjs is now a dispatcher+barrel keeping the same exports. Pure reorg — `--json` and human output are byte-identical and api/index.mjs + the CLI consumer are untouched. Adds colocated leaf tests.+- CLI: docs reorganized into api/docs leaf shape — `docs()` in `api/docs/docs.mjs` is now a dispatcher + barrel that routes by argument shape into three leaves (`api/docs/list`, `api/docs/detail`, `api/docs/detail/section`), each projecting into a single `{ type, data }` envelope. The discovery, overlay loading, and topic resolution shared by ≥2 leaves live in `api/docs/_adapter.mjs`. Pure reorganization: the `docs` export, `api/index.mjs`, the CLI consumer, and all `--json` and human output are unchanged (byte-identical).+- CLI: hook reorganized into api/hook leaf shape — `hook.mjs` is now a dispatcher+barrel routing to colocated leaves (`list/list.mjs` → hook.list, `detail/detail.mjs` → hook.detail, `detail/params/params.mjs` → hook.detail.params) over a shared `_adapter.mjs` resolver. Pure reorg: `--json` and human output are byte-identical across all modes, and the `hook` export surface (api/index.mjs + CLI) is unchanged.+- CLI: init reorganized into api/init leaf shape — `init.mjs` is now a dispatcher + barrel that routes to `api/init/run/run.mjs` (the default / `--features` / `--all` install path) and `api/init/remove/remove.mjs` (the `--remove-agents` path), with the shared plain-logger contract in `api/init/_adapter.mjs`. Pure reorg: `getNextSteps`, `noopInitLogger`, and the `InitOptions` / `InitLogger` types stay re-exported from the barrel, so api/index.mjs, the CLI command, and the programmatic API are unchanged. Human and `--json` output are byte-identical.+- CLI: layout reorganized into the api/layout leaf shape — a shared `_adapter.mjs` (`analyze`/`loadBlocks`/`formatIssue` over `lib/xle`) with thin `expand/`, `check/`, and `grammar/` leaves, plus a `layout.mjs` barrel. `api/index.mjs` and the CLI are unchanged (they import via the barrel). Pure reorg: `layout expand`/`check`/`grammar` `--json` envelopes and human output are byte-identical.+- CLI: swizzle reorganized into api/swizzle leaf shape — the flat command splits into `api/swizzle/list` (`swizzle.list`) and `api/swizzle/copy` (`swizzle.copy` receipt, incl. `rewriteImports`), with shared @astryxdesign/core discovery + component listing deduped in `api/swizzle/_adapter.mjs`, and `swizzle.mjs` reduced to a dispatcher + barrel that keeps its existing exports (`swizzle`, `rewriteImports`). Pure reorganization with no behavior change: human output and every `--json` envelope stay byte-identical, and the CLI command, the `./api` barrel, and the central `types/swizzle` declarations are untouched.+- CLI: template reorganized into api/template leaf shape (shared helpers preserved on the barrel). Pure reorg — `--json` and human output stay byte-identical: shared discovery/IO moved to `api/template/_adapter.mjs`, the command modes split into `list`/`show`/`skeleton`/`copy` leaves, and `template.mjs` becomes a dispatcher + barrel that re-exports every previously-exported symbol (template, discoverTemplates, discoverAll, discoverAllWithErrors, discoverIntegrationTemplatesForOne, findShowcase, findRelatedBlocks, stripTemplateAssetRefs, listTemplates, extractComponents, and the DiscoveredTemplate/TemplateDiscoveryError types) so component/layout/search/init/discover/validate-integration and lib/project keep resolving `api/template/template.mjs` unchanged.+- CLI: `theme add`/`list` are reorganized into the fractal `api/theme/` leaf shape — a shared `_adapter.mjs` (bundled-theme manifest reader + slug resolver) with thin `add/` (copy → `theme.add` receipt) and `list/` (`theme.list`) leaves over it, plus a `theme.mjs` barrel, mirroring the `theme build` extraction (#4462). `themeList()` is now exported from `@astryxdesign/cli/api` alongside `themeAdd`. Pure reorg: `theme list`/`add` `--json` envelopes and human output are byte-identical, with new direct-API tests for both leaves.+- CLI: upgrade reorganized into api/upgrade leaf shape — the flat pipeline is split into a dispatcher+barrel (`upgrade.mjs`), a shared `_adapter.mjs` (version detection + agent-docs refresh + codemod selection/execution machinery), and `list`/`status`/`run` leaves (`upgrade.list` | `upgrade.status` | `upgrade.run`). Pure reorg: the `./api` barrel + CLI consumer are unchanged, and both the human output and `--json` envelopes are byte-identical.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa+- @cixzhang+- @josephfarina++---+# 0.1.9#### New Featuresdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex e24ceec61a..e1e44b018f 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/cli",- "version": "0.1.9",+ "version": "0.2.0","displayName": "CLI","description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.","author": "Meta Open Source",diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.mdindex 6c8c86b645..9fb1887986 100644--- a/packages/core/CHANGELOG.md+++ b/packages/core/CHANGELOG.md@@ -1,5 +1,112 @@# @xds/core+# 0.2.0++#### Breaking Changes++- TabList: remove orientation prop (misleading no-op). The prop did not render vertical tabs; it only toggled the keyboard-hint badge arrows. Arrow navigation has always accepted both axes (horizontal and vertical) via orientation: both in useListFocus. Run astryx upgrade to auto-strip the prop from your code.++#### New Features++- `Avatar` gains optional interactivity via `href`/`onClick` (with `as`/`target`/`rel`), following Button's element-swap trichotomy: `href` renders a link through `useLinkComponent`, `onClick` (no href) renders a `<button type="button">`, and with neither the avatar stays the static, non-focusable element it is today (non-breaking default). Interactive avatars get the focus-visible accent ring and a required accessible name (from `alt`/`name`). Inside `AvatarGroup`, interactive avatars — and an interactive `AvatarGroupOverflow` — now share a single Tab stop with roving ArrowLeft/ArrowRight focus, and the group exposes a screen-reader keyboard hint via `aria-describedby`. A purely static facepile is unchanged. (#4170)+- Citation: `CitationSource.icon` now accepts a `ReactNode` (e.g. an Astryx `<Icon>`, an SVG, or a custom element) in addition to an image URL string, and a new `CitationSource.src` field holds a favicon/logo image URL (mirroring `Avatar`/`Thumbnail`). Additive and non-breaking: a string `icon` still renders as the favicon `<img>`, so existing callers are unaffected. When both a node `icon` and `src` are set, the node wins. The icon stays decorative — the accessible name still comes solely from the citation's `aria-label`.+- CodeBlock: move the collapse chevron to the left of the title/language label, following the leading-disclosure convention (points right `>` when collapsed, down `v` when expanded). It grows into place (width + inline margin) so it slides the title over smoothly instead of popping in and shifting the header. Respects `prefers-reduced-motion` (#4513)+- Collapsible: expose the trigger button as a distinct theming target (`astryx-collapsible-trigger`) so themes can style the trigger independently from the content — e.g. a heading font on the trigger while the content keeps the body font.+- DateInput: add `astryx-date-input-clear-icon` and `astryx-date-input-toggle-icon` theme targets on the clear and calendar-toggle glyphs, so consumers can recolor, resize, and hover-style each icon — and style the toggle's open/closed state — via `defineTheme` instead of a fragile descendant selector or raw CSS. The toggle reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.+- DateRangeInput: add `astryx-date-range-input-clear-icon` and `astryx-date-range-input-toggle-icon` theme targets on the clear and calendar-toggle glyphs, so consumers can recolor, hover-morph, and resize them via `defineTheme` instead of a fragile descendant selector or raw CSS. The toggle icon reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.+- DateTimeInput: add `astryx-date-time-input-date-segment` and `astryx-date-time-input-time-segment` theme targets on the two segment wrappers, so a theme can restyle their geometry (padding/height/font) via `defineTheme` instead of being unable to reach them at all. Both reflect `size` and `status` as data attributes, mirroring the root target. Default rendering is unchanged.+- DropdownMenu: add submenus via a single `DropdownMenuSubMenu` component (or a nested `items` array in data mode). The row adopts DropdownMenuItem semantics (label / icon / description / isDisabled) and its children — or an `items` array — become the flyout content. Flyouts open inline-end with auto-flip, hover-intent, and full keyboard support (Right/Enter/Space opens and focuses the first item; Left/Escape closes and returns focus to the trigger).+- Bordered inputs gain a `statusVariant="tooltip"` option that hides the status message box and surfaces the status as an info-tip on the on-field status icon. The icon is a real focusable button so the status is reachable by everyone: keyboard users tab to it (with a visible focus ring) and see the message on focus, pointer users see it on hover, and touch users tap to toggle it. The message is piped into both the input's and the button's `aria-describedby`, and the tooltip is dismissible with Escape. Added to TextInput, TextArea, NumberInput, DateInput, DateRangeInput, TimeInput, and FileInput.+- The bordered input family now accepts a `statusVariant` prop (`'attached' | 'detached'`, default `'attached'`) that forwards to the underlying `Field`, letting you float the status message below the input with spacing instead of overlapping it. Added to TextInput, TextArea, NumberInput, DateInput, DateRangeInput, TimeInput, Selector, MultiSelector, Typeahead, Tokenizer, FileInput, and PowerSearch. Non-breaking: the default matches today's behavior. (#4187)+- Add RTL direction API: `useDirection()` hook, `getLocaleDirection(locale)` server-safe helper, and an optional `dir` prop on `InternationalizationProvider`.+- RTL: mirror directional disclosure/navigation chevrons under RTL via a shared `rtlStyles.mirror` CSS transform, applied to the icon wrapper in Lightbox and the Table tree / grouped-rows / row-expansion plugins. The mirror composes correctly with the Table chevrons' state-rotation (expanded chevrons still point down under RTL). Semantic aria-labels are unchanged.+- Selector & MultiSelector: add `astryx-selector-clear-icon`, `astryx-selector-indicator-icon`, `astryx-multi-selector-clear-icon`, and `astryx-multi-selector-indicator-icon` theme targets on the clear and chevron glyphs, so consumers can recolor, resize, and hover-style each icon — and style the chevron's open/closed state — via `defineTheme` instead of a fragile descendant selector or raw CSS. Each chevron reflects its open/closed state as a `data-state` attribute. `Icon` now fully handles its styling props (`className`, `style`, `xstyle`) so they compose with its base styles instead of being dropped. Default rendering is unchanged.+- add size prop (sm / md) to Switch to match CheckboxInput and RadioList boolean control scales (#4230)+- Table: `rowIndexStart` and `rowCount` props expose row numbering as a table-level ARIA concern, so `aria-rowindex`/`aria-rowcount` reflect a row's position in the full dataset: correct across pagination and even when no visible index column is rendered. Opt-in; tables that set neither prop are unchanged. Closes #3939.+- Timestamp: new `tooltipEntries` prop renders the hover tooltip across several time zones and/or formats at once — one line per entry, each with an optional `timezoneID` (IANA id; omit it or pass `'local'` for the viewer's zone), `format` (every non-relative `TimestampFormat` plus `'full'`), and `label`. The default is unchanged: with no entries the tooltip stays the single full absolute line in the viewer's zone. Configuring entries also attaches the tooltip to absolute formats, which previously had none — note that this gives those timestamps a tab stop and focus ring, as relative timestamps already have, so a column of them gains one tab stop per row. `hasTooltip={false}` still suppresses the tooltip, and an empty array counts as no configuration. Also corrects `isTimezoneShown`'s documentation, which claimed it applied to the `system_date_time` and `system_time` formats; it never has, and those formats stay machine-readable. (#4188)+- Token: make the `color` prop extensible via module augmentation. `TokenColor` is now derived from a `TokenColorMap` interface, so theme packages can add custom colors (and `astryx theme build` generates the type augmentation), matching Badge and Button.+- TreeList: the per-level indentation step is now the themeable `--tree-list-indent` variable (default `var(--spacing-4)`), so a theme can retune the indent metric via `defineTheme` on the `tree-list` target instead of the previously hardcoded, unreachable step (#4308).+- TreeList: add a `variant` prop (`'lineGuides' | 'noGuides'`, default `'lineGuides'`) to select the base hierarchy guide-line look. `noGuides` hides the connector lines while keeping indentation intact. Orthogonal to `density` (spacing); the guides stay themeable via the `astryx-tree-list-guide` target. Non-breaking — omitting the prop renders exactly as before.++#### Fixes++- Avatar: compose the status dot's label into the avatar's accessible name so assistive tech can reach the status the `role="img"` root previously pruned (WCAG 4.1.2)+- Calendar: expose selected state in day-button accessible names, announce range-selection progress and completion via the polite live region, and set aria-multiselectable on the grid in range mode+- CommandPalette: announce result counts, empty, and loading states to screen readers via the shared polite live region (WCAG 4.1.3)+- Divider: expose the label as the separator's accessible name via aria-labelledby; Spinner: name the status element from the visible label instead of duplicating it as aria-label+- FileInput: announce the required state via a visually hidden description on the trigger (aria-required is unsupported on role="button") and announce validation errors exactly once+- hooks: resolve focus-trap Escape by DOM depth instead of push order, exclude aria-hidden subtrees from trap tab cycles, and auto-clear live regions after announcing so stale status text does not linger+- List: keep list semantics for all listStyle variants by always emitting an explicit role="list", since the base style strips list-style-type for every variant and Safari/VoiceOver drops implicit list roles for such lists (WCAG 1.3.1)+- NumberInput: announce the units text through the input's accessible description, and stop TextInput/NumberInput from referencing the non-rendered status message id in aria-describedby inside InputGroup+- reset: stop suppressing `:focus-visible` outlines on coarse-pointer devices so keyboard users keep the WCAG 2.4.7 focus indicator+- hooks: auto-detect RTL direction for arrow-key navigation in useListFocus and useGridFocus (WCAG 1.3.2)+- Slider: constrain range thumb aria-valuemin/aria-valuemax by the sibling thumb (including minStepsBetweenThumbs) and render the label as a group label wired via aria-labelledby instead of an inert <label htmlFor>+- TopNav: disabled TopNavItems now render href-less anchors so they no longer navigate or fire clicks, and Outline's active item uses aria-current="location"+- Avatar: avoid remounting the avatar subtree when the name tooltip toggles — render the tooltip as a conditional sibling instead of forking the return so the avatar keeps its position in the React tree (and its image-load state) across tooltip changes.+- Card: rest the bordered variant on the subtle `--color-border` instead of `--color-border-emphasized`, so a Card's outer frame matches its own LayoutHeader/LayoutFooter dividers and neighboring ClickableCards instead of rendering a heavier edge.+- CheckboxInput, RadioList, Switch: align control sizes. The visible checkbox and radio controls now fill their size exactly (20px at `sm`, 24px at `md`) instead of being inset 2px. The `sm` Switch track is now 32px wide with a 2px inset.+- Export the `BaseProps` type through the `@astryxdesign/core/BaseProps` subpath. Previously it was only reachable through the package barrel, so the `import type {BaseProps} from '@astryxdesign/core/BaseProps'` specifier that `astryx swizzle` generates failed to resolve (#4091).+- Guard DropdownMenu item hover styles with `@media (hover: hover)` to prevent sticky highlights on touch devices. Forward BaseProps pass-throughs to the menu element.+- FieldStatus renders a leading status icon on the `detached` message so status is not conveyed by color/position alone (WCAG 1.4.1). The icon is decorative for assistive tech; the message text and live-region announcement carry the status. The `attached` variant is unchanged.+- FileInput no longer nests interactive controls (the clear and status buttons) inside a role="button" trigger. The trigger is now a visually hidden button alongside them in a non-interactive container, resolving the nested-interactive a11y violation (WCAG 4.1.2) while keeping click, keyboard, and drag-and-drop behavior. (#4522)+- Inputs no longer show the hover ring while disabled. The shared input wrapper's disabled state now suppresses both the base and status hover shadows, so TextInput, TextArea, NumberInput, DateInput, TimeInput, Selector, MultiSelector, Typeahead, and Tokenizer stay visually inert on hover when disabled.+- HoverCard: move themeProps className to the layer container (where bg/radius/shadow live) so themes can target the visual surface. Forward consumer xstyle/className/style to that same layer container so surface customization lands next to the theme class, instead of silently dropping them.+- With `statusVariant="detached"`, bordered inputs no longer render a status icon inside the control (this also covers DateTimeInput, which is fixed to the detached presentation) — the detached message box already carries a leading icon, so the on-field glyph was a duplicate. Also centers the detached message's icon on the first line of text.+- DropdownMenu/ContextMenu: mouse hover now moves the highlight instead of adding a second one, so keyboard focus and pointer hover share a single highlighted item (#4493)+- utils: clamp plainDateAddMonths to the target month's last day+ Adding a month to Jan 31 landed on Mar 3 (Date#setMonth overflow) instead of Feb 28, so month arithmetic from end-of-month dates skipped February entirely. The helper now uses pure month arithmetic and clamps the day, matching Temporal.PlainDate.add and date-fns.+- Calendar RTL: month-navigation chevrons now mirror correctly under RTL (via the shared `rtlStyles.mirror` transform on the nav-icon wrapper), and the range-selection / hover-preview fill pills use logical CSS (`insetInline*`, `border*Start/EndRadius`) so their rounded start/end caps follow the reading direction instead of the physical left/right. LTR rendering is unchanged.+- Carousel now supports RTL: the directional scroll-button chevrons mirror under RTL, the scroll buttons respect RTL scroll semantics (previously the button was a no-op under RTL), and the button pills sit on the correct edges.+- RTL: migrate physical `left`/`right` CSS properties to their logical equivalents so components mirror correctly under `dir="rtl"`. This is the Phase 2 mechanical, one-to-one follow-up to the RTL direction API — a no-op in the default LTR direction with no visual change.+- RTL Phase 4 (behavioral): mirror directional behavior that logical-CSS and icon name-swaps alone couldn't fix. SideNavCollapseButton and TreeListItem now compose `rtlStyles.mirror` on the icon wrapper outside the state rotation, so the chevrons point toward the correct edge in every collapsed/expanded × LTR/RTL combination. TreeList connector/guide lines position via logical `inset-inline-start`/`inset-inline-end` so they mirror to the inline-start (right) edge under RTL alongside the chevron and row indent. Slider positions its thumb, fill, and marks via logical `inset-inline-start` and flips the physical centering transform under RTL, and its pointer/click math measures the value fraction from the inline-start (right) edge under RTL — so a click at 25% of the track maps to 75 instead of 25.+- RTL Phase 4b behavioral fixes: ChatMessageBubble grouped-bubble tail corners now use logical border radii so the tail follows reading direction (mirrors under RTL, text unaffected); Table sticky-column shadows make their `translateX` and gradient direction-aware so the shadow fades from the pinned edge toward scrolled content in both LTR and RTL instead of rendering inside-out, and gate shadow visibility on `Math.abs(scrollLeft)` so the start/end shadows still appear under RTL (where spec-compliant browsers report a negative `scrollLeft`); ResizeHandle's hit-area bias is now direction-aware (mirrors about center under RTL) and the pointer-drag delta reads the handle's computed direction so dragging resizes intuitively in RTL.+- Markdown honors the `components.image` override for standalone (block) images, matching the inline image path. A standalone `` line parses as a block image, whose render path previously hardcoded a bare `<img>` and ignored a supplied `components.image`; it now uses the override just like an inline image does.+- Selector & MultiSelector: keep group headers visible while searching; hide groups with no matching items. Previously, typing a query flattened grouped options into a single ungrouped list; now each group header stays above its matching items and a group is hidden only when none of its items match.+- SideNav: remove the top border above the footer region so the `footer` slot no longer renders a divider line.+- Slider: round snapped values to the min/step decimal precision+ With fractional steps, `min + steps * step` accumulated binary floating-point error, so a keyboard nudge on a `step={0.1}` slider emitted `0.30000000000000004` through `onChange`/`onChangeEnd` (and into `aria-valuenow`/the value tooltip once the consumer echoed it back). Snapped values are now rounded to the combined decimal precision of `min` and `step`, which removes only the error — exact steps are unaffected.+- Tooltip: dismiss the tooltip when its trigger is pressed. Previously the tooltip stayed open through a click (e.g. a "Copy link" button's tooltip lingered after activation); now pressing the trigger hides its own tooltip. Applies to uncontrolled tooltips only.+- Typeahead: omit aria-activedescendant when search results are empty or index is out of bounds (#4059)++#### Documentation++- document `width` prop across 17 input component doc files (#4163)++#### Other Changes++- Add `@astryx/no-physical-properties` ESLint rule that flags physical left/right CSS properties inside `stylex.create()` and suggests the CSS logical equivalent for RTL support.+- KEY-BASED: `marginLeft`/`marginRight`, `paddingLeft`/`paddingRight`, `borderLeft`/`borderRight` (+ their `Width`/`Style`/`Color` longhands), `left`/`right` → `insetInlineStart`/`insetInlineEnd`, and the four physical corner radii → their diagonal-aware logical names (`borderTopLeftRadius` → `borderStartStartRadius`, etc.).+- VALUE-BASED: `textAlign: 'left'|'right'`, `float: 'left'|'right'`, and `clear: 'left'|'right'` (the key stays, only the physical value is flagged).+- Scoped strictly to `stylex.create()` — physical identifiers used elsewhere are ignored.+- `useDirection()` returns `'ltr' | 'rtl'` for the current provider context (falls back to `'ltr'` when called outside a provider).+- `getLocaleDirection(locale)` computes direction from a BCP 47 locale via `Intl.Locale.getTextInfo()` — safe to call from React Server Components and Next.js layouts to set `<html dir>`.+- `<InternationalizationProvider locale="ar">` auto-derives `dir="rtl"`. Pass an explicit `dir` prop to override (useful for RTL testing under an English catalog, or to force LTR).+- Pagination is the first component to consume the hook: prev/next chevron icons flip under RTL while the aria-labels stay semantic.+- Storybook gains a global `Direction` toolbar for toggling every story between LTR and RTL.+- Component-level CSS migrations (borders, chevrons, sliders, calendar range pills, etc.) land in follow-up PRs.+- `textAlign: 'left' | 'right'` → `'start' | 'end'` (Selector, Typeahead, Chat trigger menu, DropdownMenu, CommandPalette, NavMenu items).+- `borderLeft*`/`borderRight*` → `borderInlineStart*`/`borderInlineEnd*`, kept as separate start/end declarations (Banner, Table cell/header dividers, DateRangeInput preset sidebar).+- Static `left`/`right` positioning → `insetInlineStart`/`insetInlineEnd` for full-bleed overlays and single-side offsets (Button spinner overlay, Chat dock/blur/placeholder, Field sr-only label, Lightbox close/nav/counter buttons, TabList indicators, Thumbnail remove slot, CodeBlock copy button).+- Inline `marginLeft` indentation → `marginInlineStart` (TreeList rows).++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa+- @arham766+- @bhamodi+- @cixzhang+- @ernestt+- @freddymeta+- @HelloOjasMutreja+- @humbertovirtudes+- @kentonquatman+- @lexs+- @nynexman4464++---+# 0.1.9#### New Featuresdiff --git a/packages/core/package.json b/packages/core/package.jsonindex 579ad560f8..d948fd7e08 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/core",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Astryx Core","description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.","author": "Meta Open Source",diff --git a/packages/lab/package.json b/packages/lab/package.jsonindex cfff707de3..8b0f7a4500 100644--- a/packages/lab/package.json+++ b/packages/lab/package.json@@ -58,7 +58,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19.0.0","react-dom": ">=19.0.0","lexical": "^0.46.0",diff --git a/packages/richtext/package.json b/packages/richtext/package.jsonindex 4d70d20b4f..ebb1e80ffa 100644--- a/packages/richtext/package.json+++ b/packages/richtext/package.json@@ -55,7 +55,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19.0.0","react-dom": ">=19.0.0"}diff --git a/packages/themes/butter/CHANGELOG.md b/packages/themes/butter/CHANGELOG.mdindex 4c8e21e37a..eb1783ecc6 100644--- a/packages/themes/butter/CHANGELOG.md+++ b/packages/themes/butter/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-butter+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/butter/package.json b/packages/themes/butter/package.jsonindex 67396a8fd3..81eab9e91e 100644--- a/packages/themes/butter/package.json+++ b/packages/themes/butter/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-butter",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Butter Theme","private": false,"description": "Warm, creamy yellows with a friendly blue accent. Playful enough for consumer surfaces, soft enough to stay readable.",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/chocolate/CHANGELOG.md b/packages/themes/chocolate/CHANGELOG.mdindex 3f1a0ee3d1..2d597657df 100644--- a/packages/themes/chocolate/CHANGELOG.md+++ b/packages/themes/chocolate/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-chocolate+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/chocolate/package.json b/packages/themes/chocolate/package.jsonindex a768333128..0e00fbb59a 100644--- a/packages/themes/chocolate/package.json+++ b/packages/themes/chocolate/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-chocolate",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Chocolate Theme","private": false,"description": "Warm chocolate theme for Astryx — rich brown palette with Fraunces headings, Albert Sans body, and Lucide icons",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/gothic/CHANGELOG.md b/packages/themes/gothic/CHANGELOG.mdindex 01be70c5eb..d22b36c627 100644--- a/packages/themes/gothic/CHANGELOG.md+++ b/packages/themes/gothic/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-gothic+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/gothic/package.json b/packages/themes/gothic/package.jsonindex 908c87a69a..bb4301d7bb 100644--- a/packages/themes/gothic/package.json+++ b/packages/themes/gothic/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-gothic",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Gothic Theme","private": false,"description": "Deep blue-grays and a signature display serif. Dramatic and editorial, for surfaces that want to be remembered.",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/matcha/CHANGELOG.md b/packages/themes/matcha/CHANGELOG.mdindex 21312d3d41..f05f42c2e3 100644--- a/packages/themes/matcha/CHANGELOG.md+++ b/packages/themes/matcha/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-matcha+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/matcha/package.json b/packages/themes/matcha/package.jsonindex 7bcc9402c1..a3d28ec4e9 100644--- a/packages/themes/matcha/package.json+++ b/packages/themes/matcha/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-matcha",- "version": "0.1.9",+ "version": "0.2.0","private": false,"description": "Earthy greens with a calm, organic feel. Naturalistic and grounded, great for wellness or content-first apps.","author": "Meta Open Source",@@ -51,11 +51,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/neutral/CHANGELOG.md b/packages/themes/neutral/CHANGELOG.mdindex 1ff8155c7d..36d63204d8 100644--- a/packages/themes/neutral/CHANGELOG.md+++ b/packages/themes/neutral/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-neutral+# 0.2.0++#### Fixes++- Neutral theme: express the light `--color-border` as `#00000014` (translucent black) instead of the opaque `#ebebeb`. Same rendered color over a white surface, but it now blends over any background — matching the translucent dark-mode value.++#### Contributors++Thanks to everyone who contributed to this release:++- @kentonquatman++---+# 0.1.9---diff --git a/packages/themes/neutral/package.json b/packages/themes/neutral/package.jsonindex a279dcfc67..49f706e3f5 100644--- a/packages/themes/neutral/package.json+++ b/packages/themes/neutral/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-neutral",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Neutral Theme","private": false,"description": "Restrained warm grays. Minimal and quiet, so the content stays the focus.",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/stone/CHANGELOG.md b/packages/themes/stone/CHANGELOG.mdindex 41679d0c38..43305bb381 100644--- a/packages/themes/stone/CHANGELOG.md+++ b/packages/themes/stone/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-stone+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/stone/package.json b/packages/themes/stone/package.jsonindex a94bd25b5a..0b5bd824b0 100644--- a/packages/themes/stone/package.json+++ b/packages/themes/stone/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-stone",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Stone Theme","private": false,"description": "Warm stone and slate, earthy and understated, with just enough character to feel handcrafted.",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/packages/themes/y2k/CHANGELOG.md b/packages/themes/y2k/CHANGELOG.mdindex be354d1203..043d45eb91 100644--- a/packages/themes/y2k/CHANGELOG.md+++ b/packages/themes/y2k/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-y2k+# 0.2.0++---+# 0.1.9---diff --git a/packages/themes/y2k/package.json b/packages/themes/y2k/package.jsonindex 1ef71ae393..8f2f625f3d 100644--- a/packages/themes/y2k/package.json+++ b/packages/themes/y2k/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-y2k",- "version": "0.1.9",+ "version": "0.2.0","displayName": "Y2K Theme","private": false,"description": "Hot pinks, lime greens, and Poppins. Bubbly, playful, and unmistakably retro.",@@ -52,11 +52,11 @@"lucide-react": "^1.18.0"},"peerDependencies": {- "@astryxdesign/core": "0.1.9",+ "@astryxdesign/core": "0.2.0","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.1.9"+ "@astryxdesign/cli": "0.2.0"},"module": "./dist/source.mjs"}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cb06ad5e67..3bd3d280f6 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -551,7 +551,7 @@ importers:packages/charts:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -656,7 +656,7 @@ importers:packages/lab:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -714,7 +714,7 @@ importers:packages/richtext:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -729,7 +729,7 @@ importers:packages/themes/butter:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -739,13 +739,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/chocolate:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -755,13 +755,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/gothic:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -771,13 +771,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/matcha:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -787,13 +787,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/neutral:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -803,13 +803,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/stone:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -819,13 +819,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/themes/y2k:dependencies:'@astryxdesign/core':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../corelucide-react:specifier: ^1.18.0@@ -835,7 +835,7 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.1.9+ specifier: 0.2.0version: link:../../clipackages/vega:diff --git a/scripts/sync-internal-deps.mjs b/scripts/sync-internal-deps.mjsnew file mode 100755index 0000000000..f5f3573b86--- /dev/null+++ b/scripts/sync-internal-deps.mjs@@ -0,0 +1,90 @@+#!/usr/bin/env node+// Copyright (c) Meta Platforms, Inc. and affiliates.+/**+ * Post-`changeset version` internal-dependency sync — `node scripts/sync-internal-deps.mjs`.+ *+ * All published packages ship in lockstep at the same version (the `fixed`+ * group in .changeset/config.json). Internal `@astryxdesign/*` packages+ * reference each other with exact version specifiers (e.g. a theme's+ * `@astryxdesign/core` peer, or a theme's `@astryxdesign/cli` devDependency).+ *+ * We set `bumpVersionsWithWorkspaceProtocolOnly: true` so a breaking 0.x+ * release stays on the minor `0.(x+1).0` instead of cascading the whole fixed+ * group to `1.0.0` (an out-of-range peer would otherwise force every+ * dependent to a major bump). The trade-off is that Changesets then only+ * rewrites `workspace:`-protocol specifiers on version — it leaves our exact+ * `@astryxdesign/*` specifiers pointing at the previous version.+ *+ * This script closes that gap: after the bump, every exact-version internal+ * `@astryxdesign/*` specifier (in dependencies, devDependencies, and+ * peerDependencies of every workspace package) is repinned to the freshly+ * bumped version of the referenced package. Non-exact specifiers (`*`,+ * ranges, `workspace:*`, etc.) are left untouched — only literal exact+ * versions are managed, which is exactly the set Changesets used to keep in+ * sync before the workspace-protocol-only setting.+ */++import fs from 'node:fs';+import path from 'node:path';+import {fileURLToPath} from 'node:url';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const ROOT = path.resolve(__dirname, '..');++const read = p => JSON.parse(fs.readFileSync(p, 'utf8'));++// Workspace dirs that can contain internal packages. Kept in sync with+// pnpm-workspace.yaml `packages:`.+const PKG_DIRS = ['packages', 'packages/themes', 'apps', 'internal'];++const EXACT_VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/;+const DEP_FIELDS = ['dependencies', 'devDependencies', 'peerDependencies'];++// Discover every workspace package.json.+const pkgPaths = [];+for (const dir of PKG_DIRS) {+ const abs = path.join(ROOT, dir);+ if (!fs.existsSync(abs)) continue;+ for (const entry of fs.readdirSync(abs, {withFileTypes: true})) {+ if (!entry.isDirectory()) continue;+ const pkgPath = path.join(abs, entry.name, 'package.json');+ if (fs.existsSync(pkgPath)) pkgPaths.push(pkgPath);+ }+}++// Map each internal package name -> its current (post-bump) version.+const versionByName = new Map();+for (const pkgPath of pkgPaths) {+ const pkg = read(pkgPath);+ if (pkg.name && pkg.version) versionByName.set(pkg.name, pkg.version);+}++let changed = 0;+for (const pkgPath of pkgPaths) {+ const pkg = read(pkgPath);+ let dirty = false;+ for (const field of DEP_FIELDS) {+ const deps = pkg[field];+ if (!deps) continue;+ for (const name of Object.keys(deps)) {+ const target = versionByName.get(name);+ if (!target) continue; // not an internal workspace package+ const spec = deps[name];+ // Only manage exact-version specifiers; leave `*`, ranges and+ // workspace: protocol specifiers alone.+ if (!EXACT_VERSION.test(spec)) continue;+ if (spec === target) continue;+ deps[name] = target;+ console.log(` ${pkg.name}: ${field} ${name} ${spec} -> ${target}`);+ dirty = true;+ changed++;+ }+ }+ if (dirty) fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');+}++console.log(+ changed === 0+ ? 'All exact-version internal @astryxdesign/* specifiers already in sync.'+ : `Synced ${changed} internal @astryxdesign/* specifier(s).`,+);diff --git a/scripts/sync-theme-peer-versions.mjs b/scripts/sync-theme-peer-versions.mjsdeleted file mode 100755index 12c4b97535..0000000000--- a/scripts/sync-theme-peer-versions.mjs+++ /dev/null@@ -1,59 +0,0 @@-#!/usr/bin/env node-// Copyright (c) Meta Platforms, Inc. and affiliates.-/**- * Post-`changeset version` peer-dependency sync — `node scripts/sync-theme-peer-versions.mjs`.- *- * All published packages ship in lockstep at the same version (the `fixed`- * group in .changeset/config.json). The theme packages declare- * `@astryxdesign/core` as a peerDependency pinned to an exact version. Changesets- * bumps the theme package versions but does NOT rewrite that peer specifier- * (it only rewrites `workspace:`-protocol specifiers, and we intentionally do- * not use those — see `bumpVersionsWithWorkspaceProtocolOnly: true`, which is- * what keeps a breaking 0.x release on the minor 0.(x+1).0 instead of- * cascading the whole fixed group to 1.0.0).- *- * So after the version bump we pin each theme's `@astryxdesign/core` peer to the- * new core version exactly, keeping the lockstep contract explicit: theme- * 0.2.0 peer-depends on core 0.2.0.- */--import fs from 'node:fs';-import path from 'node:path';-import {fileURLToPath} from 'node:url';--const __dirname = path.dirname(fileURLToPath(import.meta.url));-const ROOT = path.resolve(__dirname, '..');-const CORE_PKG = path.join(ROOT, 'packages/core/package.json');-const THEMES_DIR = path.join(ROOT, 'packages/themes');--const read = p => JSON.parse(fs.readFileSync(p, 'utf8'));--const coreVersion = read(CORE_PKG).version;-if (!coreVersion) {- console.error('Could not read @astryxdesign/core version');- process.exit(1);-}--let changed = 0;-for (const entry of fs.readdirSync(THEMES_DIR, {withFileTypes: true})) {- if (!entry.isDirectory()) continue;- const pkgPath = path.join(THEMES_DIR, entry.name, 'package.json');- if (!fs.existsSync(pkgPath)) continue;- const pkg = read(pkgPath);- const peer =- pkg.peerDependencies && pkg.peerDependencies['@astryxdesign/core'];- if (!peer) continue;- if (peer === coreVersion) continue;- pkg.peerDependencies['@astryxdesign/core'] = coreVersion;- fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');- console.log(- ` ${pkg.name}: @astryxdesign/core peer ${peer} -> ${coreVersion}`,- );- changed++;-}--console.log(- changed === 0- ? `All theme @astryxdesign/core peers already at ${coreVersion}.`- : `Synced ${changed} theme @astryxdesign/core peer(s) to ${coreVersion}.`,-);