@atlaskit/tokens 1.4.3 → 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 +16 -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 +5 -13
  78. package/report.api.md +14 -17
  79. package/tmp/api-report-tmp.d.ts +14 -17
@@ -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::15f0ab59b776fd0726847c173399dd26>>
3
+ * @codegen <<SignedSource::62a42989e49ca7f7856827fb9ea059d6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = [{
@@ -41,7 +41,7 @@ var tokens = [{
41
41
  "filePath": "src/palettes/typography-palette.tsx",
42
42
  "isSource": true,
43
43
  "original": {
44
- "value": "11px",
44
+ "value": 11,
45
45
  "attributes": {
46
46
  "group": "typography"
47
47
  }
@@ -56,7 +56,7 @@ var tokens = [{
56
56
  "filePath": "src/palettes/typography-palette.tsx",
57
57
  "isSource": true,
58
58
  "original": {
59
- "value": "12px",
59
+ "value": 12,
60
60
  "attributes": {
61
61
  "group": "typography"
62
62
  }
@@ -71,7 +71,7 @@ var tokens = [{
71
71
  "filePath": "src/palettes/typography-palette.tsx",
72
72
  "isSource": true,
73
73
  "original": {
74
- "value": "14px",
74
+ "value": 14,
75
75
  "attributes": {
76
76
  "group": "typography"
77
77
  }
@@ -86,7 +86,7 @@ var tokens = [{
86
86
  "filePath": "src/palettes/typography-palette.tsx",
87
87
  "isSource": true,
88
88
  "original": {
89
- "value": "16px",
89
+ "value": 16,
90
90
  "attributes": {
91
91
  "group": "typography"
92
92
  }
@@ -101,7 +101,7 @@ var tokens = [{
101
101
  "filePath": "src/palettes/typography-palette.tsx",
102
102
  "isSource": true,
103
103
  "original": {
104
- "value": "20px",
104
+ "value": 20,
105
105
  "attributes": {
106
106
  "group": "typography"
107
107
  }
@@ -116,7 +116,7 @@ var tokens = [{
116
116
  "filePath": "src/palettes/typography-palette.tsx",
117
117
  "isSource": true,
118
118
  "original": {
119
- "value": "24px",
119
+ "value": 24,
120
120
  "attributes": {
121
121
  "group": "typography"
122
122
  }
@@ -131,7 +131,7 @@ var tokens = [{
131
131
  "filePath": "src/palettes/typography-palette.tsx",
132
132
  "isSource": true,
133
133
  "original": {
134
- "value": "29px",
134
+ "value": 29,
135
135
  "attributes": {
136
136
  "group": "typography"
137
137
  }
@@ -146,7 +146,7 @@ var tokens = [{
146
146
  "filePath": "src/palettes/typography-palette.tsx",
147
147
  "isSource": true,
148
148
  "original": {
149
- "value": "35px",
149
+ "value": 35,
150
150
  "attributes": {
151
151
  "group": "typography"
152
152
  }
@@ -221,7 +221,7 @@ var tokens = [{
221
221
  "filePath": "src/palettes/typography-palette.tsx",
222
222
  "isSource": true,
223
223
  "original": {
224
- "value": "16px",
224
+ "value": 16,
225
225
  "attributes": {
226
226
  "group": "typography"
227
227
  }
@@ -236,7 +236,7 @@ var tokens = [{
236
236
  "filePath": "src/palettes/typography-palette.tsx",
237
237
  "isSource": true,
238
238
  "original": {
239
- "value": "20px",
239
+ "value": 20,
240
240
  "attributes": {
241
241
  "group": "typography"
242
242
  }
@@ -251,7 +251,7 @@ var tokens = [{
251
251
  "filePath": "src/palettes/typography-palette.tsx",
252
252
  "isSource": true,
253
253
  "original": {
254
- "value": "24px",
254
+ "value": 24,
255
255
  "attributes": {
256
256
  "group": "typography"
257
257
  }
@@ -266,7 +266,7 @@ var tokens = [{
266
266
  "filePath": "src/palettes/typography-palette.tsx",
267
267
  "isSource": true,
268
268
  "original": {
269
- "value": "28px",
269
+ "value": 28,
270
270
  "attributes": {
271
271
  "group": "typography"
272
272
  }
@@ -281,7 +281,7 @@ var tokens = [{
281
281
  "filePath": "src/palettes/typography-palette.tsx",
282
282
  "isSource": true,
283
283
  "original": {
284
- "value": "32px",
284
+ "value": 32,
285
285
  "attributes": {
286
286
  "group": "typography"
287
287
  }
@@ -296,7 +296,7 @@ var tokens = [{
296
296
  "filePath": "src/palettes/typography-palette.tsx",
297
297
  "isSource": true,
298
298
  "original": {
299
- "value": "40px",
299
+ "value": 40,
300
300
  "attributes": {
301
301
  "group": "typography"
302
302
  }
@@ -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::e1827dff880ab23a73ac703dfb8f2018>>
3
+ * @codegen <<SignedSource::01d88a41c27f9a921fe1a40fec0a7ba0>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
6
+ export default "\nhtml[data-theme~=\"shape:shape\"] {\n --ds-radius-050: 0.125rem;\n --ds-radius-100: 0.25rem;\n --ds-radius-200: 0.5rem;\n --ds-radius-300: 0.75rem;\n --ds-radius-400: 1rem;\n --ds-radius-round: 50%;\n --ds-width-0: 0rem;\n --ds-width-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
@@ -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::6a9bb91811dc597f0d705bbed643a7fc>>
3
+ * @codegen <<SignedSource::36f0214aaedb62d3639cb79a9195eaf6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- export default "\nhtml[data-theme~=\"spacing:spacing\"] {\n --ds-space-0: 0;\n --ds-space-025: 0.125rem;\n --ds-space-050: 0.25rem;\n --ds-space-075: 0.375rem;\n --ds-space-100: 0.5rem;\n --ds-space-150: 0.75rem;\n --ds-space-200: 1rem;\n --ds-space-250: 1.25rem;\n --ds-space-300: 1.5rem;\n --ds-space-400: 2rem;\n --ds-space-500: 2.5rem;\n --ds-space-600: 3rem;\n --ds-space-800: 4rem;\n --ds-space-1000: 5rem;\n}\n";
6
+ export default "\nhtml[data-theme~=\"spacing:spacing\"] {\n --ds-space-0: 0rem;\n --ds-space-025: 0.125rem;\n --ds-space-050: 0.25rem;\n --ds-space-075: 0.375rem;\n --ds-space-100: 0.5rem;\n --ds-space-150: 0.75rem;\n --ds-space-200: 1rem;\n --ds-space-250: 1.25rem;\n --ds-space-300: 1.5rem;\n --ds-space-400: 2rem;\n --ds-space-500: 2.5rem;\n --ds-space-600: 3rem;\n --ds-space-800: 4rem;\n --ds-space-1000: 5rem;\n}\n";
@@ -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::2bb692b141bab7de1129474ea0fe281e>>
3
+ * @codegen <<SignedSource::3e4dc097014124b77e69b832281f37ed>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- export default "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-family-monospace: \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace;\n --ds-font-family-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n --ds-font-size-050: 11px;\n --ds-font-size-075: 12px;\n --ds-font-size-100: 14px;\n --ds-font-size-200: 16px;\n --ds-font-size-300: 20px;\n --ds-font-size-400: 24px;\n --ds-font-size-500: 29px;\n --ds-font-size-600: 35px;\n --ds-font-weight-bold: 700;\n --ds-font-weight-medium: 500;\n --ds-font-weight-regular: 400;\n --ds-font-weight-semibold: 600;\n --ds-font-lineHeight-100: 16px;\n --ds-font-lineHeight-200: 20px;\n --ds-font-lineHeight-300: 24px;\n --ds-font-lineHeight-400: 28px;\n --ds-font-lineHeight-500: 32px;\n --ds-font-lineHeight-600: 40px;\n}\n";
6
+ export default "\nhtml[data-theme~=\"typography:typography\"] {\n --ds-font-family-monospace: \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace;\n --ds-font-family-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n --ds-font-size-050: 0.6875rem;\n --ds-font-size-075: 0.75rem;\n --ds-font-size-100: 0.875rem;\n --ds-font-size-200: 1rem;\n --ds-font-size-300: 1.25rem;\n --ds-font-size-400: 1.5rem;\n --ds-font-size-500: 1.8125rem;\n --ds-font-size-600: 2.1875rem;\n --ds-font-weight-bold: 700;\n --ds-font-weight-medium: 500;\n --ds-font-weight-regular: 400;\n --ds-font-weight-semibold: 600;\n --ds-font-lineHeight-100: 1rem;\n --ds-font-lineHeight-200: 1.25rem;\n --ds-font-lineHeight-300: 1.5rem;\n --ds-font-lineHeight-400: 1.75rem;\n --ds-font-lineHeight-500: 2rem;\n --ds-font-lineHeight-600: 2.5rem;\n}\n";
@@ -4,7 +4,7 @@
4
4
  * Token names mapped to their value in the default Atlassian themes ('light').
5
5
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
6
6
  *
7
- * @codegen <<SignedSource::9c962af7a2afdab3160e3f3a2b285a8a>>
7
+ * @codegen <<SignedSource::856ff062171d44deb03158a6fa7d7bd1>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  var defaultTokenValues = {
@@ -14,7 +14,7 @@ var defaultTokenValues = {
14
14
  'border.radius.300': '0.75rem',
15
15
  'border.radius.400': '1rem',
16
16
  'border.radius.round': '50%',
17
- 'border.width.0': '0',
17
+ 'border.width.0': '0rem',
18
18
  'border.width.050': '0.0625rem',
19
19
  'border.width.100': '0.125rem',
20
20
  'color.text': '#172B4D',
@@ -303,7 +303,7 @@ var defaultTokenValues = {
303
303
  'opacity.disabled': '0.4',
304
304
  'opacity.loading': '0.2',
305
305
  'utility.UNSAFE.transparent': 'transparent',
306
- 'space.0': '0',
306
+ 'space.0': '0rem',
307
307
  'space.025': '0.125rem',
308
308
  'space.050': '0.25rem',
309
309
  'space.075': '0.375rem',
@@ -319,23 +319,23 @@ var defaultTokenValues = {
319
319
  'space.1000': '5rem',
320
320
  'font.family.monospace': '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
321
321
  'font.family.sans': '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
322
- 'font.size.050': '11px',
323
- 'font.size.075': '12px',
324
- 'font.size.100': '14px',
325
- 'font.size.200': '16px',
326
- 'font.size.300': '20px',
327
- 'font.size.400': '24px',
328
- 'font.size.500': '29px',
329
- 'font.size.600': '35px',
322
+ 'font.size.050': '0.6875rem',
323
+ 'font.size.075': '0.75rem',
324
+ 'font.size.100': '0.875rem',
325
+ 'font.size.200': '1rem',
326
+ 'font.size.300': '1.25rem',
327
+ 'font.size.400': '1.5rem',
328
+ 'font.size.500': '1.8125rem',
329
+ 'font.size.600': '2.1875rem',
330
330
  'font.weight.bold': '700',
331
331
  'font.weight.medium': '500',
332
332
  'font.weight.regular': '400',
333
333
  'font.weight.semibold': '600',
334
- 'font.lineHeight.100': '16px',
335
- 'font.lineHeight.200': '20px',
336
- 'font.lineHeight.300': '24px',
337
- 'font.lineHeight.400': '28px',
338
- 'font.lineHeight.500': '32px',
339
- 'font.lineHeight.600': '40px'
334
+ 'font.lineHeight.100': '1rem',
335
+ 'font.lineHeight.200': '1.25rem',
336
+ 'font.lineHeight.300': '1.5rem',
337
+ 'font.lineHeight.400': '1.75rem',
338
+ 'font.lineHeight.500': '2rem',
339
+ 'font.lineHeight.600': '2.5rem'
340
340
  };
341
341
  export default defaultTokenValues;
@@ -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::f4523de23a205d43950d1b24f656f952>>
3
+ * @codegen <<SignedSource::7cdaa82f55e6537ca0b68d196db9e1d6>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = [{
@@ -10,7 +10,7 @@ var tokens = [{
10
10
  "introduced": "1.1.0",
11
11
  "description": "Experimental, description needs to be amended"
12
12
  },
13
- "value": "0.125rem",
13
+ "value": "2px",
14
14
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
15
15
  "isSource": true,
16
16
  "original": {
@@ -32,7 +32,7 @@ var tokens = [{
32
32
  "introduced": "1.1.0",
33
33
  "description": "Experimental, description needs to be amended"
34
34
  },
35
- "value": "0.25rem",
35
+ "value": "4px",
36
36
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
37
37
  "isSource": true,
38
38
  "original": {
@@ -54,7 +54,7 @@ var tokens = [{
54
54
  "introduced": "1.1.0",
55
55
  "description": "Experimental, description needs to be amended"
56
56
  },
57
- "value": "0.5rem",
57
+ "value": "8px",
58
58
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
59
59
  "isSource": true,
60
60
  "original": {
@@ -76,7 +76,7 @@ var tokens = [{
76
76
  "introduced": "1.1.0",
77
77
  "description": "Experimental, description needs to be amended"
78
78
  },
79
- "value": "0.75rem",
79
+ "value": "12px",
80
80
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
81
81
  "isSource": true,
82
82
  "original": {
@@ -98,7 +98,7 @@ var tokens = [{
98
98
  "introduced": "1.1.0",
99
99
  "description": "Experimental, description needs to be amended"
100
100
  },
101
- "value": "1rem",
101
+ "value": "16px",
102
102
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
103
103
  "isSource": true,
104
104
  "original": {
@@ -142,7 +142,7 @@ var tokens = [{
142
142
  "introduced": "1.2.1",
143
143
  "description": "Experimental, description needs to be amended"
144
144
  },
145
- "value": "0",
145
+ "value": "0px",
146
146
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
147
147
  "isSource": true,
148
148
  "original": {
@@ -164,7 +164,7 @@ var tokens = [{
164
164
  "introduced": "1.1.0",
165
165
  "description": "Experimental, description needs to be amended"
166
166
  },
167
- "value": "0.0625rem",
167
+ "value": "1px",
168
168
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
169
169
  "isSource": true,
170
170
  "original": {
@@ -186,7 +186,7 @@ var tokens = [{
186
186
  "introduced": "1.1.0",
187
187
  "description": "Experimental, description needs to be amended"
188
188
  },
189
- "value": "0.125rem",
189
+ "value": "2px",
190
190
  "filePath": "src/tokens/atlassian-shape/shape.tsx",
191
191
  "isSource": true,
192
192
  "original": {
@@ -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::cfa1d518948d5dc23821d17cab0cb52a>>
3
+ * @codegen <<SignedSource::c89f0dcd1df97245a694a1a77741bb39>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = [{
@@ -8,10 +8,9 @@ var tokens = [{
8
8
  "group": "spacing",
9
9
  "state": "active",
10
10
  "introduced": "0.12.0",
11
- "pixelValue": "0px",
12
11
  "description": "Equates to `0`. Can be used for resetting default spacing styles."
13
12
  },
14
- "value": "0",
13
+ "value": "0px",
15
14
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
16
15
  "isSource": true,
17
16
  "original": {
@@ -19,7 +18,6 @@ var tokens = [{
19
18
  "group": "spacing",
20
19
  "state": "active",
21
20
  "introduced": "0.12.0",
22
- "pixelValue": "0px",
23
21
  "description": "Equates to `0`. Can be used for resetting default spacing styles."
24
22
  },
25
23
  "value": "Space0"
@@ -33,10 +31,9 @@ var tokens = [{
33
31
  "state": "active",
34
32
  "suggest": ["1px", "3px"],
35
33
  "introduced": "0.12.0",
36
- "pixelValue": "2px",
37
34
  "description": "Use for spacing in compact scenarios. The smallest value in our scale."
38
35
  },
39
- "value": "0.125rem",
36
+ "value": "2px",
40
37
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
41
38
  "isSource": true,
42
39
  "original": {
@@ -45,7 +42,6 @@ var tokens = [{
45
42
  "state": "active",
46
43
  "suggest": ["1px", "3px"],
47
44
  "introduced": "0.12.0",
48
- "pixelValue": "2px",
49
45
  "description": "Use for spacing in compact scenarios. The smallest value in our scale."
50
46
  },
51
47
  "value": "Space025"
@@ -59,10 +55,9 @@ var tokens = [{
59
55
  "state": "active",
60
56
  "suggest": ["3px", "5px"],
61
57
  "introduced": "0.12.0",
62
- "pixelValue": "4px",
63
58
  "description": "Use for spacing in compact scenarios."
64
59
  },
65
- "value": "0.25rem",
60
+ "value": "4px",
66
61
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
67
62
  "isSource": true,
68
63
  "original": {
@@ -71,7 +66,6 @@ var tokens = [{
71
66
  "state": "active",
72
67
  "suggest": ["3px", "5px"],
73
68
  "introduced": "0.12.0",
74
- "pixelValue": "4px",
75
69
  "description": "Use for spacing in compact scenarios."
76
70
  },
77
71
  "value": "Space050"
@@ -85,10 +79,9 @@ var tokens = [{
85
79
  "state": "active",
86
80
  "suggest": ["5px", "7px"],
87
81
  "introduced": "0.12.0",
88
- "pixelValue": "6px",
89
82
  "description": "Use for spacing in compact scenarios."
90
83
  },
91
- "value": "0.375rem",
84
+ "value": "6px",
92
85
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
93
86
  "isSource": true,
94
87
  "original": {
@@ -97,7 +90,6 @@ var tokens = [{
97
90
  "state": "active",
98
91
  "suggest": ["5px", "7px"],
99
92
  "introduced": "0.12.0",
100
- "pixelValue": "6px",
101
93
  "description": "Use for spacing in compact scenarios."
102
94
  },
103
95
  "value": "Space075"
@@ -111,10 +103,9 @@ var tokens = [{
111
103
  "state": "active",
112
104
  "suggest": ["7px", "9px"],
113
105
  "introduced": "0.12.0",
114
- "pixelValue": "8px",
115
106
  "description": "Use for gutter spacing."
116
107
  },
117
- "value": "0.5rem",
108
+ "value": "8px",
118
109
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
119
110
  "isSource": true,
120
111
  "original": {
@@ -123,7 +114,6 @@ var tokens = [{
123
114
  "state": "active",
124
115
  "suggest": ["7px", "9px"],
125
116
  "introduced": "0.12.0",
126
- "pixelValue": "8px",
127
117
  "description": "Use for gutter spacing."
128
118
  },
129
119
  "value": "Space100"
@@ -137,10 +127,9 @@ var tokens = [{
137
127
  "state": "active",
138
128
  "suggest": ["10px", "11px", "13px", "14px"],
139
129
  "introduced": "0.12.0",
140
- "pixelValue": "12px",
141
130
  "description": "Helpful guidance goes here"
142
131
  },
143
- "value": "0.75rem",
132
+ "value": "12px",
144
133
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
145
134
  "isSource": true,
146
135
  "original": {
@@ -149,7 +138,6 @@ var tokens = [{
149
138
  "state": "active",
150
139
  "suggest": ["10px", "11px", "13px", "14px"],
151
140
  "introduced": "0.12.0",
152
- "pixelValue": "12px",
153
141
  "description": "Helpful guidance goes here"
154
142
  },
155
143
  "value": "Space150"
@@ -163,10 +151,9 @@ var tokens = [{
163
151
  "state": "active",
164
152
  "suggest": ["14px", "15px", "17px", "18px"],
165
153
  "introduced": "0.12.0",
166
- "pixelValue": "16px",
167
154
  "description": "Use for gutter spacing."
168
155
  },
169
- "value": "1rem",
156
+ "value": "16px",
170
157
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
171
158
  "isSource": true,
172
159
  "original": {
@@ -175,7 +162,6 @@ var tokens = [{
175
162
  "state": "active",
176
163
  "suggest": ["14px", "15px", "17px", "18px"],
177
164
  "introduced": "0.12.0",
178
- "pixelValue": "16px",
179
165
  "description": "Use for gutter spacing."
180
166
  },
181
167
  "value": "Space200"
@@ -189,10 +175,9 @@ var tokens = [{
189
175
  "state": "active",
190
176
  "suggest": ["19px", "21px", "22px", "23px"],
191
177
  "introduced": "0.12.0",
192
- "pixelValue": "20px",
193
178
  "description": "Use for gutter spacing."
194
179
  },
195
- "value": "1.25rem",
180
+ "value": "20px",
196
181
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
197
182
  "isSource": true,
198
183
  "original": {
@@ -201,7 +186,6 @@ var tokens = [{
201
186
  "state": "active",
202
187
  "suggest": ["19px", "21px", "22px", "23px"],
203
188
  "introduced": "0.12.0",
204
- "pixelValue": "20px",
205
189
  "description": "Use for gutter spacing."
206
190
  },
207
191
  "value": "Space250"
@@ -215,10 +199,9 @@ var tokens = [{
215
199
  "state": "active",
216
200
  "suggest": ["23px", "25px", "26px", "27px", "28px"],
217
201
  "introduced": "0.12.0",
218
- "pixelValue": "24px",
219
202
  "description": "Use for gutter spacing."
220
203
  },
221
- "value": "1.5rem",
204
+ "value": "24px",
222
205
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
223
206
  "isSource": true,
224
207
  "original": {
@@ -227,7 +210,6 @@ var tokens = [{
227
210
  "state": "active",
228
211
  "suggest": ["23px", "25px", "26px", "27px", "28px"],
229
212
  "introduced": "0.12.0",
230
- "pixelValue": "24px",
231
213
  "description": "Use for gutter spacing."
232
214
  },
233
215
  "value": "Space300"
@@ -241,10 +223,9 @@ var tokens = [{
241
223
  "state": "active",
242
224
  "suggest": ["28px", "29px", "30px", "31px", "33px", "34px", "35px"],
243
225
  "introduced": "0.12.0",
244
- "pixelValue": "32px",
245
226
  "description": "Use for gutter spacing."
246
227
  },
247
- "value": "2rem",
228
+ "value": "32px",
248
229
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
249
230
  "isSource": true,
250
231
  "original": {
@@ -253,7 +234,6 @@ var tokens = [{
253
234
  "state": "active",
254
235
  "suggest": ["28px", "29px", "30px", "31px", "33px", "34px", "35px"],
255
236
  "introduced": "0.12.0",
256
- "pixelValue": "32px",
257
237
  "description": "Use for gutter spacing."
258
238
  },
259
239
  "value": "Space400"
@@ -266,10 +246,9 @@ var tokens = [{
266
246
  "group": "spacing",
267
247
  "state": "active",
268
248
  "introduced": "0.12.0",
269
- "pixelValue": "40px",
270
249
  "description": "Use for larger layout-specific spacing."
271
250
  },
272
- "value": "2.5rem",
251
+ "value": "40px",
273
252
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
274
253
  "isSource": true,
275
254
  "original": {
@@ -277,7 +256,6 @@ var tokens = [{
277
256
  "group": "spacing",
278
257
  "state": "active",
279
258
  "introduced": "0.12.0",
280
- "pixelValue": "40px",
281
259
  "description": "Use for larger layout-specific spacing."
282
260
  },
283
261
  "value": "Space500"
@@ -290,10 +268,9 @@ var tokens = [{
290
268
  "group": "spacing",
291
269
  "state": "active",
292
270
  "introduced": "0.12.0",
293
- "pixelValue": "48px",
294
271
  "description": "Use for larger layout-specific spacing."
295
272
  },
296
- "value": "3rem",
273
+ "value": "48px",
297
274
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
298
275
  "isSource": true,
299
276
  "original": {
@@ -301,7 +278,6 @@ var tokens = [{
301
278
  "group": "spacing",
302
279
  "state": "active",
303
280
  "introduced": "0.12.0",
304
- "pixelValue": "48px",
305
281
  "description": "Use for larger layout-specific spacing."
306
282
  },
307
283
  "value": "Space600"
@@ -314,10 +290,9 @@ var tokens = [{
314
290
  "group": "spacing",
315
291
  "state": "active",
316
292
  "introduced": "0.12.0",
317
- "pixelValue": "64px",
318
293
  "description": "Use for larger layout-specific spacing."
319
294
  },
320
- "value": "4rem",
295
+ "value": "64px",
321
296
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
322
297
  "isSource": true,
323
298
  "original": {
@@ -325,7 +300,6 @@ var tokens = [{
325
300
  "group": "spacing",
326
301
  "state": "active",
327
302
  "introduced": "0.12.0",
328
- "pixelValue": "64px",
329
303
  "description": "Use for larger layout-specific spacing."
330
304
  },
331
305
  "value": "Space800"
@@ -338,10 +312,9 @@ var tokens = [{
338
312
  "group": "spacing",
339
313
  "state": "active",
340
314
  "introduced": "0.12.0",
341
- "pixelValue": "80px",
342
315
  "description": "Use for larger layout-specific spacing."
343
316
  },
344
- "value": "5rem",
317
+ "value": "80px",
345
318
  "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
346
319
  "isSource": true,
347
320
  "original": {
@@ -349,7 +322,6 @@ var tokens = [{
349
322
  "group": "spacing",
350
323
  "state": "active",
351
324
  "introduced": "0.12.0",
352
- "pixelValue": "80px",
353
325
  "description": "Use for larger layout-specific spacing."
354
326
  },
355
327
  "value": "Space1000"
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  var name = "@atlaskit/tokens";
4
- var version = "1.4.3";
4
+ var version = "1.5.0";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -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 = "1.4.3";
5
+ var version = "1.5.0";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -4,19 +4,19 @@
4
4
 
5
5
  var baseSizeTokens = {
6
6
  Size0: {
7
- value: '0',
7
+ value: 0,
8
8
  attributes: {
9
9
  group: 'shape'
10
10
  }
11
11
  },
12
12
  Size050: {
13
- value: '0.0625rem',
13
+ value: 1,
14
14
  attributes: {
15
15
  group: 'shape'
16
16
  }
17
17
  },
18
18
  Size100: {
19
- value: '0.125rem',
19
+ value: 2,
20
20
  attributes: {
21
21
  group: 'shape'
22
22
  }
@@ -24,31 +24,31 @@ var baseSizeTokens = {
24
24
  };
25
25
  var baseRadiusTokens = {
26
26
  Radius050: {
27
- value: '0.125rem',
27
+ value: 2,
28
28
  attributes: {
29
29
  group: 'shape'
30
30
  }
31
31
  },
32
32
  Radius100: {
33
- value: '0.25rem',
33
+ value: 4,
34
34
  attributes: {
35
35
  group: 'shape'
36
36
  }
37
37
  },
38
38
  Radius200: {
39
- value: '0.5rem',
39
+ value: 8,
40
40
  attributes: {
41
41
  group: 'shape'
42
42
  }
43
43
  },
44
44
  Radius300: {
45
- value: '0.75rem',
45
+ value: 12,
46
46
  attributes: {
47
47
  group: 'shape'
48
48
  }
49
49
  },
50
50
  Radius400: {
51
- value: '1rem',
51
+ value: 16,
52
52
  attributes: {
53
53
  group: 'shape'
54
54
  }