dispersa 0.2.0 → 0.3.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,5 +1,5 @@
1
- export { P as Preprocessor } from './types-DbufGPrb.cjs';
2
- import './types-C1GpiJ6q.cjs';
1
+ export { P as Preprocessor } from './types-CussyWwe.cjs';
2
+ import './types-Bc0kA7De.cjs';
3
3
  import 'json-schema-to-ts';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- export { P as Preprocessor } from './types-DJH6_4U9.js';
2
- import './types-C1GpiJ6q.js';
1
+ export { P as Preprocessor } from './types-CZb19kiq.js';
2
+ import './types-Bc0kA7De.js';
3
3
  import 'json-schema-to-ts';
4
4
 
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { f as OutputTree } from './index-CePv_bgv.cjs';
2
- export { A as AndroidRendererOptions, c as BuildError, a as BuildResult, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, e as MediaQueryFunction, P as PermutationData, h as RenderContext, i as RenderMeta, j as RenderOutput, g as Renderer, S as SelectorFunction, T as TailwindRendererOptions, k as defineRenderer } from './index-CePv_bgv.cjs';
3
- export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-DbufGPrb.cjs';
4
- import './types-BDY1xBmD.cjs';
5
- import './types-C1GpiJ6q.cjs';
6
- import './types-DM5faYUn.cjs';
1
+ import { f as OutputTree } from './index-BkvV7Z54.cjs';
2
+ export { A as AndroidRendererOptions, c as BuildError, a as BuildResult, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, e as MediaQueryFunction, P as PermutationData, h as RenderContext, i as RenderMeta, j as RenderOutput, g as Renderer, S as SelectorFunction, T as TailwindRendererOptions, k as defineRenderer } from './index-BkvV7Z54.cjs';
3
+ export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-CussyWwe.cjs';
4
+ import './types-DWKq-eJj.cjs';
5
+ import './types-Bc0kA7De.cjs';
6
+ import './types-BAv39mum.cjs';
7
7
  import 'json-schema-to-ts';
8
8
 
9
9
  /**
@@ -1,9 +1,9 @@
1
- import { f as OutputTree } from './index-BP52gB00.js';
2
- export { A as AndroidRendererOptions, c as BuildError, a as BuildResult, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, e as MediaQueryFunction, P as PermutationData, h as RenderContext, i as RenderMeta, j as RenderOutput, g as Renderer, S as SelectorFunction, T as TailwindRendererOptions, k as defineRenderer } from './index-BP52gB00.js';
3
- export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-DJH6_4U9.js';
4
- import './types-Cl-1UYGD.js';
5
- import './types-C1GpiJ6q.js';
6
- import './types-DdPWYkgh.js';
1
+ import { f as OutputTree } from './index-DJ_UHSQG.js';
2
+ export { A as AndroidRendererOptions, c as BuildError, a as BuildResult, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, e as MediaQueryFunction, P as PermutationData, h as RenderContext, i as RenderMeta, j as RenderOutput, g as Renderer, S as SelectorFunction, T as TailwindRendererOptions, k as defineRenderer } from './index-DJ_UHSQG.js';
3
+ export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-CZb19kiq.js';
4
+ import './types-BzNcG-rI.js';
5
+ import './types-Bc0kA7De.js';
6
+ import './types-CzHa7YkW.js';
7
7
  import 'json-schema-to-ts';
8
8
 
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { T as Transform } from './types-DM5faYUn.cjs';
2
- import './types-C1GpiJ6q.cjs';
1
+ import { T as Transform } from './types-BAv39mum.cjs';
2
+ import './types-Bc0kA7De.cjs';
3
3
 
4
4
  /**
5
5
  * @fileoverview Built-in color value transforms with alpha channel support
@@ -1,5 +1,5 @@
1
- import { T as Transform } from './types-DdPWYkgh.js';
2
- import './types-C1GpiJ6q.js';
1
+ import { T as Transform } from './types-CzHa7YkW.js';
2
+ import './types-Bc0kA7De.js';
3
3
 
4
4
  /**
5
5
  * @fileoverview Built-in color value transforms with alpha channel support
@@ -1,4 +1,4 @@
1
- import { a as ResolvedToken } from './types-C1GpiJ6q.cjs';
1
+ import { a as ResolvedToken } from './types-Bc0kA7De.cjs';
2
2
 
3
3
  /**
4
4
  * @fileoverview Transform types (re-exported from main types for convenience)
@@ -251,7 +251,7 @@ type GradientValue = GradientStop[];
251
251
  * }
252
252
  * ```
253
253
  */
254
- type DesignTokenValue = ColorValueObject | DimensionValue | DurationValue | CubicBezierValue | ShadowValueObject | ShadowValueObject[] | TypographyValue | BorderValue | StrokeStyleValueObject | StrokeStyleValue | TransitionValue | GradientValue | FontFamilyValue | FontWeightValue | number | boolean;
254
+ type DesignTokenValue = ColorValueObject | DimensionValue | DurationValue | CubicBezierValue | ShadowValueObject | ShadowValueObject[] | TypographyValue | BorderValue | StrokeStyleValueObject | StrokeStyleValue | TransitionValue | GradientValue | FontFamilyValue | FontWeightValue | number;
255
255
  /** Type-narrowed token whose `$value` is a `ColorValueObject` or color string */
256
256
  type ColorToken = ResolvedToken & {
257
257
  $type: 'color';
@@ -265,11 +265,11 @@ type ShadowToken = ResolvedToken & {
265
265
  $type: 'shadow';
266
266
  };
267
267
  /** Type-narrowed token whose `$value` is a `TypographyValue` */
268
- type TypographyTokenNarrowed = ResolvedToken & {
268
+ type TypographyToken = ResolvedToken & {
269
269
  $type: 'typography';
270
270
  };
271
271
  /** Type-narrowed token whose `$value` is a `BorderValue` */
272
- type BorderTokenNarrowed = ResolvedToken & {
272
+ type BorderToken = ResolvedToken & {
273
273
  $type: 'border';
274
274
  };
275
275
  /** Type-narrowed token whose `$value` is a `DurationValue` */
@@ -277,11 +277,11 @@ type DurationToken = ResolvedToken & {
277
277
  $type: 'duration';
278
278
  };
279
279
  /** Type-narrowed token whose `$value` is a `TransitionValue` */
280
- type TransitionTokenNarrowed = ResolvedToken & {
280
+ type TransitionToken = ResolvedToken & {
281
281
  $type: 'transition';
282
282
  };
283
283
  /** Type-narrowed token whose `$value` is a `GradientValue` */
284
- type GradientTokenNarrowed = ResolvedToken & {
284
+ type GradientToken = ResolvedToken & {
285
285
  $type: 'gradient';
286
286
  };
287
287
  /** Check if a resolved token is a color token */
@@ -291,15 +291,15 @@ declare function isDimensionToken(token: ResolvedToken): token is DimensionToken
291
291
  /** Check if a resolved token is a shadow token */
292
292
  declare function isShadowToken(token: ResolvedToken): token is ShadowToken;
293
293
  /** Check if a resolved token is a typography token */
294
- declare function isTypographyToken(token: ResolvedToken): token is TypographyTokenNarrowed;
294
+ declare function isTypographyToken(token: ResolvedToken): token is TypographyToken;
295
295
  /** Check if a resolved token is a border token */
296
- declare function isBorderToken(token: ResolvedToken): token is BorderTokenNarrowed;
296
+ declare function isBorderToken(token: ResolvedToken): token is BorderToken;
297
297
  /** Check if a resolved token is a duration token */
298
298
  declare function isDurationToken(token: ResolvedToken): token is DurationToken;
299
299
  /** Check if a resolved token is a transition token */
300
- declare function isTransitionToken(token: ResolvedToken): token is TransitionTokenNarrowed;
300
+ declare function isTransitionToken(token: ResolvedToken): token is TransitionToken;
301
301
  /** Check if a resolved token is a gradient token */
302
- declare function isGradientToken(token: ResolvedToken): token is GradientTokenNarrowed;
302
+ declare function isGradientToken(token: ResolvedToken): token is GradientToken;
303
303
  /**
304
304
  * Internal token document nodes used during resolution
305
305
  */
@@ -365,4 +365,4 @@ type ResolvedToken = Token & {
365
365
  */
366
366
  type ResolvedTokens = Record<string, ResolvedToken>;
367
367
 
368
- export { type BorderValue as B, type ColorToken as C, type DesignTokenValue as D, type GradientValue as G, type InternalTokenDocument as I, type ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type DimensionToken as b, type DurationToken as c, type ColorValueObject as d, type DimensionValue as e, type ShadowValueObject as f, type TypographyValue as g, type TransitionValue as h, isColorToken as i, isDimensionToken as j, isShadowToken as k, isTypographyToken as l, isBorderToken as m, isDurationToken as n, isTransitionToken as o, isGradientToken as p };
368
+ export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type TokenValue as b, type TokenValueReference as c, type DimensionToken as d, type DurationToken as e, type TypographyToken as f, type TransitionToken as g, type ColorValueObject as h, type ColorValue as i, type ColorSpace as j, type ColorComponent as k, type DimensionValue as l, type DurationValue as m, type FontWeightValue as n, type CubicBezierValue as o, type ShadowValueObject as p, type TypographyValue as q, type BorderValue as r, type StrokeStyleValue as s, type StrokeStyleValueObject as t, type TransitionValue as u, type GradientValue as v, type GradientStop as w, isColorToken as x, isDimensionToken as y, isShadowToken as z };
@@ -251,7 +251,7 @@ type GradientValue = GradientStop[];
251
251
  * }
252
252
  * ```
253
253
  */
254
- type DesignTokenValue = ColorValueObject | DimensionValue | DurationValue | CubicBezierValue | ShadowValueObject | ShadowValueObject[] | TypographyValue | BorderValue | StrokeStyleValueObject | StrokeStyleValue | TransitionValue | GradientValue | FontFamilyValue | FontWeightValue | number | boolean;
254
+ type DesignTokenValue = ColorValueObject | DimensionValue | DurationValue | CubicBezierValue | ShadowValueObject | ShadowValueObject[] | TypographyValue | BorderValue | StrokeStyleValueObject | StrokeStyleValue | TransitionValue | GradientValue | FontFamilyValue | FontWeightValue | number;
255
255
  /** Type-narrowed token whose `$value` is a `ColorValueObject` or color string */
256
256
  type ColorToken = ResolvedToken & {
257
257
  $type: 'color';
@@ -265,11 +265,11 @@ type ShadowToken = ResolvedToken & {
265
265
  $type: 'shadow';
266
266
  };
267
267
  /** Type-narrowed token whose `$value` is a `TypographyValue` */
268
- type TypographyTokenNarrowed = ResolvedToken & {
268
+ type TypographyToken = ResolvedToken & {
269
269
  $type: 'typography';
270
270
  };
271
271
  /** Type-narrowed token whose `$value` is a `BorderValue` */
272
- type BorderTokenNarrowed = ResolvedToken & {
272
+ type BorderToken = ResolvedToken & {
273
273
  $type: 'border';
274
274
  };
275
275
  /** Type-narrowed token whose `$value` is a `DurationValue` */
@@ -277,11 +277,11 @@ type DurationToken = ResolvedToken & {
277
277
  $type: 'duration';
278
278
  };
279
279
  /** Type-narrowed token whose `$value` is a `TransitionValue` */
280
- type TransitionTokenNarrowed = ResolvedToken & {
280
+ type TransitionToken = ResolvedToken & {
281
281
  $type: 'transition';
282
282
  };
283
283
  /** Type-narrowed token whose `$value` is a `GradientValue` */
284
- type GradientTokenNarrowed = ResolvedToken & {
284
+ type GradientToken = ResolvedToken & {
285
285
  $type: 'gradient';
286
286
  };
287
287
  /** Check if a resolved token is a color token */
@@ -291,15 +291,15 @@ declare function isDimensionToken(token: ResolvedToken): token is DimensionToken
291
291
  /** Check if a resolved token is a shadow token */
292
292
  declare function isShadowToken(token: ResolvedToken): token is ShadowToken;
293
293
  /** Check if a resolved token is a typography token */
294
- declare function isTypographyToken(token: ResolvedToken): token is TypographyTokenNarrowed;
294
+ declare function isTypographyToken(token: ResolvedToken): token is TypographyToken;
295
295
  /** Check if a resolved token is a border token */
296
- declare function isBorderToken(token: ResolvedToken): token is BorderTokenNarrowed;
296
+ declare function isBorderToken(token: ResolvedToken): token is BorderToken;
297
297
  /** Check if a resolved token is a duration token */
298
298
  declare function isDurationToken(token: ResolvedToken): token is DurationToken;
299
299
  /** Check if a resolved token is a transition token */
300
- declare function isTransitionToken(token: ResolvedToken): token is TransitionTokenNarrowed;
300
+ declare function isTransitionToken(token: ResolvedToken): token is TransitionToken;
301
301
  /** Check if a resolved token is a gradient token */
302
- declare function isGradientToken(token: ResolvedToken): token is GradientTokenNarrowed;
302
+ declare function isGradientToken(token: ResolvedToken): token is GradientToken;
303
303
  /**
304
304
  * Internal token document nodes used during resolution
305
305
  */
@@ -365,4 +365,4 @@ type ResolvedToken = Token & {
365
365
  */
366
366
  type ResolvedTokens = Record<string, ResolvedToken>;
367
367
 
368
- export { type BorderValue as B, type ColorToken as C, type DesignTokenValue as D, type GradientValue as G, type InternalTokenDocument as I, type ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type DimensionToken as b, type DurationToken as c, type ColorValueObject as d, type DimensionValue as e, type ShadowValueObject as f, type TypographyValue as g, type TransitionValue as h, isColorToken as i, isDimensionToken as j, isShadowToken as k, isTypographyToken as l, isBorderToken as m, isDurationToken as n, isTransitionToken as o, isGradientToken as p };
368
+ export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type TokenValue as b, type TokenValueReference as c, type DimensionToken as d, type DurationToken as e, type TypographyToken as f, type TransitionToken as g, type ColorValueObject as h, type ColorValue as i, type ColorSpace as j, type ColorComponent as k, type DimensionValue as l, type DurationValue as m, type FontWeightValue as n, type CubicBezierValue as o, type ShadowValueObject as p, type TypographyValue as q, type BorderValue as r, type StrokeStyleValue as s, type StrokeStyleValueObject as t, type TransitionValue as u, type GradientValue as v, type GradientStop as w, isColorToken as x, isDimensionToken as y, isShadowToken as z };
@@ -1,4 +1,4 @@
1
- import { a as ResolvedToken } from './types-C1GpiJ6q.js';
1
+ import { a as ResolvedToken } from './types-Bc0kA7De.js';
2
2
 
3
3
  /**
4
4
  * @fileoverview Filter system types for token selection
@@ -1,4 +1,4 @@
1
- import { I as InternalTokenDocument } from './types-C1GpiJ6q.js';
1
+ import { K as InternalTokenDocument } from './types-Bc0kA7De.js';
2
2
  import { FromSchema, JSONSchema } from 'json-schema-to-ts';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { I as InternalTokenDocument } from './types-C1GpiJ6q.cjs';
1
+ import { K as InternalTokenDocument } from './types-Bc0kA7De.cjs';
2
2
  import { FromSchema, JSONSchema } from 'json-schema-to-ts';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as ResolvedToken } from './types-C1GpiJ6q.js';
1
+ import { a as ResolvedToken } from './types-Bc0kA7De.js';
2
2
 
3
3
  /**
4
4
  * @fileoverview Transform types (re-exported from main types for convenience)
@@ -1,4 +1,4 @@
1
- import { a as ResolvedToken } from './types-C1GpiJ6q.cjs';
1
+ import { a as ResolvedToken } from './types-Bc0kA7De.cjs';
2
2
 
3
3
  /**
4
4
  * @fileoverview Filter system types for token selection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dispersa",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Core library for processing DTCG design tokens",
5
5
  "author": "Tim Gesemann",
6
6
  "license": "MIT",