@nxds/core 0.12.0 → 0.13.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.
- package/README.md +9 -0
- package/dist/runtime/catalogue.cjs +673 -642
- package/dist/runtime/catalogue.cjs.map +1 -1
- package/dist/runtime/catalogue.d.cts +22 -8
- package/dist/runtime/catalogue.d.ts +22 -8
- package/dist/runtime/catalogue.js +673 -642
- package/dist/runtime/catalogue.js.map +1 -1
- package/dist/runtime/index.cjs +409 -389
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +2 -2
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +409 -389
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/{surface-ladder-CAjRqzCx.d.ts → surface-ladder-Cqo5DfZW.d.ts} +4 -2
- package/dist/runtime/{surface-ladder-tv7B_RKy.d.cts → surface-ladder-DZQFqJvm.d.cts} +4 -2
- package/package.json +1 -1
|
@@ -166,7 +166,9 @@ declare const FONT_SIZE_PX_MAX = 32;
|
|
|
166
166
|
declare function normalizeAppearanceModeIds(raw: unknown): unknown;
|
|
167
167
|
declare function sanitizeNxdsAppearancePrefs(raw: unknown): NxdsAppearancePrefs;
|
|
168
168
|
declare function sanitizeNxdsAppearance(rawInput: unknown): NxdsAppearanceState;
|
|
169
|
-
|
|
169
|
+
/** The appearance fields runtime colours derive from. */
|
|
170
|
+
type NxdsColorAppearance = Pick<NxdsAppearanceState, 'brandColor' | 'surfaceTone' | 'lightContrast' | 'darkContrast'>;
|
|
171
|
+
declare function createNxdsThemeContract(state: NxdsColorAppearance): ThemeDerivationInput;
|
|
170
172
|
declare function appearancePrefsToCss(prefs: NxdsAppearancePrefs): string;
|
|
171
173
|
|
|
172
174
|
/**
|
|
@@ -259,4 +261,4 @@ declare const DARK_SURFACE_LADDER: {
|
|
|
259
261
|
};
|
|
260
262
|
};
|
|
261
263
|
|
|
262
|
-
export { BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, FONT_SIZE_PX_MAX as F, LIGHT_SURFACE_LADDER as L, type
|
|
264
|
+
export { themeToCss as A, BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, FONT_SIZE_PX_MAX as F, LIGHT_SURFACE_LADDER as L, type NxdsColorAppearance as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsPresetField as b, type ShadeAnchor as c, type NxdsAppearanceState as d, type DerivedTheme as e, BASE_TONE_SEEDS as f, DEFAULT_BRAND_COLOR as g, DEFAULT_NXDS_APPEARANCE as h, DENSITY_OPTIONS as i, FONT_SIZE_PX_MIN as j, type NxdsAppearanceMode as k, type NxdsCorners as l, type NxdsDensity as m, type NxdsElevation as n, type NxdsStroke as o, type NxdsThemeContract as p, STROKE_OPTIONS as q, type SurfaceToken as r, type ThemeSeeds as s, type TokenMap as t, appearancePrefsToCss as u, createNxdsThemeContract as v, deriveTheme as w, normalizeAppearanceModeIds as x, sanitizeNxdsAppearance as y, sanitizeNxdsAppearancePrefs as z };
|
|
@@ -166,7 +166,9 @@ declare const FONT_SIZE_PX_MAX = 32;
|
|
|
166
166
|
declare function normalizeAppearanceModeIds(raw: unknown): unknown;
|
|
167
167
|
declare function sanitizeNxdsAppearancePrefs(raw: unknown): NxdsAppearancePrefs;
|
|
168
168
|
declare function sanitizeNxdsAppearance(rawInput: unknown): NxdsAppearanceState;
|
|
169
|
-
|
|
169
|
+
/** The appearance fields runtime colours derive from. */
|
|
170
|
+
type NxdsColorAppearance = Pick<NxdsAppearanceState, 'brandColor' | 'surfaceTone' | 'lightContrast' | 'darkContrast'>;
|
|
171
|
+
declare function createNxdsThemeContract(state: NxdsColorAppearance): ThemeDerivationInput;
|
|
170
172
|
declare function appearancePrefsToCss(prefs: NxdsAppearancePrefs): string;
|
|
171
173
|
|
|
172
174
|
/**
|
|
@@ -259,4 +261,4 @@ declare const DARK_SURFACE_LADDER: {
|
|
|
259
261
|
};
|
|
260
262
|
};
|
|
261
263
|
|
|
262
|
-
export { BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, FONT_SIZE_PX_MAX as F, LIGHT_SURFACE_LADDER as L, type
|
|
264
|
+
export { themeToCss as A, BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, FONT_SIZE_PX_MAX as F, LIGHT_SURFACE_LADDER as L, type NxdsColorAppearance as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsPresetField as b, type ShadeAnchor as c, type NxdsAppearanceState as d, type DerivedTheme as e, BASE_TONE_SEEDS as f, DEFAULT_BRAND_COLOR as g, DEFAULT_NXDS_APPEARANCE as h, DENSITY_OPTIONS as i, FONT_SIZE_PX_MIN as j, type NxdsAppearanceMode as k, type NxdsCorners as l, type NxdsDensity as m, type NxdsElevation as n, type NxdsStroke as o, type NxdsThemeContract as p, STROKE_OPTIONS as q, type SurfaceToken as r, type ThemeSeeds as s, type TokenMap as t, appearancePrefsToCss as u, createNxdsThemeContract as v, deriveTheme as w, normalizeAppearanceModeIds as x, sanitizeNxdsAppearance as y, sanitizeNxdsAppearancePrefs as z };
|