@supernova-studio/model 0.54.2 → 0.54.3
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/index.d.mts +551 -98
- package/dist/index.d.ts +551 -98
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1145 -1138
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/font.ts +9 -0
- package/src/dsm/elements/data/index.ts +1 -0
- package/src/dsm/elements/tokens.ts +2 -1
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { tokenAliasOrValue } from "./base";
|
|
3
|
+
|
|
4
|
+
export const FontValue = z.unknown();
|
|
5
|
+
|
|
6
|
+
export const FontTokenData = tokenAliasOrValue(FontValue);
|
|
7
|
+
|
|
8
|
+
export type FontValue = z.infer<typeof FontValue>;
|
|
9
|
+
export type FontTokenData = z.infer<typeof FontTokenData>;
|
|
@@ -19,6 +19,7 @@ export * from "./figma-node-reference";
|
|
|
19
19
|
export * from "./font-family";
|
|
20
20
|
export * from "./font-size";
|
|
21
21
|
export * from "./font-weight";
|
|
22
|
+
export * from "./font";
|
|
22
23
|
export * from "./gradient";
|
|
23
24
|
export * from "./group";
|
|
24
25
|
export * from "./item-header-v1";
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
DurationTokenData,
|
|
18
18
|
FontFamilyTokenData,
|
|
19
19
|
FontSizeTokenData,
|
|
20
|
+
FontTokenData,
|
|
20
21
|
FontWeightTokenData,
|
|
21
22
|
GradientTokenData,
|
|
22
23
|
LetterSpacingTokenData,
|
|
@@ -196,7 +197,7 @@ const DurationTypedData = z.object({
|
|
|
196
197
|
|
|
197
198
|
const FontTypedData = z.object({
|
|
198
199
|
type: z.literal("Font"),
|
|
199
|
-
data:
|
|
200
|
+
data: FontTokenData,
|
|
200
201
|
});
|
|
201
202
|
|
|
202
203
|
//
|