@atlaskit/tokens 0.10.27 → 0.10.28
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 +2 -2
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +3 -3
- package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +1 -49
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +26 -50
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/cjs/entry-points/spacing-raw.js +15 -0
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/spacing-scale.js +1 -1
- package/dist/cjs/tokens/default/spacing/spacing.js +12 -24
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +3 -3
- package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +1 -49
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +26 -50
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types-internal.js +0 -6
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types.js +0 -6
- package/dist/es2019/entry-points/spacing-raw.js +1 -0
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/spacing-scale.js +1 -1
- package/dist/es2019/tokens/default/spacing/spacing.js +12 -24
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +3 -3
- package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +1 -49
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +26 -50
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/esm/artifacts/typescript/atlassian-spacing-types-internal.js +0 -6
- package/dist/esm/artifacts/typescript/atlassian-spacing-types.js +0 -6
- package/dist/esm/entry-points/spacing-raw.js +1 -0
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/spacing-scale.js +1 -1
- package/dist/esm/tokens/default/spacing/spacing.js +12 -24
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
- package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +26 -3
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +2 -2
- package/dist/types/entry-points/spacing-raw.d.ts +1 -0
- package/dist/types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +26 -3
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +2 -2
- package/dist/types-ts4.0/entry-points/spacing-raw.d.ts +1 -0
- package/package.json +2 -1
- package/spacing-raw/package.json +17 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e19d1d58b2463145dd0eae095e3d0b36>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -29,19 +29,17 @@ var tokens = [{
|
|
|
29
29
|
}, {
|
|
30
30
|
"attributes": {
|
|
31
31
|
"group": "spacing",
|
|
32
|
-
"state": "
|
|
33
|
-
"replacement": "0",
|
|
32
|
+
"state": "active",
|
|
34
33
|
"introduced": "0.10.16",
|
|
35
34
|
"description": "Equates to `0`. Can be used for resetting default spacing styles."
|
|
36
35
|
},
|
|
37
|
-
"value": "
|
|
36
|
+
"value": "0px",
|
|
38
37
|
"filePath": "src/tokens/atlassian-spacing/spacing.tsx",
|
|
39
38
|
"isSource": true,
|
|
40
39
|
"original": {
|
|
41
40
|
"attributes": {
|
|
42
41
|
"group": "spacing",
|
|
43
|
-
"state": "
|
|
44
|
-
"replacement": "0",
|
|
42
|
+
"state": "active",
|
|
45
43
|
"introduced": "0.10.16",
|
|
46
44
|
"description": "Equates to `0`. Can be used for resetting default spacing styles."
|
|
47
45
|
},
|
|
@@ -52,8 +50,7 @@ var tokens = [{
|
|
|
52
50
|
}, {
|
|
53
51
|
"attributes": {
|
|
54
52
|
"group": "spacing",
|
|
55
|
-
"state": "
|
|
56
|
-
"replacement": "8px",
|
|
53
|
+
"state": "active",
|
|
57
54
|
"introduced": "0.10.16",
|
|
58
55
|
"description": "Helpful guidance goes here"
|
|
59
56
|
},
|
|
@@ -63,8 +60,7 @@ var tokens = [{
|
|
|
63
60
|
"original": {
|
|
64
61
|
"attributes": {
|
|
65
62
|
"group": "spacing",
|
|
66
|
-
"state": "
|
|
67
|
-
"replacement": "8px",
|
|
63
|
+
"state": "active",
|
|
68
64
|
"introduced": "0.10.16",
|
|
69
65
|
"description": "Helpful guidance goes here"
|
|
70
66
|
},
|
|
@@ -75,8 +71,7 @@ var tokens = [{
|
|
|
75
71
|
}, {
|
|
76
72
|
"attributes": {
|
|
77
73
|
"group": "spacing",
|
|
78
|
-
"state": "
|
|
79
|
-
"replacement": "12px",
|
|
74
|
+
"state": "active",
|
|
80
75
|
"introduced": "0.10.16",
|
|
81
76
|
"description": "Helpful guidance goes here"
|
|
82
77
|
},
|
|
@@ -86,8 +81,7 @@ var tokens = [{
|
|
|
86
81
|
"original": {
|
|
87
82
|
"attributes": {
|
|
88
83
|
"group": "spacing",
|
|
89
|
-
"state": "
|
|
90
|
-
"replacement": "12px",
|
|
84
|
+
"state": "active",
|
|
91
85
|
"introduced": "0.10.16",
|
|
92
86
|
"description": "Helpful guidance goes here"
|
|
93
87
|
},
|
|
@@ -98,8 +92,7 @@ var tokens = [{
|
|
|
98
92
|
}, {
|
|
99
93
|
"attributes": {
|
|
100
94
|
"group": "spacing",
|
|
101
|
-
"state": "
|
|
102
|
-
"replacement": "16px",
|
|
95
|
+
"state": "active",
|
|
103
96
|
"introduced": "0.10.16",
|
|
104
97
|
"description": "Helpful guidance goes here"
|
|
105
98
|
},
|
|
@@ -109,8 +102,7 @@ var tokens = [{
|
|
|
109
102
|
"original": {
|
|
110
103
|
"attributes": {
|
|
111
104
|
"group": "spacing",
|
|
112
|
-
"state": "
|
|
113
|
-
"replacement": "16px",
|
|
105
|
+
"state": "active",
|
|
114
106
|
"introduced": "0.10.16",
|
|
115
107
|
"description": "Helpful guidance goes here"
|
|
116
108
|
},
|
|
@@ -121,8 +113,7 @@ var tokens = [{
|
|
|
121
113
|
}, {
|
|
122
114
|
"attributes": {
|
|
123
115
|
"group": "spacing",
|
|
124
|
-
"state": "
|
|
125
|
-
"replacement": "20px",
|
|
116
|
+
"state": "active",
|
|
126
117
|
"introduced": "0.10.16",
|
|
127
118
|
"description": "Helpful guidance goes here"
|
|
128
119
|
},
|
|
@@ -132,8 +123,7 @@ var tokens = [{
|
|
|
132
123
|
"original": {
|
|
133
124
|
"attributes": {
|
|
134
125
|
"group": "spacing",
|
|
135
|
-
"state": "
|
|
136
|
-
"replacement": "20px",
|
|
126
|
+
"state": "active",
|
|
137
127
|
"introduced": "0.10.16",
|
|
138
128
|
"description": "Helpful guidance goes here"
|
|
139
129
|
},
|
|
@@ -144,8 +134,7 @@ var tokens = [{
|
|
|
144
134
|
}, {
|
|
145
135
|
"attributes": {
|
|
146
136
|
"group": "spacing",
|
|
147
|
-
"state": "
|
|
148
|
-
"replacement": "24px",
|
|
137
|
+
"state": "active",
|
|
149
138
|
"introduced": "0.10.16",
|
|
150
139
|
"description": "Helpful guidance goes here"
|
|
151
140
|
},
|
|
@@ -155,8 +144,7 @@ var tokens = [{
|
|
|
155
144
|
"original": {
|
|
156
145
|
"attributes": {
|
|
157
146
|
"group": "spacing",
|
|
158
|
-
"state": "
|
|
159
|
-
"replacement": "24px",
|
|
147
|
+
"state": "active",
|
|
160
148
|
"introduced": "0.10.16",
|
|
161
149
|
"description": "Helpful guidance goes here"
|
|
162
150
|
},
|
|
@@ -167,8 +155,7 @@ var tokens = [{
|
|
|
167
155
|
}, {
|
|
168
156
|
"attributes": {
|
|
169
157
|
"group": "spacing",
|
|
170
|
-
"state": "
|
|
171
|
-
"replacement": "32px",
|
|
158
|
+
"state": "active",
|
|
172
159
|
"introduced": "0.10.16",
|
|
173
160
|
"description": "Helpful guidance goes here"
|
|
174
161
|
},
|
|
@@ -178,8 +165,7 @@ var tokens = [{
|
|
|
178
165
|
"original": {
|
|
179
166
|
"attributes": {
|
|
180
167
|
"group": "spacing",
|
|
181
|
-
"state": "
|
|
182
|
-
"replacement": "32px",
|
|
168
|
+
"state": "active",
|
|
183
169
|
"introduced": "0.10.16",
|
|
184
170
|
"description": "Helpful guidance goes here"
|
|
185
171
|
},
|
|
@@ -190,8 +176,7 @@ var tokens = [{
|
|
|
190
176
|
}, {
|
|
191
177
|
"attributes": {
|
|
192
178
|
"group": "spacing",
|
|
193
|
-
"state": "
|
|
194
|
-
"replacement": "40px",
|
|
179
|
+
"state": "active",
|
|
195
180
|
"introduced": "0.10.16",
|
|
196
181
|
"description": "Helpful guidance goes here"
|
|
197
182
|
},
|
|
@@ -201,8 +186,7 @@ var tokens = [{
|
|
|
201
186
|
"original": {
|
|
202
187
|
"attributes": {
|
|
203
188
|
"group": "spacing",
|
|
204
|
-
"state": "
|
|
205
|
-
"replacement": "40px",
|
|
189
|
+
"state": "active",
|
|
206
190
|
"introduced": "0.10.16",
|
|
207
191
|
"description": "Helpful guidance goes here"
|
|
208
192
|
},
|
|
@@ -213,8 +197,7 @@ var tokens = [{
|
|
|
213
197
|
}, {
|
|
214
198
|
"attributes": {
|
|
215
199
|
"group": "spacing",
|
|
216
|
-
"state": "
|
|
217
|
-
"replacement": "48px",
|
|
200
|
+
"state": "active",
|
|
218
201
|
"introduced": "0.10.16",
|
|
219
202
|
"description": "Helpful guidance goes here"
|
|
220
203
|
},
|
|
@@ -224,8 +207,7 @@ var tokens = [{
|
|
|
224
207
|
"original": {
|
|
225
208
|
"attributes": {
|
|
226
209
|
"group": "spacing",
|
|
227
|
-
"state": "
|
|
228
|
-
"replacement": "48px",
|
|
210
|
+
"state": "active",
|
|
229
211
|
"introduced": "0.10.16",
|
|
230
212
|
"description": "Helpful guidance goes here"
|
|
231
213
|
},
|
|
@@ -236,8 +218,7 @@ var tokens = [{
|
|
|
236
218
|
}, {
|
|
237
219
|
"attributes": {
|
|
238
220
|
"group": "spacing",
|
|
239
|
-
"state": "
|
|
240
|
-
"replacement": "2px",
|
|
221
|
+
"state": "active",
|
|
241
222
|
"introduced": "0.10.16",
|
|
242
223
|
"description": "Use for spacing in compact scenarios. The smallest value in our scale."
|
|
243
224
|
},
|
|
@@ -247,8 +228,7 @@ var tokens = [{
|
|
|
247
228
|
"original": {
|
|
248
229
|
"attributes": {
|
|
249
230
|
"group": "spacing",
|
|
250
|
-
"state": "
|
|
251
|
-
"replacement": "2px",
|
|
231
|
+
"state": "active",
|
|
252
232
|
"introduced": "0.10.16",
|
|
253
233
|
"description": "Use for spacing in compact scenarios. The smallest value in our scale."
|
|
254
234
|
},
|
|
@@ -259,8 +239,7 @@ var tokens = [{
|
|
|
259
239
|
}, {
|
|
260
240
|
"attributes": {
|
|
261
241
|
"group": "spacing",
|
|
262
|
-
"state": "
|
|
263
|
-
"replacement": "4px",
|
|
242
|
+
"state": "active",
|
|
264
243
|
"introduced": "0.10.16",
|
|
265
244
|
"description": "Helpful guidance goes here"
|
|
266
245
|
},
|
|
@@ -270,8 +249,7 @@ var tokens = [{
|
|
|
270
249
|
"original": {
|
|
271
250
|
"attributes": {
|
|
272
251
|
"group": "spacing",
|
|
273
|
-
"state": "
|
|
274
|
-
"replacement": "4px",
|
|
252
|
+
"state": "active",
|
|
275
253
|
"introduced": "0.10.16",
|
|
276
254
|
"description": "Helpful guidance goes here"
|
|
277
255
|
},
|
|
@@ -282,8 +260,7 @@ var tokens = [{
|
|
|
282
260
|
}, {
|
|
283
261
|
"attributes": {
|
|
284
262
|
"group": "spacing",
|
|
285
|
-
"state": "
|
|
286
|
-
"replacement": "6px",
|
|
263
|
+
"state": "active",
|
|
287
264
|
"introduced": "0.10.16",
|
|
288
265
|
"description": "Helpful guidance goes here"
|
|
289
266
|
},
|
|
@@ -293,8 +270,7 @@ var tokens = [{
|
|
|
293
270
|
"original": {
|
|
294
271
|
"attributes": {
|
|
295
272
|
"group": "spacing",
|
|
296
|
-
"state": "
|
|
297
|
-
"replacement": "6px",
|
|
273
|
+
"state": "active",
|
|
298
274
|
"introduced": "0.10.16",
|
|
299
275
|
"description": "Helpful guidance goes here"
|
|
300
276
|
},
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::e575bc332dcc60d3fe9e378605bc9100>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
var defaultTokenValues = {
|
|
11
11
|
'spacing.container.gutter': '8px',
|
|
12
|
-
'spacing.scale.0': '
|
|
12
|
+
'spacing.scale.0': '0px',
|
|
13
13
|
'spacing.scale.100': '8px',
|
|
14
14
|
'spacing.scale.150': '12px',
|
|
15
15
|
'spacing.scale.200': '16px',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../artifacts/tokens-raw/atlassian-spacing';
|
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.28";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
var token = tokens[path];
|
|
@@ -15,8 +15,7 @@ var spacing = {
|
|
|
15
15
|
'0': {
|
|
16
16
|
attributes: {
|
|
17
17
|
group: 'spacing',
|
|
18
|
-
state: '
|
|
19
|
-
replacement: '0',
|
|
18
|
+
state: 'active',
|
|
20
19
|
introduced: '0.10.16',
|
|
21
20
|
description: 'Equates to `0`. Can be used for resetting default spacing styles.'
|
|
22
21
|
}
|
|
@@ -24,8 +23,7 @@ var spacing = {
|
|
|
24
23
|
'025': {
|
|
25
24
|
attributes: {
|
|
26
25
|
group: 'spacing',
|
|
27
|
-
state: '
|
|
28
|
-
replacement: '2px',
|
|
26
|
+
state: 'active',
|
|
29
27
|
introduced: '0.10.16',
|
|
30
28
|
description: 'Use for spacing in compact scenarios. The smallest value in our scale.'
|
|
31
29
|
}
|
|
@@ -33,8 +31,7 @@ var spacing = {
|
|
|
33
31
|
'050': {
|
|
34
32
|
attributes: {
|
|
35
33
|
group: 'spacing',
|
|
36
|
-
state: '
|
|
37
|
-
replacement: '4px',
|
|
34
|
+
state: 'active',
|
|
38
35
|
introduced: '0.10.16',
|
|
39
36
|
description: 'Helpful guidance goes here'
|
|
40
37
|
}
|
|
@@ -42,8 +39,7 @@ var spacing = {
|
|
|
42
39
|
'075': {
|
|
43
40
|
attributes: {
|
|
44
41
|
group: 'spacing',
|
|
45
|
-
state: '
|
|
46
|
-
replacement: '6px',
|
|
42
|
+
state: 'active',
|
|
47
43
|
introduced: '0.10.16',
|
|
48
44
|
description: 'Helpful guidance goes here'
|
|
49
45
|
}
|
|
@@ -51,8 +47,7 @@ var spacing = {
|
|
|
51
47
|
'100': {
|
|
52
48
|
attributes: {
|
|
53
49
|
group: 'spacing',
|
|
54
|
-
state: '
|
|
55
|
-
replacement: '8px',
|
|
50
|
+
state: 'active',
|
|
56
51
|
introduced: '0.10.16',
|
|
57
52
|
description: 'Helpful guidance goes here'
|
|
58
53
|
}
|
|
@@ -60,8 +55,7 @@ var spacing = {
|
|
|
60
55
|
'150': {
|
|
61
56
|
attributes: {
|
|
62
57
|
group: 'spacing',
|
|
63
|
-
state: '
|
|
64
|
-
replacement: '12px',
|
|
58
|
+
state: 'active',
|
|
65
59
|
introduced: '0.10.16',
|
|
66
60
|
description: 'Helpful guidance goes here'
|
|
67
61
|
}
|
|
@@ -69,8 +63,7 @@ var spacing = {
|
|
|
69
63
|
'200': {
|
|
70
64
|
attributes: {
|
|
71
65
|
group: 'spacing',
|
|
72
|
-
state: '
|
|
73
|
-
replacement: '16px',
|
|
66
|
+
state: 'active',
|
|
74
67
|
introduced: '0.10.16',
|
|
75
68
|
description: 'Helpful guidance goes here'
|
|
76
69
|
}
|
|
@@ -78,8 +71,7 @@ var spacing = {
|
|
|
78
71
|
'250': {
|
|
79
72
|
attributes: {
|
|
80
73
|
group: 'spacing',
|
|
81
|
-
state: '
|
|
82
|
-
replacement: '20px',
|
|
74
|
+
state: 'active',
|
|
83
75
|
introduced: '0.10.16',
|
|
84
76
|
description: 'Helpful guidance goes here'
|
|
85
77
|
}
|
|
@@ -87,8 +79,7 @@ var spacing = {
|
|
|
87
79
|
'300': {
|
|
88
80
|
attributes: {
|
|
89
81
|
group: 'spacing',
|
|
90
|
-
state: '
|
|
91
|
-
replacement: '24px',
|
|
82
|
+
state: 'active',
|
|
92
83
|
introduced: '0.10.16',
|
|
93
84
|
description: 'Helpful guidance goes here'
|
|
94
85
|
}
|
|
@@ -96,8 +87,7 @@ var spacing = {
|
|
|
96
87
|
'400': {
|
|
97
88
|
attributes: {
|
|
98
89
|
group: 'spacing',
|
|
99
|
-
state: '
|
|
100
|
-
replacement: '32px',
|
|
90
|
+
state: 'active',
|
|
101
91
|
introduced: '0.10.16',
|
|
102
92
|
description: 'Helpful guidance goes here'
|
|
103
93
|
}
|
|
@@ -105,8 +95,7 @@ var spacing = {
|
|
|
105
95
|
'500': {
|
|
106
96
|
attributes: {
|
|
107
97
|
group: 'spacing',
|
|
108
|
-
state: '
|
|
109
|
-
replacement: '40px',
|
|
98
|
+
state: 'active',
|
|
110
99
|
introduced: '0.10.16',
|
|
111
100
|
description: 'Helpful guidance goes here'
|
|
112
101
|
}
|
|
@@ -114,8 +103,7 @@ var spacing = {
|
|
|
114
103
|
'600': {
|
|
115
104
|
attributes: {
|
|
116
105
|
group: 'spacing',
|
|
117
|
-
state: '
|
|
118
|
-
replacement: '48px',
|
|
106
|
+
state: 'active',
|
|
119
107
|
introduced: '0.10.16',
|
|
120
108
|
description: 'Helpful guidance goes here'
|
|
121
109
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::9ec4d3766ad54f86aa1d9891b0f32317>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::a90d6d19262ac37cb4095da71ba3035c>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import tokens from '../token-names';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e19d1d58b2463145dd0eae095e3d0b36>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const tokens: {
|
|
6
|
+
declare const tokens: ({
|
|
7
7
|
attributes: {
|
|
8
8
|
group: string;
|
|
9
9
|
state: string;
|
|
@@ -26,5 +26,28 @@ declare const tokens: {
|
|
|
26
26
|
};
|
|
27
27
|
name: string;
|
|
28
28
|
path: string[];
|
|
29
|
-
}
|
|
29
|
+
} | {
|
|
30
|
+
attributes: {
|
|
31
|
+
group: string;
|
|
32
|
+
state: string;
|
|
33
|
+
introduced: string;
|
|
34
|
+
description: string;
|
|
35
|
+
replacement?: undefined;
|
|
36
|
+
};
|
|
37
|
+
value: string;
|
|
38
|
+
filePath: string;
|
|
39
|
+
isSource: boolean;
|
|
40
|
+
original: {
|
|
41
|
+
attributes: {
|
|
42
|
+
group: string;
|
|
43
|
+
state: string;
|
|
44
|
+
introduced: string;
|
|
45
|
+
description: string;
|
|
46
|
+
replacement?: undefined;
|
|
47
|
+
};
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
name: string;
|
|
51
|
+
path: string[];
|
|
52
|
+
})[];
|
|
30
53
|
export default tokens;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::e575bc332dcc60d3fe9e378605bc9100>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
declare const defaultTokenValues: {
|
|
11
11
|
readonly 'spacing.container.gutter': "8px";
|
|
12
|
-
readonly 'spacing.scale.0': "
|
|
12
|
+
readonly 'spacing.scale.0': "0px";
|
|
13
13
|
readonly 'spacing.scale.100': "8px";
|
|
14
14
|
readonly 'spacing.scale.150': "12px";
|
|
15
15
|
readonly 'spacing.scale.200': "16px";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::953f5e0300c6d0043915d01d2974af58>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare type InternalTokenIds = 'spacing.scale.0' | 'spacing.scale.100' | 'spacing.scale.150' | 'spacing.scale.200' | 'spacing.scale.250' | 'spacing.scale.300' | 'spacing.scale.400' | 'spacing.scale.500' | 'spacing.scale.600' | 'spacing.scale.025' | 'spacing.scale.050' | 'spacing.scale.075';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0a5838a760fffb6bbb598305116da533>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare type ActiveTokens = 'spacing.scale.0' | 'spacing.scale.100' | 'spacing.scale.150' | 'spacing.scale.200' | 'spacing.scale.250' | 'spacing.scale.300' | 'spacing.scale.400' | 'spacing.scale.500' | 'spacing.scale.600' | 'spacing.scale.025' | 'spacing.scale.050' | 'spacing.scale.075';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::9ec4d3766ad54f86aa1d9891b0f32317>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::a90d6d19262ac37cb4095da71ba3035c>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import tokens from '../token-names';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e19d1d58b2463145dd0eae095e3d0b36>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const tokens: {
|
|
6
|
+
declare const tokens: ({
|
|
7
7
|
attributes: {
|
|
8
8
|
group: string;
|
|
9
9
|
state: string;
|
|
@@ -26,5 +26,28 @@ declare const tokens: {
|
|
|
26
26
|
};
|
|
27
27
|
name: string;
|
|
28
28
|
path: string[];
|
|
29
|
-
}
|
|
29
|
+
} | {
|
|
30
|
+
attributes: {
|
|
31
|
+
group: string;
|
|
32
|
+
state: string;
|
|
33
|
+
introduced: string;
|
|
34
|
+
description: string;
|
|
35
|
+
replacement?: undefined;
|
|
36
|
+
};
|
|
37
|
+
value: string;
|
|
38
|
+
filePath: string;
|
|
39
|
+
isSource: boolean;
|
|
40
|
+
original: {
|
|
41
|
+
attributes: {
|
|
42
|
+
group: string;
|
|
43
|
+
state: string;
|
|
44
|
+
introduced: string;
|
|
45
|
+
description: string;
|
|
46
|
+
replacement?: undefined;
|
|
47
|
+
};
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
name: string;
|
|
51
|
+
path: string[];
|
|
52
|
+
})[];
|
|
30
53
|
export default tokens;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::e575bc332dcc60d3fe9e378605bc9100>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
declare const defaultTokenValues: {
|
|
11
11
|
readonly 'spacing.container.gutter': "8px";
|
|
12
|
-
readonly 'spacing.scale.0': "
|
|
12
|
+
readonly 'spacing.scale.0': "0px";
|
|
13
13
|
readonly 'spacing.scale.100': "8px";
|
|
14
14
|
readonly 'spacing.scale.150': "12px";
|
|
15
15
|
readonly 'spacing.scale.200': "16px";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::953f5e0300c6d0043915d01d2974af58>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare type InternalTokenIds = 'spacing.scale.0' | 'spacing.scale.100' | 'spacing.scale.150' | 'spacing.scale.200' | 'spacing.scale.250' | 'spacing.scale.300' | 'spacing.scale.400' | 'spacing.scale.500' | 'spacing.scale.600' | 'spacing.scale.025' | 'spacing.scale.050' | 'spacing.scale.075';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0a5838a760fffb6bbb598305116da533>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare type ActiveTokens = 'spacing.scale.0' | 'spacing.scale.100' | 'spacing.scale.150' | 'spacing.scale.200' | 'spacing.scale.250' | 'spacing.scale.300' | 'spacing.scale.400' | 'spacing.scale.500' | 'spacing.scale.600' | 'spacing.scale.025' | 'spacing.scale.050' | 'spacing.scale.075';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../artifacts/tokens-raw/atlassian-spacing';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.28",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"./tokens-raw": "./src/entry-points/tokens-raw.tsx",
|
|
39
39
|
"./token-ids": "./src/entry-points/token-ids.tsx",
|
|
40
40
|
"./token-names": "./src/entry-points/token-names.tsx",
|
|
41
|
+
"./spacing-raw": "./src/entry-points/spacing-raw.tsx",
|
|
41
42
|
"./rename-mapping": "./src/entry-points/rename-mapping.tsx",
|
|
42
43
|
"./babel-plugin": "./src/entry-points/babel-plugin.tsx",
|
|
43
44
|
"./css/atlassian-light.css": "./css/atlassian-light.css",
|