An open source design system that's fully customizable and agent ready
TypeScript
chore: version packages for v0.4.3
Cindy Zhangd9189c9e50fb
diff --git a/.changeset/banner-dismiss-focus-and-status-fallthrough.md b/.changeset/banner-dismiss-focus-and-status-fallthrough.mddeleted file mode 100644index d9efd40f8d..0000000000--- a/.changeset/banner-dismiss-focus-and-status-fallthrough.md+++ /dev/null@@ -1,18 +0,0 @@-----'@astryxdesign/core': patch-'@astryxdesign/theme-neutral': patch------[fix] Banner: a dismissed banner no longer drops focus, a custom status no longer loses its ARIA role, and the info banner paints again under the neutral theme.--Dismissing unmounted the focused dismiss button, so focus landed on `<body>` and a keyboard user lost their place in the page. Banner now records where focus entered from and returns it there, the same handoff `ToastViewport` makes for a dismissed toast. Measured in Chromium: `document.activeElement` was `BODY`, and is now the control the user tabbed in from.--`BannerStatusMap` is documented as augmentable, but all four status lookups were closed `Record<BannerStatus, ...>` maps. Adding the augmentation the docs show produced four TypeScript errors inside `Banner.tsx` itself, which a consumer cannot fix, and at runtime an unknown status resolved to `undefined` for its icon, its background and its ARIA role, so the banner stopped being a live region at all. The lookups are partial now: an unrecognized status renders with no status fill, no default glyph and `role="status"`.--A theme could not reach the banner's radius. `--_banner-radius` was declared in the doc file and in `derivedVarRegistry.ts`, but no rule read it, so a theme's `borderRadius` on the `banner` target expanded into a variable nothing consumed. The four card-silhouette radii read it now, falling back to `--radius-container`.--Under `@astryxdesign/theme-neutral` the info banner had no background at all, light or dark: the override set `background-color` directly and forced `--color-accent-muted` to `transparent`, and a plain CSS property written by a theme lands in `@layer astryx-theme`, which StyleX's `@layer priority4` outranks. Info now goes through `--color-accent-muted` like the other three statuses and like the stone theme already did.--Also in this change: `children={false}` (the ordinary `{cond && <ul/>}` idiom) no longer produces an expand toggle that opens an empty box, and `description=""` no longer leaves an empty 20px row, both via `isRenderable`; a long unbroken word in the title or description no longer forces the page into horizontal scrolling at a 320px viewport, measured at `document.scrollWidth` 529px before; and the content area's bottom border uses logical `border-block-end` alongside its inline siblings.--@cixzhangdiff --git a/.changeset/character-safe-strings.md b/.changeset/character-safe-strings.mddeleted file mode 100644index fc15b127d9..0000000000--- a/.changeset/character-safe-strings.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Count and cut text the way people read it: the TextArea character counter (and its over-limit state and screen-reader announcements) counts user-perceived characters — an emoji is 1, not 2; PowerSearch token truncation no longer cuts an emoji or accented letter in half; Table's auto-generated headers capitalize astral-plane letters correctly; Avatar's initials now use the shared character utilities.--@AKnassadiff --git a/.changeset/character-utils-api.md b/.changeset/character-utils-api.mddeleted file mode 100644index e970f55397..0000000000--- a/.changeset/character-utils-api.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] New string utilities: `characterCount`, `firstCharacter`, and `truncateCharacters` — replacements for `.length`, `.charAt(0)`, and slice-based truncation that measure and cut user-visible strings by whole characters, so an emoji, flag, or accented letter counts as one and never gets split. Built on `Intl.Segmenter` with a code-point fallback.--@AKnassadiff --git a/.changeset/complex-selector-composition-api.md b/.changeset/complex-selector-composition-api.mddeleted file mode 100644index a0548e4710..0000000000--- a/.changeset/complex-selector-composition-api.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[feat] ComplexSelector: support ghost toolbar triggers, leading icons, popup alignment, and an imperative `handleRef` (open/close/toggle/isOpen) for programmatic control.-@ernesttdiff --git a/.changeset/complex-selector-size-heights.md b/.changeset/complex-selector-size-heights.mddeleted file mode 100644index d757db1db5..0000000000--- a/.changeset/complex-selector-size-heights.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] ComplexSelector: honor the `sm`, `md`, and `lg` element-height tokens exactly.--@ernesttdiff --git a/.changeset/container-reveal-hover-intent-and-force-state.md b/.changeset/container-reveal-hover-intent-and-force-state.mddeleted file mode 100644index 2c45aeef1e..0000000000--- a/.changeset/container-reveal-hover-intent-and-force-state.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] `useContainerReveal`: two ways to control the reveal without reaching into the hook's private custom properties. `getContainerProps({hoverDelay})` gates the reveal on pointer dwell — the hover-intent idea Tooltip and HoverCard already have as `delay` — so a cursor sweeping down a list no longer lights up every row it grazes, and `getContainerProps({forceState})` pins the container's trigger state when something else owns the interaction (a scroll, a drag, an open row menu). Per element, `getContentRevealProps({forceVisibility})` pins how one child looks regardless of its container. Still CSS-only: no hover state in React, no re-render. Keyboard and touch are untouched — focus always reveals, `forceState: 'inactive'` and `forceVisibility: 'hidden'` both yield to `:focus-within`.--@cixzhangdiff --git a/.changeset/extensible-axes-guard.md b/.changeset/extensible-axes-guard.mddeleted file mode 100644index 9f70da58e0..0000000000--- a/.changeset/extensible-axes-guard.md+++ /dev/null@@ -1,11 +0,0 @@-----'@astryxdesign/core': patch------[fix] TreeList's `variant` axis is themeable, and a new guard keeps every extensible axis honest. `TreeListVariantMap` invites theme packages to add variants — its own JSDoc shows the module augmentation — but `themeProps('tree-list', {density})` never passed `variant`, so a custom variant type-checked, rendered, and produced no selector to style. It is passed now, and documented in the target's `visualProps` so `astryx theme build` stops calling it an unknown prop.--`packages/core/src/theme/extensibleAxes.test.ts` is the third theming-drift guard, beside the ones covering `targets` and `vars`/`derived`. Those two check what a component renders against what it documents; neither looked at the open prop unions, which is why this went unnoticed. For every `*Map` that types a component prop, it now asserts the three places that have to agree: the interface is declared in the index a consumer augments (a re-export is invisible to both module augmentation and the CLI), the prop is reflected through `themeProps`, and it is documented as a visual prop. It reads the TypeScript AST rather than the type checker, and holds the map's OWNER accountable — a component forwarding `actionVariant` or `statusVariant` to the component that owns the map is not separately responsible for it.--Registry maps that widen a set of NAMES rather than a visual prop (`IndicatorMap`, `IndicatorFamilyMap`) are out of scope by construction, not by allowlist: the guard only considers maps whose alias types a prop on a `*Props` interface.--@cixzhangdiff --git a/.changeset/font-advisory-is-a-notice.md b/.changeset/font-advisory-is-a-notice.mddeleted file mode 100644index cc46ec3bff..0000000000--- a/.changeset/font-advisory-is-a-notice.md+++ /dev/null@@ -1,11 +0,0 @@-----'@astryxdesign/cli': patch------[fix] The unloaded-font advisory is a notice, not a warning. A theme file cannot load a font — Astryx sets `--font-family-*` and loading is the app's job — so #5045's advisory fires on any theme naming a webfont, including a perfectly correct one. As a warning that made a clean build read as defective, and it put the shipped template permanently in violation of its own "compiles with no warnings" guard (#5079 had to allowlist the template's two font names in that assertion).--The `theme.build` receipt now separates the two: `warnings` are defects the author should fix, `notices` are advisories about a correct theme. The font advisory moves to `notices` and to stdout with the rest of the build's progress; stderr stays for defects. The template guard is back to `warnings` being empty, and no longer needs to know which fonts the template names.--Programmatic callers reading `data.warnings` for font advisories should read `data.notices`; the message text is unchanged.--@cixzhangdiff --git a/.changeset/security-markdown-url-chat-regex.md b/.changeset/security-markdown-url-chat-regex.mddeleted file mode 100644index 407cfd79c9..0000000000--- a/.changeset/security-markdown-url-chat-regex.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Security: reject `javascript:`, `vbscript:` and `data:text/html` URLs in the Markdown parser, so untrusted markdown can no longer produce an executable link href or image src; and fix `escapeRegExp` in `ChatTokenizedText`, whose character class closed early and left `]` and `\` unescaped, so token values containing them were injected raw into a `RegExp`-@Sunil56224972diff --git a/.changeset/theme-built-entry-node-esm.md b/.changeset/theme-built-entry-node-esm.mddeleted file mode 100644index 67bdf848b6..0000000000--- a/.changeset/theme-built-entry-node-esm.md+++ /dev/null@@ -1,12 +0,0 @@-----'@astryxdesign/theme-butter': patch-'@astryxdesign/theme-chocolate': patch-'@astryxdesign/theme-gothic': patch-'@astryxdesign/theme-matcha': patch-'@astryxdesign/theme-neutral': patch-'@astryxdesign/theme-stone': patch-'@astryxdesign/theme-y2k': patch------[fix] The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.-@AKnassadiff --git a/.changeset/theme-extends-flatten.md b/.changeset/theme-extends-flatten.mddeleted file mode 100644index 8b77a9bcf5..0000000000--- a/.changeset/theme-extends-flatten.md+++ /dev/null@@ -1,14 +0,0 @@-----'@astryxdesign/cli': patch-'@astryxdesign/core': patch------[fix] `extends` now reaches the CSS. A theme that extended another built a stylesheet holding only the declarations it stated itself: the base's tokens, component overrides and surface rules were all absent, and because each theme is `@scope`d to its own `data-astryx-theme` value, loading the base's stylesheet alongside could not fill the gap either. Every consumer of an inheritance chain silently got stock geometry, elevation and type with a new palette painted over it (#5067). Nothing warned; the loss only showed up by diffing two generated stylesheets token by token.--The cause was `theme build` shadowing its own inputs. It writes `<name>.js` next to `<name>.ts`, and the loader resolved a plain `./<name>` specifier to that generated artifact before the source — so the second build of a family read the artifact, which carries no `components` and exports `<name>Theme` rather than whatever the source exports. A named import that missed became `extends: undefined`, and `defineTheme` treated an absent base as no base at all. The loader now resolves source extensions first, which is also the resolution the author's TypeScript sees, so the CSS a build emits matches the theme that type-checked.--Three things behind it are fixed too, so the failure cannot come back by another route. `defineTheme` **throws** when `extends` is present but is not a theme, naming the likely cause, instead of inheriting nothing — the one behavior change here, and it turns a silent stylesheet into a build error. A theme's `onDark`/`onLight` surfaces and its `__inputTokens` are now inherited like its tokens and components were, so a child no longer reverts its base's inverted-surface customizations to the defaults or loses its `[light, dark]` tuples. And a built theme module now carries the resolved `components` and surfaces alongside its tokens, so extending one — the `./built` subpath every shipped theme exposes — is no longer lossy. `theme build` also stopped hand-picking fields when it re-resolves a plain object theme file, which dropped `extends`, `color` and `syntax` on the way in.--An extended theme is flat: everything it inherits is resolved into its own output, and its stylesheet stands alone. Measured on a 14-theme family (one base, 13 palettes extending it): each palette went from 25 custom properties and no component rules to the base's full 175 and 70, with its own colours still winning.--@cixzhangdiff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.mdindex bf2955a4fd..6e2f932e29 100644--- a/packages/build/CHANGELOG.md+++ b/packages/build/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/build+# 0.4.3++---+# 0.4.2---diff --git a/packages/build/package.json b/packages/build/package.jsonindex 2e3941720f..d1d2de26f2 100644--- a/packages/build/package.json+++ b/packages/build/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/build",- "version": "0.4.2",+ "version": "0.4.3","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 e6fac22279..bcac7a3f8c 100644--- a/packages/charts/package.json+++ b/packages/charts/package.json@@ -58,7 +58,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19.0.0","react-dom": ">=19.0.0"},diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex 9fc105b19c..d0d6ba1139 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,28 @@# @xds/cli+# 0.4.3++#### Fixes++- The unloaded-font advisory is a notice, not a warning. A theme file cannot load a font — Astryx sets `--font-family-*` and loading is the app's job — so #5045's advisory fires on any theme naming a webfont, including a perfectly correct one. As a warning that made a clean build read as defective, and it put the shipped template permanently in violation of its own "compiles with no warnings" guard (#5079 had to allowlist the template's two font names in that assertion).+ The `theme.build` receipt now separates the two: `warnings` are defects the author should fix, `notices` are advisories about a correct theme. The font advisory moves to `notices` and to stdout with the rest of the build's progress; stderr stays for defects. The template guard is back to `warnings` being empty, and no longer needs to know which fonts the template names.++ Programmatic callers reading `data.warnings` for font advisories should read `data.notices`; the message text is unchanged.+- `extends` now reaches the CSS. A theme that extended another built a stylesheet holding only the declarations it stated itself: the base's tokens, component overrides and surface rules were all absent, and because each theme is `@scope`d to its own `data-astryx-theme` value, loading the base's stylesheet alongside could not fill the gap either. Every consumer of an inheritance chain silently got stock geometry, elevation and type with a new palette painted over it (#5067). Nothing warned; the loss only showed up by diffing two generated stylesheets token by token.+ The cause was `theme build` shadowing its own inputs. It writes `<name>.js` next to `<name>.ts`, and the loader resolved a plain `./<name>` specifier to that generated artifact before the source — so the second build of a family read the artifact, which carries no `components` and exports `<name>Theme` rather than whatever the source exports. A named import that missed became `extends: undefined`, and `defineTheme` treated an absent base as no base at all. The loader now resolves source extensions first, which is also the resolution the author's TypeScript sees, so the CSS a build emits matches the theme that type-checked.++ Three things behind it are fixed too, so the failure cannot come back by another route. `defineTheme` **throws** when `extends` is present but is not a theme, naming the likely cause, instead of inheriting nothing — the one behavior change here, and it turns a silent stylesheet into a build error. A theme's `onDark`/`onLight` surfaces and its `__inputTokens` are now inherited like its tokens and components were, so a child no longer reverts its base's inverted-surface customizations to the defaults or loses its `[light, dark]` tuples. And a built theme module now carries the resolved `components` and surfaces alongside its tokens, so extending one — the `./built` subpath every shipped theme exposes — is no longer lossy. `theme build` also stopped hand-picking fields when it re-resolves a plain object theme file, which dropped `extends`, `color` and `syntax` on the way in.++ An extended theme is flat: everything it inherits is resolved into its own output, and its stylesheet stands alone. Measured on a 14-theme family (one base, 13 palettes extending it): each palette went from 25 custom properties and no component rules to the base's full 175 and 70, with its own colours still winning.++#### Contributors++Thanks to everyone who contributed to this release:++- @cixzhang++---+# 0.4.2#### New Featuresdiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex bf77bae0d3..698f854089 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/cli",- "version": "0.4.2",+ "version": "0.4.3","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 6c858f3967..e62ab7f33e 100644--- a/packages/core/CHANGELOG.md+++ b/packages/core/CHANGELOG.md@@ -1,5 +1,50 @@# @xds/core+# 0.4.3++#### New Features++- New string utilities: `characterCount`, `firstCharacter`, and `truncateCharacters` — replacements for `.length`, `.charAt(0)`, and slice-based truncation that measure and cut user-visible strings by whole characters, so an emoji, flag, or accented letter counts as one and never gets split. Built on `Intl.Segmenter` with a code-point fallback.+- ComplexSelector: support ghost toolbar triggers, leading icons, popup alignment, and an imperative `handleRef` (open/close/toggle/isOpen) for programmatic control.+- `useContainerReveal`: two ways to control the reveal without reaching into the hook's private custom properties. `getContainerProps({hoverDelay})` gates the reveal on pointer dwell — the hover-intent idea Tooltip and HoverCard already have as `delay` — so a cursor sweeping down a list no longer lights up every row it grazes, and `getContainerProps({forceState})` pins the container's trigger state when something else owns the interaction (a scroll, a drag, an open row menu). Per element, `getContentRevealProps({forceVisibility})` pins how one child looks regardless of its container. Still CSS-only: no hover state in React, no re-render. Keyboard and touch are untouched — focus always reveals, `forceState: 'inactive'` and `forceVisibility: 'hidden'` both yield to `:focus-within`.++#### Fixes++- Banner: a dismissed banner no longer drops focus, a custom status no longer loses its ARIA role, and the info banner paints again under the neutral theme.+ Dismissing unmounted the focused dismiss button, so focus landed on `<body>` and a keyboard user lost their place in the page. Banner now records where focus entered from and returns it there, the same handoff `ToastViewport` makes for a dismissed toast. Measured in Chromium: `document.activeElement` was `BODY`, and is now the control the user tabbed in from.++ `BannerStatusMap` is documented as augmentable, but all four status lookups were closed `Record<BannerStatus, ...>` maps. Adding the augmentation the docs show produced four TypeScript errors inside `Banner.tsx` itself, which a consumer cannot fix, and at runtime an unknown status resolved to `undefined` for its icon, its background and its ARIA role, so the banner stopped being a live region at all. The lookups are partial now: an unrecognized status renders with no status fill, no default glyph and `role="status"`.++ A theme could not reach the banner's radius. `--_banner-radius` was declared in the doc file and in `derivedVarRegistry.ts`, but no rule read it, so a theme's `borderRadius` on the `banner` target expanded into a variable nothing consumed. The four card-silhouette radii read it now, falling back to `--radius-container`.++ Under `@astryxdesign/theme-neutral` the info banner had no background at all, light or dark: the override set `background-color` directly and forced `--color-accent-muted` to `transparent`, and a plain CSS property written by a theme lands in `@layer astryx-theme`, which StyleX's `@layer priority4` outranks. Info now goes through `--color-accent-muted` like the other three statuses and like the stone theme already did.++ Also in this change: `children={false}` (the ordinary `{cond && <ul/>}` idiom) no longer produces an expand toggle that opens an empty box, and `description=""` no longer leaves an empty 20px row, both via `isRenderable`; a long unbroken word in the title or description no longer forces the page into horizontal scrolling at a 320px viewport, measured at `document.scrollWidth` 529px before; and the content area's bottom border uses logical `border-block-end` alongside its inline siblings.+- Count and cut text the way people read it: the TextArea character counter (and its over-limit state and screen-reader announcements) counts user-perceived characters — an emoji is 1, not 2; PowerSearch token truncation no longer cuts an emoji or accented letter in half; Table's auto-generated headers capitalize astral-plane letters correctly; Avatar's initials now use the shared character utilities.+- ComplexSelector: honor the `sm`, `md`, and `lg` element-height tokens exactly.+- TreeList's `variant` axis is themeable, and a new guard keeps every extensible axis honest. `TreeListVariantMap` invites theme packages to add variants — its own JSDoc shows the module augmentation — but `themeProps('tree-list', {density})` never passed `variant`, so a custom variant type-checked, rendered, and produced no selector to style. It is passed now, and documented in the target's `visualProps` so `astryx theme build` stops calling it an unknown prop.+ `packages/core/src/theme/extensibleAxes.test.ts` is the third theming-drift guard, beside the ones covering `targets` and `vars`/`derived`. Those two check what a component renders against what it documents; neither looked at the open prop unions, which is why this went unnoticed. For every `*Map` that types a component prop, it now asserts the three places that have to agree: the interface is declared in the index a consumer augments (a re-export is invisible to both module augmentation and the CLI), the prop is reflected through `themeProps`, and it is documented as a visual prop. It reads the TypeScript AST rather than the type checker, and holds the map's OWNER accountable — a component forwarding `actionVariant` or `statusVariant` to the component that owns the map is not separately responsible for it.++ Registry maps that widen a set of NAMES rather than a visual prop (`IndicatorMap`, `IndicatorFamilyMap`) are out of scope by construction, not by allowlist: the guard only considers maps whose alias types a prop on a `*Props` interface.+- Security: reject `javascript:`, `vbscript:` and `data:text/html` URLs in the Markdown parser, so untrusted markdown can no longer produce an executable link href or image src; and fix `escapeRegExp` in `ChatTokenizedText`, whose character class closed early and left `]` and `\` unescaped, so token values containing them were injected raw into a `RegExp`+- `extends` now reaches the CSS. A theme that extended another built a stylesheet holding only the declarations it stated itself: the base's tokens, component overrides and surface rules were all absent, and because each theme is `@scope`d to its own `data-astryx-theme` value, loading the base's stylesheet alongside could not fill the gap either. Every consumer of an inheritance chain silently got stock geometry, elevation and type with a new palette painted over it (#5067). Nothing warned; the loss only showed up by diffing two generated stylesheets token by token.+ The cause was `theme build` shadowing its own inputs. It writes `<name>.js` next to `<name>.ts`, and the loader resolved a plain `./<name>` specifier to that generated artifact before the source — so the second build of a family read the artifact, which carries no `components` and exports `<name>Theme` rather than whatever the source exports. A named import that missed became `extends: undefined`, and `defineTheme` treated an absent base as no base at all. The loader now resolves source extensions first, which is also the resolution the author's TypeScript sees, so the CSS a build emits matches the theme that type-checked.++ Three things behind it are fixed too, so the failure cannot come back by another route. `defineTheme` **throws** when `extends` is present but is not a theme, naming the likely cause, instead of inheriting nothing — the one behavior change here, and it turns a silent stylesheet into a build error. A theme's `onDark`/`onLight` surfaces and its `__inputTokens` are now inherited like its tokens and components were, so a child no longer reverts its base's inverted-surface customizations to the defaults or loses its `[light, dark]` tuples. And a built theme module now carries the resolved `components` and surfaces alongside its tokens, so extending one — the `./built` subpath every shipped theme exposes — is no longer lossy. `theme build` also stopped hand-picking fields when it re-resolves a plain object theme file, which dropped `extends`, `color` and `syntax` on the way in.++ An extended theme is flat: everything it inherits is resolved into its own output, and its stylesheet stands alone. Measured on a 14-theme family (one base, 13 palettes extending it): each palette went from 25 custom properties and no component rules to the base's full 175 and 70, with its own colours still winning.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa+- @cixzhang+- @ernestt+- @Sunil56224972++---+# 0.4.2#### New Featuresdiff --git a/packages/core/package.json b/packages/core/package.jsonindex 706f0d59c8..bc670b2a48 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/core",- "version": "0.4.2",+ "version": "0.4.3","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 c9b36244c0..c95ffaa9ac 100644--- a/packages/lab/package.json+++ b/packages/lab/package.json@@ -58,7 +58,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19.0.0","react-dom": ">=19.0.0"},diff --git a/packages/richtext/package.json b/packages/richtext/package.jsonindex 0019c21384..038e1d3b10 100644--- a/packages/richtext/package.json+++ b/packages/richtext/package.json@@ -60,7 +60,7 @@},"peerDependencies": {"@stylexjs/stylex": ">=0.10.0",- "@astryxdesign/core": "0.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19.0.0","react-dom": ">=19.0.0","lexical": "^0.46.0",diff --git a/packages/themes/butter/CHANGELOG.md b/packages/themes/butter/CHANGELOG.mdindex c2e5aa6afb..96e2e158cc 100644--- a/packages/themes/butter/CHANGELOG.md+++ b/packages/themes/butter/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-butter+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2#### Fixesdiff --git a/packages/themes/butter/package.json b/packages/themes/butter/package.jsonindex 7489d85ae4..e7d268ea88 100644--- a/packages/themes/butter/package.json+++ b/packages/themes/butter/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-butter",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/chocolate/CHANGELOG.md b/packages/themes/chocolate/CHANGELOG.mdindex cd13596e2a..b60ac13012 100644--- a/packages/themes/chocolate/CHANGELOG.md+++ b/packages/themes/chocolate/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-chocolate+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2#### Fixesdiff --git a/packages/themes/chocolate/package.json b/packages/themes/chocolate/package.jsonindex 4b37009e3e..d0d8f42e49 100644--- a/packages/themes/chocolate/package.json+++ b/packages/themes/chocolate/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-chocolate",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/gothic/CHANGELOG.md b/packages/themes/gothic/CHANGELOG.mdindex 7759c35a0d..bce3ffbbe2 100644--- a/packages/themes/gothic/CHANGELOG.md+++ b/packages/themes/gothic/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-gothic+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2#### Fixesdiff --git a/packages/themes/gothic/package.json b/packages/themes/gothic/package.jsonindex 789ca5a474..a57b1ea5d4 100644--- a/packages/themes/gothic/package.json+++ b/packages/themes/gothic/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-gothic",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/matcha/CHANGELOG.md b/packages/themes/matcha/CHANGELOG.mdindex 8f631990eb..6a2440052e 100644--- a/packages/themes/matcha/CHANGELOG.md+++ b/packages/themes/matcha/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-matcha+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2---diff --git a/packages/themes/matcha/package.json b/packages/themes/matcha/package.jsonindex e2ee53b2f6..12c6035873 100644--- a/packages/themes/matcha/package.json+++ b/packages/themes/matcha/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-matcha",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/neutral/CHANGELOG.md b/packages/themes/neutral/CHANGELOG.mdindex 9def0a8f9d..ba56af756e 100644--- a/packages/themes/neutral/CHANGELOG.md+++ b/packages/themes/neutral/CHANGELOG.md@@ -1,5 +1,30 @@# @xds/theme-neutral+# 0.4.3++#### Fixes++- Banner: a dismissed banner no longer drops focus, a custom status no longer loses its ARIA role, and the info banner paints again under the neutral theme.+ Dismissing unmounted the focused dismiss button, so focus landed on `<body>` and a keyboard user lost their place in the page. Banner now records where focus entered from and returns it there, the same handoff `ToastViewport` makes for a dismissed toast. Measured in Chromium: `document.activeElement` was `BODY`, and is now the control the user tabbed in from.++ `BannerStatusMap` is documented as augmentable, but all four status lookups were closed `Record<BannerStatus, ...>` maps. Adding the augmentation the docs show produced four TypeScript errors inside `Banner.tsx` itself, which a consumer cannot fix, and at runtime an unknown status resolved to `undefined` for its icon, its background and its ARIA role, so the banner stopped being a live region at all. The lookups are partial now: an unrecognized status renders with no status fill, no default glyph and `role="status"`.++ A theme could not reach the banner's radius. `--_banner-radius` was declared in the doc file and in `derivedVarRegistry.ts`, but no rule read it, so a theme's `borderRadius` on the `banner` target expanded into a variable nothing consumed. The four card-silhouette radii read it now, falling back to `--radius-container`.++ Under `@astryxdesign/theme-neutral` the info banner had no background at all, light or dark: the override set `background-color` directly and forced `--color-accent-muted` to `transparent`, and a plain CSS property written by a theme lands in `@layer astryx-theme`, which StyleX's `@layer priority4` outranks. Info now goes through `--color-accent-muted` like the other three statuses and like the stone theme already did.++ Also in this change: `children={false}` (the ordinary `{cond && <ul/>}` idiom) no longer produces an expand toggle that opens an empty box, and `description=""` no longer leaves an empty 20px row, both via `isRenderable`; a long unbroken word in the title or description no longer forces the page into horizontal scrolling at a 320px viewport, measured at `document.scrollWidth` 529px before; and the content area's bottom border uses logical `border-block-end` alongside its inline siblings.+- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa+- @cixzhang++---+# 0.4.2---diff --git a/packages/themes/neutral/package.json b/packages/themes/neutral/package.jsonindex 6689692278..d2b8c78f17 100644--- a/packages/themes/neutral/package.json+++ b/packages/themes/neutral/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-neutral",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/stone/CHANGELOG.md b/packages/themes/stone/CHANGELOG.mdindex 10e40cfcff..8ddc658cdc 100644--- a/packages/themes/stone/CHANGELOG.md+++ b/packages/themes/stone/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-stone+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2#### Fixesdiff --git a/packages/themes/stone/package.json b/packages/themes/stone/package.jsonindex 1109fd6c98..c1f87c1355 100644--- a/packages/themes/stone/package.json+++ b/packages/themes/stone/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-stone",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/packages/themes/y2k/CHANGELOG.md b/packages/themes/y2k/CHANGELOG.mdindex 31bcbcfe33..688f1a8e97 100644--- a/packages/themes/y2k/CHANGELOG.md+++ b/packages/themes/y2k/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-y2k+# 0.4.3++#### Fixes++- The `/built` entry now loads under Node ESM and externalized SSR (Vite `--ssr`, Remix / React Router v7): it imports `./icons.mjs` instead of the extensionless `./icons` Node cannot resolve.++#### Contributors++Thanks to everyone who contributed to this release:++- @AKnassa++---+# 0.4.2---diff --git a/packages/themes/y2k/package.json b/packages/themes/y2k/package.jsonindex 84916a4731..db8be4ee1b 100644--- a/packages/themes/y2k/package.json+++ b/packages/themes/y2k/package.json@@ -1,6 +1,6 @@{"name": "@astryxdesign/theme-y2k",- "version": "0.4.2",+ "version": "0.4.3","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.4.2",+ "@astryxdesign/core": "0.4.3","react": ">=19"},"devDependencies": {- "@astryxdesign/cli": "0.4.2"+ "@astryxdesign/cli": "0.4.3"},"module": "./dist/source.mjs"}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4d5513b1d3..805abef201 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -566,7 +566,7 @@ importers:packages/charts:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -680,7 +680,7 @@ importers:packages/lab:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -720,7 +720,7 @@ importers:packages/richtext:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../core'@stylexjs/stylex':specifier: ^0.19.0@@ -775,7 +775,7 @@ importers:packages/themes/butter:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -785,13 +785,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/chocolate:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -801,13 +801,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/gothic:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -817,13 +817,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/matcha:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -833,13 +833,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/neutral:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -849,13 +849,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/stone:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -865,13 +865,13 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/themes/y2k:dependencies:'@astryxdesign/core':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../corelucide-react:specifier: ^1.18.0@@ -881,7 +881,7 @@ importers:version: 19.2.7devDependencies:'@astryxdesign/cli':- specifier: 0.4.2+ specifier: 0.4.3version: link:../../clipackages/vega: