An open source design system that's fully customizable and agent ready
TypeScript
docs(build): use Astryx branding throughout (#6487)
Cindy Zhang5264d5d5d5ca
diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.mdindex 703f9c79f5..139da0b7d1 100644--- a/packages/build/CHANGELOG.md+++ b/packages/build/CHANGELOG.md@@ -1,4 +1,4 @@-# @xds/build+# @astryxdesign/build# 0.6.3diff --git a/packages/build/README.md b/packages/build/README.mdindex 355f70fee8..5e71308093 100644--- a/packages/build/README.md+++ b/packages/build/README.md@@ -1,6 +1,6 @@# @astryxdesign/build-Build plugins for XDS source builds. Provides babel, PostCSS, and Vite integrations that compile XDS library and product code with separate class name prefixes, which enables independent CSS layers:+Build plugins for Astryx source builds. Provides babel, PostCSS, and Vite integrations that compile Astryx library and product code with separate class name prefixes, which enables independent CSS layers:```reset < astryx-base (library, astryx prefix) < astryx-theme < product (app, x prefix)@@ -12,7 +12,7 @@ StyleX generates atomic CSS: same declaration = same class name. Without separat`@astryxdesign/build` solves this by:-1. Compiling XDS library code with `astryx` prefix (`.astryx78zum5`)+1. Compiling Astryx library code with `astryx` prefix (`.astryx78zum5`)2. Compiling product code with default `x` prefix (`.x78zum5`)3. Placing each group in its own CSS `@layer`diff --git a/packages/build/package.json b/packages/build/package.jsonindex 6fb9c6edd6..748918fd07 100644--- a/packages/build/package.json+++ b/packages/build/package.json@@ -1,7 +1,7 @@{"name": "@astryxdesign/build","version": "0.6.3",- "description": "Build plugins for XDS source builds — babel, PostCSS, and Vite integrations",+ "description": "Build plugins for Astryx source builds — babel, PostCSS, and Vite integrations","author": "Meta Open Source","license": "MIT","homepage": "https://github.com/facebook/astryx#readme",diff --git a/packages/build/src/babel.test.mjs b/packages/build/src/babel.test.mjsindex 301d2317fb..5dd18fb49b 100644--- a/packages/build/src/babel.test.mjs+++ b/packages/build/src/babel.test.mjs@@ -2,10 +2,9 @@/*** @file babel.test.mjs- * @description Verifies that the XDS babel wrapper applies the configured- * library StyleX class-name prefix to XDS library files. Part of the- * the library atom prefix defaults to `astryx` and is configurable- * before the final cutover.+ * @description Verifies that the Astryx babel wrapper applies the configured+ * library StyleX class-name prefix to Astryx library files. The prefix+ * defaults to `astryx` and remains configurable.*/import {describe, it, expect} from 'vitest';@@ -23,15 +22,15 @@ export const styles = stylex.create({`;/**- * Transform a StyleX source through the XDS babel wrapper as if it were a- * library file, returning the emitted code. `libraryPrefix` controls the+ * Transform a StyleX source through the Astryx babel wrapper as if it were an+ * Astryx library file, returning the emitted code. `libraryPrefix` controls the* atomic class-name prefix for library files.*/function transformLibraryFile(libraryPrefix) {const result = babel.transformSync(SOURCE, {// A path matching one of the library patterns so the wrapper routes it// through the library plugin instance.- filename: 'node_modules/@astryxdesign/core/src/Box/XDSBox.tsx',+ filename: 'node_modules/@astryxdesign/core/src/Box/AstryxBox.tsx',babelrc: false,configFile: false,plugins: [@@ -53,7 +52,7 @@ function atomicClasses(code) {return code.match(/\b(?:xds|astryx|lib)[a-z0-9]{4,}\b/g) ?? [];}-describe('xds babel wrapper -- library StyleX prefix', () => {+describe('Astryx babel wrapper -- library StyleX prefix', () => {it('defaults library atoms to the `astryx` prefix', () => {const code = transformLibraryFile(undefined);const atoms = atomicClasses(code);diff --git a/packages/build/src/vite.test.ts b/packages/build/src/vite.test.tsindex 2de09a589b..e0043aac67 100644--- a/packages/build/src/vite.test.ts+++ b/packages/build/src/vite.test.ts@@ -2,7 +2,7 @@/*** @file vite.test.ts- * @description Verifies CSS layer-order injection in the XDS Vite plugin.+ * @description Verifies CSS layer-order injection in the Astryx Vite plugin.* The library layer name is configurable (default `astryx-base`); the* theme layer name is fixed at `astryx-theme`.*/