@atlaskit/tokens 6.3.2 → 6.4.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +22 -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 +2 -1
  24. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  25. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  26. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +2 -1
  27. package/dist/cjs/babel-plugin/plugin.js +4 -1
  28. package/dist/cjs/set-global-theme.js +30 -23
  29. package/dist/es2019/artifacts/generated-pairs.js +1 -1
  30. package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
  31. package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  32. package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
  33. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
  34. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
  35. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
  36. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  37. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  38. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  39. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
  40. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  41. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  44. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  45. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
  46. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  47. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  48. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
  49. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  50. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
  51. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  52. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  53. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +2 -1
  54. package/dist/es2019/babel-plugin/plugin.js +4 -1
  55. package/dist/es2019/set-global-theme.js +17 -10
  56. package/dist/esm/artifacts/generated-pairs.js +1 -1
  57. package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
  58. package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  59. package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
  60. package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
  61. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
  62. package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
  63. package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  64. package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  65. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  66. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
  67. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  68. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  69. package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  70. package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  71. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  72. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
  73. package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  74. package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  75. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
  76. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  77. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
  78. package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  79. package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  80. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +2 -1
  81. package/dist/esm/babel-plugin/plugin.js +4 -1
  82. package/dist/esm/set-global-theme.js +30 -23
  83. package/dist/types/artifacts/generated-pairs.d.ts +4 -9
  84. package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  85. package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  86. package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
  87. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  88. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  89. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  90. package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  91. package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  92. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  93. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  94. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  95. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  96. package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  97. package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  98. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  99. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  100. package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  101. package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  102. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  103. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  104. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  105. package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  106. package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  107. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  108. package/dist/types/set-global-theme.d.ts +1 -1
  109. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
  110. package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  111. package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  112. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
  113. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  114. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  115. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  116. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  117. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  118. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  119. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  120. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  121. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  122. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  123. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  124. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  125. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  126. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  127. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  128. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  129. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  130. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  131. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  132. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  133. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  134. package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
  135. package/package.json +4 -4
@@ -1,85 +1,30 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::cb61446316a92e7f26958e3ca733fd1e>>
3
+ * @codegen <<SignedSource::f3ee3158256a13e7401785620da6d439>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- suggest: string[];
11
- introduced: string;
12
- description: string;
13
- deprecated?: undefined;
14
- };
15
- value: string;
16
- filePath: string;
17
- isSource: boolean;
18
- original: {
19
- attributes: {
20
- group: string;
21
- state: string;
22
- suggest: string[];
23
- introduced: string;
24
- description: string;
25
- deprecated?: undefined;
26
- };
27
- value: string;
28
- };
29
- name: string;
30
- path: string[];
31
- cleanName: string;
32
- } | {
33
- attributes: {
34
- group: string;
35
- state: string;
36
- introduced: string;
37
- description: string;
38
- suggest?: undefined;
39
- deprecated?: undefined;
40
- };
41
- value: string;
42
- filePath: string;
43
- isSource: boolean;
44
- original: {
45
- attributes: {
46
- group: string;
47
- state: string;
48
- introduced: string;
49
- description: string;
50
- suggest?: undefined;
51
- deprecated?: undefined;
52
- };
53
- value: string;
54
- };
55
- name: string;
56
- path: string[];
57
- cleanName: string;
58
- } | {
59
- attributes: {
60
- group: string;
61
- state: string;
62
- introduced: string;
63
- deprecated: string;
64
- description: string;
65
- suggest?: undefined;
66
- };
67
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ state: string;
11
+ introduced: string;
12
+ description: string;
13
+ suggest?: string[];
14
+ deprecated?: string;
15
+ };
16
+ type Token = {
17
+ value: TokenValue;
68
18
  filePath: string;
69
19
  isSource: boolean;
20
+ attributes: TokenAttributes;
70
21
  original: {
71
- attributes: {
72
- group: string;
73
- state: string;
74
- introduced: string;
75
- deprecated: string;
76
- description: string;
77
- suggest?: undefined;
78
- };
79
- value: string;
22
+ value: TokenValueOriginal;
23
+ attributes: TokenAttributes;
80
24
  };
81
25
  name: string;
82
26
  path: string[];
83
27
  cleanName: string;
84
- })[];
28
+ };
29
+ declare const tokens: Token[];
85
30
  export default tokens;
@@ -1,55 +1,30 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::b5cb4872c7a2014d836a8fa15e4c0102>>
3
+ * @codegen <<SignedSource::c5e6cf9e70d065b7daac533ac0569acf>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- suggest?: undefined;
13
- };
14
- value: string;
15
- filePath: string;
16
- isSource: boolean;
17
- original: {
18
- attributes: {
19
- group: string;
20
- state: string;
21
- introduced: string;
22
- description: string;
23
- suggest?: undefined;
24
- };
25
- value: string;
26
- };
27
- name: string;
28
- path: string[];
29
- cleanName: string;
30
- } | {
31
- attributes: {
32
- group: string;
33
- state: string;
34
- suggest: string[];
35
- introduced: string;
36
- description: string;
37
- };
38
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string;
8
+ type TokenAttributes = {
9
+ group: string;
10
+ state: string;
11
+ introduced: string;
12
+ description: string;
13
+ suggest?: string[];
14
+ deprecated?: string;
15
+ };
16
+ type Token = {
17
+ value: TokenValue;
39
18
  filePath: string;
40
19
  isSource: boolean;
20
+ attributes: TokenAttributes;
41
21
  original: {
42
- attributes: {
43
- group: string;
44
- state: string;
45
- suggest: string[];
46
- introduced: string;
47
- description: string;
48
- };
49
- value: string;
22
+ value: TokenValueOriginal;
23
+ attributes: TokenAttributes;
50
24
  };
51
25
  name: string;
52
26
  path: string[];
53
27
  cleanName: string;
54
- })[];
28
+ };
29
+ declare const tokens: Token[];
55
30
  export default tokens;
@@ -1,58 +1,37 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::329c848af71c3d96d855087c3791e2ef>>
3
+ * @codegen <<SignedSource::80e21582acfe238b3aab5d8c8d1ec831>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- };
13
- value: string;
14
- filePath: string;
15
- isSource: boolean;
16
- original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: string;
24
- };
25
- name: string;
26
- path: string[];
27
- cleanName: string;
28
- } | {
29
- attributes: {
30
- group: string;
31
- state: string;
32
- introduced: string;
33
- description: string;
34
- };
35
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ fontFamily: string;
12
+ fontStyle: string;
13
+ letterSpacing: string;
14
+ };
15
+ type TokenAttributes = {
16
+ group: string;
17
+ state: string;
18
+ introduced: string;
19
+ description: string;
20
+ suggest?: string[];
21
+ deprecated?: string;
22
+ };
23
+ type Token = {
24
+ value: TokenValue;
36
25
  filePath: string;
37
26
  isSource: boolean;
27
+ attributes: TokenAttributes;
38
28
  original: {
39
- attributes: {
40
- group: string;
41
- state: string;
42
- introduced: string;
43
- description: string;
44
- };
45
- value: {
46
- fontWeight: string;
47
- fontSize: string;
48
- lineHeight: string;
49
- fontFamily: string;
50
- fontStyle: string;
51
- letterSpacing: string;
52
- };
29
+ value: TokenValueOriginal;
30
+ attributes: TokenAttributes;
53
31
  };
54
32
  name: string;
55
33
  path: string[];
56
34
  cleanName: string;
57
- })[];
35
+ };
36
+ declare const tokens: Token[];
58
37
  export default tokens;
@@ -1,58 +1,37 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::c0d5e0833c4c903bceceac9b9739bbdf>>
3
+ * @codegen <<SignedSource::d9a4e2432a4ea835e7ceac5c19e379b5>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- };
13
- value: string;
14
- filePath: string;
15
- isSource: boolean;
16
- original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: string;
24
- };
25
- name: string;
26
- path: string[];
27
- cleanName: string;
28
- } | {
29
- attributes: {
30
- group: string;
31
- state: string;
32
- introduced: string;
33
- description: string;
34
- };
35
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ fontFamily: string;
12
+ fontStyle: string;
13
+ letterSpacing: string;
14
+ };
15
+ type TokenAttributes = {
16
+ group: string;
17
+ state: string;
18
+ introduced: string;
19
+ description: string;
20
+ suggest?: string[];
21
+ deprecated?: string;
22
+ };
23
+ type Token = {
24
+ value: TokenValue;
36
25
  filePath: string;
37
26
  isSource: boolean;
27
+ attributes: TokenAttributes;
38
28
  original: {
39
- attributes: {
40
- group: string;
41
- state: string;
42
- introduced: string;
43
- description: string;
44
- };
45
- value: {
46
- fontWeight: string;
47
- fontSize: string;
48
- lineHeight: string;
49
- fontFamily: string;
50
- fontStyle: string;
51
- letterSpacing: string;
52
- };
29
+ value: TokenValueOriginal;
30
+ attributes: TokenAttributes;
53
31
  };
54
32
  name: string;
55
33
  path: string[];
56
34
  cleanName: string;
57
- })[];
35
+ };
36
+ declare const tokens: Token[];
58
37
  export default tokens;
@@ -1,58 +1,37 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::3e0deeb09853e95221bd7bba0b9638ef>>
3
+ * @codegen <<SignedSource::03640b642efa498f3c90b99101405f9e>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- };
13
- value: string;
14
- filePath: string;
15
- isSource: boolean;
16
- original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: string;
24
- };
25
- name: string;
26
- path: string[];
27
- cleanName: string;
28
- } | {
29
- attributes: {
30
- group: string;
31
- state: string;
32
- introduced: string;
33
- description: string;
34
- };
35
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ fontFamily: string;
12
+ fontStyle: string;
13
+ letterSpacing: string;
14
+ };
15
+ type TokenAttributes = {
16
+ group: string;
17
+ state: string;
18
+ introduced: string;
19
+ description: string;
20
+ suggest?: string[];
21
+ deprecated?: string;
22
+ };
23
+ type Token = {
24
+ value: TokenValue;
36
25
  filePath: string;
37
26
  isSource: boolean;
27
+ attributes: TokenAttributes;
38
28
  original: {
39
- attributes: {
40
- group: string;
41
- state: string;
42
- introduced: string;
43
- description: string;
44
- };
45
- value: {
46
- fontWeight: string;
47
- fontSize: string;
48
- lineHeight: string;
49
- fontFamily: string;
50
- fontStyle: string;
51
- letterSpacing: string;
52
- };
29
+ value: TokenValueOriginal;
30
+ attributes: TokenAttributes;
53
31
  };
54
32
  name: string;
55
33
  path: string[];
56
34
  cleanName: string;
57
- })[];
35
+ };
36
+ declare const tokens: Token[];
58
37
  export default tokens;
@@ -1,58 +1,37 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::6daadbbdeae45dc5d3ae1237dc483b07>>
3
+ * @codegen <<SignedSource::2d82706aaef27f4b665743cafd879972>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- declare const tokens: ({
7
- attributes: {
8
- group: string;
9
- state: string;
10
- introduced: string;
11
- description: string;
12
- };
13
- value: string;
14
- filePath: string;
15
- isSource: boolean;
16
- original: {
17
- attributes: {
18
- group: string;
19
- state: string;
20
- introduced: string;
21
- description: string;
22
- };
23
- value: {
24
- fontWeight: string;
25
- fontSize: string;
26
- lineHeight: string;
27
- fontFamily: string;
28
- fontStyle: string;
29
- letterSpacing: string;
30
- };
31
- };
32
- name: string;
33
- path: string[];
34
- cleanName: string;
35
- } | {
36
- attributes: {
37
- group: string;
38
- state: string;
39
- introduced: string;
40
- description: string;
41
- };
42
- value: string;
6
+ type TokenValue = string;
7
+ type TokenValueOriginal = string | {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ fontFamily: string;
12
+ fontStyle: string;
13
+ letterSpacing: string;
14
+ };
15
+ type TokenAttributes = {
16
+ group: string;
17
+ state: string;
18
+ introduced: string;
19
+ description: string;
20
+ suggest?: string[];
21
+ deprecated?: string;
22
+ };
23
+ type Token = {
24
+ value: TokenValue;
43
25
  filePath: string;
44
26
  isSource: boolean;
27
+ attributes: TokenAttributes;
45
28
  original: {
46
- attributes: {
47
- group: string;
48
- state: string;
49
- introduced: string;
50
- description: string;
51
- };
52
- value: string;
29
+ value: TokenValueOriginal;
30
+ attributes: TokenAttributes;
53
31
  };
54
32
  name: string;
55
33
  path: string[];
56
34
  cleanName: string;
57
- })[];
35
+ };
36
+ declare const tokens: Token[];
58
37
  export default tokens;
@@ -21,5 +21,5 @@ import { type ThemeIdsWithOverrides, type ThemeState } from './theme-config';
21
21
  * setGlobalTheme({colorMode: 'auto', light: 'light', dark: 'dark', spacing: 'spacing'});
22
22
  * ```
23
23
  */
24
- declare const setGlobalTheme: ({ colorMode, contrastMode, dark, light, shape, spacing, typography, UNSAFE_themeOptions, }?: Partial<ThemeState>, themeLoader?: (id: ThemeIdsWithOverrides) => void | Promise<void>) => Promise<UnbindFn>;
24
+ declare const setGlobalTheme: (nextThemeState?: Partial<ThemeState> | ((themeState: ThemeState) => ThemeState), themeLoader?: (id: ThemeIdsWithOverrides) => void | Promise<void>) => Promise<UnbindFn>;
25
25
  export default setGlobalTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "6.3.2",
3
+ "version": "6.4.0",
4
4
  "description": "Design tokens are the single source of truth to name and store design decisions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@af/formatting": "workspace:^",
45
45
  "@af/visual-regression": "workspace:^",
46
- "@atlaskit/avatar": "^25.1.0",
46
+ "@atlaskit/avatar": "^25.2.0",
47
47
  "@atlaskit/button": "^23.4.0",
48
48
  "@atlaskit/calendar": "^17.1.0",
49
49
  "@atlaskit/checkbox": "^17.1.0",
@@ -52,10 +52,10 @@
52
52
  "@atlaskit/docs": "^11.1.0",
53
53
  "@atlaskit/dropdown-menu": "^16.3.0",
54
54
  "@atlaskit/dynamic-table": "^18.2.0",
55
- "@atlaskit/form": "^14.0.0",
55
+ "@atlaskit/form": "^14.2.0",
56
56
  "@atlaskit/grid": "^0.18.0",
57
57
  "@atlaskit/heading": "^5.2.0",
58
- "@atlaskit/icon": "^28.2.0",
58
+ "@atlaskit/icon": "^28.3.0",
59
59
  "@atlaskit/inline-message": "^15.3.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
61
  "@atlaskit/lozenge": "^13.0.0",