@primer/primitives 10.0.0-rc.29e661a3 → 10.0.0-rc.4512e3c0

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.
Files changed (132) hide show
  1. package/README.md +2 -2
  2. package/dist/build/PrimerStyleDictionary.js +27 -26
  3. package/dist/build/filters/isCubicBezier.d.ts +7 -0
  4. package/dist/build/filters/isCubicBezier.js +10 -0
  5. package/dist/build/formats/typescriptExportDefinition.js +2 -2
  6. package/dist/build/parsers/w3cJsonParser.js +2 -2
  7. package/dist/build/platforms/css.js +1 -0
  8. package/dist/build/schemas/borderToken.d.ts +3 -3
  9. package/dist/build/schemas/colorToken.d.ts +17 -10
  10. package/dist/build/schemas/colorToken.js +2 -1
  11. package/dist/build/schemas/cubicBezierToken.d.ts +18 -0
  12. package/dist/build/schemas/cubicBezierToken.js +8 -0
  13. package/dist/build/schemas/designToken.js +2 -1
  14. package/dist/build/schemas/dimensionToken.d.ts +10 -3
  15. package/dist/build/schemas/dimensionToken.js +1 -0
  16. package/dist/build/schemas/durationToken.d.ts +3 -3
  17. package/dist/build/schemas/fontFamilyToken.d.ts +3 -3
  18. package/dist/build/schemas/fontWeightToken.d.ts +3 -3
  19. package/dist/build/schemas/numberToken.d.ts +3 -3
  20. package/dist/build/schemas/shadowToken.d.ts +18 -11
  21. package/dist/build/schemas/shadowToken.js +6 -3
  22. package/dist/build/schemas/stringToken.d.ts +3 -3
  23. package/dist/build/schemas/tokenType.d.ts +1 -1
  24. package/dist/build/schemas/typographyToken.d.ts +3 -3
  25. package/dist/build/schemas/validTokenType.d.ts +1 -1
  26. package/dist/build/schemas/validTokenType.js +1 -0
  27. package/dist/build/schemas/viewportRangeToken.d.ts +3 -3
  28. package/dist/build/transformers/cubicBezierToCss.d.ts +8 -0
  29. package/dist/build/transformers/cubicBezierToCss.js +23 -0
  30. package/dist/build/transformers/durationToCss.js +2 -2
  31. package/dist/build/transformers/figmaAttributes.js +2 -2
  32. package/dist/build/transformers/index.d.ts +1 -0
  33. package/dist/build/transformers/index.js +1 -0
  34. package/dist/css/base/motion/motion.css +17 -0
  35. package/dist/css/functional/motion/motion.css +4 -3
  36. package/dist/css/functional/themes/dark-colorblind.css +58 -38
  37. package/dist/css/functional/themes/dark-dimmed.css +44 -24
  38. package/dist/css/functional/themes/dark-high-contrast.css +42 -22
  39. package/dist/css/functional/themes/dark-tritanopia.css +44 -24
  40. package/dist/css/functional/themes/dark.css +42 -22
  41. package/dist/css/functional/themes/light-colorblind.css +60 -40
  42. package/dist/css/functional/themes/light-high-contrast.css +44 -24
  43. package/dist/css/functional/themes/light-tritanopia.css +42 -22
  44. package/dist/css/functional/themes/light.css +42 -22
  45. package/dist/css/functional/typography/typography.css +43 -43
  46. package/dist/css/primitives.css +64 -46
  47. package/dist/docs/base/motion/motion.json +205 -0
  48. package/dist/docs/functional/motion/motion.json +18 -3
  49. package/dist/docs/functional/themes/dark-colorblind.json +350 -1114
  50. package/dist/docs/functional/themes/dark-dimmed.json +364 -1152
  51. package/dist/docs/functional/themes/dark-high-contrast.json +312 -922
  52. package/dist/docs/functional/themes/dark-tritanopia.json +344 -1138
  53. package/dist/docs/functional/themes/dark.json +346 -1206
  54. package/dist/docs/functional/themes/light-colorblind.json +366 -1140
  55. package/dist/docs/functional/themes/light-high-contrast.json +335 -949
  56. package/dist/docs/functional/themes/light-tritanopia.json +311 -1135
  57. package/dist/docs/functional/themes/light.json +336 -1202
  58. package/dist/fallbacks/base/motion/motion.json +17 -0
  59. package/dist/fallbacks/functional/motion/motion.json +1 -0
  60. package/dist/figma/dimension/dimension.json +518 -518
  61. package/dist/figma/figma.json +19 -19
  62. package/dist/figma/scales/dark-dimmed.json +3536 -656
  63. package/dist/figma/scales/dark-high-constrast.json +3535 -655
  64. package/dist/figma/scales/dark.json +3371 -491
  65. package/dist/figma/scales/light-high-constrast.json +3533 -653
  66. package/dist/figma/scales/light.json +3370 -490
  67. package/dist/figma/shadows/dark-colorblind.json +285 -285
  68. package/dist/figma/shadows/dark-dimmed.json +285 -285
  69. package/dist/figma/shadows/dark-high-contrast.json +285 -285
  70. package/dist/figma/shadows/dark-tritanopia.json +285 -285
  71. package/dist/figma/shadows/dark.json +285 -285
  72. package/dist/figma/shadows/light-colorblind.json +254 -254
  73. package/dist/figma/shadows/light-high-contrast.json +254 -254
  74. package/dist/figma/shadows/light-tritanopia.json +254 -254
  75. package/dist/figma/shadows/light.json +254 -254
  76. package/dist/figma/themes/dark-colorblind.json +5197 -5068
  77. package/dist/figma/themes/dark-dimmed.json +5526 -5351
  78. package/dist/figma/themes/dark-high-contrast.json +4361 -4251
  79. package/dist/figma/themes/dark-tritanopia.json +5315 -5187
  80. package/dist/figma/themes/dark.json +5740 -5581
  81. package/dist/figma/themes/light-colorblind.json +5104 -4929
  82. package/dist/figma/themes/light-high-contrast.json +4462 -4319
  83. package/dist/figma/themes/light-tritanopia.json +5176 -5050
  84. package/dist/figma/themes/light.json +5657 -5500
  85. package/dist/figma/typography/typography.json +162 -162
  86. package/dist/internalCss/dark-colorblind.css +58 -38
  87. package/dist/internalCss/dark-dimmed.css +44 -24
  88. package/dist/internalCss/dark-high-contrast.css +42 -22
  89. package/dist/internalCss/dark-tritanopia.css +44 -24
  90. package/dist/internalCss/dark.css +42 -22
  91. package/dist/internalCss/light-colorblind.css +60 -40
  92. package/dist/internalCss/light-high-contrast.css +44 -24
  93. package/dist/internalCss/light-tritanopia.css +42 -22
  94. package/dist/internalCss/light.css +42 -22
  95. package/dist/styleLint/base/motion/motion.json +205 -0
  96. package/dist/styleLint/functional/motion/motion.json +18 -3
  97. package/dist/styleLint/functional/themes/dark-colorblind.json +350 -1114
  98. package/dist/styleLint/functional/themes/dark-dimmed.json +364 -1152
  99. package/dist/styleLint/functional/themes/dark-high-contrast.json +311 -921
  100. package/dist/styleLint/functional/themes/dark-tritanopia.json +344 -1138
  101. package/dist/styleLint/functional/themes/dark.json +346 -1206
  102. package/dist/styleLint/functional/themes/light-colorblind.json +366 -1140
  103. package/dist/styleLint/functional/themes/light-high-contrast.json +335 -949
  104. package/dist/styleLint/functional/themes/light-tritanopia.json +311 -1135
  105. package/dist/styleLint/functional/themes/light.json +336 -1202
  106. package/package.json +21 -29
  107. package/src/tokens/base/motion/easing.json5 +26 -0
  108. package/src/tokens/base/motion/timing.json5 +50 -0
  109. package/src/tokens/functional/color/dark/app-dark.json5 +236 -121
  110. package/src/tokens/functional/color/dark/data-vis-dark.json5 +40 -40
  111. package/src/tokens/functional/color/dark/display-dark.json5 +95 -95
  112. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +1 -9
  113. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +40 -27
  114. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +56 -30
  115. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +37 -14
  116. package/src/tokens/functional/color/dark/patterns-dark.json +3963 -0
  117. package/src/tokens/functional/color/dark/patterns-dark.json5 +126 -277
  118. package/src/tokens/functional/color/dark/primitives-dark.json5 +78 -78
  119. package/src/tokens/functional/color/dark/syntax-dark.json5 +47 -47
  120. package/src/tokens/functional/color/light/app-light.json5 +179 -118
  121. package/src/tokens/functional/color/light/data-vis-light.json5 +40 -40
  122. package/src/tokens/functional/color/light/display-light.json5 +0 -95
  123. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +25 -27
  124. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +58 -33
  125. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +59 -10
  126. package/src/tokens/functional/color/light/patterns-light.json5 +126 -276
  127. package/src/tokens/functional/color/light/primitives-light.json5 +0 -78
  128. package/src/tokens/functional/color/light/syntax-light.json5 +0 -47
  129. package/src/tokens/functional/motion/loading.json5 +1 -1
  130. package/src/tokens/functional/motion/patterns.json5 +9 -2
  131. package/src/tokens/functional/shadow/dark.json5 +0 -14
  132. package/src/tokens/functional/shadow/light.json5 +0 -13
package/README.md CHANGED
@@ -138,10 +138,10 @@ In this case you can create the follwing structure. The `@` will be removed from
138
138
  bgColor: {
139
139
  accent: {
140
140
  '@': {
141
- // values for accent (default)
141
+ // values for bgColor-accent (default)
142
142
  },
143
143
  muted: {
144
- // values for accent-muted
144
+ // values for bgColor-accent-muted
145
145
  },
146
146
  },
147
147
  },
@@ -1,5 +1,5 @@
1
1
  import StyleDictionary from 'style-dictionary';
2
- import { borderToCss, colorToRgbAlpha, colorToHex, colorToHexMix, colorToRgbaFloat, dimensionToRem, dimensionToPixelUnitless, durationToCss, figmaAttributes, fontFamilyToCss, fontFamilyToFigma, fontWeightToNumber, jsonDeprecated, namePathToDotNotation, namePathToCamelCase, namePathToPascalCase, namePathToKebabCase, namePathToSlashNotation, namePathToFigma, shadowToCss, typographyToCss, dimensionToRemPxArray, floatToPixel, floatToPixelUnitless, } from './transformers/index.js';
2
+ import { borderToCss, colorToRgbAlpha, colorToHex, colorToHexMix, colorToRgbaFloat, cubicBezierToCss, dimensionToRem, dimensionToPixelUnitless, durationToCss, figmaAttributes, fontFamilyToCss, fontFamilyToFigma, fontWeightToNumber, jsonDeprecated, namePathToDotNotation, namePathToCamelCase, namePathToPascalCase, namePathToKebabCase, namePathToSlashNotation, namePathToFigma, shadowToCss, typographyToCss, dimensionToRemPxArray, floatToPixel, floatToPixelUnitless, } from './transformers/index.js';
3
3
  import { javascriptCommonJs, javascriptEsm, typescriptExportDefinition, jsonNestedPrefixed, cssCustomMedia, jsonOneDimensional, jsonPostCssFallback, cssAdvanced, jsonFigma, } from './formats/index.js';
4
4
  /**
5
5
  * @name {@link PrimerStyleDictionary}
@@ -52,28 +52,29 @@ PrimerStyleDictionary.registerFormat({
52
52
  * Transformers
53
53
  *
54
54
  */
55
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToRgbAlpha));
56
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToRgbaFloat));
57
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToHexMix));
58
- PrimerStyleDictionary.registerTransform(Object.assign({}, colorToHex));
59
- PrimerStyleDictionary.registerTransform(Object.assign({}, floatToPixel));
60
- PrimerStyleDictionary.registerTransform(Object.assign({}, floatToPixelUnitless));
61
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToRem));
62
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToRemPxArray));
63
- PrimerStyleDictionary.registerTransform(Object.assign({}, dimensionToPixelUnitless));
64
- PrimerStyleDictionary.registerTransform(Object.assign({}, durationToCss));
65
- PrimerStyleDictionary.registerTransform(Object.assign({}, figmaAttributes));
66
- PrimerStyleDictionary.registerTransform(Object.assign({}, jsonDeprecated));
67
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToCamelCase));
68
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToPascalCase));
69
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToDotNotation));
70
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToFigma));
71
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToCamelCase));
72
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToKebabCase));
73
- PrimerStyleDictionary.registerTransform(Object.assign({}, namePathToSlashNotation));
74
- PrimerStyleDictionary.registerTransform(Object.assign({}, shadowToCss));
75
- PrimerStyleDictionary.registerTransform(Object.assign({}, borderToCss));
76
- PrimerStyleDictionary.registerTransform(Object.assign({}, typographyToCss));
77
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontWeightToNumber));
78
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontFamilyToCss));
79
- PrimerStyleDictionary.registerTransform(Object.assign({}, fontFamilyToFigma));
55
+ PrimerStyleDictionary.registerTransform(colorToRgbAlpha);
56
+ PrimerStyleDictionary.registerTransform(colorToRgbaFloat);
57
+ PrimerStyleDictionary.registerTransform(colorToHexMix);
58
+ PrimerStyleDictionary.registerTransform(colorToHex);
59
+ PrimerStyleDictionary.registerTransform(cubicBezierToCss);
60
+ PrimerStyleDictionary.registerTransform(floatToPixel);
61
+ PrimerStyleDictionary.registerTransform(floatToPixelUnitless);
62
+ PrimerStyleDictionary.registerTransform(dimensionToRem);
63
+ PrimerStyleDictionary.registerTransform(dimensionToRemPxArray);
64
+ PrimerStyleDictionary.registerTransform(dimensionToPixelUnitless);
65
+ PrimerStyleDictionary.registerTransform(durationToCss);
66
+ PrimerStyleDictionary.registerTransform(figmaAttributes);
67
+ PrimerStyleDictionary.registerTransform(jsonDeprecated);
68
+ PrimerStyleDictionary.registerTransform(namePathToCamelCase);
69
+ PrimerStyleDictionary.registerTransform(namePathToPascalCase);
70
+ PrimerStyleDictionary.registerTransform(namePathToDotNotation);
71
+ PrimerStyleDictionary.registerTransform(namePathToFigma);
72
+ PrimerStyleDictionary.registerTransform(namePathToCamelCase);
73
+ PrimerStyleDictionary.registerTransform(namePathToKebabCase);
74
+ PrimerStyleDictionary.registerTransform(namePathToSlashNotation);
75
+ PrimerStyleDictionary.registerTransform(shadowToCss);
76
+ PrimerStyleDictionary.registerTransform(borderToCss);
77
+ PrimerStyleDictionary.registerTransform(typographyToCss);
78
+ PrimerStyleDictionary.registerTransform(fontWeightToNumber);
79
+ PrimerStyleDictionary.registerTransform(fontFamilyToCss);
80
+ PrimerStyleDictionary.registerTransform(fontFamilyToFigma);
@@ -0,0 +1,7 @@
1
+ import type { TransformedToken } from 'style-dictionary/types';
2
+ /**
3
+ * @description Checks if token is of $type `cubicBezier`
4
+ * @param token [TransformedToken](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts)
5
+ * @returns boolean
6
+ */
7
+ export declare const isCubicBezier: (token: TransformedToken) => boolean;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @description Checks if token is of $type `cubicBezier`
3
+ * @param token [TransformedToken](https://github.com/amzn/style-dictionary/blob/main/types/TransformedToken.d.ts)
4
+ * @returns boolean
5
+ */
6
+ export const isCubicBezier = (token) => {
7
+ var _a;
8
+ const typeValue = (_a = token.$type) !== null && _a !== void 0 ? _a : token.type;
9
+ return typeValue === 'cubicBezier';
10
+ };
@@ -37,9 +37,9 @@ const getTokenType = (tokenTypesPath) => {
37
37
  const designTokenType = readFileSync(resolvePath(tokenTypesPath), { encoding: 'utf-8' });
38
38
  return designTokenType;
39
39
  }
40
- catch (e) {
40
+ catch (error) {
41
41
  // eslint-disable-next-line no-console
42
- throw new Error(`Error trying to load design token type from file "${tokenTypesPath}".`);
42
+ throw new Error(`Error trying to load design token type from file "${tokenTypesPath}". Error: ${error}`);
43
43
  }
44
44
  };
45
45
  /**
@@ -18,8 +18,8 @@ export const w3cJsonParser = {
18
18
  //
19
19
  return JSON5.parse(contents);
20
20
  }
21
- catch (e) {
22
- throw new Error(`Invalid json5 file "${filePath}".`);
21
+ catch (error) {
22
+ throw new Error(`Invalid json5 file "${filePath}". Error: ${error}`);
23
23
  }
24
24
  },
25
25
  };
@@ -23,6 +23,7 @@ export const css = (outputFile, prefix, buildPath, options) => {
23
23
  'name/pathToKebabCase',
24
24
  'color/hex',
25
25
  'color/hexMix',
26
+ 'cubicBezier/css',
26
27
  'dimension/rem',
27
28
  'duration/css',
28
29
  'shadow/css',
@@ -29,14 +29,14 @@ export declare const borderToken: z.ZodObject<z.objectUtil.extendShape<{
29
29
  color: string;
30
30
  style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset";
31
31
  }>, z.ZodEffects<z.ZodString, string, string>]>;
32
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
32
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
33
33
  }>, "strict", z.ZodTypeAny, {
34
34
  $value: string | {
35
35
  width: string | 0;
36
36
  color: string;
37
37
  style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset";
38
38
  };
39
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
39
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
40
40
  $description?: string | undefined;
41
41
  deprecated?: string | boolean | undefined;
42
42
  }, {
@@ -45,7 +45,7 @@ export declare const borderToken: z.ZodObject<z.objectUtil.extendShape<{
45
45
  color: string;
46
46
  style: "inset" | "solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "outset";
47
47
  };
48
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
48
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
49
49
  $description?: string | undefined;
50
50
  deprecated?: string | boolean | undefined;
51
51
  }>;
@@ -4,7 +4,7 @@ export declare const colorToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  alpha: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodAny, any, any>>>;
9
9
  mix: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
10
  color: z.ZodString;
@@ -20,35 +20,40 @@ export declare const colorToken: z.ZodObject<z.objectUtil.extendShape<{
20
20
  alpha: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
21
21
  'org.primer.figma': z.ZodOptional<z.ZodObject<{
22
22
  collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
23
- mode: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
23
+ modeOverride: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
24
24
  scopes: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
25
+ group: z.ZodOptional<z.ZodString>;
25
26
  }, "strip", z.ZodTypeAny, {
26
- mode?: string | undefined;
27
+ group?: string | undefined;
27
28
  collection?: string | undefined;
29
+ modeOverride?: string | undefined;
28
30
  scopes?: string[] | undefined;
29
31
  }, {
30
- mode?: string | undefined;
32
+ group?: string | undefined;
31
33
  collection?: string | undefined;
34
+ modeOverride?: string | undefined;
32
35
  scopes?: string[] | undefined;
33
36
  }>>;
34
37
  }, "strip", z.ZodTypeAny, {
35
38
  alpha?: number | null | undefined;
36
39
  'org.primer.figma'?: {
37
- mode?: string | undefined;
40
+ group?: string | undefined;
38
41
  collection?: string | undefined;
42
+ modeOverride?: string | undefined;
39
43
  scopes?: string[] | undefined;
40
44
  } | undefined;
41
45
  }, {
42
46
  alpha?: number | null | undefined;
43
47
  'org.primer.figma'?: {
44
- mode?: string | undefined;
48
+ group?: string | undefined;
45
49
  collection?: string | undefined;
50
+ modeOverride?: string | undefined;
46
51
  scopes?: string[] | undefined;
47
52
  } | undefined;
48
53
  }>>;
49
54
  }>, "strict", z.ZodTypeAny, {
50
55
  $value: string;
51
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
56
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
52
57
  alpha?: any;
53
58
  $description?: string | undefined;
54
59
  mix?: {
@@ -59,14 +64,15 @@ export declare const colorToken: z.ZodObject<z.objectUtil.extendShape<{
59
64
  $extensions?: {
60
65
  alpha?: number | null | undefined;
61
66
  'org.primer.figma'?: {
62
- mode?: string | undefined;
67
+ group?: string | undefined;
63
68
  collection?: string | undefined;
69
+ modeOverride?: string | undefined;
64
70
  scopes?: string[] | undefined;
65
71
  } | undefined;
66
72
  } | undefined;
67
73
  }, {
68
74
  $value: string;
69
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
75
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
70
76
  alpha?: any;
71
77
  $description?: string | undefined;
72
78
  mix?: {
@@ -77,8 +83,9 @@ export declare const colorToken: z.ZodObject<z.objectUtil.extendShape<{
77
83
  $extensions?: {
78
84
  alpha?: number | null | undefined;
79
85
  'org.primer.figma'?: {
80
- mode?: string | undefined;
86
+ group?: string | undefined;
81
87
  collection?: string | undefined;
88
+ modeOverride?: string | undefined;
82
89
  scopes?: string[] | undefined;
83
90
  } | undefined;
84
91
  } | undefined;
@@ -32,7 +32,7 @@ export const colorToken = baseToken
32
32
  'mode',
33
33
  'pattern/mode',
34
34
  ]).optional(),
35
- mode: mode([
35
+ modeOverride: mode([
36
36
  'light',
37
37
  'dark',
38
38
  'dark dimmed',
@@ -44,6 +44,7 @@ export const colorToken = baseToken
44
44
  'dark tritanopia',
45
45
  ]).optional(),
46
46
  scopes: scopes(['all', 'bgColor', 'fgColor', 'borderColor', 'effectColor']).optional(),
47
+ group: z.string().optional(),
47
48
  })
48
49
  .optional(),
49
50
  })
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const cubicBezierToken: z.ZodObject<z.objectUtil.extendShape<{
3
+ $description: z.ZodOptional<z.ZodString>;
4
+ deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
+ }, {
6
+ $value: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodEffects<z.ZodString, string, string>]>;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
+ }>, "strict", z.ZodTypeAny, {
9
+ $value: string | number[];
10
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
11
+ $description?: string | undefined;
12
+ deprecated?: string | boolean | undefined;
13
+ }, {
14
+ $value: string | number[];
15
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
16
+ $description?: string | undefined;
17
+ deprecated?: string | boolean | undefined;
18
+ }>;
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { baseToken } from './baseToken.js';
3
+ import { referenceValue } from './referenceValue.js';
4
+ import { tokenType } from './tokenType.js';
5
+ export const cubicBezierToken = baseToken.extend({
6
+ $value: z.union([z.array(z.number()).length(4), referenceValue]),
7
+ $type: tokenType('cubicBezier'),
8
+ });
@@ -11,12 +11,14 @@ import { colorToken } from './colorToken.js';
11
11
  import { fontFamilyToken } from './fontFamilyToken.js';
12
12
  import { shadowToken } from './shadowToken.js';
13
13
  import { durationToken } from './durationToken.js';
14
+ import { cubicBezierToken } from './cubicBezierToken.js';
14
15
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15
16
  // @ts-ignore: TODO: fix this
16
17
  export const designToken = z.record(tokenName, z.lazy(() => {
17
18
  return z.union([
18
19
  z.discriminatedUnion('$type', [
19
20
  colorToken,
21
+ cubicBezierToken,
20
22
  dimensionToken,
21
23
  shadowToken,
22
24
  borderToken,
@@ -28,7 +30,6 @@ export const designToken = z.record(tokenName, z.lazy(() => {
28
30
  durationToken,
29
31
  stringToken,
30
32
  ]),
31
- // referenceToken,
32
33
  designToken,
33
34
  ]);
34
35
  }));
@@ -4,49 +4,56 @@ export declare const dimensionToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"0">, z.ZodLiteral<0>]>, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  $extensions: z.ZodOptional<z.ZodObject<{
9
9
  'org.primer.figma': z.ZodObject<{
10
10
  collection: z.ZodEffects<z.ZodString, string, string>;
11
11
  scopes: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
12
+ group: z.ZodOptional<z.ZodString>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  collection: string;
14
15
  scopes: string[];
16
+ group?: string | undefined;
15
17
  }, {
16
18
  collection: string;
17
19
  scopes: string[];
20
+ group?: string | undefined;
18
21
  }>;
19
22
  }, "strip", z.ZodTypeAny, {
20
23
  'org.primer.figma': {
21
24
  collection: string;
22
25
  scopes: string[];
26
+ group?: string | undefined;
23
27
  };
24
28
  }, {
25
29
  'org.primer.figma': {
26
30
  collection: string;
27
31
  scopes: string[];
32
+ group?: string | undefined;
28
33
  };
29
34
  }>>;
30
35
  }>, "strict", z.ZodTypeAny, {
31
36
  $value: string | 0;
32
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
37
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
33
38
  $description?: string | undefined;
34
39
  deprecated?: string | boolean | undefined;
35
40
  $extensions?: {
36
41
  'org.primer.figma': {
37
42
  collection: string;
38
43
  scopes: string[];
44
+ group?: string | undefined;
39
45
  };
40
46
  } | undefined;
41
47
  }, {
42
48
  $value: string | 0;
43
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
49
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
44
50
  $description?: string | undefined;
45
51
  deprecated?: string | boolean | undefined;
46
52
  $extensions?: {
47
53
  'org.primer.figma': {
48
54
  collection: string;
49
55
  scopes: string[];
56
+ group?: string | undefined;
50
57
  };
51
58
  } | undefined;
52
59
  }>;
@@ -26,6 +26,7 @@ export const dimensionToken = baseToken
26
26
  'paragraphSpacing',
27
27
  'paragraphIndent',
28
28
  ]),
29
+ group: z.string().optional(),
29
30
  }),
30
31
  })
31
32
  .optional(),
@@ -4,15 +4,15 @@ export declare const durationToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  }>, "strict", z.ZodTypeAny, {
9
9
  $value: string;
10
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
10
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
11
11
  $description?: string | undefined;
12
12
  deprecated?: string | boolean | undefined;
13
13
  }, {
14
14
  $value: string;
15
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
15
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
16
16
  $description?: string | undefined;
17
17
  deprecated?: string | boolean | undefined;
18
18
  }>;
@@ -4,7 +4,7 @@ export declare const fontFamilyToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  $extensions: z.ZodOptional<z.ZodObject<{
9
9
  'org.primer.figma': z.ZodObject<{
10
10
  collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -29,7 +29,7 @@ export declare const fontFamilyToken: z.ZodObject<z.objectUtil.extendShape<{
29
29
  }>>;
30
30
  }>, "strict", z.ZodTypeAny, {
31
31
  $value: string;
32
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
32
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
33
33
  $description?: string | undefined;
34
34
  deprecated?: string | boolean | undefined;
35
35
  $extensions?: {
@@ -40,7 +40,7 @@ export declare const fontFamilyToken: z.ZodObject<z.objectUtil.extendShape<{
40
40
  } | undefined;
41
41
  }, {
42
42
  $value: string;
43
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
43
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
44
44
  $description?: string | undefined;
45
45
  deprecated?: string | boolean | undefined;
46
46
  $extensions?: {
@@ -3,7 +3,7 @@ export declare const fontWeightToken: z.ZodObject<z.objectUtil.extendShape<{
3
3
  $description: z.ZodOptional<z.ZodString>;
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
6
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
7
7
  $value: z.ZodUnion<[z.ZodEffects<z.ZodNumber, number, number>, z.ZodEffects<z.ZodString, string, string>]>;
8
8
  $extensions: z.ZodOptional<z.ZodObject<{
9
9
  'org.primer.figma': z.ZodObject<{
@@ -29,7 +29,7 @@ export declare const fontWeightToken: z.ZodObject<z.objectUtil.extendShape<{
29
29
  }>>;
30
30
  }>, "strict", z.ZodTypeAny, {
31
31
  $value: string | number;
32
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
32
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
33
33
  $description?: string | undefined;
34
34
  deprecated?: string | boolean | undefined;
35
35
  $extensions?: {
@@ -40,7 +40,7 @@ export declare const fontWeightToken: z.ZodObject<z.objectUtil.extendShape<{
40
40
  } | undefined;
41
41
  }, {
42
42
  $value: string | number;
43
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
43
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
44
44
  $description?: string | undefined;
45
45
  deprecated?: string | boolean | undefined;
46
46
  $extensions?: {
@@ -4,7 +4,7 @@ export declare const numberToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  $extensions: z.ZodOptional<z.ZodObject<{
9
9
  'org.primer.data': z.ZodOptional<z.ZodObject<{
10
10
  fontSize: z.ZodOptional<z.ZodNumber>;
@@ -42,7 +42,7 @@ export declare const numberToken: z.ZodObject<z.objectUtil.extendShape<{
42
42
  }>>;
43
43
  }>, "strict", z.ZodTypeAny, {
44
44
  $value: string | number;
45
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
45
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
46
46
  $description?: string | undefined;
47
47
  deprecated?: string | boolean | undefined;
48
48
  $extensions?: {
@@ -56,7 +56,7 @@ export declare const numberToken: z.ZodObject<z.objectUtil.extendShape<{
56
56
  } | undefined;
57
57
  }, {
58
58
  $value: string | number;
59
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
59
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
60
60
  $description?: string | undefined;
61
61
  deprecated?: string | boolean | undefined;
62
62
  $extensions?: {
@@ -77,27 +77,32 @@ export declare const shadowToken: z.ZodObject<z.objectUtil.extendShape<{
77
77
  alpha?: any;
78
78
  inset?: boolean | undefined;
79
79
  }>, "many">, z.ZodEffects<z.ZodString, string, string>]>;
80
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
80
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
81
81
  $extensions: z.ZodOptional<z.ZodObject<{
82
82
  'org.primer.figma': z.ZodObject<{
83
83
  collection: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
84
- mode: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
85
- }, "strip", z.ZodTypeAny, {
86
- mode?: string | undefined;
84
+ modeOverride: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
85
+ group: z.ZodOptional<z.ZodString>;
86
+ }, "strict", z.ZodTypeAny, {
87
+ group?: string | undefined;
87
88
  collection?: string | undefined;
89
+ modeOverride?: string | undefined;
88
90
  }, {
89
- mode?: string | undefined;
91
+ group?: string | undefined;
90
92
  collection?: string | undefined;
93
+ modeOverride?: string | undefined;
91
94
  }>;
92
95
  }, "strip", z.ZodTypeAny, {
93
96
  'org.primer.figma': {
94
- mode?: string | undefined;
97
+ group?: string | undefined;
95
98
  collection?: string | undefined;
99
+ modeOverride?: string | undefined;
96
100
  };
97
101
  }, {
98
102
  'org.primer.figma': {
99
- mode?: string | undefined;
103
+ group?: string | undefined;
100
104
  collection?: string | undefined;
105
+ modeOverride?: string | undefined;
101
106
  };
102
107
  }>>;
103
108
  }>, "strict", z.ZodTypeAny, {
@@ -118,13 +123,14 @@ export declare const shadowToken: z.ZodObject<z.objectUtil.extendShape<{
118
123
  alpha?: any;
119
124
  inset?: boolean | undefined;
120
125
  }[];
121
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
126
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
122
127
  $description?: string | undefined;
123
128
  deprecated?: string | boolean | undefined;
124
129
  $extensions?: {
125
130
  'org.primer.figma': {
126
- mode?: string | undefined;
131
+ group?: string | undefined;
127
132
  collection?: string | undefined;
133
+ modeOverride?: string | undefined;
128
134
  };
129
135
  } | undefined;
130
136
  }, {
@@ -145,13 +151,14 @@ export declare const shadowToken: z.ZodObject<z.objectUtil.extendShape<{
145
151
  alpha?: any;
146
152
  inset?: boolean | undefined;
147
153
  }[];
148
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
154
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
149
155
  $description?: string | undefined;
150
156
  deprecated?: string | boolean | undefined;
151
157
  $extensions?: {
152
158
  'org.primer.figma': {
153
- mode?: string | undefined;
159
+ group?: string | undefined;
154
160
  collection?: string | undefined;
161
+ modeOverride?: string | undefined;
155
162
  };
156
163
  } | undefined;
157
164
  }>;
@@ -23,9 +23,10 @@ export const shadowToken = baseToken
23
23
  $type: tokenType('shadow'),
24
24
  $extensions: z
25
25
  .object({
26
- 'org.primer.figma': z.object({
26
+ 'org.primer.figma': z
27
+ .object({
27
28
  collection: collection(['mode']).optional(),
28
- mode: mode([
29
+ modeOverride: mode([
29
30
  'light',
30
31
  'dark',
31
32
  'dark dimmed',
@@ -36,7 +37,9 @@ export const shadowToken = baseToken
36
37
  'light tritanopia',
37
38
  'dark tritanopia',
38
39
  ]).optional(),
39
- }),
40
+ group: z.string().optional(),
41
+ })
42
+ .strict(),
40
43
  })
41
44
  .optional(),
42
45
  })
@@ -4,15 +4,15 @@ export declare const stringToken: z.ZodObject<z.objectUtil.extendShape<{
4
4
  deprecated: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
5
5
  }, {
6
6
  $value: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
7
- $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
7
+ $type: z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;
8
8
  }>, "strict", z.ZodTypeAny, {
9
9
  $value: string;
10
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
10
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
11
11
  $description?: string | undefined;
12
12
  deprecated?: string | boolean | undefined;
13
13
  }, {
14
14
  $value: string;
15
- $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange";
15
+ $type: "string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange";
16
16
  $description?: string | undefined;
17
17
  deprecated?: string | boolean | undefined;
18
18
  }>;
@@ -1,3 +1,3 @@
1
1
  import { z } from 'zod';
2
2
  import type { TokenType } from './validTokenType.js';
3
- export declare const tokenType: ($type: TokenType) => z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "custom-viewportRange">;
3
+ export declare const tokenType: ($type: TokenType) => z.ZodLiteral<"string" | "number" | "border" | "color" | "fontFamily" | "fontWeight" | "dimension" | "duration" | "shadow" | "typography" | "cubicBezier" | "custom-viewportRange">;