@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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/artifacts/generated-pairs.js +1 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +12 -11
- package/dist/cjs/babel-plugin/plugin.js +5 -2
- package/dist/cjs/entry-points/token-metadata.codegen.js +6 -6
- package/dist/cjs/entry-points/tokens-raw.js +9 -2
- package/dist/es2019/artifacts/generated-pairs.js +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +12 -11
- package/dist/es2019/babel-plugin/plugin.js +5 -2
- package/dist/es2019/entry-points/token-metadata.codegen.js +6 -6
- package/dist/es2019/entry-points/tokens-raw.js +3 -2
- package/dist/esm/artifacts/generated-pairs.js +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +12 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +12 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +12 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +12 -11
- package/dist/esm/babel-plugin/plugin.js +5 -2
- package/dist/esm/entry-points/token-metadata.codegen.js +6 -6
- package/dist/esm/entry-points/tokens-raw.js +3 -2
- package/dist/types/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/entry-points/tokens-raw.d.ts +3 -2
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +3 -2
- package/figma/atlassian-typography-adg3.json +2 -2
- package/figma/atlassian-typography-modernized.json +2 -2
- package/figma/atlassian-typography-refreshed.json +2 -2
- package/figma/atlassian-typography.json +2 -2
- package/offerings.json +32 -0
- 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
|
|
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::
|
|
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
|
|
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
|
|
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: '
|
|
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
|
|
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
|
|
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
|
|
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';
|