@weasel-js/theme 1.6.0 → 1.7.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/engine.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { OklchDeg, oklchDegToHex } from '@weasel-js/paint';
2
- import { o as ThemeDefinition, L as Lookup, F as FlatTokens, k as RawToken, S as Selection, e as BakedTheme, c as AxisDefs, a as Theme } from './themes-bTfTZjCh.js';
3
- export { I as CategoricalRampDef, J as ContrastRule, K as LightnessRampDef, M as LiteralRule, N as NumberParam, O as OffsetRule, P as PinObject, i as PinValue, Q as RampDef, U as RefRule, W as ScaleDef, X as SemanticRule, Y as StepRule, Z as bake, _ as bakeChain, $ as mergeChain } from './themes-bTfTZjCh.js';
2
+ import { T as ThemeDefinition, L as Lookup, F as FlatTokens, R as RawToken, S as Selection, B as BakedTheme, A as AxisDefs, a as Theme } from './definition-Dqt5o6LR.js';
3
+ export { C as CategoricalRampDef, b as ContrastRule, c as LightnessRampDef, d as LiteralRule, N as NumberParam, O as OffsetRule, P as PinObject, e as PinValue, f as RampDef, g as RefRule, h as ScaleDef, i as SemanticRule, j as StepRule, k as bake, l as bakeChain, m as mergeChain } from './definition-Dqt5o6LR.js';
4
4
 
5
5
  /** A color in OKLCH: lightness 0–1, chroma, hue in degrees. paint's own type,
6
6
  * under the name this engine has always called it. */
package/dist/engine.js CHANGED
@@ -1,6 +1,6 @@
1
- import { overrideKey, AXES_EXT, ALPHA_EXT } from './chunk-GI7ZAXIB.js';
2
- import { mergeAxes, toLch, toHex, generate, DEFAULT_CONSTRAINTS, fullSelection, pick, enumerateSelections, resolveTokens, pickAll, themeAxes, selectionKey, isByAxis, contrast } from './chunk-QKRFHBRB.js';
3
- export { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt } from './chunk-QKRFHBRB.js';
1
+ import { overrideKey, AXES_EXT, ALPHA_EXT } from './chunk-EINHFDWI.js';
2
+ import { mergeAxes, toLch, toHex, generate, DEFAULT_CONSTRAINTS, fullSelection, pick, enumerateSelections, resolveTokens, pickAll, themeAxes, selectionKey, isByAxis, contrast } from './chunk-C3S4A65R.js';
3
+ export { CHROMA_WEIGHT, DEFAULT_CONSTRAINTS, anchorFromHex, chromaCap, contrast, deltaE, floorDegrees, generate, hexToRgb, hueGap, hueName, luminance, toHex, toHexPreview, toLab, toLch, vividAt } from './chunk-C3S4A65R.js';
4
4
 
5
5
  // src/engine/steps.ts
6
6
  var stepList = (x) => Array.isArray(x) ? [...new Set(x.filter((s) => typeof s === "string"))] : [];
@@ -1271,7 +1271,7 @@ var TOKEN_HOOKS = [
1271
1271
  name: "input-surface",
1272
1272
  type: "color",
1273
1273
  value: "var(--wzl-surface-sunken)",
1274
- description: "Surface a text Input\u2019s frame sits on. Set it on any container whose own background is the default \u2014 a sunken rail or panel \u2014 where an unset field is the same color as what is behind it."
1274
+ description: "Surface a field\u2019s frame sits on \u2014 Input, NumberField, ComboBox, Select, MenuButton, ListEditor and the property rows. Set it on any container whose own background is the default \u2014 a sunken rail or panel \u2014 where an unset field is the same color as what is behind it."
1275
1275
  },
1276
1276
  {
1277
1277
  name: "number-field-width",
@@ -1459,9 +1459,9 @@ ${body}
1459
1459
  return [
1460
1460
  "// GENERATED by packages/theme/scripts/build-tokens.ts \u2014 do not edit.",
1461
1461
  "",
1462
- "import type { AxisDefs } from '../axes';",
1463
- "import type { ThemeDefinition } from '../definition';",
1464
- "import type { BakedTheme } from '../engine/bake';",
1462
+ "import type { AxisDefs } from '../axes.ts';",
1463
+ "import type { ThemeDefinition } from '../definition.ts';",
1464
+ "import type { BakedTheme } from '../engine/bake.ts';",
1465
1465
  "",
1466
1466
  "/** Every design token the built-in themes declare, spelled as the CSS",
1467
1467
  " * custom property it becomes. */",