@atlaskit/tokens 6.5.0 → 7.0.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.
- package/CHANGELOG.md +23 -40
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +1 -31
- package/dist/cjs/artifacts/replacement-mapping.js +2 -32
- package/dist/cjs/artifacts/theme-import-map.js +1 -13
- package/dist/cjs/artifacts/themes/atlassian-shape-rounder.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-shape-roundest.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +1 -11
- package/dist/cjs/artifacts/token-names.js +1 -11
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +1 -241
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +1 -241
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +1 -241
- package/dist/cjs/babel-plugin/plugin.js +2 -2
- package/dist/cjs/entry-points/token-metadata.codegen.js +1 -51
- package/dist/cjs/theme-config.js +1 -17
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +1 -31
- package/dist/es2019/artifacts/replacement-mapping.js +2 -32
- package/dist/es2019/artifacts/theme-import-map.js +1 -5
- package/dist/es2019/artifacts/themes/atlassian-shape-rounder.js +1 -11
- package/dist/es2019/artifacts/themes/atlassian-shape-roundest.js +1 -11
- package/dist/es2019/artifacts/themes/atlassian-shape.js +1 -11
- package/dist/es2019/artifacts/token-default-values.js +1 -11
- package/dist/es2019/artifacts/token-names.js +1 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +1 -241
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +1 -241
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +1 -241
- package/dist/es2019/babel-plugin/plugin.js +2 -2
- package/dist/es2019/entry-points/token-metadata.codegen.js +1 -51
- package/dist/es2019/theme-config.js +1 -17
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +1 -31
- package/dist/esm/artifacts/replacement-mapping.js +2 -32
- package/dist/esm/artifacts/theme-import-map.js +1 -9
- package/dist/esm/artifacts/themes/atlassian-shape-rounder.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-shape-roundest.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-shape.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +1 -11
- package/dist/esm/artifacts/token-names.js +1 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +1 -241
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +1 -241
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +1 -241
- package/dist/esm/babel-plugin/plugin.js +2 -2
- package/dist/esm/entry-points/token-metadata.codegen.js +1 -51
- package/dist/esm/theme-config.js +1 -17
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-shape-rounder.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-shape-roundest.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +1 -11
- package/dist/types/artifacts/token-names.d.ts +1 -21
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/types.d.ts +0 -12
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-rounder.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-roundest.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +1 -11
- package/dist/types-ts4.5/artifacts/token-names.d.ts +1 -21
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/theme-config.d.ts +2 -6
- package/dist/types-ts4.5/types.d.ts +0 -12
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ 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::884d9496e85b87859f0c8ef41167280b>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -176,174 +176,6 @@ var tokens = [{
|
|
|
176
176
|
"name": "radius.tile",
|
|
177
177
|
"path": ["radius", "tile"],
|
|
178
178
|
"cleanName": "radius.tile"
|
|
179
|
-
}, {
|
|
180
|
-
"attributes": {
|
|
181
|
-
"group": "shape",
|
|
182
|
-
"state": "deprecated",
|
|
183
|
-
"introduced": "1.5.2",
|
|
184
|
-
"deprecated": "6.1.0",
|
|
185
|
-
"description": "The default border radius."
|
|
186
|
-
},
|
|
187
|
-
"value": "4px",
|
|
188
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
189
|
-
"isSource": true,
|
|
190
|
-
"original": {
|
|
191
|
-
"attributes": {
|
|
192
|
-
"group": "shape",
|
|
193
|
-
"state": "deprecated",
|
|
194
|
-
"introduced": "1.5.2",
|
|
195
|
-
"deprecated": "6.1.0",
|
|
196
|
-
"description": "The default border radius."
|
|
197
|
-
},
|
|
198
|
-
"value": "Radius04"
|
|
199
|
-
},
|
|
200
|
-
"name": "border.radius.[default]",
|
|
201
|
-
"path": ["border", "radius", "[default]"],
|
|
202
|
-
"cleanName": "border.radius"
|
|
203
|
-
}, {
|
|
204
|
-
"attributes": {
|
|
205
|
-
"group": "shape",
|
|
206
|
-
"state": "deprecated",
|
|
207
|
-
"introduced": "1.1.0",
|
|
208
|
-
"deprecated": "6.1.0",
|
|
209
|
-
"description": "Used for selection indicators, like tabs."
|
|
210
|
-
},
|
|
211
|
-
"value": "2px",
|
|
212
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
213
|
-
"isSource": true,
|
|
214
|
-
"original": {
|
|
215
|
-
"attributes": {
|
|
216
|
-
"group": "shape",
|
|
217
|
-
"state": "deprecated",
|
|
218
|
-
"introduced": "1.1.0",
|
|
219
|
-
"deprecated": "6.1.0",
|
|
220
|
-
"description": "Used for selection indicators, like tabs."
|
|
221
|
-
},
|
|
222
|
-
"value": "Radius02"
|
|
223
|
-
},
|
|
224
|
-
"name": "border.radius.050",
|
|
225
|
-
"path": ["border", "radius", "050"],
|
|
226
|
-
"cleanName": "border.radius.050"
|
|
227
|
-
}, {
|
|
228
|
-
"attributes": {
|
|
229
|
-
"group": "shape",
|
|
230
|
-
"state": "deprecated",
|
|
231
|
-
"introduced": "1.1.0",
|
|
232
|
-
"deprecated": "6.1.0",
|
|
233
|
-
"description": "Used for buttons and inputs."
|
|
234
|
-
},
|
|
235
|
-
"value": "4px",
|
|
236
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
237
|
-
"isSource": true,
|
|
238
|
-
"original": {
|
|
239
|
-
"attributes": {
|
|
240
|
-
"group": "shape",
|
|
241
|
-
"state": "deprecated",
|
|
242
|
-
"introduced": "1.1.0",
|
|
243
|
-
"deprecated": "6.1.0",
|
|
244
|
-
"description": "Used for buttons and inputs."
|
|
245
|
-
},
|
|
246
|
-
"value": "Radius04"
|
|
247
|
-
},
|
|
248
|
-
"name": "border.radius.100",
|
|
249
|
-
"path": ["border", "radius", "100"],
|
|
250
|
-
"cleanName": "border.radius.100"
|
|
251
|
-
}, {
|
|
252
|
-
"attributes": {
|
|
253
|
-
"group": "shape",
|
|
254
|
-
"state": "deprecated",
|
|
255
|
-
"introduced": "1.1.0",
|
|
256
|
-
"deprecated": "6.1.0",
|
|
257
|
-
"description": "Used for smaller cards."
|
|
258
|
-
},
|
|
259
|
-
"value": "8px",
|
|
260
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
261
|
-
"isSource": true,
|
|
262
|
-
"original": {
|
|
263
|
-
"attributes": {
|
|
264
|
-
"group": "shape",
|
|
265
|
-
"state": "deprecated",
|
|
266
|
-
"introduced": "1.1.0",
|
|
267
|
-
"deprecated": "6.1.0",
|
|
268
|
-
"description": "Used for smaller cards."
|
|
269
|
-
},
|
|
270
|
-
"value": "Radius08"
|
|
271
|
-
},
|
|
272
|
-
"name": "border.radius.200",
|
|
273
|
-
"path": ["border", "radius", "200"],
|
|
274
|
-
"cleanName": "border.radius.200"
|
|
275
|
-
}, {
|
|
276
|
-
"attributes": {
|
|
277
|
-
"group": "shape",
|
|
278
|
-
"state": "deprecated",
|
|
279
|
-
"introduced": "1.1.0",
|
|
280
|
-
"deprecated": "6.1.0",
|
|
281
|
-
"description": "Used for cards and larger containers."
|
|
282
|
-
},
|
|
283
|
-
"value": "12px",
|
|
284
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
285
|
-
"isSource": true,
|
|
286
|
-
"original": {
|
|
287
|
-
"attributes": {
|
|
288
|
-
"group": "shape",
|
|
289
|
-
"state": "deprecated",
|
|
290
|
-
"introduced": "1.1.0",
|
|
291
|
-
"deprecated": "6.1.0",
|
|
292
|
-
"description": "Used for cards and larger containers."
|
|
293
|
-
},
|
|
294
|
-
"value": "Radius12"
|
|
295
|
-
},
|
|
296
|
-
"name": "border.radius.300",
|
|
297
|
-
"path": ["border", "radius", "300"],
|
|
298
|
-
"cleanName": "border.radius.300"
|
|
299
|
-
}, {
|
|
300
|
-
"attributes": {
|
|
301
|
-
"group": "shape",
|
|
302
|
-
"state": "deprecated",
|
|
303
|
-
"introduced": "1.1.0",
|
|
304
|
-
"deprecated": "6.1.0",
|
|
305
|
-
"description": "Used for modals."
|
|
306
|
-
},
|
|
307
|
-
"value": "16px",
|
|
308
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
309
|
-
"isSource": true,
|
|
310
|
-
"original": {
|
|
311
|
-
"attributes": {
|
|
312
|
-
"group": "shape",
|
|
313
|
-
"state": "deprecated",
|
|
314
|
-
"introduced": "1.1.0",
|
|
315
|
-
"deprecated": "6.1.0",
|
|
316
|
-
"description": "Used for modals."
|
|
317
|
-
},
|
|
318
|
-
"value": "Radius16"
|
|
319
|
-
},
|
|
320
|
-
"name": "border.radius.400",
|
|
321
|
-
"path": ["border", "radius", "400"],
|
|
322
|
-
"cleanName": "border.radius.400"
|
|
323
|
-
}, {
|
|
324
|
-
"attributes": {
|
|
325
|
-
"group": "shape",
|
|
326
|
-
"state": "deprecated",
|
|
327
|
-
"introduced": "1.1.0",
|
|
328
|
-
"deprecated": "6.1.0",
|
|
329
|
-
"description": "Used for circular containers, like a rounded button."
|
|
330
|
-
},
|
|
331
|
-
"value": "9999px",
|
|
332
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
333
|
-
"isSource": true,
|
|
334
|
-
"original": {
|
|
335
|
-
"attributes": {
|
|
336
|
-
"group": "shape",
|
|
337
|
-
"state": "deprecated",
|
|
338
|
-
"introduced": "1.1.0",
|
|
339
|
-
"deprecated": "6.1.0",
|
|
340
|
-
"description": "Used for circular containers, like a rounded button."
|
|
341
|
-
},
|
|
342
|
-
"value": "Radius99"
|
|
343
|
-
},
|
|
344
|
-
"name": "border.radius.circle",
|
|
345
|
-
"path": ["border", "radius", "circle"],
|
|
346
|
-
"cleanName": "border.radius.circle"
|
|
347
179
|
}, {
|
|
348
180
|
"attributes": {
|
|
349
181
|
"group": "shape",
|
|
@@ -368,78 +200,6 @@ var tokens = [{
|
|
|
368
200
|
"name": "border.width.[default]",
|
|
369
201
|
"path": ["border", "width", "[default]"],
|
|
370
202
|
"cleanName": "border.width"
|
|
371
|
-
}, {
|
|
372
|
-
"attributes": {
|
|
373
|
-
"group": "shape",
|
|
374
|
-
"state": "deprecated",
|
|
375
|
-
"introduced": "1.2.1",
|
|
376
|
-
"deprecated": "6.1.0",
|
|
377
|
-
"description": "Used for zero width borders."
|
|
378
|
-
},
|
|
379
|
-
"value": "0px",
|
|
380
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
381
|
-
"isSource": true,
|
|
382
|
-
"original": {
|
|
383
|
-
"attributes": {
|
|
384
|
-
"group": "shape",
|
|
385
|
-
"state": "deprecated",
|
|
386
|
-
"introduced": "1.2.1",
|
|
387
|
-
"deprecated": "6.1.0",
|
|
388
|
-
"description": "Used for zero width borders."
|
|
389
|
-
},
|
|
390
|
-
"value": "Size0"
|
|
391
|
-
},
|
|
392
|
-
"name": "border.width.0",
|
|
393
|
-
"path": ["border", "width", "0"],
|
|
394
|
-
"cleanName": "border.width.0"
|
|
395
|
-
}, {
|
|
396
|
-
"attributes": {
|
|
397
|
-
"group": "shape",
|
|
398
|
-
"state": "deprecated",
|
|
399
|
-
"introduced": "1.5.2",
|
|
400
|
-
"deprecated": "6.1.0",
|
|
401
|
-
"description": "Used for indicators like tab and menu selected states."
|
|
402
|
-
},
|
|
403
|
-
"value": "3px",
|
|
404
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
405
|
-
"isSource": true,
|
|
406
|
-
"original": {
|
|
407
|
-
"attributes": {
|
|
408
|
-
"group": "shape",
|
|
409
|
-
"state": "deprecated",
|
|
410
|
-
"introduced": "1.5.2",
|
|
411
|
-
"deprecated": "6.1.0",
|
|
412
|
-
"description": "Used for indicators like tab and menu selected states."
|
|
413
|
-
},
|
|
414
|
-
"value": "Size200"
|
|
415
|
-
},
|
|
416
|
-
"name": "border.width.indicator",
|
|
417
|
-
"path": ["border", "width", "indicator"],
|
|
418
|
-
"cleanName": "border.width.indicator"
|
|
419
|
-
}, {
|
|
420
|
-
"attributes": {
|
|
421
|
-
"group": "shape",
|
|
422
|
-
"state": "deprecated",
|
|
423
|
-
"introduced": "1.5.2",
|
|
424
|
-
"deprecated": "6.1.0",
|
|
425
|
-
"description": "Used for focus, active or selected inputs."
|
|
426
|
-
},
|
|
427
|
-
"value": "2px",
|
|
428
|
-
"filePath": "schema/themes/atlassian-shape/shape.tsx",
|
|
429
|
-
"isSource": true,
|
|
430
|
-
"original": {
|
|
431
|
-
"attributes": {
|
|
432
|
-
"group": "shape",
|
|
433
|
-
"state": "deprecated",
|
|
434
|
-
"introduced": "1.5.2",
|
|
435
|
-
"deprecated": "6.1.0",
|
|
436
|
-
"description": "Used for focus, active or selected inputs."
|
|
437
|
-
},
|
|
438
|
-
"value": "BorderWidth2"
|
|
439
|
-
},
|
|
440
|
-
"name": "border.width.outline",
|
|
441
|
-
"path": ["border", "width", "outline"],
|
|
442
|
-
"cleanName": "border.width.outline"
|
|
443
203
|
}, {
|
|
444
204
|
"attributes": {
|
|
445
205
|
"group": "shape",
|
|
@@ -123,9 +123,9 @@ function plugin() {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// The
|
|
126
|
+
// The radius tokens are skipped in shouldForceAutoFallback mode because these tokens are not enabled in the live apps and enforcing default values on them will override all the fallback values that are currently being used to render the actual UI.
|
|
127
127
|
// The exempted tokens (the ones that start with any of the provided exemption prefixes) are also skipped.
|
|
128
|
-
var forceAutoFallbackExemptions = ['
|
|
128
|
+
var forceAutoFallbackExemptions = ['radius'].concat((0, _toConsumableArray2.default)(state.opts.forceAutoFallbackExemptions || []));
|
|
129
129
|
|
|
130
130
|
// Handle fallbacks
|
|
131
131
|
var fallback = state.opts.shouldForceAutoFallback !== false && !isExempted(tokenName, forceAutoFallbackExemptions) ? t.stringLiteral(getDefaultFallback(tokenName, state.opts.defaultTheme)) : path.node.arguments[1];
|
|
@@ -9,7 +9,7 @@ exports.tokens = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* Metadata for generation of of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::fc7eb246882a1c2dfeef3f7836f83459>>
|
|
13
13
|
* @codegenCommand yarn build tokens
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -2238,61 +2238,11 @@ var tokens = exports.tokens = [{
|
|
|
2238
2238
|
path: ['radius', 'tile'],
|
|
2239
2239
|
description: 'Used for tiles only.',
|
|
2240
2240
|
exampleValue: '25%'
|
|
2241
|
-
}, {
|
|
2242
|
-
name: 'border.radius',
|
|
2243
|
-
path: ['border', 'radius', '[default]'],
|
|
2244
|
-
description: 'The default border radius.',
|
|
2245
|
-
exampleValue: '0.25rem'
|
|
2246
|
-
}, {
|
|
2247
|
-
name: 'border.radius.050',
|
|
2248
|
-
path: ['border', 'radius', '050'],
|
|
2249
|
-
description: 'Used for selection indicators, like tabs.',
|
|
2250
|
-
exampleValue: '0.125rem'
|
|
2251
|
-
}, {
|
|
2252
|
-
name: 'border.radius.100',
|
|
2253
|
-
path: ['border', 'radius', '100'],
|
|
2254
|
-
description: 'Used for buttons and inputs.',
|
|
2255
|
-
exampleValue: '0.25rem'
|
|
2256
|
-
}, {
|
|
2257
|
-
name: 'border.radius.200',
|
|
2258
|
-
path: ['border', 'radius', '200'],
|
|
2259
|
-
description: 'Used for smaller cards.',
|
|
2260
|
-
exampleValue: '0.5rem'
|
|
2261
|
-
}, {
|
|
2262
|
-
name: 'border.radius.300',
|
|
2263
|
-
path: ['border', 'radius', '300'],
|
|
2264
|
-
description: 'Used for cards and larger containers.',
|
|
2265
|
-
exampleValue: '0.75rem'
|
|
2266
|
-
}, {
|
|
2267
|
-
name: 'border.radius.400',
|
|
2268
|
-
path: ['border', 'radius', '400'],
|
|
2269
|
-
description: 'Used for modals.',
|
|
2270
|
-
exampleValue: '1rem'
|
|
2271
|
-
}, {
|
|
2272
|
-
name: 'border.radius.circle',
|
|
2273
|
-
path: ['border', 'radius', 'circle'],
|
|
2274
|
-
description: 'Used for circular containers, like a rounded button.',
|
|
2275
|
-
exampleValue: '624.9375rem'
|
|
2276
2241
|
}, {
|
|
2277
2242
|
name: 'border.width',
|
|
2278
2243
|
path: ['border', 'width', '[default]'],
|
|
2279
2244
|
description: 'The default width for all standard component borders and dividers.',
|
|
2280
2245
|
exampleValue: '0.0625rem'
|
|
2281
|
-
}, {
|
|
2282
|
-
name: 'border.width.0',
|
|
2283
|
-
path: ['border', 'width', '0'],
|
|
2284
|
-
description: 'Used for zero width borders.',
|
|
2285
|
-
exampleValue: '0rem'
|
|
2286
|
-
}, {
|
|
2287
|
-
name: 'border.width.indicator',
|
|
2288
|
-
path: ['border', 'width', 'indicator'],
|
|
2289
|
-
description: 'Used for indicators like tab and menu selected states.',
|
|
2290
|
-
exampleValue: '0.1875rem'
|
|
2291
|
-
}, {
|
|
2292
|
-
name: 'border.width.outline',
|
|
2293
|
-
path: ['border', 'width', 'outline'],
|
|
2294
|
-
description: 'Used for focus, active or selected inputs.',
|
|
2295
|
-
exampleValue: '0.125rem'
|
|
2296
2246
|
}, {
|
|
2297
2247
|
name: 'border.width.selected',
|
|
2298
2248
|
path: ['border', 'width', 'selected'],
|
package/dist/cjs/theme-config.js
CHANGED
|
@@ -45,7 +45,7 @@ var themeContrastModes = ['more', 'no-preference', 'auto'];
|
|
|
45
45
|
*
|
|
46
46
|
* These ids must be kebab case
|
|
47
47
|
*/
|
|
48
|
-
var themeIds = exports.themeIds = ['light-increased-contrast', 'light', 'light-future', 'light-brand-refresh', 'dark', 'dark-future', 'dark-increased-contrast', 'dark-brand-refresh', 'legacy-light', 'legacy-dark', 'spacing', 'shape', '
|
|
48
|
+
var themeIds = exports.themeIds = ['light-increased-contrast', 'light', 'light-future', 'light-brand-refresh', 'dark', 'dark-future', 'dark-increased-contrast', 'dark-brand-refresh', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography', 'typography-adg3', 'typography-modernized', 'typography-refreshed'];
|
|
49
49
|
/**
|
|
50
50
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
51
51
|
* Theme overrides are temporary and there may not be any defined at times.
|
|
@@ -181,22 +181,6 @@ var themeConfig = {
|
|
|
181
181
|
type: 'shape'
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
'atlassian-shape-rounder': {
|
|
185
|
-
id: 'shape-rounder',
|
|
186
|
-
displayName: 'Shape (Rounder)',
|
|
187
|
-
palette: 'shapePalette',
|
|
188
|
-
attributes: {
|
|
189
|
-
type: 'shape'
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
'atlassian-shape-roundest': {
|
|
193
|
-
id: 'shape-roundest',
|
|
194
|
-
displayName: 'Shape (Roundest)',
|
|
195
|
-
palette: 'shapePalette',
|
|
196
|
-
attributes: {
|
|
197
|
-
type: 'shape'
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
184
|
'atlassian-typography-modernized': {
|
|
201
185
|
id: 'typography-modernized',
|
|
202
186
|
displayName: 'Atlassian Typography (Modernized)',
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::0573206a0674f4e86073a4ec84cad3b9>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -169,35 +169,5 @@ const tokens = [{
|
|
|
169
169
|
},
|
|
170
170
|
"name": "border.width.BorderWidth2",
|
|
171
171
|
"path": ["border", "width", "BorderWidth2"]
|
|
172
|
-
}, {
|
|
173
|
-
"value": "0px",
|
|
174
|
-
"attributes": {
|
|
175
|
-
"group": "shape"
|
|
176
|
-
},
|
|
177
|
-
"filePath": "schema/palettes/shape-palette.tsx",
|
|
178
|
-
"isSource": true,
|
|
179
|
-
"original": {
|
|
180
|
-
"value": 0,
|
|
181
|
-
"attributes": {
|
|
182
|
-
"group": "shape"
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"name": "border.width.Size0",
|
|
186
|
-
"path": ["border", "width", "Size0"]
|
|
187
|
-
}, {
|
|
188
|
-
"value": "3px",
|
|
189
|
-
"attributes": {
|
|
190
|
-
"group": "shape"
|
|
191
|
-
},
|
|
192
|
-
"filePath": "schema/palettes/shape-palette.tsx",
|
|
193
|
-
"isSource": true,
|
|
194
|
-
"original": {
|
|
195
|
-
"value": 3,
|
|
196
|
-
"attributes": {
|
|
197
|
-
"group": "shape"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"name": "border.width.Size200",
|
|
201
|
-
"path": ["border", "width", "Size200"]
|
|
202
172
|
}];
|
|
203
173
|
export default tokens;
|
|
@@ -12,39 +12,9 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::c779b40628532228cae2ec34977f1f8e>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
const replacementMapper = [
|
|
20
|
-
"path": "border.radius.[default]",
|
|
21
|
-
"state": "deprecated"
|
|
22
|
-
}, {
|
|
23
|
-
"path": "border.radius.050",
|
|
24
|
-
"state": "deprecated"
|
|
25
|
-
}, {
|
|
26
|
-
"path": "border.radius.100",
|
|
27
|
-
"state": "deprecated"
|
|
28
|
-
}, {
|
|
29
|
-
"path": "border.radius.200",
|
|
30
|
-
"state": "deprecated"
|
|
31
|
-
}, {
|
|
32
|
-
"path": "border.radius.300",
|
|
33
|
-
"state": "deprecated"
|
|
34
|
-
}, {
|
|
35
|
-
"path": "border.radius.400",
|
|
36
|
-
"state": "deprecated"
|
|
37
|
-
}, {
|
|
38
|
-
"path": "border.radius.circle",
|
|
39
|
-
"state": "deprecated"
|
|
40
|
-
}, {
|
|
41
|
-
"path": "border.width.0",
|
|
42
|
-
"state": "deprecated"
|
|
43
|
-
}, {
|
|
44
|
-
"path": "border.width.indicator",
|
|
45
|
-
"state": "deprecated"
|
|
46
|
-
}, {
|
|
47
|
-
"path": "border.width.outline",
|
|
48
|
-
"state": "deprecated"
|
|
49
|
-
}];
|
|
19
|
+
const replacementMapper = [];
|
|
50
20
|
export default replacementMapper;
|
|
@@ -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::
|
|
9
|
+
* @codegen <<SignedSource::4131829e60733a1a5e513dcc84af81de>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -35,10 +35,6 @@ const themeImportsMap = {
|
|
|
35
35
|
'./themes/atlassian-typography-adg3'),
|
|
36
36
|
'shape': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape" */
|
|
37
37
|
'./themes/atlassian-shape'),
|
|
38
|
-
'shape-rounder': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape-rounder" */
|
|
39
|
-
'./themes/atlassian-shape-rounder'),
|
|
40
|
-
'shape-roundest': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-shape-roundest" */
|
|
41
|
-
'./themes/atlassian-shape-roundest'),
|
|
42
38
|
'typography-modernized': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-modernized" */
|
|
43
39
|
'./themes/atlassian-typography-modernized'),
|
|
44
40
|
'typography-refreshed': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-refreshed" */
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::f516cab37702e8e3d5152cb55d59256b>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
@@ -12,17 +12,7 @@ html[data-theme~="shape:shape-rounder"] {
|
|
|
12
12
|
--ds-radius-xlarge: 1rem;
|
|
13
13
|
--ds-radius-full: 624.9375rem;
|
|
14
14
|
--ds-radius-tile: 25%;
|
|
15
|
-
--ds-border-radius: 0.25rem;
|
|
16
|
-
--ds-border-radius-050: 0.125rem;
|
|
17
|
-
--ds-border-radius-100: 0.25rem;
|
|
18
|
-
--ds-border-radius-200: 0.5rem;
|
|
19
|
-
--ds-border-radius-300: 0.75rem;
|
|
20
|
-
--ds-border-radius-400: 1rem;
|
|
21
|
-
--ds-border-radius-circle: 624.9375rem;
|
|
22
15
|
--ds-border-width: 0.0625rem;
|
|
23
|
-
--ds-border-width-0: 0rem;
|
|
24
|
-
--ds-border-width-indicator: 0.1875rem;
|
|
25
|
-
--ds-border-width-outline: 0.125rem;
|
|
26
16
|
--ds-border-width-selected: 0.125rem;
|
|
27
17
|
--ds-border-width-focused: 0.125rem;
|
|
28
18
|
}
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::46c9186a43917f0c2addc79cdca0c7e6>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
@@ -12,17 +12,7 @@ html[data-theme~="shape:shape-roundest"] {
|
|
|
12
12
|
--ds-radius-xlarge: 1.25rem;
|
|
13
13
|
--ds-radius-full: 624.9375rem;
|
|
14
14
|
--ds-radius-tile: 25%;
|
|
15
|
-
--ds-border-radius: 0.25rem;
|
|
16
|
-
--ds-border-radius-050: 0.125rem;
|
|
17
|
-
--ds-border-radius-100: 0.25rem;
|
|
18
|
-
--ds-border-radius-200: 0.5rem;
|
|
19
|
-
--ds-border-radius-300: 0.75rem;
|
|
20
|
-
--ds-border-radius-400: 1rem;
|
|
21
|
-
--ds-border-radius-circle: 624.9375rem;
|
|
22
15
|
--ds-border-width: 0.0625rem;
|
|
23
|
-
--ds-border-width-0: 0rem;
|
|
24
|
-
--ds-border-width-indicator: 0.1875rem;
|
|
25
|
-
--ds-border-width-outline: 0.125rem;
|
|
26
16
|
--ds-border-width-selected: 0.125rem;
|
|
27
17
|
--ds-border-width-focused: 0.125rem;
|
|
28
18
|
}
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::a1c0e74bffea67b610c867ef86037e15>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
@@ -12,17 +12,7 @@ html[data-theme~="shape:shape"] {
|
|
|
12
12
|
--ds-radius-xlarge: 0.75rem;
|
|
13
13
|
--ds-radius-full: 624.9375rem;
|
|
14
14
|
--ds-radius-tile: 25%;
|
|
15
|
-
--ds-border-radius: 0.25rem;
|
|
16
|
-
--ds-border-radius-050: 0.125rem;
|
|
17
|
-
--ds-border-radius-100: 0.25rem;
|
|
18
|
-
--ds-border-radius-200: 0.5rem;
|
|
19
|
-
--ds-border-radius-300: 0.75rem;
|
|
20
|
-
--ds-border-radius-400: 1rem;
|
|
21
|
-
--ds-border-radius-circle: 624.9375rem;
|
|
22
15
|
--ds-border-width: 0.0625rem;
|
|
23
|
-
--ds-border-width-0: 0rem;
|
|
24
|
-
--ds-border-width-indicator: 0.1875rem;
|
|
25
|
-
--ds-border-width-outline: 0.125rem;
|
|
26
16
|
--ds-border-width-selected: 0.125rem;
|
|
27
17
|
--ds-border-width-focused: 0.125rem;
|
|
28
18
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
8
8
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
9
9
|
*
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::e7abfe1ee39a9de14a95d8a23472f8e4>>
|
|
11
11
|
* @codegenCommand yarn build tokens
|
|
12
12
|
*/
|
|
13
13
|
const defaultTokenValues = {
|
|
@@ -456,17 +456,7 @@ const defaultTokenValues = {
|
|
|
456
456
|
'radius.xlarge': '0.75rem',
|
|
457
457
|
'radius.full': '624.9375rem',
|
|
458
458
|
'radius.tile': '25%',
|
|
459
|
-
'border.radius': '0.25rem',
|
|
460
|
-
'border.radius.050': '0.125rem',
|
|
461
|
-
'border.radius.100': '0.25rem',
|
|
462
|
-
'border.radius.200': '0.5rem',
|
|
463
|
-
'border.radius.300': '0.75rem',
|
|
464
|
-
'border.radius.400': '1rem',
|
|
465
|
-
'border.radius.circle': '624.9375rem',
|
|
466
459
|
'border.width': '0.0625rem',
|
|
467
|
-
'border.width.0': '0rem',
|
|
468
|
-
'border.width.indicator': '0.1875rem',
|
|
469
|
-
'border.width.outline': '0.125rem',
|
|
470
460
|
'border.width.selected': '0.125rem',
|
|
471
461
|
'border.width.focused': '0.125rem'
|
|
472
462
|
};
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::e7897709d50bd1f9582875a2a591b896>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -449,17 +449,7 @@ const tokens = {
|
|
|
449
449
|
'radius.xlarge': '--ds-radius-xlarge',
|
|
450
450
|
'radius.full': '--ds-radius-full',
|
|
451
451
|
'radius.tile': '--ds-radius-tile',
|
|
452
|
-
'border.radius': '--ds-border-radius',
|
|
453
|
-
'border.radius.050': '--ds-border-radius-050',
|
|
454
|
-
'border.radius.100': '--ds-border-radius-100',
|
|
455
|
-
'border.radius.200': '--ds-border-radius-200',
|
|
456
|
-
'border.radius.300': '--ds-border-radius-300',
|
|
457
|
-
'border.radius.400': '--ds-border-radius-400',
|
|
458
|
-
'border.radius.circle': '--ds-border-radius-circle',
|
|
459
452
|
'border.width': '--ds-border-width',
|
|
460
|
-
'border.width.0': '--ds-border-width-0',
|
|
461
|
-
'border.width.indicator': '--ds-border-width-indicator',
|
|
462
|
-
'border.width.outline': '--ds-border-width-outline',
|
|
463
453
|
'border.width.selected': '--ds-border-width-selected',
|
|
464
454
|
'border.width.focused': '--ds-border-width-focused'
|
|
465
455
|
};
|