design-token-library 0.1.0 → 0.2.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.
@@ -4,7 +4,7 @@
4
4
  export declare namespace DesignToken {
5
5
  /**
6
6
  * An enumeration of all supported types defined
7
- * by {@link https://tr.designtokens.org/format/#types}
7
+ * by {@link https://www.designtokens.org/tr/2025.10/format/#types}
8
8
  */
9
9
  enum Type {
10
10
  Border = "border",
@@ -26,51 +26,70 @@ export declare namespace DesignToken {
26
26
  */
27
27
  namespace Values {
28
28
  /**
29
- * A six or 8 digit hexadecimal string.
30
- *
31
- * @see {@link https://tr.designtokens.org/format/#color}
32
- *
33
- * @remarks
34
- * Ideally we would be able to enumerate a-zA-Z1-9 * 6 | 8 chars
35
- * and narrow this type, however TypeScript cannot handle that
36
- * many type union combinations and will fail to compile. This
37
- * is the best representation of a 6 or 8 digit hex char that
38
- * can be accomplished
29
+ * The color spaces of the {@link https://www.designtokens.org/tr/2025.10/color/ | Color module}.
30
+ */
31
+ type ColorSpace = "srgb" | "srgb-linear" | "hsl" | "hwb" | "lab" | "lch" | "oklab" | "oklch" | "display-p3" | "a98-rgb" | "prophoto-rgb" | "rec2020" | "xyz-d65" | "xyz-d50";
32
+ /**
33
+ * A color component: a number, or `"none"` for a missing component.
34
+ */
35
+ type ColorComponent = Values.Number | "none";
36
+ /**
37
+ * A color in a color space. Every color space has three components,
38
+ * whose ranges depend on the color space.
39
39
  *
40
+ * @see {@link https://www.designtokens.org/tr/2025.10/color/}
40
41
  */
41
- type Color = `#${string}`;
42
+ interface Color {
43
+ colorSpace: ColorSpace;
44
+ components: [ColorComponent, ColorComponent, ColorComponent];
45
+ /**
46
+ * From 0 (transparent) to 1 (opaque). Defaults to 1.
47
+ */
48
+ alpha?: Values.Number;
49
+ /**
50
+ * A fallback in six digit CSS hex notation.
51
+ */
52
+ hex?: `#${string}`;
53
+ }
42
54
  /**
43
- * A dimension value (floating or integer) with a 'px' or 'rm' unit.
55
+ * A number with a unit, which is required even when the number is 0.
44
56
  *
45
- * @see {@link https://tr.designtokens.org/format/#dimension}
57
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#dimension}
46
58
  */
47
- type Dimension = `${Values.Number}px` | `${Values.Number}rm`;
59
+ interface Dimension {
60
+ value: Values.Number;
61
+ unit: "px" | "rem";
62
+ }
48
63
  /**
49
- * The name of the font family;
64
+ * The name of the font family, or an array of names in order of
65
+ * preference.
50
66
  *
51
- * @see {@link https://tr.designtokens.org/format/#font-family}
67
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#font-family}
52
68
  */
53
69
  type FontFamily = string | string[];
54
70
  /**
55
- * @see {@link https://tr.designtokens.org/format/#number}
71
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#number}
56
72
  */
57
73
  type Number = number;
58
74
  /**
59
- * A number between 0 and 1000, or a font-weight keyword.
75
+ * A number from 1 to 1000, or a font-weight keyword.
60
76
  *
61
- * @see {@link https://tr.designtokens.org/format/#font-weight}
77
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#font-weight}
62
78
  */
63
- type FontWeight = Values.Number | "thin" | "hairline" | "extra-light" | "ultra-light" | "light" | "normal" | "regular" | "book" | "medium" | "smi-bold" | "demi-bold" | "bold" | "extra-bold" | "ultra-bold" | "black" | "heavy" | "extra-black" | "ultra-black";
79
+ type FontWeight = Values.Number | "thin" | "hairline" | "extra-light" | "ultra-light" | "light" | "normal" | "regular" | "book" | "medium" | "semi-bold" | "demi-bold" | "bold" | "extra-bold" | "ultra-bold" | "black" | "heavy" | "extra-black" | "ultra-black";
64
80
  /**
65
- * A duration value in milliseconds
81
+ * A length of time in milliseconds or seconds.
66
82
  *
67
- * @see {@link https://tr.designtokens.org/format/#duration}
83
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#duration}
68
84
  */
69
- type Duration = `${Values.Number}ms`;
85
+ interface Duration {
86
+ value: Values.Number;
87
+ unit: "ms" | "s";
88
+ }
70
89
  /**
71
- * Cubic Bézier coordinates.
90
+ * Cubic Bézier coordinates. The x coordinates are within [0, 1].
72
91
  *
73
- * @see {@link https://tr.designtokens.org/format/#cubic-bezier}
92
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#cubic-bezier}
74
93
  */
75
94
  type CubicBezier = [
76
95
  P1x: Values.Number,
@@ -79,25 +98,36 @@ export declare namespace DesignToken {
79
98
  P2y: Values.Number
80
99
  ];
81
100
  /**
82
- * @see {@link https://tr.designtokens.org/format/#shadow}
101
+ * One shadow.
102
+ *
103
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#shadow}
83
104
  */
84
- interface Shadow {
105
+ interface ShadowLayer {
85
106
  color: Values.Color;
86
107
  offsetX: Values.Dimension;
87
108
  offsetY: Values.Dimension;
88
109
  blur: Values.Dimension;
89
110
  spread: Values.Dimension;
111
+ /**
112
+ * An inner shadow. Defaults to `false`.
113
+ */
114
+ inset?: boolean;
90
115
  }
91
116
  /**
117
+ * One shadow, or several layered shadows.
92
118
  *
93
- * @see {@link https://tr.designtokens.org/format/#stroke-style}
119
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#shadow}
120
+ */
121
+ type Shadow = ShadowLayer | ShadowLayer[];
122
+ /**
123
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#stroke-style}
94
124
  */
95
125
  type StrokeStyle = "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset" | "inset" | {
96
126
  dashArray: Values.Dimension[];
97
127
  lineCap: "round" | "butt" | "square";
98
128
  };
99
129
  /**
100
- * @see {@link https://tr.designtokens.org/format/#border}
130
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#border}
101
131
  */
102
132
  interface Border {
103
133
  color: Values.Color;
@@ -105,7 +135,7 @@ export declare namespace DesignToken {
105
135
  style: Values.StrokeStyle;
106
136
  }
107
137
  /**
108
- * @see {@link https://tr.designtokens.org/format/#transition}
138
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#transition}
109
139
  */
110
140
  interface Transition {
111
141
  duration: Values.Duration;
@@ -113,16 +143,16 @@ export declare namespace DesignToken {
113
143
  timingFunction: Values.CubicBezier;
114
144
  }
115
145
  /**
116
- * @see {@link https://tr.designtokens.org/format/#gradient}
146
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#gradient}
117
147
  * @remarks
118
- * Position values must be a number withing [0, 1].
148
+ * Position values must be a number within [0, 1].
119
149
  */
120
150
  type Gradient = Array<{
121
151
  color: Values.Color;
122
152
  position: Values.Number;
123
153
  }>;
124
154
  /**
125
- * @see {@link https://tr.designtokens.org/format/#typography}
155
+ * @see {@link https://www.designtokens.org/tr/2025.10/format/#typography}
126
156
  */
127
157
  interface Typography {
128
158
  fontFamily: Values.FontFamily;
@@ -131,39 +161,130 @@ export declare namespace DesignToken {
131
161
  letterSpacing: Values.Dimension;
132
162
  lineHeight: Values.Number;
133
163
  }
164
+ /**
165
+ * The readonly form of each value, as returned by a library token.
166
+ */
167
+ namespace Readonly {
168
+ interface Border extends DeepReadonly<Values.Border> {
169
+ }
170
+ interface Color extends DeepReadonly<Values.Color> {
171
+ }
172
+ type CubicBezier = DeepReadonly<Values.CubicBezier>;
173
+ interface Dimension extends DeepReadonly<Values.Dimension> {
174
+ }
175
+ interface Duration extends DeepReadonly<Values.Duration> {
176
+ }
177
+ type FontFamily = DeepReadonly<Values.FontFamily>;
178
+ type FontWeight = DeepReadonly<Values.FontWeight>;
179
+ type Gradient = DeepReadonly<Values.Gradient>;
180
+ type Number = DeepReadonly<Values.Number>;
181
+ type Shadow = DeepReadonly<Values.Shadow>;
182
+ type StrokeStyle = DeepReadonly<Values.StrokeStyle>;
183
+ interface Transition extends DeepReadonly<Values.Transition> {
184
+ }
185
+ interface Typography extends DeepReadonly<Values.Typography> {
186
+ }
187
+ }
134
188
  /**
135
189
  * @internal
136
190
  */
137
191
  type Any = Color | Dimension | FontFamily | Number | FontWeight | Duration | CubicBezier | Shadow | StrokeStyle | Border | Transition | Gradient | Typography;
138
192
  }
139
193
  /**
140
- * @internal
194
+ * The value type of each {@link DesignToken.Type}, keyed by its name, like
195
+ * `color`.
141
196
  */
142
- type TokenByType<T extends DesignToken.Type> = T extends DesignToken.Type.Border ? DesignToken.Border : T extends DesignToken.Type.Color ? DesignToken.Color : T extends DesignToken.Type.CubicBezier ? DesignToken.CubicBezier : T extends DesignToken.Type.Dimension ? DesignToken.Dimension : T extends DesignToken.Type.Duration ? DesignToken.Duration : T extends DesignToken.Type.FontFamily ? DesignToken.FontFamily : T extends DesignToken.Type.FontWeight ? DesignToken.FontWeight : T extends DesignToken.Type.Gradient ? DesignToken.Gradient : T extends DesignToken.Type.Number ? DesignToken.Number : T extends DesignToken.Type.Shadow ? DesignToken.Shadow : T extends DesignToken.Type.StrokeStyle ? DesignToken.StrokeStyle : T extends DesignToken.Type.Transition ? DesignToken.Transition : T extends DesignToken.Type.Typography ? DesignToken.Typography : never;
197
+ interface ValueByType {
198
+ border: Values.Border;
199
+ color: Values.Color;
200
+ cubicBezier: Values.CubicBezier;
201
+ dimension: Values.Dimension;
202
+ duration: Values.Duration;
203
+ fontFamily: Values.FontFamily;
204
+ fontWeight: Values.FontWeight;
205
+ gradient: Values.Gradient;
206
+ number: Values.Number;
207
+ shadow: Values.Shadow;
208
+ strokeStyle: Values.StrokeStyle;
209
+ transition: Values.Transition;
210
+ typography: Values.Typography;
211
+ }
143
212
  /**
213
+ * The value of a token. A token of a {@link DesignToken.Type} has that
214
+ * type's value, even when its shape is inferred from a config literal.
215
+ * Other tokens, such as custom tokens, have the value they declare.
216
+ *
144
217
  * @internal
145
218
  */
146
- type TypeByToken<T extends DesignToken.Any> = T extends DesignToken.Border ? DesignToken.Type.Border : T extends DesignToken.Color ? DesignToken.Type.Color : T extends DesignToken.CubicBezier ? DesignToken.Type.CubicBezier : T extends DesignToken.Dimension ? DesignToken.Type.Dimension : T extends DesignToken.Duration ? DesignToken.Type.Duration : T extends DesignToken.FontFamily ? DesignToken.Type.FontFamily : T extends DesignToken.FontWeight ? DesignToken.Type.FontWeight : T extends DesignToken.Gradient ? DesignToken.Type.Gradient : T extends DesignToken.Number ? DesignToken.Type.Number : T extends DesignToken.Shadow ? DesignToken.Type.Shadow : T extends DesignToken.StrokeStyle ? DesignToken.Type.StrokeStyle : T extends DesignToken.Transition ? DesignToken.Type.Transition : T extends DesignToken.Typography ? DesignToken.Type.Typography : never;
219
+ type ValueByToken<T extends DesignToken.Shape> = T["$type"] extends keyof ValueByType ? ValueByType[T["$type"]] : T["$value"];
220
+ /**
221
+ * `T` with every nested property, array, and array item readonly.
222
+ */
223
+ type DeepReadonly<T> = T extends Function ? T : {
224
+ readonly [K in keyof T]: DeepReadonly<T[K]>;
225
+ };
226
+ /**
227
+ * The readonly value type of each {@link DesignToken.Type}, keyed by its
228
+ * name, like `color`: the value a library token of the type returns.
229
+ */
230
+ interface ReadonlyValueByType {
231
+ border: Values.Readonly.Border;
232
+ color: Values.Readonly.Color;
233
+ cubicBezier: Values.Readonly.CubicBezier;
234
+ dimension: Values.Readonly.Dimension;
235
+ duration: Values.Readonly.Duration;
236
+ fontFamily: Values.Readonly.FontFamily;
237
+ fontWeight: Values.Readonly.FontWeight;
238
+ gradient: Values.Readonly.Gradient;
239
+ number: Values.Readonly.Number;
240
+ shadow: Values.Readonly.Shadow;
241
+ strokeStyle: Values.Readonly.StrokeStyle;
242
+ transition: Values.Readonly.Transition;
243
+ typography: Values.Readonly.Typography;
244
+ }
147
245
  /**
246
+ * The readonly form of {@link DesignToken.ValueByToken}: the value a
247
+ * library token returns.
248
+ *
148
249
  * @internal
149
250
  */
150
- type TokenByValue<T> = T extends DesignToken.Values.Border ? DesignToken.Border : T extends DesignToken.Values.Color ? DesignToken.Color : T extends DesignToken.Values.CubicBezier ? DesignToken.CubicBezier : T extends DesignToken.Values.Dimension ? DesignToken.Dimension : T extends DesignToken.Values.Duration ? DesignToken.Duration : T extends DesignToken.Values.FontFamily ? DesignToken.FontFamily : T extends DesignToken.Values.FontWeight ? DesignToken.FontWeight : T extends DesignToken.Values.Gradient ? DesignToken.Gradient : T extends DesignToken.Values.Number ? DesignToken.Number : T extends DesignToken.Values.Shadow ? DesignToken.Shadow : T extends DesignToken.Values.StrokeStyle ? DesignToken.StrokeStyle : T extends DesignToken.Values.Transition ? DesignToken.Transition : T extends DesignToken.Values.Typography ? DesignToken.Typography : never;
251
+ type ReadonlyValueByToken<T extends DesignToken.Shape> = T["$type"] extends keyof ReadonlyValueByType ? ReadonlyValueByType[T["$type"]] : DeepReadonly<T["$value"]>;
151
252
  /**
253
+ * The type of a token. Tokens that don't declare a `$type` resolve to
254
+ * the type inherited from their ancestor groups, `G`.
255
+ *
152
256
  * @internal
153
257
  */
154
- type ValueByType<T> = T extends DesignToken.Values.Border ? DesignToken.Type.Border : T extends DesignToken.Values.Color ? DesignToken.Type.Color : T extends DesignToken.Values.CubicBezier ? DesignToken.Type.CubicBezier : T extends DesignToken.Values.Dimension ? DesignToken.Type.Dimension : T extends DesignToken.Values.Duration ? DesignToken.Type.Duration : T extends DesignToken.Values.FontFamily ? DesignToken.Type.FontFamily : T extends DesignToken.Values.FontWeight ? DesignToken.Type.FontWeight : T extends DesignToken.Values.Gradient ? DesignToken.Type.Gradient : T extends DesignToken.Values.Number ? DesignToken.Type.Number : T extends DesignToken.Values.Shadow ? DesignToken.Type.Shadow : T extends DesignToken.Values.StrokeStyle ? DesignToken.Type.StrokeStyle : T extends DesignToken.Values.Transition ? DesignToken.Type.Transition : T extends DesignToken.Values.Typography ? DesignToken.Type.Typography : never;
258
+ type TypeByToken<T extends DesignToken.Shape, G extends string = never> = "$type" extends keyof T ? NonNullable<T["$type"]> : G;
155
259
  /**
260
+ * The structural shape of any token: an object with a `$value`.
261
+ * This mirrors how tokens are distinguished from groups at runtime.
262
+ *
156
263
  * @internal
157
264
  */
158
- type ValueByToken<T extends DesignToken.Any> = T extends DesignToken.Border ? DesignToken.Values.Border : T extends Color ? DesignToken.Values.Color : T extends DesignToken.CubicBezier ? DesignToken.Values.CubicBezier : T extends DesignToken.Dimension ? DesignToken.Values.Dimension : T extends DesignToken.Duration ? DesignToken.Values.Duration : T extends DesignToken.FontFamily ? DesignToken.Values.FontFamily : T extends DesignToken.FontWeight ? DesignToken.Values.FontWeight : T extends DesignToken.Gradient ? DesignToken.Values.Gradient : T extends DesignToken.Number ? DesignToken.Values.Number : T extends DesignToken.Shadow ? DesignToken.Values.Shadow : T extends DesignToken.StrokeStyle ? DesignToken.Values.StrokeStyle : T extends DesignToken.Transition ? DesignToken.Values.Transition : T extends Typography ? DesignToken.Values.Typography : never;
265
+ interface Shape {
266
+ $description?: string;
267
+ $type?: string;
268
+ $extensions?: Record<string, any>;
269
+ $deprecated?: boolean | string;
270
+ $value: unknown;
271
+ }
159
272
  /**
160
273
  * All properties supported by a DesignToken
161
274
  */
162
275
  interface Properties<Type extends DesignToken.Type, Value extends DesignToken.Values.Any> {
163
- description?: string;
164
- type?: Type;
165
- extensions?: Record<string, any>;
166
- value: Value;
276
+ $description?: string;
277
+ /**
278
+ * The token's type. In a {@link (Library:namespace).Config}, it may be omitted
279
+ * when it's inherited from an ancestor group.
280
+ */
281
+ $type: Type;
282
+ $extensions?: Record<string, any>;
283
+ /**
284
+ * `true`, or a string explaining why, when the token is deprecated.
285
+ */
286
+ $deprecated?: boolean | string;
287
+ $value: Value;
167
288
  }
168
289
  type Border = Properties<DesignToken.Type.Border, DesignToken.Values.Border>;
169
290
  type Color = Properties<DesignToken.Type.Color, DesignToken.Values.Color>;
@@ -178,6 +299,55 @@ export declare namespace DesignToken {
178
299
  type StrokeStyle = Properties<DesignToken.Type.StrokeStyle, DesignToken.Values.StrokeStyle>;
179
300
  type Transition = Properties<DesignToken.Type.Transition, DesignToken.Values.Transition>;
180
301
  type Typography = Properties<DesignToken.Type.Typography, DesignToken.Values.Typography>;
302
+ /**
303
+ * Type names reserved by {@link https://www.designtokens.org/tr/2025.10/format/#types}.
304
+ * Custom types cannot use these names.
305
+ */
306
+ type ReservedTypeName = `${DesignToken.Type}`;
307
+ /**
308
+ * The `$type` of a {@link DesignToken.Custom} token. Resolves to an error
309
+ * message type when `Name` is reserved, so that a custom type can't
310
+ * replace a DTCG type.
311
+ *
312
+ * @internal
313
+ */
314
+ type CustomTypeName<Name extends string> = Name extends ReservedTypeName ? `Error: '${Name}' is a reserved DTCG type name` : Name;
315
+ /**
316
+ * A token of a custom type that is not defined by
317
+ * {@link https://www.designtokens.org/tr/2025.10/format/#types}.
318
+ *
319
+ * @remarks
320
+ * `Name` identifies the type and must not be a {@link DesignToken.ReservedTypeName}.
321
+ * `Value` can be any type, such as a plain object, a class instance, or an
322
+ * object with methods. The library returns the value as it is, and never
323
+ * calls its functions. A config can give the value, or any property of
324
+ * plain data in it, as a {@link ref} or a {@link recipes | computed value}.
325
+ *
326
+ * @example
327
+ * ```ts
328
+ * interface Elevation { level: number; shadow: DesignToken.Values.Shadow }
329
+ * type ElevationToken = DesignToken.Custom<"elevation", Elevation>;
330
+ * ```
331
+ */
332
+ interface Custom<Name extends string, Value> {
333
+ $description?: string;
334
+ $type: CustomTypeName<Name>;
335
+ $extensions?: Record<string, any>;
336
+ $deprecated?: boolean | string;
337
+ $value: Value;
338
+ }
339
+ /**
340
+ * The structural base of all {@link DesignToken.Custom} tokens.
341
+ *
342
+ * @internal
343
+ */
344
+ interface AnyCustom {
345
+ $description?: string;
346
+ $type: string;
347
+ $extensions?: Record<string, any>;
348
+ $deprecated?: boolean | string;
349
+ $value: unknown;
350
+ }
181
351
  /**
182
352
  * A group of DesignTokens.
183
353
  */
@@ -186,10 +356,19 @@ export declare namespace DesignToken {
186
356
  * If the group has a type, the type is inferred for all descendent design tokens,
187
357
  * unless specified by the token.
188
358
  */
189
- type?: DesignToken.Type;
359
+ $type?: string;
360
+ $description?: string;
361
+ $extensions?: Record<string, any>;
362
+ $deprecated?: boolean | string;
190
363
  };
364
+ /**
365
+ * All tokens of a type defined by {@link https://www.designtokens.org/tr/2025.10/format/#types}.
366
+ *
367
+ * @internal
368
+ */
369
+ type Standard = Border | Color | CubicBezier | Dimension | Duration | FontFamily | FontWeight | Gradient | Number | Shadow | StrokeStyle | Transition | Typography;
191
370
  /**
192
371
  * @internal
193
372
  */
194
- type Any = Border | Color | CubicBezier | Dimension | Duration | FontFamily | FontWeight | Gradient | Number | Shadow | StrokeStyle | Transition | Typography;
373
+ type Any = Standard | AnyCustom;
195
374
  }
@@ -5,7 +5,7 @@ export var DesignToken;
5
5
  (function (DesignToken) {
6
6
  /**
7
7
  * An enumeration of all supported types defined
8
- * by {@link https://tr.designtokens.org/format/#types}
8
+ * by {@link https://www.designtokens.org/tr/2025.10/format/#types}
9
9
  */
10
10
  let Type;
11
11
  (function (Type) {
@@ -1 +1 @@
1
- {"version":3,"file":"design-token.js","sourceRoot":"","sources":["../../src/lib/design-token.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,KAAW,WAAW,CA2b3B;AA3bD,WAAiB,WAAW;IAC1B;;;OAGG;IACH,IAAY,IAcX;IAdD,WAAY,IAAI;QACd,yBAAiB,CAAA;QACjB,uBAAe,CAAA;QACf,mCAA2B,CAAA;QAC3B,+BAAuB,CAAA;QACvB,6BAAqB,CAAA;QACrB,iCAAyB,CAAA;QACzB,iCAAyB,CAAA;QACzB,6BAAqB,CAAA;QACrB,yBAAiB,CAAA;QACjB,yBAAiB,CAAA;QACjB,mCAA2B,CAAA;QAC3B,iCAAyB,CAAA;QACzB,iCAAyB,CAAA;IAC3B,CAAC,EAdW,IAAI,GAAJ,gBAAI,KAAJ,gBAAI,QAcf;AAwaH,CAAC,EA3bgB,WAAW,KAAX,WAAW,QA2b3B"}
1
+ {"version":3,"file":"design-token.js","sourceRoot":"","sources":["../../src/lib/design-token.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,KAAW,WAAW,CA4gB3B;AA5gBD,WAAiB,WAAW;IACxB;;;OAGG;IACH,IAAY,IAcX;IAdD,WAAY,IAAI;QACZ,yBAAiB,CAAA;QACjB,uBAAe,CAAA;QACf,mCAA2B,CAAA;QAC3B,+BAAuB,CAAA;QACvB,6BAAqB,CAAA;QACrB,iCAAyB,CAAA;QACzB,iCAAyB,CAAA;QACzB,6BAAqB,CAAA;QACrB,yBAAiB,CAAA;QACjB,yBAAiB,CAAA;QACjB,mCAA2B,CAAA;QAC3B,iCAAyB,CAAA;QACzB,iCAAyB,CAAA;IAC7B,CAAC,EAdW,IAAI,GAAJ,gBAAI,KAAJ,gBAAI,QAcf;AAyfL,CAAC,EA5gBgB,WAAW,KAAX,WAAW,QA4gB3B"}
@@ -1,3 +1,6 @@
1
1
  export { DesignToken } from "./design-token.js";
2
- export * from "./library.js";
2
+ export { CircularReferenceError, Library } from "./library.js";
3
+ export { override, recipes } from "./recipe.js";
4
+ export { isRef, pathOf, ref, refs } from "./ref.js";
3
5
  export * from "./css-reflector.js";
6
+ export * from "./values.js";
package/dist/lib/index.js CHANGED
@@ -1,4 +1,7 @@
1
1
  export { DesignToken } from "./design-token.js";
2
- export * from "./library.js";
2
+ export { CircularReferenceError, Library } from "./library.js";
3
+ export { override, recipes } from "./recipe.js";
4
+ export { isRef, pathOf, ref, refs } from "./ref.js";
3
5
  export * from "./css-reflector.js";
6
+ export * from "./values.js";
4
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}