@atlaskit/tokens 0.11.5 → 0.12.0
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 +12 -0
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +315 -0
- package/dist/cjs/artifacts/{rename-mapping/atlassian-dark.js → replacement-mapping.js} +263 -55
- package/dist/cjs/artifacts/token-default-values.js +405 -17
- package/dist/cjs/artifacts/token-names.js +400 -16
- package/dist/cjs/babel-plugin/plugin.js +6 -0
- package/dist/cjs/entry-points/rename-mapping.js +2 -2
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography-palette.js +156 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +307 -0
- package/dist/{cjs/artifacts/rename-mapping/atlassian-legacy-light.js → es2019/artifacts/replacement-mapping.js} +263 -63
- package/dist/es2019/artifacts/token-default-values.js +404 -9
- package/dist/es2019/artifacts/token-names.js +399 -8
- package/dist/es2019/babel-plugin/plugin.js +6 -0
- package/dist/es2019/entry-points/rename-mapping.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +144 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +307 -0
- package/dist/{cjs/artifacts/rename-mapping/atlassian-legacy-dark.js → esm/artifacts/replacement-mapping.js} +263 -63
- package/dist/esm/artifacts/token-default-values.js +405 -15
- package/dist/esm/artifacts/token-names.js +400 -14
- package/dist/esm/babel-plugin/plugin.js +6 -0
- package/dist/esm/entry-points/rename-mapping.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +146 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/{font-weight-scale.d.ts → typography-palette.d.ts} +1 -1
- package/dist/types/artifacts/{rename-mapping/atlassian-legacy-dark.d.ts → replacement-mapping.d.ts} +4 -4
- package/dist/types/artifacts/token-default-values.d.ts +404 -395
- package/dist/types/artifacts/token-names.d.ts +527 -131
- package/dist/types/artifacts/types-internal.d.ts +6 -2
- package/dist/types/artifacts/types.d.ts +6 -2
- package/dist/types/entry-points/rename-mapping.d.ts +1 -1
- package/dist/types/palettes/typography-palette.d.ts +14 -0
- package/dist/types/tokens/atlassian-typography/font-family.d.ts +1 -1
- package/dist/types/tokens/atlassian-typography/font-size.d.ts +1 -1
- package/dist/types/tokens/atlassian-typography/font-weight.d.ts +1 -1
- package/dist/types/tokens/atlassian-typography/line-height.d.ts +1 -1
- package/dist/types/tokens/default/typography/font-family.d.ts +1 -1
- package/dist/types/tokens/default/typography/font-size.d.ts +1 -1
- package/dist/types/tokens/default/typography/font-weight.d.ts +1 -1
- package/dist/types/tokens/default/typography/line-height.d.ts +1 -1
- package/package.json +5 -5
- package/report.api.md +156 -167
- package/tmp/api-report-tmp.d.ts +156 -167
- package/dist/cjs/artifacts/palettes-raw/font-size-scale.js +0 -135
- package/dist/cjs/artifacts/palettes-raw/font-weight-scale.js +0 -75
- package/dist/cjs/artifacts/palettes-raw/line-height-scale.js +0 -105
- package/dist/cjs/artifacts/rename-mapping/atlassian-light.js +0 -427
- package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +0 -235
- package/dist/cjs/artifacts/rename-mapping/atlassian-typography.js +0 -27
- package/dist/cjs/artifacts/rename-mapping.js +0 -22
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +0 -309
- package/dist/cjs/artifacts/typescript/atlassian-dark-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-dark-types.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-token-names.js +0 -309
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-token-names.js +0 -309
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +0 -309
- package/dist/cjs/artifacts/typescript/atlassian-light-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-light-types.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +0 -100
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-names.js +0 -96
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-default-values.js +0 -40
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-names.js +0 -36
- package/dist/cjs/artifacts/typescript/atlassian-typography-types-internal.js +0 -5
- package/dist/cjs/artifacts/typescript/atlassian-typography-types.js +0 -5
- package/dist/cjs/palettes/typography/font-family.js +0 -24
- package/dist/cjs/palettes/typography/font-size-scale.js +0 -60
- package/dist/cjs/palettes/typography/font-weight-scale.js +0 -36
- package/dist/cjs/palettes/typography/index.js +0 -28
- package/dist/cjs/palettes/typography/line-height-scale.js +0 -48
- package/dist/es2019/artifacts/palettes-raw/font-size-scale.js +0 -127
- package/dist/es2019/artifacts/palettes-raw/font-weight-scale.js +0 -67
- package/dist/es2019/artifacts/palettes-raw/line-height-scale.js +0 -97
- package/dist/es2019/artifacts/rename-mapping/atlassian-dark.js +0 -419
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-dark.js +0 -419
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-light.js +0 -419
- package/dist/es2019/artifacts/rename-mapping/atlassian-light.js +0 -419
- package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +0 -227
- package/dist/es2019/artifacts/rename-mapping/atlassian-typography.js +0 -19
- package/dist/es2019/artifacts/rename-mapping.js +0 -7
- package/dist/es2019/artifacts/typescript/atlassian-dark-token-names.js +0 -301
- package/dist/es2019/artifacts/typescript/atlassian-dark-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-dark-types.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-token-names.js +0 -301
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-token-names.js +0 -301
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-light-token-names.js +0 -301
- package/dist/es2019/artifacts/typescript/atlassian-light-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-light-types.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +0 -92
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-names.js +0 -88
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-default-values.js +0 -32
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-names.js +0 -28
- package/dist/es2019/artifacts/typescript/atlassian-typography-types-internal.js +0 -1
- package/dist/es2019/artifacts/typescript/atlassian-typography-types.js +0 -1
- package/dist/es2019/palettes/typography/font-family.js +0 -17
- package/dist/es2019/palettes/typography/font-size-scale.js +0 -53
- package/dist/es2019/palettes/typography/font-weight-scale.js +0 -29
- package/dist/es2019/palettes/typography/index.js +0 -12
- package/dist/es2019/palettes/typography/line-height-scale.js +0 -41
- package/dist/esm/artifacts/palettes-raw/font-size-scale.js +0 -127
- package/dist/esm/artifacts/palettes-raw/font-weight-scale.js +0 -67
- package/dist/esm/artifacts/palettes-raw/line-height-scale.js +0 -97
- package/dist/esm/artifacts/rename-mapping/atlassian-dark.js +0 -419
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-dark.js +0 -419
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-light.js +0 -419
- package/dist/esm/artifacts/rename-mapping/atlassian-light.js +0 -419
- package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +0 -227
- package/dist/esm/artifacts/rename-mapping/atlassian-typography.js +0 -19
- package/dist/esm/artifacts/rename-mapping.js +0 -9
- package/dist/esm/artifacts/typescript/atlassian-dark-token-names.js +0 -301
- package/dist/esm/artifacts/typescript/atlassian-dark-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-dark-types.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-token-names.js +0 -301
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-token-names.js +0 -301
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-light-token-names.js +0 -301
- package/dist/esm/artifacts/typescript/atlassian-light-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-light-types.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +0 -92
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-names.js +0 -88
- package/dist/esm/artifacts/typescript/atlassian-spacing-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-spacing-types.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-typography-token-default-values.js +0 -32
- package/dist/esm/artifacts/typescript/atlassian-typography-token-names.js +0 -28
- package/dist/esm/artifacts/typescript/atlassian-typography-types-internal.js +0 -1
- package/dist/esm/artifacts/typescript/atlassian-typography-types.js +0 -1
- package/dist/esm/palettes/typography/font-family.js +0 -17
- package/dist/esm/palettes/typography/font-size-scale.js +0 -53
- package/dist/esm/palettes/typography/font-weight-scale.js +0 -29
- package/dist/esm/palettes/typography/index.js +0 -14
- package/dist/esm/palettes/typography/line-height-scale.js +0 -41
- package/dist/types/artifacts/palettes-raw/font-size-scale.d.ts +0 -22
- package/dist/types/artifacts/palettes-raw/line-height-scale.d.ts +0 -22
- package/dist/types/artifacts/rename-mapping/atlassian-dark.d.ts +0 -26
- package/dist/types/artifacts/rename-mapping/atlassian-legacy-light.d.ts +0 -26
- package/dist/types/artifacts/rename-mapping/atlassian-light.d.ts +0 -26
- package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +0 -26
- package/dist/types/artifacts/rename-mapping/atlassian-typography.d.ts +0 -26
- package/dist/types/artifacts/rename-mapping.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -596
- package/dist/types/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +0 -596
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +0 -596
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-light-token-names.d.ts +0 -596
- package/dist/types/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-light-types.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +0 -92
- package/dist/types/artifacts/typescript/atlassian-spacing-token-names.d.ts +0 -170
- package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-typography-token-default-values.d.ts +0 -32
- package/dist/types/artifacts/typescript/atlassian-typography-token-names.d.ts +0 -50
- package/dist/types/artifacts/typescript/atlassian-typography-types-internal.d.ts +0 -6
- package/dist/types/artifacts/typescript/atlassian-typography-types.d.ts +0 -6
- package/dist/types/palettes/typography/font-family.d.ts +0 -5
- package/dist/types/palettes/typography/font-size-scale.d.ts +0 -5
- package/dist/types/palettes/typography/font-weight-scale.d.ts +0 -5
- package/dist/types/palettes/typography/index.d.ts +0 -10
- package/dist/types/palettes/typography/line-height-scale.d.ts +0 -5
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
|
-
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
|
-
*
|
|
7
|
-
* @codegen <<SignedSource::58e461c6792689bbf53af618a63e94d0>>
|
|
8
|
-
* @codegenCommand yarn build tokens
|
|
9
|
-
*/
|
|
10
|
-
var defaultTokenValues = {
|
|
11
|
-
'space.0': '0',
|
|
12
|
-
'space.100': '0.5rem',
|
|
13
|
-
'space.150': '0.75rem',
|
|
14
|
-
'space.200': '1rem',
|
|
15
|
-
'space.250': '1.25rem',
|
|
16
|
-
'space.300': '1.5rem',
|
|
17
|
-
'space.400': '2rem',
|
|
18
|
-
'space.500': '2.5rem',
|
|
19
|
-
'space.600': '3rem',
|
|
20
|
-
'space.800': '4rem',
|
|
21
|
-
'space.1000': '5rem',
|
|
22
|
-
'space.025': '0.125rem',
|
|
23
|
-
'space.050': '0.25rem',
|
|
24
|
-
'space.075': '0.375rem',
|
|
25
|
-
'spacing.scale.0': '0',
|
|
26
|
-
'spacing.scale.100': '0.5rem',
|
|
27
|
-
'spacing.scale.150': '0.75rem',
|
|
28
|
-
'spacing.scale.200': '1rem',
|
|
29
|
-
'spacing.scale.250': '1.25rem',
|
|
30
|
-
'spacing.scale.300': '1.5rem',
|
|
31
|
-
'spacing.scale.400': '2rem',
|
|
32
|
-
'spacing.scale.500': '2.5rem',
|
|
33
|
-
'spacing.scale.600': '3rem',
|
|
34
|
-
'spacing.scale.800': '4rem',
|
|
35
|
-
'spacing.scale.1000': '5rem',
|
|
36
|
-
'spacing.scale.025': '0.125rem',
|
|
37
|
-
'spacing.scale.050': '0.25rem',
|
|
38
|
-
'spacing.scale.075': '0.375rem',
|
|
39
|
-
'spacing.scaleLinear.0': '0',
|
|
40
|
-
'spacing.scaleLinear.100': '0.125rem',
|
|
41
|
-
'spacing.scaleLinear.200': '0.25rem',
|
|
42
|
-
'spacing.scaleLinear.300': '0.375rem',
|
|
43
|
-
'spacing.scaleLinear.400': '0.5rem',
|
|
44
|
-
'spacing.scaleLinear.500': '0.75rem',
|
|
45
|
-
'spacing.scaleLinear.600': '1rem',
|
|
46
|
-
'spacing.scaleLinear.700': '1.25rem',
|
|
47
|
-
'spacing.scaleLinear.800': '1.5rem',
|
|
48
|
-
'spacing.scaleLinear.900': '2rem',
|
|
49
|
-
'spacing.scaleLinear.1000': '2.5rem',
|
|
50
|
-
'spacing.scaleLinear.1100': '3rem',
|
|
51
|
-
'spacing.size.none': '0',
|
|
52
|
-
'spacing.size.xxxxSmall': '0.125rem',
|
|
53
|
-
'spacing.size.xxxSmall': '0.25rem',
|
|
54
|
-
'spacing.size.xxSmall': '0.375rem',
|
|
55
|
-
'spacing.size.xsmall': '0.5rem',
|
|
56
|
-
'spacing.size.small': '0.75rem',
|
|
57
|
-
'spacing.size.medium': '1rem',
|
|
58
|
-
'spacing.size.large': '1.25rem',
|
|
59
|
-
'spacing.size.xlarge': '1.5rem',
|
|
60
|
-
'spacing.size.xxlarge': '2rem',
|
|
61
|
-
'spacing.size.xxxlarge': '2.5rem',
|
|
62
|
-
'spacing.size.xxxxlarge': '3rem',
|
|
63
|
-
'spacing.ecl.element.2': '0.125rem',
|
|
64
|
-
'spacing.ecl.element.4': '0.25rem',
|
|
65
|
-
'spacing.ecl.element.6': '0.375rem',
|
|
66
|
-
'spacing.ecl.element.8': '0.5rem',
|
|
67
|
-
'spacing.ecl.container.12': '0.75rem',
|
|
68
|
-
'spacing.ecl.container.16': '1rem',
|
|
69
|
-
'spacing.ecl.container.20': '1.25rem',
|
|
70
|
-
'spacing.ecl.container.24': '1.5rem',
|
|
71
|
-
'spacing.ecl.layout.32': '2rem',
|
|
72
|
-
'spacing.ecl.layout.40': '2.5rem',
|
|
73
|
-
'spacing.ecl.layout.64': '3rem',
|
|
74
|
-
'spacing.ccc.component.2': '0.125rem',
|
|
75
|
-
'spacing.ccc.component.4': '0.25rem',
|
|
76
|
-
'spacing.ccc.component.6': '0.375rem',
|
|
77
|
-
'spacing.ccc.component.8': '0.5rem',
|
|
78
|
-
'spacing.ccc.content.12': '0.75rem',
|
|
79
|
-
'spacing.ccc.content.16': '1rem',
|
|
80
|
-
'spacing.ccc.content.20': '1.25rem',
|
|
81
|
-
'spacing.ccc.content.24': '1.5rem',
|
|
82
|
-
'spacing.ccc.container.32': '2rem',
|
|
83
|
-
'spacing.ccc.container.40': '2.5rem',
|
|
84
|
-
'spacing.ccc.container.48': '3rem',
|
|
85
|
-
'spacing.gap.100': '0.5rem',
|
|
86
|
-
'spacing.gap.200': '1rem',
|
|
87
|
-
'spacing.gap.300': '1.5rem',
|
|
88
|
-
'spacing.inset.100': '0.5rem',
|
|
89
|
-
'spacing.inset.200': '1rem',
|
|
90
|
-
'spacing.inset.300': '1.5rem'
|
|
91
|
-
};
|
|
92
|
-
export default defaultTokenValues;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::32eee2b724a024fa87bb7b5638096758>>
|
|
4
|
-
* @codegenCommand yarn build tokens
|
|
5
|
-
*/
|
|
6
|
-
var tokens = {
|
|
7
|
-
'space.0': '--ds-space-0',
|
|
8
|
-
'space.100': '--ds-space-100',
|
|
9
|
-
'space.150': '--ds-space-150',
|
|
10
|
-
'space.200': '--ds-space-200',
|
|
11
|
-
'space.250': '--ds-space-250',
|
|
12
|
-
'space.300': '--ds-space-300',
|
|
13
|
-
'space.400': '--ds-space-400',
|
|
14
|
-
'space.500': '--ds-space-500',
|
|
15
|
-
'space.600': '--ds-space-600',
|
|
16
|
-
'space.800': '--ds-space-800',
|
|
17
|
-
'space.1000': '--ds-space-1000',
|
|
18
|
-
'space.025': '--ds-space-025',
|
|
19
|
-
'space.050': '--ds-space-050',
|
|
20
|
-
'space.075': '--ds-space-075',
|
|
21
|
-
'spacing.scale.0': '--ds-scale-0',
|
|
22
|
-
'spacing.scale.100': '--ds-scale-100',
|
|
23
|
-
'spacing.scale.150': '--ds-scale-150',
|
|
24
|
-
'spacing.scale.200': '--ds-scale-200',
|
|
25
|
-
'spacing.scale.250': '--ds-scale-250',
|
|
26
|
-
'spacing.scale.300': '--ds-scale-300',
|
|
27
|
-
'spacing.scale.400': '--ds-scale-400',
|
|
28
|
-
'spacing.scale.500': '--ds-scale-500',
|
|
29
|
-
'spacing.scale.600': '--ds-scale-600',
|
|
30
|
-
'spacing.scale.800': '--ds-scale-800',
|
|
31
|
-
'spacing.scale.1000': '--ds-scale-1000',
|
|
32
|
-
'spacing.scale.025': '--ds-scale-025',
|
|
33
|
-
'spacing.scale.050': '--ds-scale-050',
|
|
34
|
-
'spacing.scale.075': '--ds-scale-075',
|
|
35
|
-
'spacing.scaleLinear.0': '--ds-scaleLinear-0',
|
|
36
|
-
'spacing.scaleLinear.100': '--ds-scaleLinear-100',
|
|
37
|
-
'spacing.scaleLinear.200': '--ds-scaleLinear-200',
|
|
38
|
-
'spacing.scaleLinear.300': '--ds-scaleLinear-300',
|
|
39
|
-
'spacing.scaleLinear.400': '--ds-scaleLinear-400',
|
|
40
|
-
'spacing.scaleLinear.500': '--ds-scaleLinear-500',
|
|
41
|
-
'spacing.scaleLinear.600': '--ds-scaleLinear-600',
|
|
42
|
-
'spacing.scaleLinear.700': '--ds-scaleLinear-700',
|
|
43
|
-
'spacing.scaleLinear.800': '--ds-scaleLinear-800',
|
|
44
|
-
'spacing.scaleLinear.900': '--ds-scaleLinear-900',
|
|
45
|
-
'spacing.scaleLinear.1000': '--ds-scaleLinear-1000',
|
|
46
|
-
'spacing.scaleLinear.1100': '--ds-scaleLinear-1100',
|
|
47
|
-
'spacing.size.none': '--ds-size-none',
|
|
48
|
-
'spacing.size.xxxxSmall': '--ds-size-xxxxSmall',
|
|
49
|
-
'spacing.size.xxxSmall': '--ds-size-xxxSmall',
|
|
50
|
-
'spacing.size.xxSmall': '--ds-size-xxSmall',
|
|
51
|
-
'spacing.size.xsmall': '--ds-size-xsmall',
|
|
52
|
-
'spacing.size.small': '--ds-size-small',
|
|
53
|
-
'spacing.size.medium': '--ds-size-medium',
|
|
54
|
-
'spacing.size.large': '--ds-size-large',
|
|
55
|
-
'spacing.size.xlarge': '--ds-size-xlarge',
|
|
56
|
-
'spacing.size.xxlarge': '--ds-size-xxlarge',
|
|
57
|
-
'spacing.size.xxxlarge': '--ds-size-xxxlarge',
|
|
58
|
-
'spacing.size.xxxxlarge': '--ds-size-xxxxlarge',
|
|
59
|
-
'spacing.ecl.element.2': '--ds-ecl-element-2',
|
|
60
|
-
'spacing.ecl.element.4': '--ds-ecl-element-4',
|
|
61
|
-
'spacing.ecl.element.6': '--ds-ecl-element-6',
|
|
62
|
-
'spacing.ecl.element.8': '--ds-ecl-element-8',
|
|
63
|
-
'spacing.ecl.container.12': '--ds-ecl-container-12',
|
|
64
|
-
'spacing.ecl.container.16': '--ds-ecl-container-16',
|
|
65
|
-
'spacing.ecl.container.20': '--ds-ecl-container-20',
|
|
66
|
-
'spacing.ecl.container.24': '--ds-ecl-container-24',
|
|
67
|
-
'spacing.ecl.layout.32': '--ds-ecl-layout-32',
|
|
68
|
-
'spacing.ecl.layout.40': '--ds-ecl-layout-40',
|
|
69
|
-
'spacing.ecl.layout.64': '--ds-ecl-layout-64',
|
|
70
|
-
'spacing.ccc.component.2': '--ds-ccc-component-2',
|
|
71
|
-
'spacing.ccc.component.4': '--ds-ccc-component-4',
|
|
72
|
-
'spacing.ccc.component.6': '--ds-ccc-component-6',
|
|
73
|
-
'spacing.ccc.component.8': '--ds-ccc-component-8',
|
|
74
|
-
'spacing.ccc.content.12': '--ds-ccc-content-12',
|
|
75
|
-
'spacing.ccc.content.16': '--ds-ccc-content-16',
|
|
76
|
-
'spacing.ccc.content.20': '--ds-ccc-content-20',
|
|
77
|
-
'spacing.ccc.content.24': '--ds-ccc-content-24',
|
|
78
|
-
'spacing.ccc.container.32': '--ds-ccc-container-32',
|
|
79
|
-
'spacing.ccc.container.40': '--ds-ccc-container-40',
|
|
80
|
-
'spacing.ccc.container.48': '--ds-ccc-container-48',
|
|
81
|
-
'spacing.gap.100': '--ds-gap-100',
|
|
82
|
-
'spacing.gap.200': '--ds-gap-200',
|
|
83
|
-
'spacing.gap.300': '--ds-gap-300',
|
|
84
|
-
'spacing.inset.100': '--ds-inset-100',
|
|
85
|
-
'spacing.inset.200': '--ds-inset-200',
|
|
86
|
-
'spacing.inset.300': '--ds-inset-300'
|
|
87
|
-
};
|
|
88
|
-
export default tokens;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
5
|
-
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
|
-
*
|
|
7
|
-
* @codegen <<SignedSource::c3cd2758c83d1514a33fbaec6ceb0a8d>>
|
|
8
|
-
* @codegenCommand yarn build tokens
|
|
9
|
-
*/
|
|
10
|
-
var defaultTokenValues = {
|
|
11
|
-
'font.family.sans': '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
|
|
12
|
-
'font.family.monospace': '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
|
|
13
|
-
'font.size.100': '14px',
|
|
14
|
-
'font.size.200': '16px',
|
|
15
|
-
'font.size.300': '20px',
|
|
16
|
-
'font.size.400': '24px',
|
|
17
|
-
'font.size.500': '29px',
|
|
18
|
-
'font.size.600': '35px',
|
|
19
|
-
'font.size.050': '11px',
|
|
20
|
-
'font.size.075': '12px',
|
|
21
|
-
'font.weight.regular': '400',
|
|
22
|
-
'font.weight.medium': '500',
|
|
23
|
-
'font.weight.semibold': '600',
|
|
24
|
-
'font.weight.bold': '700',
|
|
25
|
-
'font.lineHeight.100': '16px',
|
|
26
|
-
'font.lineHeight.200': '20px',
|
|
27
|
-
'font.lineHeight.300': '24px',
|
|
28
|
-
'font.lineHeight.400': '28px',
|
|
29
|
-
'font.lineHeight.500': '32px',
|
|
30
|
-
'font.lineHeight.600': '40px'
|
|
31
|
-
};
|
|
32
|
-
export default defaultTokenValues;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::552924bc6add2fabb3af5b1ac93a9721>>
|
|
4
|
-
* @codegenCommand yarn build tokens
|
|
5
|
-
*/
|
|
6
|
-
var tokens = {
|
|
7
|
-
'font.family.sans': '--ds-font-family-sans',
|
|
8
|
-
'font.family.monospace': '--ds-font-family-monospace',
|
|
9
|
-
'font.size.100': '--ds-font-size-100',
|
|
10
|
-
'font.size.200': '--ds-font-size-200',
|
|
11
|
-
'font.size.300': '--ds-font-size-300',
|
|
12
|
-
'font.size.400': '--ds-font-size-400',
|
|
13
|
-
'font.size.500': '--ds-font-size-500',
|
|
14
|
-
'font.size.600': '--ds-font-size-600',
|
|
15
|
-
'font.size.050': '--ds-font-size-050',
|
|
16
|
-
'font.size.075': '--ds-font-size-075',
|
|
17
|
-
'font.weight.regular': '--ds-font-weight-regular',
|
|
18
|
-
'font.weight.medium': '--ds-font-weight-medium',
|
|
19
|
-
'font.weight.semibold': '--ds-font-weight-semibold',
|
|
20
|
-
'font.weight.bold': '--ds-font-weight-bold',
|
|
21
|
-
'font.lineHeight.100': '--ds-font-lineHeight-100',
|
|
22
|
-
'font.lineHeight.200': '--ds-font-lineHeight-200',
|
|
23
|
-
'font.lineHeight.300': '--ds-font-lineHeight-300',
|
|
24
|
-
'font.lineHeight.400': '--ds-font-lineHeight-400',
|
|
25
|
-
'font.lineHeight.500': '--ds-font-lineHeight-500',
|
|
26
|
-
'font.lineHeight.600': '--ds-font-lineHeight-600'
|
|
27
|
-
};
|
|
28
|
-
export default tokens;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var palette = {
|
|
2
|
-
fontFamily: {
|
|
3
|
-
FontFamilySans: {
|
|
4
|
-
value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
|
|
5
|
-
attributes: {
|
|
6
|
-
group: 'scale'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
FontFamilyMonospace: {
|
|
10
|
-
value: "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
|
|
11
|
-
attributes: {
|
|
12
|
-
group: 'scale'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export default palette;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var scale = {
|
|
2
|
-
fontSize: {
|
|
3
|
-
FontSize050: {
|
|
4
|
-
value: '11px',
|
|
5
|
-
attributes: {
|
|
6
|
-
group: 'scale'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
FontSize075: {
|
|
10
|
-
value: '12px',
|
|
11
|
-
attributes: {
|
|
12
|
-
group: 'scale'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
FontSize100: {
|
|
16
|
-
value: '14px',
|
|
17
|
-
attributes: {
|
|
18
|
-
group: 'scale'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
FontSize200: {
|
|
22
|
-
value: '16px',
|
|
23
|
-
attributes: {
|
|
24
|
-
group: 'scale'
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
FontSize300: {
|
|
28
|
-
value: '20px',
|
|
29
|
-
attributes: {
|
|
30
|
-
group: 'scale'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
FontSize400: {
|
|
34
|
-
value: '24px',
|
|
35
|
-
attributes: {
|
|
36
|
-
group: 'scale'
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
FontSize500: {
|
|
40
|
-
value: '29px',
|
|
41
|
-
attributes: {
|
|
42
|
-
group: 'scale'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
FontSize600: {
|
|
46
|
-
value: '35px',
|
|
47
|
-
attributes: {
|
|
48
|
-
group: 'scale'
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export default scale;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var scale = {
|
|
2
|
-
fontWeight: {
|
|
3
|
-
FontWeightRegular: {
|
|
4
|
-
value: '400',
|
|
5
|
-
attributes: {
|
|
6
|
-
group: 'scale'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
FontWeightMedium: {
|
|
10
|
-
value: '500',
|
|
11
|
-
attributes: {
|
|
12
|
-
group: 'scale'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
FontWeightSemiBold: {
|
|
16
|
-
value: '600',
|
|
17
|
-
attributes: {
|
|
18
|
-
group: 'scale'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
FontWeightBold: {
|
|
22
|
-
value: '700',
|
|
23
|
-
attributes: {
|
|
24
|
-
group: 'scale'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export default scale;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
|
-
import fontFamilyPalette from './font-family';
|
|
8
|
-
import fontSizeScale from './font-size-scale';
|
|
9
|
-
import fontWeightScale from './font-weight-scale';
|
|
10
|
-
import lineHeightScale from './line-height-scale';
|
|
11
|
-
var typographyPalette = {
|
|
12
|
-
typography: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontSizeScale), fontWeightScale), lineHeightScale), fontFamilyPalette)
|
|
13
|
-
};
|
|
14
|
-
export default typographyPalette;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var scale = {
|
|
2
|
-
lineHeight: {
|
|
3
|
-
LineHeight100: {
|
|
4
|
-
value: '16px',
|
|
5
|
-
attributes: {
|
|
6
|
-
group: 'scale'
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
LineHeight200: {
|
|
10
|
-
value: '20px',
|
|
11
|
-
attributes: {
|
|
12
|
-
group: 'scale'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
LineHeight300: {
|
|
16
|
-
value: '24px',
|
|
17
|
-
attributes: {
|
|
18
|
-
group: 'scale'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
LineHeight400: {
|
|
22
|
-
value: '28px',
|
|
23
|
-
attributes: {
|
|
24
|
-
group: 'scale'
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
LineHeight500: {
|
|
28
|
-
value: '32px',
|
|
29
|
-
attributes: {
|
|
30
|
-
group: 'scale'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
LineHeight600: {
|
|
34
|
-
value: '40px',
|
|
35
|
-
attributes: {
|
|
36
|
-
group: 'scale'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export default scale;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::8fb1da69b30c7b1fcf40b479e7db7093>>
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::918426e4e1a8d46689a9af31434ac590>>
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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::fb30c9ee91e6f244c04349f684b451e1>>
|
|
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 +0,0 @@
|
|
|
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::83ffd10a8ba807f2e4f905994e628e9c>>
|
|
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;
|