@atlaskit/tokens 1.1.0 → 1.2.1

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 (74) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +134 -0
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +29 -243
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +41 -41
  5. package/dist/cjs/artifacts/theme-import-map.js +6 -1
  6. package/dist/cjs/artifacts/themes/atlassian-shape.js +13 -0
  7. package/dist/cjs/artifacts/token-default-values.js +9 -1
  8. package/dist/cjs/artifacts/token-names.js +9 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +190 -0
  10. package/dist/cjs/entry-points/tokens-raw.js +8 -1
  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 +70 -0
  14. package/dist/cjs/palettes/spacing-scale.js +14 -17
  15. package/dist/cjs/palettes/typography-palette.js +20 -20
  16. package/dist/cjs/theme-config.js +9 -1
  17. package/dist/cjs/tokens/atlassian-shape/shape.js +44 -0
  18. package/dist/cjs/tokens/default/shape/shape.js +80 -0
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +127 -0
  21. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +29 -243
  22. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +41 -41
  23. package/dist/es2019/artifacts/theme-import-map.js +4 -2
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +17 -0
  25. package/dist/es2019/artifacts/token-default-values.js +9 -1
  26. package/dist/es2019/artifacts/token-names.js +9 -1
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +183 -0
  28. package/dist/es2019/entry-points/tokens-raw.js +2 -1
  29. package/dist/es2019/get-token-value.js +1 -1
  30. package/dist/es2019/get-token.js +1 -1
  31. package/dist/es2019/palettes/shape-palette.js +63 -0
  32. package/dist/es2019/palettes/spacing-scale.js +14 -17
  33. package/dist/es2019/palettes/typography-palette.js +20 -20
  34. package/dist/es2019/theme-config.js +9 -1
  35. package/dist/es2019/tokens/atlassian-shape/shape.js +37 -0
  36. package/dist/es2019/tokens/default/shape/shape.js +73 -0
  37. package/dist/es2019/version.json +1 -1
  38. package/dist/esm/artifacts/palettes-raw/shape-palette.js +127 -0
  39. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +29 -243
  40. package/dist/esm/artifacts/palettes-raw/typography-palette.js +41 -41
  41. package/dist/esm/artifacts/theme-import-map.js +5 -1
  42. package/dist/esm/artifacts/themes/atlassian-shape.js +6 -0
  43. package/dist/esm/artifacts/token-default-values.js +9 -1
  44. package/dist/esm/artifacts/token-names.js +9 -1
  45. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +183 -0
  46. package/dist/esm/entry-points/tokens-raw.js +2 -1
  47. package/dist/esm/get-token-value.js +1 -1
  48. package/dist/esm/get-token.js +1 -1
  49. package/dist/esm/palettes/shape-palette.js +63 -0
  50. package/dist/esm/palettes/spacing-scale.js +14 -17
  51. package/dist/esm/palettes/typography-palette.js +20 -20
  52. package/dist/esm/theme-config.js +9 -1
  53. package/dist/esm/tokens/atlassian-shape/shape.js +37 -0
  54. package/dist/esm/tokens/default/shape/shape.js +73 -0
  55. package/dist/esm/version.json +1 -1
  56. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +22 -0
  57. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  58. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  59. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  60. package/dist/types/artifacts/themes/atlassian-shape.d.ts +7 -0
  61. package/dist/types/artifacts/token-default-values.d.ts +9 -1
  62. package/dist/types/artifacts/token-names.d.ts +17 -1
  63. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +29 -0
  64. package/dist/types/entry-points/tokens-raw.d.ts +1 -0
  65. package/dist/types/palettes/shape-palette.d.ts +61 -0
  66. package/dist/types/palettes/spacing-scale.d.ts +14 -14
  67. package/dist/types/theme-config.d.ts +5 -7
  68. package/dist/types/tokens/atlassian-shape/shape.d.ts +7 -0
  69. package/dist/types/tokens/default/shape/shape.d.ts +3 -0
  70. package/dist/types/types.d.ts +32 -13
  71. package/figma/atlassian-shape.json +78 -0
  72. package/package.json +1 -1
  73. package/report.api.md +23 -4
  74. package/tmp/api-report-tmp.d.ts +23 -6
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::04c90c279da3841c8c8952b13bddb31b>>
3
+ * @codegen <<SignedSource::15f0ab59b776fd0726847c173399dd26>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = [{
7
7
  "value": "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
8
8
  "attributes": {
9
- "group": "scale"
9
+ "group": "typography"
10
10
  },
11
11
  "filePath": "src/palettes/typography-palette.tsx",
12
12
  "isSource": true,
13
13
  "original": {
14
14
  "value": "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
15
15
  "attributes": {
16
- "group": "scale"
16
+ "group": "typography"
17
17
  }
18
18
  },
19
19
  "name": "typography.fontFamily.FontFamilyMonospace",
@@ -21,14 +21,14 @@ var tokens = [{
21
21
  }, {
22
22
  "value": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
23
23
  "attributes": {
24
- "group": "scale"
24
+ "group": "typography"
25
25
  },
26
26
  "filePath": "src/palettes/typography-palette.tsx",
27
27
  "isSource": true,
28
28
  "original": {
29
29
  "value": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
30
30
  "attributes": {
31
- "group": "scale"
31
+ "group": "typography"
32
32
  }
33
33
  },
34
34
  "name": "typography.fontFamily.FontFamilySans",
@@ -36,14 +36,14 @@ var tokens = [{
36
36
  }, {
37
37
  "value": "11px",
38
38
  "attributes": {
39
- "group": "scale"
39
+ "group": "typography"
40
40
  },
41
41
  "filePath": "src/palettes/typography-palette.tsx",
42
42
  "isSource": true,
43
43
  "original": {
44
44
  "value": "11px",
45
45
  "attributes": {
46
- "group": "scale"
46
+ "group": "typography"
47
47
  }
48
48
  },
49
49
  "name": "typography.fontSize.FontSize050",
@@ -51,14 +51,14 @@ var tokens = [{
51
51
  }, {
52
52
  "value": "12px",
53
53
  "attributes": {
54
- "group": "scale"
54
+ "group": "typography"
55
55
  },
56
56
  "filePath": "src/palettes/typography-palette.tsx",
57
57
  "isSource": true,
58
58
  "original": {
59
59
  "value": "12px",
60
60
  "attributes": {
61
- "group": "scale"
61
+ "group": "typography"
62
62
  }
63
63
  },
64
64
  "name": "typography.fontSize.FontSize075",
@@ -66,14 +66,14 @@ var tokens = [{
66
66
  }, {
67
67
  "value": "14px",
68
68
  "attributes": {
69
- "group": "scale"
69
+ "group": "typography"
70
70
  },
71
71
  "filePath": "src/palettes/typography-palette.tsx",
72
72
  "isSource": true,
73
73
  "original": {
74
74
  "value": "14px",
75
75
  "attributes": {
76
- "group": "scale"
76
+ "group": "typography"
77
77
  }
78
78
  },
79
79
  "name": "typography.fontSize.FontSize100",
@@ -81,14 +81,14 @@ var tokens = [{
81
81
  }, {
82
82
  "value": "16px",
83
83
  "attributes": {
84
- "group": "scale"
84
+ "group": "typography"
85
85
  },
86
86
  "filePath": "src/palettes/typography-palette.tsx",
87
87
  "isSource": true,
88
88
  "original": {
89
89
  "value": "16px",
90
90
  "attributes": {
91
- "group": "scale"
91
+ "group": "typography"
92
92
  }
93
93
  },
94
94
  "name": "typography.fontSize.FontSize200",
@@ -96,14 +96,14 @@ var tokens = [{
96
96
  }, {
97
97
  "value": "20px",
98
98
  "attributes": {
99
- "group": "scale"
99
+ "group": "typography"
100
100
  },
101
101
  "filePath": "src/palettes/typography-palette.tsx",
102
102
  "isSource": true,
103
103
  "original": {
104
104
  "value": "20px",
105
105
  "attributes": {
106
- "group": "scale"
106
+ "group": "typography"
107
107
  }
108
108
  },
109
109
  "name": "typography.fontSize.FontSize300",
@@ -111,14 +111,14 @@ var tokens = [{
111
111
  }, {
112
112
  "value": "24px",
113
113
  "attributes": {
114
- "group": "scale"
114
+ "group": "typography"
115
115
  },
116
116
  "filePath": "src/palettes/typography-palette.tsx",
117
117
  "isSource": true,
118
118
  "original": {
119
119
  "value": "24px",
120
120
  "attributes": {
121
- "group": "scale"
121
+ "group": "typography"
122
122
  }
123
123
  },
124
124
  "name": "typography.fontSize.FontSize400",
@@ -126,14 +126,14 @@ var tokens = [{
126
126
  }, {
127
127
  "value": "29px",
128
128
  "attributes": {
129
- "group": "scale"
129
+ "group": "typography"
130
130
  },
131
131
  "filePath": "src/palettes/typography-palette.tsx",
132
132
  "isSource": true,
133
133
  "original": {
134
134
  "value": "29px",
135
135
  "attributes": {
136
- "group": "scale"
136
+ "group": "typography"
137
137
  }
138
138
  },
139
139
  "name": "typography.fontSize.FontSize500",
@@ -141,14 +141,14 @@ var tokens = [{
141
141
  }, {
142
142
  "value": "35px",
143
143
  "attributes": {
144
- "group": "scale"
144
+ "group": "typography"
145
145
  },
146
146
  "filePath": "src/palettes/typography-palette.tsx",
147
147
  "isSource": true,
148
148
  "original": {
149
149
  "value": "35px",
150
150
  "attributes": {
151
- "group": "scale"
151
+ "group": "typography"
152
152
  }
153
153
  },
154
154
  "name": "typography.fontSize.FontSize600",
@@ -156,14 +156,14 @@ var tokens = [{
156
156
  }, {
157
157
  "value": "700",
158
158
  "attributes": {
159
- "group": "scale"
159
+ "group": "typography"
160
160
  },
161
161
  "filePath": "src/palettes/typography-palette.tsx",
162
162
  "isSource": true,
163
163
  "original": {
164
164
  "value": "700",
165
165
  "attributes": {
166
- "group": "scale"
166
+ "group": "typography"
167
167
  }
168
168
  },
169
169
  "name": "typography.fontWeight.FontWeightBold",
@@ -171,14 +171,14 @@ var tokens = [{
171
171
  }, {
172
172
  "value": "500",
173
173
  "attributes": {
174
- "group": "scale"
174
+ "group": "typography"
175
175
  },
176
176
  "filePath": "src/palettes/typography-palette.tsx",
177
177
  "isSource": true,
178
178
  "original": {
179
179
  "value": "500",
180
180
  "attributes": {
181
- "group": "scale"
181
+ "group": "typography"
182
182
  }
183
183
  },
184
184
  "name": "typography.fontWeight.FontWeightMedium",
@@ -186,14 +186,14 @@ var tokens = [{
186
186
  }, {
187
187
  "value": "400",
188
188
  "attributes": {
189
- "group": "scale"
189
+ "group": "typography"
190
190
  },
191
191
  "filePath": "src/palettes/typography-palette.tsx",
192
192
  "isSource": true,
193
193
  "original": {
194
194
  "value": "400",
195
195
  "attributes": {
196
- "group": "scale"
196
+ "group": "typography"
197
197
  }
198
198
  },
199
199
  "name": "typography.fontWeight.FontWeightRegular",
@@ -201,14 +201,14 @@ var tokens = [{
201
201
  }, {
202
202
  "value": "600",
203
203
  "attributes": {
204
- "group": "scale"
204
+ "group": "typography"
205
205
  },
206
206
  "filePath": "src/palettes/typography-palette.tsx",
207
207
  "isSource": true,
208
208
  "original": {
209
209
  "value": "600",
210
210
  "attributes": {
211
- "group": "scale"
211
+ "group": "typography"
212
212
  }
213
213
  },
214
214
  "name": "typography.fontWeight.FontWeightSemiBold",
@@ -216,14 +216,14 @@ var tokens = [{
216
216
  }, {
217
217
  "value": "16px",
218
218
  "attributes": {
219
- "group": "scale"
219
+ "group": "typography"
220
220
  },
221
221
  "filePath": "src/palettes/typography-palette.tsx",
222
222
  "isSource": true,
223
223
  "original": {
224
224
  "value": "16px",
225
225
  "attributes": {
226
- "group": "scale"
226
+ "group": "typography"
227
227
  }
228
228
  },
229
229
  "name": "typography.lineHeight.LineHeight100",
@@ -231,14 +231,14 @@ var tokens = [{
231
231
  }, {
232
232
  "value": "20px",
233
233
  "attributes": {
234
- "group": "scale"
234
+ "group": "typography"
235
235
  },
236
236
  "filePath": "src/palettes/typography-palette.tsx",
237
237
  "isSource": true,
238
238
  "original": {
239
239
  "value": "20px",
240
240
  "attributes": {
241
- "group": "scale"
241
+ "group": "typography"
242
242
  }
243
243
  },
244
244
  "name": "typography.lineHeight.LineHeight200",
@@ -246,14 +246,14 @@ var tokens = [{
246
246
  }, {
247
247
  "value": "24px",
248
248
  "attributes": {
249
- "group": "scale"
249
+ "group": "typography"
250
250
  },
251
251
  "filePath": "src/palettes/typography-palette.tsx",
252
252
  "isSource": true,
253
253
  "original": {
254
254
  "value": "24px",
255
255
  "attributes": {
256
- "group": "scale"
256
+ "group": "typography"
257
257
  }
258
258
  },
259
259
  "name": "typography.lineHeight.LineHeight300",
@@ -261,14 +261,14 @@ var tokens = [{
261
261
  }, {
262
262
  "value": "28px",
263
263
  "attributes": {
264
- "group": "scale"
264
+ "group": "typography"
265
265
  },
266
266
  "filePath": "src/palettes/typography-palette.tsx",
267
267
  "isSource": true,
268
268
  "original": {
269
269
  "value": "28px",
270
270
  "attributes": {
271
- "group": "scale"
271
+ "group": "typography"
272
272
  }
273
273
  },
274
274
  "name": "typography.lineHeight.LineHeight400",
@@ -276,14 +276,14 @@ var tokens = [{
276
276
  }, {
277
277
  "value": "32px",
278
278
  "attributes": {
279
- "group": "scale"
279
+ "group": "typography"
280
280
  },
281
281
  "filePath": "src/palettes/typography-palette.tsx",
282
282
  "isSource": true,
283
283
  "original": {
284
284
  "value": "32px",
285
285
  "attributes": {
286
- "group": "scale"
286
+ "group": "typography"
287
287
  }
288
288
  },
289
289
  "name": "typography.lineHeight.LineHeight500",
@@ -291,14 +291,14 @@ var tokens = [{
291
291
  }, {
292
292
  "value": "40px",
293
293
  "attributes": {
294
- "group": "scale"
294
+ "group": "typography"
295
295
  },
296
296
  "filePath": "src/palettes/typography-palette.tsx",
297
297
  "isSource": true,
298
298
  "original": {
299
299
  "value": "40px",
300
300
  "attributes": {
301
- "group": "scale"
301
+ "group": "typography"
302
302
  }
303
303
  },
304
304
  "name": "typography.lineHeight.LineHeight600",
@@ -6,7 +6,7 @@
6
6
  * This allows users to compose their themes and only use the tokens that are requested.
7
7
  * When a new theme is created, the import should automatically be added to the map
8
8
  *
9
- * @codegen <<SignedSource::dca5807b567cf95fcec4906be228f65f>>
9
+ * @codegen <<SignedSource::ce4463df8e613cb4c4a8b24907ce95ae>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
 
@@ -34,6 +34,10 @@ var themeImportsMap = {
34
34
  'typography': function typography() {
35
35
  return import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
36
36
  './themes/atlassian-typography');
37
+ },
38
+ 'shape': function shape() {
39
+ return import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape" */
40
+ './themes/atlassian-shape');
37
41
  }
38
42
  };
39
43
  export default themeImportsMap;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::309f92a792656831b0e137b75ca1156f>>
4
+ * @codegenCommand yarn build tokens
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-050: 0.0625rem;\n --ds-width-100: 0.125rem;\n}\n";
@@ -4,10 +4,18 @@
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::1481aae8495313f724d4e6c09ccaac8d>>
7
+ * @codegen <<SignedSource::f5109afc580f9e67007907726883450e>>
8
8
  * @codegenCommand yarn build tokens
9
9
  */
10
10
  var defaultTokenValues = {
11
+ 'border.radius.050': '0.125rem',
12
+ 'border.radius.100': '0.25rem',
13
+ 'border.radius.200': '0.5rem',
14
+ 'border.radius.300': '0.75rem',
15
+ 'border.radius.400': '1rem',
16
+ 'border.radius.round': '50%',
17
+ 'border.width.050': '0.0625rem',
18
+ 'border.width.100': '0.125rem',
11
19
  'color.text': '#172B4D',
12
20
  'color.text.accent.red': '#AE2A19',
13
21
  'color.text.accent.red.bolder': '#601E16',
@@ -1,9 +1,17 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::7d8f37c15df01017e141b2e709521993>>
3
+ * @codegen <<SignedSource::0d28771b28a7bf28109534471c1383d4>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  var tokens = {
7
+ 'border.radius.050': '--ds-radius-050',
8
+ 'border.radius.100': '--ds-radius-100',
9
+ 'border.radius.200': '--ds-radius-200',
10
+ 'border.radius.300': '--ds-radius-300',
11
+ 'border.radius.400': '--ds-radius-400',
12
+ 'border.radius.round': '--ds-radius-round',
13
+ 'border.width.050': '--ds-width-050',
14
+ 'border.width.100': '--ds-width-100',
7
15
  'color.text': '--ds-text',
8
16
  'color.text.accent.red': '--ds-text-accent-red',
9
17
  'color.text.accent.red.bolder': '--ds-text-accent-red-bolder',
@@ -0,0 +1,183 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::c9a10991e5bb0b7dbbb35a5f644bceb0>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ var tokens = [{
7
+ "attributes": {
8
+ "group": "shape",
9
+ "state": "experimental",
10
+ "introduced": "1.1.0",
11
+ "description": "Experimental, description needs to be amended"
12
+ },
13
+ "value": "0.125rem",
14
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
15
+ "isSource": true,
16
+ "original": {
17
+ "attributes": {
18
+ "group": "shape",
19
+ "state": "experimental",
20
+ "introduced": "1.1.0",
21
+ "description": "Experimental, description needs to be amended"
22
+ },
23
+ "value": "Radius050"
24
+ },
25
+ "name": "border.radius.050",
26
+ "path": ["border", "radius", "050"],
27
+ "cleanName": "border.radius.050"
28
+ }, {
29
+ "attributes": {
30
+ "group": "shape",
31
+ "state": "experimental",
32
+ "introduced": "1.1.0",
33
+ "description": "Experimental, description needs to be amended"
34
+ },
35
+ "value": "0.25rem",
36
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
37
+ "isSource": true,
38
+ "original": {
39
+ "attributes": {
40
+ "group": "shape",
41
+ "state": "experimental",
42
+ "introduced": "1.1.0",
43
+ "description": "Experimental, description needs to be amended"
44
+ },
45
+ "value": "Radius100"
46
+ },
47
+ "name": "border.radius.100",
48
+ "path": ["border", "radius", "100"],
49
+ "cleanName": "border.radius.100"
50
+ }, {
51
+ "attributes": {
52
+ "group": "shape",
53
+ "state": "experimental",
54
+ "introduced": "1.1.0",
55
+ "description": "Experimental, description needs to be amended"
56
+ },
57
+ "value": "0.5rem",
58
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
59
+ "isSource": true,
60
+ "original": {
61
+ "attributes": {
62
+ "group": "shape",
63
+ "state": "experimental",
64
+ "introduced": "1.1.0",
65
+ "description": "Experimental, description needs to be amended"
66
+ },
67
+ "value": "Radius200"
68
+ },
69
+ "name": "border.radius.200",
70
+ "path": ["border", "radius", "200"],
71
+ "cleanName": "border.radius.200"
72
+ }, {
73
+ "attributes": {
74
+ "group": "shape",
75
+ "state": "experimental",
76
+ "introduced": "1.1.0",
77
+ "description": "Experimental, description needs to be amended"
78
+ },
79
+ "value": "0.75rem",
80
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
81
+ "isSource": true,
82
+ "original": {
83
+ "attributes": {
84
+ "group": "shape",
85
+ "state": "experimental",
86
+ "introduced": "1.1.0",
87
+ "description": "Experimental, description needs to be amended"
88
+ },
89
+ "value": "Radius300"
90
+ },
91
+ "name": "border.radius.300",
92
+ "path": ["border", "radius", "300"],
93
+ "cleanName": "border.radius.300"
94
+ }, {
95
+ "attributes": {
96
+ "group": "shape",
97
+ "state": "experimental",
98
+ "introduced": "1.1.0",
99
+ "description": "Experimental, description needs to be amended"
100
+ },
101
+ "value": "1rem",
102
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
103
+ "isSource": true,
104
+ "original": {
105
+ "attributes": {
106
+ "group": "shape",
107
+ "state": "experimental",
108
+ "introduced": "1.1.0",
109
+ "description": "Experimental, description needs to be amended"
110
+ },
111
+ "value": "Radius400"
112
+ },
113
+ "name": "border.radius.400",
114
+ "path": ["border", "radius", "400"],
115
+ "cleanName": "border.radius.400"
116
+ }, {
117
+ "attributes": {
118
+ "group": "shape",
119
+ "state": "experimental",
120
+ "introduced": "1.1.0",
121
+ "description": "Experimental, description needs to be amended"
122
+ },
123
+ "value": "50%",
124
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
125
+ "isSource": true,
126
+ "original": {
127
+ "attributes": {
128
+ "group": "shape",
129
+ "state": "experimental",
130
+ "introduced": "1.1.0",
131
+ "description": "Experimental, description needs to be amended"
132
+ },
133
+ "value": "RadiusCircle"
134
+ },
135
+ "name": "border.radius.round",
136
+ "path": ["border", "radius", "round"],
137
+ "cleanName": "border.radius.round"
138
+ }, {
139
+ "attributes": {
140
+ "group": "shape",
141
+ "state": "experimental",
142
+ "introduced": "1.1.0",
143
+ "description": "Experimental, description needs to be amended"
144
+ },
145
+ "value": "0.0625rem",
146
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
147
+ "isSource": true,
148
+ "original": {
149
+ "attributes": {
150
+ "group": "shape",
151
+ "state": "experimental",
152
+ "introduced": "1.1.0",
153
+ "description": "Experimental, description needs to be amended"
154
+ },
155
+ "value": "Size050"
156
+ },
157
+ "name": "border.width.050",
158
+ "path": ["border", "width", "050"],
159
+ "cleanName": "border.width.050"
160
+ }, {
161
+ "attributes": {
162
+ "group": "shape",
163
+ "state": "experimental",
164
+ "introduced": "1.1.0",
165
+ "description": "Experimental, description needs to be amended"
166
+ },
167
+ "value": "0.125rem",
168
+ "filePath": "src/tokens/atlassian-shape/shape.tsx",
169
+ "isSource": true,
170
+ "original": {
171
+ "attributes": {
172
+ "group": "shape",
173
+ "state": "experimental",
174
+ "introduced": "1.1.0",
175
+ "description": "Experimental, description needs to be amended"
176
+ },
177
+ "value": "Size100"
178
+ },
179
+ "name": "border.width.100",
180
+ "path": ["border", "width", "100"],
181
+ "cleanName": "border.width.100"
182
+ }];
183
+ export default tokens;
@@ -1,4 +1,5 @@
1
1
  export { default as light } from '../artifacts/tokens-raw/atlassian-light';
2
2
  export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
3
3
  export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
4
- export { default as typography } from '../artifacts/tokens-raw/atlassian-typography';
4
+ export { default as typography } from '../artifacts/tokens-raw/atlassian-typography';
5
+ export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
@@ -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.1.0";
4
+ var version = "1.2.1";
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.1.0";
5
+ var version = "1.2.1";
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.
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Types are inferred from the base tokens below
3
+ */
4
+
5
+ var baseSizeTokens = {
6
+ Size050: {
7
+ value: '0.0625rem',
8
+ attributes: {
9
+ group: 'shape'
10
+ }
11
+ },
12
+ Size100: {
13
+ value: '0.125rem',
14
+ attributes: {
15
+ group: 'shape'
16
+ }
17
+ }
18
+ };
19
+ var baseRadiusTokens = {
20
+ Radius050: {
21
+ value: '0.125rem',
22
+ attributes: {
23
+ group: 'shape'
24
+ }
25
+ },
26
+ Radius100: {
27
+ value: '0.25rem',
28
+ attributes: {
29
+ group: 'shape'
30
+ }
31
+ },
32
+ Radius200: {
33
+ value: '0.5rem',
34
+ attributes: {
35
+ group: 'shape'
36
+ }
37
+ },
38
+ Radius300: {
39
+ value: '0.75rem',
40
+ attributes: {
41
+ group: 'shape'
42
+ }
43
+ },
44
+ Radius400: {
45
+ value: '1rem',
46
+ attributes: {
47
+ group: 'shape'
48
+ }
49
+ },
50
+ RadiusCircle: {
51
+ value: '50%',
52
+ attributes: {
53
+ group: 'shape'
54
+ }
55
+ }
56
+ };
57
+ var shapePalette = {
58
+ border: {
59
+ radius: baseRadiusTokens,
60
+ width: baseSizeTokens
61
+ }
62
+ };
63
+ export default shapePalette;