@nxds/core 0.13.0 → 0.14.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,7 +1,7 @@
1
1
  import { T as Tier, P as PaletteKey, M as Mode } from './palette-BKTIQ0WC.cjs';
2
2
  export { N as NxdsSurfaceTone, a as PALETTE_KEYS, b as TIER_THRESHOLDS } from './palette-BKTIQ0WC.cjs';
3
- import { d as NxdsAppearanceState, e as DerivedTheme, a as NxdsAppearancePrefs } from './surface-ladder-DZQFqJvm.cjs';
4
- export { B as BASE_TONE_OPTIONS, f as BASE_TONE_SEEDS, C as CORNER_OPTIONS, g as DEFAULT_BRAND_COLOR, h as DEFAULT_NXDS_APPEARANCE, i as DENSITY_OPTIONS, E as ELEVATION_OPTIONS, F as FONT_SIZE_PX_MAX, j as FONT_SIZE_PX_MIN, k as NxdsAppearanceMode, N as NxdsColorAppearance, l as NxdsCorners, m as NxdsDensity, n as NxdsElevation, b as NxdsPresetField, o as NxdsStroke, p as NxdsThemeContract, q as STROKE_OPTIONS, r as SurfaceToken, T as ThemeDerivationInput, s as ThemeSeeds, t as TokenMap, u as appearancePrefsToCss, v as createNxdsThemeContract, w as deriveTheme, x as normalizeAppearanceModeIds, y as sanitizeNxdsAppearance, z as sanitizeNxdsAppearancePrefs, A as themeToCss } from './surface-ladder-DZQFqJvm.cjs';
3
+ import { f as NxdsAppearanceState, g as DerivedTheme, c as NxdsAppearancePrefs } from './surface-ladder-DQ9Yfwie.cjs';
4
+ export { B as BASE_TONE_OPTIONS, h as BASE_TONE_SEEDS, C as CORNER_OPTIONS, i as DEFAULT_BRAND_COLOR, j as DEFAULT_NXDS_APPEARANCE, k as DENSITY_OPTIONS, E as ELEVATION_OPTIONS, F as FONT_SIZE_PX_MAX, l as FONT_SIZE_PX_MIN, m as NxdsAppearanceMode, N as NxdsColorAppearance, n as NxdsCorners, o as NxdsDensity, p as NxdsElevation, d as NxdsPresetField, q as NxdsStroke, b as NxdsTextSize, r as NxdsThemeContract, a as NxdsUiScale, s as STROKE_OPTIONS, t as SurfaceToken, T as TEXT_SIZE_OPTIONS, u as ThemeDerivationInput, v as ThemeSeeds, w as TokenMap, U as UI_SCALE_OPTIONS, x as appearancePrefsToCss, y as createNxdsThemeContract, z as deriveTheme, A as normalizeAppearanceModeIds, G as sanitizeNxdsAppearance, H as sanitizeNxdsAppearancePrefs, I as textSizePx, J as themeToCss } from './surface-ladder-DQ9Yfwie.cjs';
5
5
  export { S as SpacingStep } from './token-scales.generated-CCNkHJ3I.cjs';
6
6
 
7
7
  type AdjustContrastTier = Tier;
@@ -203,15 +203,15 @@ interface NxdsShuffleOptions {
203
203
  /**
204
204
  * A random appearance from nxds's curated options: brand color preset, surface
205
205
  * tone, density, corners, elevation, stroke, UI font and heading font. Mode,
206
- * contrast and the other preferences stay as `state` has them.
206
+ * contrast, UI scale and the other preferences stay as `state` has them.
207
207
  */
208
208
  declare function shuffleNxdsAppearance(state: NxdsAppearanceState, { fonts, random }?: NxdsShuffleOptions): NxdsAppearanceState;
209
209
  /** A random icon library. */
210
210
  declare function shuffleNxdsIconLibrary({ random, }?: Pick<NxdsShuffleOptions, 'random'>): NxdsIconLibrary;
211
211
 
212
- declare const SNAPSHOT_VERSION = 9;
212
+ declare const SNAPSHOT_VERSION = 11;
213
213
  declare const STATE_COOKIE_VERSION = 6;
214
- declare const NXDS_APPEARANCE_DATA_ATTRS: readonly ["data-density", "data-radius", "data-shadow", "data-borderwidth"];
214
+ declare const NXDS_APPEARANCE_DATA_ATTRS: readonly ["data-ui-scale", "data-text-size", "data-density", "data-radius", "data-shadow", "data-borderwidth"];
215
215
  type NxdsAppearanceDataAttr = (typeof NXDS_APPEARANCE_DATA_ATTRS)[number];
216
216
  interface NxdsAppearanceSnapshot {
217
217
  version: typeof SNAPSHOT_VERSION;
@@ -1,7 +1,7 @@
1
1
  import { T as Tier, P as PaletteKey, M as Mode } from './palette-BKTIQ0WC.js';
2
2
  export { N as NxdsSurfaceTone, a as PALETTE_KEYS, b as TIER_THRESHOLDS } from './palette-BKTIQ0WC.js';
3
- import { d as NxdsAppearanceState, e as DerivedTheme, a as NxdsAppearancePrefs } from './surface-ladder-Cqo5DfZW.js';
4
- export { B as BASE_TONE_OPTIONS, f as BASE_TONE_SEEDS, C as CORNER_OPTIONS, g as DEFAULT_BRAND_COLOR, h as DEFAULT_NXDS_APPEARANCE, i as DENSITY_OPTIONS, E as ELEVATION_OPTIONS, F as FONT_SIZE_PX_MAX, j as FONT_SIZE_PX_MIN, k as NxdsAppearanceMode, N as NxdsColorAppearance, l as NxdsCorners, m as NxdsDensity, n as NxdsElevation, b as NxdsPresetField, o as NxdsStroke, p as NxdsThemeContract, q as STROKE_OPTIONS, r as SurfaceToken, T as ThemeDerivationInput, s as ThemeSeeds, t as TokenMap, u as appearancePrefsToCss, v as createNxdsThemeContract, w as deriveTheme, x as normalizeAppearanceModeIds, y as sanitizeNxdsAppearance, z as sanitizeNxdsAppearancePrefs, A as themeToCss } from './surface-ladder-Cqo5DfZW.js';
3
+ import { f as NxdsAppearanceState, g as DerivedTheme, c as NxdsAppearancePrefs } from './surface-ladder-B8LyPHC_.js';
4
+ export { B as BASE_TONE_OPTIONS, h as BASE_TONE_SEEDS, C as CORNER_OPTIONS, i as DEFAULT_BRAND_COLOR, j as DEFAULT_NXDS_APPEARANCE, k as DENSITY_OPTIONS, E as ELEVATION_OPTIONS, F as FONT_SIZE_PX_MAX, l as FONT_SIZE_PX_MIN, m as NxdsAppearanceMode, N as NxdsColorAppearance, n as NxdsCorners, o as NxdsDensity, p as NxdsElevation, d as NxdsPresetField, q as NxdsStroke, b as NxdsTextSize, r as NxdsThemeContract, a as NxdsUiScale, s as STROKE_OPTIONS, t as SurfaceToken, T as TEXT_SIZE_OPTIONS, u as ThemeDerivationInput, v as ThemeSeeds, w as TokenMap, U as UI_SCALE_OPTIONS, x as appearancePrefsToCss, y as createNxdsThemeContract, z as deriveTheme, A as normalizeAppearanceModeIds, G as sanitizeNxdsAppearance, H as sanitizeNxdsAppearancePrefs, I as textSizePx, J as themeToCss } from './surface-ladder-B8LyPHC_.js';
5
5
  export { S as SpacingStep } from './token-scales.generated-CCNkHJ3I.js';
6
6
 
7
7
  type AdjustContrastTier = Tier;
@@ -203,15 +203,15 @@ interface NxdsShuffleOptions {
203
203
  /**
204
204
  * A random appearance from nxds's curated options: brand color preset, surface
205
205
  * tone, density, corners, elevation, stroke, UI font and heading font. Mode,
206
- * contrast and the other preferences stay as `state` has them.
206
+ * contrast, UI scale and the other preferences stay as `state` has them.
207
207
  */
208
208
  declare function shuffleNxdsAppearance(state: NxdsAppearanceState, { fonts, random }?: NxdsShuffleOptions): NxdsAppearanceState;
209
209
  /** A random icon library. */
210
210
  declare function shuffleNxdsIconLibrary({ random, }?: Pick<NxdsShuffleOptions, 'random'>): NxdsIconLibrary;
211
211
 
212
- declare const SNAPSHOT_VERSION = 9;
212
+ declare const SNAPSHOT_VERSION = 11;
213
213
  declare const STATE_COOKIE_VERSION = 6;
214
- declare const NXDS_APPEARANCE_DATA_ATTRS: readonly ["data-density", "data-radius", "data-shadow", "data-borderwidth"];
214
+ declare const NXDS_APPEARANCE_DATA_ATTRS: readonly ["data-ui-scale", "data-text-size", "data-density", "data-radius", "data-shadow", "data-borderwidth"];
215
215
  type NxdsAppearanceDataAttr = (typeof NXDS_APPEARANCE_DATA_ATTRS)[number];
216
216
  interface NxdsAppearanceSnapshot {
217
217
  version: typeof SNAPSHOT_VERSION;