@atlaskit/tokens 0.4.1 → 0.6.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 (179) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/css/atlassian-dark.css +196 -67
  3. package/css/atlassian-light.css +196 -67
  4. package/dist/cjs/artifacts/rename-mapping.js +322 -2
  5. package/dist/cjs/artifacts/token-default-values.js +196 -67
  6. package/dist/cjs/artifacts/token-names.js +196 -67
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +3311 -616
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +3296 -621
  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 +178 -154
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +26 -2
  14. package/dist/cjs/tokens/atlassian-dark/color/icon.js +49 -0
  15. package/dist/cjs/tokens/atlassian-dark/color/interaction.js +32 -0
  16. package/dist/cjs/tokens/atlassian-dark/color/text.js +25 -23
  17. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +344 -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 +178 -154
  22. package/dist/cjs/tokens/atlassian-light/color/border.js +26 -2
  23. package/dist/cjs/tokens/atlassian-light/color/icon.js +49 -0
  24. package/dist/cjs/tokens/atlassian-light/color/interaction.js +32 -0
  25. package/dist/cjs/tokens/atlassian-light/color/text.js +25 -23
  26. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +330 -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 +339 -309
  31. package/dist/cjs/tokens/default/color/border.js +60 -4
  32. package/dist/cjs/tokens/default/color/icon.js +93 -0
  33. package/dist/cjs/tokens/default/color/interaction.js +44 -0
  34. package/dist/cjs/tokens/default/color/text.js +37 -35
  35. package/dist/cjs/tokens/default/deprecated/deprecated.js +698 -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 +322 -2
  40. package/dist/es2019/artifacts/token-default-values.js +196 -67
  41. package/dist/es2019/artifacts/token-names.js +196 -67
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +3311 -616
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +3296 -621
  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 +178 -154
  48. package/dist/es2019/tokens/atlassian-dark/color/border.js +26 -2
  49. package/dist/es2019/tokens/atlassian-dark/color/icon.js +42 -0
  50. package/dist/es2019/tokens/atlassian-dark/color/interaction.js +25 -0
  51. package/dist/es2019/tokens/atlassian-dark/color/text.js +25 -23
  52. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +337 -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 +178 -154
  57. package/dist/es2019/tokens/atlassian-light/color/border.js +26 -2
  58. package/dist/es2019/tokens/atlassian-light/color/icon.js +42 -0
  59. package/dist/es2019/tokens/atlassian-light/color/interaction.js +25 -0
  60. package/dist/es2019/tokens/atlassian-light/color/text.js +25 -23
  61. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +323 -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 +339 -314
  66. package/dist/es2019/tokens/default/color/border.js +60 -4
  67. package/dist/es2019/tokens/default/color/icon.js +86 -0
  68. package/dist/es2019/tokens/default/color/interaction.js +37 -0
  69. package/dist/es2019/tokens/default/color/text.js +37 -42
  70. package/dist/es2019/tokens/default/deprecated/deprecated.js +729 -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 +322 -2
  75. package/dist/esm/artifacts/token-default-values.js +196 -67
  76. package/dist/esm/artifacts/token-names.js +196 -67
  77. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +3311 -616
  78. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +3296 -621
  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 +178 -154
  83. package/dist/esm/tokens/atlassian-dark/color/border.js +26 -2
  84. package/dist/esm/tokens/atlassian-dark/color/icon.js +42 -0
  85. package/dist/esm/tokens/atlassian-dark/color/interaction.js +25 -0
  86. package/dist/esm/tokens/atlassian-dark/color/text.js +25 -23
  87. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +337 -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 +178 -154
  92. package/dist/esm/tokens/atlassian-light/color/border.js +26 -2
  93. package/dist/esm/tokens/atlassian-light/color/icon.js +42 -0
  94. package/dist/esm/tokens/atlassian-light/color/interaction.js +25 -0
  95. package/dist/esm/tokens/atlassian-light/color/text.js +25 -23
  96. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +323 -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 +339 -309
  101. package/dist/esm/tokens/default/color/border.js +60 -4
  102. package/dist/esm/tokens/default/color/icon.js +86 -0
  103. package/dist/esm/tokens/default/color/interaction.js +37 -0
  104. package/dist/esm/tokens/default/color/text.js +37 -35
  105. package/dist/esm/tokens/default/deprecated/deprecated.js +691 -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 +196 -67
  111. package/dist/types/artifacts/token-names.d.ts +392 -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 +294 -54
  134. package/package.json +18 -8
  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,295 @@ 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
+ '[default]': {
217
+ '[default]': PaintToken;
218
+ hovered: PaintToken;
219
+ pressed: PaintToken;
220
+ };
221
+ bold: {
222
+ '[default]': PaintToken;
223
+ hovered: PaintToken;
224
+ pressed: PaintToken;
225
+ };
226
+ };
227
+ danger: {
228
+ '[default]': {
229
+ '[default]': PaintToken;
230
+ hovered: PaintToken;
231
+ pressed: PaintToken;
232
+ };
233
+ bold: {
234
+ '[default]': PaintToken;
235
+ hovered: PaintToken;
236
+ pressed: PaintToken;
237
+ };
238
+ };
239
+ warning: {
240
+ '[default]': {
241
+ '[default]': PaintToken;
242
+ hovered: PaintToken;
243
+ pressed: PaintToken;
244
+ };
245
+ bold: {
246
+ '[default]': PaintToken;
247
+ hovered: PaintToken;
248
+ pressed: PaintToken;
249
+ };
250
+ };
251
+ success: {
252
+ '[default]': {
253
+ '[default]': PaintToken;
254
+ hovered: PaintToken;
255
+ pressed: PaintToken;
256
+ };
257
+ bold: {
258
+ '[default]': PaintToken;
259
+ hovered: PaintToken;
260
+ pressed: PaintToken;
261
+ };
262
+ };
263
+ discovery: {
264
+ '[default]': {
265
+ '[default]': PaintToken;
266
+ hovered: PaintToken;
267
+ pressed: PaintToken;
268
+ };
269
+ bold: {
270
+ '[default]': PaintToken;
271
+ hovered: PaintToken;
272
+ pressed: PaintToken;
273
+ };
274
+ };
275
+ information: {
276
+ '[default]': {
277
+ '[default]': PaintToken;
278
+ hovered: PaintToken;
279
+ pressed: PaintToken;
280
+ };
281
+ bold: {
282
+ '[default]': PaintToken;
283
+ hovered: PaintToken;
284
+ pressed: PaintToken;
285
+ };
286
+ };
287
+ };
288
+ };
289
+ }
290
+ export interface BorderColorTokenSchema {
291
+ color: {
292
+ border: {
293
+ '[default]': PaintToken;
294
+ focused: PaintToken;
295
+ input: PaintToken;
296
+ disabled: PaintToken;
297
+ brand: PaintToken;
298
+ danger: PaintToken;
299
+ warning: PaintToken;
300
+ success: PaintToken;
301
+ discovery: PaintToken;
302
+ information: PaintToken;
303
+ };
304
+ };
305
+ }
306
+ export interface IconColorTokenSchema {
307
+ color: {
308
+ icon: {
309
+ '[default]': PaintToken;
310
+ subtle: PaintToken;
311
+ inverse: PaintToken;
312
+ disabled: PaintToken;
313
+ brand: PaintToken;
314
+ danger: PaintToken;
315
+ warning: {
316
+ '[default]': PaintToken;
317
+ inverse: PaintToken;
318
+ };
319
+ success: PaintToken;
320
+ discovery: PaintToken;
321
+ information: PaintToken;
322
+ };
323
+ };
324
+ }
325
+ export interface TextColorTokenSchema {
326
+ color: {
327
+ text: {
328
+ '[default]': PaintToken;
329
+ subtle: PaintToken;
330
+ subtlest: PaintToken;
331
+ inverse: PaintToken;
332
+ brand: PaintToken;
333
+ danger: PaintToken;
334
+ warning: {
335
+ '[default]': PaintToken;
336
+ inverse: PaintToken;
337
+ };
338
+ success: PaintToken;
339
+ information: PaintToken;
340
+ discovery: PaintToken;
341
+ disabled: PaintToken;
342
+ };
343
+ link: {
344
+ '[default]': PaintToken;
345
+ pressed: PaintToken;
346
+ };
347
+ };
348
+ }
349
+ export interface AccentColorTokenSchema {
350
+ color: {
351
+ text: {
352
+ accent: {
353
+ blue: PaintToken;
354
+ red: PaintToken;
355
+ orange: PaintToken;
356
+ yellow: PaintToken;
357
+ green: PaintToken;
358
+ purple: PaintToken;
359
+ teal: PaintToken;
360
+ magenta: PaintToken;
361
+ };
362
+ };
363
+ icon: {
364
+ accent: {
365
+ blue: PaintToken;
366
+ red: PaintToken;
367
+ orange: PaintToken;
368
+ yellow: PaintToken;
369
+ green: PaintToken;
370
+ purple: PaintToken;
371
+ teal: PaintToken;
372
+ magenta: PaintToken;
373
+ };
374
+ };
375
+ border: {
376
+ accent: {
377
+ blue: PaintToken;
378
+ red: PaintToken;
379
+ orange: PaintToken;
380
+ yellow: PaintToken;
381
+ green: PaintToken;
382
+ purple: PaintToken;
383
+ teal: PaintToken;
384
+ magenta: PaintToken;
385
+ };
386
+ };
387
+ background: {
388
+ accent: {
389
+ blue: {
390
+ '[default]': PaintToken;
391
+ bold: PaintToken;
392
+ };
393
+ red: {
394
+ '[default]': PaintToken;
395
+ bold: PaintToken;
396
+ };
397
+ orange: {
398
+ '[default]': PaintToken;
399
+ bold: PaintToken;
400
+ };
401
+ yellow: {
402
+ '[default]': PaintToken;
403
+ bold: PaintToken;
404
+ };
405
+ green: {
406
+ '[default]': PaintToken;
407
+ bold: PaintToken;
408
+ };
409
+ teal: {
410
+ '[default]': PaintToken;
411
+ bold: PaintToken;
412
+ };
413
+ purple: {
414
+ '[default]': PaintToken;
415
+ bold: PaintToken;
416
+ };
417
+ magenta: {
418
+ '[default]': PaintToken;
419
+ bold: PaintToken;
420
+ };
421
+ };
422
+ };
423
+ };
424
+ }
425
+ export interface InteractionColorTokenSchema {
426
+ color: {
427
+ interaction: {
428
+ pressed: PaintToken;
429
+ hovered: PaintToken;
430
+ inverse: {
431
+ pressed: PaintToken;
432
+ hovered: PaintToken;
433
+ };
434
+ };
435
+ };
436
+ }
437
+ export interface UtilTokenSchema {
438
+ UNSAFE_util: {
439
+ transparent: RawToken;
440
+ MISSING_TOKEN: RawToken;
441
+ };
442
+ }
443
+ export interface SurfaceTokenSchema {
444
+ elevation: {
445
+ surface: {
446
+ '[default]': PaintToken;
447
+ sunken: PaintToken;
448
+ raised: PaintToken;
449
+ overlay: PaintToken;
450
+ };
451
+ };
452
+ }
453
+ export interface ShadowTokenSchema {
454
+ elevation: {
455
+ shadow: {
456
+ raised: ShadowToken;
457
+ overlay: ShadowToken;
458
+ };
459
+ };
460
+ }
461
+ export interface DeprecatedTokenSchema {
462
+ color: {
463
+ accent: {
464
+ boldBlue: PaintToken;
465
+ boldGreen: PaintToken;
466
+ boldOrange: PaintToken;
467
+ boldPurple: PaintToken;
468
+ boldRed: PaintToken;
469
+ boldTeal: PaintToken;
470
+ subtleBlue: PaintToken;
471
+ subtleRed: PaintToken;
472
+ subtleGreen: PaintToken;
473
+ subtleOrange: PaintToken;
474
+ subtleTeal: PaintToken;
475
+ subtlePurple: PaintToken;
476
+ subtleMagenta: PaintToken;
477
+ };
189
478
  background: {
190
479
  default: PaintToken;
191
480
  sunken: PaintToken;
@@ -196,7 +485,6 @@ export interface BackgroundColorTokenSchema {
196
485
  hover: PaintToken;
197
486
  pressed: PaintToken;
198
487
  };
199
- disabled: PaintToken;
200
488
  blanket: PaintToken;
201
489
  boldBrand: {
202
490
  resting: PaintToken;
@@ -267,18 +555,10 @@ export interface BackgroundColorTokenSchema {
267
555
  pressed: PaintToken;
268
556
  };
269
557
  };
270
- };
271
- }
272
- export interface BorderColorTokenSchema {
273
- color: {
274
558
  border: {
275
559
  focus: PaintToken;
276
560
  neutral: PaintToken;
277
561
  };
278
- };
279
- }
280
- export interface IconBorderColorTokenSchema {
281
- color: {
282
562
  iconBorder: {
283
563
  brand: PaintToken;
284
564
  danger: PaintToken;
@@ -286,10 +566,6 @@ export interface IconBorderColorTokenSchema {
286
566
  success: PaintToken;
287
567
  discovery: PaintToken;
288
568
  };
289
- };
290
- }
291
- export interface TextColorTokenSchema {
292
- color: {
293
569
  text: {
294
570
  selected: PaintToken;
295
571
  highEmphasis: PaintToken;
@@ -301,54 +577,18 @@ export interface TextColorTokenSchema {
301
577
  resting: PaintToken;
302
578
  pressed: PaintToken;
303
579
  };
304
- brand: PaintToken;
305
- warning: PaintToken;
306
- danger: PaintToken;
307
- success: PaintToken;
308
- discovery: PaintToken;
309
- disabled: PaintToken;
310
580
  };
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
581
  overlay: {
335
582
  pressed: PaintToken;
336
583
  hover: PaintToken;
337
584
  };
338
585
  };
339
- }
340
- export interface ShadowTokenSchema {
341
586
  shadow: {
342
587
  card: ShadowToken;
343
588
  overlay: ShadowToken;
344
589
  };
345
590
  }
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;
591
+ export declare type ElevationTokenSchema = SurfaceTokenSchema & ShadowTokenSchema;
592
+ export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
593
+ export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ElevationTokenSchema;
354
594
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.4.1",
3
+ "version": "0.6.1",
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",
@@ -22,25 +22,35 @@
22
22
  ".": "./src/index.tsx",
23
23
  "./token-names": "./src/entry-points/token-names.tsx",
24
24
  "./rename-mapping": "./src/entry-points/rename-mapping.tsx",
25
- "./babel-plugin": "./src/entry-points/babel-plugin.tsx"
25
+ "./babel-plugin": "./src/entry-points/babel-plugin.tsx",
26
+ "./css": "./css"
26
27
  },
27
28
  "scripts": {
28
- "ak-postbuild": "yarn codegen-tokens && yarn check-clean-git",
29
- "check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are is out of date, run bolt build tokens' && false)",
30
- "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"
31
33
  },
32
34
  "dependencies": {
35
+ "@atlaskit/ds-lib": "^1.4.0",
33
36
  "@babel/runtime": "^7.0.0",
34
37
  "@babel/traverse": "^7.15.0",
35
38
  "@babel/types": "^7.15.0"
36
39
  },
37
40
  "devDependencies": {
38
- "@atlaskit/code": "*",
39
- "@atlaskit/lozenge": "*",
40
- "@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",
41
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
42
50
  "@babel/core": "^7.12.3",
43
51
  "@emotion/core": "^10.0.9",
52
+ "@types/chrome": "^0.0.171",
53
+ "copy-webpack-plugin": "^6.4.0",
44
54
  "lodash": "^4.17.21",
45
55
  "prettier": "^2.1.1",
46
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;