@astryxdesign/core 0.1.0-canary.f94dd07 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,7 +115,7 @@ function useThemeStyleInjection(theme) {
115
115
  // One-time perf hint per theme
116
116
  if (!warnedThemes.has(theme.name)) {
117
117
  warnedThemes.add(theme.name);
118
- console.warn(`[Astryx] Theme "${theme.name}" is using runtime style injection. ` + `For better performance, use the pre-built theme:\n\n` + ` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` + ` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` + `For custom themes, run \`npx astryx theme build <file>\` to generate ` + `the built artifacts.`);
118
+ console.warn(`[XDS] Theme "${theme.name}" is using runtime style injection. ` + `For better performance, use the pre-built theme:\n\n` + ` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` + ` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` + `For custom themes, run \`npx astryx theme build <file>\` to generate ` + `the built artifacts.`);
119
119
  }
120
120
  const {
121
121
  prose,
@@ -97,7 +97,7 @@ export function resolveSyntaxTokenForMode(value, mode) {
97
97
  export function defineSyntaxTheme(input) {
98
98
  const missing = ALL_SYNTAX_KEYS.filter(key => !(key in input.tokens));
99
99
  if (missing.length > 0) {
100
- console.warn('[Astryx] defineSyntaxTheme("' + input.name + '"): missing tokens: ' + missing.join(', ') + '. All 14 syntax tokens are required.');
100
+ console.warn('[XDS] defineSyntaxTheme("' + input.name + '"): missing tokens: ' + missing.join(', ') + '. All 14 syntax tokens are required.');
101
101
  }
102
102
 
103
103
  // Resolve tuples to light-dark() CSS strings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/core",
3
- "version": "0.1.0-canary.f94dd07",
3
+ "version": "0.1.0",
4
4
  "displayName": "XDS Core",
5
5
  "description": "The component library. Accessible, themeable React components with built-in spacing, dark mode, and StyleX styling.",
6
6
  "author": "Meta Open Source",
@@ -123,7 +123,7 @@ function useThemeStyleInjection(theme: DefinedTheme): void {
123
123
  if (!warnedThemes.has(theme.name)) {
124
124
  warnedThemes.add(theme.name);
125
125
  console.warn(
126
- `[Astryx] Theme "${theme.name}" is using runtime style injection. ` +
126
+ `[XDS] Theme "${theme.name}" is using runtime style injection. ` +
127
127
  `For better performance, use the pre-built theme:\n\n` +
128
128
  ` import {${theme.name}Theme} from '@astryxdesign/theme-${theme.name}/built';\n` +
129
129
  ` import '@astryxdesign/theme-${theme.name}/theme.css';\n\n` +
@@ -134,7 +134,7 @@ export function defineSyntaxTheme(input: SyntaxThemeInput): SyntaxThemeDefinitio
134
134
  const missing = ALL_SYNTAX_KEYS.filter(key => !(key in input.tokens));
135
135
  if (missing.length > 0) {
136
136
  console.warn(
137
- '[Astryx] defineSyntaxTheme("' + input.name + '"): missing tokens: ' +
137
+ '[XDS] defineSyntaxTheme("' + input.name + '"): missing tokens: ' +
138
138
  missing.join(', ') + '. All 14 syntax tokens are required.',
139
139
  );
140
140
  }