@nxds/core 0.10.0 → 0.12.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/dist/runtime/catalogue.cjs +85 -3
- package/dist/runtime/catalogue.cjs.map +1 -1
- package/dist/runtime/catalogue.d.cts +2 -2
- package/dist/runtime/catalogue.d.ts +2 -2
- package/dist/runtime/catalogue.js +85 -3
- package/dist/runtime/catalogue.js.map +1 -1
- package/dist/runtime/index.cjs +396 -5
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +195 -5
- package/dist/runtime/index.d.ts +195 -5
- package/dist/runtime/index.js +385 -5
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/{surface-ladder-B950TU4_.d.ts → surface-ladder-CAjRqzCx.d.ts} +6 -1
- package/dist/runtime/{surface-ladder-C8HTwT7z.d.cts → surface-ladder-tv7B_RKy.d.cts} +6 -1
- package/package.json +1 -1
|
@@ -49,6 +49,8 @@ type NxdsElevation = 'flat' | 'quiet' | 'soft' | 'standard' | 'strong';
|
|
|
49
49
|
type NxdsStroke = 'fine' | 'normal' | 'strong';
|
|
50
50
|
interface NxdsAppearancePrefs {
|
|
51
51
|
uiFont: string;
|
|
52
|
+
/** The heading `font-family` stack. `null` follows `uiFont`. */
|
|
53
|
+
headingFont: string | null;
|
|
52
54
|
codeFont: string;
|
|
53
55
|
uiFontSize: number;
|
|
54
56
|
codeFontSize: number;
|
|
@@ -158,6 +160,9 @@ declare const STROKE_OPTIONS: readonly [{
|
|
|
158
160
|
readonly label: "Strong";
|
|
159
161
|
}];
|
|
160
162
|
declare const DEFAULT_NXDS_APPEARANCE: NxdsAppearanceState;
|
|
163
|
+
/** The font sizes, in px, the appearance prefs take. */
|
|
164
|
+
declare const FONT_SIZE_PX_MIN = 8;
|
|
165
|
+
declare const FONT_SIZE_PX_MAX = 32;
|
|
161
166
|
declare function normalizeAppearanceModeIds(raw: unknown): unknown;
|
|
162
167
|
declare function sanitizeNxdsAppearancePrefs(raw: unknown): NxdsAppearancePrefs;
|
|
163
168
|
declare function sanitizeNxdsAppearance(rawInput: unknown): NxdsAppearanceState;
|
|
@@ -254,4 +259,4 @@ declare const DARK_SURFACE_LADDER: {
|
|
|
254
259
|
};
|
|
255
260
|
};
|
|
256
261
|
|
|
257
|
-
export { BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, LIGHT_SURFACE_LADDER as L, type NxdsPresetField as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsAppearanceState as b, type ShadeAnchor as c, type DerivedTheme as d, BASE_TONE_SEEDS as e, DEFAULT_BRAND_COLOR as f, DEFAULT_NXDS_APPEARANCE as g, DENSITY_OPTIONS as h, type NxdsAppearanceMode as
|
|
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 NxdsPresetField as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsAppearanceState as b, type ShadeAnchor as c, type DerivedTheme as d, BASE_TONE_SEEDS as e, DEFAULT_BRAND_COLOR as f, DEFAULT_NXDS_APPEARANCE as g, DENSITY_OPTIONS as h, FONT_SIZE_PX_MIN as i, type NxdsAppearanceMode as j, type NxdsCorners as k, type NxdsDensity as l, type NxdsElevation as m, type NxdsStroke as n, type NxdsThemeContract as o, STROKE_OPTIONS as p, type SurfaceToken as q, type ThemeSeeds as r, type TokenMap as s, appearancePrefsToCss as t, createNxdsThemeContract as u, deriveTheme as v, normalizeAppearanceModeIds as w, sanitizeNxdsAppearance as x, sanitizeNxdsAppearancePrefs as y, themeToCss as z };
|
|
@@ -49,6 +49,8 @@ type NxdsElevation = 'flat' | 'quiet' | 'soft' | 'standard' | 'strong';
|
|
|
49
49
|
type NxdsStroke = 'fine' | 'normal' | 'strong';
|
|
50
50
|
interface NxdsAppearancePrefs {
|
|
51
51
|
uiFont: string;
|
|
52
|
+
/** The heading `font-family` stack. `null` follows `uiFont`. */
|
|
53
|
+
headingFont: string | null;
|
|
52
54
|
codeFont: string;
|
|
53
55
|
uiFontSize: number;
|
|
54
56
|
codeFontSize: number;
|
|
@@ -158,6 +160,9 @@ declare const STROKE_OPTIONS: readonly [{
|
|
|
158
160
|
readonly label: "Strong";
|
|
159
161
|
}];
|
|
160
162
|
declare const DEFAULT_NXDS_APPEARANCE: NxdsAppearanceState;
|
|
163
|
+
/** The font sizes, in px, the appearance prefs take. */
|
|
164
|
+
declare const FONT_SIZE_PX_MIN = 8;
|
|
165
|
+
declare const FONT_SIZE_PX_MAX = 32;
|
|
161
166
|
declare function normalizeAppearanceModeIds(raw: unknown): unknown;
|
|
162
167
|
declare function sanitizeNxdsAppearancePrefs(raw: unknown): NxdsAppearancePrefs;
|
|
163
168
|
declare function sanitizeNxdsAppearance(rawInput: unknown): NxdsAppearanceState;
|
|
@@ -254,4 +259,4 @@ declare const DARK_SURFACE_LADDER: {
|
|
|
254
259
|
};
|
|
255
260
|
};
|
|
256
261
|
|
|
257
|
-
export { BASE_TONE_OPTIONS as B, CORNER_OPTIONS as C, DARK_SURFACE_LADDER as D, ELEVATION_OPTIONS as E, LIGHT_SURFACE_LADDER as L, type NxdsPresetField as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsAppearanceState as b, type ShadeAnchor as c, type DerivedTheme as d, BASE_TONE_SEEDS as e, DEFAULT_BRAND_COLOR as f, DEFAULT_NXDS_APPEARANCE as g, DENSITY_OPTIONS as h, type NxdsAppearanceMode as
|
|
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 NxdsPresetField as N, SURFACE_TOKENS as S, type ThemeDerivationInput as T, type NxdsAppearancePrefs as a, type NxdsAppearanceState as b, type ShadeAnchor as c, type DerivedTheme as d, BASE_TONE_SEEDS as e, DEFAULT_BRAND_COLOR as f, DEFAULT_NXDS_APPEARANCE as g, DENSITY_OPTIONS as h, FONT_SIZE_PX_MIN as i, type NxdsAppearanceMode as j, type NxdsCorners as k, type NxdsDensity as l, type NxdsElevation as m, type NxdsStroke as n, type NxdsThemeContract as o, STROKE_OPTIONS as p, type SurfaceToken as q, type ThemeSeeds as r, type TokenMap as s, appearancePrefsToCss as t, createNxdsThemeContract as u, deriveTheme as v, normalizeAppearanceModeIds as w, sanitizeNxdsAppearance as x, sanitizeNxdsAppearancePrefs as y, themeToCss as z };
|