@atlaskit/tokens 6.3.1 → 6.3.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.
Files changed (145) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/artifacts/generated-pairs.js +1 -1
  3. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +2 -1
  4. package/dist/cjs/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  5. package/dist/cjs/artifacts/palettes-raw/palette.js +2 -1
  6. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +2 -1
  7. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +2 -1
  8. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +2 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +2 -1
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  15. package/dist/cjs/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  16. package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  17. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  18. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +2 -1
  19. package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  20. package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  21. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +2 -1
  22. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  23. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
  24. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
  25. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
  26. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +12 -11
  27. package/dist/cjs/babel-plugin/plugin.js +5 -2
  28. package/dist/cjs/entry-points/token-metadata.codegen.js +6 -6
  29. package/dist/cjs/entry-points/tokens-raw.js +9 -2
  30. package/dist/es2019/artifacts/generated-pairs.js +1 -1
  31. package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
  32. package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  33. package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
  34. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
  35. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
  36. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
  37. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  38. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  39. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  40. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
  41. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  44. package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  45. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  46. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
  47. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  48. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  49. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
  50. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  51. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
  52. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
  53. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
  54. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +12 -11
  55. package/dist/es2019/babel-plugin/plugin.js +5 -2
  56. package/dist/es2019/entry-points/token-metadata.codegen.js +6 -6
  57. package/dist/es2019/entry-points/tokens-raw.js +3 -2
  58. package/dist/esm/artifacts/generated-pairs.js +1 -1
  59. package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
  60. package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  61. package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
  62. package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
  63. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
  64. package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
  65. package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  66. package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  67. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  68. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
  69. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  70. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  71. package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  72. package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  73. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  74. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
  75. package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  76. package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  77. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
  78. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  79. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
  80. package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
  81. package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
  82. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +12 -11
  83. package/dist/esm/babel-plugin/plugin.js +5 -2
  84. package/dist/esm/entry-points/token-metadata.codegen.js +6 -6
  85. package/dist/esm/entry-points/tokens-raw.js +3 -2
  86. package/dist/types/artifacts/generated-pairs.d.ts +4 -9
  87. package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  88. package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  89. package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
  90. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  91. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  92. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  93. package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  94. package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  95. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  96. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  97. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  98. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  99. package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  100. package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  101. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  102. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  103. package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  104. package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  105. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  106. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  107. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  108. package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  109. package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  110. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  111. package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
  112. package/dist/types/entry-points/tokens-raw.d.ts +3 -2
  113. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
  114. package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  115. package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  116. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
  117. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  118. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  119. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  120. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  121. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  122. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  123. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  124. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  125. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  126. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  127. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  128. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  129. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  130. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  131. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  132. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  133. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  134. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  135. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  136. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  137. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  138. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
  139. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +3 -2
  140. package/figma/atlassian-typography-adg3.json +2 -2
  141. package/figma/atlassian-typography-modernized.json +2 -2
  142. package/figma/atlassian-typography-refreshed.json +2 -2
  143. package/figma/atlassian-typography.json +2 -2
  144. package/offerings.json +32 -0
  145. package/package.json +9 -28
@@ -40,7 +40,7 @@ var getThemeValues = function getThemeValues(theme) {
40
40
  value = rawToken.value;
41
41
  } else if (typeof rawToken.value === 'number') {
42
42
  value = rawToken.value.toString();
43
- } else {
43
+ } else if (Array.isArray(rawToken.value)) {
44
44
  // If it's a box shadow, it'll be an array of values that needs to be
45
45
  // formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
46
46
  value = rawToken.value.reduce(function (prev, curr, index) {
@@ -64,6 +64,9 @@ var getThemeValues = function getThemeValues(theme) {
64
64
  }
65
65
  return prev + value;
66
66
  }, '');
67
+ } else {
68
+ // ignore when value is `fontweight` etc. - this is apparently not handled here.
69
+ return formatted;
67
70
  }
68
71
  return _objectSpread(_objectSpread({}, formatted), {}, _defineProperty({}, rawToken.cleanName, value));
69
72
  }, {});
@@ -111,7 +114,7 @@ export default function plugin() {
111
114
  }
112
115
  }
113
116
 
114
- // The border.radius tokens are skipped in shouldForceAutoFallback mode because these tokens are not enabled in the live products and enforcing default values on them will override all the fallback values that are currently being used to render the actual UI.
117
+ // The border.radius tokens are skipped in shouldForceAutoFallback mode because these tokens are not enabled in the live apps and enforcing default values on them will override all the fallback values that are currently being used to render the actual UI.
115
118
  // The exempted tokens (the ones that start with any of the provided exemption prefixes) are also skipped.
116
119
  var forceAutoFallbackExemptions = ['border.radius'].concat(_toConsumableArray(state.opts.forceAutoFallbackExemptions || []));
117
120
 
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Metadata for generation of of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
5
5
  *
6
- * @codegen <<SignedSource::8f8418aa1d6ba188bbe4113e52db79c6>>
6
+ * @codegen <<SignedSource::e7aee1e60142ef9336a2208ccfa3aa22>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
 
@@ -2080,17 +2080,17 @@ export var tokens = [{
2080
2080
  }, {
2081
2081
  name: 'font.heading.xxlarge',
2082
2082
  path: ['font', 'heading', 'xxlarge'],
2083
- description: 'For overlapping brand with product promotions, such as marketplace content. Migrate instances of H900 to Heading XXL.',
2083
+ description: 'For overlapping brand with app promotions, such as marketplace content. Migrate instances of H900 to Heading XXL.',
2084
2084
  exampleValue: 'normal 500 2.1875rem/2.5rem ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
2085
2085
  }, {
2086
2086
  name: 'font.heading.xlarge',
2087
2087
  path: ['font', 'heading', 'xlarge'],
2088
- description: 'For overlapping brand with product promotions, such as marketplace content. Migrate instances of H800 to Heading XL.',
2088
+ description: 'For overlapping brand with app promotions, such as marketplace content. Migrate instances of H800 to Heading XL.',
2089
2089
  exampleValue: 'normal 600 1.8125rem/2rem ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
2090
2090
  }, {
2091
2091
  name: 'font.heading.large',
2092
2092
  path: ['font', 'heading', 'large'],
2093
- description: 'Product page titles, such as forms. Migrate instances of H700 to Heading L.',
2093
+ description: 'App page titles, such as forms. Migrate instances of H700 to Heading L.',
2094
2094
  exampleValue: 'normal 500 1.5rem/1.75rem ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
2095
2095
  }, {
2096
2096
  name: 'font.heading.medium',
@@ -2175,12 +2175,12 @@ export var tokens = [{
2175
2175
  }, {
2176
2176
  name: 'font.family.heading',
2177
2177
  path: ['font', 'family', 'heading'],
2178
- description: 'For our default product UI heading text.',
2178
+ description: 'For our default UI heading text.',
2179
2179
  exampleValue: 'ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
2180
2180
  }, {
2181
2181
  name: 'font.family.body',
2182
2182
  path: ['font', 'family', 'body'],
2183
- description: 'For our default product UI body text.',
2183
+ description: 'For our default UI body text.',
2184
2184
  exampleValue: 'ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif'
2185
2185
  }, {
2186
2186
  name: 'font.family.code',
@@ -4,7 +4,8 @@ export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-
4
4
  export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
5
5
  export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
6
6
  export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
7
- export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
8
- export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
7
+ export { default as typography } from '../artifacts/tokens-raw/atlassian-typography';
9
8
  export { default as typographyAdg3 } from '../artifacts/tokens-raw/atlassian-typography-adg3';
9
+ export { default as typographyModernized } from '../artifacts/tokens-raw/atlassian-typography-modernized';
10
+ export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
10
11
  export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
@@ -4,18 +4,13 @@
4
4
  * Auto-generated list of token pairings that may need to have sufficient contrast.
5
5
  * Not currently used by tests, but is used by the custom theme contrast checker example
6
6
  *
7
- * @codegen <<SignedSource::910f70438e695b9115622b2cd52a4aea>>
7
+ * @codegen <<SignedSource::0eb97f6b58ef4db8602f525bf6140cc0>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
- export declare const generatedPairs: ({
10
+ export declare const generatedPairs: {
11
11
  foreground: string;
12
12
  background: string;
13
13
  desiredContrast: number;
14
- layeredTokens: string[];
15
- } | {
16
- foreground: string;
17
- background: string;
18
- desiredContrast: number;
19
- layeredTokens?: undefined;
20
- })[];
14
+ layeredTokens?: string[];
15
+ }[];
21
16
  export default generatedPairs;
@@ -1,41 +1,25 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5fb765784561d214bcc78d25188fa47e>>
3
+ * @codegen <<SignedSource::012be6ddb918f408e4258335916d9334>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- value: string;
8
- attributes: {
9
- group: string;
10
- category: string;
11
- };
12
- filePath: string;
13
- isSource: boolean;
14
- original: {
15
- value: string;
16
- attributes: {
17
- group: string;
18
- category: string;
19
- };
20
- };
21
- name: string;
22
- path: string[];
23
- } | {
24
- value: number;
25
- attributes: {
26
- group: string;
27
- category: string;
28
- };
6
+ type TokenValue = string | number;
7
+ type TokenValueOriginal = string | number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ category: string;
11
+ };
12
+ type Token = {
13
+ value: TokenValue;
29
14
  filePath: string;
30
15
  isSource: boolean;
16
+ attributes: TokenAttributes;
31
17
  original: {
32
- value: number;
33
- attributes: {
34
- group: string;
35
- category: string;
36
- };
18
+ value: TokenValueOriginal;
19
+ attributes: TokenAttributes;
37
20
  };
38
21
  name: string;
39
22
  path: string[];
40
- })[];
23
+ };
24
+ declare const tokens: Token[];
41
25
  export default tokens;
@@ -1,41 +1,25 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::a06fa043504c1e55d9871df9eab477b6>>
3
+ * @codegen <<SignedSource::54883f28091f3d25251716094b262928>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- value: string;
8
- attributes: {
9
- group: string;
10
- category: string;
11
- };
12
- filePath: string;
13
- isSource: boolean;
14
- original: {
15
- value: string;
16
- attributes: {
17
- group: string;
18
- category: string;
19
- };
20
- };
21
- name: string;
22
- path: string[];
23
- } | {
24
- value: number;
25
- attributes: {
26
- group: string;
27
- category: string;
28
- };
6
+ type TokenValue = string | number;
7
+ type TokenValueOriginal = string | number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ category: string;
11
+ };
12
+ type Token = {
13
+ value: TokenValue;
29
14
  filePath: string;
30
15
  isSource: boolean;
16
+ attributes: TokenAttributes;
31
17
  original: {
32
- value: number;
33
- attributes: {
34
- group: string;
35
- category: string;
36
- };
18
+ value: TokenValueOriginal;
19
+ attributes: TokenAttributes;
37
20
  };
38
21
  name: string;
39
22
  path: string[];
40
- })[];
23
+ };
24
+ declare const tokens: Token[];
41
25
  export default tokens;
@@ -1,41 +1,25 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::ef2302d3e60545ba54818efd29a896a6>>
3
+ * @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- value: string;
8
- attributes: {
9
- group: string;
10
- category: string;
11
- };
12
- filePath: string;
13
- isSource: boolean;
14
- original: {
15
- value: string;
16
- attributes: {
17
- group: string;
18
- category: string;
19
- };
20
- };
21
- name: string;
22
- path: string[];
23
- } | {
24
- value: number;
25
- attributes: {
26
- group: string;
27
- category: string;
28
- };
6
+ type TokenValue = string | number;
7
+ type TokenValueOriginal = string | number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ category: string;
11
+ };
12
+ type Token = {
13
+ value: TokenValue;
29
14
  filePath: string;
30
15
  isSource: boolean;
16
+ attributes: TokenAttributes;
31
17
  original: {
32
- value: number;
33
- attributes: {
34
- group: string;
35
- category: string;
36
- };
18
+ value: TokenValueOriginal;
19
+ attributes: TokenAttributes;
37
20
  };
38
21
  name: string;
39
22
  path: string[];
40
- })[];
23
+ };
24
+ declare const tokens: Token[];
41
25
  export default tokens;
@@ -1,37 +1,24 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::56944727b3c1e10bac5077e2c3edc9bf>>
3
+ * @codegen <<SignedSource::72feb1804c9c8d27535c172745ee1b9b>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- value: string;
8
- attributes: {
9
- group: string;
10
- };
11
- filePath: string;
12
- isSource: boolean;
13
- original: {
14
- value: number;
15
- attributes: {
16
- group: string;
17
- };
18
- };
19
- name: string;
20
- path: string[];
21
- } | {
22
- value: string;
23
- attributes: {
24
- group: string;
25
- };
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ };
11
+ type Token = {
12
+ value: TokenValue;
26
13
  filePath: string;
27
14
  isSource: boolean;
15
+ attributes: TokenAttributes;
28
16
  original: {
29
- value: string;
30
- attributes: {
31
- group: string;
32
- };
17
+ value: TokenValueOriginal;
18
+ attributes: TokenAttributes;
33
19
  };
34
20
  name: string;
35
21
  path: string[];
36
- })[];
22
+ };
23
+ declare const tokens: Token[];
37
24
  export default tokens;
@@ -1,22 +1,24 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::773f331b816c6bade1dffda09ee7f5ff>>
3
+ * @codegen <<SignedSource::11e5a7b123691c94315b7df9e7aa8f9f>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: {
7
- value: string;
8
- attributes: {
9
- group: string;
10
- };
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ };
11
+ type Token = {
12
+ value: TokenValue;
11
13
  filePath: string;
12
14
  isSource: boolean;
15
+ attributes: TokenAttributes;
13
16
  original: {
14
- value: number;
15
- attributes: {
16
- group: string;
17
- };
17
+ value: TokenValueOriginal;
18
+ attributes: TokenAttributes;
18
19
  };
19
20
  name: string;
20
21
  path: string[];
21
- }[];
22
+ };
23
+ declare const tokens: Token[];
22
24
  export default tokens;
@@ -1,37 +1,24 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::c4ada678a4605209a273f3250ad0a333>>
3
+ * @codegen <<SignedSource::0736e3ca289c67f160a69299616f69c9>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- value: string;
8
- attributes: {
9
- group: string;
10
- };
11
- filePath: string;
12
- isSource: boolean;
13
- original: {
14
- value: string;
15
- attributes: {
16
- group: string;
17
- };
18
- };
19
- name: string;
20
- path: string[];
21
- } | {
22
- value: string;
23
- attributes: {
24
- group: string;
25
- };
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | number;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ };
11
+ type Token = {
12
+ value: TokenValue;
26
13
  filePath: string;
27
14
  isSource: boolean;
15
+ attributes: TokenAttributes;
28
16
  original: {
29
- value: number;
30
- attributes: {
31
- group: string;
32
- };
17
+ value: TokenValueOriginal;
18
+ attributes: TokenAttributes;
33
19
  };
34
20
  name: string;
35
21
  path: string[];
36
- })[];
22
+ };
23
+ declare const tokens: Token[];
37
24
  export default tokens;
@@ -1,109 +1,50 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::62f6caabd88b17fe7f89c141fee3f0e2>>
3
+ * @codegen <<SignedSource::147a2afa95c37bc2a3b0a0e34c7a9710>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
6
+ type TokenValue = string | number | {
7
+ radius: number;
8
+ offset: {
9
+ x: number;
10
+ y: number;
12
11
  };
13
- value: string;
14
- filePath: string;
15
- isSource: boolean;
16
- original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: string;
24
- };
25
- name: string;
26
- path: string[];
27
- cleanName: string;
28
- } | {
29
- attributes: {
30
- group: string;
31
- state: string;
32
- introduced: string;
33
- description: string;
34
- };
35
- value: ({
36
- radius: number;
37
- spread: number;
38
- color: string;
39
- offset: {
40
- x: number;
41
- y: number;
42
- };
43
- opacity: number;
44
- } | {
45
- radius: number;
46
- offset: {
47
- x: number;
48
- y: number;
49
- };
50
- color: string;
51
- opacity: number;
52
- spread?: undefined;
53
- })[];
54
- filePath: string;
55
- isSource: boolean;
56
- original: {
57
- attributes: {
58
- group: string;
59
- state: string;
60
- introduced: string;
61
- description: string;
62
- };
63
- value: ({
64
- radius: number;
65
- spread: number;
66
- color: string;
67
- offset: {
68
- x: number;
69
- y: number;
70
- };
71
- opacity: number;
72
- } | {
73
- radius: number;
74
- offset: {
75
- x: number;
76
- y: number;
77
- };
78
- color: string;
79
- opacity: number;
80
- spread?: undefined;
81
- })[];
82
- };
83
- name: string;
84
- path: string[];
85
- cleanName: string;
86
- } | {
87
- attributes: {
88
- group: string;
89
- state: string;
90
- introduced: string;
91
- description: string;
12
+ color: string;
13
+ opacity: number;
14
+ spread?: number;
15
+ inset?: boolean;
16
+ }[];
17
+ type TokenValueOriginal = string | {
18
+ radius: number;
19
+ offset: {
20
+ x: number;
21
+ y: number;
92
22
  };
93
- value: number;
23
+ color: string;
24
+ opacity: number;
25
+ spread?: number;
26
+ inset?: boolean;
27
+ }[];
28
+ type TokenAttributes = {
29
+ group: string;
30
+ state: string;
31
+ introduced: string;
32
+ description: string;
33
+ suggest?: string[];
34
+ deprecated?: string;
35
+ };
36
+ type Token = {
37
+ value: TokenValue;
94
38
  filePath: string;
95
39
  isSource: boolean;
40
+ attributes: TokenAttributes;
96
41
  original: {
97
- attributes: {
98
- group: string;
99
- state: string;
100
- introduced: string;
101
- description: string;
102
- };
103
- value: string;
42
+ value: TokenValueOriginal;
43
+ attributes: TokenAttributes;
104
44
  };
105
45
  name: string;
106
46
  path: string[];
107
47
  cleanName: string;
108
- })[];
48
+ };
49
+ declare const tokens: Token[];
109
50
  export default tokens;
@@ -1,29 +1,30 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::ab55c164418ef8725d43715108841276>>
3
+ * @codegen <<SignedSource::98ec2ef3c3602f1046b2ecf3775d0f05>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: {
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- };
13
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ state: string;
11
+ introduced: string;
12
+ description: string;
13
+ suggest?: string[];
14
+ deprecated?: string;
15
+ };
16
+ type Token = {
17
+ value: TokenValue;
14
18
  filePath: string;
15
19
  isSource: boolean;
20
+ attributes: TokenAttributes;
16
21
  original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: string;
22
+ value: TokenValueOriginal;
23
+ attributes: TokenAttributes;
24
24
  };
25
25
  name: string;
26
26
  path: string[];
27
27
  cleanName: string;
28
- }[];
28
+ };
29
+ declare const tokens: Token[];
29
30
  export default tokens;