@atlaskit/tokens 0.4.2 → 0.6.2

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 (179) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/css/atlassian-dark.css +203 -67
  3. package/css/atlassian-light.css +203 -67
  4. package/dist/cjs/artifacts/rename-mapping.js +326 -2
  5. package/dist/cjs/artifacts/token-default-values.js +203 -67
  6. package/dist/cjs/artifacts/token-names.js +203 -67
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +3426 -616
  9. package/dist/cjs/artifacts/types-internal.js +5 -0
  10. package/dist/cjs/get-token.js +10 -3
  11. package/dist/cjs/tokens/atlassian-dark/color/accent.js +150 -39
  12. package/dist/cjs/tokens/atlassian-dark/color/background.js +189 -152
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +29 -2
  14. package/dist/cjs/tokens/atlassian-dark/color/icon.js +52 -0
  15. package/dist/cjs/tokens/atlassian-dark/color/interaction.js +32 -0
  16. package/dist/cjs/tokens/atlassian-dark/color/text.js +27 -22
  17. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +351 -0
  18. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +66 -0
  19. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +26 -0
  20. package/dist/cjs/tokens/atlassian-light/color/accent.js +150 -39
  21. package/dist/cjs/tokens/atlassian-light/color/background.js +189 -152
  22. package/dist/cjs/tokens/atlassian-light/color/border.js +29 -2
  23. package/dist/cjs/tokens/atlassian-light/color/icon.js +52 -0
  24. package/dist/cjs/tokens/atlassian-light/color/interaction.js +32 -0
  25. package/dist/cjs/tokens/atlassian-light/color/text.js +27 -22
  26. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +337 -0
  27. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +52 -0
  28. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +26 -0
  29. package/dist/cjs/tokens/default/color/accent.js +306 -87
  30. package/dist/cjs/tokens/default/color/background.js +361 -306
  31. package/dist/cjs/tokens/default/color/border.js +67 -4
  32. package/dist/cjs/tokens/default/color/icon.js +100 -0
  33. package/dist/cjs/tokens/default/color/interaction.js +44 -0
  34. package/dist/cjs/tokens/default/color/text.js +44 -35
  35. package/dist/cjs/tokens/default/deprecated/deprecated.js +710 -0
  36. package/dist/cjs/tokens/default/elevation/shadow.js +28 -0
  37. package/dist/cjs/tokens/default/elevation/surface.js +42 -0
  38. package/dist/cjs/version.json +1 -1
  39. package/dist/es2019/artifacts/rename-mapping.js +326 -2
  40. package/dist/es2019/artifacts/token-default-values.js +203 -67
  41. package/dist/es2019/artifacts/token-names.js +203 -67
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +3426 -616
  44. package/dist/es2019/artifacts/types-internal.js +1 -0
  45. package/dist/es2019/get-token.js +8 -3
  46. package/dist/es2019/tokens/atlassian-dark/color/accent.js +150 -39
  47. package/dist/es2019/tokens/atlassian-dark/color/background.js +189 -152
  48. package/dist/es2019/tokens/atlassian-dark/color/border.js +29 -2
  49. package/dist/es2019/tokens/atlassian-dark/color/icon.js +45 -0
  50. package/dist/es2019/tokens/atlassian-dark/color/interaction.js +25 -0
  51. package/dist/es2019/tokens/atlassian-dark/color/text.js +27 -22
  52. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +344 -0
  53. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +59 -0
  54. package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +19 -0
  55. package/dist/es2019/tokens/atlassian-light/color/accent.js +150 -39
  56. package/dist/es2019/tokens/atlassian-light/color/background.js +189 -152
  57. package/dist/es2019/tokens/atlassian-light/color/border.js +29 -2
  58. package/dist/es2019/tokens/atlassian-light/color/icon.js +45 -0
  59. package/dist/es2019/tokens/atlassian-light/color/interaction.js +25 -0
  60. package/dist/es2019/tokens/atlassian-light/color/text.js +27 -22
  61. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +330 -0
  62. package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +45 -0
  63. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +19 -0
  64. package/dist/es2019/tokens/default/color/accent.js +306 -87
  65. package/dist/es2019/tokens/default/color/background.js +361 -311
  66. package/dist/es2019/tokens/default/color/border.js +67 -4
  67. package/dist/es2019/tokens/default/color/icon.js +93 -0
  68. package/dist/es2019/tokens/default/color/interaction.js +37 -0
  69. package/dist/es2019/tokens/default/color/text.js +44 -42
  70. package/dist/es2019/tokens/default/deprecated/deprecated.js +741 -0
  71. package/dist/es2019/tokens/default/elevation/shadow.js +23 -0
  72. package/dist/es2019/tokens/default/elevation/surface.js +37 -0
  73. package/dist/es2019/version.json +1 -1
  74. package/dist/esm/artifacts/rename-mapping.js +326 -2
  75. package/dist/esm/artifacts/token-default-values.js +203 -67
  76. package/dist/esm/artifacts/token-names.js +203 -67
  77. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +3442 -612
  78. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +3426 -616
  79. package/dist/esm/artifacts/types-internal.js +1 -0
  80. package/dist/esm/get-token.js +8 -3
  81. package/dist/esm/tokens/atlassian-dark/color/accent.js +150 -39
  82. package/dist/esm/tokens/atlassian-dark/color/background.js +189 -152
  83. package/dist/esm/tokens/atlassian-dark/color/border.js +29 -2
  84. package/dist/esm/tokens/atlassian-dark/color/icon.js +45 -0
  85. package/dist/esm/tokens/atlassian-dark/color/interaction.js +25 -0
  86. package/dist/esm/tokens/atlassian-dark/color/text.js +27 -22
  87. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +344 -0
  88. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +59 -0
  89. package/dist/esm/tokens/atlassian-dark/elevation/surface.js +19 -0
  90. package/dist/esm/tokens/atlassian-light/color/accent.js +150 -39
  91. package/dist/esm/tokens/atlassian-light/color/background.js +189 -152
  92. package/dist/esm/tokens/atlassian-light/color/border.js +29 -2
  93. package/dist/esm/tokens/atlassian-light/color/icon.js +45 -0
  94. package/dist/esm/tokens/atlassian-light/color/interaction.js +25 -0
  95. package/dist/esm/tokens/atlassian-light/color/text.js +27 -22
  96. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +330 -0
  97. package/dist/esm/tokens/atlassian-light/elevation/shadow.js +45 -0
  98. package/dist/esm/tokens/atlassian-light/elevation/surface.js +19 -0
  99. package/dist/esm/tokens/default/color/accent.js +306 -87
  100. package/dist/esm/tokens/default/color/background.js +361 -306
  101. package/dist/esm/tokens/default/color/border.js +67 -4
  102. package/dist/esm/tokens/default/color/icon.js +93 -0
  103. package/dist/esm/tokens/default/color/interaction.js +37 -0
  104. package/dist/esm/tokens/default/color/text.js +44 -35
  105. package/dist/esm/tokens/default/deprecated/deprecated.js +703 -0
  106. package/dist/esm/tokens/default/elevation/shadow.js +21 -0
  107. package/dist/esm/tokens/default/elevation/surface.js +35 -0
  108. package/dist/esm/version.json +1 -1
  109. package/dist/types/artifacts/rename-mapping.d.ts +7 -3
  110. package/dist/types/artifacts/token-default-values.d.ts +203 -67
  111. package/dist/types/artifacts/token-names.d.ts +406 -134
  112. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +86 -0
  113. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +62 -0
  114. package/dist/types/artifacts/types-internal.d.ts +4 -0
  115. package/dist/types/artifacts/types.d.ts +1 -1
  116. package/dist/types/get-token.d.ts +2 -2
  117. package/dist/types/tokens/atlassian-dark/color/icon.d.ts +3 -0
  118. package/dist/types/tokens/atlassian-dark/color/interaction.d.ts +3 -0
  119. package/dist/types/tokens/atlassian-dark/deprecated/deprecated.d.ts +3 -0
  120. package/dist/types/tokens/atlassian-dark/{shadow → elevation}/shadow.d.ts +0 -0
  121. package/dist/types/tokens/atlassian-dark/elevation/surface.d.ts +3 -0
  122. package/dist/types/tokens/atlassian-light/color/icon.d.ts +3 -0
  123. package/dist/types/tokens/atlassian-light/color/interaction.d.ts +3 -0
  124. package/dist/types/tokens/atlassian-light/deprecated/deprecated.d.ts +3 -0
  125. package/dist/types/tokens/atlassian-light/{shadow → elevation}/shadow.d.ts +0 -0
  126. package/dist/types/tokens/atlassian-light/elevation/surface.d.ts +3 -0
  127. package/dist/types/tokens/default/color/icon.d.ts +3 -0
  128. package/dist/types/tokens/default/color/interaction.d.ts +3 -0
  129. package/dist/types/tokens/default/deprecated/deprecated.d.ts +3 -0
  130. package/dist/types/tokens/default/{shadow → elevation}/shadow.d.ts +0 -0
  131. package/dist/types/tokens/default/elevation/surface.d.ts +3 -0
  132. package/dist/types/tokens/default/utility/utility.d.ts +72 -72
  133. package/dist/types/types.d.ts +311 -56
  134. package/package.json +16 -7
  135. package/dist/cjs/tokens/atlassian-dark/color/icon-border.js +0 -29
  136. package/dist/cjs/tokens/atlassian-dark/color/overlay.js +0 -20
  137. package/dist/cjs/tokens/atlassian-dark/shadow/shadow.js +0 -64
  138. package/dist/cjs/tokens/atlassian-light/color/icon-border.js +0 -29
  139. package/dist/cjs/tokens/atlassian-light/color/overlay.js +0 -20
  140. package/dist/cjs/tokens/atlassian-light/shadow/shadow.js +0 -50
  141. package/dist/cjs/tokens/default/color/icon-border.js +0 -49
  142. package/dist/cjs/tokens/default/color/overlay.js +0 -28
  143. package/dist/cjs/tokens/default/shadow/shadow.js +0 -26
  144. package/dist/es2019/tokens/atlassian-dark/color/icon-border.js +0 -22
  145. package/dist/es2019/tokens/atlassian-dark/color/overlay.js +0 -13
  146. package/dist/es2019/tokens/atlassian-dark/shadow/shadow.js +0 -57
  147. package/dist/es2019/tokens/atlassian-light/color/icon-border.js +0 -22
  148. package/dist/es2019/tokens/atlassian-light/color/overlay.js +0 -13
  149. package/dist/es2019/tokens/atlassian-light/shadow/shadow.js +0 -43
  150. package/dist/es2019/tokens/default/color/icon-border.js +0 -60
  151. package/dist/es2019/tokens/default/color/overlay.js +0 -21
  152. package/dist/es2019/tokens/default/shadow/shadow.js +0 -27
  153. package/dist/esm/tokens/atlassian-dark/color/icon-border.js +0 -22
  154. package/dist/esm/tokens/atlassian-dark/color/overlay.js +0 -13
  155. package/dist/esm/tokens/atlassian-dark/shadow/shadow.js +0 -57
  156. package/dist/esm/tokens/atlassian-light/color/icon-border.js +0 -22
  157. package/dist/esm/tokens/atlassian-light/color/overlay.js +0 -13
  158. package/dist/esm/tokens/atlassian-light/shadow/shadow.js +0 -43
  159. package/dist/esm/tokens/default/color/icon-border.js +0 -42
  160. package/dist/esm/tokens/default/color/overlay.js +0 -21
  161. package/dist/esm/tokens/default/shadow/shadow.js +0 -19
  162. package/dist/types/tokens/atlassian-dark/color/icon-border.d.ts +0 -3
  163. package/dist/types/tokens/atlassian-dark/color/overlay.d.ts +0 -3
  164. package/dist/types/tokens/atlassian-light/color/icon-border.d.ts +0 -3
  165. package/dist/types/tokens/atlassian-light/color/overlay.d.ts +0 -3
  166. package/dist/types/tokens/default/color/icon-border.d.ts +0 -3
  167. package/dist/types/tokens/default/color/overlay.d.ts +0 -3
  168. package/tokens-browser-extension/README.md +0 -28
  169. package/tokens-browser-extension/atlassian-theme.css +0 -449
  170. package/tokens-browser-extension/background.js +0 -75
  171. package/tokens-browser-extension/content-script.js +0 -75
  172. package/tokens-browser-extension/devtools.html +0 -1
  173. package/tokens-browser-extension/devtools.js +0 -14
  174. package/tokens-browser-extension/manifest.json +0 -36
  175. package/tokens-browser-extension/messageback-script.js +0 -10
  176. package/tokens-browser-extension/messaging.js +0 -36
  177. package/tokens-browser-extension/panel.html +0 -25
  178. package/tokens-browser-extension/panel.js +0 -46
  179. package/tokens-browser-extension/toast.png +0 -0
@@ -1,9 +1,9 @@
1
- import { ActiveTokens } from './artifacts/types';
1
+ import { InternalTokenIds } from './artifacts/types-internal';
2
2
  export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette';
3
3
  export declare type ActiveTokenStates = 'active';
4
4
  export declare type ReplacedTokenStates = 'deprecated' | 'deleted';
5
5
  export declare type TokenState = ActiveTokenStates | ReplacedTokenStates;
6
- export declare type Replacement = ActiveTokens[];
6
+ export declare type Replacement = InternalTokenIds | InternalTokenIds[];
7
7
  export interface Token<TValue, Group extends Groups> {
8
8
  value: TValue;
9
9
  attributes: {
@@ -186,6 +186,305 @@ export interface PaletteColorTokenSchema {
186
186
  }
187
187
  export interface BackgroundColorTokenSchema {
188
188
  color: {
189
+ blanket: PaintToken;
190
+ background: {
191
+ disabled: PaintToken;
192
+ inverse: PaintToken;
193
+ input: {
194
+ '[default]': PaintToken;
195
+ hovered: PaintToken;
196
+ pressed: PaintToken;
197
+ };
198
+ neutral: {
199
+ '[default]': {
200
+ '[default]': PaintToken;
201
+ hovered: PaintToken;
202
+ pressed: PaintToken;
203
+ };
204
+ subtle: {
205
+ '[default]': PaintToken;
206
+ hovered: PaintToken;
207
+ pressed: PaintToken;
208
+ };
209
+ bold: {
210
+ '[default]': PaintToken;
211
+ hovered: PaintToken;
212
+ pressed: PaintToken;
213
+ };
214
+ };
215
+ brand: {
216
+ bold: {
217
+ '[default]': PaintToken;
218
+ hovered: PaintToken;
219
+ pressed: PaintToken;
220
+ };
221
+ };
222
+ selected: {
223
+ '[default]': {
224
+ '[default]': PaintToken;
225
+ hovered: PaintToken;
226
+ pressed: PaintToken;
227
+ };
228
+ bold: {
229
+ '[default]': PaintToken;
230
+ hovered: PaintToken;
231
+ pressed: PaintToken;
232
+ };
233
+ };
234
+ danger: {
235
+ '[default]': {
236
+ '[default]': PaintToken;
237
+ hovered: PaintToken;
238
+ pressed: PaintToken;
239
+ };
240
+ bold: {
241
+ '[default]': PaintToken;
242
+ hovered: PaintToken;
243
+ pressed: PaintToken;
244
+ };
245
+ };
246
+ warning: {
247
+ '[default]': {
248
+ '[default]': PaintToken;
249
+ hovered: PaintToken;
250
+ pressed: PaintToken;
251
+ };
252
+ bold: {
253
+ '[default]': PaintToken;
254
+ hovered: PaintToken;
255
+ pressed: PaintToken;
256
+ };
257
+ };
258
+ success: {
259
+ '[default]': {
260
+ '[default]': PaintToken;
261
+ hovered: PaintToken;
262
+ pressed: PaintToken;
263
+ };
264
+ bold: {
265
+ '[default]': PaintToken;
266
+ hovered: PaintToken;
267
+ pressed: PaintToken;
268
+ };
269
+ };
270
+ discovery: {
271
+ '[default]': {
272
+ '[default]': PaintToken;
273
+ hovered: PaintToken;
274
+ pressed: PaintToken;
275
+ };
276
+ bold: {
277
+ '[default]': PaintToken;
278
+ hovered: PaintToken;
279
+ pressed: PaintToken;
280
+ };
281
+ };
282
+ information: {
283
+ '[default]': {
284
+ '[default]': PaintToken;
285
+ hovered: PaintToken;
286
+ pressed: PaintToken;
287
+ };
288
+ bold: {
289
+ '[default]': PaintToken;
290
+ hovered: PaintToken;
291
+ pressed: PaintToken;
292
+ };
293
+ };
294
+ };
295
+ };
296
+ }
297
+ export interface BorderColorTokenSchema {
298
+ color: {
299
+ border: {
300
+ '[default]': PaintToken;
301
+ focused: PaintToken;
302
+ input: PaintToken;
303
+ disabled: PaintToken;
304
+ brand: PaintToken;
305
+ selected: PaintToken;
306
+ danger: PaintToken;
307
+ warning: PaintToken;
308
+ success: PaintToken;
309
+ discovery: PaintToken;
310
+ information: PaintToken;
311
+ };
312
+ };
313
+ }
314
+ export interface IconColorTokenSchema {
315
+ color: {
316
+ icon: {
317
+ '[default]': PaintToken;
318
+ subtle: PaintToken;
319
+ inverse: PaintToken;
320
+ disabled: PaintToken;
321
+ brand: PaintToken;
322
+ selected: PaintToken;
323
+ danger: PaintToken;
324
+ warning: {
325
+ '[default]': PaintToken;
326
+ inverse: PaintToken;
327
+ };
328
+ success: PaintToken;
329
+ discovery: PaintToken;
330
+ information: PaintToken;
331
+ };
332
+ };
333
+ }
334
+ export interface TextColorTokenSchema {
335
+ color: {
336
+ text: {
337
+ '[default]': PaintToken;
338
+ subtle: PaintToken;
339
+ subtlest: PaintToken;
340
+ inverse: PaintToken;
341
+ brand: PaintToken;
342
+ selected: PaintToken;
343
+ danger: PaintToken;
344
+ warning: {
345
+ '[default]': PaintToken;
346
+ inverse: PaintToken;
347
+ };
348
+ success: PaintToken;
349
+ information: PaintToken;
350
+ discovery: PaintToken;
351
+ disabled: PaintToken;
352
+ };
353
+ link: {
354
+ '[default]': PaintToken;
355
+ pressed: PaintToken;
356
+ };
357
+ };
358
+ }
359
+ export interface AccentColorTokenSchema {
360
+ color: {
361
+ text: {
362
+ accent: {
363
+ blue: PaintToken;
364
+ red: PaintToken;
365
+ orange: PaintToken;
366
+ yellow: PaintToken;
367
+ green: PaintToken;
368
+ purple: PaintToken;
369
+ teal: PaintToken;
370
+ magenta: PaintToken;
371
+ };
372
+ };
373
+ icon: {
374
+ accent: {
375
+ blue: PaintToken;
376
+ red: PaintToken;
377
+ orange: PaintToken;
378
+ yellow: PaintToken;
379
+ green: PaintToken;
380
+ purple: PaintToken;
381
+ teal: PaintToken;
382
+ magenta: PaintToken;
383
+ };
384
+ };
385
+ border: {
386
+ accent: {
387
+ blue: PaintToken;
388
+ red: PaintToken;
389
+ orange: PaintToken;
390
+ yellow: PaintToken;
391
+ green: PaintToken;
392
+ purple: PaintToken;
393
+ teal: PaintToken;
394
+ magenta: PaintToken;
395
+ };
396
+ };
397
+ background: {
398
+ accent: {
399
+ blue: {
400
+ '[default]': PaintToken;
401
+ bold: PaintToken;
402
+ };
403
+ red: {
404
+ '[default]': PaintToken;
405
+ bold: PaintToken;
406
+ };
407
+ orange: {
408
+ '[default]': PaintToken;
409
+ bold: PaintToken;
410
+ };
411
+ yellow: {
412
+ '[default]': PaintToken;
413
+ bold: PaintToken;
414
+ };
415
+ green: {
416
+ '[default]': PaintToken;
417
+ bold: PaintToken;
418
+ };
419
+ teal: {
420
+ '[default]': PaintToken;
421
+ bold: PaintToken;
422
+ };
423
+ purple: {
424
+ '[default]': PaintToken;
425
+ bold: PaintToken;
426
+ };
427
+ magenta: {
428
+ '[default]': PaintToken;
429
+ bold: PaintToken;
430
+ };
431
+ };
432
+ };
433
+ };
434
+ }
435
+ export interface InteractionColorTokenSchema {
436
+ color: {
437
+ interaction: {
438
+ pressed: PaintToken;
439
+ hovered: PaintToken;
440
+ inverse: {
441
+ pressed: PaintToken;
442
+ hovered: PaintToken;
443
+ };
444
+ };
445
+ };
446
+ }
447
+ export interface UtilTokenSchema {
448
+ UNSAFE_util: {
449
+ transparent: RawToken;
450
+ MISSING_TOKEN: RawToken;
451
+ };
452
+ }
453
+ export interface SurfaceTokenSchema {
454
+ elevation: {
455
+ surface: {
456
+ '[default]': PaintToken;
457
+ sunken: PaintToken;
458
+ raised: PaintToken;
459
+ overlay: PaintToken;
460
+ };
461
+ };
462
+ }
463
+ export interface ShadowTokenSchema {
464
+ elevation: {
465
+ shadow: {
466
+ raised: ShadowToken;
467
+ overlay: ShadowToken;
468
+ };
469
+ };
470
+ }
471
+ export interface DeprecatedTokenSchema {
472
+ color: {
473
+ accent: {
474
+ boldBlue: PaintToken;
475
+ boldGreen: PaintToken;
476
+ boldOrange: PaintToken;
477
+ boldPurple: PaintToken;
478
+ boldRed: PaintToken;
479
+ boldTeal: PaintToken;
480
+ subtleBlue: PaintToken;
481
+ subtleRed: PaintToken;
482
+ subtleGreen: PaintToken;
483
+ subtleOrange: PaintToken;
484
+ subtleTeal: PaintToken;
485
+ subtlePurple: PaintToken;
486
+ subtleMagenta: PaintToken;
487
+ };
189
488
  background: {
190
489
  default: PaintToken;
191
490
  sunken: PaintToken;
@@ -194,10 +493,15 @@ export interface BackgroundColorTokenSchema {
194
493
  selected: {
195
494
  resting: PaintToken;
196
495
  hover: PaintToken;
197
- pressed: PaintToken;
198
496
  };
199
- disabled: PaintToken;
200
497
  blanket: PaintToken;
498
+ brand: {
499
+ '[default]': {
500
+ '[default]': PaintToken;
501
+ hovered: PaintToken;
502
+ pressed: PaintToken;
503
+ };
504
+ };
201
505
  boldBrand: {
202
506
  resting: PaintToken;
203
507
  hover: PaintToken;
@@ -267,18 +571,10 @@ export interface BackgroundColorTokenSchema {
267
571
  pressed: PaintToken;
268
572
  };
269
573
  };
270
- };
271
- }
272
- export interface BorderColorTokenSchema {
273
- color: {
274
574
  border: {
275
575
  focus: PaintToken;
276
576
  neutral: PaintToken;
277
577
  };
278
- };
279
- }
280
- export interface IconBorderColorTokenSchema {
281
- color: {
282
578
  iconBorder: {
283
579
  brand: PaintToken;
284
580
  danger: PaintToken;
@@ -286,12 +582,7 @@ export interface IconBorderColorTokenSchema {
286
582
  success: PaintToken;
287
583
  discovery: PaintToken;
288
584
  };
289
- };
290
- }
291
- export interface TextColorTokenSchema {
292
- color: {
293
585
  text: {
294
- selected: PaintToken;
295
586
  highEmphasis: PaintToken;
296
587
  mediumEmphasis: PaintToken;
297
588
  lowEmphasis: PaintToken;
@@ -301,54 +592,18 @@ export interface TextColorTokenSchema {
301
592
  resting: PaintToken;
302
593
  pressed: PaintToken;
303
594
  };
304
- brand: PaintToken;
305
- warning: PaintToken;
306
- danger: PaintToken;
307
- success: PaintToken;
308
- discovery: PaintToken;
309
- disabled: PaintToken;
310
595
  };
311
- };
312
- }
313
- export interface AccentColorTokenSchema {
314
- color: {
315
- accent: {
316
- boldBlue: PaintToken;
317
- boldGreen: PaintToken;
318
- boldOrange: PaintToken;
319
- boldPurple: PaintToken;
320
- boldRed: PaintToken;
321
- boldTeal: PaintToken;
322
- subtleBlue: PaintToken;
323
- subtleRed: PaintToken;
324
- subtleGreen: PaintToken;
325
- subtleOrange: PaintToken;
326
- subtleTeal: PaintToken;
327
- subtlePurple: PaintToken;
328
- subtleMagenta: PaintToken;
329
- };
330
- };
331
- }
332
- export interface OverlayColorTokenSchema {
333
- color: {
334
596
  overlay: {
335
597
  pressed: PaintToken;
336
598
  hover: PaintToken;
337
599
  };
338
600
  };
339
- }
340
- export interface ShadowTokenSchema {
341
601
  shadow: {
342
602
  card: ShadowToken;
343
603
  overlay: ShadowToken;
344
604
  };
345
605
  }
346
- export interface UtilTokenSchema {
347
- UNSAFE_util: {
348
- transparent: RawToken;
349
- MISSING_TOKEN: RawToken;
350
- };
351
- }
352
- export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconBorderColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
353
- export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ShadowTokenSchema;
606
+ export declare type ElevationTokenSchema = SurfaceTokenSchema & ShadowTokenSchema;
607
+ export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
608
+ export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ElevationTokenSchema;
354
609
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.4.2",
3
+ "version": "0.6.2",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "Tokens are a single source of truth to name and store Atlassian design decisions.",
6
6
  "license": "Apache-2.0",
@@ -26,22 +26,31 @@
26
26
  "./css": "./css"
27
27
  },
28
28
  "scripts": {
29
- "ak-postbuild": "yarn codegen-tokens && yarn check-clean-git",
30
- "check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are is out of date, run bolt build tokens' && false)",
31
- "codegen-tokens": "ts-node --project ../../../tsconfig.node.json ./scripts/style-dictionary/build"
29
+ "ak-postbuild": "yarn codegen-tokens && yarn check-clean-git && yarn build-chrome-extension",
30
+ "check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are is out of date, run yarn build tokens' && false)",
31
+ "codegen-tokens": "ts-node --project ../../../tsconfig.node.json ./scripts/style-dictionary/build",
32
+ "build-chrome-extension": "yarn --cwd tokens-browser-extension build-chrome-extension"
32
33
  },
33
34
  "dependencies": {
35
+ "@atlaskit/ds-lib": "^1.4.0",
34
36
  "@babel/runtime": "^7.0.0",
35
37
  "@babel/traverse": "^7.15.0",
36
38
  "@babel/types": "^7.15.0"
37
39
  },
38
40
  "devDependencies": {
39
- "@atlaskit/code": "*",
40
- "@atlaskit/lozenge": "*",
41
- "@atlaskit/tabs": "*",
41
+ "@atlaskit/code": "^14.3.0",
42
+ "@atlaskit/icon": "^21.10.2",
43
+ "@atlaskit/lozenge": "^11.0.0",
44
+ "@atlaskit/section-message": "^6.1.7",
45
+ "@atlaskit/tabs": "^13.2.4",
46
+ "@atlaskit/textfield": "^5.1.5",
47
+ "@atlaskit/theme": "^12.1.2",
48
+ "@atlaskit/toggle": "^12.4.2",
42
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
43
50
  "@babel/core": "^7.12.3",
44
51
  "@emotion/core": "^10.0.9",
52
+ "@types/chrome": "^0.0.171",
53
+ "copy-webpack-plugin": "^6.4.0",
45
54
  "lodash": "^4.17.21",
46
55
  "prettier": "^2.1.1",
47
56
  "react": "^16.8.0",
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var color = {
8
- color: {
9
- iconBorder: {
10
- brand: {
11
- value: 'B500'
12
- },
13
- danger: {
14
- value: 'R500'
15
- },
16
- warning: {
17
- value: 'Y500'
18
- },
19
- success: {
20
- value: 'G500'
21
- },
22
- discovery: {
23
- value: 'P500'
24
- }
25
- }
26
- }
27
- };
28
- var _default = color;
29
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var color = {
8
- color: {
9
- overlay: {
10
- hover: {
11
- value: 'DN400A'
12
- },
13
- pressed: {
14
- value: 'DN500A'
15
- }
16
- }
17
- }
18
- };
19
- var _default = color;
20
- exports.default = _default;
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var shadow = {
8
- shadow: {
9
- card: {
10
- value: [{
11
- radius: 1,
12
- offset: {
13
- x: 0,
14
- y: 1
15
- },
16
- color: 'DN-100A',
17
- // This opacity overrides the color alpha.
18
- opacity: 0.5
19
- }, {
20
- radius: 1,
21
- offset: {
22
- x: 0,
23
- y: 0
24
- },
25
- color: 'DN-100A',
26
- // This opacity overrides the color alpha.
27
- opacity: 0.5
28
- }]
29
- },
30
- overlay: {
31
- value: [{
32
- radius: 0,
33
- spread: 1,
34
- color: 'DN100A',
35
- offset: {
36
- x: 0,
37
- y: 0
38
- },
39
- opacity: 0.04,
40
- inset: true
41
- }, {
42
- radius: 12,
43
- offset: {
44
- x: 0,
45
- y: 8
46
- },
47
- color: 'DN-100A',
48
- // This opacity overrides the color alpha.
49
- opacity: 0.36
50
- }, {
51
- radius: 1,
52
- offset: {
53
- x: 0,
54
- y: 0
55
- },
56
- color: 'DN-100A',
57
- // This opacity overrides the color alpha.
58
- opacity: 0.5
59
- }]
60
- }
61
- }
62
- };
63
- var _default = shadow;
64
- exports.default = _default;
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var color = {
8
- color: {
9
- iconBorder: {
10
- brand: {
11
- value: 'B600'
12
- },
13
- danger: {
14
- value: 'R600'
15
- },
16
- warning: {
17
- value: 'O600'
18
- },
19
- success: {
20
- value: 'G600'
21
- },
22
- discovery: {
23
- value: 'P600'
24
- }
25
- }
26
- }
27
- };
28
- var _default = color;
29
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var color = {
8
- color: {
9
- overlay: {
10
- hover: {
11
- value: 'N400A'
12
- },
13
- pressed: {
14
- value: 'N500A'
15
- }
16
- }
17
- }
18
- };
19
- var _default = color;
20
- exports.default = _default;
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var shadow = {
8
- shadow: {
9
- card: {
10
- value: [{
11
- radius: 1,
12
- offset: {
13
- x: 0,
14
- y: 1
15
- },
16
- color: 'N1100',
17
- opacity: 0.25
18
- }, {
19
- radius: 1,
20
- offset: {
21
- x: 0,
22
- y: 0
23
- },
24
- color: 'N1100',
25
- opacity: 0.31
26
- }]
27
- },
28
- overlay: {
29
- value: [{
30
- radius: 12,
31
- offset: {
32
- x: 0,
33
- y: 8
34
- },
35
- color: 'N1100',
36
- opacity: 0.15
37
- }, {
38
- radius: 1,
39
- offset: {
40
- x: 0,
41
- y: 0
42
- },
43
- color: 'N1100',
44
- opacity: 0.31
45
- }]
46
- }
47
- }
48
- };
49
- var _default = shadow;
50
- exports.default = _default;