Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

refactor: remove XDS-prefix compatibility layer (astryx-only) (#3001)

EJ Hammondf52f25aafa31
diff --git a/.changeset/remove-compat-layer.md b/.changeset/remove-compat-layer.md
new file mode 100644
index 0000000000..afd10963ce
--- /dev/null
+++ b/.changeset/remove-compat-layer.md
@@ -0,0 +1,28 @@
+---
+'@xds/core': patch
+'@xds/cli': patch
+'@xds/build': patch
+---
+
+[breaking] Remove the XDS-prefix compatibility layer — astryx is now the only public surface
+@ejhammond
+
+This release erases all `xds` naming from the public API; there is no compatibility
+window. Consumers must migrate (we own all consumers pre-OSS):
+
+- **Component names:** the `XDS*` aliases are gone — use bare names (`Button` not
+ `XDSButton`, `useTheme` not `useXDSTheme`, `ButtonProps` not `XDSButtonProps`). The
+ `drop-xds-prefix-imports` codemod automates this.
+- **CSS classes:** components emit only `.astryx-*` (the dual `.xds-*` class is gone).
+ Update custom CSS selectors `.xds-button` -> `.astryx-button` (prop/state value classes
+ like `.primary`/`.sm` are unchanged).
+- **data attributes:** only `data-astryx-theme` / `data-astryx-media` are written; update
+ custom selectors and SSR root attributes off `data-xds-*`.
+- **CSS layers:** `@layer xds-base` / `xds-theme` are renamed to `astryx-base` /
+ `astryx-theme`; update your `@layer` order line and any PostCSS `layersBefore` config.
+ `@xds/build`'s default library layer is now `astryx-base`.
+- **Pre-compiled stylesheet:** the `@xds/core/xds.css` export is removed — import
+ `@xds/core/astryx.css`.
+- **CSS custom properties:** the `--xds-*` padding fallback is gone; set `--astryx-*`.
+- **CLI config key:** `@xds/cli` reads the package.json `"astryx"` field (was `"xds"`).
+ Rename the block; a stale `"xds"` key silently drops the package from discovery.
diff --git a/.claude/commands/create-theme.md b/.claude/commands/create-theme.md
index 8b3e9e9db4..341c822269 100644
--- a/.claude/commands/create-theme.md
+++ b/.claude/commands/create-theme.md
@@ -132,11 +132,11 @@ export const {themeName}Theme = defineTheme({
Component overrides generate scoped CSS:
```css
-@scope ([data-xds-theme="{themeName}"]) to ([data-xds-theme]) {
- .xds-button.secondary {
+@scope ([data-astryx-theme="{themeName}"]) to ([data-astryx-theme]) {
+ .astryx-button.secondary {
background-color: ...;
}
- .xds-heading.level-1 {
+ .astryx-heading.level-1 {
font-size: var(--font-size-2xl);
}
}
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index e5c5c826ca..596696b95f 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -169,19 +169,19 @@ jobs:
# Copy XDS dist CSS for the landing page
mkdir -p deploy/assets
- cp packages/core/dist/xds.css deploy/assets/xds.css
+ cp packages/core/dist/astryx.css deploy/assets/astryx.css
cp packages/core/src/reset.css deploy/assets/reset.css
cp packages/themes/default/dist/theme.css deploy/assets/theme.css
cat > deploy/index.html << 'LANDING_EOF'
<!DOCTYPE html>
- <html lang="en" data-xds-theme="default">
+ <html lang="en" data-astryx-theme="default">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Astryx Design System</title>
<link rel="stylesheet" href="assets/reset.css">
- <link rel="stylesheet" href="assets/xds.css">
+ <link rel="stylesheet" href="assets/astryx.css">
<link rel="stylesheet" href="assets/theme.css">
<style>
body {
diff --git a/apps/docsite/postcss.config.js b/apps/docsite/postcss.config.js
index c34836f57a..6fb2a25480 100644
--- a/apps/docsite/postcss.config.js
+++ b/apps/docsite/postcss.config.js
@@ -21,7 +21,7 @@ module.exports = {
plugins: babelConfig.plugins,
},
useCSSLayers: {
- before: ['reset', 'xds-base', 'xds-theme'],
+ before: ['reset', 'astryx-base', 'astryx-theme'],
},
},
autoprefixer: {},
diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.ts
index 356d1f9a1f..9c37e2d8ac 100644
--- a/apps/docsite/src/__tests__/data-extraction.test.ts
+++ b/apps/docsite/src/__tests__/data-extraction.test.ts
@@ -427,7 +427,7 @@ describe('componentRegistry', () => {
const button = core.find(c => c.name === 'Button');
expect(button!.theming).toBeDefined();
expect(button!.theming!.targets.length).toBeGreaterThanOrEqual(1);
- expect(button!.theming!.targets[0].className).toBe('xds-button');
+ expect(button!.theming!.targets[0].className).toBe('astryx-button');
expect(button!.theming!.vars).toBeDefined();
expect(button!.theming!.vars!.length).toBeGreaterThanOrEqual(1);
});
diff --git a/apps/docsite/src/app/blog/layout.tsx b/apps/docsite/src/app/blog/layout.tsx
index 5eeed61154..d008ca23a8 100644
--- a/apps/docsite/src/app/blog/layout.tsx
+++ b/apps/docsite/src/app/blog/layout.tsx
@@ -7,7 +7,7 @@
*/
import {headers} from 'next/headers';
-import {XDSAppShell} from '@xds/core/AppShell';
+import {AppShell} from '@xds/core/AppShell';
import {SharedTopNav} from '../../components/SharedTopNav';
import {SiteFooter} from '../../components/SiteFooter';
@@ -21,13 +21,13 @@ export default async function BlogLayout({
const defaultIsMobile = /mobile|android|iphone|ipad/i.test(ua);
return (
- <XDSAppShell
+ <AppShell
variant="surface"
height="auto"
mobileNav={{defaultIsMobile}}
topNav={<SharedTopNav />}>
{children}
<SiteFooter />
- </XDSAppShell>
+ </AppShell>
);
}
diff --git a/apps/docsite/src/app/globals.css b/apps/docsite/src/app/globals.css
index af88a3b4b0..4e979203f6 100644
--- a/apps/docsite/src/app/globals.css
+++ b/apps/docsite/src/app/globals.css
@@ -1,7 +1,7 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
/* Aggregated theme CSS — auto-generated by scripts/generate-data.mjs
from every @xds/theme-* package in this app's dependencies. New
themes are picked up automatically; no edit here required. */
@@ -9,7 +9,7 @@
@import "../themes/astryx.css";
/* StyleX app styles injected here. useCSSLayers.before declares
- reset, xds-base, xds-theme so product styles always win. */
+ reset, astryx-base, astryx-theme so product styles always win. */
@stylex;
/* Marketing-only custom properties for the docsite home page. These are
diff --git a/apps/docsite/src/app/layout.tsx b/apps/docsite/src/app/layout.tsx
index 81e81e8d8e..be52ce9cea 100644
--- a/apps/docsite/src/app/layout.tsx
+++ b/apps/docsite/src/app/layout.tsx
@@ -23,11 +23,11 @@ export const metadata: Metadata = {
export default function RootLayout({children}: {children: React.ReactNode}) {
return (
- // Server-render data-xds-theme so the Astryx theme's @scope'd tokens (body
+ // Server-render data-astryx-theme so the Astryx theme's @scope'd tokens (body
// color, top spacing) apply on the first paint. Deliberately no data-theme:
// reset.css then keeps `color-scheme: light dark`, so the light-dark()
// tokens follow the OS preference with no script and no flash (#2713).
- <html lang="en" data-xds-theme="astryx">
+ <html lang="en" data-astryx-theme="astryx">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
diff --git a/apps/docsite/src/app/not-found.tsx b/apps/docsite/src/app/not-found.tsx
index e263c49431..d1a9c6277b 100644
--- a/apps/docsite/src/app/not-found.tsx
+++ b/apps/docsite/src/app/not-found.tsx
@@ -1,10 +1,10 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
import {headers} from 'next/headers';
-import {XDSAppShell} from '@xds/core/AppShell';
-import {XDSCenter} from '@xds/core/Center';
-import {XDSVStack} from '@xds/core/Layout';
-import {XDSHeading, XDSText} from '@xds/core/Text';
+import {AppShell} from '@xds/core/AppShell';
+import {Center} from '@xds/core/Center';
+import {VStack} from '@xds/core/Layout';
+import {Heading, Text} from '@xds/core/Text';
import {SharedTopNav} from '../components/SharedTopNav';
import {SiteFooter} from '../components/SiteFooter';
import styles from './not-found.module.css';
@@ -15,26 +15,26 @@ export default async function NotFound() {
const defaultIsMobile = /mobile|android|iphone|ipad/i.test(ua);
return (
- <XDSAppShell
+ <AppShell
variant="surface"
height="fill"
mobileNav={{defaultIsMobile}}
topNav={<SharedTopNav />}>
<div className={styles.shell}>
<div className={styles.content}>
- <XDSCenter axis="both" height="100%">
- <XDSVStack gap={2} hAlign="center">
- <XDSHeading level={1} type="display-1">
+ <Center axis="both" height="100%">
+ <VStack gap={2} hAlign="center">
+ <Heading level={1} type="display-1">
404
- </XDSHeading>
- <XDSText type="body" color="secondary">
+ </Heading>
+ <Text type="body" color="secondary">
This page could not be found.
- </XDSText>
- </XDSVStack>
- </XDSCenter>
+ </Text>
+ </VStack>
+ </Center>
</div>
<SiteFooter />
</div>
- </XDSAppShell>
+ </AppShell>
);
}
diff --git a/apps/docsite/src/components/blog/AuthorByline.tsx b/apps/docsite/src/components/blog/AuthorByline.tsx
index ec5360cf4c..b6b2e1a237 100644
--- a/apps/docsite/src/components/blog/AuthorByline.tsx
+++ b/apps/docsite/src/components/blog/AuthorByline.tsx
@@ -16,7 +16,6 @@ import * as stylex from '@stylexjs/stylex';
import {Avatar} from '@xds/core/Avatar';
import {Text} from '@xds/core/Text';
import {HStack} from '@xds/core/Layout';
-import {Divider} from '@xds/core/Divider';
import {resolveAuthor} from '../../content/blog/authors';
export function formatDate(iso: string): string {
@@ -37,8 +36,8 @@ const styles = stylex.create({
names: {
display: 'inline',
},
- divider: {
- height: '0.75em',
+ dot: {
+ opacity: 0.5,
},
});
@@ -49,8 +48,6 @@ export interface AuthorBylineProps {
readingTimeMinutes?: number;
/** 'compact' for cards, 'full' for article headers. */
variant?: 'compact' | 'full';
- /** Optional class on the root row (e.g. for parent-driven hover styling). */
- className?: string;
}
export function AuthorByline({
@@ -59,34 +56,38 @@ export function AuthorByline({
updatedAt,
readingTimeMinutes,
variant = 'compact',
- className,
}: AuthorBylineProps) {
const resolved = authors.map(resolveAuthor);
+ const avatarSize = variant === 'full' ? 'small' : 'tiny';
const names = resolved.map(a => a.name).join(', ');
return (
- <HStack gap={2} align="center" className={className}>
+ <HStack gap={2} align="center">
<HStack gap={0} align="center">
{resolved.map(author => (
<Avatar
key={author.key}
src={author.avatar}
name={author.name}
- size="tiny"
+ size={avatarSize}
/>
))}
</HStack>
- <HStack gap={2} align="center">
+ <HStack gap={1} align="center">
<Text type="supporting" color="secondary">
{names}
</Text>
- <Divider orientation="vertical" xstyle={styles.divider} />
+ <Text type="supporting" color="secondary" xstyle={styles.dot}>
+ ·
+ </Text>
<Text type="supporting" color="secondary">
{formatDate(date)}
</Text>
{variant === 'full' && updatedAt ? (
<>
- <Divider orientation="vertical" xstyle={styles.divider} />
+ <Text type="supporting" color="secondary" xstyle={styles.dot}>
+ ·
+ </Text>
<Text type="supporting" color="secondary">
Updated {formatDate(updatedAt)}
</Text>
@@ -94,7 +95,9 @@ export function AuthorByline({
) : null}
{readingTimeMinutes ? (
<>
- <Divider orientation="vertical" xstyle={styles.divider} />
+ <Text type="supporting" color="secondary" xstyle={styles.dot}>
+ ·
+ </Text>
<Text type="supporting" color="secondary">
{readingTimeMinutes} min read
</Text>
diff --git a/apps/docsite/src/components/blog/BlogCard.tsx b/apps/docsite/src/components/blog/BlogCard.tsx
index 07eb425e3a..9bd8c09729 100644
--- a/apps/docsite/src/components/blog/BlogCard.tsx
+++ b/apps/docsite/src/components/blog/BlogCard.tsx
@@ -3,11 +3,10 @@
/**
* @file BlogCard.tsx
*
- * A blog index card built on Link: a neutral
- * cover placeholder on top, then title, description excerpt, byline, and a
- * chip row whose first badge is the post type followed by tag chips. The whole
- * card navigates to the post; nested elements (tags, author links) remain
- * independently interactive.
+ * A blog index card built on ClickableCard: a neutral
+ * cover placeholder on top, then type badge, title, description excerpt,
+ * byline, and tag chips. The whole card navigates to the post; nested elements
+ * (tags, author links) remain independently interactive.
*
* The `feature` variant gives the latest post a larger treatment. This is
* derived from sort order by the index page — never from per-post metadata.
@@ -21,40 +20,32 @@ import * as stylex from '@stylexjs/stylex';
import {Text, Heading} from '@xds/core/Text';
import {VStack, HStack} from '@xds/core/Layout';
import {Badge} from '@xds/core/Badge';
-import {Link} from '@xds/core/Link';
-import {AspectRatio} from '@xds/core/AspectRatio';
+import {ClickableCard} from '@xds/core/ClickableCard';
import type {BlogPost} from '../../lib/blog/schema';
import {POST_TYPE_LABELS} from '../../lib/blog/schema';
import {AuthorByline} from './AuthorByline';
-import css from './BlogCard.module.css';
const styles = stylex.create({
card: {
- display: 'block',
- width: '100%',
height: '100%',
- color: 'inherit',
- textDecoration: {
- default: 'none',
- ':hover': 'none',
- },
},
inner: {
height: '100%',
},
// Neutral cover placeholder (cover generator deferred). Calm, theme-driven.
- // Hover tint lives in BlogCard.module.css (.cover::after).
- cover: {
+ cover: (feature: boolean) => ({
+ width: '100%',
+ aspectRatio: feature ? '16 / 7' : '16 / 9',
borderRadius: 'var(--radius-container)',
backgroundColor: 'var(--color-background-muted)',
border: '1px solid var(--color-border)',
- overflow: 'hidden',
- },
+ }),
coverImg: {
width: '100%',
height: '100%',
objectFit: 'cover',
display: 'block',
+ borderRadius: 'var(--radius-container)',
},
excerpt: {
display: '-webkit-box',
@@ -62,7 +53,7 @@ const styles = stylex.create({
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
},
- postTags: {
+ tagRow: {
flexWrap: 'wrap',
},
});
@@ -74,33 +65,28 @@ export interface BlogCardProps {
export function BlogCard({post, feature = false}: BlogCardProps) {
return (
- <Link
+ <ClickableCard
href={`/blog/${post.slug}`}
label={post.title}
- color="inherit"
- display="block"
- xstyle={styles.card}
- className={css.card}>
+ padding={4}
+ xstyle={styles.card}>
<VStack gap={3} xstyle={styles.inner}>
- <AspectRatio ratio={16 / 9} xstyle={styles.cover} className={css.cover}>
- {post.coverImage ? (
- <img
- src={post.coverImage}
- alt={post.coverAlt ?? ''}
- {...stylex.props(styles.coverImg)}
- />
- ) : (
- <div aria-hidden="true" />
- )}
- </AspectRatio>
- <VStack gap={3}>
+ {post.coverImage ? (
+ <img
+ src={post.coverImage}
+ alt={post.coverAlt ?? ''}
+ {...stylex.props(styles.cover(feature), styles.coverImg)}
+ />
+ ) : (
+ <div {...stylex.props(styles.cover(feature))} aria-hidden="true" />
+ )}
+ <VStack gap={2}>
+ <HStack gap={1} align="center" xstyle={styles.tagRow}>
+ <Badge label={POST_TYPE_LABELS[post.type]} variant="neutral" />
+ </HStack>
<VStack gap={1}>
- <Heading level={feature ? 1 : 3}>{post.title}</Heading>
- <Text
- type="body"
- color="secondary"
- xstyle={styles.excerpt}
- className={css.description}>
+ <Heading level={feature ? 2 : 3}>{post.title}</Heading>
+ <Text type="body" color="secondary" xstyle={styles.excerpt}>
{post.description}
</Text>
</VStack>
@@ -109,16 +95,16 @@ export function BlogCard({post, feature = false}: BlogCardProps) {
date={post.date}
readingTimeMinutes={post.readingTimeMinutes}
variant="compact"
- className={css.byline}
/>
- <HStack gap={1} xstyle={styles.postTags}>
- <Badge label={POST_TYPE_LABELS[post.type]} variant="cyan" />
- {post.tags.map(tag => (
- <Badge key={tag} label={tag} variant="neutral" />
- ))}
- </HStack>
+ {post.tags.length > 0 ? (
+ <HStack gap={1} xstyle={styles.tagRow}>
+ {post.tags.map(tag => (
+ <Badge key={tag} label={tag} variant="neutral" />
+ ))}
+ </HStack>
+ ) : null}
</VStack>
</VStack>
- </Link>
+ </ClickableCard>
);
}
diff --git a/apps/docsite/src/components/blog/BlogIndex.tsx b/apps/docsite/src/components/blog/BlogIndex.tsx
index 87e5788f00..2b87d30cc4 100644
--- a/apps/docsite/src/components/blog/BlogIndex.tsx
+++ b/apps/docsite/src/components/blog/BlogIndex.tsx
@@ -23,16 +23,22 @@ import {Text, Heading} from '@xds/core/Text';
import {VStack} from '@xds/core/Layout';
import {Section} from '@xds/core/Section';
import {Grid} from '@xds/core/Grid';
-import {ToggleButton, ToggleButtonGroup} from '@xds/core/ToggleButton';
-import {EmptyState} from '@xds/core/EmptyState';
+import {Carousel} from '@xds/core/Carousel';
+import {TabList, Tab} from '@xds/core/TabList';
import type {BlogPost, BlogPostType} from '../../lib/blog/schema';
import {POST_TYPE_LABELS} from '../../lib/blog/schema';
import {BlogCard} from './BlogCard';
const styles = stylex.create({
- typeFilter: {
- flexWrap: 'wrap',
- justifyContent: 'center',
+ header: {
+ maxWidth: 720,
+ },
+ filterRow: {
+ marginBottom: 4,
+ },
+ empty: {
+ paddingBlock: 48,
+ textAlign: 'center',
},
});
@@ -66,51 +72,55 @@ export function BlogIndex({posts, availableTypes}: BlogIndexProps) {
const restPosts = showFeature ? filtered.slice(1) : filtered;
return (
- <Section maxWidth={800} padding={6} style={{marginInline: 'auto'}}>
- <VStack gap={10}>
- {/* Header */}
- <VStack gap={2}>
- <Heading level={1} type="display-1" justify="center">
+ <Section maxWidth={1100} padding={6}>
+ <VStack gap={6}>
+ <VStack gap={4} xstyle={styles.header}>
+ <Heading level={1} type="display-1">
Blog
</Heading>
- <Text weight="normal" color="secondary" justify="center">
- Releases, guides, and stories on building Astryx for humans and
- agents.
+ <Text type="large" weight="normal" color="secondary">
+ Notes on building Astryx — releases, guides, stories, and
+ perspectives on designing a system for humans and agents.
</Text>
</VStack>
{availableTypes.length > 1 ? (
- <ToggleButtonGroup
- label="Filter posts by type"
- value={activeType}
- onChange={value =>
- setActiveType((value as 'all' | BlogPostType) ?? 'all')
- }
- xstyle={styles.typeFilter}>
- <ToggleButton value="all" label={`All (${counts.all})`} />
- {availableTypes.map(t => (
- <ToggleButton
- key={t}
- value={t}
- label={`${POST_TYPE_LABELS[t]} (${counts[t]})`}
- />
- ))}
- </ToggleButtonGroup>
+ <Carousel gap={0}>
+ <TabList
+ value={activeType}
+ onChange={v => setActiveType(v as 'all' | BlogPostType)}
+ size="md"
+ xstyle={styles.filterRow}>
+ <Tab value="all" label={`All (${counts.all})`} />
+ {availableTypes.map(t => (
+ <Tab
+ key={t}
+ value={t}
+ label={`${POST_TYPE_LABELS[t]} (${counts[t]})`}
+ />
+ ))}
+ </TabList>
+ </Carousel>
) : null}
{filtered.length === 0 ? (
- <EmptyState
- title="No posts yet"
- description="Check back soon for releases, guides, and stories."
- />
+ <div {...stylex.props(styles.empty)}>
+ <Text type="body" color="secondary">
+ No posts yet. Check back soon.
+ </Text>
+ </div>
) : (
- <VStack gap={10}>
- {featurePost ? <BlogCard post={featurePost} feature /> : null}
+ <VStack gap={6}>
+ {featurePost ? (
+ <Grid columns={1} gap={4}>
+ <BlogCard post={featurePost} feature />
+ </Grid>
+ ) : null}
{restPosts.length > 0 ? (
<Grid
columns={{minWidth: 320, repeat: 'fill'}}
- gap={5}
- rowGap={10}>
+ gap={4}
+ rowGap={6}>
{restPosts.map(post => (
<BlogCard key={post.slug} post={post} />
))}
diff --git a/apps/docsite/src/themes/astryxTheme.ts b/apps/docsite/src/themes/astryxTheme.ts
index 3213814782..4aafede5d0 100644
--- a/apps/docsite/src/themes/astryxTheme.ts
+++ b/apps/docsite/src/themes/astryxTheme.ts
@@ -24,7 +24,7 @@
* thin brand layer of primary + accent + body on top of the design system.
*/
-import {defineTheme, type XDSTokenValue} from '@xds/core/theme';
+import {defineTheme, type TokenValue} from '@xds/core/theme';
// Relative import (not the `@/` alias) because this theme file is also loaded
// in isolation by the `xds theme build` CLI via jiti, which does not resolve
@@ -104,7 +104,7 @@ export const astryxTheme = defineTheme({
// Not a core XDS token, so it's spread in with a cast to allow the extra
// key while keeping the standard tokens above type-checked. Exposed to the
// UI as var(--color-brand).
- ...({'--color-brand': BRAND_BLUE} as Record<string, XDSTokenValue>),
+ ...({'--color-brand': BRAND_BLUE} as Record<string, TokenValue>),
},
typography: {
diff --git a/apps/example-nextjs-source/README.md b/apps/example-nextjs-source/README.md
index b161302fd1..b1982f28f5 100644
--- a/apps/example-nextjs-source/README.md
+++ b/apps/example-nextjs-source/README.md
@@ -7,7 +7,7 @@ Reference application for compiling **@xds/core** from raw TypeScript + StyleX s
| | Source build | Dist build |
| ------------- | --------------------------------------------- | ---------------------------- |
| CSS output | Only styles for components you import (~22KB) | All component styles (~77KB) |
-| Layer control | Full: reset < xds-base < xds-theme < product | Basic: import order |
+| Layer control | Full: reset < astryx-base < astryx-theme < product | Basic: import order |
| Build time | Slower (compiles XDS source through Babel) | Fast (pre-built CSS) |
| Setup | More config (babel + postcss + next.config) | Minimal (CSS imports) |
@@ -20,10 +20,10 @@ Reference application for compiling **@xds/core** from raw TypeScript + StyleX s
This creates completely independent class namespaces:
-- `.xds78zum5 { display: flex }` in `@layer xds-base`
+- `.xds78zum5 { display: flex }` in `@layer astryx-base`
- `.x78zum5 { display: flex }` in `@layer product`
-Theme sits between them in `@layer xds-theme`, so:
+Theme sits between them in `@layer astryx-theme`, so:
- Theme overrides library defaults ✓
- Product overrides theme when needed ✓
@@ -114,7 +114,7 @@ export default nextConfig;
`src/app/layers.css` must be a separate file (webpack hoists `@import` content):
```css
-@layer reset, xds-base, xds-theme, product;
+@layer reset, astryx-base, astryx-theme, product;
```
`src/app/globals.css`:
@@ -131,8 +131,8 @@ export default nextConfig;
This example includes a visual demo showing:
-1. **xds-base**: default XDS component styles
-2. **xds-theme**: theme overrides (secondary button background)
+1. **astryx-base**: default XDS component styles
+2. **astryx-theme**: theme overrides (secondary button background)
3. **product**: app overrides (pill shape, green background, full-width)
4. **Class prefix verification**: XDS components use `xds` prefix, product uses `x`
diff --git a/apps/example-nextjs-source/src/app/layers.css b/apps/example-nextjs-source/src/app/layers.css
index 2ee5853f6e..2dc38878ab 100644
--- a/apps/example-nextjs-source/src/app/layers.css
+++ b/apps/example-nextjs-source/src/app/layers.css
@@ -4,4 +4,4 @@
Separate file because webpack hoists @import content above inline
CSS, so an inline @layer statement in globals.css would appear
after reset.css and theme.css content in the output. */
-@layer reset, xds-base, xds-theme, product;
+@layer reset, astryx-base, astryx-theme, product;
diff --git a/apps/example-nextjs-source/src/app/page.tsx b/apps/example-nextjs-source/src/app/page.tsx
index 9feed7165f..945a9429f7 100644
--- a/apps/example-nextjs-source/src/app/page.tsx
+++ b/apps/example-nextjs-source/src/app/page.tsx
@@ -96,7 +96,7 @@ export default function Home() {
{/* Base layer */}
<VStack gap={1}>
<Text type="supporting" weight="bold">
- 1. xds-base — default component styles
+ 1. astryx-base — default component styles
</Text>
<HStack gap={3} vAlign="center">
<Button label="Primary" variant="primary" />
@@ -108,7 +108,7 @@ export default function Home() {
{/* Theme layer */}
<VStack gap={1}>
<Text type="supporting" weight="bold">
- 2. xds-theme — theme overrides base
+ 2. astryx-theme — theme overrides base
</Text>
<Text type="supporting" color="secondary">
The secondary button background comes from the theme layer,
@@ -226,7 +226,7 @@ export default function Home() {
</Text>
<Text type="body">
Open devtools → CSS layers panel to see:{' '}
- <code>reset &lt; xds-base &lt; xds-theme &lt; product</code>
+ <code>reset &lt; astryx-base &lt; astryx-theme &lt; product</code>
</Text>
</VStack>
</div>
diff --git a/apps/example-nextjs-stylex/README.md b/apps/example-nextjs-stylex/README.md
index ec820ede93..4bb84661e1 100644
--- a/apps/example-nextjs-stylex/README.md
+++ b/apps/example-nextjs-stylex/README.md
@@ -11,14 +11,14 @@ This example uses StyleX's `useCSSLayers.before` option to declare XDS dist laye
```js
// postcss.config.js
useCSSLayers: {
- before: ['reset', 'xds-base', 'xds-theme'],
+ before: ['reset', 'astryx-base', 'astryx-theme'],
}
```
This produces a layer order of:
```
-reset < xds-base < xds-theme < stylex.base < stylex.1 < stylex.2 < ...
+reset < astryx-base < astryx-theme < stylex.base < stylex.1 < stylex.2 < ...
```
Product-level StyleX styles always win over XDS component defaults without needing `!important` or extra specificity.
@@ -27,7 +27,7 @@ Product-level StyleX styles always win over XDS component defaults without needi
| | This example (dist + StyleX) | Source build |
| ------------------- | ------------------------------------------- | -------------------------------------------- |
-| XDS CSS | Pre-built via `@import "@xds/core/xds.css"` | Compiled from source via StyleX babel plugin |
+| XDS CSS | Pre-built via `@import "@xds/core/astryx.css"` | Compiled from source via StyleX babel plugin |
| PostCSS `include` | `src/**/*` only (your code) | `src/**/*` + `node_modules/@xds/core/**/*` |
| StyleX `aliases` | Not needed | Required for `createTheme` resolution |
| `transpilePackages` | Not needed | Required in next.config |
@@ -91,7 +91,7 @@ module.exports = {
/* ... */
},
useCSSLayers: {
- before: ['reset', 'xds-base', 'xds-theme'],
+ before: ['reset', 'astryx-base', 'astryx-theme'],
},
},
},
@@ -104,7 +104,7 @@ module.exports = {
```css
@import '@xds/core/reset.css';
-@import '@xds/core/xds.css';
+@import '@xds/core/astryx.css';
@import '@xds/theme-default/theme.css';
@stylex;
diff --git a/apps/example-nextjs-stylex/postcss.config.js b/apps/example-nextjs-stylex/postcss.config.js
index e6f5c8b4d2..37c3eda44b 100644
--- a/apps/example-nextjs-stylex/postcss.config.js
+++ b/apps/example-nextjs-stylex/postcss.config.js
@@ -18,7 +18,7 @@ module.exports = {
useCSSLayers: {
// Declare XDS dist layers before StyleX app layers so
// product styles always win over component defaults.
- before: ['reset', 'xds-base', 'xds-theme'],
+ before: ['reset', 'astryx-base', 'astryx-theme'],
},
},
autoprefixer: {},
diff --git a/apps/example-nextjs-stylex/src/app/globals.css b/apps/example-nextjs-stylex/src/app/globals.css
index 696b143c4d..68133c2b51 100644
--- a/apps/example-nextjs-stylex/src/app/globals.css
+++ b/apps/example-nextjs-stylex/src/app/globals.css
@@ -1,10 +1,10 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
/* StyleX app styles are injected here. The postcss plugin declares
- reset, xds-base, and xds-theme as layersBefore so the full layer order
- is: reset < xds-base < xds-theme < stylex app layers. */
+ reset, astryx-base, and astryx-theme as layersBefore so the full layer order
+ is: reset < astryx-base < astryx-theme < stylex app layers. */
@stylex;
diff --git a/apps/example-nextjs-tailwind/README.md b/apps/example-nextjs-tailwind/README.md
index f07ce3a973..ad087283ff 100644
--- a/apps/example-nextjs-tailwind/README.md
+++ b/apps/example-nextjs-tailwind/README.md
@@ -4,14 +4,14 @@ Example Next.js app using XDS pre-built dist CSS alongside Tailwind CSS v4. No S
## How it works
-XDS ships pre-compiled CSS (`xds.css`) with all component styles as atomic classes in CSS cascade layers. Tailwind handles layout, spacing, and custom styling via utility classes. Both systems coexist through explicit layer ordering.
+XDS ships pre-compiled CSS (`astryx.css`) with all component styles as atomic classes in CSS cascade layers. Tailwind handles layout, spacing, and custom styling via utility classes. Both systems coexist through explicit layer ordering.
## CSS Layer Order
The key to coexistence is declaring **all** layers upfront in `globals.css`:
```css
-@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
```
This gives the correct priority (lowest → highest):
@@ -21,8 +21,8 @@ This gives the correct priority (lowest → highest):
| `reset` | XDS | CSS reset (`:where()` selectors, zero specificity) |
| `theme` | Tailwind | Theme variables (colors, fonts, spacing) |
| `base` | Tailwind | Preflight reset (element-level normalization) |
-| `xds-base` | XDS | Component styles (buttons, cards, inputs, etc.) |
-| `xds-theme` | XDS | Theme overrides (typography, color mappings) |
+| `astryx-base` | XDS | Component styles (buttons, cards, inputs, etc.) |
+| `astryx-theme` | XDS | Theme overrides (typography, color mappings) |
| `components` | Tailwind | Component classes (if any) |
| `utilities` | Tailwind | Utility classes: **wins over all layers** |
| *(unlayered)* | Consumer | Your custom CSS: highest priority |
@@ -76,7 +76,7 @@ If you need a token the bridge doesn't cover, you can still use Tailwind's brack
### Tailwind overrides on XDS components
-All XDS components accept `className`. Tailwind utilities in the `utilities` layer override XDS component styles in `xds-base`:
+All XDS components accept `className`. Tailwind utilities in the `utilities` layer override XDS component styles in `astryx-base`:
```tsx
<Button label="Custom" variant="primary" className="rounded-full shadow-xl" />
diff --git a/apps/example-nextjs-tailwind/src/app/globals.css b/apps/example-nextjs-tailwind/src/app/globals.css
index 75c05da675..ed04d3b817 100644
--- a/apps/example-nextjs-tailwind/src/app/globals.css
+++ b/apps/example-nextjs-tailwind/src/app/globals.css
@@ -4,25 +4,25 @@
* Layer order for XDS + Tailwind coexistence.
*
* Pre-declare ALL layers upfront so CSS resolves them in the right order.
- * Without this, XDS layers (reset, xds-base, xds-theme) are created after
+ * Without this, XDS layers (reset, astryx-base, astryx-theme) are created after
* Tailwind's declared layers and end up with higher priority — which means
* XDS component styles beat Tailwind utilities. That's backwards.
*
* Desired priority (lowest → highest):
- * reset → theme → base → xds-base → xds-theme → components → utilities
+ * reset → theme → base → astryx-base → astryx-theme → components → utilities
*
* - XDS reset is lowest (it uses :where() for zero specificity anyway)
* - Tailwind preflight (base) sits just above the reset
- * - XDS component styles (xds-base, xds-theme) sit in the middle
+ * - XDS component styles (astryx-base, astryx-theme) sit in the middle
* - Tailwind utilities win over everything — className="bg-red-500" works
* - Unlayered consumer CSS always wins over all layers
*/
-@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/apps/example-nextjs/README.md b/apps/example-nextjs/README.md
index 55d0e7c048..c6621228ae 100644
--- a/apps/example-nextjs/README.md
+++ b/apps/example-nextjs/README.md
@@ -19,15 +19,15 @@ In `src/app/globals.css`, import the reset, component styles, and theme:
```css
@import '@xds/core/reset.css';
-@import '@xds/core/xds.css';
+@import '@xds/core/astryx.css';
@import '@xds/theme-default/theme.css';
```
The CSS import order matters:
1. `reset.css`: baseline resets (`@layer reset`)
-2. `xds.css`: all component styles (`@layer xds-base`)
-3. `theme.css`: theme token overrides (`@layer xds-theme`)
+2. `astryx.css`: all component styles (`@layer astryx-base`)
+3. `theme.css`: theme token overrides (`@layer astryx-theme`)
Import the CSS file in your root layout:
diff --git a/apps/example-nextjs/src/app/globals.css b/apps/example-nextjs/src/app/globals.css
index 118bc7b932..bd5ff60c78 100644
--- a/apps/example-nextjs/src/app/globals.css
+++ b/apps/example-nextjs/src/app/globals.css
@@ -1,5 +1,5 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
diff --git a/apps/example-vite-tailwind/src/index.css b/apps/example-vite-tailwind/src/index.css
index 3794854764..205d16f044 100644
--- a/apps/example-vite-tailwind/src/index.css
+++ b/apps/example-vite-tailwind/src/index.css
@@ -4,14 +4,14 @@
* Layer order for XDS + Tailwind coexistence in Vite.
*
* Desired priority (lowest → highest):
- * reset → theme → base → xds-base → xds-theme → components → utilities
+ * reset → theme → base → astryx-base → astryx-theme → components → utilities
*/
-@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/apps/example-vite/src/App.tsx b/apps/example-vite/src/App.tsx
index cc463e73f0..2bf0d8dd2f 100644
--- a/apps/example-vite/src/App.tsx
+++ b/apps/example-vite/src/App.tsx
@@ -80,7 +80,7 @@ export default function App() {
<VStack gap={3}>
<VStack gap={1}>
<Text type="supporting" weight="bold">
- Default XDS buttons (xds-base layer)
+ Default XDS buttons (astryx-base layer)
</Text>
<HStack gap={3} vAlign="center">
<Button label="Default" variant="primary" />
@@ -180,9 +180,9 @@ export default function App() {
<div {...stylex.props(styles.card)}>
<Text type="body">
Open devtools → inspect the CSS layers panel. You'll see{' '}
- <code>@layer xds-base</code> and <code>@layer product</code>.
+ <code>@layer astryx-base</code> and <code>@layer product</code>.
The layer order{' '}
- <code>reset &lt; xds-base &lt; xds-theme &lt; product</code>{' '}
+ <code>reset &lt; astryx-base &lt; astryx-theme &lt; product</code>{' '}
ensures product styles always win.
</Text>
</div>
diff --git a/apps/sandbox/babel.config.js b/apps/sandbox/babel.config.js
index efbe91d90d..885c9a88a8 100644
--- a/apps/sandbox/babel.config.js
+++ b/apps/sandbox/babel.config.js
@@ -5,7 +5,7 @@ const path = require('path');
const {babel} = require('@xds/build');
// Use the dist build pattern: library files keep default 'x' prefix (matching
-// the pre-built xds.css), product files use 'p' prefix to avoid collisions.
+// the pre-built astryx.css), product files use 'p' prefix to avoid collisions.
module.exports = babel(path.resolve(__dirname, '../..'), {
libraryPrefix: 'x',
classNamePrefix: 'p',
diff --git a/apps/sandbox/postcss.config.js b/apps/sandbox/postcss.config.js
index f45189f3a1..6be4612c79 100644
--- a/apps/sandbox/postcss.config.js
+++ b/apps/sandbox/postcss.config.js
@@ -7,7 +7,7 @@ const {postcss} = require('@xds/build');
const rootDir = path.resolve(__dirname, '../..');
// Use 'p' prefix for product-level StyleX classes. Library styles come from
-// the pre-built @xds/core/xds.css (which uses 'x' prefix), so the PostCSS
+// the pre-built @xds/core/astryx.css (which uses 'x' prefix), so the PostCSS
// plugin only needs to handle product code here.
module.exports = postcss(rootDir, {
appDir: path.relative(rootDir, path.resolve(__dirname, 'src')),
diff --git a/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx b/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
index bbfb5db98f..360432565e 100644
--- a/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/PreviewShell.tsx
@@ -278,11 +278,11 @@ export function PreviewShell({children}: {children: React.ReactNode}) {
// Embedded template previews need a full-height chain so page roots sized
// with min-height:100% (e.g. centered login pages) fill the frame instead of
// collapsing to content height. The chain is html → body → Theme wrapper
- // ([data-xds-theme]) → template root. Rendered inline (not in the layout
+ // ([data-astryx-theme]) → template root. Rendered inline (not in the layout
// <head>) so it applies reliably in the embed context.
return (
<>
- <style>{`html,body{height:100%}body>[data-xds-theme]{height:100%}`}</style>
+ <style>{`html,body{height:100%}body>[data-astryx-theme]{height:100%}`}</style>
{children}
</>
);
diff --git a/apps/sandbox/src/app/globals.css b/apps/sandbox/src/app/globals.css
index 47b5f5dee7..dfea3d35a9 100644
--- a/apps/sandbox/src/app/globals.css
+++ b/apps/sandbox/src/app/globals.css
@@ -2,7 +2,7 @@
@import "./layers.css";
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/theme-neutral/theme.css";
@import "@xds/theme-brutalist/theme.css";
diff --git a/apps/sandbox/src/app/layers.css b/apps/sandbox/src/app/layers.css
index 2ee5853f6e..2dc38878ab 100644
--- a/apps/sandbox/src/app/layers.css
+++ b/apps/sandbox/src/app/layers.css
@@ -4,4 +4,4 @@
Separate file because webpack hoists @import content above inline
CSS, so an inline @layer statement in globals.css would appear
after reset.css and theme.css content in the output. */
-@layer reset, xds-base, xds-theme, product;
+@layer reset, astryx-base, astryx-theme, product;
diff --git a/internal/vibe-tests/app/src/main.report.tsx b/internal/vibe-tests/app/src/main.report.tsx
index bf396e6c7c..edacc50189 100644
--- a/internal/vibe-tests/app/src/main.report.tsx
+++ b/internal/vibe-tests/app/src/main.report.tsx
@@ -9,7 +9,7 @@ import {createRoot} from 'react-dom/client';
* Imports pre-compiled CSS from @xds/core dist and the default theme.
* Report components use plain CSS classes (report.css) instead of stylex.create.
*
- * The xds.css and theme.css paths are resolved by Vite aliases in
+ * The astryx.css and theme.css paths are resolved by Vite aliases in
* vite.config.report.ts.
*/
import '@xds/core/reset.css';
diff --git a/internal/vibe-tests/app/src/report/report.css b/internal/vibe-tests/app/src/report/report.css
index bfbf0cbb56..5aa774b65c 100644
--- a/internal/vibe-tests/app/src/report/report.css
+++ b/internal/vibe-tests/app/src/report/report.css
@@ -4,7 +4,7 @@
* Report-specific styles.
*
* Plain CSS replacement for StyleX styles previously used in report components.
- * Uses XDS CSS custom properties (defined in xds.css) directly.
+ * Uses XDS CSS custom properties (defined in astryx.css) directly.
*/
/* === CodeModal === */
diff --git a/internal/vibe-tests/app/vite.config.report.ts b/internal/vibe-tests/app/vite.config.report.ts
index 5509001260..df7eab7425 100644
--- a/internal/vibe-tests/app/vite.config.report.ts
+++ b/internal/vibe-tests/app/vite.config.report.ts
@@ -12,7 +12,7 @@ const repoRoot = path.resolve(__dirname, '../../..');
/**
* Vite config for building reports ONLY — no StyleX plugin required.
*
- * Reports use pre-compiled CSS from @xds/core/dist/xds.css and
+ * Reports use pre-compiled CSS from @xds/core/dist/astryx.css and
* @xds/theme-default/dist/theme.css. XDS component JS is loaded from
* the built dist (which has stylex.create already compiled away by tsup).
* Report-specific styles live in plain CSS (report.css).
@@ -59,7 +59,7 @@ export default defineConfig({
// Pre-compiled CSS — no StyleX build needed
{
find: 'xds-css',
- replacement: path.resolve(repoRoot, 'packages/core/dist/xds.css'),
+ replacement: path.resolve(repoRoot, 'packages/core/dist/astryx.css'),
},
{
find: 'xds-theme-css',
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/globals.css b/internal/vibe-tests/environments/project-xds-tailwind/globals.css
index bd287987a4..8948a013ac 100644
--- a/internal/vibe-tests/environments/project-xds-tailwind/globals.css
+++ b/internal/vibe-tests/environments/project-xds-tailwind/globals.css
@@ -1,11 +1,11 @@
/* Copyright (c) Meta Platforms, Inc. and affiliates. */
-@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/internal/vibe-tests/src/build-report.ts b/internal/vibe-tests/src/build-report.ts
index 7220070281..b6116adced 100644
--- a/internal/vibe-tests/src/build-report.ts
+++ b/internal/vibe-tests/src/build-report.ts
@@ -28,22 +28,22 @@ const REPO_ROOT = path.join(import.meta.dirname, '../../..');
* Ensure pre-compiled CSS dist files exist.
*
* The report build uses pre-compiled CSS from:
- * - packages/core/dist/xds.css (component styles)
+ * - packages/core/dist/astryx.css (component styles)
* - packages/themes/default/dist/theme.css (theme tokens)
*
* These are generated by `pnpm build` but may not exist if the repo
* was freshly cloned or only `pnpm install` was run.
*/
function ensureCssDist(): void {
- const xdsCss = path.join(REPO_ROOT, 'packages/core/dist/xds.css');
+ const astryxCss = path.join(REPO_ROOT, 'packages/core/dist/astryx.css');
const themeCss = path.join(
REPO_ROOT,
'packages/themes/default/dist/theme.css',
);
const missing: string[] = [];
- if (!fs.existsSync(xdsCss)) {
- missing.push('@xds/core/dist/xds.css');
+ if (!fs.existsSync(astryxCss)) {
+ missing.push('@xds/core/dist/astryx.css');
}
if (!fs.existsSync(themeCss)) {
missing.push('@xds/theme-default/dist/theme.css');
@@ -53,8 +53,8 @@ function ensureCssDist(): void {
console.log('📦 Building CSS dist files (required for report)...');
console.log(` Missing: ${missing.join(', ')}`);
- // Build core package (includes xds.css via postbuild)
- if (!fs.existsSync(xdsCss)) {
+ // Build core package (includes astryx.css via postbuild)
+ if (!fs.existsSync(astryxCss)) {
execSync('pnpm -F @xds/core build', {
cwd: REPO_ROOT,
stdio: 'inherit',
diff --git a/package.json b/package.json
index 76813a21a7..66ab0f4028 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"test:watch": "vitest",
"test:coverage": "vitest --coverage",
"check:package-boundaries": "node scripts/check-package-boundaries.js",
- "check:repo": "pnpm check:sync && pnpm check:package-boundaries && pnpm compat:aliases:check && pnpm check:changesets",
+ "check:repo": "pnpm check:sync && pnpm check:package-boundaries && pnpm check:changesets",
"check:changesets": "node scripts/check-changesets.mjs",
"check:sync": "node scripts/check-sync.js",
"lint": "pnpm check:repo && eslint . --cache",
@@ -30,9 +30,7 @@
"release": "pnpm build && changeset publish",
"prepare": "husky install",
"dev:sandbox": "pnpm -F @xds/core build && pnpm -F @xds/sandbox dev",
- "dev:sandbox:source": "XDS_SOURCE=1 pnpm -F @xds/sandbox dev",
- "compat:aliases": "node scripts/generate-compat-aliases.mjs",
- "compat:aliases:check": "node scripts/generate-compat-aliases.mjs --check"
+ "dev:sandbox:source": "XDS_SOURCE=1 pnpm -F @xds/sandbox dev"
},
"devDependencies": {
"@axe-core/playwright": "^4.11.3",
diff --git a/packages/build/README.md b/packages/build/README.md
index bc1e518b7a..cbbb51a9f9 100644
--- a/packages/build/README.md
+++ b/packages/build/README.md
@@ -3,7 +3,7 @@
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:
```
-reset < xds-base (library, xds prefix) < xds-theme < product (app, x prefix)
+reset < astryx-base (library, xds prefix) < astryx-theme < product (app, x prefix)
```
## Why?
@@ -116,7 +116,7 @@ export default nextConfig;
`src/app/layers.css`:
```css
-@layer reset, xds-base, xds-theme, product;
+@layer reset, astryx-base, astryx-theme, product;
```
`src/app/globals.css`:
@@ -191,7 +191,7 @@ Library patterns (configurable):
Compiles StyleX from both library and product source files in two separate passes with different prefixes. Wraps the results in named `@layer` blocks:
-- Library rules → `@layer xds-base`
+- Library rules → `@layer astryx-base`
- Product rules → `@layer product`
### Vite plugin (`@xds/build/vite`)
@@ -235,7 +235,7 @@ Wraps `@stylexjs/unplugin` and intercepts the dev CSS endpoint (`/virtual:stylex
libraryPrefix: 'xds', // Prefix for library CSS (default: 'xds')
extraInclude: [...], // Additional glob patterns
layers: { // Layer names (defaults shown)
- library: 'xds-base',
+ library: 'astryx-base',
product: 'product',
},
}
diff --git a/packages/build/src/index.js b/packages/build/src/index.js
index 9d4fa80eab..ac85b6ca27 100644
--- a/packages/build/src/index.js
+++ b/packages/build/src/index.js
@@ -9,7 +9,7 @@
* XDS library source and product code in two separate passes with
* different class name prefixes, then outputs them in separate layers:
*
- * reset < xds-base (library, prefix: 'xds') < xds-theme < product (prefix: 'x')
+ * reset < astryx-base (library, prefix: 'xds') < astryx-theme < product (prefix: 'x')
*
* The separate prefixes ensure atomic classes don't collide between
* layers, which would break theme overrides.
@@ -78,7 +78,7 @@ function createPlugin() {
appDir = 'src',
babelPlugins = [],
layers = {
- library: 'xds-base',
+ library: 'astryx-base',
product: 'product',
},
// Class name prefix for library styles (product keeps default 'x')
diff --git a/packages/build/src/vite.test.ts b/packages/build/src/vite.test.ts
index 1b1c0e4513..c2cff12b4e 100644
--- a/packages/build/src/vite.test.ts
+++ b/packages/build/src/vite.test.ts
@@ -3,10 +3,8 @@
/**
* @file vite.test.ts
* @description Verifies CSS layer-order injection in the XDS Vite plugin.
- * The theme layer name is intentionally NOT configurable — it stays
- * `xds-theme` for the whole compatibility window and is rebranded only at
- * the final cutover (XDS-prefix migration P2380608025), so consumers never
- * have to touch their `@layer` order line until then.
+ * The library layer name is configurable (default `astryx-base`); the
+ * theme layer name is fixed at `astryx-theme`.
*/
import {describe, it, expect} from 'vitest';
@@ -25,23 +23,23 @@ function getLayerOrder(plugins: ReturnType<typeof xdsStylex>): string {
}
describe('xdsStylex layer order (modern API)', () => {
- it('uses the xds-* layer names (theme layer is xds-theme)', () => {
+ it('uses the astryx-* layer names (theme layer is astryx-theme)', () => {
const order = getLayerOrder(xdsStylex());
- expect(order).toBe('@layer reset, xds-base, xds-theme, product;');
+ expect(order).toBe('@layer reset, astryx-base, astryx-theme, product;');
});
it('honors configured library and product layer names', () => {
const order = getLayerOrder(
- xdsStylex({layers: {library: 'astryx-base', product: 'app'}}),
+ xdsStylex({layers: {library: 'custom-base', product: 'app'}}),
);
- // The theme layer stays xds-theme regardless of other layer config.
- expect(order).toBe('@layer reset, astryx-base, xds-theme, app;');
+ // The theme layer stays astryx-theme regardless of other layer config.
+ expect(order).toBe('@layer reset, custom-base, astryx-theme, app;');
});
});
describe('xdsStylex layer order (legacy API)', () => {
- it('uses the xds-* layer names (theme layer is xds-theme)', () => {
+ it('uses the astryx-* layer names (theme layer is astryx-theme)', () => {
const order = getLayerOrder(xdsStylex({stylexOptions: {}}));
- expect(order).toBe('@layer reset, xds-base, xds-theme, product;');
+ expect(order).toBe('@layer reset, astryx-base, astryx-theme, product;');
});
});
diff --git a/packages/build/src/vite.ts b/packages/build/src/vite.ts
index eada550304..9b46195da4 100644
--- a/packages/build/src/vite.ts
+++ b/packages/build/src/vite.ts
@@ -60,7 +60,7 @@ export interface XDSVitePluginOptions {
* CSS layer names for the split output.
*/
layers?: {
- /** Layer name for XDS library styles @default 'xds-base' */
+ /** Layer name for XDS library styles @default 'astryx-base' */
library?: string;
/** Layer name for product styles @default 'product' */
product?: string;
@@ -103,7 +103,7 @@ export interface XDSVitePluginOptions {
*
* Handles:
* - StyleX compilation with correct settings
- * - CSS layer ordering (reset < xds-base < xds-theme < product)
+ * - CSS layer ordering (reset < astryx-base < astryx-theme < product)
* - resolve.alias for @xds/core source
* - optimizeDeps.exclude to prevent Vite pre-bundling XDS
*
@@ -128,7 +128,7 @@ export function xdsStylex(
stylexOverrides = {},
} = opts;
- const libraryLayer = layers.library ?? 'xds-base';
+ const libraryLayer = layers.library ?? 'astryx-base';
const productLayer = layers.product ?? 'product';
// Build StyleX options with sensible defaults
@@ -174,7 +174,7 @@ export function xdsStylex(
return [
{
tag: 'style',
- children: `@layer reset, ${libraryLayer}, xds-theme, ${productLayer};`,
+ children: `@layer reset, ${libraryLayer}, astryx-theme, ${productLayer};`,
injectTo: 'head-prepend',
},
];
@@ -310,7 +310,7 @@ function xdsStylexLegacy(options: XDSVitePluginLegacyOptions): Plugin[] {
layers = {},
} = options;
- const libraryLayer = layers.library ?? 'xds-base';
+ const libraryLayer = layers.library ?? 'astryx-base';
const productLayer = layers.product ?? 'product';
const xdsBabelPlugin = path.resolve(__dirname, 'babel.js');
@@ -341,7 +341,7 @@ function xdsStylexLegacy(options: XDSVitePluginLegacyOptions): Plugin[] {
return [
{
tag: 'style',
- children: `@layer reset, ${libraryLayer}, xds-theme, ${productLayer};`,
+ children: `@layer reset, ${libraryLayer}, astryx-theme, ${productLayer};`,
injectTo: 'head-prepend',
},
];
diff --git a/packages/cli/docs/getting-started.doc.mjs b/packages/cli/docs/getting-started.doc.mjs
index 43319e875c..cf2d707a77 100644
--- a/packages/cli/docs/getting-started.doc.mjs
+++ b/packages/cli/docs/getting-started.doc.mjs
@@ -62,7 +62,7 @@ export const docs = {
lang: 'css',
label: 'globals.css',
code: `@import '@xds/core/reset.css';
-@import '@xds/core/xds.css';
+@import '@xds/core/astryx.css';
@import '@xds/theme-default/theme.css';`,
},
{
diff --git a/packages/cli/docs/migration.doc.mjs b/packages/cli/docs/migration.doc.mjs
index 7fb3680da7..8fd0341865 100644
--- a/packages/cli/docs/migration.doc.mjs
+++ b/packages/cli/docs/migration.doc.mjs
@@ -115,12 +115,12 @@ export function AppRoot({children}: {children: React.ReactNode}) {
type: 'code',
lang: 'css',
label: 'Tailwind v4 coexistence',
- code: `@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+ code: `@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);`,
diff --git a/packages/cli/docs/styling-libraries.doc.mjs b/packages/cli/docs/styling-libraries.doc.mjs
index ef574a0668..7213117945 100644
--- a/packages/cli/docs/styling-libraries.doc.mjs
+++ b/packages/cli/docs/styling-libraries.doc.mjs
@@ -20,7 +20,7 @@ export const docs = {
},
{
type: 'prose',
- text: 'Use CSS variables for ordinary DOM styling because they inherit through the tree, follow `data-theme` color mode, respect nested `data-xds-theme` scopes, and update when themes switch. Use token resolver APIs only for non-CSS consumers such as SVG attribute values, canvas, chart configuration, color calculations, or static config generation.',
+ text: 'Use CSS variables for ordinary DOM styling because they inherit through the tree, follow `data-theme` color mode, respect nested `data-astryx-theme` scopes, and update when themes switch. Use token resolver APIs only for non-CSS consumers such as SVG attribute values, canvas, chart configuration, color calculations, or static config generation.',
},
{
type: 'prose',
@@ -73,7 +73,7 @@ export const docs = {
style: 'do',
items: [
'Map by semantic intent: text, surface, border, accent, status, radius, spacing, typography.',
- 'Let the system own color mode. The root Theme syncs `data-theme="light|dark"` and `data-xds-theme` to `<html>` for portals and first-level theme scope.',
+ 'Let the system own color mode. The root Theme syncs `data-theme="light|dark"` and `data-astryx-theme` to `<html>` for portals and first-level theme scope.',
'Prefer CSS variables for runtime theme switching and nested themes.',
],
},
@@ -156,12 +156,12 @@ const styles = stylex.create({
type: 'code',
lang: 'css',
label: 'globals.css',
- code: `@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+ code: `@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);`,
diff --git a/packages/cli/docs/styling.doc.mjs b/packages/cli/docs/styling.doc.mjs
index 39d4aaa288..9e497d0f24 100644
--- a/packages/cli/docs/styling.doc.mjs
+++ b/packages/cli/docs/styling.doc.mjs
@@ -98,12 +98,12 @@ const overrides = stylex.create({
type: 'code',
lang: 'css',
label: 'globals.css: import the bridge',
- code: `@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+ code: `@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "@xds/core/reset.css";
-@import "@xds/core/xds.css";
+@import "@xds/core/astryx.css";
@import "@xds/theme-default/theme.css";
@import "@xds/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);`,
@@ -232,20 +232,20 @@ const overrides = stylex.create({
content: [
{
type: 'prose',
- text: 'When external CSS needs to target an XDS component by prop or state, combine the stable component class with reflected data attributes. The component class identifies the component (`.xds-button`, `.xds-card`); data attributes identify the axis and value (`data-variant`, `data-size`, `data-level`, etc.). This is the preferred selector surface for new CSS because it is explicit and collision-resistant.',
+ text: 'When external CSS needs to target an XDS component by prop or state, combine the stable component class with reflected data attributes. The component class identifies the component (`.astryx-button`, `.astryx-card`); data attributes identify the axis and value (`data-variant`, `data-size`, `data-level`, etc.). This is the preferred selector surface for new CSS because it is explicit and collision-resistant.',
},
{
type: 'code',
lang: 'css',
- code: `.my-app .xds-button[data-variant="primary"] {
+ code: `.my-app .astryx-button[data-variant="primary"] {
/* primary buttons in this app context */
}
-.my-app .xds-button[data-variant="primary"][data-size="sm"] {
+.my-app .astryx-button[data-variant="primary"][data-size="sm"] {
/* small primary buttons */
}
-.my-app .xds-heading[data-level="2"] {
+.my-app .astryx-heading[data-level="2"] {
/* level 2 headings; numeric values stay literal in data attrs */
}`,
},
@@ -274,19 +274,19 @@ const overrides = stylex.create({
content: [
{
type: 'prose',
- text: 'XDS still emits legacy bare prop/state classes such as `.primary`, `.sm`, `.level-2`, and `.checked` for compatibility with existing apps and built themes. Do not write new CSS against these bare classes. The stable base component classes (`.xds-button`, `.xds-card`, etc.) are not deprecated; only the unprefixed prop/state classes are the legacy surface.',
+ text: 'XDS still emits legacy bare prop/state classes such as `.primary`, `.sm`, `.level-2`, and `.checked` for compatibility with existing apps and built themes. Do not write new CSS against these bare classes. The stable base component classes (`.astryx-button`, `.astryx-card`, etc.) are not deprecated; only the unprefixed prop/state classes are the legacy surface.',
},
{
type: 'code',
lang: 'css',
code: `/* Deprecated compatibility selector — avoid in new CSS */
-.my-app .xds-button.primary {
- /* use .xds-button[data-variant="primary"] instead */
+.my-app .astryx-button.primary {
+ /* use .astryx-button[data-variant="primary"] instead */
}
/* Deprecated compatibility selector — avoid in new CSS */
-.my-app .xds-heading.level-2 {
- /* use .xds-heading[data-level="2"] instead */
+.my-app .astryx-heading.level-2 {
+ /* use .astryx-heading[data-level="2"] instead */
}`,
},
],
diff --git a/packages/cli/src/api/doctor.mjs b/packages/cli/src/api/doctor.mjs
index 3561c07169..7c7e9a2de8 100644
--- a/packages/cli/src/api/doctor.mjs
+++ b/packages/cli/src/api/doctor.mjs
@@ -135,7 +135,7 @@ function detectThemeWiring(cwd) {
const nm = findNodeModules(cwd);
const projectDir = nm ? path.dirname(nm) : cwd;
const pkg = readPkg(path.join(projectDir, 'package.json'));
- if (pkg?.xds?.theme) return {wired: true, source: 'package.json xds.theme'};
+ if (pkg?.astryx?.theme) return {wired: true, source: 'package.json astryx.theme'};
return {wired: false, source: null};
}
diff --git a/packages/cli/src/commands/build-theme.mjs b/packages/cli/src/commands/build-theme.mjs
index db5b4dbd75..ee6cc658b7 100644
--- a/packages/cli/src/commands/build-theme.mjs
+++ b/packages/cli/src/commands/build-theme.mjs
@@ -242,14 +242,11 @@ function resolveTokenValue(value) {
return value;
}
-// Dual-prefix theme @scope selector helpers (XDS-prefix migration
-// P2380608025). Keep the `astryx` literal in sync with
+// Theme @scope selector helpers. Keep the `astryx` literal in sync with
// packages/core/src/naming.ts (NAMESPACE) and generateThemeRules.ts.
-// XDSTheme dual-emits both data-astryx-theme and data-xds-theme during the
-// compat window, so the static build path must scope to either form too.
-const themeScopeStart = name =>
- `[data-astryx-theme="${name}"], [data-xds-theme="${name}"]`;
-const THEME_SCOPE_TO = `[data-astryx-theme], [data-xds-theme]`;
+// Theme scopes to data-astryx-theme; the static build path must match.
+const themeScopeStart = name => `[data-astryx-theme="${name}"]`;
+const THEME_SCOPE_TO = `[data-astryx-theme]`;
/**
* Import a theme module using jiti and find the defineTheme() result.
@@ -719,14 +716,14 @@ export function registerTheme(program) {
? ' :root { color-scheme: light dark; }\n\n'
: '';
cssParts.push(
- `@layer xds-theme {\n${colorSchemeDecl}${componentScope}\n}`,
+ `@layer astryx-theme {\n${colorSchemeDecl}${componentScope}\n}`,
);
}
// On-media rules (MediaTheme dark/light surface overrides)
if (_generateOnMediaCSS) {
const onMediaCss = _generateOnMediaCSS(resolvedTheme);
if (onMediaCss) {
- cssParts.push(`@layer xds-theme {\n${onMediaCss}\n}`);
+ cssParts.push(`@layer astryx-theme {\n${onMediaCss}\n}`);
}
}
if (cssParts.length === 0) {
diff --git a/packages/cli/src/commands/build-theme.prose.test.mjs b/packages/cli/src/commands/build-theme.prose.test.mjs
index 9abfc22011..2377f0efd2 100644
--- a/packages/cli/src/commands/build-theme.prose.test.mjs
+++ b/packages/cli/src/commands/build-theme.prose.test.mjs
@@ -12,7 +12,7 @@
*
* Covers:
* - prose defaults ship in `@layer reset` (zero-specificity :where()), NOT
- * `@layer xds-theme`, so component/Markdown StyleX always wins;
+ * `@layer astryx-theme`, so component/Markdown StyleX always wins;
* - no raw element margins are emitted (reset.css zeroes them and the
* components own block spacing — see the docsite Markdown regression);
* - paragraphs use the body font, not the heading font.
@@ -106,7 +106,7 @@ describe('theme build prose output', () => {
const css = fs.readFileSync(cssPath, 'utf-8');
// Prose defaults are zero-specificity :where() rules in @layer reset,
- // NOT @layer xds-theme, so Markdown/component StyleX always wins.
+ // NOT @layer astryx-theme, so Markdown/component StyleX always wins.
expect(css).toMatch(/@layer reset/);
expect(css).toMatch(/:where\(h1, h2, h3, h4, h5, h6\)/);
// Paragraphs use the body font (regression: they used the heading font).
@@ -114,14 +114,14 @@ describe('theme build prose output', () => {
// No raw element margins — reset.css + component StyleX own spacing.
const proseBlock = css.slice(
css.indexOf('@layer reset'),
- css.indexOf('@layer xds-theme'),
+ css.indexOf('@layer astryx-theme'),
);
expect(proseBlock).not.toMatch(/margin/);
// Layer placement: prose (reset) must come before component overrides
- // (xds-theme) so the cascade resolves correctly.
+ // (astryx-theme) so the cascade resolves correctly.
const resetIndex = css.indexOf('@layer reset');
- const themeIndex = css.indexOf('@layer xds-theme');
+ const themeIndex = css.indexOf('@layer astryx-theme');
expect(resetIndex).toBeGreaterThanOrEqual(0);
expect(themeIndex).toBeGreaterThan(resetIndex);
expect(css.indexOf(':where(p)')).toBeLessThan(themeIndex);
diff --git a/packages/cli/src/commands/component-package.test.mjs b/packages/cli/src/commands/component-package.test.mjs
index 4d2470466b..489539d8ce 100644
--- a/packages/cli/src/commands/component-package.test.mjs
+++ b/packages/cli/src/commands/component-package.test.mjs
@@ -46,7 +46,7 @@ export const doc = {
fs.writeFileSync(path.join(extDir, 'package.json'), JSON.stringify({
name: '@test/ext',
- xds: {docs: './src', category: 'Common', blocks: './blocks/components'},
+ astryx: {docs: './src', category: 'Common', blocks: './blocks/components'},
}));
fs.writeFileSync(path.join(extSrc, 'Button', 'Button.doc.mjs'), `
export const docs = {
diff --git a/packages/cli/src/commands/discover.mjs b/packages/cli/src/commands/discover.mjs
index e86ec59894..ae2bcf0a22 100644
--- a/packages/cli/src/commands/discover.mjs
+++ b/packages/cli/src/commands/discover.mjs
@@ -58,10 +58,10 @@ export function registerDiscover(program) {
} else {
humanLog('No external packages found.');
humanLog('');
- humanLog('Packages opt in by adding an "xds" field to package.json:');
+ humanLog('Packages opt in by adding an "astryx" field to package.json:');
humanLog('');
humanLog(' {');
- humanLog(' "xds": {');
+ humanLog(' "astryx": {');
humanLog(' "docs": "./src",');
humanLog(' "category": "Common"');
humanLog(' }');
diff --git a/packages/cli/src/commands/external-showcase.test.mjs b/packages/cli/src/commands/external-showcase.test.mjs
index 5f6011cb19..575f3dbc5f 100644
--- a/packages/cli/src/commands/external-showcase.test.mjs
+++ b/packages/cli/src/commands/external-showcase.test.mjs
@@ -70,7 +70,7 @@ export const doc = {
fs.writeFileSync(path.join(extDir, 'package.json'), JSON.stringify({
name: '@test/ext',
- xds: {docs: './src', category: 'Common', blocks: './blocks/components'},
+ astryx: {docs: './src', category: 'Common', blocks: './blocks/components'},
}));
// Need src dir for docs (even if empty) since discoverExternalPackages checks it
diff --git a/packages/cli/src/lib/package-scanner.mjs b/packages/cli/src/lib/package-scanner.mjs
index 186f942d02..26edf1d604 100644
--- a/packages/cli/src/lib/package-scanner.mjs
+++ b/packages/cli/src/lib/package-scanner.mjs
@@ -16,9 +16,9 @@ export function scanDirectory(scanDir) {
if (!fs.existsSync(pkgPath)) continue;
let pkg;
try { pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')); } catch { continue; }
- if (!pkg.xds || !pkg.xds.docs) continue;
+ if (!pkg.astryx || !pkg.astryx.docs) continue;
const pkgDir = path.join(scanDir, entry.name);
- const docsDir = path.resolve(pkgDir, pkg.xds.docs);
+ const docsDir = path.resolve(pkgDir, pkg.astryx.docs);
const components = discoverDocComponents(docsDir);
if (components.length === 0) continue;
packages.push({
@@ -27,8 +27,8 @@ export function scanDirectory(scanDir) {
description: pkg.description,
displayName: pkg.displayName,
dir: pkgDir,
- xds: pkg.xds,
- category: pkg.xds.category || pkg.name || entry.name,
+ astryx: pkg.astryx,
+ category: pkg.astryx.category || pkg.name || entry.name,
docsDir,
components,
});
diff --git a/packages/cli/src/lib/resolve-theme.mjs b/packages/cli/src/lib/resolve-theme.mjs
index 8e8b662de6..df8bc398d0 100644
--- a/packages/cli/src/lib/resolve-theme.mjs
+++ b/packages/cli/src/lib/resolve-theme.mjs
@@ -92,7 +92,7 @@ export function resolveTheme(cwd = process.cwd()) {
if (fs.existsSync(pkgPath)) {
try {
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
- specifier = pkg.xds?.theme || null;
+ specifier = pkg.astryx?.theme || null;
} catch {
// Ignore parse errors
}
diff --git a/packages/cli/src/utils/paths.mjs b/packages/cli/src/utils/paths.mjs
index 80b42ff3b5..27536b38fc 100644
--- a/packages/cli/src/utils/paths.mjs
+++ b/packages/cli/src/utils/paths.mjs
@@ -70,10 +70,10 @@ export function findProjectRoot(startDir = process.cwd()) {
}
/**
- * Discover external XDS-compatible packages from node_modules.
- * Scans for packages with an "xds" field in their package.json:
+ * Discover external Astryx-compatible packages from node_modules.
+ * Scans for packages with an "astryx" field in their package.json:
*
- * { "xds": { "docs": "./src", "category": "Common", "blocks": "./blocks/components" } }
+ * { "astryx": { "docs": "./src", "category": "Common", "blocks": "./blocks/components" } }
*
* Returns array of { name, category, docsDir, blocksDir }.
*/
@@ -118,13 +118,13 @@ export function discoverExternalPackages(startDir = process.cwd()) {
try {
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8'));
if (pkg.name === '@xds/core') continue;
- if (pkg.xds && pkg.xds.docs) {
+ if (pkg.astryx && pkg.astryx.docs) {
externals.push({
name: pkg.name,
- category: pkg.xds.category || pkg.name,
- docsDir: path.resolve(fullPath, pkg.xds.docs),
- blocksDir: pkg.xds.blocks
- ? path.resolve(fullPath, pkg.xds.blocks)
+ category: pkg.astryx.category || pkg.name,
+ docsDir: path.resolve(fullPath, pkg.astryx.docs),
+ blocksDir: pkg.astryx.blocks
+ ? path.resolve(fullPath, pkg.astryx.blocks)
: null,
});
}
diff --git a/packages/cli/src/utils/paths.test.mjs b/packages/cli/src/utils/paths.test.mjs
index 5726c4e389..023cfd50f3 100644
--- a/packages/cli/src/utils/paths.test.mjs
+++ b/packages/cli/src/utils/paths.test.mjs
@@ -67,7 +67,7 @@ describe('findProjectRoot', () => {
});
describe('discoverExternalPackages', () => {
- it('finds packages with an "xds" field in package.json', () => {
+ it('finds packages with an "astryx" field in package.json', () => {
const nm = path.join(tmpDir, 'node_modules');
const extDir = path.join(nm, 'xds-charts');
fs.mkdirSync(extDir, {recursive: true});
@@ -75,7 +75,7 @@ describe('discoverExternalPackages', () => {
path.join(extDir, 'package.json'),
JSON.stringify({
name: 'xds-charts',
- xds: {docs: './src', category: 'Data Viz'},
+ astryx: {docs: './src', category: 'Data Viz'},
}),
);
@@ -98,7 +98,7 @@ describe('discoverExternalPackages', () => {
path.join(scopedDir, 'package.json'),
JSON.stringify({
name: '@acme/xds-widgets',
- xds: {docs: './lib', category: 'Widgets'},
+ astryx: {docs: './lib', category: 'Widgets'},
}),
);
@@ -121,7 +121,7 @@ describe('discoverExternalPackages', () => {
path.join(coreDir, 'package.json'),
JSON.stringify({
name: '@xds/core',
- xds: {docs: './src'},
+ astryx: {docs: './src'},
}),
);
@@ -129,7 +129,7 @@ describe('discoverExternalPackages', () => {
expect(result).toEqual([]);
});
- it('skips packages without "xds" field', () => {
+ it('skips packages without "astryx" field', () => {
const nm = path.join(tmpDir, 'node_modules');
const extDir = path.join(nm, 'some-lib');
fs.mkdirSync(extDir, {recursive: true});
@@ -150,7 +150,7 @@ describe('discoverExternalPackages', () => {
path.join(extDir, 'package.json'),
JSON.stringify({
name: 'my-components',
- xds: {docs: './docs'},
+ astryx: {docs: './docs'},
}),
);
@@ -171,7 +171,7 @@ describe('discoverExternalPackages', () => {
path.join(extDir, 'package.json'),
JSON.stringify({
name: 'xds-ext',
- xds: {docs: './src'},
+ astryx: {docs: './src'},
}),
);
diff --git a/packages/cli/src/utils/update-check.mjs b/packages/cli/src/utils/update-check.mjs
index 3cadc78f61..17ccfaee2d 100644
--- a/packages/cli/src/utils/update-check.mjs
+++ b/packages/cli/src/utils/update-check.mjs
@@ -35,7 +35,7 @@ export function getLatestVersion(cwd = process.cwd()) {
const pkgPath = path.resolve(cwd, 'package.json');
if (fs.existsSync(pkgPath)) {
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
- const versionFile = pkg.xds?.versionFile;
+ const versionFile = pkg.astryx?.versionFile;
if (versionFile) {
const filePath = path.resolve(cwd, versionFile);
diff --git a/packages/cli/src/utils/update-check.test.mjs b/packages/cli/src/utils/update-check.test.mjs
index a7a3d0a70f..04efd48dee 100644
--- a/packages/cli/src/utils/update-check.test.mjs
+++ b/packages/cli/src/utils/update-check.test.mjs
@@ -46,7 +46,7 @@ describe('getLatestVersion', () => {
fs.writeFileSync(versionFilePath, '0.0.9\n');
fs.writeFileSync(
path.join(tmpDir, 'package.json'),
- JSON.stringify({xds: {versionFile: './LATEST_VERSION'}}),
+ JSON.stringify({astryx: {versionFile: './LATEST_VERSION'}}),
);
expect(getLatestVersion(tmpDir)).toBe('0.0.9');
@@ -63,7 +63,7 @@ describe('getLatestVersion', () => {
it('returns null when versionFile path does not exist', () => {
fs.writeFileSync(
path.join(tmpDir, 'package.json'),
- JSON.stringify({xds: {versionFile: './missing/LATEST_VERSION'}}),
+ JSON.stringify({astryx: {versionFile: './missing/LATEST_VERSION'}}),
);
expect(getLatestVersion(tmpDir)).toBeNull();
});
@@ -74,7 +74,7 @@ describe('getLatestVersion', () => {
fs.writeFileSync(versionFilePath, '0.0.9\n');
fs.writeFileSync(
path.join(tmpDir, 'package.json'),
- JSON.stringify({xds: {versionFile: './LATEST_VERSION'}}),
+ JSON.stringify({astryx: {versionFile: './LATEST_VERSION'}}),
);
expect(getLatestVersion(tmpDir)).toBe('1.0.0');
@@ -147,7 +147,7 @@ describe('checkForUpdate', () => {
path.join(tmpDir, 'package.json'),
JSON.stringify({
dependencies: {'@xds/core': '^0.0.7'},
- xds: {versionFile: './LATEST_VERSION'},
+ astryx: {versionFile: './LATEST_VERSION'},
}),
);
@@ -162,7 +162,7 @@ describe('checkForUpdate', () => {
path.join(tmpDir, 'package.json'),
JSON.stringify({
dependencies: {'@xds/core': '^0.0.7'},
- xds: {versionFile: './LATEST_VERSION'},
+ astryx: {versionFile: './LATEST_VERSION'},
}),
);
diff --git a/packages/core/README.md b/packages/core/README.md
index 99ea588752..09e754bbba 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -79,12 +79,12 @@ No build plugins needed; XDS ships pre-built CSS that works alongside Tailwind.
**`src/app/globals.css`**
```css
-@layer reset, theme, base, xds-base, xds-theme, components, utilities;
+@layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
@import 'tailwindcss/theme.css' layer(theme);
@import 'tailwindcss/preflight.css' layer(base);
@import '@xds/core/reset.css';
-@import '@xds/core/xds.css';
+@import '@xds/core/astryx.css';
@import '@xds/theme-default/theme.css';
@import '@xds/core/tailwind-theme.css';
@import 'tailwindcss/utilities.css' layer(utilities);
@@ -172,7 +172,7 @@ npm install @xds/core @xds/theme-default
```css
@import '@xds/core/reset.css';
-@import '@xds/core/xds.css';
+@import '@xds/core/astryx.css';
@import '@xds/theme-default/theme.css';
```
diff --git a/packages/core/package.json b/packages/core/package.json
index 85353e97fb..15877c4df3 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -43,10 +43,6 @@
"types": "./src/reset.css.d.ts",
"default": "./src/reset.css"
},
- "./xds.css": {
- "types": "./src/xds.css.d.ts",
- "default": "./dist/xds.css"
- },
"./astryx.css": {
"types": "./src/astryx.css.d.ts",
"default": "./dist/astryx.css"
diff --git a/packages/core/src/AlertDialog/index.ts b/packages/core/src/AlertDialog/index.ts
index 183524893e..0d05d03544 100644
--- a/packages/core/src/AlertDialog/index.ts
+++ b/packages/core/src/AlertDialog/index.ts
@@ -7,20 +7,3 @@ export type {AlertDialogProps} from './AlertDialog';
export {useImperativeAlertDialog} from './useImperativeAlertDialog';
export type {ImperativeAlertDialogReturn} from './useImperativeAlertDialog';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- AlertDialog as XDSAlertDialog,
- useImperativeAlertDialog as useXDSImperativeAlertDialog,
-} from '.';
-export type {
- AlertDialogProps as XDSAlertDialogProps,
- ImperativeAlertDialogReturn as XDSImperativeAlertDialogReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/AppShell/AppShell.doc.mjs b/packages/core/src/AppShell/AppShell.doc.mjs
index e6171c1a33..388a27f57c 100644
--- a/packages/core/src/AppShell/AppShell.doc.mjs
+++ b/packages/core/src/AppShell/AppShell.doc.mjs
@@ -107,9 +107,9 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-app-shell', visualProps: ['variant']},
- {className: 'xds-app-shell-header', visualProps: ['variant']},
- {className: 'xds-app-shell-sidenav', visualProps: ['variant']},
+ {className: 'astryx-app-shell', visualProps: ['variant']},
+ {className: 'astryx-app-shell-header', visualProps: ['variant']},
+ {className: 'astryx-app-shell-sidenav', visualProps: ['variant']},
],
},
};
@@ -165,13 +165,13 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-app-shell',
+ className: 'astryx-app-shell',
visualProps: [
'variant',
],
},
- {className: 'xds-app-shell-header', visualProps: ['variant']},
- {className: 'xds-app-shell-sidenav', visualProps: ['variant']},
+ {className: 'astryx-app-shell-header', visualProps: ['variant']},
+ {className: 'astryx-app-shell-sidenav', visualProps: ['variant']},
],
},
};
diff --git a/packages/core/src/AppShell/AppShell.test.tsx b/packages/core/src/AppShell/AppShell.test.tsx
index fd078ac47c..a9c66cbc5d 100644
--- a/packages/core/src/AppShell/AppShell.test.tsx
+++ b/packages/core/src/AppShell/AppShell.test.tsx
@@ -444,7 +444,7 @@ describe('AppShell', () => {
</AppShell>,
);
- const inlinePanel = container.querySelector('.xds-layout-panel');
+ const inlinePanel = container.querySelector('.astryx-layout-panel');
expect(inlinePanel).toBeNull();
});
@@ -461,7 +461,7 @@ describe('AppShell', () => {
// SideNav should NOT be rendered inline — it's in the mobile drawer
const inlinePanel = container.querySelector(
- '.xds-app-shell > .xds-layout .xds-layout-panel',
+ '.astryx-app-shell > .astryx-layout .astryx-layout-panel',
);
expect(inlinePanel).toBeNull();
});
diff --git a/packages/core/src/AppShell/index.ts b/packages/core/src/AppShell/index.ts
index 52064b8c47..9e8ab75fbe 100644
--- a/packages/core/src/AppShell/index.ts
+++ b/packages/core/src/AppShell/index.ts
@@ -24,25 +24,3 @@ export {
AppShellMobileContext,
} from './AppShellMobileContext';
export type {AppShellMobileContextValue} from './AppShellMobileContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- AppShell as XDSAppShell,
- AppShellMobileContext as XDSAppShellMobileContext,
- useAppShellMobile as useXDSAppShellMobile,
-} from '.';
-export type {
- AppShellBreakpoint as XDSAppShellBreakpoint,
- AppShellMobileContextValue as XDSAppShellMobileContextValue,
- AppShellProps as XDSAppShellProps,
- AppShellVariant as XDSAppShellVariant,
- AppShellVariantMap as XDSAppShellVariantMap,
- MobileNavConfig as XDSMobileNavConfig,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/AspectRatio/AspectRatio.doc.mjs b/packages/core/src/AspectRatio/AspectRatio.doc.mjs
index 6be8f63cf2..75573d3d30 100644
--- a/packages/core/src/AspectRatio/AspectRatio.doc.mjs
+++ b/packages/core/src/AspectRatio/AspectRatio.doc.mjs
@@ -45,7 +45,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-aspect-ratio'},
+ {className: 'astryx-aspect-ratio'},
],
},
};
@@ -76,7 +76,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-aspect-ratio'},
+ {className: 'astryx-aspect-ratio'},
],
},
};
diff --git a/packages/core/src/AspectRatio/index.ts b/packages/core/src/AspectRatio/index.ts
index 0b91682b8b..4efaa124d7 100644
--- a/packages/core/src/AspectRatio/index.ts
+++ b/packages/core/src/AspectRatio/index.ts
@@ -13,19 +13,3 @@
export {AspectRatio} from './AspectRatio';
export type {AspectRatioProps, AspectRatioShape} from './AspectRatio';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- AspectRatio as XDSAspectRatio,
-} from '.';
-export type {
- AspectRatioProps as XDSAspectRatioProps,
- AspectRatioShape as XDSAspectRatioShape,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Avatar/Avatar.doc.mjs b/packages/core/src/Avatar/Avatar.doc.mjs
index 8c5bee7344..f3c875e470 100644
--- a/packages/core/src/Avatar/Avatar.doc.mjs
+++ b/packages/core/src/Avatar/Avatar.doc.mjs
@@ -27,8 +27,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-avatar', visualProps: ['size']},
- {className: 'xds-avatar-status-dot', visualProps: ['variant']},
+ {className: 'astryx-avatar', visualProps: ['size']},
+ {className: 'astryx-avatar-status-dot', visualProps: ['variant']},
],
},
description: 'Displays a user avatar with image, initials fallback, and optional status indicator.',
diff --git a/packages/core/src/Avatar/index.ts b/packages/core/src/Avatar/index.ts
index a8144b9849..5f215b00d9 100644
--- a/packages/core/src/Avatar/index.ts
+++ b/packages/core/src/Avatar/index.ts
@@ -19,23 +19,3 @@ export type {
AvatarStatusDotVariant,
AvatarStatusDotVariantMap,
} from './AvatarStatusDot';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Avatar as XDSAvatar,
- AvatarStatusDot as XDSAvatarStatusDot,
-} from '.';
-export type {
- AvatarProps as XDSAvatarProps,
- AvatarSize as XDSAvatarSize,
- AvatarStatusDotProps as XDSAvatarStatusDotProps,
- AvatarStatusDotVariant as XDSAvatarStatusDotVariant,
- AvatarStatusDotVariantMap as XDSAvatarStatusDotVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs b/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs
index cd8d1c8905..f20777a081 100644
--- a/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs
+++ b/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs
@@ -23,7 +23,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-avatar-group', visualProps: ['size']},
+ {className: 'astryx-avatar-group', visualProps: ['size']},
],
},
description: 'Stacked avatar display with overlapping layout and optional overflow indicator. Children are Avatar elements.',
diff --git a/packages/core/src/AvatarGroup/AvatarGroup.test.tsx b/packages/core/src/AvatarGroup/AvatarGroup.test.tsx
index c08ed3a1f6..3b91238c3f 100644
--- a/packages/core/src/AvatarGroup/AvatarGroup.test.tsx
+++ b/packages/core/src/AvatarGroup/AvatarGroup.test.tsx
@@ -62,7 +62,7 @@ describe('AvatarGroup', () => {
);
const group = screen.getByRole('group');
- expect(group.className).toContain('xds-avatar-group');
+ expect(group.className).toContain('astryx-avatar-group');
expect(group.className).toContain('medium');
});
diff --git a/packages/core/src/AvatarGroup/index.ts b/packages/core/src/AvatarGroup/index.ts
index 3fe516fe0f..84a701cb52 100644
--- a/packages/core/src/AvatarGroup/index.ts
+++ b/packages/core/src/AvatarGroup/index.ts
@@ -18,22 +18,3 @@ export type {AvatarGroupOverflowProps} from './AvatarGroupOverflow';
export {useAvatarGroup} from './AvatarGroupContext';
export type {AvatarGroupContextValue} from './AvatarGroupContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- AvatarGroup as XDSAvatarGroup,
- AvatarGroupOverflow as XDSAvatarGroupOverflow,
- useAvatarGroup as useXDSAvatarGroup,
-} from '.';
-export type {
- AvatarGroupContextValue as XDSAvatarGroupContextValue,
- AvatarGroupOverflowProps as XDSAvatarGroupOverflowProps,
- AvatarGroupProps as XDSAvatarGroupProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Badge/Badge.doc.mjs b/packages/core/src/Badge/Badge.doc.mjs
index fc1ea4c590..e616b85ec0 100644
--- a/packages/core/src/Badge/Badge.doc.mjs
+++ b/packages/core/src/Badge/Badge.doc.mjs
@@ -35,7 +35,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-badge', visualProps: ['variant']},
+ {className: 'astryx-badge', visualProps: ['variant']},
],
},
usage: {
@@ -98,7 +98,7 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-badge',
+ className: 'astryx-badge',
visualProps: [
'variant',
],
diff --git a/packages/core/src/Badge/Badge.test.tsx b/packages/core/src/Badge/Badge.test.tsx
index 222281c182..4796e788aa 100644
--- a/packages/core/src/Badge/Badge.test.tsx
+++ b/packages/core/src/Badge/Badge.test.tsx
@@ -51,7 +51,7 @@ describe('Badge', () => {
it('applies xds class name with non-semantic variant', () => {
const {container} = render(<Badge variant="purple" label="Tag" />);
const root = container.firstElementChild!;
- expect(root.className).toContain('xds-badge');
+ expect(root.className).toContain('astryx-badge');
expect(root.className).toContain('purple');
});
@@ -77,7 +77,7 @@ describe('Badge', () => {
it('renders xds-* class names for theme targeting', () => {
const {container} = render(<Badge variant="success" label="Active" />);
const root = container.firstElementChild!;
- expect(root.className).toContain('xds-badge');
+ expect(root.className).toContain('astryx-badge');
expect(root.className).toContain('success');
});
});
diff --git a/packages/core/src/Badge/index.ts b/packages/core/src/Badge/index.ts
index e1fed0a81d..3bfa983d8e 100644
--- a/packages/core/src/Badge/index.ts
+++ b/packages/core/src/Badge/index.ts
@@ -17,20 +17,3 @@ export type {
BadgeVariant,
BadgeVariantMap,
} from './Badge';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Badge as XDSBadge,
-} from '.';
-export type {
- BadgeProps as XDSBadgeProps,
- BadgeVariant as XDSBadgeVariant,
- BadgeVariantMap as XDSBadgeVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Banner/Banner.doc.mjs b/packages/core/src/Banner/Banner.doc.mjs
index a322d9551c..b7f9ae2e36 100644
--- a/packages/core/src/Banner/Banner.doc.mjs
+++ b/packages/core/src/Banner/Banner.doc.mjs
@@ -104,8 +104,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-banner', visualProps: ['container', 'status']},
- {className: 'xds-banner-icon', visualProps: ['status']},
+ {className: 'astryx-banner', visualProps: ['container', 'status']},
+ {className: 'astryx-banner-icon', visualProps: ['status']},
],
vars: [
{name: '--_banner-radius', description: 'Border radius (card container only)', default: 'var(--radius-container)', private: true},
@@ -160,14 +160,14 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-banner',
+ className: 'astryx-banner',
visualProps: [
'container',
'status',
],
},
{
- className: 'xds-banner-icon',
+ className: 'astryx-banner-icon',
visualProps: [
'status',
],
diff --git a/packages/core/src/Banner/index.ts b/packages/core/src/Banner/index.ts
index 096b6043e7..a978140862 100644
--- a/packages/core/src/Banner/index.ts
+++ b/packages/core/src/Banner/index.ts
@@ -19,22 +19,3 @@ export type {
BannerContainer,
BannerContainerMap,
} from './Banner';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Banner as XDSBanner,
-} from '.';
-export type {
- BannerContainer as XDSBannerContainer,
- BannerContainerMap as XDSBannerContainerMap,
- BannerProps as XDSBannerProps,
- BannerStatus as XDSBannerStatus,
- BannerStatusMap as XDSBannerStatusMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Blockquote/Blockquote.doc.mjs b/packages/core/src/Blockquote/Blockquote.doc.mjs
index 0e0f885dda..8c28178918 100644
--- a/packages/core/src/Blockquote/Blockquote.doc.mjs
+++ b/packages/core/src/Blockquote/Blockquote.doc.mjs
@@ -30,7 +30,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-blockquote', visualProps: []},
+ {className: 'astryx-blockquote', visualProps: []},
],
},
usage: {
@@ -68,7 +68,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-blockquote', visualProps: []},
+ {className: 'astryx-blockquote', visualProps: []},
],
},
usage: {
diff --git a/packages/core/src/Blockquote/Blockquote.test.tsx b/packages/core/src/Blockquote/Blockquote.test.tsx
index 587b2789e2..3b5f62ee4c 100644
--- a/packages/core/src/Blockquote/Blockquote.test.tsx
+++ b/packages/core/src/Blockquote/Blockquote.test.tsx
@@ -25,7 +25,7 @@ describe('Blockquote', () => {
it('renders xds-* class name for theme targeting', () => {
render(<Blockquote data-testid="bq">Quote</Blockquote>);
const element = screen.getByTestId('bq');
- expect(element.className).toContain('xds-blockquote');
+ expect(element.className).toContain('astryx-blockquote');
});
it('renders without cite by default', () => {
diff --git a/packages/core/src/Blockquote/index.ts b/packages/core/src/Blockquote/index.ts
index eff2e9844c..f0bea5cac2 100644
--- a/packages/core/src/Blockquote/index.ts
+++ b/packages/core/src/Blockquote/index.ts
@@ -13,18 +13,3 @@
export {Blockquote} from './Blockquote';
export type {BlockquoteProps} from './Blockquote';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Blockquote as XDSBlockquote,
-} from '.';
-export type {
- BlockquoteProps as XDSBlockquoteProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs b/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs
index 425ae26785..f385a94642 100644
--- a/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs
+++ b/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs
@@ -29,8 +29,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-breadcrumb-item'},
- {className: 'xds-breadcrumbs', visualProps: ['variant']},
+ {className: 'astryx-breadcrumb-item'},
+ {className: 'astryx-breadcrumbs', visualProps: ['variant']},
],
},
description: 'Navigation container that renders a <nav> with an ordered list of breadcrumb items.',
diff --git a/packages/core/src/Breadcrumbs/index.ts b/packages/core/src/Breadcrumbs/index.ts
index 3bdea17f4d..9205af570a 100644
--- a/packages/core/src/Breadcrumbs/index.ts
+++ b/packages/core/src/Breadcrumbs/index.ts
@@ -14,22 +14,3 @@ export type {
} from './Breadcrumbs';
export {BreadcrumbItem} from './BreadcrumbItem';
export type {BreadcrumbItemProps} from './BreadcrumbItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- BreadcrumbItem as XDSBreadcrumbItem,
- Breadcrumbs as XDSBreadcrumbs,
-} from '.';
-export type {
- BreadcrumbItemProps as XDSBreadcrumbItemProps,
- BreadcrumbsProps as XDSBreadcrumbsProps,
- BreadcrumbsVariant as XDSBreadcrumbsVariant,
- BreadcrumbsVariantMap as XDSBreadcrumbsVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Button/Button.doc.mjs b/packages/core/src/Button/Button.doc.mjs
index 8dd62937c5..a70fe2b352 100644
--- a/packages/core/src/Button/Button.doc.mjs
+++ b/packages/core/src/Button/Button.doc.mjs
@@ -140,7 +140,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-button', visualProps: ['size', 'variant']},
+ {className: 'astryx-button', visualProps: ['size', 'variant']},
],
vars: [
{name: '--_button-radius', description: 'Border radius', default: 'var(--radius-element)', private: true},
@@ -217,7 +217,7 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-button',
+ className: 'astryx-button',
visualProps: [
'size',
'variant',
diff --git a/packages/core/src/Button/Button.test.tsx b/packages/core/src/Button/Button.test.tsx
index ebf068f461..ea2185093a 100644
--- a/packages/core/src/Button/Button.test.tsx
+++ b/packages/core/src/Button/Button.test.tsx
@@ -84,7 +84,7 @@ describe('Button', () => {
const {container, unmount} = render(
<Button label="Submit" variant={variant} isLoading />,
);
- const spinner = container.querySelector('.xds-spinner');
+ const spinner = container.querySelector('.astryx-spinner');
expect(spinner).not.toBeNull();
expect(spinner).toHaveAttribute('data-shade', 'inherit');
unmount();
@@ -210,7 +210,7 @@ describe('Button', () => {
it('renders xds-* classes and data attributes for theme targeting', () => {
render(<Button label="Test" variant="secondary" size="sm" />);
const button = screen.getByRole('button');
- expect(button.className).toContain('xds-button');
+ expect(button.className).toContain('astryx-button');
expect(button.className).toContain('secondary');
expect(button.className).toContain('sm');
expect(button).toHaveAttribute('data-variant', 'secondary');
diff --git a/packages/core/src/Button/index.ts b/packages/core/src/Button/index.ts
index becda432ce..46e573bcae 100644
--- a/packages/core/src/Button/index.ts
+++ b/packages/core/src/Button/index.ts
@@ -18,21 +18,3 @@ export type {
ButtonSize,
} from './Button';
export type {ButtonVariantMap} from './Button';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Button as XDSButton,
-} from '.';
-export type {
- ButtonProps as XDSButtonProps,
- ButtonSize as XDSButtonSize,
- ButtonVariant as XDSButtonVariant,
- ButtonVariantMap as XDSButtonVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs
index dca81e8eab..58bd135e6e 100644
--- a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs
+++ b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs
@@ -15,7 +15,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-button-group'},
+ {className: 'astryx-button-group'},
],
},
components: [
diff --git a/packages/core/src/ButtonGroup/index.ts b/packages/core/src/ButtonGroup/index.ts
index 8673b93838..474fa875c6 100644
--- a/packages/core/src/ButtonGroup/index.ts
+++ b/packages/core/src/ButtonGroup/index.ts
@@ -17,21 +17,3 @@ export type {
ButtonGroupOrientation,
ButtonGroupContextValue,
} from './ButtonGroupContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ButtonGroup as XDSButtonGroup,
- useButtonGroup as useXDSButtonGroup,
-} from '.';
-export type {
- ButtonGroupContextValue as XDSButtonGroupContextValue,
- ButtonGroupOrientation as XDSButtonGroupOrientation,
- ButtonGroupProps as XDSButtonGroupProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Calendar/Calendar.doc.mjs b/packages/core/src/Calendar/Calendar.doc.mjs
index 927495bf4b..18be2684f9 100644
--- a/packages/core/src/Calendar/Calendar.doc.mjs
+++ b/packages/core/src/Calendar/Calendar.doc.mjs
@@ -110,8 +110,8 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-calendar', visualProps: ['mode']},
- {className: 'xds-calendar-day', states: ['selected', 'today', 'disabled', 'in-range']},
+ {className: 'astryx-calendar', visualProps: ['mode']},
+ {className: 'astryx-calendar-day', states: ['selected', 'today', 'disabled', 'in-range']},
],
},
};
@@ -152,13 +152,13 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-calendar',
+ className: 'astryx-calendar',
visualProps: [
'mode',
],
},
{
- className: 'xds-calendar-day',
+ className: 'astryx-calendar-day',
states: [
'selected',
'today',
diff --git a/packages/core/src/Calendar/index.ts b/packages/core/src/Calendar/index.ts
index 1a8f5736df..63bc27d173 100644
--- a/packages/core/src/Calendar/index.ts
+++ b/packages/core/src/Calendar/index.ts
@@ -48,35 +48,3 @@ export {
} from './utils';
// Re-export theme styles for customization
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Calendar as XDSCalendar,
- useCalendarConstraints as useXDSCalendarConstraints,
- useCalendarDays as useXDSCalendarDays,
- useCalendarNavigation as useXDSCalendarNavigation,
- useCalendarRovingTabindex as useXDSCalendarRovingTabindex,
-} from '.';
-export type {
- CalendarDay as XDSCalendarDay,
- CalendarHandle as XDSCalendarHandle,
- CalendarProps as XDSCalendarProps,
- DateRange as XDSDateRange,
- DayOfWeek as XDSDayOfWeek,
- ISODateString as XDSISODateString,
- UseCalendarConstraintsOptions as XDSUseCalendarConstraintsOptions,
- UseCalendarConstraintsReturn as XDSUseCalendarConstraintsReturn,
- UseCalendarDaysOptions as XDSUseCalendarDaysOptions,
- UseCalendarDaysReturn as XDSUseCalendarDaysReturn,
- UseCalendarNavigationOptions as XDSUseCalendarNavigationOptions,
- UseCalendarNavigationReturn as XDSUseCalendarNavigationReturn,
- UseCalendarRovingTabindexOptions as XDSUseCalendarRovingTabindexOptions,
- UseCalendarRovingTabindexReturn as XDSUseCalendarRovingTabindexReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Card/Card.doc.mjs b/packages/core/src/Card/Card.doc.mjs
index 662ea00e70..86cdfd9333 100644
--- a/packages/core/src/Card/Card.doc.mjs
+++ b/packages/core/src/Card/Card.doc.mjs
@@ -84,7 +84,7 @@ export const docs = {
theming: {
container: true,
targets: [
- {className: 'xds-card'},
+ {className: 'astryx-card'},
],
vars: [
{name: '--_card-radius', description: 'Border radius of the card', default: 'var(--radius-container)', private: true},
@@ -131,7 +131,7 @@ export const docsZh = {
theming: {
container: true,
targets: [
- {className: 'xds-card'},
+ {className: 'astryx-card'},
],
vars: [
{name: '--_card-radius', description: 'Border radius of the card', default: 'var(--radius-container)', private: true},
diff --git a/packages/core/src/Card/Card.test.tsx b/packages/core/src/Card/Card.test.tsx
index 19becd99cf..13073b4405 100644
--- a/packages/core/src/Card/Card.test.tsx
+++ b/packages/core/src/Card/Card.test.tsx
@@ -13,7 +13,7 @@ describe('Card', () => {
it('renders xds-* class names for theme targeting', () => {
const {container} = render(<Card>Content</Card>);
const root = container.firstElementChild!;
- expect(root.className).toContain('xds-card');
+ expect(root.className).toContain('astryx-card');
});
it('renders transparent variant with variant class', () => {
@@ -21,7 +21,7 @@ describe('Card', () => {
<Card variant="transparent">Content</Card>,
);
const root = container.firstElementChild!;
- expect(root.className).toContain('xds-card');
+ expect(root.className).toContain('astryx-card');
expect(root.className).toContain('transparent');
});
});
diff --git a/packages/core/src/Card/index.ts b/packages/core/src/Card/index.ts
index 65fa57b037..73b73c6eff 100644
--- a/packages/core/src/Card/index.ts
+++ b/packages/core/src/Card/index.ts
@@ -13,20 +13,3 @@
export {Card} from './Card';
export type {CardProps, CardVariant, SizeValue} from './Card';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Card as XDSCard,
-} from '.';
-export type {
- CardProps as XDSCardProps,
- CardVariant as XDSCardVariant,
- SizeValue as XDSSizeValue,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Carousel/Carousel.doc.mjs b/packages/core/src/Carousel/Carousel.doc.mjs
index e5630c223b..a9acfdba9d 100644
--- a/packages/core/src/Carousel/Carousel.doc.mjs
+++ b/packages/core/src/Carousel/Carousel.doc.mjs
@@ -48,7 +48,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-carousel'},
+ {className: 'astryx-carousel'},
],
},
};
diff --git a/packages/core/src/Carousel/Carousel.test.tsx b/packages/core/src/Carousel/Carousel.test.tsx
index d77e34f5af..8f818e49fd 100644
--- a/packages/core/src/Carousel/Carousel.test.tsx
+++ b/packages/core/src/Carousel/Carousel.test.tsx
@@ -54,7 +54,7 @@ describe('Carousel', () => {
</Carousel>,
);
const el = screen.getByTestId('cls-test');
- expect(el.className).toContain('xds-carousel');
+ expect(el.className).toContain('astryx-carousel');
});
it('does not render button layer when hasButtons={false}', () => {
diff --git a/packages/core/src/Carousel/index.ts b/packages/core/src/Carousel/index.ts
index dae81f43b4..c60c6e0a77 100644
--- a/packages/core/src/Carousel/index.ts
+++ b/packages/core/src/Carousel/index.ts
@@ -11,18 +11,3 @@
export {Carousel} from './Carousel';
export type {CarouselProps} from './Carousel';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Carousel as XDSCarousel,
-} from '.';
-export type {
- CarouselProps as XDSCarouselProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Center/Center.doc.mjs b/packages/core/src/Center/Center.doc.mjs
index d77427354c..60b50923e5 100644
--- a/packages/core/src/Center/Center.doc.mjs
+++ b/packages/core/src/Center/Center.doc.mjs
@@ -46,7 +46,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-center', visualProps: ['axis']},
+ {className: 'astryx-center', visualProps: ['axis']},
],
},
usage: {
@@ -97,7 +97,7 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-center',
+ className: 'astryx-center',
visualProps: [
'axis',
],
diff --git a/packages/core/src/Center/index.ts b/packages/core/src/Center/index.ts
index ab7f82ce2f..7ad1d92502 100644
--- a/packages/core/src/Center/index.ts
+++ b/packages/core/src/Center/index.ts
@@ -13,19 +13,3 @@
export {Center} from './Center';
export type {CenterProps, CenterAxis} from './Center';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Center as XDSCenter,
-} from '.';
-export type {
- CenterAxis as XDSCenterAxis,
- CenterProps as XDSCenterProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Chat/Chat.doc.mjs b/packages/core/src/Chat/Chat.doc.mjs
index 893ca78169..699848a522 100644
--- a/packages/core/src/Chat/Chat.doc.mjs
+++ b/packages/core/src/Chat/Chat.doc.mjs
@@ -13,22 +13,22 @@ export const docs = {
keywords: ['chat', 'message', 'bubble', 'conversation', 'ai', 'assistant', 'thread', 'system-message', 'composer', 'mention', 'trigger', 'typeahead', 'token', 'imperative', 'tokenized-text'],
theming: {
targets: [
- {className: 'xds-chat-layout', visualProps: ['density']},
- {className: 'xds-chat-composer', visualProps: ['density']},
- {className: 'xds-chat-composer-input'},
- {className: 'xds-chat-composer-drawer', visualProps: ['collapsed']},
- {className: 'xds-chat-message', visualProps: ['sender']},
+ {className: 'astryx-chat-layout', visualProps: ['density']},
+ {className: 'astryx-chat-composer', visualProps: ['density']},
+ {className: 'astryx-chat-composer-input'},
+ {className: 'astryx-chat-composer-drawer', visualProps: ['collapsed']},
+ {className: 'astryx-chat-message', visualProps: ['sender']},
{
- className: 'xds-chat-message-bubble',
+ className: 'astryx-chat-message-bubble',
visualProps: ['sender', 'variant', 'density'],
},
- {className: 'xds-chat-message-list', visualProps: ['density']},
- {className: 'xds-chat-system-message', visualProps: ['variant']},
- {className: 'xds-chat-message-metadata'},
- {className: 'xds-chat-send-button'},
- {className: 'xds-chat-tokenized-text'},
- {className: 'xds-chat-tool-calls'},
- {className: 'xds-trigger-menu'},
+ {className: 'astryx-chat-message-list', visualProps: ['density']},
+ {className: 'astryx-chat-system-message', visualProps: ['variant']},
+ {className: 'astryx-chat-message-metadata'},
+ {className: 'astryx-chat-send-button'},
+ {className: 'astryx-chat-tokenized-text'},
+ {className: 'astryx-chat-tool-calls'},
+ {className: 'astryx-trigger-menu'},
],
vars: [
{name: '--_chat-composer-radius', description: 'Border radius of the composer body. Inner elements derive their radius concentrically.', default: 'var(--radius-chat)', private: true},
diff --git a/packages/core/src/Chat/ChatComposerInput.test.tsx b/packages/core/src/Chat/ChatComposerInput.test.tsx
index 79b3cc1a95..c4d0cee827 100644
--- a/packages/core/src/Chat/ChatComposerInput.test.tsx
+++ b/packages/core/src/Chat/ChatComposerInput.test.tsx
@@ -435,7 +435,7 @@ describe('ChatComposerInput', () => {
/>,
);
expect(root).toBeInstanceOf(HTMLDivElement);
- expect(root).toHaveClass('xds-chat-composer-input');
+ expect(root).toHaveClass('astryx-chat-composer-input');
});
it('exposes imperative handle via handleRef', () => {
@@ -566,7 +566,7 @@ describe('ChatComposerInput', () => {
it('has xds-chat-composer-input class', () => {
const {container} = render(<ChatComposerInput />);
expect(
- container.querySelector('.xds-chat-composer-input'),
+ container.querySelector('.astryx-chat-composer-input'),
).toBeInTheDocument();
});
});
diff --git a/packages/core/src/Chat/index.ts b/packages/core/src/Chat/index.ts
index 5097345766..d1cb159197 100644
--- a/packages/core/src/Chat/index.ts
+++ b/packages/core/src/Chat/index.ts
@@ -111,78 +111,3 @@ export type {
export {ChatDictationButton} from './ChatDictationButton';
export type {ChatDictationButtonProps} from './ChatDictationButton';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ChatComposer as XDSChatComposer,
- ChatComposerDrawer as XDSChatComposerDrawer,
- ChatComposerInput as XDSChatComposerInput,
- ChatComposerTokenElement as XDSChatComposerTokenElement,
- ChatDictationButton as XDSChatDictationButton,
- ChatLayout as XDSChatLayout,
- ChatLayoutScrollButton as XDSChatLayoutScrollButton,
- ChatMessage as XDSChatMessage,
- ChatMessageBubble as XDSChatMessageBubble,
- ChatMessageList as XDSChatMessageList,
- ChatMessageMetadata as XDSChatMessageMetadata,
- ChatSendButton as XDSChatSendButton,
- ChatSystemMessage as XDSChatSystemMessage,
- ChatTokenizedText as XDSChatTokenizedText,
- ChatToolCalls as XDSChatToolCalls,
- useChatComposerTokens as useXDSChatComposerTokens,
- useChatDictation as useXDSChatDictation,
- useChatLayoutContext as useXDSChatLayoutContext,
- useChatNewMessages as useXDSChatNewMessages,
- useChatPasteAsToken as useXDSChatPasteAsToken,
- useChatStreamScroll as useXDSChatStreamScroll,
- useSpeechRecognition as useXDSSpeechRecognition,
-} from '.';
-export type {
- ChatComposerDensity as XDSChatComposerDensity,
- ChatComposerDrawerProps as XDSChatComposerDrawerProps,
- ChatComposerInputHandle as XDSChatComposerInputHandle,
- ChatComposerInputProps as XDSChatComposerInputProps,
- ChatComposerProps as XDSChatComposerProps,
- ChatComposerStatus as XDSChatComposerStatus,
- ChatComposerToken as XDSChatComposerToken,
- ChatComposerTrigger as XDSChatComposerTrigger,
- ChatComposerTriggerItem as XDSChatComposerTriggerItem,
- ChatDensity as XDSChatDensity,
- ChatDictationButtonProps as XDSChatDictationButtonProps,
- ChatLayoutProps as XDSChatLayoutProps,
- ChatLayoutScrollButtonProps as XDSChatLayoutScrollButtonProps,
- ChatMessageBubbleProps as XDSChatMessageBubbleProps,
- ChatMessageBubbleVariant as XDSChatMessageBubbleVariant,
- ChatMessageListProps as XDSChatMessageListProps,
- ChatMessageMetadataProps as XDSChatMessageMetadataProps,
- ChatMessageProps as XDSChatMessageProps,
- ChatMessageSender as XDSChatMessageSender,
- ChatMessageStatus as XDSChatMessageStatus,
- ChatSendButtonProps as XDSChatSendButtonProps,
- ChatSystemMessageProps as XDSChatSystemMessageProps,
- ChatSystemMessageVariant as XDSChatSystemMessageVariant,
- ChatTokenizedTextProps as XDSChatTokenizedTextProps,
- ChatToolCallItem as XDSChatToolCallItem,
- ChatToolCallStatus as XDSChatToolCallStatus,
- ChatToolCallsProps as XDSChatToolCallsProps,
- TokenPortal as XDSTokenPortal,
- UseChatComposerTokensOptions as XDSUseChatComposerTokensOptions,
- UseChatComposerTokensReturn as XDSUseChatComposerTokensReturn,
- UseChatDictationOptions as XDSUseChatDictationOptions,
- UseChatDictationReturn as XDSUseChatDictationReturn,
- UseChatNewMessagesOptions as XDSUseChatNewMessagesOptions,
- UseChatNewMessagesReturn as XDSUseChatNewMessagesReturn,
- UseChatPasteAsTokenOptions as XDSUseChatPasteAsTokenOptions,
- UseChatPasteAsTokenReturn as XDSUseChatPasteAsTokenReturn,
- UseChatStreamScrollOptions as XDSUseChatStreamScrollOptions,
- UseChatStreamScrollReturn as XDSUseChatStreamScrollReturn,
- UseSpeechRecognitionOptions as XDSUseSpeechRecognitionOptions,
- UseSpeechRecognitionReturn as XDSUseSpeechRecognitionReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Chat/useChatNewMessages.test.tsx b/packages/core/src/Chat/useChatNewMessages.test.tsx
index 28fb5e1b1f..cec04f62f6 100644
--- a/packages/core/src/Chat/useChatNewMessages.test.tsx
+++ b/packages/core/src/Chat/useChatNewMessages.test.tsx
@@ -195,7 +195,7 @@ describe('useChatNewMessages — callback ref (issue #2282)', () => {
// The inner content div should now be observed
const contentObservation = activeObservations.find(o => {
const el = o.element;
- if (!el.querySelector?.('.xds-chat-message')) {
+ if (!el.querySelector?.('.astryx-chat-message')) {
return false;
}
if (el.className?.includes('xds-chat-layout')) {
diff --git a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
index 2d5a5e29a7..840673f4cc 100644
--- a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
+++ b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
@@ -105,8 +105,8 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-checkbox-input', visualProps: ['size']},
- {className: 'xds-checkbox'},
+ {className: 'astryx-checkbox-input', visualProps: ['size']},
+ {className: 'astryx-checkbox'},
],
},
usage: {
@@ -171,12 +171,12 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-checkbox-input',
+ className: 'astryx-checkbox-input',
visualProps: [
'size',
],
},
- {className: 'xds-checkbox'},
+ {className: 'astryx-checkbox'},
],
},
};
diff --git a/packages/core/src/CheckboxInput/CheckboxInput.test.tsx b/packages/core/src/CheckboxInput/CheckboxInput.test.tsx
index ab51f29032..a3f592cc6c 100644
--- a/packages/core/src/CheckboxInput/CheckboxInput.test.tsx
+++ b/packages/core/src/CheckboxInput/CheckboxInput.test.tsx
@@ -229,7 +229,7 @@ describe('CheckboxInput', () => {
);
expect(container.textContent).toBe('Accept terms');
- expect(container.querySelector('.xds-icon')).toBeInTheDocument();
+ expect(container.querySelector('.astryx-icon')).toBeInTheDocument();
});
it('renders status message and sets aria-invalid for error', () => {
diff --git a/packages/core/src/CheckboxInput/index.ts b/packages/core/src/CheckboxInput/index.ts
index 64d1939ccd..46aa793f47 100644
--- a/packages/core/src/CheckboxInput/index.ts
+++ b/packages/core/src/CheckboxInput/index.ts
@@ -16,19 +16,3 @@ export type {
CheckboxInputProps,
CheckboxInputSize,
} from './CheckboxInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- CheckboxInput as XDSCheckboxInput,
-} from '.';
-export type {
- CheckboxInputProps as XDSCheckboxInputProps,
- CheckboxInputSize as XDSCheckboxInputSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/CheckboxList/index.ts b/packages/core/src/CheckboxList/index.ts
index aa6bf1589a..7e28969845 100644
--- a/packages/core/src/CheckboxList/index.ts
+++ b/packages/core/src/CheckboxList/index.ts
@@ -15,20 +15,3 @@ export {CheckboxList} from './CheckboxList';
export type {CheckboxListProps} from './CheckboxList';
export {CheckboxListItem} from './CheckboxListItem';
export type {CheckboxListItemProps} from './CheckboxListItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- CheckboxList as XDSCheckboxList,
- CheckboxListItem as XDSCheckboxListItem,
-} from '.';
-export type {
- CheckboxListItemProps as XDSCheckboxListItemProps,
- CheckboxListProps as XDSCheckboxListProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Citation/index.ts b/packages/core/src/Citation/index.ts
index ed849f57f7..ce11195ac2 100644
--- a/packages/core/src/Citation/index.ts
+++ b/packages/core/src/Citation/index.ts
@@ -11,19 +11,3 @@
export {Citation} from './Citation';
export type {CitationProps, CitationSource} from './Citation';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Citation as XDSCitation,
-} from '.';
-export type {
- CitationProps as XDSCitationProps,
- CitationSource as XDSCitationSource,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/ClickableCard/ClickableCard.doc.mjs b/packages/core/src/ClickableCard/ClickableCard.doc.mjs
index ce2f308ddf..519a44f29a 100644
--- a/packages/core/src/ClickableCard/ClickableCard.doc.mjs
+++ b/packages/core/src/ClickableCard/ClickableCard.doc.mjs
@@ -35,7 +35,7 @@ export const docs = {
],
theming: {
container: true,
- targets: [{className: 'xds-clickable-card', visualProps: ['variant']}],
+ targets: [{className: 'astryx-clickable-card', visualProps: ['variant']}],
},
};
diff --git a/packages/core/src/ClickableCard/index.ts b/packages/core/src/ClickableCard/index.ts
index e0f21f9f63..4ed363e0ff 100644
--- a/packages/core/src/ClickableCard/index.ts
+++ b/packages/core/src/ClickableCard/index.ts
@@ -13,18 +13,3 @@
export {ClickableCard} from './ClickableCard';
export type {ClickableCardProps} from './ClickableCard';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ClickableCard as XDSClickableCard,
-} from '.';
-export type {
- ClickableCardProps as XDSClickableCardProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Code/index.ts b/packages/core/src/Code/index.ts
index b452413e30..bf593a3afe 100644
--- a/packages/core/src/Code/index.ts
+++ b/packages/core/src/Code/index.ts
@@ -8,18 +8,3 @@
*/
export {Code, type CodeProps} from './Code';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Code as XDSCode,
-} from '.';
-export type {
- CodeProps as XDSCodeProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/CodeBlock/CodeBlock.doc.mjs b/packages/core/src/CodeBlock/CodeBlock.doc.mjs
index 69cc42f367..fa430abb3c 100644
--- a/packages/core/src/CodeBlock/CodeBlock.doc.mjs
+++ b/packages/core/src/CodeBlock/CodeBlock.doc.mjs
@@ -135,8 +135,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-code'},
- {className: 'xds-codeblock', visualProps: ['size', 'language']},
+ {className: 'astryx-code'},
+ {className: 'astryx-codeblock', visualProps: ['size', 'language']},
],
},
usage: {
diff --git a/packages/core/src/CodeBlock/highlightRanges.ts b/packages/core/src/CodeBlock/highlightRanges.ts
index f713bb2307..5ae2a3ab6d 100644
--- a/packages/core/src/CodeBlock/highlightRanges.ts
+++ b/packages/core/src/CodeBlock/highlightRanges.ts
@@ -67,7 +67,7 @@ function ensureDynamicHighlightType(tokenType: string): void {
const name = `astryx-${tokenType}`;
const colorVar = `var(--color-syntax-${tokenType}, currentColor)`;
dynamicStyleSheet.insertRule(
- `.astryx-codeblock code::highlight(${name}), .xds-codeblock code::highlight(${name}), .astryx-codeeditor code::highlight(${name}), .xds-codeeditor code::highlight(${name}) { color: ${colorVar}; }`,
+ `.astryx-codeblock code::highlight(${name}), .astryx-codeeditor code::highlight(${name}) { color: ${colorVar}; }`,
);
}
diff --git a/packages/core/src/CodeBlock/highlightStyles.ts b/packages/core/src/CodeBlock/highlightStyles.ts
index ffa9f32ce8..cc88d31ef1 100644
--- a/packages/core/src/CodeBlock/highlightStyles.ts
+++ b/packages/core/src/CodeBlock/highlightStyles.ts
@@ -15,7 +15,7 @@ import {syntaxTokenDefaults} from '../theme';
/**
* Build the fallback CSS custom properties from the syntax token defaults.
* These provide colors when no theme explicitly sets --color-syntax-* tokens.
- * Themes override these via higher-specificity [data-xds-theme] selectors.
+ * Themes override these via higher-specificity [data-astryx-theme] selectors.
*/
const FALLBACK_TOKENS = `:root {\n${Object.entries(syntaxTokenDefaults)
.map(([name, value]) => ` ${name}: ${value};`)
@@ -31,74 +31,47 @@ const HIGHLIGHT_STYLES = `
${FALLBACK_TOKENS}
.astryx-codeblock code::highlight(astryx-keyword),
-.xds-codeblock code::highlight(astryx-keyword),
-.astryx-codeeditor code::highlight(astryx-keyword),
-.xds-codeeditor code::highlight(astryx-keyword) { color: var(--color-syntax-keyword); }
+.astryx-codeeditor code::highlight(astryx-keyword) { color: var(--color-syntax-keyword); }
.astryx-codeblock code::highlight(astryx-string),
-.xds-codeblock code::highlight(astryx-string),
-.astryx-codeeditor code::highlight(astryx-string),
-.xds-codeeditor code::highlight(astryx-string) { color: var(--color-syntax-string); }
+.astryx-codeeditor code::highlight(astryx-string) { color: var(--color-syntax-string); }
.astryx-codeblock code::highlight(astryx-comment),
-.xds-codeblock code::highlight(astryx-comment),
-.astryx-codeeditor code::highlight(astryx-comment),
-.xds-codeeditor code::highlight(astryx-comment) { color: var(--color-syntax-comment); }
+.astryx-codeeditor code::highlight(astryx-comment) { color: var(--color-syntax-comment); }
.astryx-codeblock code::highlight(astryx-number),
-.xds-codeblock code::highlight(astryx-number),
-.astryx-codeeditor code::highlight(astryx-number),
-.xds-codeeditor code::highlight(astryx-number) { color: var(--color-syntax-number); }
+.astryx-codeeditor code::highlight(astryx-number) { color: var(--color-syntax-number); }
.astryx-codeblock code::highlight(astryx-function),
-.xds-codeblock code::highlight(astryx-function),
-.astryx-codeeditor code::highlight(astryx-function),
-.xds-codeeditor code::highlight(astryx-function) { color: var(--color-syntax-function); }
+.astryx-codeeditor code::highlight(astryx-function) { color: var(--color-syntax-function); }
.astryx-codeblock code::highlight(astryx-type),
-.xds-codeblock code::highlight(astryx-type),
-.astryx-codeeditor code::highlight(astryx-type),
-.xds-codeeditor code::highlight(astryx-type) { color: var(--color-syntax-type); }
+.astryx-codeeditor code::highlight(astryx-type) { color: var(--color-syntax-type); }
.astryx-codeblock code::highlight(astryx-tag),
-.xds-codeblock code::highlight(astryx-tag),
-.astryx-codeeditor code::highlight(astryx-tag),
-.xds-codeeditor code::highlight(astryx-tag) { color: var(--color-syntax-tag); }
+.astryx-codeeditor code::highlight(astryx-tag) { color: var(--color-syntax-tag); }
.astryx-codeblock code::highlight(astryx-attribute),
-.xds-codeblock code::highlight(astryx-attribute),
-.astryx-codeeditor code::highlight(astryx-attribute),
-.xds-codeeditor code::highlight(astryx-attribute) { color: var(--color-syntax-attribute); }
+.astryx-codeeditor code::highlight(astryx-attribute) { color: var(--color-syntax-attribute); }
.astryx-codeblock code::highlight(astryx-property),
-.xds-codeblock code::highlight(astryx-property),
-.astryx-codeeditor code::highlight(astryx-property),
-.xds-codeeditor code::highlight(astryx-property) { color: var(--color-syntax-property); }
+.astryx-codeeditor code::highlight(astryx-property) { color: var(--color-syntax-property); }
.astryx-codeblock code::highlight(astryx-operator),
-.xds-codeblock code::highlight(astryx-operator),
-.astryx-codeeditor code::highlight(astryx-operator),
-.xds-codeeditor code::highlight(astryx-operator) { color: var(--color-syntax-operator); }
+.astryx-codeeditor code::highlight(astryx-operator) { color: var(--color-syntax-operator); }
.astryx-codeblock code::highlight(astryx-constant),
-.xds-codeblock code::highlight(astryx-constant),
-.astryx-codeeditor code::highlight(astryx-constant),
-.xds-codeeditor code::highlight(astryx-constant) { color: var(--color-syntax-constant); }
+.astryx-codeeditor code::highlight(astryx-constant) { color: var(--color-syntax-constant); }
.astryx-codeblock code::highlight(astryx-punctuation),
-.xds-codeblock code::highlight(astryx-punctuation),
-.astryx-codeeditor code::highlight(astryx-punctuation),
-.xds-codeeditor code::highlight(astryx-punctuation) { color: var(--color-syntax-punctuation); }
+.astryx-codeeditor code::highlight(astryx-punctuation) { color: var(--color-syntax-punctuation); }
.astryx-codeblock code::highlight(astryx-variable),
-.xds-codeblock code::highlight(astryx-variable),
-.astryx-codeeditor code::highlight(astryx-variable),
-.xds-codeeditor code::highlight(astryx-variable) { color: var(--color-syntax-variable); }
+.astryx-codeeditor code::highlight(astryx-variable) { color: var(--color-syntax-variable); }
/* Span-based fallback classes — used when highlightMode='spans' or
- when the CSS Custom Highlight API is not available.
- Dual-emit: both astryx-token-* and xds-token-* match (compat window). */
-.astryx-token-keyword, .xds-token-keyword { color: var(--color-syntax-keyword); }
-.astryx-token-string, .xds-token-string { color: var(--color-syntax-string); }
-.astryx-token-comment, .xds-token-comment { color: var(--color-syntax-comment); }
-.astryx-token-number, .xds-token-number { color: var(--color-syntax-number); }
-.astryx-token-function, .xds-token-function { color: var(--color-syntax-function); }
-.astryx-token-type, .xds-token-type { color: var(--color-syntax-type); }
-.astryx-token-tag, .xds-token-tag { color: var(--color-syntax-tag); }
-.astryx-token-attribute, .xds-token-attribute { color: var(--color-syntax-attribute); }
-.astryx-token-property, .xds-token-property { color: var(--color-syntax-property); }
-.astryx-token-operator, .xds-token-operator { color: var(--color-syntax-operator); }
-.astryx-token-constant, .xds-token-constant { color: var(--color-syntax-constant); }
-.astryx-token-punctuation, .xds-token-punctuation { color: var(--color-syntax-punctuation); }
-.astryx-token-variable, .xds-token-variable { color: var(--color-syntax-variable); }
+ when the CSS Custom Highlight API is not available. */
+.astryx-token-keyword { color: var(--color-syntax-keyword); }
+.astryx-token-string { color: var(--color-syntax-string); }
+.astryx-token-comment { color: var(--color-syntax-comment); }
+.astryx-token-number { color: var(--color-syntax-number); }
+.astryx-token-function { color: var(--color-syntax-function); }
+.astryx-token-type { color: var(--color-syntax-type); }
+.astryx-token-tag { color: var(--color-syntax-tag); }
+.astryx-token-attribute { color: var(--color-syntax-attribute); }
+.astryx-token-property { color: var(--color-syntax-property); }
+.astryx-token-operator { color: var(--color-syntax-operator); }
+.astryx-token-constant { color: var(--color-syntax-constant); }
+.astryx-token-punctuation { color: var(--color-syntax-punctuation); }
+.astryx-token-variable { color: var(--color-syntax-variable); }
`;
let inserted = false;
diff --git a/packages/core/src/CodeBlock/index.ts b/packages/core/src/CodeBlock/index.ts
index 352b4f3f2b..28038f7d16 100644
--- a/packages/core/src/CodeBlock/index.ts
+++ b/packages/core/src/CodeBlock/index.ts
@@ -33,24 +33,3 @@ export {
cleanupRanges,
} from './highlightRanges';
export {ensureHighlightStyles, TOKEN_TYPES} from './highlightStyles';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Code as XDSCode,
- CodeBlock as XDSCodeBlock,
- SYNC_TOKENIZE_THRESHOLD as XDSSYNC_TOKENIZE_THRESHOLD,
- TOKEN_TYPES as XDSTOKEN_TYPES,
-} from '.';
-export type {
- CodeBlockProps as XDSCodeBlockProps,
- CodeProps as XDSCodeProps,
- SyntaxToken as XDSSyntaxToken,
- TokenLine as XDSTokenLine,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Collapsible/Collapsible.doc.mjs b/packages/core/src/Collapsible/Collapsible.doc.mjs
index c8d5806d27..e8cb2ca50c 100644
--- a/packages/core/src/Collapsible/Collapsible.doc.mjs
+++ b/packages/core/src/Collapsible/Collapsible.doc.mjs
@@ -16,7 +16,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-collapsible'},
+ {className: 'astryx-collapsible'},
],
},
description: 'A primitive that makes any content collapsible: a trigger button toggles visibility of the content area, managing its own state or deferring to a parent CollapsibleGroup.',
diff --git a/packages/core/src/Collapsible/index.ts b/packages/core/src/Collapsible/index.ts
index af78990cc8..9a6280b96a 100644
--- a/packages/core/src/Collapsible/index.ts
+++ b/packages/core/src/Collapsible/index.ts
@@ -23,24 +23,3 @@ export type {
UseCollapsibleOptions,
UseCollapsibleReturn,
} from './useCollapsible';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Collapsible as XDSCollapsible,
- CollapsibleGroup as XDSCollapsibleGroup,
- useCollapsible as useXDSCollapsible,
-} from '.';
-export type {
- CollapsibleConfig as XDSCollapsibleConfig,
- CollapsibleGroupProps as XDSCollapsibleGroupProps,
- CollapsibleProps as XDSCollapsibleProps,
- UseCollapsibleOptions as XDSUseCollapsibleOptions,
- UseCollapsibleReturn as XDSUseCollapsibleReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/CommandPalette/CommandPalette.doc.mjs b/packages/core/src/CommandPalette/CommandPalette.doc.mjs
index 3b56c34c5a..96a7284335 100644
--- a/packages/core/src/CommandPalette/CommandPalette.doc.mjs
+++ b/packages/core/src/CommandPalette/CommandPalette.doc.mjs
@@ -138,11 +138,11 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-command-palette-footer'},
- {className: 'xds-command-palette-group'},
- {className: 'xds-command-palette-input'},
- {className: 'xds-command-palette-item'},
- {className: 'xds-command-palette-list'},
+ {className: 'astryx-command-palette-footer'},
+ {className: 'astryx-command-palette-group'},
+ {className: 'astryx-command-palette-input'},
+ {className: 'astryx-command-palette-item'},
+ {className: 'astryx-command-palette-list'},
],
},
usage: {
diff --git a/packages/core/src/CommandPalette/index.ts b/packages/core/src/CommandPalette/index.ts
index dde9ef4638..9abd7cc768 100644
--- a/packages/core/src/CommandPalette/index.ts
+++ b/packages/core/src/CommandPalette/index.ts
@@ -34,32 +34,3 @@ export type {CommandPaletteEmptyProps} from './CommandPaletteEmpty';
export {useCommandPaletteContext} from './CommandPaletteContext';
export type {CommandPaletteContextValue} from './CommandPaletteContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- CommandPalette as XDSCommandPalette,
- CommandPaletteEmpty as XDSCommandPaletteEmpty,
- CommandPaletteFooter as XDSCommandPaletteFooter,
- CommandPaletteGroup as XDSCommandPaletteGroup,
- CommandPaletteInput as XDSCommandPaletteInput,
- CommandPaletteItem as XDSCommandPaletteItem,
- CommandPaletteList as XDSCommandPaletteList,
- useCommandPaletteContext as useXDSCommandPaletteContext,
-} from '.';
-export type {
- CommandPaletteContextValue as XDSCommandPaletteContextValue,
- CommandPaletteEmptyProps as XDSCommandPaletteEmptyProps,
- CommandPaletteFooterProps as XDSCommandPaletteFooterProps,
- CommandPaletteGroupProps as XDSCommandPaletteGroupProps,
- CommandPaletteInputProps as XDSCommandPaletteInputProps,
- CommandPaletteItemProps as XDSCommandPaletteItemProps,
- CommandPaletteListProps as XDSCommandPaletteListProps,
- CommandPaletteProps as XDSCommandPaletteProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/ContextMenu/ContextMenu.doc.mjs b/packages/core/src/ContextMenu/ContextMenu.doc.mjs
index 64b1f8f259..f24fa8ef11 100644
--- a/packages/core/src/ContextMenu/ContextMenu.doc.mjs
+++ b/packages/core/src/ContextMenu/ContextMenu.doc.mjs
@@ -10,7 +10,7 @@ export const docs = {
keywords: ["contextmenu","right-click","menu","popover","actions","context"],
theming: {
targets: [
- {className: 'xds-context-menu'},
+ {className: 'astryx-context-menu'},
],
vars: [
{name: '--_dropdown-menu-radius', description: 'Border radius of the menu popup', default: 'var(--radius-container)', private: true},
diff --git a/packages/core/src/ContextMenu/index.ts b/packages/core/src/ContextMenu/index.ts
index 975410c730..83e72c048a 100644
--- a/packages/core/src/ContextMenu/index.ts
+++ b/packages/core/src/ContextMenu/index.ts
@@ -20,24 +20,3 @@ export {
DropdownMenuItem as ContextMenuItem,
type DropdownMenuItemProps as ContextMenuItemProps,
} from '../DropdownMenu/DropdownMenuItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ContextMenu as XDSContextMenu,
- ContextMenuItem as XDSContextMenuItem,
-} from '.';
-export type {
- ContextMenuDivider as XDSContextMenuDivider,
- ContextMenuItemData as XDSContextMenuItemData,
- ContextMenuItemProps as XDSContextMenuItemProps,
- ContextMenuOption as XDSContextMenuOption,
- ContextMenuProps as XDSContextMenuProps,
- ContextMenuSection as XDSContextMenuSection,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/DateInput/DateInput.doc.mjs b/packages/core/src/DateInput/DateInput.doc.mjs
index b0e449db9c..48f3b5e1f6 100644
--- a/packages/core/src/DateInput/DateInput.doc.mjs
+++ b/packages/core/src/DateInput/DateInput.doc.mjs
@@ -127,7 +127,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-date-input', visualProps: ['size', 'status']},
+ {className: 'astryx-date-input', visualProps: ['size', 'status']},
],
},
usage: {
@@ -201,7 +201,7 @@ export const docsZh = {
theming: {
targets: [
{
- className: 'xds-date-input',
+ className: 'astryx-date-input',
visualProps: [
'size',
'status',
diff --git a/packages/core/src/DateInput/index.ts b/packages/core/src/DateInput/index.ts
index f665cba230..b6d56b0f2d 100644
--- a/packages/core/src/DateInput/index.ts
+++ b/packages/core/src/DateInput/index.ts
@@ -16,21 +16,3 @@ export type {
DateInputStatus,
DateInputStatusType,
} from './DateInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DateInput as XDSDateInput,
-} from '.';
-export type {
- DateInputProps as XDSDateInputProps,
- DateInputSize as XDSDateInputSize,
- DateInputStatus as XDSDateInputStatus,
- DateInputStatusType as XDSDateInputStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
index acdc1e0243..dddec853e7 100644
--- a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
+++ b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
@@ -33,7 +33,7 @@ export const docs = {
],
theming: {
targets: [
- { className: 'xds-date-range-input', visualProps: ['size', 'status'] },
+ { className: 'astryx-date-range-input', visualProps: ['size', 'status'] },
],
},
usage: {
diff --git a/packages/core/src/DateRangeInput/index.ts b/packages/core/src/DateRangeInput/index.ts
index 575d8e2aaf..e6e80f75b4 100644
--- a/packages/core/src/DateRangeInput/index.ts
+++ b/packages/core/src/DateRangeInput/index.ts
@@ -18,23 +18,3 @@ export type {
DateRange,
DateRangePreset,
} from './DateRangeInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DateRangeInput as XDSDateRangeInput,
-} from '.';
-export type {
- DateRange as XDSDateRange,
- DateRangeInputProps as XDSDateRangeInputProps,
- DateRangeInputSize as XDSDateRangeInputSize,
- DateRangeInputStatus as XDSDateRangeInputStatus,
- DateRangeInputStatusType as XDSDateRangeInputStatusType,
- DateRangePreset as XDSDateRangePreset,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
index c04b734be7..80eef66633 100644
--- a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
+++ b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
@@ -142,7 +142,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-date-time-input', visualProps: ['size', 'status']},
+ {className: 'astryx-date-time-input', visualProps: ['size', 'status']},
],
},
usage: {
@@ -211,7 +211,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-date-time-input', visualProps: ['size', 'status']},
+ {className: 'astryx-date-time-input', visualProps: ['size', 'status']},
],
},
};
diff --git a/packages/core/src/DateTimeInput/index.ts b/packages/core/src/DateTimeInput/index.ts
index 19268fe7e2..94725fa7f1 100644
--- a/packages/core/src/DateTimeInput/index.ts
+++ b/packages/core/src/DateTimeInput/index.ts
@@ -18,23 +18,3 @@ export type {
DateTimeInputStatusType,
ISODateTimeString,
} from './DateTimeInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DateTimeInput as XDSDateTimeInput,
-} from '.';
-export type {
- DateTimeInputHourFormat as XDSDateTimeInputHourFormat,
- DateTimeInputProps as XDSDateTimeInputProps,
- DateTimeInputSize as XDSDateTimeInputSize,
- DateTimeInputStatus as XDSDateTimeInputStatus,
- DateTimeInputStatusType as XDSDateTimeInputStatusType,
- ISODateTimeString as XDSISODateTimeString,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Dialog/Dialog.doc.mjs b/packages/core/src/Dialog/Dialog.doc.mjs
index 2b9e35f0cc..595307046f 100644
--- a/packages/core/src/Dialog/Dialog.doc.mjs
+++ b/packages/core/src/Dialog/Dialog.doc.mjs
@@ -25,7 +25,7 @@ export const docs = {
theming: {
container: true,
targets: [
- {className: 'xds-dialog', visualProps: ['variant']},
+ {className: 'astryx-dialog', visualProps: ['variant']},
],
vars: [
{name: '--_dialog-radius', description: 'Border radius of the dialog', default: 'var(--radius-container)', private: true},
diff --git a/packages/core/src/Dialog/Dialog.tsx b/packages/core/src/Dialog/Dialog.tsx
index 9ae00ba485..6314894e64 100644
--- a/packages/core/src/Dialog/Dialog.tsx
+++ b/packages/core/src/Dialog/Dialog.tsx
@@ -341,7 +341,7 @@ export function Dialog({
ref,
...props
}: DialogProps) {
- // When no explicit padding prop, use theme default (--xds-dialog-padding)
+ // When no explicit padding prop, use theme default (--astryx-dialog-padding)
const useThemeDefault = padding == null;
const effectivePadding = padding ?? 4;
const paddingToken = spacingStepToToken[effectivePadding] as SpacingToken;
diff --git a/packages/core/src/Dialog/index.ts b/packages/core/src/Dialog/index.ts
index dd1f4ca9fb..c22836ebb3 100644
--- a/packages/core/src/Dialog/index.ts
+++ b/packages/core/src/Dialog/index.ts
@@ -25,26 +25,3 @@ export type {DialogHeaderProps} from './DialogHeader';
export {useImperativeDialog} from './useImperativeDialog';
export type {ImperativeDialogReturn} from './useImperativeDialog';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Dialog as XDSDialog,
- DialogHeader as XDSDialogHeader,
- useImperativeDialog as useXDSImperativeDialog,
-} from '.';
-export type {
- DialogHeaderProps as XDSDialogHeaderProps,
- DialogPosition as XDSDialogPosition,
- DialogProps as XDSDialogProps,
- DialogPurpose as XDSDialogPurpose,
- DialogVariant as XDSDialogVariant,
- DialogVariantMap as XDSDialogVariantMap,
- ImperativeDialogReturn as XDSImperativeDialogReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Divider/Divider.doc.mjs b/packages/core/src/Divider/Divider.doc.mjs
index 967ad40d03..9890c4bb9f 100644
--- a/packages/core/src/Divider/Divider.doc.mjs
+++ b/packages/core/src/Divider/Divider.doc.mjs
@@ -43,7 +43,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-divider', visualProps: ['orientation', 'variant']},
+ {className: 'astryx-divider', visualProps: ['orientation', 'variant']},
],
},
usage: {
@@ -93,7 +93,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-divider', visualProps: ['orientation', 'variant']},
+ {className: 'astryx-divider', visualProps: ['orientation', 'variant']},
],
},
usage: {
diff --git a/packages/core/src/Divider/Divider.test.tsx b/packages/core/src/Divider/Divider.test.tsx
index 6c9791f126..1c63a70040 100644
--- a/packages/core/src/Divider/Divider.test.tsx
+++ b/packages/core/src/Divider/Divider.test.tsx
@@ -109,7 +109,7 @@ describe('Divider', () => {
/>,
);
const root = screen.getByTestId('divider');
- expect(root.className).toContain('xds-divider');
+ expect(root.className).toContain('astryx-divider');
expect(root.className).toContain('strong');
expect(root.className).toContain('vertical');
});
diff --git a/packages/core/src/Divider/index.ts b/packages/core/src/Divider/index.ts
index b5b511c498..39b84aa5b0 100644
--- a/packages/core/src/Divider/index.ts
+++ b/packages/core/src/Divider/index.ts
@@ -17,20 +17,3 @@ export type {
DividerVariant,
DividerVariantMap,
} from './Divider';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Divider as XDSDivider,
-} from '.';
-export type {
- DividerProps as XDSDividerProps,
- DividerVariant as XDSDividerVariant,
- DividerVariantMap as XDSDividerVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs
index 17513c394e..dab6d01711 100644
--- a/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs
+++ b/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs
@@ -10,8 +10,8 @@ export const docs = {
keywords: ["dropdown","menu","popover","select","actions","contextmenu","overflow","kebab","menubutton"],
theming: {
targets: [
- {className: 'xds-dropdown-menu'},
- {className: 'xds-dropdown-menu-item'},
+ {className: 'astryx-dropdown-menu'},
+ {className: 'astryx-dropdown-menu-item'},
],
vars: [
{name: '--_dropdown-menu-radius', description: 'Border radius of the menu popup', default: 'var(--radius-element)', private: true},
diff --git a/packages/core/src/DropdownMenu/index.ts b/packages/core/src/DropdownMenu/index.ts
index 0bb7421580..91facc50e2 100644
--- a/packages/core/src/DropdownMenu/index.ts
+++ b/packages/core/src/DropdownMenu/index.ts
@@ -22,25 +22,3 @@ export {
DropdownMenuItem,
type DropdownMenuItemProps,
} from './DropdownMenuItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DropdownMenu as XDSDropdownMenu,
- DropdownMenuItem as XDSDropdownMenuItem,
-} from '.';
-export type {
- DropdownMenuButtonProps as XDSDropdownMenuButtonProps,
- DropdownMenuDivider as XDSDropdownMenuDivider,
- DropdownMenuItemData as XDSDropdownMenuItemData,
- DropdownMenuItemProps as XDSDropdownMenuItemProps,
- DropdownMenuOption as XDSDropdownMenuOption,
- DropdownMenuProps as XDSDropdownMenuProps,
- DropdownMenuSection as XDSDropdownMenuSection,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/EmptyState/EmptyState.doc.mjs b/packages/core/src/EmptyState/EmptyState.doc.mjs
index 7b0d1483c8..8b80cbcec3 100644
--- a/packages/core/src/EmptyState/EmptyState.doc.mjs
+++ b/packages/core/src/EmptyState/EmptyState.doc.mjs
@@ -65,7 +65,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-empty-state'},
+ {className: 'astryx-empty-state'},
],
},
usage: {
@@ -140,7 +140,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-empty-state'},
+ {className: 'astryx-empty-state'},
],
},
usage: {
diff --git a/packages/core/src/EmptyState/index.ts b/packages/core/src/EmptyState/index.ts
index 536baa693b..dffdf0b18e 100644
--- a/packages/core/src/EmptyState/index.ts
+++ b/packages/core/src/EmptyState/index.ts
@@ -6,18 +6,3 @@
export {EmptyState} from './EmptyState';
export type {EmptyStateProps} from './EmptyState';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- EmptyState as XDSEmptyState,
-} from '.';
-export type {
- EmptyStateProps as XDSEmptyStateProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Field/Field.doc.mjs b/packages/core/src/Field/Field.doc.mjs
index 4488e40cfa..7c599cd936 100644
--- a/packages/core/src/Field/Field.doc.mjs
+++ b/packages/core/src/Field/Field.doc.mjs
@@ -16,9 +16,9 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-field'},
- {className: 'xds-field-label'},
- {className: 'xds-field-status', visualProps: ['type', 'variant']},
+ {className: 'astryx-field'},
+ {className: 'astryx-field-label'},
+ {className: 'astryx-field-status', visualProps: ['type', 'variant']},
],
vars: [
{name: '--_field-radius', description: 'Border radius of input fields', default: 'var(--radius-element)', private: true},
diff --git a/packages/core/src/Field/index.ts b/packages/core/src/Field/index.ts
index 8487469fe5..bd070af402 100644
--- a/packages/core/src/Field/index.ts
+++ b/packages/core/src/Field/index.ts
@@ -40,30 +40,3 @@ export {
// Shared input components
export {InputClearButton} from './InputClearButton';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Field as XDSField,
- FieldLabel as XDSFieldLabel,
- FieldStatus as XDSFieldStatus,
- InputClearButton as XDSInputClearButton,
-} from '.';
-export type {
- FieldLabelProps as XDSFieldLabelProps,
- FieldProps as XDSFieldProps,
- FieldStatusInput as XDSFieldStatusInput,
- FieldStatusProps as XDSFieldStatusProps,
- FieldStatusType as XDSFieldStatusType,
- FieldStatusVariant as XDSFieldStatusVariant,
- FieldStatusVariantMap as XDSFieldStatusVariantMap,
- InputSize as XDSInputSize,
- InputStatus as XDSInputStatus,
- InputStatusType as XDSInputStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/FieldStatus/FieldStatus.doc.mjs b/packages/core/src/FieldStatus/FieldStatus.doc.mjs
index d80276d25e..77109aed8e 100644
--- a/packages/core/src/FieldStatus/FieldStatus.doc.mjs
+++ b/packages/core/src/FieldStatus/FieldStatus.doc.mjs
@@ -11,7 +11,7 @@ export const docs = {
'Status message component for form field validation feedback.',
theming: {
targets: [
- {className: 'xds-field-status', visualProps: ['type', 'variant']},
+ {className: 'astryx-field-status', visualProps: ['type', 'variant']},
],
},
props: [
diff --git a/packages/core/src/FieldStatus/index.ts b/packages/core/src/FieldStatus/index.ts
index 4361900898..977e385706 100644
--- a/packages/core/src/FieldStatus/index.ts
+++ b/packages/core/src/FieldStatus/index.ts
@@ -15,20 +15,3 @@ export type {
FieldStatusVariant,
FieldStatusVariantMap,
} from './FieldStatus';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- FieldStatus as XDSFieldStatus,
-} from '.';
-export type {
- FieldStatusProps as XDSFieldStatusProps,
- FieldStatusVariant as XDSFieldStatusVariant,
- FieldStatusVariantMap as XDSFieldStatusVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/FileInput/FileInput.doc.mjs b/packages/core/src/FileInput/FileInput.doc.mjs
index 9a28b2ed6a..9974c38602 100644
--- a/packages/core/src/FileInput/FileInput.doc.mjs
+++ b/packages/core/src/FileInput/FileInput.doc.mjs
@@ -122,7 +122,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-file-input', visualProps: ['mode', 'status']},
+ {className: 'astryx-file-input', visualProps: ['mode', 'status']},
],
},
usage: {
@@ -236,7 +236,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-file-input', visualProps: ['mode', 'status']},
+ {className: 'astryx-file-input', visualProps: ['mode', 'status']},
],
},
usage: {
diff --git a/packages/core/src/FileInput/index.ts b/packages/core/src/FileInput/index.ts
index 2e852212aa..75f1e25eed 100644
--- a/packages/core/src/FileInput/index.ts
+++ b/packages/core/src/FileInput/index.ts
@@ -17,20 +17,3 @@ export type {
FileInputStatus,
FileInputStatusType,
} from './FileInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- FileInput as XDSFileInput,
-} from '.';
-export type {
- FileInputProps as XDSFileInputProps,
- FileInputStatus as XDSFileInputStatus,
- FileInputStatusType as XDSFileInputStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/FormLayout/FormLayout.doc.mjs b/packages/core/src/FormLayout/FormLayout.doc.mjs
index 33b8e6bcc1..f60f6a4778 100644
--- a/packages/core/src/FormLayout/FormLayout.doc.mjs
+++ b/packages/core/src/FormLayout/FormLayout.doc.mjs
@@ -31,7 +31,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-form-layout', visualProps: ['direction']},
+ {className: 'astryx-form-layout', visualProps: ['direction']},
],
},
usage: {
@@ -79,7 +79,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-form-layout', visualProps: ['direction']},
+ {className: 'astryx-form-layout', visualProps: ['direction']},
],
},
usage: {
diff --git a/packages/core/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap b/packages/core/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap
index 2dfac665a7..aeb6e2e695 100644
--- a/packages/core/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap
+++ b/packages/core/src/FormLayout/__snapshots__/FormLayout.test.tsx.snap
@@ -2,7 +2,7 @@
exports[`FormLayout > matches snapshot for horizontal direction 1`] = `
<div
- class="astryx-form-layout xds-form-layout horizontal FormLayout__styles.base xdt5ytf x18g69wz FormLayout__styles.horizontal xrvj5dj x1mt1orb xu6a5m6"
+ class="astryx-form-layout horizontal FormLayout__styles.base xdt5ytf x18g69wz FormLayout__styles.horizontal xrvj5dj x1mt1orb xu6a5m6"
data-direction="horizontal"
data-style-src="@xds/core:src/FormLayout/FormLayout.tsx:40; @xds/core:src/FormLayout/FormLayout.tsx:45"
data-testid="layout"
@@ -18,7 +18,7 @@ exports[`FormLayout > matches snapshot for horizontal direction 1`] = `
exports[`FormLayout > matches snapshot for horizontal-labels direction 1`] = `
<div
- class="astryx-form-layout xds-form-layout horizontal-labels FormLayout__styles.base xdt5ytf FormLayout__styles.horizontalLabels xrvj5dj x1pmbctz xlaq8a2 x7a106z xedohl4 x1rpgqan x1a1jff"
+ class="astryx-form-layout horizontal-labels FormLayout__styles.base xdt5ytf FormLayout__styles.horizontalLabels xrvj5dj x1pmbctz xlaq8a2 x7a106z xedohl4 x1rpgqan x1a1jff"
data-direction="horizontal-labels"
data-style-src="@xds/core:src/FormLayout/FormLayout.tsx:40; @xds/core:src/FormLayout/FormLayout.tsx:50"
data-testid="layout"
@@ -34,7 +34,7 @@ exports[`FormLayout > matches snapshot for horizontal-labels direction 1`] = `
exports[`FormLayout > matches snapshot for vertical direction 1`] = `
<div
- class="astryx-form-layout xds-form-layout vertical FormLayout__styles.base x78zum5 xdt5ytf x18g69wz"
+ class="astryx-form-layout vertical FormLayout__styles.base x78zum5 xdt5ytf x18g69wz"
data-direction="vertical"
data-style-src="@xds/core:src/FormLayout/FormLayout.tsx:40"
data-testid="layout"
diff --git a/packages/core/src/FormLayout/__snapshots__/XDSFormLayout.test.tsx.snap b/packages/core/src/FormLayout/__snapshots__/XDSFormLayout.test.tsx.snap
deleted file mode 100644
index f75af2eae8..0000000000
--- a/packages/core/src/FormLayout/__snapshots__/XDSFormLayout.test.tsx.snap
+++ /dev/null
@@ -1,49 +0,0 @@
-// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
-
-exports[`XDSFormLayout > matches snapshot for horizontal direction 1`] = `
-<div
- class="xds-form-layout horizontal XDSFormLayout__styles.base xdt5ytf x18g69wz XDSFormLayout__styles.horizontal xrvj5dj x1mt1orb xu6a5m6"
- data-direction="horizontal"
- data-style-src="@xds/core:src/FormLayout/XDSFormLayout.tsx:40; @xds/core:src/FormLayout/XDSFormLayout.tsx:45"
- data-testid="layout"
->
- <input
- placeholder="First"
- />
- <input
- placeholder="Last"
- />
-</div>
-`;
-
-exports[`XDSFormLayout > matches snapshot for horizontal-labels direction 1`] = `
-<div
- class="xds-form-layout horizontal-labels XDSFormLayout__styles.base xdt5ytf XDSFormLayout__styles.horizontalLabels xrvj5dj x1pmbctz xlaq8a2 x7a106z xedohl4 x1rpgqan x1a1jff"
- data-direction="horizontal-labels"
- data-style-src="@xds/core:src/FormLayout/XDSFormLayout.tsx:40; @xds/core:src/FormLayout/XDSFormLayout.tsx:50"
- data-testid="layout"
->
- <label>
- Name
- </label>
- <input
- placeholder="Name"
- />
-</div>
-`;
-
-exports[`XDSFormLayout > matches snapshot for vertical direction 1`] = `
-<div
- class="xds-form-layout vertical XDSFormLayout__styles.base x78zum5 xdt5ytf x18g69wz"
- data-direction="vertical"
- data-style-src="@xds/core:src/FormLayout/XDSFormLayout.tsx:40"
- data-testid="layout"
->
- <input
- placeholder="Name"
- />
- <input
- placeholder="Email"
- />
-</div>
-`;
diff --git a/packages/core/src/FormLayout/index.ts b/packages/core/src/FormLayout/index.ts
index 318de57445..51eff1d43e 100644
--- a/packages/core/src/FormLayout/index.ts
+++ b/packages/core/src/FormLayout/index.ts
@@ -15,20 +15,3 @@ export {FormLayout} from './FormLayout';
export type {FormLayoutProps} from './FormLayout';
export type {FormLayoutDirection} from './FormLayoutContext';
export {FormLayoutContext} from './FormLayoutContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- FormLayout as XDSFormLayout,
- FormLayoutContext as XDSFormLayoutContext,
-} from '.';
-export type {
- FormLayoutDirection as XDSFormLayoutDirection,
- FormLayoutProps as XDSFormLayoutProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Grid/Grid.doc.mjs b/packages/core/src/Grid/Grid.doc.mjs
index 35507beb58..2d7bdb5106 100644
--- a/packages/core/src/Grid/Grid.doc.mjs
+++ b/packages/core/src/Grid/Grid.doc.mjs
@@ -21,8 +21,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-grid', visualProps: ['align', 'columns', 'gap', 'justify']},
- {className: 'xds-grid-span'},
+ {className: 'astryx-grid', visualProps: ['align', 'columns', 'gap', 'justify']},
+ {className: 'astryx-grid-span'},
],
},
description: 'Grid container with fixed or responsive columns.',
diff --git a/packages/core/src/Grid/index.ts b/packages/core/src/Grid/index.ts
index 62361e50c5..dbe36874aa 100644
--- a/packages/core/src/Grid/index.ts
+++ b/packages/core/src/Grid/index.ts
@@ -16,22 +16,3 @@ export type {GridProps, GridColumns, GridAlignment} from './Grid';
export {GridSpan} from './GridSpan';
export type {GridSpanProps} from './GridSpan';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Grid as XDSGrid,
- GridSpan as XDSGridSpan,
-} from '.';
-export type {
- GridAlignment as XDSGridAlignment,
- GridColumns as XDSGridColumns,
- GridProps as XDSGridProps,
- GridSpanProps as XDSGridSpanProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/HStack/index.ts b/packages/core/src/HStack/index.ts
index 58662dfa08..a06091d3d8 100644
--- a/packages/core/src/HStack/index.ts
+++ b/packages/core/src/HStack/index.ts
@@ -8,18 +8,3 @@
*/
export {HStack, type HStackProps} from './HStack';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- HStack as XDSHStack,
-} from '.';
-export type {
- HStackProps as XDSHStackProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Heading/Heading.test.tsx b/packages/core/src/Heading/Heading.test.tsx
index 30ca93ed2a..3510f93d58 100644
--- a/packages/core/src/Heading/Heading.test.tsx
+++ b/packages/core/src/Heading/Heading.test.tsx
@@ -196,7 +196,7 @@ describe('Heading', () => {
</Heading>,
);
const element = screen.getByText('Themed Heading');
- expect(element.className).toContain('xds-heading');
+ expect(element.className).toContain('astryx-heading');
expect(element.className).toContain('level-2');
expect(element.className).toContain('secondary');
expect(element).toHaveAttribute('data-level', '2');
diff --git a/packages/core/src/Heading/index.ts b/packages/core/src/Heading/index.ts
index 2f67a94c26..a859243812 100644
--- a/packages/core/src/Heading/index.ts
+++ b/packages/core/src/Heading/index.ts
@@ -13,20 +13,3 @@ export {
type HeadingLevel,
type HeadingType,
} from './Heading';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Heading as XDSHeading,
-} from '.';
-export type {
- HeadingLevel as XDSHeadingLevel,
- HeadingProps as XDSHeadingProps,
- HeadingType as XDSHeadingType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/HoverCard/HoverCard.doc.mjs b/packages/core/src/HoverCard/HoverCard.doc.mjs
index d1f9fdeadd..e75ede3254 100644
--- a/packages/core/src/HoverCard/HoverCard.doc.mjs
+++ b/packages/core/src/HoverCard/HoverCard.doc.mjs
@@ -16,7 +16,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-hovercard'},
+ {className: 'astryx-hovercard'},
],
vars: [
{name: '--_hovercard-radius', description: 'Border radius of the hover card', default: 'var(--radius-container)', private: true},
@@ -124,7 +124,7 @@ export const docsZh = {
displayName: 'Hover Card',
theming: {
targets: [
- {className: 'xds-hovercard'},
+ {className: 'astryx-hovercard'},
],
vars: [
{name: '--_hovercard-radius', description: 'Border radius of the hover card', default: 'var(--radius-container)', private: true},
diff --git a/packages/core/src/HoverCard/index.ts b/packages/core/src/HoverCard/index.ts
index b1bac31398..c0bdf8dcdf 100644
--- a/packages/core/src/HoverCard/index.ts
+++ b/packages/core/src/HoverCard/index.ts
@@ -22,22 +22,3 @@ export type {
// HoverCard component
export {HoverCard} from './HoverCard';
export type {HoverCardProps} from './HoverCard';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- HoverCard as XDSHoverCard,
- useHoverCard as useXDSHoverCard,
-} from '.';
-export type {
- HoverCardFocusTrigger as XDSHoverCardFocusTrigger,
- HoverCardOptions as XDSHoverCardOptions,
- HoverCardProps as XDSHoverCardProps,
- HoverCardReturn as XDSHoverCardReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Icon/Icon.doc.mjs b/packages/core/src/Icon/Icon.doc.mjs
index 2748e710d3..3835b83e66 100644
--- a/packages/core/src/Icon/Icon.doc.mjs
+++ b/packages/core/src/Icon/Icon.doc.mjs
@@ -29,7 +29,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-icon', visualProps: ['color', 'size']},
+ {className: 'astryx-icon', visualProps: ['color', 'size']},
],
},
usage: {
@@ -74,7 +74,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-icon', visualProps: ['color', 'size']},
+ {className: 'astryx-icon', visualProps: ['color', 'size']},
],
},
usage: {
diff --git a/packages/core/src/Icon/index.ts b/packages/core/src/Icon/index.ts
index bbad3da40d..992dc4b097 100644
--- a/packages/core/src/Icon/index.ts
+++ b/packages/core/src/Icon/index.ts
@@ -27,23 +27,3 @@ export {
resetIcons,
} from './globalIconRegistry';
export type {IconName, IconRegistry} from './globalIconRegistry';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Icon as XDSIcon,
-} from '.';
-export type {
- IconColor as XDSIconColor,
- IconName as XDSIconName,
- IconProps as XDSIconProps,
- IconRegistry as XDSIconRegistry,
- IconSize as XDSIconSize,
- IconType as XDSIconType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/IconButton/index.ts b/packages/core/src/IconButton/index.ts
index d0c1f47c7f..8d4159cc91 100644
--- a/packages/core/src/IconButton/index.ts
+++ b/packages/core/src/IconButton/index.ts
@@ -13,18 +13,3 @@
export {IconButton} from './IconButton';
export type {IconButtonProps} from './IconButton';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- IconButton as XDSIconButton,
-} from '.';
-export type {
- IconButtonProps as XDSIconButtonProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/InputGroup/InputGroup.doc.mjs b/packages/core/src/InputGroup/InputGroup.doc.mjs
index b4fa7e5561..cb86285ef9 100644
--- a/packages/core/src/InputGroup/InputGroup.doc.mjs
+++ b/packages/core/src/InputGroup/InputGroup.doc.mjs
@@ -11,7 +11,7 @@ export const docs = {
keywords: ["inputgroup","addon","prefix","suffix","connected","grouped","input"],
theming: {
targets: [
- {className: 'xds-input-group', visualProps: ['size', 'status']},
+ {className: 'astryx-input-group', visualProps: ['size', 'status']},
],
},
description: 'Groups an input with prefix/suffix addons in a visually connected container with shared border and focus ring.',
diff --git a/packages/core/src/InputGroup/index.ts b/packages/core/src/InputGroup/index.ts
index a77da350ad..2beedabefe 100644
--- a/packages/core/src/InputGroup/index.ts
+++ b/packages/core/src/InputGroup/index.ts
@@ -16,22 +16,3 @@ export {InputGroupText} from './InputGroupText';
export type {InputGroupTextProps} from './InputGroupText';
export {useInputGroup} from './InputGroupContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- InputGroup as XDSInputGroup,
- InputGroupText as XDSInputGroupText,
- useInputGroup as useXDSInputGroup,
-} from '.';
-export type {
- InputGroupProps as XDSInputGroupProps,
- InputGroupSize as XDSInputGroupSize,
- InputGroupTextProps as XDSInputGroupTextProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/InteractiveRoleContext/index.ts b/packages/core/src/InteractiveRoleContext/index.ts
index 6179fe5ea0..3425da804c 100644
--- a/packages/core/src/InteractiveRoleContext/index.ts
+++ b/packages/core/src/InteractiveRoleContext/index.ts
@@ -13,16 +13,3 @@ export {
InteractiveRoleContext,
useInteractiveRoleContext,
} from './InteractiveRoleContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- InteractiveRoleContext as XDSInteractiveRoleContext,
- useInteractiveRoleContext as useXDSInteractiveRoleContext,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Item/Item.doc.mjs b/packages/core/src/Item/Item.doc.mjs
index 7fc425cdad..d57cd9a0a0 100644
--- a/packages/core/src/Item/Item.doc.mjs
+++ b/packages/core/src/Item/Item.doc.mjs
@@ -17,7 +17,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-item', visualProps: ['density', 'align']},
+ {className: 'astryx-item', visualProps: ['density', 'align']},
],
},
components: [
diff --git a/packages/core/src/Item/index.ts b/packages/core/src/Item/index.ts
index 1543da8f9d..3cb50e9857 100644
--- a/packages/core/src/Item/index.ts
+++ b/packages/core/src/Item/index.ts
@@ -11,20 +11,3 @@
export {Item} from './Item';
export type {ItemProps, ItemAlign, ItemDensity} from './Item';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Item as XDSItem,
-} from '.';
-export type {
- ItemAlign as XDSItemAlign,
- ItemDensity as XDSItemDensity,
- ItemProps as XDSItemProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Kbd/Kbd.doc.mjs b/packages/core/src/Kbd/Kbd.doc.mjs
index 2a2b707117..86f7cc8d3d 100644
--- a/packages/core/src/Kbd/Kbd.doc.mjs
+++ b/packages/core/src/Kbd/Kbd.doc.mjs
@@ -35,7 +35,7 @@ export const docs = {
},
],
theming: {
- targets: [{className: 'xds-kbd'}],
+ targets: [{className: 'astryx-kbd'}],
},
usage: {
description: 'Renders a keyboard shortcut as styled key badges. Use Kbd in tooltips, menus, and help text to show key combinations.',
@@ -79,7 +79,7 @@ export const docsZh = {
},
],
theming: {
- targets: [{className: 'xds-kbd'}],
+ targets: [{className: 'astryx-kbd'}],
},
usage: {
description: 'Renders a keyboard shortcut as styled key badges. Use Kbd in tooltips, menus, and help text to show key combinations.',
diff --git a/packages/core/src/Kbd/Kbd.test.tsx b/packages/core/src/Kbd/Kbd.test.tsx
index b434710169..5e99046a02 100644
--- a/packages/core/src/Kbd/Kbd.test.tsx
+++ b/packages/core/src/Kbd/Kbd.test.tsx
@@ -93,7 +93,7 @@ describe('Kbd', () => {
it('renders xds-* class names for theme targeting', () => {
const {container} = render(<Kbd keys="k" />);
const wrapper = container.firstChild as HTMLElement;
- expect(wrapper.className).toContain('xds-kbd');
+ expect(wrapper.className).toContain('astryx-kbd');
});
it('renders "plus" as a literal + key', () => {
diff --git a/packages/core/src/Kbd/index.ts b/packages/core/src/Kbd/index.ts
index 0834a51834..b8d083ce2d 100644
--- a/packages/core/src/Kbd/index.ts
+++ b/packages/core/src/Kbd/index.ts
@@ -9,18 +9,3 @@
export {Kbd} from './Kbd';
export type {KbdProps} from './Kbd';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Kbd as XDSKbd,
-} from '.';
-export type {
- KbdProps as XDSKbdProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Layer/index.ts b/packages/core/src/Layer/index.ts
index 305e733f64..4addce32dc 100644
--- a/packages/core/src/Layer/index.ts
+++ b/packages/core/src/Layer/index.ts
@@ -63,48 +63,3 @@ export type {
TooltipReturn,
TooltipProps,
} from '../Tooltip';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- HoverCard as XDSHoverCard,
- LayerContext as XDSLayerContext,
- LayerProvider as XDSLayerProvider,
- Popover as XDSPopover,
- Tooltip as XDSTooltip,
- useHoverCard as useXDSHoverCard,
- useLayer as useXDSLayer,
- useLayerContext as useXDSLayerContext,
- usePopover as useXDSPopover,
- useTooltip as useXDSTooltip,
-} from '.';
-export type {
- ContextLayerOptions as XDSContextLayerOptions,
- ContextLayerReturn as XDSContextLayerReturn,
- ContextRenderProps as XDSContextRenderProps,
- FixedLayerOptions as XDSFixedLayerOptions,
- FixedLayerReturn as XDSFixedLayerReturn,
- FixedRenderProps as XDSFixedRenderProps,
- HoverCardFocusTrigger as XDSHoverCardFocusTrigger,
- HoverCardOptions as XDSHoverCardOptions,
- HoverCardProps as XDSHoverCardProps,
- HoverCardReturn as XDSHoverCardReturn,
- LayerAlignment as XDSLayerAlignment,
- LayerContextValue as XDSLayerContextValue,
- LayerPlacement as XDSLayerPlacement,
- LayerProviderProps as XDSLayerProviderProps,
- LayerToastConfig as XDSLayerToastConfig,
- PopoverProps as XDSPopoverProps,
- TooltipFocusTrigger as XDSTooltipFocusTrigger,
- TooltipOptions as XDSTooltipOptions,
- TooltipProps as XDSTooltipProps,
- TooltipReturn as XDSTooltipReturn,
- UsePopoverOptions as XDSUsePopoverOptions,
- UsePopoverReturn as XDSUsePopoverReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Layout/Layout.doc.mjs b/packages/core/src/Layout/Layout.doc.mjs
index 3e84c456e3..c28c5ef340 100644
--- a/packages/core/src/Layout/Layout.doc.mjs
+++ b/packages/core/src/Layout/Layout.doc.mjs
@@ -17,11 +17,11 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-layout', visualProps: ['height']},
- {className: 'xds-layout-content'},
- {className: 'xds-layout-footer'},
- {className: 'xds-layout-header'},
- {className: 'xds-layout-panel'},
+ {className: 'astryx-layout', visualProps: ['height']},
+ {className: 'astryx-layout-content'},
+ {className: 'astryx-layout-footer'},
+ {className: 'astryx-layout-header'},
+ {className: 'astryx-layout-panel'},
],
},
description: 'Page shell with header, sidebar(s), content, and footer slots for building full app layouts.',
diff --git a/packages/core/src/Layout/__tests__/contentWidth.test.tsx b/packages/core/src/Layout/__tests__/contentWidth.test.tsx
index 2b336c9865..8df89cc775 100644
--- a/packages/core/src/Layout/__tests__/contentWidth.test.tsx
+++ b/packages/core/src/Layout/__tests__/contentWidth.test.tsx
@@ -62,7 +62,7 @@ describe('Layout contentWidth', () => {
const headerChild = screen.getByTestId('header-child');
const innerWrapper = headerChild.parentElement!;
const headerDiv = innerWrapper.parentElement!;
- expect(headerDiv.className).toContain('xds-layout-header');
+ expect(headerDiv.className).toContain('astryx-layout-header');
expect(innerWrapper).not.toBe(headerDiv);
});
@@ -102,7 +102,7 @@ describe('Layout contentWidth', () => {
const footerChild = screen.getByTestId('footer-child');
const innerWrapper = footerChild.parentElement!;
const footerDiv = innerWrapper.parentElement!;
- expect(footerDiv.className).toContain('xds-layout-footer');
+ expect(footerDiv.className).toContain('astryx-layout-footer');
expect(innerWrapper).not.toBe(footerDiv);
});
diff --git a/packages/core/src/Layout/container.stylex.ts b/packages/core/src/Layout/container.stylex.ts
index 1cdb1f6889..1de4f7c07b 100644
--- a/packages/core/src/Layout/container.stylex.ts
+++ b/packages/core/src/Layout/container.stylex.ts
@@ -9,20 +9,16 @@
* ## Public API for themes
*
* Themes set `padding` on container component overrides. The theme build
- * pipeline expands this to component-scoped CSS custom properties. As part of
- * the XDS-prefix migration (P2380608025), the pipeline now emits the rebranded
- * `--astryx-*` tokens, while the component reads them via an inverted fallback
- * chain so a legacy `--xds-*` override set by existing consumer code still wins
- * during the compat window:
+ * pipeline expands this to component-scoped CSS custom properties, emitting
+ * the `--astryx-*` tokens that the component reads:
*
* --astryx-card-padding (shorthand — all sides; emitted)
* --astryx-card-padding-inline (horizontal)
* --astryx-card-padding-block-start
* --astryx-card-padding-block-end
*
- * Read order per level: `var(--xds-…, var(--astryx-…, <next level>))` — legacy
- * `--xds-*` wins, then `--astryx-*`, terminating at `--spacing-4`. Same pattern
- * for section and dialog.
+ * Read order per level: `var(--astryx-…, <next level>)`, terminating at
+ * `--spacing-4`. Same pattern for section and dialog.
*
* ```ts
* components: {
@@ -75,9 +71,8 @@ const baseStyles = stylex.create({
* Component-scoped padding tokens.
*
* Each container component (card, section, dialog) has public CSS custom
- * properties that themes can set. The pipeline emits the rebranded `--astryx-*`
- * names; the component reads `var(--xds-…, var(--astryx-…, …))` so legacy
- * `--xds-*` overrides still win during the compat window (P2380608025):
+ * properties that themes can set. The pipeline emits the `--astryx-*` names,
+ * which the component reads via `var(--astryx-…, …)`:
*
* --astryx-card-padding (shorthand — all sides)
* --astryx-card-padding-inline
@@ -91,44 +86,41 @@ const baseStyles = stylex.create({
*
* This indirection exists because StyleX's useCSSLayers emits priority-0
* custom property assignments outside any @layer, making them impossible
- * to override from @layer xds-theme. By reading from a higher-level token,
+ * to override from @layer astryx-theme. By reading from a higher-level token,
* the theme CSS sets the token value and the component picks it up via
* CSS custom property cascade — no layer competition.
*/
const SP4 = spacingVars['--spacing-4'];
-// Card padding chains (XDS-prefix migration P2380608025): legacy --xds-* wins,
-// then --astryx-*, then the next specificity level, terminating at --spacing-4.
-// Built as chained const strings (no function calls) so StyleX can statically
-// analyze them; see naming.ts for the prefix policy.
-const cardShorthand = `var(--xds-card-padding, var(--astryx-card-padding, ${SP4}))`;
-const cardInline = `var(--xds-card-padding-inline, var(--astryx-card-padding-inline, ${cardShorthand}))`;
-const cardInlineStart = `var(--xds-card-padding-inline-start, var(--astryx-card-padding-inline-start, ${cardInline}))`;
-const cardInlineEnd = `var(--xds-card-padding-inline-end, var(--astryx-card-padding-inline-end, ${cardInline}))`;
-const cardBlockStart = `var(--xds-card-padding-block-start, var(--astryx-card-padding-block-start, ${cardShorthand}))`;
-const cardBlockEnd = `var(--xds-card-padding-block-end, var(--astryx-card-padding-block-end, ${cardShorthand}))`;
-
-// Section padding chains (XDS-prefix migration P2380608025): legacy --xds-* wins,
-// then --astryx-*, then the next specificity level, terminating at --spacing-4.
-// Built as chained const strings (no function calls) so StyleX can statically
-// analyze them; see naming.ts for the prefix policy.
-const sectionShorthand = `var(--xds-section-padding, var(--astryx-section-padding, ${SP4}))`;
-const sectionInline = `var(--xds-section-padding-inline, var(--astryx-section-padding-inline, ${sectionShorthand}))`;
-const sectionInlineStart = `var(--xds-section-padding-inline-start, var(--astryx-section-padding-inline-start, ${sectionInline}))`;
-const sectionInlineEnd = `var(--xds-section-padding-inline-end, var(--astryx-section-padding-inline-end, ${sectionInline}))`;
-const sectionBlockStart = `var(--xds-section-padding-block-start, var(--astryx-section-padding-block-start, ${sectionShorthand}))`;
-const sectionBlockEnd = `var(--xds-section-padding-block-end, var(--astryx-section-padding-block-end, ${sectionShorthand}))`;
-
-// Dialog padding chains (XDS-prefix migration P2380608025): legacy --xds-* wins,
-// then --astryx-*, then the next specificity level, terminating at --spacing-4.
-// Built as chained const strings (no function calls) so StyleX can statically
-// analyze them; see naming.ts for the prefix policy.
-const dialogShorthand = `var(--xds-dialog-padding, var(--astryx-dialog-padding, ${SP4}))`;
-const dialogInline = `var(--xds-dialog-padding-inline, var(--astryx-dialog-padding-inline, ${dialogShorthand}))`;
-const dialogInlineStart = `var(--xds-dialog-padding-inline-start, var(--astryx-dialog-padding-inline-start, ${dialogInline}))`;
-const dialogInlineEnd = `var(--xds-dialog-padding-inline-end, var(--astryx-dialog-padding-inline-end, ${dialogInline}))`;
-const dialogBlockStart = `var(--xds-dialog-padding-block-start, var(--astryx-dialog-padding-block-start, ${dialogShorthand}))`;
-const dialogBlockEnd = `var(--xds-dialog-padding-block-end, var(--astryx-dialog-padding-block-end, ${dialogShorthand}))`;
+// Card padding chains: --astryx-* then the next specificity level, terminating
+// at --spacing-4. Built as chained const strings (no function calls) so StyleX
+// can statically analyze them; see naming.ts for the prefix policy.
+const cardShorthand = `var(--astryx-card-padding, ${SP4})`;
+const cardInline = `var(--astryx-card-padding-inline, ${cardShorthand})`;
+const cardInlineStart = `var(--astryx-card-padding-inline-start, ${cardInline})`;
+const cardInlineEnd = `var(--astryx-card-padding-inline-end, ${cardInline})`;
+const cardBlockStart = `var(--astryx-card-padding-block-start, ${cardShorthand})`;
+const cardBlockEnd = `var(--astryx-card-padding-block-end, ${cardShorthand})`;
+
+// Section padding chains: --astryx-* then the next specificity level, terminating
+// at --spacing-4. Built as chained const strings (no function calls) so StyleX
+// can statically analyze them; see naming.ts for the prefix policy.
+const sectionShorthand = `var(--astryx-section-padding, ${SP4})`;
+const sectionInline = `var(--astryx-section-padding-inline, ${sectionShorthand})`;
+const sectionInlineStart = `var(--astryx-section-padding-inline-start, ${sectionInline})`;
+const sectionInlineEnd = `var(--astryx-section-padding-inline-end, ${sectionInline})`;
+const sectionBlockStart = `var(--astryx-section-padding-block-start, ${sectionShorthand})`;
+const sectionBlockEnd = `var(--astryx-section-padding-block-end, ${sectionShorthand})`;
+
+// Dialog padding chains: --astryx-* then the next specificity level, terminating
+// at --spacing-4. Built as chained const strings (no function calls) so StyleX
+// can statically analyze them; see naming.ts for the prefix policy.
+const dialogShorthand = `var(--astryx-dialog-padding, ${SP4})`;
+const dialogInline = `var(--astryx-dialog-padding-inline, ${dialogShorthand})`;
+const dialogInlineStart = `var(--astryx-dialog-padding-inline-start, ${dialogInline})`;
+const dialogInlineEnd = `var(--astryx-dialog-padding-inline-end, ${dialogInline})`;
+const dialogBlockStart = `var(--astryx-dialog-padding-block-start, ${dialogShorthand})`;
+const dialogBlockEnd = `var(--astryx-dialog-padding-block-end, ${dialogShorthand})`;
const cardDefaultPaddingStyles = stylex.create({
containerPaddingInlineStart: {
diff --git a/packages/core/src/Layout/index.ts b/packages/core/src/Layout/index.ts
index ad9c188240..8975df8491 100644
--- a/packages/core/src/Layout/index.ts
+++ b/packages/core/src/Layout/index.ts
@@ -80,59 +80,3 @@ export type {LayoutArea} from './LayoutAreaContext';
export {LayoutDividerContext} from './LayoutDividerContext';
export type {LayoutDividerContextValue} from './LayoutDividerContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Card as XDSCard,
- EDGE_COMP_ATTR as XDSEDGE_COMP_ATTR,
- HStack as XDSHStack,
- Layout as XDSLayout,
- LayoutAreaContext as XDSLayoutAreaContext,
- LayoutContent as XDSLayoutContent,
- LayoutDividerContext as XDSLayoutDividerContext,
- LayoutFooter as XDSLayoutFooter,
- LayoutHeader as XDSLayoutHeader,
- LayoutPanel as XDSLayoutPanel,
- Section as XDSSection,
- Stack as XDSStack,
- StackItem as XDSStackItem,
- VStack as XDSVStack,
-} from '.';
-export type {
- CardProps as XDSCardProps,
- ContainerComponent as XDSContainerComponent,
- ContainerOptions as XDSContainerOptions,
- HStackProps as XDSHStackProps,
- LayoutArea as XDSLayoutArea,
- LayoutContentProps as XDSLayoutContentProps,
- LayoutDividerContextValue as XDSLayoutDividerContextValue,
- LayoutFooterProps as XDSLayoutFooterProps,
- LayoutHeaderProps as XDSLayoutHeaderProps,
- LayoutHeight as XDSLayoutHeight,
- LayoutPanelProps as XDSLayoutPanelProps,
- LayoutProps as XDSLayoutProps,
- SectionProps as XDSSectionProps,
- SectionVariant as XDSSectionVariant,
- SizeValue as XDSSizeValue,
- SpacingStep as XDSSpacingStep,
- SpacingToken as XDSSpacingToken,
- StackAlignment as XDSStackAlignment,
- StackCrossAlignment as XDSStackCrossAlignment,
- StackDirection as XDSStackDirection,
- StackItemCrossAlignSelf as XDSStackItemCrossAlignSelf,
- StackItemOptions as XDSStackItemOptions,
- StackItemProps as XDSStackItemProps,
- StackItemSize as XDSStackItemSize,
- StackMainAlignment as XDSStackMainAlignment,
- StackOptions as XDSStackOptions,
- StackProps as XDSStackProps,
- StackWrap as XDSStackWrap,
- VStackProps as XDSVStackProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Layout/padding.stylex.ts b/packages/core/src/Layout/padding.stylex.ts
index 24b3e3772e..d911dd2f9a 100644
--- a/packages/core/src/Layout/padding.stylex.ts
+++ b/packages/core/src/Layout/padding.stylex.ts
@@ -274,7 +274,7 @@ export const paddingBlockStyles = stylex.create({
});
/**
- * Propagation styles for --xds-section-padding.
+ * Propagation styles for --astryx-section-padding.
* When a parent section sets explicit padding, this propagates the value
* through the CSS custom property cascade so nested sections that use
* useThemeDefault inherit the parent's padding instead of the theme default.
diff --git a/packages/core/src/Lightbox/Lightbox.doc.mjs b/packages/core/src/Lightbox/Lightbox.doc.mjs
index 487bab2bdd..c676c4789e 100644
--- a/packages/core/src/Lightbox/Lightbox.doc.mjs
+++ b/packages/core/src/Lightbox/Lightbox.doc.mjs
@@ -51,7 +51,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-lightbox', visualProps: []},
+ {className: 'astryx-lightbox', visualProps: []},
],
},
usage: {
@@ -115,7 +115,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-lightbox', visualProps: []},
+ {className: 'astryx-lightbox', visualProps: []},
],
},
usage: {
diff --git a/packages/core/src/Lightbox/index.ts b/packages/core/src/Lightbox/index.ts
index 235fc16bff..b44f526db5 100644
--- a/packages/core/src/Lightbox/index.ts
+++ b/packages/core/src/Lightbox/index.ts
@@ -21,23 +21,3 @@ export type {
UseLightboxOptions,
UseLightboxReturn,
} from './useLightbox';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Lightbox as XDSLightbox,
- useLightbox as useXDSLightbox,
-} from '.';
-export type {
- LightboxMedia as XDSLightboxMedia,
- LightboxMediaType as XDSLightboxMediaType,
- LightboxProps as XDSLightboxProps,
- UseLightboxOptions as XDSUseLightboxOptions,
- UseLightboxReturn as XDSUseLightboxReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Link/Link.doc.mjs b/packages/core/src/Link/Link.doc.mjs
index 768a48a5e7..e086155414 100644
--- a/packages/core/src/Link/Link.doc.mjs
+++ b/packages/core/src/Link/Link.doc.mjs
@@ -15,7 +15,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-link', visualProps: ['color']},
+ {className: 'astryx-link', visualProps: ['color']},
],
},
components: [
@@ -142,7 +142,7 @@ export const docsZh = {
displayName: 'Link',
theming: {
targets: [
- {className: 'xds-link', visualProps: ['color']},
+ {className: 'astryx-link', visualProps: ['color']},
],
},
components: [
diff --git a/packages/core/src/Link/Link.test.tsx b/packages/core/src/Link/Link.test.tsx
index 68d83f5306..bc6940dc2e 100644
--- a/packages/core/src/Link/Link.test.tsx
+++ b/packages/core/src/Link/Link.test.tsx
@@ -289,7 +289,7 @@ describe('Link', () => {
</Link>,
);
const link = screen.getByRole('link', {name: 'Themed Link'});
- expect(link.className).toContain('xds-link');
+ expect(link.className).toContain('astryx-link');
expect(link.className).toContain('secondary');
});
});
diff --git a/packages/core/src/Link/index.ts b/packages/core/src/Link/index.ts
index e01242bca4..ccc77b7522 100644
--- a/packages/core/src/Link/index.ts
+++ b/packages/core/src/Link/index.ts
@@ -23,25 +23,3 @@ export type {LinkComponentType} from './types';
export {useLinkify} from './useLinkify';
export type {LinkifyPattern, UseLinkifyOptions} from './useLinkify';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Link as XDSLink,
- LinkProvider as XDSLinkProvider,
- useLinkComponent as useXDSLinkComponent,
- useLinkify as useXDSLinkify,
-} from '.';
-export type {
- LinkComponentType as XDSLinkComponentType,
- LinkProps as XDSLinkProps,
- LinkProviderProps as XDSLinkProviderProps,
- LinkifyPattern as XDSLinkifyPattern,
- UseLinkifyOptions as XDSUseLinkifyOptions,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/List/List.doc.mjs b/packages/core/src/List/List.doc.mjs
index 38abbe3013..70a4a59e78 100644
--- a/packages/core/src/List/List.doc.mjs
+++ b/packages/core/src/List/List.doc.mjs
@@ -10,8 +10,8 @@ export const docs = {
keywords: ["list","listitem","listbox","menu","collection","items","ul","navlist"],
theming: {
targets: [
- {className: 'xds-list', visualProps: ['density', 'listStyle']},
- {className: 'xds-list-item'},
+ {className: 'astryx-list', visualProps: ['density', 'listStyle']},
+ {className: 'astryx-list-item'},
],
},
description: 'List container with density, dividers, and header support.',
diff --git a/packages/core/src/List/List.test.tsx b/packages/core/src/List/List.test.tsx
index 9bd2ef4b38..22d2ed106b 100644
--- a/packages/core/src/List/List.test.tsx
+++ b/packages/core/src/List/List.test.tsx
@@ -468,7 +468,7 @@ describe('List', () => {
<ListItem label="Disabled" isDisabled />
</List>,
);
- const item = container.querySelector('.xds-item');
+ const item = container.querySelector('.astryx-item');
expect(item).toHaveAttribute('aria-disabled', 'true');
});
@@ -506,7 +506,7 @@ describe('List', () => {
<ListItem label="Selected" isSelected onClick={() => {}} />
</List>,
);
- const item = container.querySelector('.xds-item');
+ const item = container.querySelector('.astryx-item');
expect(item).toHaveAttribute('aria-selected', 'true');
});
diff --git a/packages/core/src/List/index.ts b/packages/core/src/List/index.ts
index c449ddfa44..8021940604 100644
--- a/packages/core/src/List/index.ts
+++ b/packages/core/src/List/index.ts
@@ -15,22 +15,3 @@ export {List} from './List';
export type {ListProps, ListStyle, ListDensity} from './List';
export {ListItem} from './ListItem';
export type {ListItemProps} from './ListItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- List as XDSList,
- ListItem as XDSListItem,
-} from '.';
-export type {
- ListDensity as XDSListDensity,
- ListItemProps as XDSListItemProps,
- ListProps as XDSListProps,
- ListStyle as XDSListStyle,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Markdown/Markdown.doc.mjs b/packages/core/src/Markdown/Markdown.doc.mjs
index 9c78e16919..aa4be55d64 100644
--- a/packages/core/src/Markdown/Markdown.doc.mjs
+++ b/packages/core/src/Markdown/Markdown.doc.mjs
@@ -126,7 +126,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-markdown', visualProps: ['density']},
+ {className: 'astryx-markdown', visualProps: ['density']},
],
},
usage: {
@@ -289,7 +289,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-markdown', visualProps: ['density']},
+ {className: 'astryx-markdown', visualProps: ['density']},
],
},
usage: {
diff --git a/packages/core/src/Markdown/Markdown.test.tsx b/packages/core/src/Markdown/Markdown.test.tsx
index 157649e9e7..5c1899e89c 100644
--- a/packages/core/src/Markdown/Markdown.test.tsx
+++ b/packages/core/src/Markdown/Markdown.test.tsx
@@ -13,7 +13,7 @@ describe('Markdown', () => {
it('renders xds-markdown class name', () => {
const {container} = render(<Markdown>Hello</Markdown>);
- expect(container.firstElementChild!.className).toContain('xds-markdown');
+ expect(container.firstElementChild!.className).toContain('astryx-markdown');
});
it('renders headings', () => {
diff --git a/packages/core/src/Markdown/index.ts b/packages/core/src/Markdown/index.ts
index 0617c515b9..462f2d564f 100644
--- a/packages/core/src/Markdown/index.ts
+++ b/packages/core/src/Markdown/index.ts
@@ -30,27 +30,3 @@ export type {
TableAlignment,
IncrementalState as IncrementalParseState,
} from './parser';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Markdown as XDSMarkdown,
-} from '.';
-export type {
- BlockNode as XDSBlockNode,
- IncrementalParseState as XDSIncrementalParseState,
- InlineNode as XDSInlineNode,
- ListItemNode as XDSListItemNode,
- MarkdownComponents as XDSMarkdownComponents,
- MarkdownInlinePlugin as XDSMarkdownInlinePlugin,
- MarkdownProps as XDSMarkdownProps,
- MarkdownSource as XDSMarkdownSource,
- TableAlignment as XDSTableAlignment,
- TableCellNode as XDSTableCellNode,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/MetadataList/MetadataList.doc.mjs b/packages/core/src/MetadataList/MetadataList.doc.mjs
index c10c6a843f..6d159acd72 100644
--- a/packages/core/src/MetadataList/MetadataList.doc.mjs
+++ b/packages/core/src/MetadataList/MetadataList.doc.mjs
@@ -11,10 +11,10 @@ export const docs = {
theming: {
targets: [
{
- className: 'xds-metadata-list',
+ className: 'astryx-metadata-list',
visualProps: ['columns', 'orientation'],
},
- {className: 'xds-metadata-list-item'},
+ {className: 'astryx-metadata-list-item'},
],
},
description: 'Container for metadata items with column layout, orientation, and collapse support.',
diff --git a/packages/core/src/MetadataList/MetadataList.test.tsx b/packages/core/src/MetadataList/MetadataList.test.tsx
index a9ff3bda3b..2d8b545df9 100644
--- a/packages/core/src/MetadataList/MetadataList.test.tsx
+++ b/packages/core/src/MetadataList/MetadataList.test.tsx
@@ -135,7 +135,7 @@ describe('MetadataListItem', () => {
);
// In stacked mode, dt and dd are inside a wrapper div
- const wrapper = container.querySelector('.xds-metadata-list-item');
+ const wrapper = container.querySelector('.astryx-metadata-list-item');
expect(wrapper).toBeInTheDocument();
expect(wrapper?.querySelector('dt')).toBeInTheDocument();
expect(wrapper?.querySelector('dd')).toBeInTheDocument();
diff --git a/packages/core/src/MetadataList/index.ts b/packages/core/src/MetadataList/index.ts
index 03402153ec..4f57dc0140 100644
--- a/packages/core/src/MetadataList/index.ts
+++ b/packages/core/src/MetadataList/index.ts
@@ -19,22 +19,3 @@ export type {
export {MetadataListItem} from './MetadataListItem';
export type {MetadataListItemProps} from './MetadataListItem';
export type {MetadataListLabelConfig} from './MetadataListContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- MetadataList as XDSMetadataList,
- MetadataListItem as XDSMetadataListItem,
-} from '.';
-export type {
- MetadataListColumns as XDSMetadataListColumns,
- MetadataListItemProps as XDSMetadataListItemProps,
- MetadataListLabelConfig as XDSMetadataListLabelConfig,
- MetadataListProps as XDSMetadataListProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/MobileNav/MobileNav.doc.mjs b/packages/core/src/MobileNav/MobileNav.doc.mjs
index edc5a3aee1..965dd9da88 100644
--- a/packages/core/src/MobileNav/MobileNav.doc.mjs
+++ b/packages/core/src/MobileNav/MobileNav.doc.mjs
@@ -75,7 +75,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-mobile-nav', visualProps: ['side']},
+ {className: 'astryx-mobile-nav', visualProps: ['side']},
],
},
usage: {
@@ -136,7 +136,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-mobile-nav', visualProps: ['side']},
+ {className: 'astryx-mobile-nav', visualProps: ['side']},
],
},
usage: {
diff --git a/packages/core/src/MobileNav/index.ts b/packages/core/src/MobileNav/index.ts
index 78051cb304..f57ee3846b 100644
--- a/packages/core/src/MobileNav/index.ts
+++ b/packages/core/src/MobileNav/index.ts
@@ -13,20 +13,3 @@ export {MobileNav} from './MobileNav';
export type {MobileNavProps} from './MobileNav';
export {MobileNavToggle} from './MobileNavToggle';
export type {MobileNavToggleProps} from './MobileNavToggle';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- MobileNav as XDSMobileNav,
- MobileNavToggle as XDSMobileNavToggle,
-} from '.';
-export type {
- MobileNavProps as XDSMobileNavProps,
- MobileNavToggleProps as XDSMobileNavToggleProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/MoreMenu/MoreMenu.doc.mjs b/packages/core/src/MoreMenu/MoreMenu.doc.mjs
index d02ed0e8ba..eb48d251f7 100644
--- a/packages/core/src/MoreMenu/MoreMenu.doc.mjs
+++ b/packages/core/src/MoreMenu/MoreMenu.doc.mjs
@@ -77,7 +77,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-more-menu'},
+ {className: 'astryx-more-menu'},
],
},
usage: {
@@ -154,7 +154,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-more-menu'},
+ {className: 'astryx-more-menu'},
],
},
usage: {
diff --git a/packages/core/src/MoreMenu/MoreMenu.test.tsx b/packages/core/src/MoreMenu/MoreMenu.test.tsx
index 4f4bd9f214..09b7f850bf 100644
--- a/packages/core/src/MoreMenu/MoreMenu.test.tsx
+++ b/packages/core/src/MoreMenu/MoreMenu.test.tsx
@@ -195,6 +195,6 @@ describe('MoreMenu', () => {
it('renders xds-more-menu class on dropdown panel for theme targeting', () => {
render(<MoreMenu items={defaultItems} />);
const menu = screen.getByRole('menu', {hidden: true});
- expect(menu.className).toContain('xds-more-menu');
+ expect(menu.className).toContain('astryx-more-menu');
});
});
diff --git a/packages/core/src/MoreMenu/MoreMenu.tsx b/packages/core/src/MoreMenu/MoreMenu.tsx
index 5ebdb75edd..f0428e674a 100644
--- a/packages/core/src/MoreMenu/MoreMenu.tsx
+++ b/packages/core/src/MoreMenu/MoreMenu.tsx
@@ -25,7 +25,7 @@ import {useSize} from '../SizeContext/SizeContext';
import type {DropdownMenuOption} from '../DropdownMenu';
import type {ButtonVariant, ButtonSize} from '../Button';
import type {BaseProps} from '../BaseProps';
-import {stableClassName, legacyStableClassName} from '../naming';
+import {stableClassName} from '../naming';
export interface MoreMenuProps extends Pick<
BaseProps,
@@ -130,8 +130,8 @@ export function MoreMenu({
<DropdownMenu
className={
classNameProp
- ? `${stableClassName('more-menu')} ${legacyStableClassName('more-menu')} ${classNameProp}`
- : `${stableClassName('more-menu')} ${legacyStableClassName('more-menu')}`
+ ? `${stableClassName('more-menu')} ${classNameProp}`
+ : stableClassName('more-menu')
}
xstyle={xstyle}
style={style}
diff --git a/packages/core/src/MoreMenu/index.ts b/packages/core/src/MoreMenu/index.ts
index 0d6583f99e..87e964bd7d 100644
--- a/packages/core/src/MoreMenu/index.ts
+++ b/packages/core/src/MoreMenu/index.ts
@@ -9,18 +9,3 @@
*/
export {MoreMenu, type MoreMenuProps} from './MoreMenu';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- MoreMenu as XDSMoreMenu,
-} from '.';
-export type {
- MoreMenuProps as XDSMoreMenuProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/MultiSelector/MultiSelector.doc.mjs b/packages/core/src/MultiSelector/MultiSelector.doc.mjs
index 49469e2f7c..e8dc6957b3 100644
--- a/packages/core/src/MultiSelector/MultiSelector.doc.mjs
+++ b/packages/core/src/MultiSelector/MultiSelector.doc.mjs
@@ -20,7 +20,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-multi-selector', visualProps: ['size', 'status']},
+ {className: 'astryx-multi-selector', visualProps: ['size', 'status']},
],
},
components: [
diff --git a/packages/core/src/MultiSelector/index.ts b/packages/core/src/MultiSelector/index.ts
index 2ab4dcdf10..d1a6fb7b09 100644
--- a/packages/core/src/MultiSelector/index.ts
+++ b/packages/core/src/MultiSelector/index.ts
@@ -22,26 +22,3 @@ export type {
MultiSelectorStatus,
} from './types';
export {useMultiCombobox} from './hooks';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- MultiSelector as XDSMultiSelector,
- useMultiCombobox as useXDSMultiCombobox,
-} from '.';
-export type {
- MultiSelectorDivider as XDSMultiSelectorDivider,
- MultiSelectorOptionData as XDSMultiSelectorOptionData,
- MultiSelectorOptionType as XDSMultiSelectorOptionType,
- MultiSelectorProps as XDSMultiSelectorProps,
- MultiSelectorSection as XDSMultiSelectorSection,
- MultiSelectorSize as XDSMultiSelectorSize,
- MultiSelectorStatus as XDSMultiSelectorStatus,
- MultiSelectorStatusType as XDSMultiSelectorStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/NavIcon/NavIcon.doc.mjs b/packages/core/src/NavIcon/NavIcon.doc.mjs
index 2953fd7c8e..0c930f9672 100644
--- a/packages/core/src/NavIcon/NavIcon.doc.mjs
+++ b/packages/core/src/NavIcon/NavIcon.doc.mjs
@@ -22,7 +22,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-navicon'},
+ {className: 'astryx-navicon'},
],
},
usage: {
@@ -51,7 +51,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-navicon'},
+ {className: 'astryx-navicon'},
],
},
usage: {
diff --git a/packages/core/src/NavIcon/index.ts b/packages/core/src/NavIcon/index.ts
index 149e4a5960..763bcb1caa 100644
--- a/packages/core/src/NavIcon/index.ts
+++ b/packages/core/src/NavIcon/index.ts
@@ -11,18 +11,3 @@
export {NavIcon} from './NavIcon';
export type {NavIconProps} from './NavIcon';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- NavIcon as XDSNavIcon,
-} from '.';
-export type {
- NavIconProps as XDSNavIconProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/NavItem/index.ts b/packages/core/src/NavItem/index.ts
index 978bb38e37..9209eb4be6 100644
--- a/packages/core/src/NavItem/index.ts
+++ b/packages/core/src/NavItem/index.ts
@@ -9,15 +9,3 @@
export {navItemStyles} from './navItemStyles.stylex';
export type {NavItemSize} from './navItemStyles.stylex';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export type {
- NavItemSize as XDSNavItemSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/NavMenu/index.ts b/packages/core/src/NavMenu/index.ts
index 75894898b9..ae46ba886f 100644
--- a/packages/core/src/NavMenu/index.ts
+++ b/packages/core/src/NavMenu/index.ts
@@ -20,29 +20,3 @@ export type {
// Backward compat — use NavHeadingMenuItem instead.
export {NavMenuItem} from './NavMenuItem';
export type {NavMenuItemProps} from './NavMenuItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- NavHeadingCloseContext as XDSNavHeadingCloseContext,
- NavHeadingMenu as XDSNavHeadingMenu,
- NavHeadingMenuContext as XDSNavHeadingMenuContext,
- NavHeadingMenuItem as XDSNavHeadingMenuItem,
- NavMenuItem as XDSNavMenuItem,
- useNavHeadingCloseContext as useXDSNavHeadingCloseContext,
- useNavHeadingMenuContext as useXDSNavHeadingMenuContext,
-} from '.';
-export type {
- NavHeadingCloseContextValue as XDSNavHeadingCloseContextValue,
- NavHeadingMenuContextValue as XDSNavHeadingMenuContextValue,
- NavHeadingMenuItemProps as XDSNavHeadingMenuItemProps,
- NavHeadingMenuProps as XDSNavHeadingMenuProps,
- NavHeadingMenuSize as XDSNavHeadingMenuSize,
- NavMenuItemProps as XDSNavMenuItemProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/NumberInput/NumberInput.doc.mjs b/packages/core/src/NumberInput/NumberInput.doc.mjs
index d53e8c432e..e358955c73 100644
--- a/packages/core/src/NumberInput/NumberInput.doc.mjs
+++ b/packages/core/src/NumberInput/NumberInput.doc.mjs
@@ -155,7 +155,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-number-input', visualProps: ['size', 'status']},
+ {className: 'astryx-number-input', visualProps: ['size', 'status']},
],
},
usage: {
@@ -328,7 +328,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-number-input', visualProps: ['size', 'status']},
+ {className: 'astryx-number-input', visualProps: ['size', 'status']},
],
},
usage: {
diff --git a/packages/core/src/NumberInput/index.ts b/packages/core/src/NumberInput/index.ts
index caa76be1b9..0a88f45ad0 100644
--- a/packages/core/src/NumberInput/index.ts
+++ b/packages/core/src/NumberInput/index.ts
@@ -18,21 +18,3 @@ export type {
NumberInputStatus,
NumberInputStatusType,
} from './NumberInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- NumberInput as XDSNumberInput,
-} from '.';
-export type {
- NumberInputProps as XDSNumberInputProps,
- NumberInputSize as XDSNumberInputSize,
- NumberInputStatus as XDSNumberInputStatus,
- NumberInputStatusType as XDSNumberInputStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Outline/Outline.doc.mjs b/packages/core/src/Outline/Outline.doc.mjs
index 3b7ae87760..a51751ee2d 100644
--- a/packages/core/src/Outline/Outline.doc.mjs
+++ b/packages/core/src/Outline/Outline.doc.mjs
@@ -29,8 +29,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-outline', visualProps: ['density']},
- {className: 'xds-outline-item', visualProps: ['level'], states: ['active']},
+ {className: 'astryx-outline', visualProps: ['density']},
+ {className: 'astryx-outline-item', visualProps: ['level'], states: ['active']},
],
},
components: [
@@ -162,8 +162,8 @@ export const docsZh = {
group: 'Outline',
theming: {
targets: [
- {className: 'xds-outline', visualProps: ['density']},
- {className: 'xds-outline-item', visualProps: ['level'], states: ['active']},
+ {className: 'astryx-outline', visualProps: ['density']},
+ {className: 'astryx-outline-item', visualProps: ['level'], states: ['active']},
],
},
components: [
diff --git a/packages/core/src/Outline/Outline.test.tsx b/packages/core/src/Outline/Outline.test.tsx
index 61b3d69caa..07a4051ce9 100644
--- a/packages/core/src/Outline/Outline.test.tsx
+++ b/packages/core/src/Outline/Outline.test.tsx
@@ -108,9 +108,9 @@ describe('Outline', () => {
it('applies stable root and item class names', () => {
render(<Outline items={items} data-testid="outline" activeId="api" />);
- expect(screen.getByTestId('outline').className).toContain('xds-outline');
+ expect(screen.getByTestId('outline').className).toContain('astryx-outline');
expect(screen.getByRole('link', {name: 'API'}).className).toContain(
- 'xds-outline-item',
+ 'astryx-outline-item',
);
expect(screen.getByRole('link', {name: 'API'}).className).toContain(
'active',
@@ -149,7 +149,7 @@ describe('Outline', () => {
it('renders the indicator unconditionally (CSS anchor positioning handles visibility)', () => {
const {container} = render(<Outline items={items} activeId="intro" />);
- const indicator = container.querySelector('.xds-outline-indicator');
+ const indicator = container.querySelector('.astryx-outline-indicator');
expect(indicator).toBeInTheDocument();
// No inline top/height styles — positioning is CSS-driven
expect((indicator as HTMLElement).style.top).toBe('');
@@ -159,7 +159,7 @@ describe('Outline', () => {
it('renders the active anchor before the indicator for CSS anchor positioning', () => {
const {container} = render(<Outline items={items} activeId="intro" />);
const activeLink = screen.getByRole('link', {name: 'Introduction'});
- const indicator = container.querySelector('.xds-outline-indicator');
+ const indicator = container.querySelector('.astryx-outline-indicator');
expect(indicator).toBeInTheDocument();
expect(
diff --git a/packages/core/src/Outline/index.ts b/packages/core/src/Outline/index.ts
index 69acb23b56..f68d1c3f9f 100644
--- a/packages/core/src/Outline/index.ts
+++ b/packages/core/src/Outline/index.ts
@@ -17,21 +17,3 @@ export type {OutlineItem} from './types';
export {parseOutlineFromMarkdown} from './parseOutlineFromMarkdown';
export {useOutlineFromMarkdown} from './useOutlineFromMarkdown';
export {useOutlineFromDOM} from './useOutlineFromDOM';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Outline as XDSOutline,
- useOutlineFromDOM as useXDSOutlineFromDOM,
- useOutlineFromMarkdown as useXDSOutlineFromMarkdown,
-} from '.';
-export type {
- OutlineItem as XDSOutlineItem,
- OutlineProps as XDSOutlineProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/OverflowList/OverflowList.doc.mjs b/packages/core/src/OverflowList/OverflowList.doc.mjs
index ad16b96f4f..9e0fafa851 100644
--- a/packages/core/src/OverflowList/OverflowList.doc.mjs
+++ b/packages/core/src/OverflowList/OverflowList.doc.mjs
@@ -66,7 +66,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-overflow-list'},
+ {className: 'astryx-overflow-list'},
],
},
usage: {
diff --git a/packages/core/src/OverflowList/index.ts b/packages/core/src/OverflowList/index.ts
index d57884451b..62438967e3 100644
--- a/packages/core/src/OverflowList/index.ts
+++ b/packages/core/src/OverflowList/index.ts
@@ -8,19 +8,3 @@
export {OverflowList} from './OverflowList';
export type {OverflowListProps, OverflowItem} from './OverflowList';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- OverflowList as XDSOverflowList,
-} from '.';
-export type {
- OverflowItem as XDSOverflowItem,
- OverflowListProps as XDSOverflowListProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Overlay/index.ts b/packages/core/src/Overlay/index.ts
index 7cf35f102b..97dda5400a 100644
--- a/packages/core/src/Overlay/index.ts
+++ b/packages/core/src/Overlay/index.ts
@@ -23,26 +23,3 @@ export type {
OverlayAlign,
OverlayShowOn,
} from './OverlayScrim';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Overlay as XDSOverlay,
- useOverlay as useXDSOverlay,
-} from '.';
-export type {
- OverlayAlign as XDSOverlayAlign,
- OverlayContainerProps as XDSOverlayContainerProps,
- OverlayPosition as XDSOverlayPosition,
- OverlayProps as XDSOverlayProps,
- OverlayScrimMode as XDSOverlayScrimMode,
- OverlayShowOn as XDSOverlayShowOn,
- UseOverlayOptions as XDSUseOverlayOptions,
- UseOverlayResult as XDSUseOverlayResult,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Pagination/Pagination.doc.mjs b/packages/core/src/Pagination/Pagination.doc.mjs
index 66cf925680..45e548721a 100644
--- a/packages/core/src/Pagination/Pagination.doc.mjs
+++ b/packages/core/src/Pagination/Pagination.doc.mjs
@@ -103,8 +103,8 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-pagination', visualProps: ['size', 'variant']},
- {className: 'xds-pagination-dot', visualProps: ['size'], states: ['active']},
+ {className: 'astryx-pagination', visualProps: ['size', 'variant']},
+ {className: 'astryx-pagination-dot', visualProps: ['size'], states: ['active']},
],
},
playground: {
@@ -231,8 +231,8 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-pagination', visualProps: ['size', 'variant']},
- {className: 'xds-pagination-dot', visualProps: ['size'], states: ['active']},
+ {className: 'astryx-pagination', visualProps: ['size', 'variant']},
+ {className: 'astryx-pagination-dot', visualProps: ['size'], states: ['active']},
],
},
usage: {
diff --git a/packages/core/src/Pagination/index.ts b/packages/core/src/Pagination/index.ts
index 9fcf00bfe8..9ea6a6e548 100644
--- a/packages/core/src/Pagination/index.ts
+++ b/packages/core/src/Pagination/index.ts
@@ -16,21 +16,3 @@ export type {
PaginationVariantMap,
PaginationSize,
} from './Pagination';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Pagination as XDSPagination,
-} from '.';
-export type {
- PaginationProps as XDSPaginationProps,
- PaginationSize as XDSPaginationSize,
- PaginationVariant as XDSPaginationVariant,
- PaginationVariantMap as XDSPaginationVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Popover/Popover.doc.mjs b/packages/core/src/Popover/Popover.doc.mjs
index 7d9fa95c98..c892952d31 100644
--- a/packages/core/src/Popover/Popover.doc.mjs
+++ b/packages/core/src/Popover/Popover.doc.mjs
@@ -106,7 +106,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-popover'},
+ {className: 'astryx-popover'},
],
vars: [
{name: '--_popover-radius', description: 'Border radius of the popover', default: 'var(--radius-element)', private: true},
@@ -224,7 +224,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-popover'},
+ {className: 'astryx-popover'},
],
vars: [
{name: '--_popover-radius', description: 'Border radius of the popover', default: 'var(--radius-element)', private: true},
diff --git a/packages/core/src/Popover/index.ts b/packages/core/src/Popover/index.ts
index a38c55ac53..c6c46c0c9f 100644
--- a/packages/core/src/Popover/index.ts
+++ b/packages/core/src/Popover/index.ts
@@ -18,22 +18,3 @@ export type {UsePopoverOptions, UsePopoverReturn} from './usePopover';
// Popover component
export {Popover} from './Popover';
export type {PopoverProps, PopoverTriggerRenderProps} from './Popover';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Popover as XDSPopover,
- usePopover as useXDSPopover,
-} from '.';
-export type {
- PopoverProps as XDSPopoverProps,
- PopoverTriggerRenderProps as XDSPopoverTriggerRenderProps,
- UsePopoverOptions as XDSUsePopoverOptions,
- UsePopoverReturn as XDSUsePopoverReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/PowerSearch/PowerSearch.test.tsx b/packages/core/src/PowerSearch/PowerSearch.test.tsx
index 6698f74336..2e5b87d18d 100644
--- a/packages/core/src/PowerSearch/PowerSearch.test.tsx
+++ b/packages/core/src/PowerSearch/PowerSearch.test.tsx
@@ -126,7 +126,7 @@ describe('PowerSearch', () => {
/>,
);
expect(root).toBeInstanceOf(HTMLDivElement);
- expect(root).toHaveClass('xds-power-search');
+ expect(root).toHaveClass('astryx-power-search');
});
it('exposes typeahead focus through handleRef', () => {
diff --git a/packages/core/src/PowerSearch/index.ts b/packages/core/src/PowerSearch/index.ts
index c3df56f23c..4d2f96a809 100644
--- a/packages/core/src/PowerSearch/index.ts
+++ b/packages/core/src/PowerSearch/index.ts
@@ -84,72 +84,3 @@ export type {
PowerSearchComponentOverride,
PowerSearchComponents,
} from './types';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- PowerSearch as XDSPowerSearch,
- PowerSearchFilterEditor as XDSPowerSearchFilterEditor,
- PowerSearchToken as XDSPowerSearchToken,
- usePowerSearchConfig as useXDSPowerSearchConfig,
-} from '.';
-export type {
- CustomOperatorValue as XDSCustomOperatorValue,
- DateAbsoluteOperatorValue as XDSDateAbsoluteOperatorValue,
- DateRangeFilterPreset as XDSDateRangeFilterPreset,
- DateRangeOperatorValue as XDSDateRangeOperatorValue,
- DateRelativeOperatorValue as XDSDateRelativeOperatorValue,
- DateTimeRange as XDSDateTimeRange,
- DateTimeRangePart as XDSDateTimeRangePart,
- EmptyOperatorValue as XDSEmptyOperatorValue,
- EntityListOperatorValue as XDSEntityListOperatorValue,
- EnumItem as XDSEnumItem,
- EnumListOperatorValue as XDSEnumListOperatorValue,
- EnumOperatorValue as XDSEnumOperatorValue,
- FieldDefinition as XDSFieldDefinition,
- FilterValue as XDSFilterValue,
- FilterValueCustom as XDSFilterValueCustom,
- FilterValueDateAbsolute as XDSFilterValueDateAbsolute,
- FilterValueDateRange as XDSFilterValueDateRange,
- FilterValueDateRelative as XDSFilterValueDateRelative,
- FilterValueEmpty as XDSFilterValueEmpty,
- FilterValueEntityList as XDSFilterValueEntityList,
- FilterValueEnum as XDSFilterValueEnum,
- FilterValueEnumList as XDSFilterValueEnumList,
- FilterValueFloat as XDSFilterValueFloat,
- FilterValueInteger as XDSFilterValueInteger,
- FilterValueNested as XDSFilterValueNested,
- FilterValueString as XDSFilterValueString,
- FilterValueStringList as XDSFilterValueStringList,
- FilterValueTime as XDSFilterValueTime,
- FloatOperatorValue as XDSFloatOperatorValue,
- InferData as XDSInferData,
- IntegerOperatorValue as XDSIntegerOperatorValue,
- NestedOperatorValue as XDSNestedOperatorValue,
- OperatorTokenizationConfig as XDSOperatorTokenizationConfig,
- OperatorValue as XDSOperatorValue,
- PartialFilter as XDSPartialFilter,
- PowerSearchChangeType as XDSPowerSearchChangeType,
- PowerSearchComponentOverride as XDSPowerSearchComponentOverride,
- PowerSearchComponents as XDSPowerSearchComponents,
- PowerSearchConfig as XDSPowerSearchConfig,
- PowerSearchEditorProps as XDSPowerSearchEditorProps,
- PowerSearchEntity as XDSPowerSearchEntity,
- PowerSearchField as XDSPowerSearchField,
- PowerSearchFilter as XDSPowerSearchFilter,
- PowerSearchHandle as XDSPowerSearchHandle,
- PowerSearchOperator as XDSPowerSearchOperator,
- PowerSearchProps as XDSPowerSearchProps,
- PowerSearchSize as XDSPowerSearchSize,
- PowerSearchTokenProps as XDSPowerSearchTokenProps,
- RelativeDateFilterPreset as XDSRelativeDateFilterPreset,
- StringListOperatorValue as XDSStringListOperatorValue,
- StringOperatorValue as XDSStringOperatorValue,
- TimeOperatorValue as XDSTimeOperatorValue,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/ProgressBar/ProgressBar.doc.mjs b/packages/core/src/ProgressBar/ProgressBar.doc.mjs
index 447397d3b3..bd47c90a61 100644
--- a/packages/core/src/ProgressBar/ProgressBar.doc.mjs
+++ b/packages/core/src/ProgressBar/ProgressBar.doc.mjs
@@ -71,8 +71,8 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-progressbar', visualProps: ['variant']},
- {className: 'xds-progressbar-fill', visualProps: ['variant']},
+ {className: 'astryx-progressbar', visualProps: ['variant']},
+ {className: 'astryx-progressbar-fill', visualProps: ['variant']},
],
},
usage: {
@@ -157,8 +157,8 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-progressbar', visualProps: ['variant']},
- {className: 'xds-progressbar-fill', visualProps: ['variant']},
+ {className: 'astryx-progressbar', visualProps: ['variant']},
+ {className: 'astryx-progressbar-fill', visualProps: ['variant']},
],
},
usage: {
diff --git a/packages/core/src/ProgressBar/index.ts b/packages/core/src/ProgressBar/index.ts
index becff25fe4..b62614a146 100644
--- a/packages/core/src/ProgressBar/index.ts
+++ b/packages/core/src/ProgressBar/index.ts
@@ -12,20 +12,3 @@ export type {
ProgressBarVariant,
ProgressBarVariantMap,
} from './ProgressBar';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ProgressBar as XDSProgressBar,
-} from '.';
-export type {
- ProgressBarProps as XDSProgressBarProps,
- ProgressBarVariant as XDSProgressBarVariant,
- ProgressBarVariantMap as XDSProgressBarVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/RadioList/RadioList.doc.mjs b/packages/core/src/RadioList/RadioList.doc.mjs
index 38da4a535c..19d5317c6f 100644
--- a/packages/core/src/RadioList/RadioList.doc.mjs
+++ b/packages/core/src/RadioList/RadioList.doc.mjs
@@ -10,10 +10,10 @@ export const docs = {
keywords: ["radiolist","radio","radiogroup","radiobutton","optionlist","singlechoice","choicelist"],
theming: {
targets: [
- {className: 'xds-radio-list', visualProps: ['orientation', 'size']},
- {className: 'xds-radio-list-item'},
- {className: 'xds-radio', visualProps: ['size'], states: ['checked', 'disabled']},
- {className: 'xds-radio-dot', visualProps: ['size']},
+ {className: 'astryx-radio-list', visualProps: ['orientation', 'size']},
+ {className: 'astryx-radio-list-item'},
+ {className: 'astryx-radio', visualProps: ['size'], states: ['checked', 'disabled']},
+ {className: 'astryx-radio-dot', visualProps: ['size']},
],
},
description: 'Radio group container with field integration for label, description, and status.',
diff --git a/packages/core/src/RadioList/index.ts b/packages/core/src/RadioList/index.ts
index c3d9fb796d..489eef48e8 100644
--- a/packages/core/src/RadioList/index.ts
+++ b/packages/core/src/RadioList/index.ts
@@ -19,23 +19,3 @@ export type {
} from './RadioList';
export {RadioListItem} from './RadioListItem';
export type {RadioListItemProps} from './RadioListItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- RadioList as XDSRadioList,
- RadioListContext as XDSRadioListContext,
- RadioListItem as XDSRadioListItem,
-} from '.';
-export type {
- RadioListContextValue as XDSRadioListContextValue,
- RadioListItemProps as XDSRadioListItemProps,
- RadioListProps as XDSRadioListProps,
- RadioListSize as XDSRadioListSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Resizable/Resizable.doc.mjs b/packages/core/src/Resizable/Resizable.doc.mjs
index e3955e69fc..1d71a4aa6c 100644
--- a/packages/core/src/Resizable/Resizable.doc.mjs
+++ b/packages/core/src/Resizable/Resizable.doc.mjs
@@ -46,8 +46,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-resize-handle', visualProps: ['direction']},
- {className: 'xds-resize-handle-pill'},
+ {className: 'astryx-resize-handle', visualProps: ['direction']},
+ {className: 'astryx-resize-handle-pill'},
],
},
components: [
diff --git a/packages/core/src/Resizable/index.ts b/packages/core/src/Resizable/index.ts
index d8e732bf83..b1ae35aef8 100644
--- a/packages/core/src/Resizable/index.ts
+++ b/packages/core/src/Resizable/index.ts
@@ -21,25 +21,3 @@ export type {
export {ResizeHandle} from './ResizeHandle';
export type {ResizeHandleProps} from './ResizeHandle';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ResizeHandle as XDSResizeHandle,
- useResizable as useXDSResizable,
-} from '.';
-export type {
- ResizableConfig as XDSResizableConfig,
- ResizableProps as XDSResizableProps,
- ResizableRegion as XDSResizableRegion,
- ResizableRegionConfig as XDSResizableRegionConfig,
- ResizeHandleProps as XDSResizeHandleProps,
- UseResizableMultiConfig as XDSUseResizableMultiConfig,
- UseResizableSingleConfig as XDSUseResizableSingleConfig,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Section/Section.doc.mjs b/packages/core/src/Section/Section.doc.mjs
index 93a714e5b5..f4132efaf8 100644
--- a/packages/core/src/Section/Section.doc.mjs
+++ b/packages/core/src/Section/Section.doc.mjs
@@ -62,7 +62,7 @@ export const docs = {
theming: {
container: true,
targets: [
- {className: 'xds-section', visualProps: ['variant']},
+ {className: 'astryx-section', visualProps: ['variant']},
],
derived: [
{property: 'padding', expand: 'container'},
@@ -139,7 +139,7 @@ export const docsZh = {
theming: {
container: true,
targets: [
- {className: 'xds-section', visualProps: ['variant']},
+ {className: 'astryx-section', visualProps: ['variant']},
],
derived: [
{property: 'padding', expand: 'container'},
diff --git a/packages/core/src/Section/Section.test.tsx b/packages/core/src/Section/Section.test.tsx
index f3708534c9..f933a4bd6e 100644
--- a/packages/core/src/Section/Section.test.tsx
+++ b/packages/core/src/Section/Section.test.tsx
@@ -24,7 +24,7 @@ describe('Section', () => {
it('renders with variant="section" (default)', () => {
const {container} = render(<Section>Content</Section>);
const inner = container.firstElementChild!.firstElementChild!;
- expect(inner.className).toContain('xds-section');
+ expect(inner.className).toContain('astryx-section');
expect(inner.className).toContain('section');
});
@@ -33,7 +33,7 @@ describe('Section', () => {
<Section variant="transparent">Content</Section>,
);
const inner = container.firstElementChild!.firstElementChild!;
- expect(inner.className).toContain('xds-section');
+ expect(inner.className).toContain('astryx-section');
expect(inner.className).toContain('transparent');
});
@@ -42,7 +42,7 @@ describe('Section', () => {
<Section variant="muted">Content</Section>,
);
const inner = container.firstElementChild!.firstElementChild!;
- expect(inner.className).toContain('xds-section');
+ expect(inner.className).toContain('astryx-section');
expect(inner.className).toContain('muted');
});
@@ -105,7 +105,7 @@ describe('Section', () => {
it('renders xds-* class names for theme targeting', () => {
const {container} = render(<Section>Content</Section>);
const inner = container.firstElementChild!.firstElementChild!;
- expect(inner.className).toContain('xds-section');
+ expect(inner.className).toContain('astryx-section');
});
it('renders variant in xds class names', () => {
@@ -113,7 +113,7 @@ describe('Section', () => {
<Section variant="muted">Content</Section>,
);
const inner = container.firstElementChild!.firstElementChild!;
- expect(inner.className).toContain('xds-section');
+ expect(inner.className).toContain('astryx-section');
expect(inner.className).toContain('muted');
});
diff --git a/packages/core/src/Section/index.ts b/packages/core/src/Section/index.ts
index 6abc95f4ef..f55e0fd38c 100644
--- a/packages/core/src/Section/index.ts
+++ b/packages/core/src/Section/index.ts
@@ -17,20 +17,3 @@ export type {
SectionVariant,
SectionVariantMap,
} from './Section';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Section as XDSSection,
-} from '.';
-export type {
- SectionProps as XDSSectionProps,
- SectionVariant as XDSSectionVariant,
- SectionVariantMap as XDSSectionVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
index 5f93d6adf5..fe6a5e715c 100644
--- a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
+++ b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs
@@ -15,8 +15,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-segmented-control', visualProps: ['size']},
- {className: 'xds-segmented-control-item'},
+ {className: 'astryx-segmented-control', visualProps: ['size']},
+ {className: 'astryx-segmented-control-item'},
],
vars: [
{name: '--_segmented-control-radius', description: 'Border radius of the segmented control', default: 'var(--radius-element)', private: true},
diff --git a/packages/core/src/SegmentedControl/index.ts b/packages/core/src/SegmentedControl/index.ts
index 468e6f7874..1182852a2d 100644
--- a/packages/core/src/SegmentedControl/index.ts
+++ b/packages/core/src/SegmentedControl/index.ts
@@ -21,22 +21,3 @@ export type {
SegmentedControlSize,
SegmentedControlLayout,
} from './SegmentedControlContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- SegmentedControl as XDSSegmentedControl,
- SegmentedControlItem as XDSSegmentedControlItem,
-} from '.';
-export type {
- SegmentedControlItemProps as XDSSegmentedControlItemProps,
- SegmentedControlLayout as XDSSegmentedControlLayout,
- SegmentedControlProps as XDSSegmentedControlProps,
- SegmentedControlSize as XDSSegmentedControlSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/SelectableCard/SelectableCard.doc.mjs b/packages/core/src/SelectableCard/SelectableCard.doc.mjs
index 66272c98c2..66a86eb6af 100644
--- a/packages/core/src/SelectableCard/SelectableCard.doc.mjs
+++ b/packages/core/src/SelectableCard/SelectableCard.doc.mjs
@@ -34,7 +34,7 @@ export const docs = {
],
theming: {
container: true,
- targets: [{className: 'xds-selectable-card', visualProps: ['selected']}],
+ targets: [{className: 'astryx-selectable-card', visualProps: ['selected']}],
},
};
diff --git a/packages/core/src/SelectableCard/index.ts b/packages/core/src/SelectableCard/index.ts
index 3102fe834b..141073bcb5 100644
--- a/packages/core/src/SelectableCard/index.ts
+++ b/packages/core/src/SelectableCard/index.ts
@@ -2,18 +2,3 @@
export {SelectableCard} from './SelectableCard';
export type {SelectableCardProps} from './SelectableCard';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- SelectableCard as XDSSelectableCard,
-} from '.';
-export type {
- SelectableCardProps as XDSSelectableCardProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Selector/Selector.doc.mjs b/packages/core/src/Selector/Selector.doc.mjs
index a5e9676976..09f18cfa95 100644
--- a/packages/core/src/Selector/Selector.doc.mjs
+++ b/packages/core/src/Selector/Selector.doc.mjs
@@ -21,8 +21,8 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-selector', visualProps: ['size', 'status']},
- {className: 'xds-selector-option'},
+ {className: 'astryx-selector', visualProps: ['size', 'status']},
+ {className: 'astryx-selector-option'},
],
},
description: 'Dropdown selector for choosing from a list of options.',
diff --git a/packages/core/src/Selector/index.ts b/packages/core/src/Selector/index.ts
index 8826a3736d..1c027a222e 100644
--- a/packages/core/src/Selector/index.ts
+++ b/packages/core/src/Selector/index.ts
@@ -23,28 +23,3 @@ export type {
SelectorSection,
} from './types';
export {useCombobox, useSelectedItemOffset} from './hooks';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Selector as XDSSelector,
- SelectorOption as XDSSelectorOption,
- useCombobox as useXDSCombobox,
- useSelectedItemOffset as useXDSSelectedItemOffset,
-} from '.';
-export type {
- SelectorDivider as XDSSelectorDivider,
- SelectorOptionData as XDSSelectorOptionData,
- SelectorOptionType as XDSSelectorOptionType,
- SelectorProps as XDSSelectorProps,
- SelectorSection as XDSSelectorSection,
- SelectorSize as XDSSelectorSize,
- SelectorStatus as XDSSelectorStatus,
- SelectorStatusType as XDSSelectorStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/SideNav/SideNav.doc.mjs b/packages/core/src/SideNav/SideNav.doc.mjs
index 333a593bd6..07e88056fd 100644
--- a/packages/core/src/SideNav/SideNav.doc.mjs
+++ b/packages/core/src/SideNav/SideNav.doc.mjs
@@ -19,10 +19,10 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-side-nav', visualProps: ['mode']},
- {className: 'xds-side-nav-heading'},
- {className: 'xds-side-nav-item'},
- {className: 'xds-side-nav-section'},
+ {className: 'astryx-side-nav', visualProps: ['mode']},
+ {className: 'astryx-side-nav-heading'},
+ {className: 'astryx-side-nav-item'},
+ {className: 'astryx-side-nav-section'},
],
},
description: 'Container with five zones: header, topContent, children (scrollable), footer, and footerIcons. Supports collapsible mode.',
diff --git a/packages/core/src/SideNav/index.ts b/packages/core/src/SideNav/index.ts
index bb55b2ae39..a5e6f5f357 100644
--- a/packages/core/src/SideNav/index.ts
+++ b/packages/core/src/SideNav/index.ts
@@ -37,32 +37,3 @@ export {
useSideNavRenderMode,
} from './SideNavRenderContext';
export type {SideNavRenderMode} from './SideNavRenderContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- SideNav as XDSSideNav,
- SideNavCollapseButton as XDSSideNavCollapseButton,
- SideNavHeading as XDSSideNavHeading,
- SideNavItem as XDSSideNavItem,
- SideNavRenderContext as XDSSideNavRenderContext,
- SideNavSection as XDSSideNavSection,
- useSideNavCollapse as useXDSSideNavCollapse,
- useSideNavRenderMode as useXDSSideNavRenderMode,
-} from '.';
-export type {
- SideNavCollapseButtonProps as XDSSideNavCollapseButtonProps,
- SideNavCollapseState as XDSSideNavCollapseState,
- SideNavHeadingProps as XDSSideNavHeadingProps,
- SideNavImperativeCollapseHandle as XDSSideNavImperativeCollapseHandle,
- SideNavItemProps as XDSSideNavItemProps,
- SideNavProps as XDSSideNavProps,
- SideNavRenderMode as XDSSideNavRenderMode,
- SideNavSectionProps as XDSSideNavSectionProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/SizeContext/index.ts b/packages/core/src/SizeContext/index.ts
index 8a3122e4ab..93c9856767 100644
--- a/packages/core/src/SizeContext/index.ts
+++ b/packages/core/src/SizeContext/index.ts
@@ -13,20 +13,3 @@ export {
useSize,
type ElementSize,
} from './SizeContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- SizeContext as XDSSizeContext,
- SizeProvider as XDSSizeProvider,
- useSize as useXDSSize,
-} from '.';
-export type {
- ElementSize as XDSElementSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Skeleton/Skeleton.doc.mjs b/packages/core/src/Skeleton/Skeleton.doc.mjs
index 48a6a25060..d2b44e822a 100644
--- a/packages/core/src/Skeleton/Skeleton.doc.mjs
+++ b/packages/core/src/Skeleton/Skeleton.doc.mjs
@@ -35,7 +35,7 @@ export const docs = {
},
], theming: {
targets: [
- {className: 'xds-skeleton'},
+ {className: 'astryx-skeleton'},
],
},
usage: {
@@ -84,7 +84,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-skeleton'},
+ {className: 'astryx-skeleton'},
],
},
usage: {
diff --git a/packages/core/src/Skeleton/index.ts b/packages/core/src/Skeleton/index.ts
index 8dc7735f54..749729ae7a 100644
--- a/packages/core/src/Skeleton/index.ts
+++ b/packages/core/src/Skeleton/index.ts
@@ -13,19 +13,3 @@
export {Skeleton} from './Skeleton';
export type {SkeletonProps, SkeletonRadius} from './Skeleton';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Skeleton as XDSSkeleton,
-} from '.';
-export type {
- SkeletonProps as XDSSkeletonProps,
- SkeletonRadius as XDSSkeletonRadius,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Slider/Slider.doc.mjs b/packages/core/src/Slider/Slider.doc.mjs
index 74e9126c6e..092ce49f55 100644
--- a/packages/core/src/Slider/Slider.doc.mjs
+++ b/packages/core/src/Slider/Slider.doc.mjs
@@ -134,9 +134,9 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-slider', visualProps: ['orientation'], states: ['disabled']},
- {className: 'xds-slider-track', visualProps: ['orientation']},
- {className: 'xds-slider-thumb', visualProps: ['orientation'], states: ['disabled']},
+ {className: 'astryx-slider', visualProps: ['orientation'], states: ['disabled']},
+ {className: 'astryx-slider-track', visualProps: ['orientation']},
+ {className: 'astryx-slider-thumb', visualProps: ['orientation'], states: ['disabled']},
],
},
usage: {
@@ -276,9 +276,9 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-slider', visualProps: ['orientation'], states: ['disabled']},
- {className: 'xds-slider-track', visualProps: ['orientation']},
- {className: 'xds-slider-thumb', visualProps: ['orientation'], states: ['disabled']},
+ {className: 'astryx-slider', visualProps: ['orientation'], states: ['disabled']},
+ {className: 'astryx-slider-track', visualProps: ['orientation']},
+ {className: 'astryx-slider-thumb', visualProps: ['orientation'], states: ['disabled']},
],
},
usage: {
diff --git a/packages/core/src/Slider/index.ts b/packages/core/src/Slider/index.ts
index 22bd28db59..8fe6187e67 100644
--- a/packages/core/src/Slider/index.ts
+++ b/packages/core/src/Slider/index.ts
@@ -18,21 +18,3 @@ export type {
SliderSingleProps,
SliderRangeProps,
} from './Slider';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Slider as XDSSlider,
-} from '.';
-export type {
- SliderBaseProps as XDSSliderBaseProps,
- SliderProps as XDSSliderProps,
- SliderRangeProps as XDSSliderRangeProps,
- SliderSingleProps as XDSSliderSingleProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Spinner/Spinner.doc.mjs b/packages/core/src/Spinner/Spinner.doc.mjs
index 199a708bae..6e802c04de 100644
--- a/packages/core/src/Spinner/Spinner.doc.mjs
+++ b/packages/core/src/Spinner/Spinner.doc.mjs
@@ -41,7 +41,7 @@ export const docs = {
},
], theming: {
targets: [
- {className: 'xds-spinner', visualProps: ['size', 'shade']},
+ {className: 'astryx-spinner', visualProps: ['size', 'shade']},
],
},
usage: {
@@ -93,7 +93,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-spinner', visualProps: ['size', 'shade']},
+ {className: 'astryx-spinner', visualProps: ['size', 'shade']},
],
},
usage: {
diff --git a/packages/core/src/Spinner/index.ts b/packages/core/src/Spinner/index.ts
index d0f7648f4d..65d9129d31 100644
--- a/packages/core/src/Spinner/index.ts
+++ b/packages/core/src/Spinner/index.ts
@@ -17,20 +17,3 @@ export type {
SpinnerSize,
SpinnerShade,
} from './Spinner';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Spinner as XDSSpinner,
-} from '.';
-export type {
- SpinnerProps as XDSSpinnerProps,
- SpinnerShade as XDSSpinnerShade,
- SpinnerSize as XDSSpinnerSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Stack/Stack.doc.mjs b/packages/core/src/Stack/Stack.doc.mjs
index 9cc8e6df1c..0508effc96 100644
--- a/packages/core/src/Stack/Stack.doc.mjs
+++ b/packages/core/src/Stack/Stack.doc.mjs
@@ -10,8 +10,8 @@ export const docs = {
keywords: ["stack","hstack","vstack","flexbox","flex","spacing","gap","horizontal","vertical","row","column"],
theming: {
targets: [
- {className: 'xds-stack', visualProps: ['direction', 'gap', 'wrap']},
- {className: 'xds-stack-item', visualProps: ['size']},
+ {className: 'astryx-stack', visualProps: ['direction', 'gap', 'wrap']},
+ {className: 'astryx-stack-item', visualProps: ['size']},
],
},
components: [
@@ -198,8 +198,8 @@ export const docsZh = {
group: 'Layout',
theming: {
targets: [
- {className: 'xds-stack', visualProps: ['direction', 'gap', 'wrap']},
- {className: 'xds-stack-item', visualProps: ['size']},
+ {className: 'astryx-stack', visualProps: ['direction', 'gap', 'wrap']},
+ {className: 'astryx-stack-item', visualProps: ['size']},
],
},
components: [
diff --git a/packages/core/src/Stack/index.ts b/packages/core/src/Stack/index.ts
index 0608f5248f..8386164456 100644
--- a/packages/core/src/Stack/index.ts
+++ b/packages/core/src/Stack/index.ts
@@ -23,25 +23,3 @@ export {VStack, type VStackProps} from '../VStack';
export {StackItem} from './StackItem';
export type {StackItemProps} from './StackItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- HStack as XDSHStack,
- Stack as XDSStack,
- StackItem as XDSStackItem,
- VStack as XDSVStack,
-} from '.';
-export type {
- HStackProps as XDSHStackProps,
- StackAlignment as XDSStackAlignment,
- StackItemProps as XDSStackItemProps,
- StackProps as XDSStackProps,
- VStackProps as XDSVStackProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/StatusDot/StatusDot.doc.mjs b/packages/core/src/StatusDot/StatusDot.doc.mjs
index ab06e8c5fb..b40a9de90b 100644
--- a/packages/core/src/StatusDot/StatusDot.doc.mjs
+++ b/packages/core/src/StatusDot/StatusDot.doc.mjs
@@ -42,7 +42,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-statusdot', visualProps: ['variant']},
+ {className: 'astryx-statusdot', visualProps: ['variant']},
],
},
usage: {
@@ -90,7 +90,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-statusdot', visualProps: ['variant']},
+ {className: 'astryx-statusdot', visualProps: ['variant']},
],
},
usage: {
diff --git a/packages/core/src/StatusDot/index.ts b/packages/core/src/StatusDot/index.ts
index 7bc52e78b4..229c94b886 100644
--- a/packages/core/src/StatusDot/index.ts
+++ b/packages/core/src/StatusDot/index.ts
@@ -15,20 +15,3 @@ export type {
StatusDotVariant,
StatusDotVariantMap,
} from './StatusDot';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- StatusDot as XDSStatusDot,
-} from '.';
-export type {
- StatusDotProps as XDSStatusDotProps,
- StatusDotVariant as XDSStatusDotVariant,
- StatusDotVariantMap as XDSStatusDotVariantMap,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Switch/Switch.doc.mjs b/packages/core/src/Switch/Switch.doc.mjs
index 264c326565..37d07138fd 100644
--- a/packages/core/src/Switch/Switch.doc.mjs
+++ b/packages/core/src/Switch/Switch.doc.mjs
@@ -120,9 +120,9 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-switch', states: ['checked', 'disabled']},
- {className: 'xds-switch-thumb', states: ['checked']},
- {className: 'xds-switch-field', visualProps: ['labelPosition', 'labelSpacing']},
+ {className: 'astryx-switch', states: ['checked', 'disabled']},
+ {className: 'astryx-switch-thumb', states: ['checked']},
+ {className: 'astryx-switch-field', visualProps: ['labelPosition', 'labelSpacing']},
],
},
usage: {
@@ -254,9 +254,9 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-switch', states: ['checked', 'disabled']},
- {className: 'xds-switch-thumb', states: ['checked']},
- {className: 'xds-switch-field', visualProps: ['labelPosition', 'labelSpacing']},
+ {className: 'astryx-switch', states: ['checked', 'disabled']},
+ {className: 'astryx-switch-thumb', states: ['checked']},
+ {className: 'astryx-switch-field', visualProps: ['labelPosition', 'labelSpacing']},
],
},
usage: {
diff --git a/packages/core/src/Switch/index.ts b/packages/core/src/Switch/index.ts
index c82e58bc37..d1032036eb 100644
--- a/packages/core/src/Switch/index.ts
+++ b/packages/core/src/Switch/index.ts
@@ -17,20 +17,3 @@ export type {
SwitchLabelPosition,
SwitchLabelSpacing,
} from './Switch';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Switch as XDSSwitch,
-} from '.';
-export type {
- SwitchLabelPosition as XDSSwitchLabelPosition,
- SwitchLabelSpacing as XDSSwitchLabelSpacing,
- SwitchProps as XDSSwitchProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TabList/TabList.doc.mjs b/packages/core/src/TabList/TabList.doc.mjs
index 5fcbc1b082..84db5bb8f5 100644
--- a/packages/core/src/TabList/TabList.doc.mjs
+++ b/packages/core/src/TabList/TabList.doc.mjs
@@ -15,12 +15,12 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-tab-list', visualProps: ['size']},
- {className: 'xds-tab', states: ['selected']},
- {className: 'xds-tab-indicator', states: ['selected']},
- {className: 'xds-tab-menu'},
- {className: 'xds-tab-menu-dropdown'},
- {className: 'xds-tab-menu-item'},
+ {className: 'astryx-tab-list', visualProps: ['size']},
+ {className: 'astryx-tab', states: ['selected']},
+ {className: 'astryx-tab-indicator', states: ['selected']},
+ {className: 'astryx-tab-menu'},
+ {className: 'astryx-tab-menu-dropdown'},
+ {className: 'astryx-tab-menu-item'},
],
},
description: 'Nav wrapper that provides TabListContext (value, onChange, size) to Tab and TabMenu children.',
diff --git a/packages/core/src/TabList/index.ts b/packages/core/src/TabList/index.ts
index bb0bf6fcac..e80c62a243 100644
--- a/packages/core/src/TabList/index.ts
+++ b/packages/core/src/TabList/index.ts
@@ -22,26 +22,3 @@ export type {TabMenuProps, TabMenuOption} from './TabMenu';
export {useTabListContext} from './TabListContext';
export type {TabListSize, TabListLayout} from './TabListContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Tab as XDSTab,
- TabList as XDSTabList,
- TabMenu as XDSTabMenu,
- useTabListContext as useXDSTabListContext,
-} from '.';
-export type {
- TabListLayout as XDSTabListLayout,
- TabListProps as XDSTabListProps,
- TabListSize as XDSTabListSize,
- TabMenuOption as XDSTabMenuOption,
- TabMenuProps as XDSTabMenuProps,
- TabProps as XDSTabProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Table/Table.doc.mjs b/packages/core/src/Table/Table.doc.mjs
index c6921972ef..dd2b8f416c 100644
--- a/packages/core/src/Table/Table.doc.mjs
+++ b/packages/core/src/Table/Table.doc.mjs
@@ -24,10 +24,10 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-base-table'},
- {className: 'xds-table-row'},
- {className: 'xds-table-cell'},
- {className: 'xds-table-header-cell'},
+ {className: 'astryx-base-table'},
+ {className: 'astryx-table-row'},
+ {className: 'astryx-table-cell'},
+ {className: 'astryx-table-header-cell'},
],
},
description: 'Styled, data-driven table with density, dividers, hover highlight, striped rows, and named plugin support. T must extend Record<string, unknown>.',
diff --git a/packages/core/src/Table/Table.test.tsx b/packages/core/src/Table/Table.test.tsx
index a6069f0164..e893eb6e68 100644
--- a/packages/core/src/Table/Table.test.tsx
+++ b/packages/core/src/Table/Table.test.tsx
@@ -623,7 +623,7 @@ describe('Table', () => {
const table = screen.getByRole('table');
const wrapper = table.parentElement;
expect(wrapper).toBeTruthy();
- expect(wrapper!.className).toContain('xds-table-scroll-wrapper');
+ expect(wrapper!.className).toContain('astryx-table-scroll-wrapper');
});
it('uses table-layout: auto in children mode', () => {
diff --git a/packages/core/src/Table/index.ts b/packages/core/src/Table/index.ts
index 4b307def69..fe452a435d 100644
--- a/packages/core/src/Table/index.ts
+++ b/packages/core/src/Table/index.ts
@@ -100,82 +100,3 @@ export type {
TableFilterValue,
TableFilterFieldRef,
} from './plugins/filtering';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DEFAULT_MIN_COLUMN_WIDTH as XDSDEFAULT_MIN_COLUMN_WIDTH,
- Table as XDSTable,
- TableBody as XDSTableBody,
- TableCell as XDSTableCell,
- TableContext as XDSTableContext,
- TableFooter as XDSTableFooter,
- TableHeader as XDSTableHeader,
- TableHeaderCell as XDSTableHeaderCell,
- TableRow as XDSTableRow,
- useBaseTablePlugins as useXDSBaseTablePlugins,
- useTableColumnResize as useXDSTableColumnResize,
- useTableColumnSettings as useXDSTableColumnSettings,
- useTableColumnSettingsState as useXDSTableColumnSettingsState,
- useTableFilterState as useXDSTableFilterState,
- useTableFiltering as useXDSTableFiltering,
- useTablePagination as useXDSTablePagination,
- useTableSelection as useXDSTableSelection,
- useTableSelectionState as useXDSTableSelectionState,
- useTableSortable as useXDSTableSortable,
- useTableSortableState as useXDSTableSortableState,
-} from '.';
-export type {
- BaseTableProps as XDSBaseTableProps,
- BodyCellRenderProps as XDSBodyCellRenderProps,
- BodyRowRenderProps as XDSBodyRowRenderProps,
- ColumnSettingsOption as XDSColumnSettingsOption,
- ColumnWidth as XDSColumnWidth,
- HeaderCellRenderProps as XDSHeaderCellRenderProps,
- HeaderRowRenderProps as XDSHeaderRowRenderProps,
- PixelWidth as XDSPixelWidth,
- ProportionalWidth as XDSProportionalWidth,
- TableBodyProps as XDSTableBodyProps,
- TableCellProps as XDSTableCellProps,
- TableColumn as XDSTableColumn,
- TableColumnAlign as XDSTableColumnAlign,
- TableContextValue as XDSTableContextValue,
- TableDensity as XDSTableDensity,
- TableDividers as XDSTableDividers,
- TableFilterFieldRef as XDSTableFilterFieldRef,
- TableFilterState as XDSTableFilterState,
- TableFilterValue as XDSTableFilterValue,
- TableFilterVariant as XDSTableFilterVariant,
- TableFooterProps as XDSTableFooterProps,
- TableHeaderCellProps as XDSTableHeaderCellProps,
- TableHeaderProps as XDSTableHeaderProps,
- TablePlugin as XDSTablePlugin,
- TableProps as XDSTableProps,
- TableRenderProps as XDSTableRenderProps,
- TableRowProps as XDSTableRowProps,
- TableSortComparator as XDSTableSortComparator,
- TableSortDirection as XDSTableSortDirection,
- TableSortEntry as XDSTableSortEntry,
- TableSortState as XDSTableSortState,
- TableSortableColumnConfig as XDSTableSortableColumnConfig,
- TableTextOverflow as XDSTableTextOverflow,
- TableVerticalAlign as XDSTableVerticalAlign,
- UseTableColumnResizeConfig as XDSUseTableColumnResizeConfig,
- UseTableColumnSettingsConfig as XDSUseTableColumnSettingsConfig,
- UseTableColumnSettingsStateConfig as XDSUseTableColumnSettingsStateConfig,
- UseTableColumnSettingsStateReturn as XDSUseTableColumnSettingsStateReturn,
- UseTableFilteringConfig as XDSUseTableFilteringConfig,
- UseTablePaginationConfig as XDSUseTablePaginationConfig,
- UseTableSelectionConfig as XDSUseTableSelectionConfig,
- UseTableSelectionStateConfig as XDSUseTableSelectionStateConfig,
- UseTableSelectionStateResult as XDSUseTableSelectionStateResult,
- UseTableSortableConfig as XDSUseTableSortableConfig,
- UseTableSortableStateConfig as XDSUseTableSortableStateConfig,
- UseTableSortableStateResult as XDSUseTableSortableStateResult,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Text/Text.doc.mjs b/packages/core/src/Text/Text.doc.mjs
index b84e689fa6..57b1961bcf 100644
--- a/packages/core/src/Text/Text.doc.mjs
+++ b/packages/core/src/Text/Text.doc.mjs
@@ -15,8 +15,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-heading', visualProps: ['level', 'color']},
- {className: 'xds-text', visualProps: ['type', 'color']},
+ {className: 'astryx-heading', visualProps: ['level', 'color']},
+ {className: 'astryx-text', visualProps: ['type', 'color']},
],
},
description: 'Semantic body text component that renders text with type-based styling from the theme, with optional truncation, decoration, and layout props.',
diff --git a/packages/core/src/Text/Text.test.tsx b/packages/core/src/Text/Text.test.tsx
index 4a50406ae9..3294732e15 100644
--- a/packages/core/src/Text/Text.test.tsx
+++ b/packages/core/src/Text/Text.test.tsx
@@ -194,7 +194,7 @@ describe('Text', () => {
it('renders xds-* class names for theme targeting', () => {
render(<Text type="body">Themed Text</Text>);
const element = screen.getByText('Themed Text');
- expect(element.className).toContain('xds-text');
+ expect(element.className).toContain('astryx-text');
expect(element.className).toContain('body');
});
});
@@ -204,7 +204,7 @@ describe('Text custom types', () => {
render(<Text type={'hero' as TextType}>Custom</Text>);
const el = screen.getByText('Custom');
expect(el).toBeInTheDocument();
- expect(el.className).toContain('xds-text');
+ expect(el.className).toContain('astryx-text');
expect(el.className).toContain('hero');
});
diff --git a/packages/core/src/Text/index.ts b/packages/core/src/Text/index.ts
index dc71b44f35..1d2d24b698 100644
--- a/packages/core/src/Text/index.ts
+++ b/packages/core/src/Text/index.ts
@@ -38,35 +38,3 @@ export {
type UseTruncationOptions,
type UseTruncationReturn,
} from './useTruncation';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Heading as XDSHeading,
- Text as XDSText,
- useTruncation as useXDSTruncation,
-} from '.';
-export type {
- HeadingLevel as XDSHeadingLevel,
- HeadingProps as XDSHeadingProps,
- HeadingType as XDSHeadingType,
- ProseElement as XDSProseElement,
- TextColor as XDSTextColor,
- TextDisplay as XDSTextDisplay,
- TextJustify as XDSTextJustify,
- TextProps as XDSTextProps,
- TextSize as XDSTextSize,
- TextType as XDSTextType,
- TextWeight as XDSTextWeight,
- TextWrap as XDSTextWrap,
- TextXStyleAllowed as XDSTextXStyleAllowed,
- UseTruncationOptions as XDSUseTruncationOptions,
- UseTruncationReturn as XDSUseTruncationReturn,
- WordBreak as XDSWordBreak,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TextArea/TextArea.doc.mjs b/packages/core/src/TextArea/TextArea.doc.mjs
index 63b1283259..c1edabbf71 100644
--- a/packages/core/src/TextArea/TextArea.doc.mjs
+++ b/packages/core/src/TextArea/TextArea.doc.mjs
@@ -160,7 +160,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-textarea', visualProps: ['size', 'status']},
+ {className: 'astryx-textarea', visualProps: ['size', 'status']},
],
},
usage: {
@@ -322,7 +322,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-textarea', visualProps: ['size', 'status']},
+ {className: 'astryx-textarea', visualProps: ['size', 'status']},
],
},
usage: {
diff --git a/packages/core/src/TextArea/index.ts b/packages/core/src/TextArea/index.ts
index 2875619a34..d6cc65b7e2 100644
--- a/packages/core/src/TextArea/index.ts
+++ b/packages/core/src/TextArea/index.ts
@@ -18,21 +18,3 @@ export type {
TextAreaStatusType,
TextAreaSize,
} from './TextArea';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- TextArea as XDSTextArea,
-} from '.';
-export type {
- TextAreaProps as XDSTextAreaProps,
- TextAreaSize as XDSTextAreaSize,
- TextAreaStatus as XDSTextAreaStatus,
- TextAreaStatusType as XDSTextAreaStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TextInput/TextInput.doc.mjs b/packages/core/src/TextInput/TextInput.doc.mjs
index 75670f224a..d156a8e460 100644
--- a/packages/core/src/TextInput/TextInput.doc.mjs
+++ b/packages/core/src/TextInput/TextInput.doc.mjs
@@ -130,7 +130,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-text-input', visualProps: ['size', 'status']},
+ {className: 'astryx-text-input', visualProps: ['size', 'status']},
],
},
usage: {
@@ -282,7 +282,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-text-input', visualProps: ['size', 'status']},
+ {className: 'astryx-text-input', visualProps: ['size', 'status']},
],
},
usage: {
diff --git a/packages/core/src/TextInput/TextInput.test.tsx b/packages/core/src/TextInput/TextInput.test.tsx
index bac17e2dca..3442c8f3a9 100644
--- a/packages/core/src/TextInput/TextInput.test.tsx
+++ b/packages/core/src/TextInput/TextInput.test.tsx
@@ -508,7 +508,7 @@ describe('TextInput', () => {
const input = screen.getByRole('textbox');
const inputWrapper = input.parentElement!;
// Field root is the labelled ancestor that owns the width.
- const fieldRoot = input.closest('.xds-field') as HTMLElement;
+ const fieldRoot = input.closest('.astryx-field') as HTMLElement;
expect(fieldRoot).toBeTruthy();
expect(fieldRoot.getAttribute('style')).toContain('100%');
// The inner control wrapper is not the element carrying the width.
@@ -520,7 +520,7 @@ describe('TextInput', () => {
render(<TextInput label="Name" value="" onChange={() => {}} />);
const fieldRoot = screen
.getByRole('textbox')
- .closest('.xds-field') as HTMLElement;
+ .closest('.astryx-field') as HTMLElement;
expect(fieldRoot.getAttribute('style') ?? '').not.toContain('100%');
});
});
diff --git a/packages/core/src/TextInput/index.ts b/packages/core/src/TextInput/index.ts
index 981f91f7c9..2affeb4344 100644
--- a/packages/core/src/TextInput/index.ts
+++ b/packages/core/src/TextInput/index.ts
@@ -19,22 +19,3 @@ export type {
TextInputStatus,
TextInputStatusType,
} from './TextInput';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- TextInput as XDSTextInput,
-} from '.';
-export type {
- TextInputProps as XDSTextInputProps,
- TextInputSize as XDSTextInputSize,
- TextInputStatus as XDSTextInputStatus,
- TextInputStatusType as XDSTextInputStatusType,
- TextInputType as XDSTextInputType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Thumbnail/Thumbnail.doc.mjs b/packages/core/src/Thumbnail/Thumbnail.doc.mjs
index 402d41ae8f..1fe47103e4 100644
--- a/packages/core/src/Thumbnail/Thumbnail.doc.mjs
+++ b/packages/core/src/Thumbnail/Thumbnail.doc.mjs
@@ -68,7 +68,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-thumbnail'},
+ {className: 'astryx-thumbnail'},
],
},
usage: {
diff --git a/packages/core/src/Thumbnail/Thumbnail.test.tsx b/packages/core/src/Thumbnail/Thumbnail.test.tsx
index 6049149590..2d51e8f134 100644
--- a/packages/core/src/Thumbnail/Thumbnail.test.tsx
+++ b/packages/core/src/Thumbnail/Thumbnail.test.tsx
@@ -24,7 +24,7 @@ describe('Thumbnail', () => {
const {container} = render(
<Thumbnail isLoading data-testid="thumb" />,
);
- expect(container.querySelector('.xds-skeleton')).toBeInTheDocument();
+ expect(container.querySelector('.astryx-skeleton')).toBeInTheDocument();
expect(screen.queryByRole('img')).toBeNull();
});
diff --git a/packages/core/src/Thumbnail/index.ts b/packages/core/src/Thumbnail/index.ts
index f80f46d4cf..e3d679abae 100644
--- a/packages/core/src/Thumbnail/index.ts
+++ b/packages/core/src/Thumbnail/index.ts
@@ -8,18 +8,3 @@
export {Thumbnail} from './Thumbnail';
export type {ThumbnailProps} from './Thumbnail';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Thumbnail as XDSThumbnail,
-} from '.';
-export type {
- ThumbnailProps as XDSThumbnailProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TimeInput/TimeInput.doc.mjs b/packages/core/src/TimeInput/TimeInput.doc.mjs
index 94df2eb0f5..d74efc8177 100644
--- a/packages/core/src/TimeInput/TimeInput.doc.mjs
+++ b/packages/core/src/TimeInput/TimeInput.doc.mjs
@@ -165,7 +165,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-time-input', visualProps: ['size', 'status']},
+ {className: 'astryx-time-input', visualProps: ['size', 'status']},
],
},
};
@@ -200,7 +200,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-time-input', visualProps: ['size', 'status']},
+ {className: 'astryx-time-input', visualProps: ['size', 'status']},
],
},
usage: {
diff --git a/packages/core/src/TimeInput/index.ts b/packages/core/src/TimeInput/index.ts
index 7296bbb336..b57ed78797 100644
--- a/packages/core/src/TimeInput/index.ts
+++ b/packages/core/src/TimeInput/index.ts
@@ -20,23 +20,3 @@ export type {
TimeInputStatusType,
} from './TimeInput';
export type {ISOTimeString} from '../utils';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- TimeInput as XDSTimeInput,
-} from '.';
-export type {
- ISOTimeString as XDSISOTimeString,
- TimeInputHourFormat as XDSTimeInputHourFormat,
- TimeInputProps as XDSTimeInputProps,
- TimeInputSize as XDSTimeInputSize,
- TimeInputStatus as XDSTimeInputStatus,
- TimeInputStatusType as XDSTimeInputStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Timestamp/Timestamp.doc.mjs b/packages/core/src/Timestamp/Timestamp.doc.mjs
index 1b19393f35..fa7f409394 100644
--- a/packages/core/src/Timestamp/Timestamp.doc.mjs
+++ b/packages/core/src/Timestamp/Timestamp.doc.mjs
@@ -75,7 +75,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-timestamp', visualProps: ['type', 'color']},
+ {className: 'astryx-timestamp', visualProps: ['type', 'color']},
],
},
usage: {
diff --git a/packages/core/src/Timestamp/index.ts b/packages/core/src/Timestamp/index.ts
index 874b3be23f..6f42acf540 100644
--- a/packages/core/src/Timestamp/index.ts
+++ b/packages/core/src/Timestamp/index.ts
@@ -13,19 +13,3 @@
export {Timestamp} from './Timestamp';
export type {TimestampProps, TimestampFormat} from './Timestamp';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Timestamp as XDSTimestamp,
-} from '.';
-export type {
- TimestampFormat as XDSTimestampFormat,
- TimestampProps as XDSTimestampProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Toast/Toast.doc.mjs b/packages/core/src/Toast/Toast.doc.mjs
index d813524bc1..627da0452b 100644
--- a/packages/core/src/Toast/Toast.doc.mjs
+++ b/packages/core/src/Toast/Toast.doc.mjs
@@ -62,7 +62,7 @@ export const docs = {
},
], theming: {
targets: [
- {className: 'xds-toast', visualProps: ['type']},
+ {className: 'astryx-toast', visualProps: ['type']},
],
},
diff --git a/packages/core/src/Toast/index.ts b/packages/core/src/Toast/index.ts
index 30f65d85c0..6fb0414eb8 100644
--- a/packages/core/src/Toast/index.ts
+++ b/packages/core/src/Toast/index.ts
@@ -21,28 +21,3 @@ export type {ToastViewportProps} from './ToastViewport';
// Exported for inline rendering in previews and documentation
export {Toast} from './Toast';
export type {ToastProps} from './Toast';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Toast as XDSToast,
- ToastViewport as XDSToastViewport,
- useToast as useXDSToast,
-} from '.';
-export type {
- ShowToastFn as XDSShowToastFn,
- ToastCollisionBehavior as XDSToastCollisionBehavior,
- ToastDismissFn as XDSToastDismissFn,
- ToastDismissReason as XDSToastDismissReason,
- ToastOptions as XDSToastOptions,
- ToastPosition as XDSToastPosition,
- ToastProps as XDSToastProps,
- ToastType as XDSToastType,
- ToastViewportProps as XDSToastViewportProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/ToggleButton/ToggleButton.doc.mjs b/packages/core/src/ToggleButton/ToggleButton.doc.mjs
index 08d7ba15da..71d8802d35 100644
--- a/packages/core/src/ToggleButton/ToggleButton.doc.mjs
+++ b/packages/core/src/ToggleButton/ToggleButton.doc.mjs
@@ -16,7 +16,7 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-toggle-button-group'},
+ {className: 'astryx-toggle-button-group'},
],
},
description: 'A button that toggles between pressed and unpressed states. Thin wrapper over Button with controlled toggle pattern, icon swap, and font weight emphasis.',
diff --git a/packages/core/src/ToggleButton/index.ts b/packages/core/src/ToggleButton/index.ts
index 233adfa9e9..6699a4511e 100644
--- a/packages/core/src/ToggleButton/index.ts
+++ b/packages/core/src/ToggleButton/index.ts
@@ -18,22 +18,3 @@ export type {
ToggleButtonGroupSingleProps,
ToggleButtonGroupMultipleProps,
} from './ToggleButtonGroup';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- ToggleButton as XDSToggleButton,
- ToggleButtonGroup as XDSToggleButtonGroup,
-} from '.';
-export type {
- ToggleButtonGroupMultipleProps as XDSToggleButtonGroupMultipleProps,
- ToggleButtonGroupProps as XDSToggleButtonGroupProps,
- ToggleButtonGroupSingleProps as XDSToggleButtonGroupSingleProps,
- ToggleButtonProps as XDSToggleButtonProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Token/Token.doc.mjs b/packages/core/src/Token/Token.doc.mjs
index 7a64a0a80d..8cf721e54d 100644
--- a/packages/core/src/Token/Token.doc.mjs
+++ b/packages/core/src/Token/Token.doc.mjs
@@ -88,7 +88,7 @@ export const docs = {
},
], theming: {
targets: [
- {className: 'xds-token', visualProps: ['color', 'size']},
+ {className: 'astryx-token', visualProps: ['color', 'size']},
],
},
usage: {
@@ -193,7 +193,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-token', visualProps: ['color', 'size']},
+ {className: 'astryx-token', visualProps: ['color', 'size']},
],
},
usage: {
diff --git a/packages/core/src/Token/index.ts b/packages/core/src/Token/index.ts
index 64cfb66a1d..f234d02a7a 100644
--- a/packages/core/src/Token/index.ts
+++ b/packages/core/src/Token/index.ts
@@ -13,20 +13,3 @@
export {Token} from './Token';
export type {TokenProps, TokenColor, TokenSize} from './Token';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Token as XDSToken,
-} from '.';
-export type {
- TokenColor as XDSTokenColor,
- TokenProps as XDSTokenProps,
- TokenSize as XDSTokenSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Tokenizer/Tokenizer.doc.mjs b/packages/core/src/Tokenizer/Tokenizer.doc.mjs
index f7fb6d5443..de62e14fe2 100644
--- a/packages/core/src/Tokenizer/Tokenizer.doc.mjs
+++ b/packages/core/src/Tokenizer/Tokenizer.doc.mjs
@@ -177,7 +177,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-tokenizer', visualProps: ['size']},
+ {className: 'astryx-tokenizer', visualProps: ['size']},
],
},
usage: {
@@ -366,7 +366,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-tokenizer', visualProps: ['size']},
+ {className: 'astryx-tokenizer', visualProps: ['size']},
],
},
usage: {
diff --git a/packages/core/src/Tokenizer/Tokenizer.test.tsx b/packages/core/src/Tokenizer/Tokenizer.test.tsx
index a03a51552a..bb8e6e99bf 100644
--- a/packages/core/src/Tokenizer/Tokenizer.test.tsx
+++ b/packages/core/src/Tokenizer/Tokenizer.test.tsx
@@ -89,7 +89,7 @@ describe('Tokenizer', () => {
/>,
);
expect(root).toBeInstanceOf(HTMLDivElement);
- expect(root).toHaveClass('xds-field');
+ expect(root).toHaveClass('astryx-field');
});
it('exposes focus control through handleRef', () => {
diff --git a/packages/core/src/Tokenizer/index.ts b/packages/core/src/Tokenizer/index.ts
index b101a0a627..f168f53c98 100644
--- a/packages/core/src/Tokenizer/index.ts
+++ b/packages/core/src/Tokenizer/index.ts
@@ -21,24 +21,3 @@ export type {
TokenizerStatus,
TokenizerStatusType,
} from './Tokenizer';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Tokenizer as XDSTokenizer,
-} from '.';
-export type {
- TokenizerChange as XDSTokenizerChange,
- TokenizerHandle as XDSTokenizerHandle,
- TokenizerOverflowBehavior as XDSTokenizerOverflowBehavior,
- TokenizerProps as XDSTokenizerProps,
- TokenizerSize as XDSTokenizerSize,
- TokenizerStatus as XDSTokenizerStatus,
- TokenizerStatusType as XDSTokenizerStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Toolbar/Toolbar.doc.mjs b/packages/core/src/Toolbar/Toolbar.doc.mjs
index 1c60fb3854..ac8d67cb19 100644
--- a/packages/core/src/Toolbar/Toolbar.doc.mjs
+++ b/packages/core/src/Toolbar/Toolbar.doc.mjs
@@ -9,7 +9,7 @@ export const docs = {
keywords: ['toolbar', 'nav', 'bar', 'actions', 'buttonbar', 'header', 'footer', 'action-bar', 'control-bar'],
theming: {
targets: [
- {className: 'xds-toolbar', states: ['density']},
+ {className: 'astryx-toolbar', states: ['density']},
],
},
components: [
diff --git a/packages/core/src/Toolbar/Toolbar.test.tsx b/packages/core/src/Toolbar/Toolbar.test.tsx
index 4c8d87532c..0a6a9e444e 100644
--- a/packages/core/src/Toolbar/Toolbar.test.tsx
+++ b/packages/core/src/Toolbar/Toolbar.test.tsx
@@ -159,14 +159,14 @@ describe('Toolbar', () => {
it('passes variant to Section', () => {
const {container} = render(<Toolbar label="Actions" variant="muted" />);
// Section renders with xds-section class containing the variant
- const sectionInner = container.querySelector('.xds-section');
+ const sectionInner = container.querySelector('.astryx-section');
expect(sectionInner).toBeInTheDocument();
expect(sectionInner?.className).toContain('muted');
});
it('defaults to transparent variant', () => {
const {container} = render(<Toolbar label="Actions" />);
- const sectionInner = container.querySelector('.xds-section');
+ const sectionInner = container.querySelector('.astryx-section');
expect(sectionInner).toBeInTheDocument();
expect(sectionInner?.className).toContain('transparent');
});
diff --git a/packages/core/src/Toolbar/index.ts b/packages/core/src/Toolbar/index.ts
index 8e8cdcb550..5c3c733381 100644
--- a/packages/core/src/Toolbar/index.ts
+++ b/packages/core/src/Toolbar/index.ts
@@ -13,19 +13,3 @@
export {Toolbar} from './Toolbar';
export type {ToolbarProps, ToolbarSize} from './Toolbar';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Toolbar as XDSToolbar,
-} from '.';
-export type {
- ToolbarProps as XDSToolbarProps,
- ToolbarSize as XDSToolbarSize,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Tooltip/Tooltip.doc.mjs b/packages/core/src/Tooltip/Tooltip.doc.mjs
index dcc50319e6..2035a68159 100644
--- a/packages/core/src/Tooltip/Tooltip.doc.mjs
+++ b/packages/core/src/Tooltip/Tooltip.doc.mjs
@@ -94,7 +94,7 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-tooltip'},
+ {className: 'astryx-tooltip'},
],
},
usage: {
@@ -193,7 +193,7 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-tooltip'},
+ {className: 'astryx-tooltip'},
],
},
usage: {
diff --git a/packages/core/src/Tooltip/index.ts b/packages/core/src/Tooltip/index.ts
index b62fc09b41..c4cc2ae5ba 100644
--- a/packages/core/src/Tooltip/index.ts
+++ b/packages/core/src/Tooltip/index.ts
@@ -22,22 +22,3 @@ export type {
// Tooltip component
export {Tooltip} from './Tooltip';
export type {TooltipProps} from './Tooltip';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- Tooltip as XDSTooltip,
- useTooltip as useXDSTooltip,
-} from '.';
-export type {
- TooltipFocusTrigger as XDSTooltipFocusTrigger,
- TooltipOptions as XDSTooltipOptions,
- TooltipProps as XDSTooltipProps,
- TooltipReturn as XDSTooltipReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TopNav/TopNav.doc.mjs b/packages/core/src/TopNav/TopNav.doc.mjs
index 66dc3077a2..4d1c5bcc22 100644
--- a/packages/core/src/TopNav/TopNav.doc.mjs
+++ b/packages/core/src/TopNav/TopNav.doc.mjs
@@ -16,13 +16,13 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-top-nav', states: ['mode']},
- {className: 'xds-top-nav-item', states: ['mode']},
- {className: 'xds-top-nav-heading'},
- {className: 'xds-top-nav-mega-menu', states: ['mode']},
- {className: 'xds-top-nav-mega-menu-item', states: ['mode']},
- {className: 'xds-top-nav-mega-menu-featured-card'},
- {className: 'xds-top-nav-menu'},
+ {className: 'astryx-top-nav', states: ['mode']},
+ {className: 'astryx-top-nav-item', states: ['mode']},
+ {className: 'astryx-top-nav-heading'},
+ {className: 'astryx-top-nav-mega-menu', states: ['mode']},
+ {className: 'astryx-top-nav-mega-menu-item', states: ['mode']},
+ {className: 'astryx-top-nav-mega-menu-featured-card'},
+ {className: 'astryx-top-nav-menu'},
],
},
description: 'Main navigation bar container with slot-based layout. Children are accepted as an alias for startContent.',
diff --git a/packages/core/src/TopNav/index.ts b/packages/core/src/TopNav/index.ts
index 4280651bd6..ed152fe102 100644
--- a/packages/core/src/TopNav/index.ts
+++ b/packages/core/src/TopNav/index.ts
@@ -37,34 +37,3 @@ export {
useTopNavRenderMode,
} from './TopNavRenderContext';
export type {TopNavRenderMode} from './TopNavRenderContext';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- TopNav as XDSTopNav,
- TopNavHeading as XDSTopNavHeading,
- TopNavItem as XDSTopNavItem,
- TopNavMegaMenu as XDSTopNavMegaMenu,
- TopNavMegaMenuFeaturedCard as XDSTopNavMegaMenuFeaturedCard,
- TopNavMegaMenuItem as XDSTopNavMegaMenuItem,
- TopNavMenu as XDSTopNavMenu,
- TopNavRenderContext as XDSTopNavRenderContext,
- useTopNavRenderMode as useXDSTopNavRenderMode,
-} from '.';
-export type {
- TopNavHeadingProps as XDSTopNavHeadingProps,
- TopNavItemProps as XDSTopNavItemProps,
- TopNavMegaMenuFeaturedCardProps as XDSTopNavMegaMenuFeaturedCardProps,
- TopNavMegaMenuItemProps as XDSTopNavMegaMenuItemProps,
- TopNavMegaMenuProps as XDSTopNavMegaMenuProps,
- TopNavMenuItemData as XDSTopNavMenuItemData,
- TopNavMenuProps as XDSTopNavMenuProps,
- TopNavProps as XDSTopNavProps,
- TopNavRenderMode as XDSTopNavRenderMode,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/TreeList/TreeList.doc.mjs b/packages/core/src/TreeList/TreeList.doc.mjs
index 0753ac6774..a22eae4858 100644
--- a/packages/core/src/TreeList/TreeList.doc.mjs
+++ b/packages/core/src/TreeList/TreeList.doc.mjs
@@ -24,8 +24,8 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-tree-list', visualProps: ['density']},
- {className: 'xds-tree-list-item', states: ['selected', 'disabled']},
+ {className: 'astryx-tree-list', visualProps: ['density']},
+ {className: 'astryx-tree-list-item', states: ['selected', 'disabled']},
],
},
components: [
@@ -88,8 +88,8 @@ export const docsZh = {
group: 'TreeList',
theming: {
targets: [
- {className: 'xds-tree-list', visualProps: ['density']},
- {className: 'xds-tree-list-item', states: ['selected', 'disabled']},
+ {className: 'astryx-tree-list', visualProps: ['density']},
+ {className: 'astryx-tree-list-item', states: ['selected', 'disabled']},
],
},
components: [
diff --git a/packages/core/src/TreeList/TreeList.test.tsx b/packages/core/src/TreeList/TreeList.test.tsx
index 50df28f2a9..6f41b25aeb 100644
--- a/packages/core/src/TreeList/TreeList.test.tsx
+++ b/packages/core/src/TreeList/TreeList.test.tsx
@@ -315,6 +315,6 @@ describe('TreeList', () => {
it('applies xds-tree-list class name', () => {
render(<TreeList items={simpleItems} data-testid="tree" />);
const root = screen.getByTestId('tree');
- expect(root.className).toContain('xds-tree-list');
+ expect(root.className).toContain('astryx-tree-list');
});
});
diff --git a/packages/core/src/TreeList/index.ts b/packages/core/src/TreeList/index.ts
index 5455069b9e..6db8ed0754 100644
--- a/packages/core/src/TreeList/index.ts
+++ b/packages/core/src/TreeList/index.ts
@@ -14,20 +14,3 @@
export {TreeList} from './TreeList';
export type {TreeListProps, TreeListDensity} from './TreeList';
export type {TreeListItemData} from './TreeListTypes';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- TreeList as XDSTreeList,
-} from '.';
-export type {
- TreeListDensity as XDSTreeListDensity,
- TreeListItemData as XDSTreeListItemData,
- TreeListProps as XDSTreeListProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/Typeahead/Typeahead.doc.mjs b/packages/core/src/Typeahead/Typeahead.doc.mjs
index 8b337812d1..d176e8d492 100644
--- a/packages/core/src/Typeahead/Typeahead.doc.mjs
+++ b/packages/core/src/Typeahead/Typeahead.doc.mjs
@@ -147,9 +147,9 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-typeahead', visualProps: ['status']},
- {className: 'xds-typeahead-dropdown'},
- {className: 'xds-typeahead-item'},
+ {className: 'astryx-typeahead', visualProps: ['status']},
+ {className: 'astryx-typeahead-dropdown'},
+ {className: 'astryx-typeahead-item'},
],
},
usage: {
diff --git a/packages/core/src/Typeahead/index.ts b/packages/core/src/Typeahead/index.ts
index 6bfa521628..95ad3eadc5 100644
--- a/packages/core/src/Typeahead/index.ts
+++ b/packages/core/src/Typeahead/index.ts
@@ -34,28 +34,3 @@ export type {
// Typeahead item
export {TypeaheadItem} from './TypeaheadItem';
export type {TypeaheadItemProps} from './TypeaheadItem';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- BaseTypeahead as XDSBaseTypeahead,
- Typeahead as XDSTypeahead,
- TypeaheadItem as XDSTypeaheadItem,
-} from '.';
-export type {
- BaseTypeaheadProps as XDSBaseTypeaheadProps,
- CreateStaticSourceOptions as XDSCreateStaticSourceOptions,
- SearchSource as XDSSearchSource,
- SearchableItem as XDSSearchableItem,
- TypeaheadItemProps as XDSTypeaheadItemProps,
- TypeaheadProps as XDSTypeaheadProps,
- TypeaheadSize as XDSTypeaheadSize,
- TypeaheadStatus as XDSTypeaheadStatus,
- TypeaheadStatusType as XDSTypeaheadStatusType,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/VStack/index.ts b/packages/core/src/VStack/index.ts
index 8959788284..34d2201ce2 100644
--- a/packages/core/src/VStack/index.ts
+++ b/packages/core/src/VStack/index.ts
@@ -8,18 +8,3 @@
*/
export {VStack, type VStackProps} from './VStack';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- VStack as XDSVStack,
-} from '.';
-export type {
- VStackProps as XDSVStackProps,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/compat-aliases.test.tsx b/packages/core/src/compat-aliases.test.tsx
deleted file mode 100644
index d56f965231..0000000000
--- a/packages/core/src/compat-aliases.test.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * @file compat-aliases.test.tsx
- * @description Verifies the XDS-prefix migration compatibility layer: the
- * legacy prefixed XDS* aliases resolve to the SAME runtime values and TS
- * types as the canonical bare exports, and the module-augmentation
- * interface alias is still augmentable. See P2380608025.
- *
- * Post-P4: bare names are canonical; XDS* are the generated compat aliases.
- */
-
-import {describe, it, expect, expectTypeOf} from 'vitest';
-import * as Core from './index';
-import {Button, XDSButton, Card, XDSCard, useTheme, useXDSTheme} from './index';
-import type {ButtonProps, XDSButtonProps, ButtonVariant, XDSButtonVariant} from './index';
-
-describe('compat aliases: runtime value identity', () => {
- it('prefixed component aliases are the SAME value as the bare exports', () => {
- expect(XDSButton).toBe(Button);
- expect(XDSCard).toBe(Card);
- });
-
- it('prefixed hook aliases are the SAME value as the bare hooks', () => {
- expect(useXDSTheme).toBe(useTheme);
- });
-
- it('a representative spread of bare canonical names are exported from the root barrel', () => {
- for (const name of [
- 'Button',
- 'Card',
- 'Text',
- 'Heading',
- 'Dialog',
- 'Table',
- 'Theme',
- 'useTheme',
- ]) {
- expect(Core, `@xds/core should export bare "${name}"`).toHaveProperty(
- name,
- );
- }
- });
-
- it('keeps the legacy prefixed exports working unchanged', () => {
- for (const name of ['XDSButton', 'XDSCard', 'XDSTheme', 'useXDSTheme']) {
- expect(Core, `@xds/core should still export "${name}"`).toHaveProperty(
- name,
- );
- }
- });
-});
-
-describe('compat aliases: type identity', () => {
- it('prefixed prop type alias equals the bare prop type', () => {
- expectTypeOf<XDSButtonProps>().toEqualTypeOf<ButtonProps>();
- });
-
- it('prefixed variant union alias equals the bare union', () => {
- expectTypeOf<XDSButtonVariant>().toEqualTypeOf<ButtonVariant>();
- });
-});
diff --git a/packages/core/src/docs-types.ts b/packages/core/src/docs-types.ts
index e1a23c882c..5460719b35 100644
--- a/packages/core/src/docs-types.ts
+++ b/packages/core/src/docs-types.ts
@@ -80,15 +80,15 @@ export interface PropDoc {
*
* @example
* ```
- * {className: 'xds-button', visualProps: ['variant', 'size']}
- * {className: 'xds-avatar-status-dot', visualProps: ['variant']}
- * {className: 'xds-card'}
+ * {className: 'astryx-button', visualProps: ['variant', 'size']}
+ * {className: 'astryx-avatar-status-dot', visualProps: ['variant']}
+ * {className: 'astryx-card'}
* ```
*/
export interface ThemingTarget {
/** The stable CSS class name rendered by the component.
- * Always starts with `xds-`.
- * e.g. `"xds-button"`, `"xds-avatar-status-dot"`, `"xds-card"` */
+ * Always starts with `astryx-`.
+ * e.g. `"astryx-button"`, `"astryx-avatar-status-dot"`, `"astryx-card"` */
className: string;
/** Visual prop names reflected on this element.
* These are the props passed to `xdsThemeProps()` as the second argument.
diff --git a/packages/core/src/hooks/index.ts b/packages/core/src/hooks/index.ts
index 5b18bbc127..d061becfdf 100644
--- a/packages/core/src/hooks/index.ts
+++ b/packages/core/src/hooks/index.ts
@@ -55,48 +55,3 @@ export type {
InteractiveRole,
UseInteractiveRoleOptions,
} from './useInteractiveRole';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- useClickableContainer as useXDSClickableContainer,
- useEntryAnimation as useXDSEntryAnimation,
- useFocusTrap as useXDSFocusTrap,
- useGridFocus as useXDSGridFocus,
- useImageMode as useXDSImageMode,
- useInputContainer as useXDSInputContainer,
- useInteractiveRole as useXDSInteractiveRole,
- useListFocus as useXDSListFocus,
- useMediaQuery as useXDSMediaQuery,
- useOverflow as useXDSOverflow,
- useScrollLock as useXDSScrollLock,
- useScrollOverflow as useXDSScrollOverflow,
- useStreamingText as useXDSStreamingText,
-} from '.';
-export type {
- ClickableContainerResult as XDSClickableContainerResult,
- EntryAnimationPreset as XDSEntryAnimationPreset,
- ImageSampleRegion as XDSImageSampleRegion,
- InteractiveRole as XDSInteractiveRole,
- ScrollOverflowState as XDSScrollOverflowState,
- StreamingTextSpeed as XDSStreamingTextSpeed,
- UseClickableContainerOptions as XDSUseClickableContainerOptions,
- UseFocusTrapOptions as XDSUseFocusTrapOptions,
- UseFocusTrapReturn as XDSUseFocusTrapReturn,
- UseGridFocusOptions as XDSUseGridFocusOptions,
- UseGridFocusReturn as XDSUseGridFocusReturn,
- UseImageModeOptions as XDSUseImageModeOptions,
- UseInputContainerOptions as XDSUseInputContainerOptions,
- UseInteractiveRoleOptions as XDSUseInteractiveRoleOptions,
- UseListFocusOptions as XDSUseListFocusOptions,
- UseListFocusReturn as XDSUseListFocusReturn,
- UseOverflowOptions as XDSUseOverflowOptions,
- UseOverflowReturn as XDSUseOverflowReturn,
- UseStreamingTextOptions as XDSUseStreamingTextOptions,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/naming.test.ts b/packages/core/src/naming.test.ts
index 03058f6849..74728f040c 100644
--- a/packages/core/src/naming.test.ts
+++ b/packages/core/src/naming.test.ts
@@ -2,68 +2,43 @@
import {describe, it, expect} from 'vitest';
import {
- LEGACY_NAMESPACE,
NAMESPACE,
classPrefix,
- legacyClassPrefix,
dataAttrNamespace,
- legacyDataAttrNamespace,
cssVarNamespace,
- legacyCssVarNamespace,
stableClassName,
- legacyStableClassName,
dataAttr,
- legacyDataAttr,
cssVar,
- legacyCssVar,
} from './naming';
describe('naming constants', () => {
- it('exposes the legacy and new namespace prefixes', () => {
- expect(LEGACY_NAMESPACE).toBe('xds');
+ it('exposes the namespace prefix', () => {
expect(NAMESPACE).toBe('astryx');
});
- it('derives per-surface prefixes from the namespaces', () => {
+ it('derives per-surface prefixes from the namespace', () => {
expect(classPrefix).toBe('astryx');
- expect(legacyClassPrefix).toBe('xds');
expect(dataAttrNamespace).toBe('astryx');
- expect(legacyDataAttrNamespace).toBe('xds');
expect(cssVarNamespace).toBe('astryx');
- expect(legacyCssVarNamespace).toBe('xds');
});
});
describe('stableClassName', () => {
- it('builds new-namespace class tokens', () => {
+ it('builds namespace class tokens', () => {
expect(stableClassName('button')).toBe('astryx-button');
expect(stableClassName('card')).toBe('astryx-card');
});
-
- it('builds legacy class tokens preserving the current contract', () => {
- expect(legacyStableClassName('button')).toBe('xds-button');
- expect(legacyStableClassName('card')).toBe('xds-card');
- });
});
describe('dataAttr', () => {
- it('builds new-namespace data attribute names', () => {
+ it('builds namespace data attribute names', () => {
expect(dataAttr('theme')).toBe('data-astryx-theme');
expect(dataAttr('media')).toBe('data-astryx-media');
});
-
- it('builds legacy data attribute names', () => {
- expect(legacyDataAttr('theme')).toBe('data-xds-theme');
- expect(legacyDataAttr('media')).toBe('data-xds-media');
- });
});
describe('cssVar', () => {
- it('builds new-namespace custom property names', () => {
+ it('builds namespace custom property names', () => {
expect(cssVar('card-padding')).toBe('--astryx-card-padding');
});
-
- it('builds legacy custom property names', () => {
- expect(legacyCssVar('card-padding')).toBe('--xds-card-padding');
- });
});
diff --git a/packages/core/src/naming.ts b/packages/core/src/naming.ts
index d16ae0143a..67d035fced 100644
--- a/packages/core/src/naming.ts
+++ b/packages/core/src/naming.ts
@@ -4,7 +4,7 @@
* @file naming.ts
* @input None (pure constants/helpers)
* @output Centralized namespace-prefix constants and helpers for all
- * externally-observable XDS name surfaces: CSS classes, data attributes,
+ * externally-observable name surfaces: CSS classes, data attributes,
* CSS custom properties, and CSS layer names.
* @position Single source of truth consumed by the runtime (components,
* theme generation) AND by build/CLI tooling (build-theme.mjs, discovery)
@@ -12,27 +12,20 @@
*
* ## Why this module exists
*
- * The literal string `xds` is part of several externally-observable contracts
- * (`.xds-button` classes, `data-xds-theme` attributes, `--xds-card-padding`
- * custom properties, `@layer xds-base`). Historically each of these was
+ * The namespace prefix `astryx` is part of several externally-observable
+ * contracts (`.astryx-button` classes, `data-astryx-theme` attributes,
+ * `--astryx-card-padding` custom properties). Historically each of these was
* hardcoded independently across the runtime, the theme build pipeline, and
* discovery tooling, kept in sync only by `<!-- SYNC: ... -->` comments.
+ * Centralizing the prefix here means it lives in ONE place instead of
+ * hundreds of literals.
*
- * The XDS-prefix migration (see P2380608025) removes the `XDS` prefix from
- * React identifiers and rebrands the DOM/CSS namespace `xds` -> `astryx`.
- * Centralizing the prefix here means the dual-emit compatibility layer and the
- * eventual cutover flip in ONE place instead of hundreds of literals.
+ * ## Surfaces
*
- * ## Surfaces and their migration policy (locked in P0)
- *
- * - CSS classes (`xds-button` -> `astryx-button`): REBRAND. Dual-emit during
- * compat via {@link classPrefix} / {@link stableClassName}.
- * - data attributes (`data-xds-*` -> `data-astryx-*`): REBRAND. Only 3 of 15
- * are consumer-observable and dual-emitted; the rest rename outright.
- * - CSS custom properties (`--xds-card-padding` -> `--astryx-card-padding`):
- * REBRAND with an inverted read fallback so legacy overrides win during compat.
- * - CSS layers (`xds-base` / `xds-theme`): UNCHANGED through the compat window
- * (a CSS layer cannot be aliased); renamed only at final cutover.
+ * - CSS classes: `.astryx-button` via {@link classPrefix} / {@link stableClassName}.
+ * - data attributes: `data-astryx-*` via {@link dataAttrNamespace} / {@link dataAttr}.
+ * - CSS custom properties: `--astryx-*` via {@link cssVarNamespace} / {@link cssVar}.
+ * - CSS layers: `astryx-base` / `astryx-theme`.
*
* SYNC: packages/core/src/utils/xdsThemeProps.ts (consumes classPrefix)
* SYNC: packages/core/src/utils/parseStyleKey.ts
@@ -40,22 +33,8 @@
*/
/**
- * The current (legacy) DOM/CSS namespace prefix.
- *
- * This is the prefix that ships TODAY and that all existing consumer code
- * targets (`.xds-button`, `data-xds-theme`, `--xds-card-padding`). It remains
- * the emitted prefix until the new prefix is introduced behind the compat
- * layer, and remains a *compat* prefix (dual-emitted / fallback-read) until the
- * final cutover removes it.
- */
-export const LEGACY_NAMESPACE = 'xds';
-
-/**
- * The new DOM/CSS namespace prefix introduced by the un-prefix migration.
- *
- * During the compatibility window the library emits BOTH {@link NAMESPACE} and
- * {@link LEGACY_NAMESPACE} forms for consumer-observable surfaces (classes,
- * theme/media data attributes). At final cutover the legacy form is removed.
+ * The DOM/CSS namespace prefix for all externally-observable surfaces
+ * (classes, theme/media data attributes, CSS custom properties).
*/
export const NAMESPACE = 'astryx';
@@ -67,27 +46,18 @@ export const NAMESPACE = 'astryx';
*/
export const classPrefix = NAMESPACE;
-/** Legacy class-name prefix (compat). */
-export const legacyClassPrefix = LEGACY_NAMESPACE;
-
/**
* data-attribute namespace segment (the part between `data-` and the rest).
* e.g. `dataAttrNamespace` = 'astryx' -> `data-astryx-theme`.
*/
export const dataAttrNamespace = NAMESPACE;
-/** Legacy data-attribute namespace segment (compat). */
-export const legacyDataAttrNamespace = LEGACY_NAMESPACE;
-
/**
* CSS custom-property namespace segment.
* e.g. `--astryx-card-padding`.
*/
export const cssVarNamespace = NAMESPACE;
-/** Legacy CSS custom-property namespace segment (compat). */
-export const legacyCssVarNamespace = LEGACY_NAMESPACE;
-
/**
* Build a stable component class token, e.g. `stableClassName('button')`
* -> `'astryx-button'`.
@@ -96,14 +66,6 @@ export function stableClassName(component: string): string {
return `${classPrefix}-${component}`;
}
-/**
- * Build the legacy stable component class token (compat), e.g.
- * `legacyStableClassName('button')` -> `'xds-button'`.
- */
-export function legacyStableClassName(component: string): string {
- return `${legacyClassPrefix}-${component}`;
-}
-
/**
* Build a `data-*` attribute name in the current namespace, e.g.
* `dataAttr('theme')` -> `'data-astryx-theme'`.
@@ -112,14 +74,6 @@ export function dataAttr(name: string): `data-${string}` {
return `data-${dataAttrNamespace}-${name}`;
}
-/**
- * Build a legacy `data-*` attribute name (compat), e.g.
- * `legacyDataAttr('theme')` -> `'data-xds-theme'`.
- */
-export function legacyDataAttr(name: string): `data-${string}` {
- return `data-${legacyDataAttrNamespace}-${name}`;
-}
-
/**
* Build a CSS custom-property name in the current namespace, e.g.
* `cssVar('card-padding')` -> `'--astryx-card-padding'`.
@@ -128,10 +82,3 @@ export function cssVar(name: string): string {
return `--${cssVarNamespace}-${name}`;
}
-/**
- * Build a legacy CSS custom-property name (compat), e.g.
- * `legacyCssVar('card-padding')` -> `'--xds-card-padding'`.
- */
-export function legacyCssVar(name: string): string {
- return `--${legacyCssVarNamespace}-${name}`;
-}
diff --git a/packages/core/src/reset.css b/packages/core/src/reset.css
index 95c78bb6be..80a9956184 100644
--- a/packages/core/src/reset.css
+++ b/packages/core/src/reset.css
@@ -22,10 +22,10 @@
*
* 2. Combine with base styles and theme:
* import '@xds/core/reset.css'; // @layer reset — clean slate
- * import '@xds/core/xds.css'; // @layer xds-base — component styles
- * import '@xds/theme-default/theme.css'; // @layer xds-theme — theme overrides
+ * import '@xds/core/astryx.css'; // @layer astryx-base — component styles
+ * import '@xds/theme-default/theme.css'; // @layer astryx-theme — theme overrides
*
- * Layer order: reset → xds-base → xds-theme
+ * Layer order: reset → astryx-base → astryx-theme
* Consumer styles (unlayered) always override all XDS layers.
* The reset has the lowest priority and can be overridden by any other layer.
*
@@ -398,11 +398,11 @@
* Token overrides (text/icon/accent) are theme-level (generateOnMediaCSS).
* Dual-prefix (astryx + legacy xds) during the compat window.
*/
- :where([data-astryx-media="dark"], [data-xds-media="dark"]) {
+ :where([data-astryx-media="dark"]) {
color-scheme: dark;
}
- :where([data-astryx-media="light"], [data-xds-media="light"]) {
+ :where([data-astryx-media="light"]) {
color-scheme: light;
}
}
diff --git a/packages/core/src/tailwind-theme.css b/packages/core/src/tailwind-theme.css
index 5a6df0ae81..2c9a29ab98 100644
--- a/packages/core/src/tailwind-theme.css
+++ b/packages/core/src/tailwind-theme.css
@@ -14,12 +14,12 @@
* - core CSS and a theme CSS file loaded before Tailwind utilities
*
* Usage:
- * @layer reset, theme, base, xds-base, xds-theme, components, utilities;
+ * @layer reset, theme, base, astryx-base, astryx-theme, components, utilities;
*
* @import "tailwindcss/theme.css" layer(theme);
* @import "tailwindcss/preflight.css" layer(base);
* @import "@xds/core/reset.css";
- * @import "@xds/core/xds.css";
+ * @import "@xds/core/astryx.css";
* @import "@xds/theme-default/theme.css";
* @import "@xds/core/tailwind-theme.css";
* @import "tailwindcss/utilities.css" layer(utilities);
@@ -30,7 +30,7 @@
/*
* `@theme inline` registers theme variables that Tailwind uses to generate
* utility classes, WITHOUT emitting CSS declarations. The actual values come
- * from the system CSS custom properties (set by xds.css / theme packages).
+ * from the system CSS custom properties (set by astryx.css / theme packages).
*
* This means theme switching just works — when system tokens change (e.g. dark
* mode, custom theme), Tailwind utilities automatically resolve to the new
diff --git a/packages/core/src/theme/MediaTheme.tsx b/packages/core/src/theme/MediaTheme.tsx
index 0b0e4e2b34..de37c9de95 100644
--- a/packages/core/src/theme/MediaTheme.tsx
+++ b/packages/core/src/theme/MediaTheme.tsx
@@ -13,7 +13,7 @@
* Tooltip, and other components that render on inverted surfaces.
*
* How it works:
- * 1. Sets `data-xds-media="dark|light"` — the theme's generated CSS
+ * 1. Sets `data-astryx-media="dark|light"` — the theme's generated CSS
* targets this to apply token overrides (including color-scheme).
* 2. Parent theme's component overrides pass through — structural
* styling (border-radius, font-weight, etc.) is preserved.
@@ -36,7 +36,7 @@
import * as React from 'react';
import * as stylex from '@stylexjs/stylex';
import {colorVars} from './tokens.stylex';
-import {dataAttr, legacyDataAttr} from '../naming';
+import {dataAttr} from '../naming';
const styles = stylex.create({
root: {
@@ -59,7 +59,7 @@ export interface MediaThemeProps {
/**
* Inverted surface theming context.
*
- * Wraps children with `data-xds-media` — the theme's CSS targets this
+ * Wraps children with `data-astryx-media` — the theme's CSS targets this
* attribute to apply inverted tokens. Parent component overrides flow
* through unchanged; only tokens change for the surface context.
*/
@@ -67,12 +67,9 @@ export function MediaTheme({
mode,
children,
}: MediaThemeProps): React.ReactElement {
- // Dual-emit new (astryx) + legacy (xds) media attrs during the compat
- // window (XDS-prefix migration P2380608025); generated theme CSS and
- // reset.css match either form.
return (
<div
- {...{[legacyDataAttr('media')]: mode, [dataAttr('media')]: mode}}
+ {...{[dataAttr('media')]: mode}}
{...stylex.props(styles.root)}
>
{children}
diff --git a/packages/core/src/theme/Theme.test.tsx b/packages/core/src/theme/Theme.test.tsx
index 871fe9364a..a96e50634f 100644
--- a/packages/core/src/theme/Theme.test.tsx
+++ b/packages/core/src/theme/Theme.test.tsx
@@ -24,13 +24,13 @@ describe('Theme', () => {
beforeEach(() => {
// Clean up documentElement state before each test
document.documentElement.removeAttribute('data-theme');
- document.documentElement.removeAttribute('data-xds-theme');
+ document.documentElement.removeAttribute('data-astryx-theme');
});
afterEach(() => {
cleanup();
document.documentElement.removeAttribute('data-theme');
- document.documentElement.removeAttribute('data-xds-theme');
+ document.documentElement.removeAttribute('data-astryx-theme');
});
it('renders children', () => {
@@ -42,13 +42,13 @@ describe('Theme', () => {
expect(getByText('hello')).toBeTruthy();
});
- it('sets data-xds-theme on wrapper div', () => {
+ it('sets data-astryx-theme on wrapper div', () => {
const {container} = render(
<Theme theme={testTheme}>
<span>child</span>
</Theme>,
);
- const wrapper = container.querySelector('[data-xds-theme="test"]');
+ const wrapper = container.querySelector('[data-astryx-theme="test"]');
expect(wrapper).toBeTruthy();
});
@@ -96,38 +96,38 @@ describe('Theme', () => {
});
// =========================================================================
- // Root detection — data-xds-theme on <html>
+ // Root detection — data-astryx-theme on <html>
// =========================================================================
- it('syncs data-xds-theme to <html> for root provider', () => {
+ it('syncs data-astryx-theme to <html> for root provider', () => {
render(
<Theme theme={testTheme} mode="light">
<span>child</span>
</Theme>,
);
- expect(document.documentElement.getAttribute('data-xds-theme')).toBe(
+ expect(document.documentElement.getAttribute('data-astryx-theme')).toBe(
'test',
);
});
- it('removes data-xds-theme from <html> when root provider unmounts', () => {
+ it('removes data-astryx-theme from <html> when root provider unmounts', () => {
const {unmount} = render(
<Theme theme={testTheme} mode="light">
<span>child</span>
</Theme>,
);
- expect(document.documentElement.getAttribute('data-xds-theme')).toBe(
+ expect(document.documentElement.getAttribute('data-astryx-theme')).toBe(
'test',
);
unmount();
- expect(document.documentElement.hasAttribute('data-xds-theme')).toBe(false);
+ expect(document.documentElement.hasAttribute('data-astryx-theme')).toBe(false);
});
// =========================================================================
// Nested themes — should NOT sync to <html>
// =========================================================================
- it('does not let nested Theme override <html> data-xds-theme', () => {
+ it('does not let nested Theme override <html> data-astryx-theme', () => {
render(
<Theme theme={testTheme} mode="dark">
<Theme theme={altTheme} mode="light">
@@ -136,7 +136,7 @@ describe('Theme', () => {
</Theme>,
);
// Root is "test" — nested "alt" should NOT override
- expect(document.documentElement.getAttribute('data-xds-theme')).toBe(
+ expect(document.documentElement.getAttribute('data-astryx-theme')).toBe(
'test',
);
});
@@ -162,7 +162,7 @@ describe('Theme', () => {
</Theme>,
);
// The nested wrapper should have data-theme="light" on its own div
- const nestedWrapper = container.querySelector('[data-xds-theme="alt"]');
+ const nestedWrapper = container.querySelector('[data-astryx-theme="alt"]');
expect(nestedWrapper).toBeTruthy();
expect(nestedWrapper?.getAttribute('data-theme')).toBe('light');
});
diff --git a/packages/core/src/theme/Theme.tsx b/packages/core/src/theme/Theme.tsx
index 981caf891b..6d15c727dd 100644
--- a/packages/core/src/theme/Theme.tsx
+++ b/packages/core/src/theme/Theme.tsx
@@ -7,7 +7,7 @@
*
* Applies theme tokens and sets color-scheme for light-dark() to work.
* Themes are created with `defineTheme()` and applied via CSS:
- * - Token overrides set as CSS custom properties on [data-xds-theme]
+ * - Token overrides set as CSS custom properties on [data-astryx-theme]
* - Component overrides scoped via @scope'd CSS selectors on the stable XDS
* selector surface (`.xds-*` classes today; components also emit `data-*`
* prop reflections for the data-attribute selector migration)
@@ -16,7 +16,7 @@
* automatically syncs attributes to `document.documentElement`:
* - `data-theme` — drives `color-scheme` via reset.css rules, ensuring browser
* chrome (scrollbars, native form controls, date pickers) reflects the mode.
- * - `data-xds-theme` — enables @scope'd theme CSS to reach elements rendered
+ * - `data-astryx-theme` — enables @scope'd theme CSS to reach elements rendered
* outside the Theme wrapper (portals, toast fallback viewports).
*
* For RSC / SSR, set `data-theme` on `<html>` in your root server layout
@@ -43,7 +43,7 @@ import type {ThemeMode} from './types';
import {colorVars, typographyVars} from './tokens.stylex';
import {registerIcons} from '../Icon/globalIconRegistry';
import {generateThemeCSS, type DefinedTheme} from './defineTheme';
-import {dataAttr, legacyDataAttr} from '../naming';
+import {dataAttr} from '../naming';
import {ThemeContext} from './useTheme';
/**
@@ -141,21 +141,19 @@ function useThemeStyleInjection(theme: DefinedTheme): void {
// the theme region. Any class-based style (StyleX, .xds-*) wins.
if (prose) {
const proseStyle = document.createElement('style');
- proseStyle.setAttribute(legacyDataAttr('theme-prose'), theme.name);
proseStyle.setAttribute(dataAttr('theme-prose'), theme.name);
proseStyle.setAttribute(dataAttr('id'), id);
proseStyle.textContent = `@layer reset {\n${prose}\n}`;
document.head.appendChild(proseStyle);
}
- // Component overrides go into @layer xds-theme — above StyleX layers
+ // Component overrides go into @layer astryx-theme — above StyleX layers
// so themes can intentionally restyle components.
if (component) {
const compStyle = document.createElement('style');
- compStyle.setAttribute(legacyDataAttr('theme'), theme.name);
compStyle.setAttribute(dataAttr('theme'), theme.name);
compStyle.setAttribute(dataAttr('id'), id);
- compStyle.textContent = `@layer xds-theme {\n${component}\n}`;
+ compStyle.textContent = `@layer astryx-theme {\n${component}\n}`;
document.head.appendChild(compStyle);
}
@@ -188,7 +186,7 @@ function useThemeStyleInjection(theme: DefinedTheme): void {
* Syncs two attributes:
* - `data-theme` (light/dark) — reset.css maps this to color-scheme, controlling
* browser chrome (scrollbars, native form controls, date pickers).
- * - `data-xds-theme` (theme name) — enables @scope'd theme CSS to reach elements
+ * - `data-astryx-theme` (theme name) — enables @scope'd theme CSS to reach elements
* outside the Theme wrapper (e.g. toast fallback viewports, portals).
*
* - 'light' | 'dark' → sets data-theme="light" | "dark"
@@ -215,15 +213,11 @@ function useRootThemeSync(
}
// Sync theme name so @scope rules reach portals/fallback viewports.
- // Dual-emit new (astryx) + legacy (xds) attrs during the compat window
- // (XDS-prefix migration P2380608025); generated theme CSS matches either.
document.documentElement.setAttribute(dataAttr('theme'), themeName);
- document.documentElement.setAttribute(legacyDataAttr('theme'), themeName);
return () => {
document.documentElement.removeAttribute('data-theme');
document.documentElement.removeAttribute(dataAttr('theme'));
- document.documentElement.removeAttribute(legacyDataAttr('theme'));
};
}, [isNested, mode, themeName]);
}
@@ -235,13 +229,13 @@ function useRootThemeSync(
/**
* Theme provider component
*
- * Sets data-xds-theme attribute so @scope'd CSS takes effect.
+ * Sets data-astryx-theme attribute so @scope'd CSS takes effect.
* Component overrides are pure CSS scoped under the theme attribute —
* components render with stable `.xds-*` classes plus `data-*` prop
* reflections and don't need context.
*
* When this is the root Theme (no parent Theme in the tree),
- * it syncs `data-theme` and `data-xds-theme` to `<html>` so browser
+ * it syncs `data-theme` and `data-astryx-theme` to `<html>` so browser
* chrome reflects the active mode and @scope'd CSS reaches portals.
* Nested Theme instances skip the sync.
*/
@@ -277,7 +271,7 @@ export function Theme({
<ThemeNestingContext value={true}>
<div
{...stylex.props(wrapperStyles.base, colorSchemeStyle)}
- data-xds-theme={theme.name}
+ data-astryx-theme={theme.name}
data-theme={mode === 'system' ? undefined : mode}>
{children}
</div>
diff --git a/packages/core/src/theme/defineTheme.test.ts b/packages/core/src/theme/defineTheme.test.ts
index 93218fdcc6..8004818af6 100644
--- a/packages/core/src/theme/defineTheme.test.ts
+++ b/packages/core/src/theme/defineTheme.test.ts
@@ -116,7 +116,7 @@ describe('generateThemeCSS', () => {
expect(css).toContain('font-family: var(--font-family-heading)');
});
- it('splits prose into reset layer and components into xds-theme', () => {
+ it('splits prose into reset layer and components into astryx-theme', () => {
const theme = defineTheme({
name: 'split-test',
components: {
@@ -129,9 +129,9 @@ describe('generateThemeCSS', () => {
expect(prose).toContain(':where(h1, h2, h3, h4, h5, h6)');
expect(prose).toContain('@scope');
// Prose should NOT contain component overrides
- expect(prose).not.toContain('.xds-button');
+ expect(prose).not.toContain('.astryx-button');
// Component block should contain overrides
- expect(component).toContain('.xds-button');
+ expect(component).toContain('.astryx-button');
expect(component).toContain('@scope');
// Component should NOT contain prose element rules
expect(component).not.toContain(':where(p)');
@@ -193,10 +193,10 @@ describe('generateThemeCSS with components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-card {');
+ expect(css).toContain('.astryx-card {');
expect(css).toContain('border-width: 2px');
expect(css).toContain('border-color: var(--color-accent)');
- expect(css).toContain('.xds-button {');
+ expect(css).toContain('.astryx-button {');
expect(css).toContain('border-radius: 999px');
});
@@ -212,7 +212,7 @@ describe('generateThemeCSS with components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-button.secondary');
+ expect(css).toContain('.astryx-button.secondary');
expect(css).toContain('background-color: rgba(0,0,0,0.06)');
});
@@ -228,7 +228,7 @@ describe('generateThemeCSS with components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-button.destructive.sm');
+ expect(css).toContain('.astryx-button.destructive.sm');
expect(css).toContain('padding: 2px 6px');
});
@@ -257,7 +257,7 @@ describe('generateThemeCSS with components', () => {
const css = generateThemeCSSFlat(theme);
expect(css).toContain('@scope');
expect(css).toContain('--radius-container: 20px');
- expect(css).toContain('.xds-card {');
+ expect(css).toContain('.astryx-card {');
expect(css).toContain('border-width: 1px');
});
});
@@ -489,8 +489,8 @@ describe('custom status via components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- // parseStyleKey('status:neutral') → '.neutral', so CSS should have .xds-banner.neutral
- expect(css).toContain('.xds-banner.neutral');
+ // parseStyleKey('status:neutral') → '.neutral', so CSS should have .astryx-banner.neutral
+ expect(css).toContain('.astryx-banner.neutral');
expect(css).toContain('background-color: var(--color-background-muted)');
});
@@ -522,7 +522,7 @@ describe('custom status via components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-button.primary-muted');
+ expect(css).toContain('.astryx-button.primary-muted');
expect(css).toContain('background-color: #ECF5FF');
});
@@ -735,10 +735,10 @@ describe('pseudo-class overrides in components', () => {
});
const css = generateThemeCSSFlat(theme);
// Base rule
- expect(css).toContain('.xds-radio {');
+ expect(css).toContain('.astryx-radio {');
expect(css).toContain('border-color: #8F9296');
// Pseudo rule — separate selector
- expect(css).toContain('.xds-radio:hover {');
+ expect(css).toContain('.astryx-radio:hover {');
expect(css).toContain(
'border-color: color-mix(in srgb, #8F9296, black 20%)',
);
@@ -762,11 +762,11 @@ describe('pseudo-class overrides in components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-button.primary-muted {');
+ expect(css).toContain('.astryx-button.primary-muted {');
expect(css).toContain('background-color: #ECF5FF');
- expect(css).toContain('.xds-button.primary-muted:hover {');
+ expect(css).toContain('.astryx-button.primary-muted:hover {');
expect(css).toContain('background-color: #D6EBFF');
- expect(css).toContain('.xds-button.primary-muted:focus-visible {');
+ expect(css).toContain('.astryx-button.primary-muted:focus-visible {');
expect(css).toContain('outline: 2px solid var(--color-accent)');
});
@@ -785,9 +785,9 @@ describe('pseudo-class overrides in components', () => {
});
const css = generateThemeCSSFlat(theme);
// Should NOT emit an empty base rule
- expect(css).not.toMatch(/\.xds-switch\s*\{\s*\}/);
+ expect(css).not.toMatch(/\.astryx-switch\s*\{\s*\}/);
// Should emit the pseudo rule
- expect(css).toContain('.xds-switch:hover {');
+ expect(css).toContain('.astryx-switch:hover {');
});
it('keeps non-pseudo string values as regular properties', () => {
@@ -803,11 +803,11 @@ describe('pseudo-class overrides in components', () => {
},
});
const css = generateThemeCSSFlat(theme);
- expect(css).toContain('.xds-card {');
+ expect(css).toContain('.astryx-card {');
expect(css).toContain('border-width: 2px');
expect(css).toContain('border-color: var(--color-accent)');
// No pseudo rules
- expect(css).not.toContain('.xds-card:');
+ expect(css).not.toContain('.astryx-card:');
});
});
@@ -895,7 +895,7 @@ describe('container padding mapping', () => {
const css = generateThemeCSSFlat(theme);
// Button is not a container — padding passes through as-is
expect(css).toContain('padding: 8px 16px');
- expect(css).not.toContain('--xds-button-padding');
+ expect(css).not.toContain('--astryx-button-padding');
});
it('preserves non-padding properties alongside padding mapping', () => {
diff --git a/packages/core/src/theme/defineTheme.ts b/packages/core/src/theme/defineTheme.ts
index f6aa502ed1..803a091513 100644
--- a/packages/core/src/theme/defineTheme.ts
+++ b/packages/core/src/theme/defineTheme.ts
@@ -6,7 +6,7 @@
* Two distribution modes:
* - Unbuilt: Theme generates CSS and injects a <style> tag at runtime
* - Built: `npx xds theme build` pre-compiles to a CSS file; Theme just
- * sets the data-xds-theme attribute
+ * sets the data-astryx-theme attribute
*
* Token values can be:
* - A string: used as-is for both light and dark modes
@@ -160,7 +160,7 @@ export type ComponentStyleMap = Record<
/** Input to defineTheme */
export interface DefineThemeInput {
- /** Theme name — used for data-xds-theme attribute and identification */
+ /** Theme name — used for data-astryx-theme attribute and identification */
name: string;
/**
@@ -261,7 +261,7 @@ export interface DefineThemeInput {
/**
* Component style overrides — keyed by component name (lowercase).
* Each entry maps style keys to CSS property overrides, scoped under
- * the theme's data-xds-theme attribute via @scope.
+ * the theme's data-astryx-theme attribute via @scope.
*
* Use `prop:value` keys to target specific visual props. New values
* not in the base type are automatically detected by `xds theme build`
diff --git a/packages/core/src/theme/generateThemeRules.test.ts b/packages/core/src/theme/generateThemeRules.test.ts
index 842f693061..6201bba50a 100644
--- a/packages/core/src/theme/generateThemeRules.test.ts
+++ b/packages/core/src/theme/generateThemeRules.test.ts
@@ -99,9 +99,9 @@ describe('generateThemeRules', () => {
// --- Component overrides ---
- it('includes .xds-heading.level-* rules for all 6 levels', () => {
+ it('includes .astryx-heading.level-* rules for all 6 levels', () => {
for (let level = 1; level <= 6; level++) {
- const rule = rules.find(r => r.includes(`.xds-heading.level-${level}`));
+ const rule = rules.find(r => r.includes(`.astryx-heading.level-${level}`));
expect(rule).toBeDefined();
expect(rule).toContain('font-family');
expect(rule).toContain(`var(--text-heading-${level}-size)`);
@@ -110,16 +110,16 @@ describe('generateThemeRules', () => {
}
});
- it('includes .xds-text.* rules for all 5 types', () => {
+ it('includes .astryx-text.* rules for all 5 types', () => {
for (const type of ['body', 'large', 'label', 'code', 'supporting']) {
- const rule = rules.find(r => r.includes(`.xds-text.${type}`));
+ const rule = rules.find(r => r.includes(`.astryx-text.${type}`));
expect(rule).toBeDefined();
expect(rule).toContain(`var(--text-${type}-size)`);
}
});
it('includes explicit component overrides', () => {
- const buttonRule = rules.find(r => r.includes('.xds-button.secondary'));
+ const buttonRule = rules.find(r => r.includes('.astryx-button.secondary'));
expect(buttonRule).toBeDefined();
expect(buttonRule).toContain('light-dark(rgba(5, 54, 89, 0.1)');
});
@@ -138,7 +138,7 @@ describe('generateThemeRules', () => {
const pseudoRules = generateThemeRules(pseudoTheme);
expect(
pseudoRules.some(rule =>
- rule.includes('.astryx-button:hover, .xds-button:hover'),
+ rule.includes('.astryx-button:hover'),
),
).toBe(true);
});
@@ -155,7 +155,7 @@ describe('generateThemeRules', () => {
expect(h1Rule).toContain('var(--font-weight-semibold)');
// Prose defaults intentionally carry NO block margins: reset.css zeroes
// raw element margins and the Markdown/Heading components own their spacing
- // via StyleX (@layer xds-base). Emitting margins here would re-introduce
+ // via StyleX (@layer astryx-base). Emitting margins here would re-introduce
// the regression where prose defaults fought component spacing.
expect(h1Rule).not.toContain('margin-block-start');
expect(h1Rule).not.toContain('margin-block-end');
@@ -182,11 +182,11 @@ describe('generateThemeRules', () => {
// --- Prop-level color overrides ---
it('includes color prop overrides for text and heading', () => {
- expect(rules.some(r => r.includes('.xds-text.primary'))).toBe(true);
- expect(rules.some(r => r.includes('.xds-text.secondary'))).toBe(true);
- expect(rules.some(r => r.includes('.xds-heading.primary'))).toBe(true);
- expect(rules.some(r => r.includes('.xds-heading.disabled'))).toBe(true);
- expect(rules.some(r => r.includes('.xds-text.active'))).toBe(true);
+ expect(rules.some(r => r.includes('.astryx-text.primary'))).toBe(true);
+ expect(rules.some(r => r.includes('.astryx-text.secondary'))).toBe(true);
+ expect(rules.some(r => r.includes('.astryx-heading.primary'))).toBe(true);
+ expect(rules.some(r => r.includes('.astryx-heading.disabled'))).toBe(true);
+ expect(rules.some(r => r.includes('.astryx-text.active'))).toBe(true);
});
// --- Consistency ---
@@ -195,9 +195,9 @@ describe('generateThemeRules', () => {
const {prose, component} = generateThemeCSS(theme);
const combined = prose + component;
expect(combined).toContain(
- '@scope ([data-astryx-theme="default"], [data-xds-theme="default"])',
+ '@scope ([data-astryx-theme="default"])',
);
- expect(combined).toContain('to ([data-astryx-theme], [data-xds-theme])');
+ expect(combined).toContain('to ([data-astryx-theme])');
// Every rule from generateThemeRules should appear in one of the blocks
for (const rule of rules) {
expect(combined).toContain(rule);
@@ -252,7 +252,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const cardRule = rules.find(r => r.includes('.xds-card'));
+ const cardRule = rules.find(r => r.includes('.astryx-card'));
expect(cardRule).toBeDefined();
expect(cardRule).toContain('border-radius: 32px');
expect(cardRule).toContain('--_card-radius: 32px');
@@ -268,7 +268,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-dropdown-menu'));
+ const rule = rules.find(r => r.includes('.astryx-dropdown-menu'));
expect(rule).toBeDefined();
expect(rule).toContain('border-radius: 16px');
expect(rule).toContain('--_dropdown-menu-radius: 16px');
@@ -284,7 +284,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-dropdown-menu'));
+ const rule = rules.find(r => r.includes('.astryx-dropdown-menu'));
expect(rule).toBeDefined();
expect(rule).toContain('--_dropdown-menu-padding: 8px');
});
@@ -299,7 +299,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-chat'));
+ const rule = rules.find(r => r.includes('.astryx-chat'));
expect(rule).toBeDefined();
expect(rule).toContain('--_chat-composer-radius: 24px');
expect(rule).toContain('--_chat-composer-padding: 12px');
@@ -315,7 +315,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-button'));
+ const rule = rules.find(r => r.includes('.astryx-button'));
expect(rule).toBeDefined();
expect(rule).toContain('border-radius: 8px');
expect(rule).toContain('--_button-radius: 8px');
@@ -331,7 +331,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-badge'));
+ const rule = rules.find(r => r.includes('.astryx-badge'));
expect(rule).toBeDefined();
expect(rule).toContain('border-radius: 99px');
// No internal var — badge has no derived registry entry
@@ -348,7 +348,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-card'));
+ const rule = rules.find(r => r.includes('.astryx-card'));
expect(rule).toBeDefined();
// Container expansion emits --astryx-card-padding token
expect(rule).toContain('--astryx-card-padding: 20px');
@@ -364,7 +364,7 @@ describe('derived var expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-card.muted'));
+ const rule = rules.find(r => r.includes('.astryx-card.muted'));
expect(rule).toBeDefined();
expect(rule).toContain('border-radius: 16px');
expect(rule).toContain('--_card-radius: 16px');
@@ -383,7 +383,7 @@ describe('brutalist-style derived expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-button'));
+ const rule = rules.find(r => r.includes('.astryx-button'));
expect(rule).toContain('border-radius: 9999px');
expect(rule).toContain('--_button-radius: 9999px');
});
@@ -398,7 +398,7 @@ describe('brutalist-style derived expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-card'));
+ const rule = rules.find(r => r.includes('.astryx-card'));
expect(rule).toBeDefined();
expect(rule).toContain('--astryx-card-padding: 24px');
});
@@ -413,7 +413,7 @@ describe('brutalist-style derived expansion', () => {
},
});
const rules = generateThemeRules(theme);
- const rule = rules.find(r => r.includes('.xds-dropdown-menu'));
+ const rule = rules.find(r => r.includes('.astryx-dropdown-menu'));
expect(rule).toBeDefined();
expect(rule).toContain('border-radius: 0px');
expect(rule).toContain('--_dropdown-menu-radius: 0px');
diff --git a/packages/core/src/theme/generateThemeRules.ts b/packages/core/src/theme/generateThemeRules.ts
index b98c1965fa..6797925264 100644
--- a/packages/core/src/theme/generateThemeRules.ts
+++ b/packages/core/src/theme/generateThemeRules.ts
@@ -18,50 +18,40 @@
import type {DefinedTheme} from './defineTheme';
import {parseStyleKey} from '../utils/parseStyleKey';
import {getDerivedVars} from './derivedVarRegistry';
-import {
- cssVar,
- classPrefix,
- legacyClassPrefix,
- dataAttrNamespace,
- legacyDataAttrNamespace,
-} from '../naming';
+import {cssVar, classPrefix, dataAttrNamespace} from '../naming';
/**
- * Dual-prefix theme @scope selectors (XDS-prefix migration P2380608025).
+ * Theme @scope selectors.
*
- * Theme CSS is @scope'd to the theme-name data attribute that Theme writes.
- * During the compat window Theme dual-emits BOTH data-astryx-theme and
- * data-xds-theme, so the generated CSS must match either form. These helpers
- * build selector-lists covering both prefixes so existing (xds) and new
- * (astryx) attribute writers both resolve.
+ * Theme CSS is @scope'd to the theme-name data attribute that Theme writes
+ * (`data-astryx-theme`).
*
* @example themeScopeStart('mytheme')
- * -> '[data-astryx-theme="mytheme"], [data-xds-theme="mytheme"]'
+ * -> '[data-astryx-theme="mytheme"]'
*/
function themeScopeStart(name: string): string {
- return `[data-${dataAttrNamespace}-theme="${name}"], [data-${legacyDataAttrNamespace}-theme="${name}"]`;
+ return `[data-${dataAttrNamespace}-theme="${name}"]`;
}
-/** Scope limit matching either prefix's theme attribute (nested-theme boundary). */
-const THEME_SCOPE_TO = `[data-${dataAttrNamespace}-theme], [data-${legacyDataAttrNamespace}-theme]`;
+/** Scope limit matching the theme attribute (nested-theme boundary). */
+const THEME_SCOPE_TO = `[data-${dataAttrNamespace}-theme]`;
-/** Media-surface selector matching either prefix, e.g. for [data-*-media="dark"]. */
+/** Media-surface selector, e.g. for [data-astryx-media="dark"]. */
function mediaSelector(surface: string): string {
- return `[data-${dataAttrNamespace}-media="${surface}"], [data-${legacyDataAttrNamespace}-media="${surface}"]`;
+ return `[data-${dataAttrNamespace}-media="${surface}"]`;
}
-/** Component base-class selector matching either prefix, e.g. '.astryx-button, .xds-button'. */
+/** Component base-class selector, e.g. '.astryx-button'. */
function componentClassSelector(component: string, suffix: string): string {
- return `.${classPrefix}-${component}${suffix}, .${legacyClassPrefix}-${component}${suffix}`;
+ return `.${classPrefix}-${component}${suffix}`;
}
/**
* Append a pseudo-class to every selector in a comma-separated selector list.
*
- * The compat selector helpers emit lists such as
- * `.astryx-button.secondary, .xds-button.secondary`. CSS does not distribute a
- * trailing pseudo over selector lists, so `${list}:hover` only targets the
- * final legacy selector. Keep pseudo rules dual-prefix by rewriting each item.
+ * Selector helpers may emit comma-separated lists. CSS does not distribute a
+ * trailing pseudo over selector lists, so `${list}:hover` would only target the
+ * final selector. Rewrite each item so the pseudo applies to all of them.
*/
function appendPseudoToSelectorList(selector: string, pseudo: string): string {
const parts: string[] = [];
@@ -94,7 +84,7 @@ function appendPseudoToSelectorList(selector: string, pseudo: string): string {
* so callers can place them in different CSS layers.
*/
export interface ThemeRulesSplit {
- /** Token overrides + component .xds-* overrides + prop-level color rules */
+ /** Token overrides + component .astryx-* overrides + prop-level color rules */
component: string[];
/** Prose element defaults (h1-h6, p, small, code, hr) — belongs in reset layer */
prose: string[];
@@ -111,8 +101,8 @@ export interface ThemeCSSOutput {
*/
prose: string;
/**
- * Token overrides + component .xds-* overrides scoped to the theme.
- * Should be injected into @layer xds-theme — above StyleX layers so
+ * Token overrides + component .astryx-* overrides scoped to the theme.
+ * Should be injected into @layer astryx-theme — above StyleX layers so
* theme component overrides take effect. Empty string if no rules.
*/
component: string;
@@ -217,9 +207,8 @@ function parsePadding(props: [string, string][]): ParsedPadding {
* --astryx-card-padding-block-end: 20px
*
* The component reads these with an inverted fallback chain
- * (var(--xds-*, var(--astryx-*, default))) so a legacy --xds-* override set by
- * existing consumer code still wins during the compat window (P2380608025).
- * The container.stylex.ts default styles read these via var() fallbacks,
+ * (var(--astryx-*, default)). The container.stylex.ts default styles read
+ * these via var() fallbacks,
* so the theme CSS sets the value and the component picks it up through
* CSS custom property cascade — no layer competition with StyleX output.
*/
@@ -300,7 +289,7 @@ export function generateThemeRules(theme: DefinedTheme): string[] {
parts.push(` :scope {\n${declarations}\n }`);
}
- // 2. Component overrides (legacy .xds-* class rules; components also emit
+ // 2. Component overrides (.astryx-* class rules; components also emit
// data-* prop reflections for external selector migrations)
if (theme.components) {
generateComponentRules(theme.components, parts);
@@ -318,7 +307,7 @@ export function generateThemeRules(theme: DefinedTheme): string[] {
}
/**
- * Generate component override rules using the legacy .xds-* class selector
+ * Generate component override rules using the .astryx-* class selector
* format. Runtime components also emit matching data-* prop reflections; the
* theme CSS generator will move to data-attribute selectors in a later step.
* Handles derived var expansion and container padding mapping.
@@ -422,8 +411,8 @@ function generateComponentRules(
/**
* Generate prose HTML element default rules (h1-h6, p, small, code, hr).
* Wrapped in :where() for zero specificity — these are defaults that
- * any class-based style (StyleX, .xds-* overrides) should beat.
- * The caller places these in the reset layer (not xds-theme) so they
+ * any class-based style (StyleX, .astryx-* overrides) should beat.
+ * The caller places these in the reset layer (not astryx-theme) so they
* sit below all component styles in the cascade.
*/
function generateProseRules(
@@ -518,8 +507,8 @@ function generateColorOverrides(
* as themed defaults — conceptually the same tier as the CSS reset. They
* belong in the reset layer so any class-based style wins.
*
- * Component rules (tokens, .xds-* overrides) are intentional theme overrides
- * that need to beat StyleX — they stay in xds-theme (above StyleX layers).
+ * Component rules (tokens, .astryx-* overrides) are intentional theme overrides
+ * that need to beat StyleX — they stay in astryx-theme (above StyleX layers).
*/
export function generateThemeRulesSplit(theme: DefinedTheme): ThemeRulesSplit {
const allRules = generateThemeRules(theme);
@@ -542,7 +531,7 @@ export function generateThemeRulesSplit(theme: DefinedTheme): ThemeRulesSplit {
* Generate CSS for on-media token and component overrides.
*
* Emitted in an unbounded @scope (no `to` limit) so the rules can reach
- * [data-xds-media] elements. Parent theme component overrides flow through
+ * [data-astryx-media] elements. Parent theme component overrides flow through
* to media contexts — only tokens change. Themes can further customize
* via onDark.components / onLight.components.
*/
@@ -629,7 +618,7 @@ export function generateOnMediaCSS(theme: DefinedTheme): string {
*
* Returns two CSS blocks for injection into different layers:
* - `prose`: @scope'd element defaults → inject into @layer reset
- * - `component`: @scope'd token + .xds-* overrides → inject into @layer xds-theme
+ * - `component`: @scope'd token + .astryx-* overrides → inject into @layer astryx-theme
*
* This separation ensures prose defaults (what bare HTML looks like in a theme)
* sit at reset-layer priority where any class-based style wins, while component
@@ -647,7 +636,7 @@ export function generateThemeCSS(theme: DefinedTheme): ThemeCSSOutput {
}
// Component rules: bounded scope (stops at nested themes) +
- // on-media rules in unbounded scope (can reach [data-xds-media] elements)
+ // on-media rules in unbounded scope (can reach [data-astryx-media] elements)
let componentCss = '';
if (component.length > 0) {
const componentInner = component.join('\n\n');
diff --git a/packages/core/src/theme/index.ts b/packages/core/src/theme/index.ts
index 8e796a90e3..3096a99c1d 100644
--- a/packages/core/src/theme/index.ts
+++ b/packages/core/src/theme/index.ts
@@ -159,79 +159,3 @@ export type {
TypographyRole,
FontWeight,
} from './types';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- MediaTheme as XDSMediaTheme,
- SyntaxTheme as XDSSyntaxTheme,
- Theme as XDSTheme,
- ThemeContext as XDSThemeContext,
- useSyntaxTheme as useXDSSyntaxTheme,
- useTheme as useXDSTheme,
-} from '.';
-export type {
- BorderVarName as XDSBorderVarName,
- BuiltinTextType as XDSBuiltinTextType,
- ColorScaleConfig as XDSColorScaleConfig,
- ColorScaleTokens as XDSColorScaleTokens,
- ColorVarName as XDSColorVarName,
- ComponentStyleMap as XDSComponentStyleMap,
- CoreTokenName as XDSCoreTokenName,
- CustomTextTypes as XDSCustomTextTypes,
- DataTokenName as XDSDataTokenName,
- DefineThemeInput as XDSDefineThemeInput,
- DefinedTheme as XDSDefinedTheme,
- DomainTokenName as XDSDomainTokenName,
- DurationVarName as XDSDurationVarName,
- EaseVarName as XDSEaseVarName,
- FontWeight as XDSFontWeight,
- FontWeightVarName as XDSFontWeightVarName,
- HeadingTag as XDSHeadingTag,
- MediaThemeProps as XDSMediaThemeProps,
- MotionScaleConfig as XDSMotionScaleConfig,
- MotionScaleTokens as XDSMotionScaleTokens,
- RadiusScaleConfig as XDSRadiusScaleConfig,
- RadiusScaleTokens as XDSRadiusScaleTokens,
- RadiusVarName as XDSRadiusVarName,
- ResolveXDSThemeTokenOptions as XDSResolveXDSThemeTokenOptions,
- ResolveXDSThemeTokensOptions as XDSResolveXDSThemeTokensOptions,
- ResolvedThemeMode as XDSResolvedThemeMode,
- ShadowVarName as XDSShadowVarName,
- SizeVarName as XDSSizeVarName,
- SpacingVarName as XDSSpacingVarName,
- StyleOverrides as XDSStyleOverrides,
- SyntaxThemeDefinition as XDSSyntaxThemeDefinition,
- SyntaxThemeInput as XDSSyntaxThemeInput,
- SyntaxThemeTokenInput as XDSSyntaxThemeTokenInput,
- SyntaxThemeTokenKey as XDSSyntaxThemeTokenKey,
- SyntaxThemeTokenMap as XDSSyntaxThemeTokenMap,
- SyntaxTokenName as XDSSyntaxTokenName,
- SyntaxTokenValue as XDSSyntaxTokenValue,
- TextColor as XDSTextColor,
- TextSize as XDSTextSize,
- TextSizeVarName as XDSTextSizeVarName,
- TextType as XDSTextType,
- TextWeight as XDSTextWeight,
- ThemeCSSOutput as XDSThemeCSSOutput,
- ThemeContextValue as XDSThemeContextValue,
- ThemeMode as XDSThemeMode,
- ThemeRulesSplit as XDSThemeRulesSplit,
- TokenName as XDSTokenName,
- TokenValue as XDSTokenValue,
- TransitionVarName as XDSTransitionVarName,
- TypeScaleConfig as XDSTypeScaleConfig,
- TypeScaleTokens as XDSTypeScaleTokens,
- TypeScaleVarName as XDSTypeScaleVarName,
- TypographyConfig as XDSTypographyConfig,
- TypographyRole as XDSTypographyRole,
- TypographyVarName as XDSTypographyVarName,
- UseSyntaxThemeReturn as XDSUseSyntaxThemeReturn,
- UseThemeReturn as XDSUseThemeReturn,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/theme/onMediaTokens.test.ts b/packages/core/src/theme/onMediaTokens.test.ts
index 5acf6b5f37..5ec3ba37a4 100644
--- a/packages/core/src/theme/onMediaTokens.test.ts
+++ b/packages/core/src/theme/onMediaTokens.test.ts
@@ -137,15 +137,15 @@ describe('defineTheme with onDark/onLight', () => {
});
describe('generateOnMediaCSS', () => {
- it('emits @scope with [data-xds-media] token rules', () => {
+ it('emits @scope with [data-astryx-media] token rules', () => {
const theme = defineTheme({name: 'test'});
const css = generateOnMediaCSS(theme);
expect(css).toContain(
- '@scope ([data-astryx-theme="test"], [data-xds-theme="test"])',
+ '@scope ([data-astryx-theme="test"])',
);
// Same scope boundary as main theme
- expect(css).toContain('to ([data-astryx-theme], [data-xds-theme])');
- expect(css).toContain('[data-xds-media="dark"]');
+ expect(css).toContain('to ([data-astryx-theme])');
+ expect(css).toContain('[data-astryx-media="dark"]');
expect(css).toContain('color-scheme: dark');
expect(css).toContain('var(--color-on-dark)');
});
@@ -153,7 +153,7 @@ describe('generateOnMediaCSS', () => {
it('emits light media rules', () => {
const theme = defineTheme({name: 'test'});
const css = generateOnMediaCSS(theme);
- expect(css).toContain('[data-xds-media="light"]');
+ expect(css).toContain('[data-astryx-media="light"]');
expect(css).toContain('color-scheme: light');
});
@@ -172,7 +172,7 @@ describe('generateOnMediaCSS', () => {
});
const css = generateOnMediaCSS(theme);
expect(css).toContain(
- ':is([data-astryx-media="dark"], [data-xds-media="dark"]) :is(.astryx-button.secondary, .xds-button.secondary)',
+ ':is([data-astryx-media="dark"]) :is(.astryx-button.secondary)',
);
expect(css).toContain(
'background-color: color-mix(in srgb, white 20%, transparent)',
@@ -195,7 +195,7 @@ describe('generateOnMediaCSS', () => {
});
const css = generateOnMediaCSS(theme);
expect(css).toContain(
- ':is([data-astryx-media="dark"], [data-xds-media="dark"]) :is(.astryx-button, .xds-button):hover',
+ ':is([data-astryx-media="dark"]) :is(.astryx-button):hover',
);
expect(css).toContain('color: rgba(255,255,255,0.8)');
});
@@ -204,7 +204,7 @@ describe('generateOnMediaCSS', () => {
describe('reset.css baseline media rules', () => {
/**
* Validates that reset.css provides the minimum baseline for
- * MediaTheme: a color-scheme flip on [data-xds-media].
+ * MediaTheme: a color-scheme flip on [data-astryx-media].
*
* Token overrides (text-primary, icon-primary, accent) are a
* theme-level concern — themes handle those via generateOnMediaCSS.
@@ -220,17 +220,17 @@ describe('reset.css baseline media rules', () => {
);
});
- it('flips color-scheme on [data-xds-media="dark"]', () => {
+ it('flips color-scheme on [data-astryx-media="dark"]', () => {
const darkMatch = resetCSS.match(
- /:where\(\[data-astryx-media="dark"\], \[data-xds-media="dark"\]\)\s*\{([^}]+)\}/,
+ /:where\(\[data-astryx-media="dark"\]\)\s*\{([^}]+)\}/,
);
expect(darkMatch).not.toBeNull();
expect(darkMatch![1]).toContain('color-scheme: dark');
});
- it('flips color-scheme on [data-xds-media="light"]', () => {
+ it('flips color-scheme on [data-astryx-media="light"]', () => {
const lightMatch = resetCSS.match(
- /:where\(\[data-astryx-media="light"\], \[data-xds-media="light"\]\)\s*\{([^}]+)\}/,
+ /:where\(\[data-astryx-media="light"\]\)\s*\{([^}]+)\}/,
);
expect(lightMatch).not.toBeNull();
expect(lightMatch![1]).toContain('color-scheme: light');
@@ -238,7 +238,7 @@ describe('reset.css baseline media rules', () => {
it('does NOT include token overrides at baseline level', () => {
const darkMatch = resetCSS.match(
- /:where\(\[data-astryx-media="dark"\], \[data-xds-media="dark"\]\)\s*\{([^}]+)\}/,
+ /:where\(\[data-astryx-media="dark"\]\)\s*\{([^}]+)\}/,
);
expect(darkMatch![1]).not.toContain('--color-text-primary');
expect(darkMatch![1]).not.toContain('--color-icon-primary');
diff --git a/packages/core/src/theme/syntax/SyntaxTheme.tsx b/packages/core/src/theme/syntax/SyntaxTheme.tsx
index e3d7cc8e49..a335d30ee4 100644
--- a/packages/core/src/theme/syntax/SyntaxTheme.tsx
+++ b/packages/core/src/theme/syntax/SyntaxTheme.tsx
@@ -125,7 +125,7 @@ export function SyntaxTheme({
return (
<SyntaxThemeContext value={value}>
- <div style={style} data-xds-syntax-theme={theme.name}>
+ <div style={style} data-astryx-syntax-theme={theme.name}>
{children}
</div>
</SyntaxThemeContext>
diff --git a/packages/core/src/utils/index.ts b/packages/core/src/utils/index.ts
index 8e2c970440..1a135dda0d 100644
--- a/packages/core/src/utils/index.ts
+++ b/packages/core/src/utils/index.ts
@@ -72,31 +72,3 @@ export {groupItems, getItemGroup} from './groupItems';
export type {ItemGroup} from './groupItems';
export {observeResize, unobserveResize} from './sharedResizeObserver';
export {isRenderable} from './isRenderable';
-
-
-// <compat-aliases:start> — generated, do not edit by hand
-// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).
-// Bare names above are canonical + module-augmentation targets.
-// These prefixed re-exports reference the SAME values/types and remain
-// augmentable (consumer `declare module` augmentations of XDS* flow through).
-// Regenerate: node scripts/generate-compat-aliases.mjs
-export {
- DATE_FORMAT_LONG as XDSDATE_FORMAT_LONG,
- DATE_FORMAT_MONTH_YEAR as XDSDATE_FORMAT_MONTH_YEAR,
- DATE_FORMAT_SHORT as XDSDATE_FORMAT_SHORT,
- DATE_FORMAT_SHORT_WITH_YEAR as XDSDATE_FORMAT_SHORT_WITH_YEAR,
- DATE_FORMAT_WITH_WEEKDAY as XDSDATE_FORMAT_WITH_WEEKDAY,
-} from '.';
-export type {
- DateRange as XDSDateRange,
- DayOfWeek as XDSDayOfWeek,
- ISODateString as XDSISODateString,
- ISOTimeString as XDSISOTimeString,
- ItemGroup as XDSItemGroup,
- Key as XDSKey,
- KeyFallback as XDSKeyFallback,
- ParsedTime as XDSParsedTime,
- PlainDate as XDSPlainDate,
- SizeValue as XDSSizeValue,
-} from '.';
-// <compat-aliases:end>
diff --git a/packages/core/src/utils/xdsThemeProps.test.ts b/packages/core/src/utils/xdsThemeProps.test.ts
index 77990448be..54dd00af12 100644
--- a/packages/core/src/utils/xdsThemeProps.test.ts
+++ b/packages/core/src/utils/xdsThemeProps.test.ts
@@ -5,34 +5,34 @@ import {xdsThemeDataAttributes, xdsThemeProps} from './xdsThemeProps';
describe('xdsThemeProps', () => {
it('returns base class for component', () => {
- expect(xdsThemeProps('card').className).toBe('astryx-card xds-card');
+ expect(xdsThemeProps('card').className).toBe('astryx-card');
});
it('adds variant classes', () => {
expect(
xdsThemeProps('button', {variant: 'secondary', size: 'sm'}).className,
- ).toBe('astryx-button xds-button secondary sm');
+ ).toBe('astryx-button secondary sm');
});
it('prefixes numeric values with prop name', () => {
expect(xdsThemeProps('heading', {level: 1}).className).toBe(
- 'astryx-heading xds-heading level-1',
+ 'astryx-heading level-1',
);
});
it('skips null and undefined props', () => {
expect(
xdsThemeProps('button', {variant: 'primary', size: undefined}).className,
- ).toBe('astryx-button xds-button primary');
+ ).toBe('astryx-button primary');
});
it('works with no props', () => {
- expect(xdsThemeProps('divider').className).toBe('astryx-divider xds-divider');
+ expect(xdsThemeProps('divider').className).toBe('astryx-divider');
});
it('handles string numeric values', () => {
expect(xdsThemeProps('heading', {level: '3'}).className).toBe(
- 'astryx-heading xds-heading level-3',
+ 'astryx-heading level-3',
);
});
@@ -60,7 +60,7 @@ describe('xdsThemeProps', () => {
it('returns class and data attributes together', () => {
expect(xdsThemeProps('button', {variant: 'primary', size: 'sm'})).toEqual({
- className: 'astryx-button xds-button primary sm',
+ className: 'astryx-button primary sm',
'data-variant': 'primary',
'data-size': 'sm',
});
diff --git a/packages/core/src/utils/xdsThemeProps.ts b/packages/core/src/utils/xdsThemeProps.ts
index 24852e4401..221c2af79d 100644
--- a/packages/core/src/utils/xdsThemeProps.ts
+++ b/packages/core/src/utils/xdsThemeProps.ts
@@ -1,6 +1,6 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
-import {stableClassName, legacyStableClassName} from '../naming';
+import {stableClassName} from '../naming';
export type ClassValue = string | number | undefined | null;
export type ClassProps = Record<string, ClassValue>;
@@ -17,16 +17,16 @@ function classTokenForPropValue(prop: string, value: string): string {
}
/**
- * Build the legacy xds-* class name string for a component.
+ * Build the astryx-* class name string for a component.
*
- * Every XDS component renders a base class (`xds-button`, `xds-card`, etc.)
- * plus legacy variant classes derived from visual props. XDS also reflects
+ * Every component renders a stable base class (`astryx-button`, `astryx-card`,
+ * etc.) plus variant classes derived from visual props. Components also reflect
* those visual props as data attributes via `xdsThemeProps()` (`data-variant`,
- * `data-size`, `data-level`, etc.) so consumers can migrate CSS selectors
- * away from collision-prone bare class names while old selectors keep working.
+ * `data-size`, `data-level`, etc.) so consumers target stable data-attribute
+ * selectors rather than collision-prone bare class names.
*
- * The `xds-`/`astryx-` prefix comes from the centralized naming module
- * (`packages/core/src/naming.ts`) so the prefix migration flips in one place.
+ * The `astryx-` prefix comes from the centralized naming module
+ * (`packages/core/src/naming.ts`) so the namespace lives in one place.
*
* <!-- SYNC: packages/core/src/naming.ts (namespace prefix source of truth) -->
* <!-- SYNC: packages/core/src/utils/parseStyleKey.ts -->
@@ -36,29 +36,23 @@ function classTokenForPropValue(prop: string, value: string): string {
* Data attributes keep the literal value (e.g. `data-level="1"`).
*
* @param component - Component name in lowercase (e.g. 'button', 'card')
- * @param props - Visual prop values to include as legacy variant classes
- * @returns Class name string (e.g. "astryx-button xds-button secondary sm")
+ * @param props - Visual prop values to include as variant classes
+ * @returns Class name string (e.g. "astryx-button secondary sm")
*
* @example
* ```ts
- * dualClassName('button', { variant: 'secondary', size: 'sm' })
- * // → "astryx-button xds-button secondary sm"
+ * buildClassName('button', { variant: 'secondary', size: 'sm' })
+ * // → "astryx-button secondary sm"
*
- * dualClassName('heading', { level: 1 })
- * // → "astryx-heading xds-heading level-1"
+ * buildClassName('heading', { level: 1 })
+ * // → "astryx-heading level-1"
*
- * dualClassName('card')
- * // → "astryx-card xds-card"
+ * buildClassName('card')
+ * // → "astryx-card"
* ```
*/
-function dualClassName(component: string, props?: ClassProps): string {
- // Dual-emit both the new (astryx-*) and legacy (xds-*) base class so existing
- // consumer CSS selectors keep matching during the compat window. The new
- // prefix is listed first; legacy stays until the final cutover (P10).
- const classes = [
- stableClassName(component),
- legacyStableClassName(component),
- ];
+function buildClassName(component: string, props?: ClassProps): string {
+ const classes = [stableClassName(component)];
if (props) {
for (const [prop, value] of Object.entries(props)) {
@@ -100,12 +94,12 @@ export function xdsThemeDataAttributes(
* Build the props object components should spread onto the same element that
* receives the stable XDS class name.
*
- * This dual-emits the legacy bare classes and the new data-attribute reflection
+ * This emits the stable astryx class plus the data-attribute reflection
* surface. For example:
*
* ```ts
* xdsThemeProps('button', { variant: 'primary', size: 'sm' })
- * // → { className: 'astryx-button xds-button primary sm', data-variant: 'primary', data-size: 'sm' }
+ * // → { className: 'astryx-button primary sm', data-variant: 'primary', data-size: 'sm' }
* ```
*/
export function xdsThemeProps(
@@ -113,7 +107,7 @@ export function xdsThemeProps(
props?: ClassProps,
): ThemeProps {
return {
- className: dualClassName(component, props),
+ className: buildClassName(component, props),
...xdsThemeDataAttributes(props),
};
}
diff --git a/packages/core/src/xds.css.d.ts b/packages/core/src/xds.css.d.ts
deleted file mode 100644
index e976d8c27c..0000000000
--- a/packages/core/src/xds.css.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {};
diff --git a/packages/lab/src/CircularProgress/CircularProgress.doc.mjs b/packages/lab/src/CircularProgress/CircularProgress.doc.mjs
index 9ff5b184fd..d50cc993c3 100644
--- a/packages/lab/src/CircularProgress/CircularProgress.doc.mjs
+++ b/packages/lab/src/CircularProgress/CircularProgress.doc.mjs
@@ -57,9 +57,9 @@ export const docs = {
],
theming: {
targets: [
- {className: 'xds-circular-progress', visualProps: ['variant', 'size']},
- {className: 'xds-circular-progress-track'},
- {className: 'xds-circular-progress-fill', visualProps: ['variant']},
+ {className: 'astryx-circular-progress', visualProps: ['variant', 'size']},
+ {className: 'astryx-circular-progress-track'},
+ {className: 'astryx-circular-progress-fill', visualProps: ['variant']},
],
},
usage: {
@@ -128,9 +128,9 @@ export const docsZh = {
],
theming: {
targets: [
- {className: 'xds-circular-progress', visualProps: ['variant', 'size']},
- {className: 'xds-circular-progress-track'},
- {className: 'xds-circular-progress-fill', visualProps: ['variant']},
+ {className: 'astryx-circular-progress', visualProps: ['variant', 'size']},
+ {className: 'astryx-circular-progress-track'},
+ {className: 'astryx-circular-progress-fill', visualProps: ['variant']},
],
},
usage: {
diff --git a/packages/lab/src/Stepper/Stepper.doc.mjs b/packages/lab/src/Stepper/Stepper.doc.mjs
index 73c133c570..5b0c8b1701 100644
--- a/packages/lab/src/Stepper/Stepper.doc.mjs
+++ b/packages/lab/src/Stepper/Stepper.doc.mjs
@@ -28,9 +28,9 @@ export const docs = {
},
theming: {
targets: [
- {className: 'xds-stepper', visualProps: ['orientation']},
- {className: 'xds-step', visualProps: ['progress', 'status']},
- {className: 'xds-step-bar'},
+ {className: 'astryx-stepper', visualProps: ['orientation']},
+ {className: 'astryx-step', visualProps: ['progress', 'status']},
+ {className: 'astryx-step-bar'},
],
},
components: [
@@ -224,9 +224,9 @@ export const docsZh = {
},
theming: {
targets: [
- {className: 'xds-stepper', visualProps: ['orientation']},
- {className: 'xds-step', visualProps: ['progress', 'status']},
- {className: 'xds-step-bar'},
+ {className: 'astryx-stepper', visualProps: ['orientation']},
+ {className: 'astryx-step', visualProps: ['progress', 'status']},
+ {className: 'astryx-step-bar'},
],
},
components: [
diff --git a/packages/themes/butter/src/icons.tsx b/packages/themes/butter/src/icons.tsx
index 14d729da16..94ffe8bed5 100644
--- a/packages/themes/butter/src/icons.tsx
+++ b/packages/themes/butter/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses lucide-react icon components, XDSIconRegistry type
+ * @input Uses lucide-react icon components, IconRegistry type
* @output Exports butterIconRegistry for the butter theme
* @position Icon configuration for the butter theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -47,7 +47,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const butterIconRegistry: XDSIconRegistry = {
+export const butterIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/chocolate/src/icons.tsx b/packages/themes/chocolate/src/icons.tsx
index f9e2b34389..41ddcc292d 100644
--- a/packages/themes/chocolate/src/icons.tsx
+++ b/packages/themes/chocolate/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses lucide-react icon components, XDSIconRegistry type
+ * @input Uses lucide-react icon components, IconRegistry type
* @output Exports chocolateIconRegistry for the neutral theme
* @position Icon configuration for the neutral theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -47,7 +47,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const chocolateIconRegistry: XDSIconRegistry = {
+export const chocolateIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/daily/src/icons.tsx b/packages/themes/daily/src/icons.tsx
index 4783fa87df..88492accd7 100644
--- a/packages/themes/daily/src/icons.tsx
+++ b/packages/themes/daily/src/icons.tsx
@@ -1,7 +1,7 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -37,7 +37,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const dailyIconRegistry: XDSIconRegistry = {
+export const dailyIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/default/src/icons.tsx b/packages/themes/default/src/icons.tsx
index a367dafc45..f5a5dfe787 100644
--- a/packages/themes/default/src/icons.tsx
+++ b/packages/themes/default/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses @heroicons/react outline and solid icon components, XDSIconRegistry type
+ * @input Uses @heroicons/react outline and solid icon components, IconRegistry type
* @output Exports defaultIconRegistry for the default theme
* @position Icon configuration for the default theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
XMarkIcon,
@@ -50,7 +50,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const defaultIconRegistry: XDSIconRegistry = {
+export const defaultIconRegistry: IconRegistry = {
close: <XMarkIcon {...iconProps} />,
chevronDown: <ChevronDownIcon {...iconProps} />,
chevronLeft: <ChevronLeftIcon {...iconProps} />,
diff --git a/packages/themes/gothic/src/icons.tsx b/packages/themes/gothic/src/icons.tsx
index a7c9ad7a47..a638f1c737 100644
--- a/packages/themes/gothic/src/icons.tsx
+++ b/packages/themes/gothic/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses lucide-react icon components, XDSIconRegistry type
+ * @input Uses lucide-react icon components, IconRegistry type
* @output Exports gothicIconRegistry for the neutral theme
* @position Icon configuration for the neutral theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -47,7 +47,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const gothicIconRegistry: XDSIconRegistry = {
+export const gothicIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/matcha/src/icons.tsx b/packages/themes/matcha/src/icons.tsx
index 7232ca5e06..ba0e8c154b 100644
--- a/packages/themes/matcha/src/icons.tsx
+++ b/packages/themes/matcha/src/icons.tsx
@@ -1,7 +1,7 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -37,7 +37,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const matchaIconRegistry: XDSIconRegistry = {
+export const matchaIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/neutral/src/icons.tsx b/packages/themes/neutral/src/icons.tsx
index ad16d18bfe..345ae286b7 100644
--- a/packages/themes/neutral/src/icons.tsx
+++ b/packages/themes/neutral/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses lucide-react icon components, XDSIconRegistry type
+ * @input Uses lucide-react icon components, IconRegistry type
* @output Exports neutralIconRegistry for the neutral theme
* @position Icon configuration for the neutral theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -47,7 +47,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const neutralIconRegistry: XDSIconRegistry = {
+export const neutralIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/stone/src/icons.tsx b/packages/themes/stone/src/icons.tsx
index eb5c7af0d9..73c8c13221 100644
--- a/packages/themes/stone/src/icons.tsx
+++ b/packages/themes/stone/src/icons.tsx
@@ -2,7 +2,7 @@
/**
* @file icons.tsx
- * @input Uses lucide-react icon components, XDSIconRegistry type
+ * @input Uses lucide-react icon components, IconRegistry type
* @output Exports stoneIconRegistry for the neutral theme
* @position Icon configuration for the neutral theme; consumed by index.ts
*
@@ -11,7 +11,7 @@
*/
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -47,7 +47,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const stoneIconRegistry: XDSIconRegistry = {
+export const stoneIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/packages/themes/stone/src/stoneTheme.ts b/packages/themes/stone/src/stoneTheme.ts
index a2c6c12b97..0ede091ecf 100644
--- a/packages/themes/stone/src/stoneTheme.ts
+++ b/packages/themes/stone/src/stoneTheme.ts
@@ -285,7 +285,7 @@ export const stoneTheme = defineTheme({
},
// StyleX paints the banner surface from @layer priority4 (above
- // @layer xds-theme), so a direct backgroundColor override loses the
+ // @layer astryx-theme), so a direct backgroundColor override loses the
// cascade. Redefine the muted token instead so StyleX's var() resolves
// to the categorical bg in our scope.
banner: {
diff --git a/packages/themes/y2k/src/icons.tsx b/packages/themes/y2k/src/icons.tsx
index 0a2124e965..eeeadc55c7 100644
--- a/packages/themes/y2k/src/icons.tsx
+++ b/packages/themes/y2k/src/icons.tsx
@@ -1,7 +1,7 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
import React from 'react';
-import type {XDSIconRegistry} from '@xds/core/Icon';
+import type {IconRegistry} from '@xds/core/Icon';
import {
X,
@@ -37,7 +37,7 @@ const iconProps = {
'aria-hidden': true as const,
};
-export const y2kIconRegistry: XDSIconRegistry = {
+export const y2kIconRegistry: IconRegistry = {
close: <X {...iconProps} />,
chevronDown: <ChevronDown {...iconProps} />,
chevronLeft: <ChevronLeft {...iconProps} />,
diff --git a/scripts/build-css.mjs b/scripts/build-css.mjs
index 7303a4dc09..0668f0bd56 100644
--- a/scripts/build-css.mjs
+++ b/scripts/build-css.mjs
@@ -3,17 +3,17 @@
/**
* @file build-css.mjs
* Post-build script that extracts StyleX CSS from compiled source files
- * and outputs a combined xds.css wrapped in @layer xds-base.
+ * and outputs a combined astryx.css wrapped in @layer astryx-base.
*
* Usage: node scripts/build-css.mjs
*
* This script:
* 1. Runs Babel with the StyleX plugin over all source files
* 2. Collects all StyleX rules
- * 3. Outputs a combined xds.css with all rules in @layer xds-base
+ * 3. Outputs a combined astryx.css with all rules in @layer astryx-base
*
* Dist consumers import the full stylesheet:
- * import '@xds/core/xds.css';
+ * import '@xds/core/astryx.css';
*/
import {transformAsync} from '@babel/core';
@@ -98,21 +98,13 @@ async function main() {
const combinedCSS = stylexBabelPlugin.processStylexRules(allRules, false);
- const combinedPath = path.resolve(CORE_DIST, 'xds.css');
- const combinedFileContents = `/* XDS Pre-compiled StyleX CSS — all components */\n/* Auto-generated. Do not edit manually. */\n\n@layer xds-base {\n${combinedCSS
+ const astryxPath = path.resolve(CORE_DIST, 'astryx.css');
+ const combinedFileContents = `/* Astryx Pre-compiled StyleX CSS — all components */\n/* Auto-generated. Do not edit manually. */\n\n@layer astryx-base {\n${combinedCSS
.split('\n')
.map(line => ' ' + line)
.join('\n')}\n}\n`;
- await fs.writeFile(combinedPath, combinedFileContents, 'utf8');
- console.log(`xds.css: ${(combinedCSS.length / 1024).toFixed(1)} KB`);
-
- // Emit a sibling astryx.css with identical content (XDS-prefix migration
- // P2380608025). Gives consumers a forward-named import path
- // ('@xds/core/astryx.css') during the compat window; the layer name stays
- // xds-base until the final cutover (P10). Both files are kept in lockstep.
- const astryxPath = path.resolve(CORE_DIST, 'astryx.css');
await fs.writeFile(astryxPath, combinedFileContents, 'utf8');
- console.log(`astryx.css: ${(combinedCSS.length / 1024).toFixed(1)} KB (sibling of xds.css)`);
+ console.log(`astryx.css: ${(combinedCSS.length / 1024).toFixed(1)} KB`);
}
main().catch(err => {
diff --git a/scripts/build-css.test.mjs b/scripts/build-css.test.mjs
index d69ed3b00a..0001ef9968 100644
--- a/scripts/build-css.test.mjs
+++ b/scripts/build-css.test.mjs
@@ -4,7 +4,7 @@
* @file build-css.test.mjs
* Integration test for build-css.mjs
*
- * Validates that xds.css contains expected @media wrappers and
+ * Validates that astryx.css contains expected @media wrappers and
* prefers-reduced-motion rules.
*/
@@ -45,42 +45,42 @@ function extractMediaRules(css) {
return rules;
}
-describe('build-css xds.css', () => {
- let xdsCss;
+describe('build-css astryx.css', () => {
+ let astryxCss;
beforeAll(async () => {
console.log('Running pnpm build...');
execSync('pnpm build', {cwd: ROOT, stdio: 'pipe', timeout: 120_000});
- xdsCss = await fs.readFile(path.join(CORE_DIST, 'xds.css'), 'utf8');
+ astryxCss = await fs.readFile(path.join(CORE_DIST, 'astryx.css'), 'utf8');
}, 180_000);
it('contains @media rules', () => {
- const mediaRules = extractMediaRules(xdsCss);
+ const mediaRules = extractMediaRules(astryxCss);
expect(mediaRules.length).toBeGreaterThan(0);
- console.log(`xds.css has ${mediaRules.length} @media rules`);
+ console.log(`astryx.css has ${mediaRules.length} @media rules`);
});
it('contains prefers-reduced-motion rules', () => {
- const mediaRules = extractMediaRules(xdsCss);
+ const mediaRules = extractMediaRules(astryxCss);
const motionRules = mediaRules.filter(r =>
r.includes('prefers-reduced-motion'),
);
expect(motionRules.length).toBeGreaterThan(0);
- console.log(`xds.css has ${motionRules.length} prefers-reduced-motion rules`);
+ console.log(`astryx.css has ${motionRules.length} prefers-reduced-motion rules`);
});
it('no transition-duration:0s rules appear outside @media blocks', () => {
const zeroTransitionRegex =
/\.[a-z][a-z0-9_-]+[^{}]*\{[^}]*transition-duration:\s*0s[^}]*\}/g;
- const matches = [...xdsCss.matchAll(zeroTransitionRegex)];
+ const matches = [...astryxCss.matchAll(zeroTransitionRegex)];
for (const match of matches) {
const position = match.index;
- const before = xdsCss.slice(0, position);
+ const before = astryxCss.slice(0, position);
const mediaStarts = [...before.matchAll(/@media[^{]*\{/g)];
const isWrapped = mediaStarts.some(m => {
const mediaStart = m.index;
- const afterMedia = xdsCss.slice(mediaStart);
+ const afterMedia = astryxCss.slice(mediaStart);
let depth = 0;
for (let i = 0; i < afterMedia.length; i++) {
if (afterMedia[i] === '{') depth++;
diff --git a/scripts/bundle-analysis.mjs b/scripts/bundle-analysis.mjs
index 8aa5106320..e9d753f09f 100644
--- a/scripts/bundle-analysis.mjs
+++ b/scripts/bundle-analysis.mjs
@@ -106,12 +106,12 @@ function measure(names, comps) {
tG += s.gzip;
tR += s.raw;
}
- const xdsCss = existsSync(join(DIST, 'xds.css')) ? gzSize(join(DIST, 'xds.css')) : {raw: 0, gzip: 0};
+ const astryxCss = existsSync(join(DIST, 'astryx.css')) ? gzSize(join(DIST, 'astryx.css')) : {raw: 0, gzip: 0};
return {
count: found.length, found,
js: {gzip: tG, raw: tR, files: allDeps.size},
- xdsCss,
- total: {gzip: tG + xdsCss.gzip, raw: tR + xdsCss.raw},
+ astryxCss,
+ total: {gzip: tG + astryxCss.gzip, raw: tR + astryxCss.raw},
};
}
@@ -126,7 +126,7 @@ function printSet(label, r) {
console.log(`${label} (${r.count} components)`);
console.log('─'.repeat(65));
console.log(` JS: ${pad(fmt(r.js.gzip), 10, 'right')} (${r.js.files} files)`);
- console.log(` xds.css: ${pad(fmt(r.xdsCss.gzip), 10, 'right')}`);
+ console.log(` astryx.css: ${pad(fmt(r.astryxCss.gzip), 10, 'right')}`);
console.log(` ${'─'.repeat(16)}`);
console.log(` Total shipped: ${pad(fmt(r.total.gzip), 10, 'right')}`);
}
diff --git a/scripts/generate-compat-aliases.mjs b/scripts/generate-compat-aliases.mjs
deleted file mode 100644
index 2a7003d170..0000000000
--- a/scripts/generate-compat-aliases.mjs
+++ /dev/null
@@ -1,199 +0,0 @@
-#!/usr/bin/env node
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-/**
- * @file generate-compat-aliases.mjs
- * @description Codegen for the XDS-prefix migration compatibility layer
- * (P2380608025). Appends unprefixed alias re-exports alongside the
- * existing XDS* exports in component barrel files (index.ts).
- *
- * Idempotent: strips the old generated block, re-generates from scratch.
- * Skips aliases whose bare name already exists in the barrel.
- *
- * Usage:
- * node scripts/generate-compat-aliases.mjs # write in place
- * node scripts/generate-compat-aliases.mjs --check # exit 1 if stale
- */
-import * as fs from 'node:fs';
-import * as path from 'node:path';
-import {fileURLToPath} from 'node:url';
-
-const __dirname = path.dirname(fileURLToPath(import.meta.url));
-const SRC = path.resolve(__dirname, '../packages/core/src');
-const MARKER_START = '// <compat-aliases:start> — generated, do not edit by hand';
-const MARKER_END = '// <compat-aliases:end>';
-
-/** Strip block + line comments from TS source. */
-function stripComments(txt) {
- return txt.replace(/\/\*[\s\S]*?\*\//g, '').replace(/\/\/.*/g, '');
-}
-
-/**
- * Parse all export statements from a barrel file into structured entries.
- * Returns [{name, alias?, source, isType}] where `name` is the imported
- * identifier, `alias` is the exported name (if renamed), and `source` is
- * the module specifier string.
- */
-function parseExportEntries(txt) {
- const clean = stripComments(txt);
- const entries = [];
- // Matches: export [type] { ... } from '...'
- // Also inline: export { X, type Y } from '...'
- const re = /export\s+(type\s+)?\{([^}]*)\}\s*from\s*['"]([^'"]+)['"]/g;
- let m;
- while ((m = re.exec(clean))) {
- const blockIsType = Boolean(m[1]);
- const specifiers = m[2];
- const source = m[3];
- for (let part of specifiers.split(',')) {
- part = part.trim();
- if (!part) continue;
- let isType = blockIsType;
- if (part.startsWith('type ')) {
- isType = true;
- part = part.slice(5).trim();
- }
- let name, alias;
- if (part.includes(' as ')) {
- [name, alias] = part.split(/\s+as\s+/);
- } else {
- name = part;
- alias = part;
- }
- entries.push({name: name.trim(), alias: alias.trim(), source, isType});
- }
- }
- return entries;
-}
-
-/**
- * Compute the legacy XDS-prefixed name for a bare canonical identifier.
- * Post-P4 the source declares bare names (Button, useTheme); this generator
- * emits the deprecated XDS* aliases (XDSButton, useXDSTheme) for compat.
- * Hooks: use<Cap> -> useXDS<Cap>. Components/types: <Cap> -> XDS<Cap>.
- */
-function prefixedName(id) {
- if (/^use[A-Z]/.test(id)) return 'useXDS' + id.slice(3);
- if (/^[A-Z]/.test(id)) return 'XDS' + id;
- return null;
-}
-
-/**
- * Pre-pass: collect XDS-prefixed names already exported by ANY barrel.
- * The root barrel uses `export *`, so a generated prefixed alias that
- * duplicates an existing prefixed export elsewhere causes TS2308 ambiguity.
- * We skip those.
- */
-function collectExistingPrefixedNames() {
- const prefixed = new Set();
- for (const entry of fs.readdirSync(SRC, {withFileTypes: true})) {
- if (!entry.isDirectory()) continue;
- const idx = path.join(SRC, entry.name, 'index.ts');
- if (!fs.existsSync(idx)) continue;
- let raw = fs.readFileSync(idx, 'utf8');
- // Only look at the human-authored part (strip any generated block) so we
- // don't treat previously-generated aliases as "existing".
- if (raw.includes(MARKER_START)) raw = raw.slice(0, raw.indexOf(MARKER_START));
- for (const e of parseExportEntries(raw)) {
- if (e.alias.startsWith('XDS') || e.alias.startsWith('useXDS')) {
- prefixed.add(e.alias);
- }
- }
- }
- return prefixed;
-}
-
-const EXISTING_PREFIXED = collectExistingPrefixedNames();
-
-function generateBlock(filePath) {
- const raw = fs.readFileSync(filePath, 'utf8');
- // Strip any previous generated block to make this idempotent.
- const base = raw.includes(MARKER_START)
- ? raw.slice(0, raw.indexOf(MARKER_START)).replace(/\n+$/, '\n')
- : raw.replace(/\n+$/, '\n');
-
- const entries = parseExportEntries(base);
- // Collect all currently-exported names (the alias/exported-as side)
- const existingNames = new Set(entries.map(e => e.alias));
-
- // Build alias specifiers. Every alias re-exports from the barrel itself
- // ('.') rather than the original source module: by the time this block runs,
- // the bare canonical name is already exported by this barrel, and
- // re-exporting from '.' avoids the renamed-re-export problem and preserves
- // module augmentability through the alias (verified: a consumer augmenting
- // the XDS* alias flows to the bare canonical interface).
- const valueSpecs = [];
- const typeSpecs = [];
-
- for (const entry of entries) {
- const exported = entry.alias;
- const prefixed = prefixedName(exported);
- if (!prefixed) continue;
- if (existingNames.has(prefixed)) continue; // skip if prefixed already exported in THIS barrel
- if (EXISTING_PREFIXED.has(prefixed)) continue; // skip if prefixed already exported by ANY barrel (root export * ambiguity)
- const spec = `${exported} as ${prefixed}`;
- (entry.isType ? typeSpecs : valueSpecs).push(spec);
- }
-
- // De-dup (a barrel may export the same bare name more than once).
- const uniqValue = [...new Set(valueSpecs)].sort();
- const uniqType = [...new Set(typeSpecs)].sort();
- if (uniqValue.length === 0 && uniqType.length === 0) return {base, block: null};
-
- const lines = [
- '',
- MARKER_START,
- '// Legacy XDS-prefixed compatibility aliases (XDS-prefix migration P2380608025).',
- '// Bare names above are canonical + module-augmentation targets.',
- '// These prefixed re-exports reference the SAME values/types and remain',
- '// augmentable (consumer `declare module` augmentations of XDS* flow through).',
- '// Regenerate: node scripts/generate-compat-aliases.mjs',
- ];
- if (uniqValue.length) {
- lines.push('export {');
- for (const v of uniqValue) lines.push(` ${v},`);
- lines.push("} from '.';");
- }
- if (uniqType.length) {
- lines.push('export type {');
- for (const t of uniqType) lines.push(` ${t},`);
- lines.push("} from '.';");
- }
- lines.push(MARKER_END);
- return {base, block: lines.join('\n') + '\n'};
-}
-
-// Main
-const check = process.argv.includes('--check');
-let updated = 0;
-let stale = 0;
-
-for (const entry of fs.readdirSync(SRC, {withFileTypes: true})) {
- if (!entry.isDirectory()) continue;
- const idx = path.join(SRC, entry.name, 'index.ts');
- if (!fs.existsSync(idx)) continue;
-
- const {base, block} = generateBlock(idx);
- const desired = block ? base + '\n' + block : base;
-
- const current = fs.readFileSync(idx, 'utf8');
- if (desired !== current) {
- if (check) {
- stale++;
- console.error(` stale: ${entry.name}/index.ts`);
- } else {
- fs.writeFileSync(idx, desired);
- updated++;
- }
- }
-}
-
-if (check) {
- if (stale) {
- console.error(`\n${stale} barrel(s) have stale compat aliases.`);
- console.error('Run: node scripts/generate-compat-aliases.mjs');
- process.exit(1);
- }
- console.log('✓ Compat aliases up to date');
-} else {
- console.log(`✓ Compat aliases: ${updated} barrel(s) updated`);
-}
diff --git a/scripts/sync-exports.js b/scripts/sync-exports.js
index 6212f430f6..1233e19f54 100644
--- a/scripts/sync-exports.js
+++ b/scripts/sync-exports.js
@@ -54,10 +54,6 @@ const STATIC_EXPORTS = {
types: './src/reset.css.d.ts',
default: './src/reset.css',
},
- './xds.css': {
- types: './src/xds.css.d.ts',
- default: './dist/xds.css',
- },
'./astryx.css': {
types: './src/astryx.css.d.ts',
default: './dist/astryx.css',