@atlaskit/tokens 1.4.4 → 1.5.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 (79) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +17 -17
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +31 -35
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +15 -15
  5. package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
  6. package/dist/cjs/artifacts/themes/atlassian-spacing.js +2 -2
  7. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  8. package/dist/cjs/artifacts/token-default-values.js +17 -17
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +9 -9
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  11. package/dist/cjs/get-token-value.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/palettes/shape-palette.js +8 -8
  14. package/dist/cjs/palettes/spacing-scale.js +16 -18
  15. package/dist/cjs/palettes/typography-palette.js +14 -14
  16. package/dist/cjs/tokens/default/spacing/spacing.js +0 -14
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +17 -17
  19. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +31 -35
  20. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +15 -15
  21. package/dist/es2019/artifacts/themes/atlassian-shape.js +2 -2
  22. package/dist/es2019/artifacts/themes/atlassian-spacing.js +2 -2
  23. package/dist/es2019/artifacts/themes/atlassian-typography.js +15 -15
  24. package/dist/es2019/artifacts/token-default-values.js +17 -17
  25. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +9 -9
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  27. package/dist/es2019/get-token-value.js +1 -1
  28. package/dist/es2019/get-token.js +1 -1
  29. package/dist/es2019/palettes/shape-palette.js +8 -8
  30. package/dist/es2019/palettes/spacing-scale.js +16 -18
  31. package/dist/es2019/palettes/typography-palette.js +14 -14
  32. package/dist/es2019/tokens/default/spacing/spacing.js +0 -14
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/palettes-raw/shape-palette.js +17 -17
  35. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +31 -35
  36. package/dist/esm/artifacts/palettes-raw/typography-palette.js +15 -15
  37. package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
  38. package/dist/esm/artifacts/themes/atlassian-spacing.js +2 -2
  39. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  40. package/dist/esm/artifacts/token-default-values.js +17 -17
  41. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +9 -9
  42. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +15 -43
  43. package/dist/esm/get-token-value.js +1 -1
  44. package/dist/esm/get-token.js +1 -1
  45. package/dist/esm/palettes/shape-palette.js +8 -8
  46. package/dist/esm/palettes/spacing-scale.js +16 -18
  47. package/dist/esm/palettes/typography-palette.js +14 -14
  48. package/dist/esm/tokens/default/spacing/spacing.js +0 -14
  49. package/dist/esm/version.json +1 -1
  50. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  51. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  52. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  53. package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
  54. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +2 -2
  55. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  56. package/dist/types/artifacts/token-default-values.d.ts +17 -17
  57. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  58. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  59. package/dist/types/palettes/shape-palette.d.ts +8 -8
  60. package/dist/types/palettes/spacing-scale.d.ts +14 -16
  61. package/dist/types/types.d.ts +3 -4
  62. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +18 -3
  63. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +4 -23
  64. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +18 -3
  65. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
  66. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +2 -2
  67. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  68. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +17 -17
  69. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
  70. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -5
  71. package/dist/types-ts4.5/palettes/shape-palette.d.ts +8 -8
  72. package/dist/types-ts4.5/palettes/spacing-scale.d.ts +14 -16
  73. package/dist/types-ts4.5/types.d.ts +3 -4
  74. package/figma/atlassian-shape.json +8 -8
  75. package/figma/atlassian-spacing.json +14 -28
  76. package/figma/atlassian-typography.json +6 -6
  77. package/package.json +4 -4
  78. package/report.api.md +14 -17
  79. package/tmp/api-report-tmp.d.ts +14 -17
@@ -6,10 +6,9 @@
6
6
  "group": "spacing",
7
7
  "state": "active",
8
8
  "introduced": "0.12.0",
9
- "pixelValue": "0px",
10
9
  "description": "Equates to `0`. Can be used for resetting default spacing styles."
11
10
  },
12
- "value": "0"
11
+ "value": 0
13
12
  },
14
13
  "Spacing/space.025": {
15
14
  "attributes": {
@@ -20,10 +19,9 @@
20
19
  "3px"
21
20
  ],
22
21
  "introduced": "0.12.0",
23
- "pixelValue": "2px",
24
22
  "description": "Use for spacing in compact scenarios. The smallest value in our scale."
25
23
  },
26
- "value": "0.125rem"
24
+ "value": 2
27
25
  },
28
26
  "Spacing/space.050": {
29
27
  "attributes": {
@@ -34,10 +32,9 @@
34
32
  "5px"
35
33
  ],
36
34
  "introduced": "0.12.0",
37
- "pixelValue": "4px",
38
35
  "description": "Use for spacing in compact scenarios."
39
36
  },
40
- "value": "0.25rem"
37
+ "value": 4
41
38
  },
42
39
  "Spacing/space.075": {
43
40
  "attributes": {
@@ -48,10 +45,9 @@
48
45
  "7px"
49
46
  ],
50
47
  "introduced": "0.12.0",
51
- "pixelValue": "6px",
52
48
  "description": "Use for spacing in compact scenarios."
53
49
  },
54
- "value": "0.375rem"
50
+ "value": 6
55
51
  },
56
52
  "Spacing/space.100": {
57
53
  "attributes": {
@@ -62,10 +58,9 @@
62
58
  "9px"
63
59
  ],
64
60
  "introduced": "0.12.0",
65
- "pixelValue": "8px",
66
61
  "description": "Use for gutter spacing."
67
62
  },
68
- "value": "0.5rem"
63
+ "value": 8
69
64
  },
70
65
  "Spacing/space.150": {
71
66
  "attributes": {
@@ -78,10 +73,9 @@
78
73
  "14px"
79
74
  ],
80
75
  "introduced": "0.12.0",
81
- "pixelValue": "12px",
82
76
  "description": "Helpful guidance goes here"
83
77
  },
84
- "value": "0.75rem"
78
+ "value": 12
85
79
  },
86
80
  "Spacing/space.200": {
87
81
  "attributes": {
@@ -94,10 +88,9 @@
94
88
  "18px"
95
89
  ],
96
90
  "introduced": "0.12.0",
97
- "pixelValue": "16px",
98
91
  "description": "Use for gutter spacing."
99
92
  },
100
- "value": "1rem"
93
+ "value": 16
101
94
  },
102
95
  "Spacing/space.250": {
103
96
  "attributes": {
@@ -110,10 +103,9 @@
110
103
  "23px"
111
104
  ],
112
105
  "introduced": "0.12.0",
113
- "pixelValue": "20px",
114
106
  "description": "Use for gutter spacing."
115
107
  },
116
- "value": "1.25rem"
108
+ "value": 20
117
109
  },
118
110
  "Spacing/space.300": {
119
111
  "attributes": {
@@ -127,10 +119,9 @@
127
119
  "28px"
128
120
  ],
129
121
  "introduced": "0.12.0",
130
- "pixelValue": "24px",
131
122
  "description": "Use for gutter spacing."
132
123
  },
133
- "value": "1.5rem"
124
+ "value": 24
134
125
  },
135
126
  "Spacing/space.400": {
136
127
  "attributes": {
@@ -146,50 +137,45 @@
146
137
  "35px"
147
138
  ],
148
139
  "introduced": "0.12.0",
149
- "pixelValue": "32px",
150
140
  "description": "Use for gutter spacing."
151
141
  },
152
- "value": "2rem"
142
+ "value": 32
153
143
  },
154
144
  "Spacing/space.500": {
155
145
  "attributes": {
156
146
  "group": "spacing",
157
147
  "state": "active",
158
148
  "introduced": "0.12.0",
159
- "pixelValue": "40px",
160
149
  "description": "Use for larger layout-specific spacing."
161
150
  },
162
- "value": "2.5rem"
151
+ "value": 40
163
152
  },
164
153
  "Spacing/space.600": {
165
154
  "attributes": {
166
155
  "group": "spacing",
167
156
  "state": "active",
168
157
  "introduced": "0.12.0",
169
- "pixelValue": "48px",
170
158
  "description": "Use for larger layout-specific spacing."
171
159
  },
172
- "value": "3rem"
160
+ "value": 48
173
161
  },
174
162
  "Spacing/space.800": {
175
163
  "attributes": {
176
164
  "group": "spacing",
177
165
  "state": "active",
178
166
  "introduced": "0.12.0",
179
- "pixelValue": "64px",
180
167
  "description": "Use for larger layout-specific spacing."
181
168
  },
182
- "value": "4rem"
169
+ "value": 64
183
170
  },
184
171
  "Spacing/space.1000": {
185
172
  "attributes": {
186
173
  "group": "spacing",
187
174
  "state": "active",
188
175
  "introduced": "0.12.0",
189
- "pixelValue": "80px",
190
176
  "description": "Use for larger layout-specific spacing."
191
177
  },
192
- "value": "5rem"
178
+ "value": 80
193
179
  }
194
180
  },
195
181
  "renameMap": {}
@@ -62,7 +62,7 @@
62
62
  "introduced": "0.10.33",
63
63
  "description": "Helpful guidance goes here"
64
64
  },
65
- "value": "16px"
65
+ "value": 16
66
66
  },
67
67
  "Typography/font.lineHeight.200": {
68
68
  "attributes": {
@@ -71,7 +71,7 @@
71
71
  "introduced": "0.10.33",
72
72
  "description": "Helpful guidance goes here"
73
73
  },
74
- "value": "20px"
74
+ "value": 20
75
75
  },
76
76
  "Typography/font.lineHeight.300": {
77
77
  "attributes": {
@@ -80,7 +80,7 @@
80
80
  "introduced": "0.10.33",
81
81
  "description": "Helpful guidance goes here"
82
82
  },
83
- "value": "24px"
83
+ "value": 24
84
84
  },
85
85
  "Typography/font.lineHeight.400": {
86
86
  "attributes": {
@@ -89,7 +89,7 @@
89
89
  "introduced": "0.10.33",
90
90
  "description": "Helpful guidance goes here"
91
91
  },
92
- "value": "28px"
92
+ "value": 28
93
93
  },
94
94
  "Typography/font.lineHeight.500": {
95
95
  "attributes": {
@@ -98,7 +98,7 @@
98
98
  "introduced": "0.10.33",
99
99
  "description": "Helpful guidance goes here"
100
100
  },
101
- "value": "32px"
101
+ "value": 32
102
102
  },
103
103
  "Typography/font.lineHeight.600": {
104
104
  "attributes": {
@@ -107,7 +107,7 @@
107
107
  "introduced": "0.10.33",
108
108
  "description": "Helpful guidance goes here"
109
109
  },
110
- "value": "40px"
110
+ "value": 40
111
111
  }
112
112
  },
113
113
  "renameMap": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.4.4",
3
+ "version": "1.5.0",
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",
@@ -70,15 +70,15 @@
70
70
  "@atlaskit/code": "^14.6.0",
71
71
  "@atlaskit/docs": "^9.1.0",
72
72
  "@atlaskit/dropdown-menu": "^11.9.0",
73
- "@atlaskit/ds-explorations": "^2.1.0",
73
+ "@atlaskit/ds-explorations": "^2.2.0",
74
74
  "@atlaskit/dynamic-table": "^14.9.0",
75
- "@atlaskit/grid": "^0.10.0",
75
+ "@atlaskit/grid": "^0.11.0",
76
76
  "@atlaskit/heading": "^1.3.0",
77
77
  "@atlaskit/icon": "^21.12.0",
78
78
  "@atlaskit/lozenge": "^11.4.0",
79
79
  "@atlaskit/primitives": "^0.9.0",
80
80
  "@atlaskit/section-message": "^6.4.0",
81
- "@atlaskit/select": "^16.4.0",
81
+ "@atlaskit/select": "^16.5.0",
82
82
  "@atlaskit/tag": "^11.5.0",
83
83
  "@atlaskit/textfield": "^5.5.0",
84
84
  "@atlaskit/theme": "^12.5.0",
package/report.api.md CHANGED
@@ -352,90 +352,88 @@ type ActiveTokenState = 'active';
352
352
  // @public (undocumented)
353
353
  const baseSpacingTokens: {
354
354
  readonly Space0: {
355
- readonly value: '0';
355
+ readonly value: 0;
356
356
  readonly attributes: {
357
357
  readonly group: 'spacing';
358
358
  };
359
359
  };
360
360
  readonly Space025: {
361
- readonly value: '0.125rem';
361
+ readonly value: 2;
362
362
  readonly attributes: {
363
363
  readonly group: 'spacing';
364
364
  };
365
365
  };
366
366
  readonly Space050: {
367
- readonly value: '0.25rem';
367
+ readonly value: 4;
368
368
  readonly attributes: {
369
369
  readonly group: 'spacing';
370
370
  };
371
371
  };
372
372
  readonly Space075: {
373
- readonly value: '0.375rem';
373
+ readonly value: 6;
374
374
  readonly attributes: {
375
375
  readonly group: 'spacing';
376
376
  };
377
377
  };
378
378
  readonly Space100: {
379
- readonly value: '0.5rem';
379
+ readonly value: 8;
380
380
  readonly attributes: {
381
381
  readonly group: 'spacing';
382
382
  };
383
383
  };
384
384
  readonly Space150: {
385
- readonly value: '0.75rem';
385
+ readonly value: 12;
386
386
  readonly attributes: {
387
387
  readonly group: 'spacing';
388
388
  };
389
389
  };
390
390
  readonly Space200: {
391
- readonly value: '1rem';
391
+ readonly value: 16;
392
392
  readonly attributes: {
393
393
  readonly group: 'spacing';
394
394
  };
395
395
  };
396
396
  readonly Space250: {
397
- readonly value: '1.25rem';
397
+ readonly value: 20;
398
398
  readonly attributes: {
399
399
  readonly group: 'spacing';
400
400
  };
401
401
  };
402
402
  readonly Space300: {
403
- readonly value: '1.5rem';
403
+ readonly value: 24;
404
404
  readonly attributes: {
405
405
  readonly group: 'spacing';
406
406
  };
407
407
  };
408
408
  readonly Space400: {
409
- readonly value: '2rem';
409
+ readonly value: 32;
410
410
  readonly attributes: {
411
411
  readonly group: 'spacing';
412
412
  };
413
413
  };
414
414
  readonly Space500: {
415
- readonly value: '2.5rem';
415
+ readonly value: 40;
416
416
  readonly attributes: {
417
417
  readonly group: 'spacing';
418
418
  };
419
419
  };
420
420
  readonly Space600: {
421
- readonly value: '3rem';
421
+ readonly value: 48;
422
422
  readonly attributes: {
423
423
  readonly group: 'spacing';
424
424
  };
425
425
  };
426
426
  readonly Space800: {
427
- readonly value: '4rem';
427
+ readonly value: 64;
428
428
  readonly attributes: {
429
429
  readonly group: 'spacing';
430
430
  };
431
- readonly pixelValue: '64px';
432
431
  };
433
432
  readonly Space1000: {
434
- readonly value: '5rem';
433
+ readonly value: 80;
435
434
  readonly attributes: {
436
435
  readonly group: 'spacing';
437
436
  };
438
- readonly pixelValue: '80px';
439
437
  };
440
438
  };
441
439
 
@@ -794,7 +792,6 @@ interface DesignToken<TValue, Group extends Groups>
794
792
  group: Group;
795
793
  description: string;
796
794
  introduced: string;
797
- pixelValue?: Group extends 'spacing' ? string : never;
798
795
  suggest?: string[];
799
796
  }
800
797
  | {
@@ -21,90 +21,88 @@ type ActiveTokenState = 'active';
21
21
  // @public (undocumented)
22
22
  const baseSpacingTokens: {
23
23
  readonly Space0: {
24
- readonly value: "0";
24
+ readonly value: 0;
25
25
  readonly attributes: {
26
26
  readonly group: "spacing";
27
27
  };
28
28
  };
29
29
  readonly Space025: {
30
- readonly value: "0.125rem";
30
+ readonly value: 2;
31
31
  readonly attributes: {
32
32
  readonly group: "spacing";
33
33
  };
34
34
  };
35
35
  readonly Space050: {
36
- readonly value: "0.25rem";
36
+ readonly value: 4;
37
37
  readonly attributes: {
38
38
  readonly group: "spacing";
39
39
  };
40
40
  };
41
41
  readonly Space075: {
42
- readonly value: "0.375rem";
42
+ readonly value: 6;
43
43
  readonly attributes: {
44
44
  readonly group: "spacing";
45
45
  };
46
46
  };
47
47
  readonly Space100: {
48
- readonly value: "0.5rem";
48
+ readonly value: 8;
49
49
  readonly attributes: {
50
50
  readonly group: "spacing";
51
51
  };
52
52
  };
53
53
  readonly Space150: {
54
- readonly value: "0.75rem";
54
+ readonly value: 12;
55
55
  readonly attributes: {
56
56
  readonly group: "spacing";
57
57
  };
58
58
  };
59
59
  readonly Space200: {
60
- readonly value: "1rem";
60
+ readonly value: 16;
61
61
  readonly attributes: {
62
62
  readonly group: "spacing";
63
63
  };
64
64
  };
65
65
  readonly Space250: {
66
- readonly value: "1.25rem";
66
+ readonly value: 20;
67
67
  readonly attributes: {
68
68
  readonly group: "spacing";
69
69
  };
70
70
  };
71
71
  readonly Space300: {
72
- readonly value: "1.5rem";
72
+ readonly value: 24;
73
73
  readonly attributes: {
74
74
  readonly group: "spacing";
75
75
  };
76
76
  };
77
77
  readonly Space400: {
78
- readonly value: "2rem";
78
+ readonly value: 32;
79
79
  readonly attributes: {
80
80
  readonly group: "spacing";
81
81
  };
82
82
  };
83
83
  readonly Space500: {
84
- readonly value: "2.5rem";
84
+ readonly value: 40;
85
85
  readonly attributes: {
86
86
  readonly group: "spacing";
87
87
  };
88
88
  };
89
89
  readonly Space600: {
90
- readonly value: "3rem";
90
+ readonly value: 48;
91
91
  readonly attributes: {
92
92
  readonly group: "spacing";
93
93
  };
94
94
  };
95
95
  readonly Space800: {
96
- readonly value: "4rem";
96
+ readonly value: 64;
97
97
  readonly attributes: {
98
98
  readonly group: "spacing";
99
99
  };
100
- readonly pixelValue: "64px";
101
100
  };
102
101
  readonly Space1000: {
103
- readonly value: "5rem";
102
+ readonly value: 80;
104
103
  readonly attributes: {
105
104
  readonly group: "spacing";
106
105
  };
107
- readonly pixelValue: "80px";
108
106
  };
109
107
  };
110
108
 
@@ -461,7 +459,6 @@ interface DesignToken<TValue, Group extends Groups> extends Token<TValue, Group>
461
459
  group: Group;
462
460
  description: string;
463
461
  introduced: string;
464
- pixelValue?: Group extends 'spacing' ? string : never;
465
462
  suggest?: string[];
466
463
  } | {
467
464
  state: DeletedTokenState;