@atlaskit/tokens 0.11.0 → 0.11.2

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 (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/css/atlassian-spacing.css +17 -13
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +249 -1
  4. package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +1 -49
  5. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +323 -213
  6. package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +17 -13
  7. package/dist/cjs/artifacts/typescript/atlassian-spacing-token-names.js +17 -13
  8. package/dist/cjs/constants.js +1 -1
  9. package/dist/cjs/get-token.js +1 -1
  10. package/dist/cjs/palettes/spacing-scale.js +96 -76
  11. package/dist/cjs/theme-config.js +6 -0
  12. package/dist/cjs/tokens/atlassian-spacing/spacing.js +65 -44
  13. package/dist/cjs/tokens/default/spacing/spacing.js +167 -116
  14. package/dist/cjs/version.json +1 -1
  15. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +249 -1
  16. package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +1 -49
  17. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +323 -213
  18. package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +17 -13
  19. package/dist/es2019/artifacts/typescript/atlassian-spacing-token-names.js +17 -13
  20. package/dist/es2019/constants.js +1 -1
  21. package/dist/es2019/get-token.js +1 -1
  22. package/dist/es2019/palettes/spacing-scale.js +95 -76
  23. package/dist/es2019/theme-config.js +6 -0
  24. package/dist/es2019/tokens/atlassian-spacing/spacing.js +64 -44
  25. package/dist/es2019/tokens/default/spacing/spacing.js +166 -116
  26. package/dist/es2019/version.json +1 -1
  27. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +249 -1
  28. package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +1 -49
  29. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +323 -213
  30. package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +17 -13
  31. package/dist/esm/artifacts/typescript/atlassian-spacing-token-names.js +17 -13
  32. package/dist/esm/constants.js +1 -1
  33. package/dist/esm/get-token.js +1 -1
  34. package/dist/esm/palettes/spacing-scale.js +95 -76
  35. package/dist/esm/theme-config.js +6 -0
  36. package/dist/esm/tokens/atlassian-spacing/spacing.js +64 -44
  37. package/dist/esm/tokens/default/spacing/spacing.js +166 -116
  38. package/dist/esm/version.json +1 -1
  39. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +22 -3
  40. package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +1 -1
  41. package/dist/types/artifacts/token-default-values.d.ts +16 -12
  42. package/dist/types/artifacts/token-names.d.ts +16 -12
  43. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +61 -1
  44. package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +17 -13
  45. package/dist/types/artifacts/typescript/atlassian-spacing-token-names.d.ts +33 -25
  46. package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +2 -2
  47. package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +2 -2
  48. package/dist/types/palettes/spacing-scale.d.ts +94 -4
  49. package/dist/types/theme-config.d.ts +9 -1
  50. package/dist/types/tokens/atlassian-spacing/spacing.d.ts +8 -2
  51. package/dist/types/tokens/default/spacing/spacing.d.ts +6 -2
  52. package/dist/types/types.d.ts +92 -81
  53. package/package.json +2 -3
  54. package/report.api.md +40 -26
  55. package/tmp/api-report-tmp.d.ts +38 -25
  56. package/dist/cjs/entry-points/init.js +0 -9
  57. package/dist/es2019/entry-points/init.js +0 -4
  58. package/dist/esm/entry-points/init.js +0 -4
  59. package/dist/types/entry-points/init.d.ts +0 -4
  60. package/init/package.json +0 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 0.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`81e34736aa0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81e34736aa0) - [ux] Introduces additional token set `space.*`. These tokens match the behavior of `spacing.scale.*`. Also introduces two additional base tokens, `Space800` and `Space1000`.
8
+
9
+ ## 0.11.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9307ebb86d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9307ebb86d8) - Revert addition of init entry point in favor of an upcoming solution.
14
+
3
15
  ## 0.11.0
4
16
 
5
17
  ### Minor Changes
@@ -1,9 +1,23 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::8e6cd2970a142e04a52f6072452d0283>>
3
+ * @codegen <<SignedSource::e102fd6b50557ebf21b851ddbd1a0147>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  :root {
7
+ --ds-space-0: 0;
8
+ --ds-space-100: 0.5rem;
9
+ --ds-space-150: 0.75rem;
10
+ --ds-space-200: 1rem;
11
+ --ds-space-250: 1.25rem;
12
+ --ds-space-300: 1.5rem;
13
+ --ds-space-400: 2rem;
14
+ --ds-space-500: 2.5rem;
15
+ --ds-space-600: 3rem;
16
+ --ds-space-800: 4rem;
17
+ --ds-space-1000: 5rem;
18
+ --ds-space-025: 0.125rem;
19
+ --ds-space-050: 0.25rem;
20
+ --ds-space-075: 0.375rem;
7
21
  --ds-scale-0: 0;
8
22
  --ds-scale-100: 0.5rem;
9
23
  --ds-scale-150: 0.75rem;
@@ -13,6 +27,8 @@
13
27
  --ds-scale-400: 2rem;
14
28
  --ds-scale-500: 2.5rem;
15
29
  --ds-scale-600: 3rem;
30
+ --ds-scale-800: 4rem;
31
+ --ds-scale-1000: 5rem;
16
32
  --ds-scale-025: 0.125rem;
17
33
  --ds-scale-050: 0.25rem;
18
34
  --ds-scale-075: 0.375rem;
@@ -28,18 +44,6 @@
28
44
  --ds-scaleLinear-900: 2rem;
29
45
  --ds-scaleLinear-1000: 2.5rem;
30
46
  --ds-scaleLinear-1100: 3rem;
31
- --ds-pixel-0: 0;
32
- --ds-pixel-2: 0.125rem;
33
- --ds-pixel-4: 0.25rem;
34
- --ds-pixel-6: 0.375rem;
35
- --ds-pixel-8: 0.5rem;
36
- --ds-pixel-12: 0.75rem;
37
- --ds-pixel-16: 1rem;
38
- --ds-pixel-20: 1.25rem;
39
- --ds-pixel-24: 1.5rem;
40
- --ds-pixel-32: 2rem;
41
- --ds-pixel-40: 2.5rem;
42
- --ds-pixel-48: 3rem;
43
47
  --ds-size-none: 0;
44
48
  --ds-size-xxxxSmall: 0.125rem;
45
49
  --ds-size-xxxSmall: 0.25rem;
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  /**
9
9
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
10
- * @codegen <<SignedSource::e1fc16f85d9f95330fadb08536a38997>>
10
+ * @codegen <<SignedSource::4466431b8da920b1737382f7e9e82009>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -190,6 +190,254 @@ var tokens = [{
190
190
  },
191
191
  "name": "spacing.scale.Space600",
192
192
  "path": ["spacing", "scale", "Space600"]
193
+ }, {
194
+ "value": "4rem",
195
+ "attributes": {
196
+ "group": "scale"
197
+ },
198
+ "pixelValue": "64px",
199
+ "filePath": "src/palettes/spacing-scale.tsx",
200
+ "isSource": true,
201
+ "original": {
202
+ "value": "4rem",
203
+ "attributes": {
204
+ "group": "scale"
205
+ },
206
+ "pixelValue": "64px"
207
+ },
208
+ "name": "spacing.scale.Space800",
209
+ "path": ["spacing", "scale", "Space800"]
210
+ }, {
211
+ "value": "5rem",
212
+ "attributes": {
213
+ "group": "scale"
214
+ },
215
+ "pixelValue": "80px",
216
+ "filePath": "src/palettes/spacing-scale.tsx",
217
+ "isSource": true,
218
+ "original": {
219
+ "value": "5rem",
220
+ "attributes": {
221
+ "group": "scale"
222
+ },
223
+ "pixelValue": "80px"
224
+ },
225
+ "name": "spacing.scale.Space1000",
226
+ "path": ["spacing", "scale", "Space1000"]
227
+ }, {
228
+ "value": "0",
229
+ "attributes": {
230
+ "group": "scale"
231
+ },
232
+ "filePath": "src/palettes/spacing-scale.tsx",
233
+ "isSource": true,
234
+ "original": {
235
+ "value": "0",
236
+ "attributes": {
237
+ "group": "scale"
238
+ }
239
+ },
240
+ "name": "space.Space0",
241
+ "path": ["space", "Space0"]
242
+ }, {
243
+ "value": "0.125rem",
244
+ "attributes": {
245
+ "group": "scale"
246
+ },
247
+ "filePath": "src/palettes/spacing-scale.tsx",
248
+ "isSource": true,
249
+ "original": {
250
+ "value": "0.125rem",
251
+ "attributes": {
252
+ "group": "scale"
253
+ }
254
+ },
255
+ "name": "space.Space025",
256
+ "path": ["space", "Space025"]
257
+ }, {
258
+ "value": "0.25rem",
259
+ "attributes": {
260
+ "group": "scale"
261
+ },
262
+ "filePath": "src/palettes/spacing-scale.tsx",
263
+ "isSource": true,
264
+ "original": {
265
+ "value": "0.25rem",
266
+ "attributes": {
267
+ "group": "scale"
268
+ }
269
+ },
270
+ "name": "space.Space050",
271
+ "path": ["space", "Space050"]
272
+ }, {
273
+ "value": "0.375rem",
274
+ "attributes": {
275
+ "group": "scale"
276
+ },
277
+ "filePath": "src/palettes/spacing-scale.tsx",
278
+ "isSource": true,
279
+ "original": {
280
+ "value": "0.375rem",
281
+ "attributes": {
282
+ "group": "scale"
283
+ }
284
+ },
285
+ "name": "space.Space075",
286
+ "path": ["space", "Space075"]
287
+ }, {
288
+ "value": "0.5rem",
289
+ "attributes": {
290
+ "group": "scale"
291
+ },
292
+ "filePath": "src/palettes/spacing-scale.tsx",
293
+ "isSource": true,
294
+ "original": {
295
+ "value": "0.5rem",
296
+ "attributes": {
297
+ "group": "scale"
298
+ }
299
+ },
300
+ "name": "space.Space100",
301
+ "path": ["space", "Space100"]
302
+ }, {
303
+ "value": "0.75rem",
304
+ "attributes": {
305
+ "group": "scale"
306
+ },
307
+ "filePath": "src/palettes/spacing-scale.tsx",
308
+ "isSource": true,
309
+ "original": {
310
+ "value": "0.75rem",
311
+ "attributes": {
312
+ "group": "scale"
313
+ }
314
+ },
315
+ "name": "space.Space150",
316
+ "path": ["space", "Space150"]
317
+ }, {
318
+ "value": "1rem",
319
+ "attributes": {
320
+ "group": "scale"
321
+ },
322
+ "filePath": "src/palettes/spacing-scale.tsx",
323
+ "isSource": true,
324
+ "original": {
325
+ "value": "1rem",
326
+ "attributes": {
327
+ "group": "scale"
328
+ }
329
+ },
330
+ "name": "space.Space200",
331
+ "path": ["space", "Space200"]
332
+ }, {
333
+ "value": "1.25rem",
334
+ "attributes": {
335
+ "group": "scale"
336
+ },
337
+ "filePath": "src/palettes/spacing-scale.tsx",
338
+ "isSource": true,
339
+ "original": {
340
+ "value": "1.25rem",
341
+ "attributes": {
342
+ "group": "scale"
343
+ }
344
+ },
345
+ "name": "space.Space250",
346
+ "path": ["space", "Space250"]
347
+ }, {
348
+ "value": "1.5rem",
349
+ "attributes": {
350
+ "group": "scale"
351
+ },
352
+ "filePath": "src/palettes/spacing-scale.tsx",
353
+ "isSource": true,
354
+ "original": {
355
+ "value": "1.5rem",
356
+ "attributes": {
357
+ "group": "scale"
358
+ }
359
+ },
360
+ "name": "space.Space300",
361
+ "path": ["space", "Space300"]
362
+ }, {
363
+ "value": "2rem",
364
+ "attributes": {
365
+ "group": "scale"
366
+ },
367
+ "filePath": "src/palettes/spacing-scale.tsx",
368
+ "isSource": true,
369
+ "original": {
370
+ "value": "2rem",
371
+ "attributes": {
372
+ "group": "scale"
373
+ }
374
+ },
375
+ "name": "space.Space400",
376
+ "path": ["space", "Space400"]
377
+ }, {
378
+ "value": "2.5rem",
379
+ "attributes": {
380
+ "group": "scale"
381
+ },
382
+ "filePath": "src/palettes/spacing-scale.tsx",
383
+ "isSource": true,
384
+ "original": {
385
+ "value": "2.5rem",
386
+ "attributes": {
387
+ "group": "scale"
388
+ }
389
+ },
390
+ "name": "space.Space500",
391
+ "path": ["space", "Space500"]
392
+ }, {
393
+ "value": "3rem",
394
+ "attributes": {
395
+ "group": "scale"
396
+ },
397
+ "filePath": "src/palettes/spacing-scale.tsx",
398
+ "isSource": true,
399
+ "original": {
400
+ "value": "3rem",
401
+ "attributes": {
402
+ "group": "scale"
403
+ }
404
+ },
405
+ "name": "space.Space600",
406
+ "path": ["space", "Space600"]
407
+ }, {
408
+ "value": "4rem",
409
+ "attributes": {
410
+ "group": "scale"
411
+ },
412
+ "pixelValue": "64px",
413
+ "filePath": "src/palettes/spacing-scale.tsx",
414
+ "isSource": true,
415
+ "original": {
416
+ "value": "4rem",
417
+ "attributes": {
418
+ "group": "scale"
419
+ },
420
+ "pixelValue": "64px"
421
+ },
422
+ "name": "space.Space800",
423
+ "path": ["space", "Space800"]
424
+ }, {
425
+ "value": "5rem",
426
+ "attributes": {
427
+ "group": "scale"
428
+ },
429
+ "pixelValue": "80px",
430
+ "filePath": "src/palettes/spacing-scale.tsx",
431
+ "isSource": true,
432
+ "original": {
433
+ "value": "5rem",
434
+ "attributes": {
435
+ "group": "scale"
436
+ },
437
+ "pixelValue": "80px"
438
+ },
439
+ "name": "space.Space1000",
440
+ "path": ["space", "Space1000"]
193
441
  }];
194
442
  var _default = tokens;
195
443
  exports.default = _default;
@@ -19,7 +19,7 @@ exports.default = void 0;
19
19
  * These changes will then be picked up by our tooling which will attempt to
20
20
  * migrate as many of these renames as possible.
21
21
  *
22
- * @codegen <<SignedSource::96edd04d9850fc284b2e4b66f4c91d07>>
22
+ * @codegen <<SignedSource::fb30c9ee91e6f244c04349f684b451e1>>
23
23
  * @codegenCommand yarn build tokens
24
24
  */
25
25
  var renameMapper = [{
@@ -70,54 +70,6 @@ var renameMapper = [{
70
70
  "path": "spacing.scaleLinear.1100",
71
71
  "state": "experimental",
72
72
  "replacement": "48px"
73
- }, {
74
- "path": "spacing.pixel.0",
75
- "state": "experimental",
76
- "replacement": "0"
77
- }, {
78
- "path": "spacing.pixel.2",
79
- "state": "experimental",
80
- "replacement": "2px"
81
- }, {
82
- "path": "spacing.pixel.4",
83
- "state": "experimental",
84
- "replacement": "4px"
85
- }, {
86
- "path": "spacing.pixel.6",
87
- "state": "experimental",
88
- "replacement": "6px"
89
- }, {
90
- "path": "spacing.pixel.8",
91
- "state": "experimental",
92
- "replacement": "8px"
93
- }, {
94
- "path": "spacing.pixel.12",
95
- "state": "experimental",
96
- "replacement": "12px"
97
- }, {
98
- "path": "spacing.pixel.16",
99
- "state": "experimental",
100
- "replacement": "16px"
101
- }, {
102
- "path": "spacing.pixel.20",
103
- "state": "experimental",
104
- "replacement": "20px"
105
- }, {
106
- "path": "spacing.pixel.24",
107
- "state": "experimental",
108
- "replacement": "24px"
109
- }, {
110
- "path": "spacing.pixel.32",
111
- "state": "experimental",
112
- "replacement": "32px"
113
- }, {
114
- "path": "spacing.pixel.40",
115
- "state": "experimental",
116
- "replacement": "40px"
117
- }, {
118
- "path": "spacing.pixel.48",
119
- "state": "experimental",
120
- "replacement": "48px"
121
73
  }, {
122
74
  "path": "spacing.size.none",
123
75
  "state": "experimental",