@nxds/core 0.7.2 → 0.9.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.
@@ -1,6 +1,6 @@
1
- import { N as NexusPresetField, a as NexusAppearancePrefs, b as NexusAppearanceState } from './surface-ladder-C2sSp67b.cjs';
2
- export { D as DARK_SURFACE_LADDER, L as LIGHT_SURFACE_LADDER, S as SURFACE_TOKENS, c as ShadeAnchor } from './surface-ladder-C2sSp67b.cjs';
3
- import { M as Mode } from './palette-DgJXuoTz.cjs';
1
+ import { N as NxdsPresetField, a as NxdsAppearancePrefs, b as NxdsAppearanceState } from './surface-ladder-C8HTwT7z.cjs';
2
+ export { D as DARK_SURFACE_LADDER, L as LIGHT_SURFACE_LADDER, S as SURFACE_TOKENS, c as ShadeAnchor } from './surface-ladder-C8HTwT7z.cjs';
3
+ import { M as Mode } from './palette-BKTIQ0WC.cjs';
4
4
 
5
5
  /** An authored DTCG `$value`: a scalar, a reference string, or a composite. */
6
6
  type TokenValue = string | number | boolean | null | readonly TokenValue[] | {
@@ -64,7 +64,7 @@ interface CatalogueVariant {
64
64
  /** The authored leaf, or `null` for a colour the engine derives. */
65
65
  readonly source: CatalogueSource | null;
66
66
  /** The full appearance config a derived colour was computed from. */
67
- readonly appearance: DeepReadonly<NexusAppearanceState> | null;
67
+ readonly appearance: DeepReadonly<NxdsAppearanceState> | null;
68
68
  readonly authoredValue: TokenValue | null;
69
69
  /**
70
70
  * What the generated CSS declares: one custom property for a scalar or a
@@ -81,10 +81,10 @@ interface CatalogueVariant {
81
81
  */
82
82
  type CatalogueControl = {
83
83
  readonly kind: 'preset';
84
- readonly field: NexusPresetField;
84
+ readonly field: NxdsPresetField;
85
85
  } | {
86
86
  readonly kind: 'pref';
87
- readonly field: keyof NexusAppearancePrefs;
87
+ readonly field: keyof NxdsAppearancePrefs;
88
88
  };
89
89
  interface CatalogueToken {
90
90
  readonly name: CatalogueTokenName;
@@ -104,9 +104,9 @@ interface CatalogueToken {
104
104
  }
105
105
 
106
106
  /**
107
- * Every Nexus token, identified by its `--nx-*` name: primitives, runtime
107
+ * Every nxds token, identified by its `--nx-*` name: primitives, runtime
108
108
  * colours, spacing, z-index, breakpoints, and typography and shadow styles.
109
- * Runtime colours are computed from `DEFAULT_NEXUS_APPEARANCE` in explicit
109
+ * Runtime colours are computed from `DEFAULT_NXDS_APPEARANCE` in explicit
110
110
  * light and dark modes; each variant records the appearance it used.
111
111
  */
112
112
  declare function createTokenCatalogue(): readonly CatalogueToken[];
@@ -1,6 +1,6 @@
1
- import { N as NexusPresetField, a as NexusAppearancePrefs, b as NexusAppearanceState } from './surface-ladder-yQyRTCRt.js';
2
- export { D as DARK_SURFACE_LADDER, L as LIGHT_SURFACE_LADDER, S as SURFACE_TOKENS, c as ShadeAnchor } from './surface-ladder-yQyRTCRt.js';
3
- import { M as Mode } from './palette-DgJXuoTz.js';
1
+ import { N as NxdsPresetField, a as NxdsAppearancePrefs, b as NxdsAppearanceState } from './surface-ladder-B950TU4_.js';
2
+ export { D as DARK_SURFACE_LADDER, L as LIGHT_SURFACE_LADDER, S as SURFACE_TOKENS, c as ShadeAnchor } from './surface-ladder-B950TU4_.js';
3
+ import { M as Mode } from './palette-BKTIQ0WC.js';
4
4
 
5
5
  /** An authored DTCG `$value`: a scalar, a reference string, or a composite. */
6
6
  type TokenValue = string | number | boolean | null | readonly TokenValue[] | {
@@ -64,7 +64,7 @@ interface CatalogueVariant {
64
64
  /** The authored leaf, or `null` for a colour the engine derives. */
65
65
  readonly source: CatalogueSource | null;
66
66
  /** The full appearance config a derived colour was computed from. */
67
- readonly appearance: DeepReadonly<NexusAppearanceState> | null;
67
+ readonly appearance: DeepReadonly<NxdsAppearanceState> | null;
68
68
  readonly authoredValue: TokenValue | null;
69
69
  /**
70
70
  * What the generated CSS declares: one custom property for a scalar or a
@@ -81,10 +81,10 @@ interface CatalogueVariant {
81
81
  */
82
82
  type CatalogueControl = {
83
83
  readonly kind: 'preset';
84
- readonly field: NexusPresetField;
84
+ readonly field: NxdsPresetField;
85
85
  } | {
86
86
  readonly kind: 'pref';
87
- readonly field: keyof NexusAppearancePrefs;
87
+ readonly field: keyof NxdsAppearancePrefs;
88
88
  };
89
89
  interface CatalogueToken {
90
90
  readonly name: CatalogueTokenName;
@@ -104,9 +104,9 @@ interface CatalogueToken {
104
104
  }
105
105
 
106
106
  /**
107
- * Every Nexus token, identified by its `--nx-*` name: primitives, runtime
107
+ * Every nxds token, identified by its `--nx-*` name: primitives, runtime
108
108
  * colours, spacing, z-index, breakpoints, and typography and shadow styles.
109
- * Runtime colours are computed from `DEFAULT_NEXUS_APPEARANCE` in explicit
109
+ * Runtime colours are computed from `DEFAULT_NXDS_APPEARANCE` in explicit
110
110
  * light and dark modes; each variant records the appearance it used.
111
111
  */
112
112
  declare function createTokenCatalogue(): readonly CatalogueToken[];
@@ -1078,7 +1078,7 @@ var STROKE_OPTIONS = [
1078
1078
  { value: "normal", label: "Normal" },
1079
1079
  { value: "strong", label: "Strong" }
1080
1080
  ];
1081
- var DEFAULT_NEXUS_APPEARANCE = {
1081
+ var DEFAULT_NXDS_APPEARANCE = {
1082
1082
  mode: "light",
1083
1083
  brandColor: DEFAULT_BRAND_COLOR,
1084
1084
  surfaceTone: "zinc",
@@ -1113,7 +1113,7 @@ var ELEVATIONS = new Set(
1113
1113
  var STROKES = new Set(
1114
1114
  STROKE_OPTIONS.map((option) => option.value)
1115
1115
  );
1116
- function createNexusThemeContract(state) {
1116
+ function createNxdsThemeContract(state) {
1117
1117
  const tone = BASE_TONE_SEEDS[state.surfaceTone];
1118
1118
  return {
1119
1119
  surfaceTone: state.surfaceTone,
@@ -8791,7 +8791,7 @@ var shadow_strong_light_default = {
8791
8791
 
8792
8792
  // tokens/semantic/breakpoints.json
8793
8793
  var breakpoints_default = {
8794
- $description: "Responsive breakpoints (rem). Values match Tailwind v4's own defaults exactly \u2014 Nexus declares them explicitly so they fall under the same reset-and-own discipline as every other namespace (color/spacing/radius/shadow) instead of being inherited implicitly. Tailwind v4 auto-discovers --breakpoint-* from @theme and uses them to generate the nx:sm:\u2026nx:2xl: responsive variants. Override at BUILD TIME by re-declaring a value in a consumer @theme block \u2014 NOT at runtime: @media cannot read var(), so Tailwind bakes the resolved value into the generated media queries at build time.",
8794
+ $description: "Responsive breakpoints (rem). Values match Tailwind v4's own defaults exactly \u2014 nxds declares them explicitly so they fall under the same reset-and-own discipline as every other namespace (color/spacing/radius/shadow) instead of being inherited implicitly. Tailwind v4 auto-discovers --breakpoint-* from @theme and uses them to generate the nx:sm:\u2026nx:2xl: responsive variants. Override at BUILD TIME by re-declaring a value in a consumer @theme block \u2014 NOT at runtime: @media cannot read var(), so Tailwind bakes the resolved value into the generated media queries at build time.",
8795
8795
  "breakpoint-sm": {
8796
8796
  $value: {
8797
8797
  value: 40,
@@ -11138,8 +11138,8 @@ function styleLeaves(family, file) {
11138
11138
  }
11139
11139
  function runtimeAppearance(mode) {
11140
11140
  return {
11141
- ...DEFAULT_NEXUS_APPEARANCE,
11142
- prefs: { ...DEFAULT_NEXUS_APPEARANCE.prefs },
11141
+ ...DEFAULT_NXDS_APPEARANCE,
11142
+ prefs: { ...DEFAULT_NXDS_APPEARANCE.prefs },
11143
11143
  mode
11144
11144
  };
11145
11145
  }
@@ -11157,7 +11157,7 @@ function runtimeColorTokens() {
11157
11157
  return {
11158
11158
  mode,
11159
11159
  appearance,
11160
- values: deriveThemeMode(createNexusThemeContract(appearance), mode)
11160
+ values: deriveThemeMode(createNxdsThemeContract(appearance), mode)
11161
11161
  };
11162
11162
  });
11163
11163
  return SEMANTIC_TOKEN_REGISTRY.map(({ name, category }) => {