@atlaskit/tokens 0.10.26 → 0.10.27
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 +6 -0
- package/css/atlassian-spacing.css +20 -0
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +195 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-dark.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-dark.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-light.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-light.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +79 -0
- package/dist/cjs/artifacts/rename-mapping.js +11 -418
- package/dist/cjs/artifacts/token-default-values.js +15 -302
- package/dist/cjs/artifacts/token-names.js +14 -298
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +314 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +311 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +33 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-names.js +29 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types.js +5 -0
- package/dist/cjs/constants.js +4 -3
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/spacing-scale.js +86 -0
- package/dist/cjs/tokens/atlassian-spacing/spacing.js +55 -0
- package/dist/cjs/tokens/default/spacing/spacing.js +133 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +187 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-dark.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-light.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +71 -0
- package/dist/es2019/artifacts/rename-mapping.js +5 -418
- package/dist/es2019/artifacts/token-default-values.js +7 -301
- package/dist/es2019/artifacts/token-names.js +6 -297
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +306 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types.js +7 -0
- package/dist/es2019/constants.js +4 -3
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/spacing-scale.js +79 -0
- package/dist/es2019/tokens/atlassian-spacing/spacing.js +48 -0
- package/dist/es2019/tokens/default/spacing/spacing.js +126 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +187 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-dark.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-light.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +71 -0
- package/dist/esm/artifacts/rename-mapping.js +7 -418
- package/dist/esm/artifacts/token-default-values.js +14 -302
- package/dist/esm/artifacts/token-names.js +13 -298
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +306 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-light-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-light-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-types.js +7 -0
- package/dist/esm/constants.js +4 -3
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/spacing-scale.js +79 -0
- package/dist/esm/tokens/atlassian-spacing/spacing.js +48 -0
- package/dist/esm/tokens/default/spacing/spacing.js +126 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
- package/dist/types/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping.d.ts +4 -24
- package/dist/types/artifacts/token-default-values.d.ts +306 -301
- package/dist/types/artifacts/token-names.d.ts +16 -298
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
- package/dist/types/artifacts/types-internal.d.ts +2 -6
- package/dist/types/artifacts/types.d.ts +2 -6
- package/dist/types/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-light-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
- package/dist/types/constants.d.ts +3 -2
- package/dist/types/palettes/spacing-scale.d.ts +5 -0
- package/dist/types/tokens/atlassian-spacing/spacing.d.ts +4 -0
- package/dist/types/tokens/default/spacing/spacing.d.ts +4 -0
- package/dist/types/types.d.ts +43 -3
- package/dist/types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +4 -24
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +306 -301
- package/dist/types-ts4.0/artifacts/token-names.d.ts +16 -298
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
- package/dist/types-ts4.0/artifacts/types-internal.d.ts +2 -6
- package/dist/types-ts4.0/artifacts/types.d.ts +2 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
- package/dist/types-ts4.0/constants.d.ts +4 -2
- package/dist/types-ts4.0/palettes/spacing-scale.d.ts +5 -0
- package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +4 -0
- package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +4 -0
- package/dist/types-ts4.0/types.d.ts +43 -3
- package/package.json +2 -1
- package/report.api.md +42 -3
- package/tmp/api-report-tmp.d.ts +36 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::873e77ae05fb3ff2730f5f6110aaeae3>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
var tokens = {
|
|
7
|
+
'spacing.container.gutter': '--ds-container-gutter',
|
|
8
|
+
'spacing.scale.0': '--ds-scale-0',
|
|
9
|
+
'spacing.scale.100': '--ds-scale-100',
|
|
10
|
+
'spacing.scale.150': '--ds-scale-150',
|
|
11
|
+
'spacing.scale.200': '--ds-scale-200',
|
|
12
|
+
'spacing.scale.250': '--ds-scale-250',
|
|
13
|
+
'spacing.scale.300': '--ds-scale-300',
|
|
14
|
+
'spacing.scale.400': '--ds-scale-400',
|
|
15
|
+
'spacing.scale.500': '--ds-scale-500',
|
|
16
|
+
'spacing.scale.600': '--ds-scale-600',
|
|
17
|
+
'spacing.scale.025': '--ds-scale-025',
|
|
18
|
+
'spacing.scale.050': '--ds-scale-050',
|
|
19
|
+
'spacing.scale.075': '--ds-scale-075'
|
|
20
|
+
};
|
|
21
|
+
export default tokens;
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export var THEMES = ['light', 'dark', 'legacy-light', 'legacy-dark'];
|
|
1
|
+
export var THEMES = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing'];
|
|
2
2
|
export var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
3
|
-
export var DEFAULT_THEME = 'light';
|
|
3
|
+
export var DEFAULT_THEME = 'light spacing';
|
|
4
4
|
export var CSS_PREFIX = 'ds';
|
|
5
5
|
export var CSS_VAR_FULL = ['opacity']; // Maps the longer theme name to a shorthand used in css/code
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ export var THEME_NAME_MAP = {
|
|
|
8
8
|
'atlassian-light': 'light',
|
|
9
9
|
'atlassian-dark': 'dark',
|
|
10
10
|
'atlassian-legacy-light': 'legacy-light',
|
|
11
|
-
'atlassian-legacy-dark': 'legacy-dark'
|
|
11
|
+
'atlassian-legacy-dark': 'legacy-dark',
|
|
12
|
+
'atlassian-spacing': 'spacing'
|
|
12
13
|
};
|
|
13
14
|
export var TOKEN_NOT_FOUND_CSS_VAR = "--".concat(CSS_PREFIX, "-token-not-found");
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "0.10.
|
|
5
|
+
var version = "0.10.27";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
var token = tokens[path];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var scale = {
|
|
2
|
+
spacing: {
|
|
3
|
+
scale: {
|
|
4
|
+
Space0: {
|
|
5
|
+
value: '0',
|
|
6
|
+
attributes: {
|
|
7
|
+
group: 'scale'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
Space025: {
|
|
11
|
+
value: '2px',
|
|
12
|
+
attributes: {
|
|
13
|
+
group: 'scale'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
Space050: {
|
|
17
|
+
value: '4px',
|
|
18
|
+
attributes: {
|
|
19
|
+
group: 'scale'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
Space075: {
|
|
23
|
+
value: '6px',
|
|
24
|
+
attributes: {
|
|
25
|
+
group: 'scale'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
Space100: {
|
|
29
|
+
value: '8px',
|
|
30
|
+
attributes: {
|
|
31
|
+
group: 'scale'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
Space150: {
|
|
35
|
+
value: '12px',
|
|
36
|
+
attributes: {
|
|
37
|
+
group: 'scale'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
Space200: {
|
|
41
|
+
value: '16px',
|
|
42
|
+
attributes: {
|
|
43
|
+
group: 'scale'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
Space250: {
|
|
47
|
+
value: '20px',
|
|
48
|
+
attributes: {
|
|
49
|
+
group: 'scale'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
Space300: {
|
|
53
|
+
value: '24px',
|
|
54
|
+
attributes: {
|
|
55
|
+
group: 'scale'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
Space400: {
|
|
59
|
+
value: '32px',
|
|
60
|
+
attributes: {
|
|
61
|
+
group: 'scale'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
Space500: {
|
|
65
|
+
value: '40px',
|
|
66
|
+
attributes: {
|
|
67
|
+
group: 'scale'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
Space600: {
|
|
71
|
+
value: '48px',
|
|
72
|
+
attributes: {
|
|
73
|
+
group: 'scale'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export default scale;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var spacing = {
|
|
2
|
+
spacing: {
|
|
3
|
+
container: {
|
|
4
|
+
gutter: {
|
|
5
|
+
value: 'Space100'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
scale: {
|
|
9
|
+
'0': {
|
|
10
|
+
value: 'Space0'
|
|
11
|
+
},
|
|
12
|
+
'025': {
|
|
13
|
+
value: 'Space025'
|
|
14
|
+
},
|
|
15
|
+
'050': {
|
|
16
|
+
value: 'Space050'
|
|
17
|
+
},
|
|
18
|
+
'075': {
|
|
19
|
+
value: 'Space075'
|
|
20
|
+
},
|
|
21
|
+
'100': {
|
|
22
|
+
value: 'Space100'
|
|
23
|
+
},
|
|
24
|
+
'150': {
|
|
25
|
+
value: 'Space150'
|
|
26
|
+
},
|
|
27
|
+
'200': {
|
|
28
|
+
value: 'Space200'
|
|
29
|
+
},
|
|
30
|
+
'250': {
|
|
31
|
+
value: 'Space250'
|
|
32
|
+
},
|
|
33
|
+
'300': {
|
|
34
|
+
value: 'Space300'
|
|
35
|
+
},
|
|
36
|
+
'400': {
|
|
37
|
+
value: 'Space400'
|
|
38
|
+
},
|
|
39
|
+
'500': {
|
|
40
|
+
value: 'Space500'
|
|
41
|
+
},
|
|
42
|
+
'600': {
|
|
43
|
+
value: 'Space600'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export default spacing;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
var spacing = {
|
|
2
|
+
spacing: {
|
|
3
|
+
container: {
|
|
4
|
+
gutter: {
|
|
5
|
+
attributes: {
|
|
6
|
+
group: 'spacing',
|
|
7
|
+
state: 'experimental',
|
|
8
|
+
replacement: '8px',
|
|
9
|
+
introduced: '0.10.16',
|
|
10
|
+
description: 'Helpful guidance goes here. This is an example of a more semantic token over the top of our scale. It uses the same underlying base tokens as the scale.x tokens use.'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
scale: {
|
|
15
|
+
'0': {
|
|
16
|
+
attributes: {
|
|
17
|
+
group: 'spacing',
|
|
18
|
+
state: 'experimental',
|
|
19
|
+
replacement: '0',
|
|
20
|
+
introduced: '0.10.16',
|
|
21
|
+
description: 'Equates to `0`. Can be used for resetting default spacing styles.'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
'025': {
|
|
25
|
+
attributes: {
|
|
26
|
+
group: 'spacing',
|
|
27
|
+
state: 'experimental',
|
|
28
|
+
replacement: '2px',
|
|
29
|
+
introduced: '0.10.16',
|
|
30
|
+
description: 'Use for spacing in compact scenarios. The smallest value in our scale.'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
'050': {
|
|
34
|
+
attributes: {
|
|
35
|
+
group: 'spacing',
|
|
36
|
+
state: 'experimental',
|
|
37
|
+
replacement: '4px',
|
|
38
|
+
introduced: '0.10.16',
|
|
39
|
+
description: 'Helpful guidance goes here'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
'075': {
|
|
43
|
+
attributes: {
|
|
44
|
+
group: 'spacing',
|
|
45
|
+
state: 'experimental',
|
|
46
|
+
replacement: '6px',
|
|
47
|
+
introduced: '0.10.16',
|
|
48
|
+
description: 'Helpful guidance goes here'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
'100': {
|
|
52
|
+
attributes: {
|
|
53
|
+
group: 'spacing',
|
|
54
|
+
state: 'experimental',
|
|
55
|
+
replacement: '8px',
|
|
56
|
+
introduced: '0.10.16',
|
|
57
|
+
description: 'Helpful guidance goes here'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
'150': {
|
|
61
|
+
attributes: {
|
|
62
|
+
group: 'spacing',
|
|
63
|
+
state: 'experimental',
|
|
64
|
+
replacement: '12px',
|
|
65
|
+
introduced: '0.10.16',
|
|
66
|
+
description: 'Helpful guidance goes here'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
'200': {
|
|
70
|
+
attributes: {
|
|
71
|
+
group: 'spacing',
|
|
72
|
+
state: 'experimental',
|
|
73
|
+
replacement: '16px',
|
|
74
|
+
introduced: '0.10.16',
|
|
75
|
+
description: 'Helpful guidance goes here'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
'250': {
|
|
79
|
+
attributes: {
|
|
80
|
+
group: 'spacing',
|
|
81
|
+
state: 'experimental',
|
|
82
|
+
replacement: '20px',
|
|
83
|
+
introduced: '0.10.16',
|
|
84
|
+
description: 'Helpful guidance goes here'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
'300': {
|
|
88
|
+
attributes: {
|
|
89
|
+
group: 'spacing',
|
|
90
|
+
state: 'experimental',
|
|
91
|
+
replacement: '24px',
|
|
92
|
+
introduced: '0.10.16',
|
|
93
|
+
description: 'Helpful guidance goes here'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
'400': {
|
|
97
|
+
attributes: {
|
|
98
|
+
group: 'spacing',
|
|
99
|
+
state: 'experimental',
|
|
100
|
+
replacement: '32px',
|
|
101
|
+
introduced: '0.10.16',
|
|
102
|
+
description: 'Helpful guidance goes here'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
'500': {
|
|
106
|
+
attributes: {
|
|
107
|
+
group: 'spacing',
|
|
108
|
+
state: 'experimental',
|
|
109
|
+
replacement: '40px',
|
|
110
|
+
introduced: '0.10.16',
|
|
111
|
+
description: 'Helpful guidance goes here'
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
'600': {
|
|
115
|
+
attributes: {
|
|
116
|
+
group: 'spacing',
|
|
117
|
+
state: 'experimental',
|
|
118
|
+
replacement: '48px',
|
|
119
|
+
introduced: '0.10.16',
|
|
120
|
+
description: 'Helpful guidance goes here'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
export default spacing;
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::08ae35ae5d6bfe790b538db89c5876de>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
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
|
+
export default tokens;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::96a569b32686a2088f106c2ec4cd75d3>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* This file is intended to help automate renaming of tokens.
|
|
5
|
-
*
|
|
6
|
-
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
-
* 2. Add a 'rename' attribute to the token with the value 'my.new.token'
|
|
8
|
-
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
-
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
-
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
-
*
|
|
12
|
-
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
-
* migrate as many of these renames as possible.
|
|
14
|
-
*
|
|
15
|
-
* @codegen <<SignedSource::785f21ff78f22bc07f51619e1add8ba9>>
|
|
16
|
-
* @codegenCommand yarn build tokens
|
|
17
|
-
*/
|
|
18
|
-
import tokens from './token-names';
|
|
19
|
-
declare type Token = keyof typeof tokens | string;
|
|
20
|
-
declare type RenameMap = {
|
|
1
|
+
declare const renameMapper: {
|
|
21
2
|
path: string;
|
|
22
|
-
state:
|
|
23
|
-
replacement:
|
|
24
|
-
};
|
|
25
|
-
declare const renameMapper: RenameMap[];
|
|
3
|
+
state: "deprecated" | "deleted" | "experimental";
|
|
4
|
+
replacement: string;
|
|
5
|
+
}[];
|
|
26
6
|
export default renameMapper;
|