@designid/tokens 1.2.8 → 1.2.10
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/bin/build.js +230 -214
- package/bin/editor.js +288 -272
- package/bin/watch.js +225 -209
- package/package.json +1 -1
- package/types/design-tokens.ts +6 -0
- package/types/files.d.ts +9 -2
package/package.json
CHANGED
package/types/design-tokens.ts
CHANGED
|
@@ -292,6 +292,10 @@ export type StringValue = string;
|
|
|
292
292
|
export interface StringToken extends DesignToken<ValueOrReference<StringValue>> {
|
|
293
293
|
$type: 'string';
|
|
294
294
|
}
|
|
295
|
+
// Icon token
|
|
296
|
+
export interface IconToken extends DesignToken<ValueOrReference<StringValue>> {
|
|
297
|
+
$type: 'icon';
|
|
298
|
+
}
|
|
295
299
|
|
|
296
300
|
// ============================================================================
|
|
297
301
|
// COMPOSITE TYPES
|
|
@@ -462,6 +466,7 @@ export type BasicTokenType =
|
|
|
462
466
|
| DurationToken
|
|
463
467
|
| CubicBezierToken
|
|
464
468
|
| NumberToken
|
|
469
|
+
| IconToken
|
|
465
470
|
| StringToken;
|
|
466
471
|
|
|
467
472
|
/**
|
|
@@ -495,6 +500,7 @@ export type TokenType =
|
|
|
495
500
|
| 'shadow'
|
|
496
501
|
| 'gradient'
|
|
497
502
|
| 'typography'
|
|
503
|
+
| 'icon'
|
|
498
504
|
| 'composition';
|
|
499
505
|
|
|
500
506
|
/**
|
package/types/files.d.ts
CHANGED
|
@@ -43,8 +43,14 @@ export type TConfigMetaDataIcons = {
|
|
|
43
43
|
objectPath: string;
|
|
44
44
|
size?: number;
|
|
45
45
|
style?: {
|
|
46
|
-
type: "mono" | "animated";
|
|
47
|
-
fill
|
|
46
|
+
type: "mono" | "stroke" | "fill" | "animated" | "custom";
|
|
47
|
+
fill?: TEnhancedTokenReference | string;
|
|
48
|
+
stroke?: {
|
|
49
|
+
color?: TEnhancedTokenReference | string;
|
|
50
|
+
width?: number | string;
|
|
51
|
+
linecap?: "butt" | "round" | "square";
|
|
52
|
+
linejoin?: "miter" | "round" | "bevel";
|
|
53
|
+
};
|
|
48
54
|
};
|
|
49
55
|
};
|
|
50
56
|
|
|
@@ -61,6 +67,7 @@ export type TConfigFile = {
|
|
|
61
67
|
icons?: {
|
|
62
68
|
sourceDir: string;
|
|
63
69
|
distDir?: string;
|
|
70
|
+
excludeFromRaw?: boolean;
|
|
64
71
|
};
|
|
65
72
|
fonts?: {
|
|
66
73
|
sourceDir: string;
|