@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.
- package/README.md +2 -2
- package/dist/runtime/catalogue.cjs +1195 -898
- package/dist/runtime/catalogue.cjs.map +1 -1
- package/dist/runtime/catalogue.d.cts +28 -18
- package/dist/runtime/catalogue.d.ts +28 -18
- package/dist/runtime/catalogue.js +1195 -898
- package/dist/runtime/catalogue.js.map +1 -1
- package/dist/runtime/index.cjs +142 -412
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +5 -5
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +139 -412
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/palette.cjs.map +1 -1
- package/dist/runtime/palette.js.map +1 -1
- package/dist/runtime/{surface-ladder-Cqo5DfZW.d.ts → surface-ladder-B8LyPHC_.d.ts} +61 -2
- package/dist/runtime/{surface-ladder-DZQFqJvm.d.cts → surface-ladder-DQ9Yfwie.d.cts} +61 -2
- package/package.json +1 -1
package/dist/runtime/index.d.cts
CHANGED
|
@@ -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 {
|
|
4
|
-
export { B as BASE_TONE_OPTIONS,
|
|
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 =
|
|
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;
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -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 {
|
|
4
|
-
export { B as BASE_TONE_OPTIONS,
|
|
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 =
|
|
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;
|