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.
- package/README.md +44 -18
- package/dist/builders.cjs +119 -12
- package/dist/builders.cjs.map +1 -1
- package/dist/builders.d.cts +5 -5
- package/dist/builders.d.ts +5 -5
- package/dist/builders.js +119 -12
- package/dist/builders.js.map +1 -1
- package/dist/filters.cjs.map +1 -1
- package/dist/filters.d.cts +13 -16
- package/dist/filters.d.ts +13 -16
- package/dist/filters.js.map +1 -1
- package/dist/{index-CePv_bgv.d.cts → index-BkvV7Z54.d.cts} +4 -4
- package/dist/{index-BP52gB00.d.ts → index-DJ_UHSQG.d.ts} +4 -4
- package/dist/index.cjs +119 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +119 -12
- package/dist/index.js.map +1 -1
- package/dist/preprocessors.d.cts +2 -2
- package/dist/preprocessors.d.ts +2 -2
- package/dist/renderers.d.cts +6 -6
- package/dist/renderers.d.ts +6 -6
- package/dist/transforms.d.cts +2 -2
- package/dist/transforms.d.ts +2 -2
- package/dist/{types-DM5faYUn.d.cts → types-BAv39mum.d.cts} +1 -1
- package/dist/{types-C1GpiJ6q.d.ts → types-Bc0kA7De.d.cts} +10 -10
- package/dist/{types-C1GpiJ6q.d.cts → types-Bc0kA7De.d.ts} +10 -10
- package/dist/{types-Cl-1UYGD.d.ts → types-BzNcG-rI.d.ts} +1 -1
- package/dist/{types-DJH6_4U9.d.ts → types-CZb19kiq.d.ts} +1 -1
- package/dist/{types-DbufGPrb.d.cts → types-CussyWwe.d.cts} +1 -1
- package/dist/{types-DdPWYkgh.d.ts → types-CzHa7YkW.d.ts} +1 -1
- package/dist/{types-BDY1xBmD.d.cts → types-DWKq-eJj.d.cts} +1 -1
- package/package.json +1 -1
package/dist/preprocessors.d.cts
CHANGED
package/dist/preprocessors.d.ts
CHANGED
package/dist/renderers.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as OutputTree } from './index-
|
|
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-
|
|
3
|
-
export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-
|
|
4
|
-
import './types-
|
|
5
|
-
import './types-
|
|
6
|
-
import './types-
|
|
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
|
/**
|
package/dist/renderers.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as OutputTree } from './index-
|
|
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-
|
|
3
|
-
export { J as JsModuleRendererOptions, a as JsonRendererOptions } from './types-
|
|
4
|
-
import './types-
|
|
5
|
-
import './types-
|
|
6
|
-
import './types-
|
|
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
|
/**
|
package/dist/transforms.d.cts
CHANGED
package/dist/transforms.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
268
|
+
type TypographyToken = ResolvedToken & {
|
|
269
269
|
$type: 'typography';
|
|
270
270
|
};
|
|
271
271
|
/** Type-narrowed token whose `$value` is a `BorderValue` */
|
|
272
|
-
type
|
|
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
|
|
280
|
+
type TransitionToken = ResolvedToken & {
|
|
281
281
|
$type: 'transition';
|
|
282
282
|
};
|
|
283
283
|
/** Type-narrowed token whose `$value` is a `GradientValue` */
|
|
284
|
-
type
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
268
|
+
type TypographyToken = ResolvedToken & {
|
|
269
269
|
$type: 'typography';
|
|
270
270
|
};
|
|
271
271
|
/** Type-narrowed token whose `$value` is a `BorderValue` */
|
|
272
|
-
type
|
|
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
|
|
280
|
+
type TransitionToken = ResolvedToken & {
|
|
281
281
|
$type: 'transition';
|
|
282
282
|
};
|
|
283
283
|
/** Type-narrowed token whose `$value` is a `GradientValue` */
|
|
284
|
-
type
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 };
|