An open source design system that's fully customizable and agent ready
TypeScript
fix(cli): use bare component names in CLI doc/usage examples (#2947)
EJ Hammond5344e11d1513
diff --git a/packages/cli/src/commands/build-theme.mjs b/packages/cli/src/commands/build-theme.mjsindex 60be091007..fe24043389 100644--- a/packages/cli/src/commands/build-theme.mjs+++ b/packages/cli/src/commands/build-theme.mjs@@ -1221,18 +1221,18 @@ Install in your app:import { ${exportName} } from '${importPrefix}${baseName}';import '${importPrefix}${baseName}.css';- <XDSTheme theme={${exportName}}>+ <Theme theme={${exportName}}><App />- </XDSTheme>+ </Theme>Or with a <link> tag:import { ${exportName} } from '${importPrefix}${baseName}';<link rel="stylesheet" href="${importPrefix}${baseName}.css" />- <XDSTheme theme={${exportName}}>+ <Theme theme={${exportName}}><App />- </XDSTheme>+ </Theme>`);// Print font declaration warnings (derived from typography roles)diff --git a/packages/cli/src/commands/component/index.mjs b/packages/cli/src/commands/component/index.mjsindex 6244a69b57..48b4d0da93 100644--- a/packages/cli/src/commands/component/index.mjs+++ b/packages/cli/src/commands/component/index.mjs@@ -107,7 +107,7 @@ export function registerComponent(program) {}}humanLog('');- humanLog(`Import from the path shown (e.g. import {XDSButton} from '@xds/core/Button')`);+ humanLog(`Import from the path shown (e.g. import {Button} from '@xds/core/Button')`);humanLog(`Usage: ${run} xds component <name>`);humanLog('');}@@ -130,7 +130,7 @@ export function registerComponent(program) {}humanLog('');}- humanLog(`Import from the path shown (e.g. import {XDSButton} from '@xds/core/Button')`);+ humanLog(`Import from the path shown (e.g. import {Button} from '@xds/core/Button')`);humanLog(`Usage: ${run} xds component <name>`);humanLog('');break;diff --git a/packages/cli/src/commands/init.mjs b/packages/cli/src/commands/init.mjsindex 9804129476..3edaa6a1da 100644--- a/packages/cli/src/commands/init.mjs+++ b/packages/cli/src/commands/init.mjs@@ -244,10 +244,10 @@ export function registerInit(program) {humanLog('');humanLog(' Next steps:');- humanLog(" 1. Import components: import { XDSButton } from '@xds/core'");+ humanLog(" 1. Import components: import { Button } from '@xds/core'");humanLog(' 2. Optionally add a theme:');humanLog(" import { defaultTheme } from '@xds/theme-default'");- humanLog(' <XDSTheme theme={defaultTheme}>...</XDSTheme>');+ humanLog(' <Theme theme={defaultTheme}>...</Theme>');humanLog(` 3. ${run} xds --help for all commands`);humanLog('');});