@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
@@ -23,7 +23,7 @@ const getThemeValues = theme => {
23
23
  value = rawToken.value;
24
24
  } else if (typeof rawToken.value === 'number') {
25
25
  value = rawToken.value.toString();
26
- } else {
26
+ } else if (Array.isArray(rawToken.value)) {
27
27
  // If it's a box shadow, it'll be an array of values that needs to be
28
28
  // formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
29
29
  value = rawToken.value.reduce((prev, curr, index) => {
@@ -47,6 +47,9 @@ const getThemeValues = theme => {
47
47
  }
48
48
  return prev + value;
49
49
  }, '');
50
+ } else {
51
+ // ignore when value is `fontweight` etc. - this is apparently not handled here.
52
+ return formatted;
50
53
  }
51
54
  return {
52
55
  ...formatted,
@@ -97,7 +100,7 @@ export default function plugin() {
97
100
  }
98
101
  }
99
102
 
100
- // 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.
103
+ // 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.
101
104
  // The exempted tokens (the ones that start with any of the provided exemption prefixes) are also skipped.
102
105
  const forceAutoFallbackExemptions = ['border.radius', ...(state.opts.forceAutoFallbackExemptions || [])];
103
106
 
@@ -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 const 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 const 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';