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