@atlaskit/tokens 1.20.1 → 1.21.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 (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +136 -1
  3. package/dist/cjs/artifacts/themes/atlassian-spacing.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +10 -1
  5. package/dist/cjs/artifacts/token-names.js +10 -1
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  7. package/dist/cjs/babel-plugin/plugin.js +15 -1
  8. package/dist/cjs/get-token-value.js +1 -1
  9. package/dist/cjs/get-token.js +1 -1
  10. package/dist/cjs/palettes/spacing-scale.js +54 -0
  11. package/dist/cjs/tokens/atlassian-spacing/spacing.js +29 -0
  12. package/dist/cjs/tokens/default/spacing/spacing.js +83 -0
  13. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +136 -1
  14. package/dist/es2019/artifacts/themes/atlassian-spacing.js +10 -1
  15. package/dist/es2019/artifacts/token-default-values.js +10 -1
  16. package/dist/es2019/artifacts/token-names.js +10 -1
  17. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  18. package/dist/es2019/babel-plugin/plugin.js +15 -1
  19. package/dist/es2019/get-token-value.js +1 -1
  20. package/dist/es2019/get-token.js +1 -1
  21. package/dist/es2019/palettes/spacing-scale.js +54 -0
  22. package/dist/es2019/tokens/atlassian-spacing/spacing.js +29 -0
  23. package/dist/es2019/tokens/default/spacing/spacing.js +83 -0
  24. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +136 -1
  25. package/dist/esm/artifacts/themes/atlassian-spacing.js +2 -2
  26. package/dist/esm/artifacts/token-default-values.js +10 -1
  27. package/dist/esm/artifacts/token-names.js +10 -1
  28. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  29. package/dist/esm/babel-plugin/plugin.js +15 -1
  30. package/dist/esm/get-token-value.js +1 -1
  31. package/dist/esm/get-token.js +1 -1
  32. package/dist/esm/palettes/spacing-scale.js +54 -0
  33. package/dist/esm/tokens/atlassian-spacing/spacing.js +29 -0
  34. package/dist/esm/tokens/default/spacing/spacing.js +83 -0
  35. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  36. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +2 -2
  37. package/dist/types/artifacts/token-default-values.d.ts +10 -1
  38. package/dist/types/artifacts/token-names.d.ts +19 -1
  39. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
  40. package/dist/types/artifacts/types-internal.d.ts +2 -2
  41. package/dist/types/artifacts/types.d.ts +2 -2
  42. package/dist/types/palettes/spacing-scale.d.ts +54 -0
  43. package/dist/types/types.d.ts +11 -0
  44. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  45. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +2 -2
  46. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +10 -1
  47. package/dist/types-ts4.5/artifacts/token-names.d.ts +19 -1
  48. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
  49. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  50. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  51. package/dist/types-ts4.5/palettes/spacing-scale.d.ts +54 -0
  52. package/dist/types-ts4.5/types.d.ts +11 -0
  53. package/figma/atlassian-spacing.json +131 -0
  54. package/package.json +1 -1
  55. package/report.api.md +90 -0
  56. package/tmp/api-report-tmp.d.ts +74 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`12c0a5a6f2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12c0a5a6f2e) - The tokens Babel plugin will now add opacity to shadow token values if they don't already contain them.
8
+
9
+ ## 1.21.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`9eee297c402`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9eee297c402) - Added negative space tokens from -2px to -32px (space.negative.025 to space.negative.400).
14
+
3
15
  ## 1.20.1
4
16
 
5
17
  ### Patch Changes
@@ -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::4cad6a8b4b676f9379fa2d4fca019b0e>>
9
+ * @codegen <<SignedSource::f1c7eb6fca38275b61cb71127efc2f1a>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = [{
@@ -219,6 +219,141 @@ var tokens = [{
219
219
  },
220
220
  "name": "space.Space800",
221
221
  "path": ["space", "Space800"]
222
+ }, {
223
+ "value": "-2px",
224
+ "attributes": {
225
+ "group": "spacing"
226
+ },
227
+ "filePath": "src/palettes/spacing-scale.tsx",
228
+ "isSource": true,
229
+ "original": {
230
+ "value": -2,
231
+ "attributes": {
232
+ "group": "spacing"
233
+ }
234
+ },
235
+ "name": "space.SpaceNegative025",
236
+ "path": ["space", "SpaceNegative025"]
237
+ }, {
238
+ "value": "-4px",
239
+ "attributes": {
240
+ "group": "spacing"
241
+ },
242
+ "filePath": "src/palettes/spacing-scale.tsx",
243
+ "isSource": true,
244
+ "original": {
245
+ "value": -4,
246
+ "attributes": {
247
+ "group": "spacing"
248
+ }
249
+ },
250
+ "name": "space.SpaceNegative050",
251
+ "path": ["space", "SpaceNegative050"]
252
+ }, {
253
+ "value": "-6px",
254
+ "attributes": {
255
+ "group": "spacing"
256
+ },
257
+ "filePath": "src/palettes/spacing-scale.tsx",
258
+ "isSource": true,
259
+ "original": {
260
+ "value": -6,
261
+ "attributes": {
262
+ "group": "spacing"
263
+ }
264
+ },
265
+ "name": "space.SpaceNegative075",
266
+ "path": ["space", "SpaceNegative075"]
267
+ }, {
268
+ "value": "-8px",
269
+ "attributes": {
270
+ "group": "spacing"
271
+ },
272
+ "filePath": "src/palettes/spacing-scale.tsx",
273
+ "isSource": true,
274
+ "original": {
275
+ "value": -8,
276
+ "attributes": {
277
+ "group": "spacing"
278
+ }
279
+ },
280
+ "name": "space.SpaceNegative100",
281
+ "path": ["space", "SpaceNegative100"]
282
+ }, {
283
+ "value": "-12px",
284
+ "attributes": {
285
+ "group": "spacing"
286
+ },
287
+ "filePath": "src/palettes/spacing-scale.tsx",
288
+ "isSource": true,
289
+ "original": {
290
+ "value": -12,
291
+ "attributes": {
292
+ "group": "spacing"
293
+ }
294
+ },
295
+ "name": "space.SpaceNegative150",
296
+ "path": ["space", "SpaceNegative150"]
297
+ }, {
298
+ "value": "-16px",
299
+ "attributes": {
300
+ "group": "spacing"
301
+ },
302
+ "filePath": "src/palettes/spacing-scale.tsx",
303
+ "isSource": true,
304
+ "original": {
305
+ "value": -16,
306
+ "attributes": {
307
+ "group": "spacing"
308
+ }
309
+ },
310
+ "name": "space.SpaceNegative200",
311
+ "path": ["space", "SpaceNegative200"]
312
+ }, {
313
+ "value": "-20px",
314
+ "attributes": {
315
+ "group": "spacing"
316
+ },
317
+ "filePath": "src/palettes/spacing-scale.tsx",
318
+ "isSource": true,
319
+ "original": {
320
+ "value": -20,
321
+ "attributes": {
322
+ "group": "spacing"
323
+ }
324
+ },
325
+ "name": "space.SpaceNegative250",
326
+ "path": ["space", "SpaceNegative250"]
327
+ }, {
328
+ "value": "-24px",
329
+ "attributes": {
330
+ "group": "spacing"
331
+ },
332
+ "filePath": "src/palettes/spacing-scale.tsx",
333
+ "isSource": true,
334
+ "original": {
335
+ "value": -24,
336
+ "attributes": {
337
+ "group": "spacing"
338
+ }
339
+ },
340
+ "name": "space.SpaceNegative300",
341
+ "path": ["space", "SpaceNegative300"]
342
+ }, {
343
+ "value": "-32px",
344
+ "attributes": {
345
+ "group": "spacing"
346
+ },
347
+ "filePath": "src/palettes/spacing-scale.tsx",
348
+ "isSource": true,
349
+ "original": {
350
+ "value": -32,
351
+ "attributes": {
352
+ "group": "spacing"
353
+ }
354
+ },
355
+ "name": "space.SpaceNegative400",
356
+ "path": ["space", "SpaceNegative400"]
222
357
  }];
223
358
  var _default = tokens;
224
359
  exports.default = _default;
@@ -6,8 +6,8 @@ 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::36f0214aaedb62d3639cb79a9195eaf6>>
9
+ * @codegen <<SignedSource::50b812651f792cc85f9294bc1f28b366>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
- var _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";
12
+ var _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 --ds-space-negative-025: -0.125rem;\n --ds-space-negative-050: -0.25rem;\n --ds-space-negative-075: -0.375rem;\n --ds-space-negative-100: -0.5rem;\n --ds-space-negative-150: -0.75rem;\n --ds-space-negative-200: -1rem;\n --ds-space-negative-250: -1.25rem;\n --ds-space-negative-300: -1.5rem;\n --ds-space-negative-400: -2rem;\n}\n";
13
13
  exports.default = _default;
@@ -13,7 +13,7 @@ exports.default = void 0;
13
13
  * Token names mapped to their value in the default Atlassian themes ('light').
14
14
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
15
15
  *
16
- * @codegen <<SignedSource::b5c908d96d2198b69df03d013b3c2b6a>>
16
+ * @codegen <<SignedSource::89d57f1ac024661bf2b7ee3c1e74dfa9>>
17
17
  * @codegenCommand yarn build tokens
18
18
  */
19
19
  var defaultTokenValues = {
@@ -429,6 +429,15 @@ var defaultTokenValues = {
429
429
  'space.600': '3rem',
430
430
  'space.800': '4rem',
431
431
  'space.1000': '5rem',
432
+ 'space.negative.025': '-0.125rem',
433
+ 'space.negative.050': '-0.25rem',
434
+ 'space.negative.075': '-0.375rem',
435
+ 'space.negative.100': '-0.5rem',
436
+ 'space.negative.150': '-0.75rem',
437
+ 'space.negative.200': '-1rem',
438
+ 'space.negative.250': '-1.25rem',
439
+ 'space.negative.300': '-1.5rem',
440
+ 'space.negative.400': '-2rem',
432
441
  'font.body': 'normal 400 0.875rem/1.25rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
433
442
  'font.body.lg': 'normal 400 1rem/1.5rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
434
443
  'font.body.sm': 'normal 400 0.6875rem/1.25rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
@@ -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::5688852b9c5bb12cbce375967cb93ef5>>
9
+ * @codegen <<SignedSource::487e60f0791ae39572ec7cc90e77eb13>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = {
@@ -422,6 +422,15 @@ var tokens = {
422
422
  'space.600': '--ds-space-600',
423
423
  'space.800': '--ds-space-800',
424
424
  'space.1000': '--ds-space-1000',
425
+ 'space.negative.025': '--ds-space-negative-025',
426
+ 'space.negative.050': '--ds-space-negative-050',
427
+ 'space.negative.075': '--ds-space-negative-075',
428
+ 'space.negative.100': '--ds-space-negative-100',
429
+ 'space.negative.150': '--ds-space-negative-150',
430
+ 'space.negative.200': '--ds-space-negative-200',
431
+ 'space.negative.250': '--ds-space-negative-250',
432
+ 'space.negative.300': '--ds-space-negative-300',
433
+ 'space.negative.400': '--ds-space-negative-400',
425
434
  'font.body': '--ds-font-body',
426
435
  'font.body.lg': '--ds-font-body-lg',
427
436
  'font.body.sm': '--ds-font-body-sm',
@@ -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::93b85a1d24e82271f0bc792e089efef5>>
9
+ * @codegen <<SignedSource::54cdec07bc1ce255f26b8254ca514b76>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = [{
@@ -335,6 +335,222 @@ var tokens = [{
335
335
  "name": "space.1000",
336
336
  "path": ["space", "1000"],
337
337
  "cleanName": "space.1000"
338
+ }, {
339
+ "attributes": {
340
+ "group": "spacing",
341
+ "state": "active",
342
+ "suggest": ["-1px", "-3px"],
343
+ "introduced": "1.21.0",
344
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
345
+ },
346
+ "value": "-2px",
347
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
348
+ "isSource": true,
349
+ "original": {
350
+ "attributes": {
351
+ "group": "spacing",
352
+ "state": "active",
353
+ "suggest": ["-1px", "-3px"],
354
+ "introduced": "1.21.0",
355
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
356
+ },
357
+ "value": "SpaceNegative025"
358
+ },
359
+ "name": "space.negative.025",
360
+ "path": ["space", "negative", "025"],
361
+ "cleanName": "space.negative.025"
362
+ }, {
363
+ "attributes": {
364
+ "group": "spacing",
365
+ "state": "active",
366
+ "suggest": ["-3px", "-5px"],
367
+ "introduced": "1.21.0",
368
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
369
+ },
370
+ "value": "-4px",
371
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
372
+ "isSource": true,
373
+ "original": {
374
+ "attributes": {
375
+ "group": "spacing",
376
+ "state": "active",
377
+ "suggest": ["-3px", "-5px"],
378
+ "introduced": "1.21.0",
379
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
380
+ },
381
+ "value": "SpaceNegative050"
382
+ },
383
+ "name": "space.negative.050",
384
+ "path": ["space", "negative", "050"],
385
+ "cleanName": "space.negative.050"
386
+ }, {
387
+ "attributes": {
388
+ "group": "spacing",
389
+ "state": "active",
390
+ "suggest": ["-5px", "-7px"],
391
+ "introduced": "1.21.0",
392
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
393
+ },
394
+ "value": "-6px",
395
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
396
+ "isSource": true,
397
+ "original": {
398
+ "attributes": {
399
+ "group": "spacing",
400
+ "state": "active",
401
+ "suggest": ["-5px", "-7px"],
402
+ "introduced": "1.21.0",
403
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
404
+ },
405
+ "value": "SpaceNegative075"
406
+ },
407
+ "name": "space.negative.075",
408
+ "path": ["space", "negative", "075"],
409
+ "cleanName": "space.negative.075"
410
+ }, {
411
+ "attributes": {
412
+ "group": "spacing",
413
+ "state": "active",
414
+ "suggest": ["-7px", "-9px"],
415
+ "introduced": "1.21.0",
416
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
417
+ },
418
+ "value": "-8px",
419
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
420
+ "isSource": true,
421
+ "original": {
422
+ "attributes": {
423
+ "group": "spacing",
424
+ "state": "active",
425
+ "suggest": ["-7px", "-9px"],
426
+ "introduced": "1.21.0",
427
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
428
+ },
429
+ "value": "SpaceNegative100"
430
+ },
431
+ "name": "space.negative.100",
432
+ "path": ["space", "negative", "100"],
433
+ "cleanName": "space.negative.100"
434
+ }, {
435
+ "attributes": {
436
+ "group": "spacing",
437
+ "state": "active",
438
+ "suggest": ["-10px", "-11px", "-13px", "-14px"],
439
+ "introduced": "1.21.0",
440
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
441
+ },
442
+ "value": "-12px",
443
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
444
+ "isSource": true,
445
+ "original": {
446
+ "attributes": {
447
+ "group": "spacing",
448
+ "state": "active",
449
+ "suggest": ["-10px", "-11px", "-13px", "-14px"],
450
+ "introduced": "1.21.0",
451
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
452
+ },
453
+ "value": "SpaceNegative150"
454
+ },
455
+ "name": "space.negative.150",
456
+ "path": ["space", "negative", "150"],
457
+ "cleanName": "space.negative.150"
458
+ }, {
459
+ "attributes": {
460
+ "group": "spacing",
461
+ "state": "active",
462
+ "suggest": ["-14px", "-15px", "-17px", "-18px"],
463
+ "introduced": "1.21.0",
464
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
465
+ },
466
+ "value": "-16px",
467
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
468
+ "isSource": true,
469
+ "original": {
470
+ "attributes": {
471
+ "group": "spacing",
472
+ "state": "active",
473
+ "suggest": ["-14px", "-15px", "-17px", "-18px"],
474
+ "introduced": "1.21.0",
475
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
476
+ },
477
+ "value": "SpaceNegative200"
478
+ },
479
+ "name": "space.negative.200",
480
+ "path": ["space", "negative", "200"],
481
+ "cleanName": "space.negative.200"
482
+ }, {
483
+ "attributes": {
484
+ "group": "spacing",
485
+ "state": "active",
486
+ "suggest": ["-19px", "-21px", "-22px", "-23px"],
487
+ "introduced": "1.21.0",
488
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
489
+ },
490
+ "value": "-20px",
491
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
492
+ "isSource": true,
493
+ "original": {
494
+ "attributes": {
495
+ "group": "spacing",
496
+ "state": "active",
497
+ "suggest": ["-19px", "-21px", "-22px", "-23px"],
498
+ "introduced": "1.21.0",
499
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
500
+ },
501
+ "value": "SpaceNegative250"
502
+ },
503
+ "name": "space.negative.250",
504
+ "path": ["space", "negative", "250"],
505
+ "cleanName": "space.negative.250"
506
+ }, {
507
+ "attributes": {
508
+ "group": "spacing",
509
+ "state": "active",
510
+ "suggest": ["-23px", "-25px", "-26px", "-27px", "-28px"],
511
+ "introduced": "1.21.0",
512
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
513
+ },
514
+ "value": "-24px",
515
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
516
+ "isSource": true,
517
+ "original": {
518
+ "attributes": {
519
+ "group": "spacing",
520
+ "state": "active",
521
+ "suggest": ["-23px", "-25px", "-26px", "-27px", "-28px"],
522
+ "introduced": "1.21.0",
523
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
524
+ },
525
+ "value": "SpaceNegative300"
526
+ },
527
+ "name": "space.negative.300",
528
+ "path": ["space", "negative", "300"],
529
+ "cleanName": "space.negative.300"
530
+ }, {
531
+ "attributes": {
532
+ "group": "spacing",
533
+ "state": "active",
534
+ "suggest": ["-28px", "-29px", "-30px", "-31px", "-33px", "-34px", "-35px"],
535
+ "introduced": "1.21.0",
536
+ "description": "Use to negate parent whitespace or overlap the largest pieces of UI."
537
+ },
538
+ "value": "-32px",
539
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
540
+ "isSource": true,
541
+ "original": {
542
+ "attributes": {
543
+ "group": "spacing",
544
+ "state": "active",
545
+ "suggest": ["-28px", "-29px", "-30px", "-31px", "-33px", "-34px", "-35px"],
546
+ "introduced": "1.21.0",
547
+ "description": "Use to negate parent whitespace or overlap the largest pieces of UI."
548
+ },
549
+ "value": "SpaceNegative400"
550
+ },
551
+ "name": "space.negative.400",
552
+ "path": ["space", "negative", "400"],
553
+ "cleanName": "space.negative.400"
338
554
  }];
339
555
  var _default = tokens;
340
556
  exports.default = _default;
@@ -28,7 +28,21 @@ var getThemeValues = function getThemeValues(theme) {
28
28
  // If it's a box shadow, it'll be an array of values that needs to be
29
29
  // formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
30
30
  value = rawToken.value.reduce(function (prev, curr, index) {
31
- var value = "".concat(curr.offset.x, "px ").concat(curr.offset.y, "px ").concat(curr.radius, "px ").concat(curr.color);
31
+ var color = curr.color;
32
+
33
+ // Opacity needs to be added to hex values that don't already contain it.
34
+ // If it contained opacity, the length would be 9 instead of 7.
35
+ if (color.length === 7 && curr.opacity) {
36
+ var opacityAsHex = curr.opacity.toString(16); // 0.4f5c28f5c28f5c
37
+ var shortenedHex = opacityAsHex.slice(2, 4); // 4f
38
+
39
+ // The hex value has to have a length of 2. If it's shorter, a "0" needs to be added.
40
+ if (shortenedHex.length === 1) {
41
+ shortenedHex += '0';
42
+ }
43
+ color += shortenedHex;
44
+ }
45
+ var value = "".concat(curr.offset.x, "px ").concat(curr.offset.y, "px ").concat(curr.radius, "px ").concat(color);
32
46
  if (index === 0) {
33
47
  value += ", ";
34
48
  }
@@ -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.20.1";
11
+ var version = "1.21.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.
@@ -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.20.1";
12
+ var version = "1.21.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.
@@ -92,6 +92,60 @@ var baseSpacingTokens = {
92
92
  attributes: {
93
93
  group: 'spacing'
94
94
  }
95
+ },
96
+ SpaceNegative025: {
97
+ value: -2,
98
+ attributes: {
99
+ group: 'spacing'
100
+ }
101
+ },
102
+ SpaceNegative050: {
103
+ value: -4,
104
+ attributes: {
105
+ group: 'spacing'
106
+ }
107
+ },
108
+ SpaceNegative075: {
109
+ value: -6,
110
+ attributes: {
111
+ group: 'spacing'
112
+ }
113
+ },
114
+ SpaceNegative100: {
115
+ value: -8,
116
+ attributes: {
117
+ group: 'spacing'
118
+ }
119
+ },
120
+ SpaceNegative150: {
121
+ value: -12,
122
+ attributes: {
123
+ group: 'spacing'
124
+ }
125
+ },
126
+ SpaceNegative200: {
127
+ value: -16,
128
+ attributes: {
129
+ group: 'spacing'
130
+ }
131
+ },
132
+ SpaceNegative250: {
133
+ value: -20,
134
+ attributes: {
135
+ group: 'spacing'
136
+ }
137
+ },
138
+ SpaceNegative300: {
139
+ value: -24,
140
+ attributes: {
141
+ group: 'spacing'
142
+ }
143
+ },
144
+ SpaceNegative400: {
145
+ value: -32,
146
+ attributes: {
147
+ group: 'spacing'
148
+ }
95
149
  }
96
150
  };
97
151
  var spacingPalette = {
@@ -54,6 +54,35 @@ var spacing = {
54
54
  },
55
55
  '1000': {
56
56
  value: 'Space1000'
57
+ },
58
+ negative: {
59
+ '025': {
60
+ value: 'SpaceNegative025'
61
+ },
62
+ '050': {
63
+ value: 'SpaceNegative050'
64
+ },
65
+ '075': {
66
+ value: 'SpaceNegative075'
67
+ },
68
+ '100': {
69
+ value: 'SpaceNegative100'
70
+ },
71
+ '150': {
72
+ value: 'SpaceNegative150'
73
+ },
74
+ '200': {
75
+ value: 'SpaceNegative200'
76
+ },
77
+ '250': {
78
+ value: 'SpaceNegative250'
79
+ },
80
+ '300': {
81
+ value: 'SpaceNegative300'
82
+ },
83
+ '400': {
84
+ value: 'SpaceNegative400'
85
+ }
57
86
  }
58
87
  }
59
88
  };