@atlaskit/tokens 0.10.5 → 0.10.8

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/.eslintrc.js +35 -0
  2. package/CHANGELOG.md +27 -0
  3. package/README.md +1 -1
  4. package/css/atlassian-dark.css +10 -1
  5. package/css/atlassian-light.css +10 -1
  6. package/dist/cjs/artifacts/token-default-values.js +10 -1
  7. package/dist/cjs/artifacts/token-names.js +10 -1
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +196 -7
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +196 -7
  10. package/dist/cjs/babel-plugin/plugin.js +57 -53
  11. package/dist/cjs/get-token.js +1 -1
  12. package/dist/cjs/tokens/atlassian-dark/color/accent.js +28 -0
  13. package/dist/cjs/tokens/atlassian-dark/color/border.js +3 -0
  14. package/dist/cjs/tokens/atlassian-light/color/accent.js +28 -0
  15. package/dist/cjs/tokens/atlassian-light/color/border.js +3 -0
  16. package/dist/cjs/tokens/default/color/accent.js +70 -2
  17. package/dist/cjs/tokens/default/color/border.js +8 -0
  18. package/dist/cjs/tokens/default/deprecated/deprecated.js +1 -1
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/artifacts/token-default-values.js +10 -1
  21. package/dist/es2019/artifacts/token-names.js +10 -1
  22. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +196 -7
  23. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +196 -7
  24. package/dist/es2019/babel-plugin/plugin.js +50 -45
  25. package/dist/es2019/get-token.js +1 -1
  26. package/dist/es2019/tokens/atlassian-dark/color/accent.js +28 -0
  27. package/dist/es2019/tokens/atlassian-dark/color/border.js +3 -0
  28. package/dist/es2019/tokens/atlassian-light/color/accent.js +28 -0
  29. package/dist/es2019/tokens/atlassian-light/color/border.js +3 -0
  30. package/dist/es2019/tokens/default/color/accent.js +70 -2
  31. package/dist/es2019/tokens/default/color/border.js +8 -0
  32. package/dist/es2019/tokens/default/deprecated/deprecated.js +1 -1
  33. package/dist/es2019/version.json +1 -1
  34. package/dist/esm/artifacts/token-default-values.js +10 -1
  35. package/dist/esm/artifacts/token-names.js +10 -1
  36. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +196 -7
  37. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +196 -7
  38. package/dist/esm/babel-plugin/plugin.js +57 -53
  39. package/dist/esm/get-token.js +1 -1
  40. package/dist/esm/tokens/atlassian-dark/color/accent.js +28 -0
  41. package/dist/esm/tokens/atlassian-dark/color/border.js +3 -0
  42. package/dist/esm/tokens/atlassian-light/color/accent.js +28 -0
  43. package/dist/esm/tokens/atlassian-light/color/border.js +3 -0
  44. package/dist/esm/tokens/default/color/accent.js +70 -2
  45. package/dist/esm/tokens/default/color/border.js +8 -0
  46. package/dist/esm/tokens/default/deprecated/deprecated.js +1 -1
  47. package/dist/esm/version.json +1 -1
  48. package/dist/types/artifacts/token-default-values.d.ts +10 -1
  49. package/dist/types/artifacts/token-names.d.ts +19 -1
  50. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  51. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  52. package/dist/types/artifacts/types-internal.d.ts +2 -2
  53. package/dist/types/artifacts/types.d.ts +2 -2
  54. package/dist/types/babel-plugin/plugin.d.ts +5 -5
  55. package/dist/types/types.d.ts +13 -0
  56. package/package.json +4 -1
@@ -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::cbc11cad85705333139fd9d6eda82f31>>
3
+ * @codegen <<SignedSource::0f25880322c40827d3c14a229de859fb>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
- export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
6
+ export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text.accent.gray' | 'color.text.accent.gray.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.accent.gray' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.accent.gray' | 'color.border' | 'color.border.bold' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.interaction.inverse.hovered' | 'color.interaction.inverse.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
@@ -2,12 +2,12 @@ import { NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  export default function plugin(): {
4
4
  visitor: {
5
- CallExpression(path: NodePath<t.CallExpression>, state: {
6
- opts: {
7
- shouldUseAutoFallback?: boolean;
8
- };
9
- }): void;
10
5
  Program: {
6
+ enter(path: NodePath<t.Program>, state: {
7
+ opts: {
8
+ shouldUseAutoFallback?: boolean;
9
+ };
10
+ }): void;
11
11
  exit(path: NodePath<t.Program>): void;
12
12
  };
13
13
  };
@@ -328,6 +328,7 @@ export interface BorderColorTokenSchema {
328
328
  color: {
329
329
  border: {
330
330
  '[default]': PaintToken;
331
+ bold: PaintToken;
331
332
  inverse: PaintToken;
332
333
  focused: PaintToken;
333
334
  input: PaintToken;
@@ -423,6 +424,10 @@ export interface AccentColorTokenSchema {
423
424
  '[default]': PaintToken;
424
425
  bolder: PaintToken;
425
426
  };
427
+ gray: {
428
+ '[default]': PaintToken;
429
+ bolder: PaintToken;
430
+ };
426
431
  };
427
432
  };
428
433
  icon: {
@@ -435,6 +440,7 @@ export interface AccentColorTokenSchema {
435
440
  purple: PaintToken;
436
441
  teal: PaintToken;
437
442
  magenta: PaintToken;
443
+ gray: PaintToken;
438
444
  };
439
445
  };
440
446
  border: {
@@ -447,6 +453,7 @@ export interface AccentColorTokenSchema {
447
453
  purple: PaintToken;
448
454
  teal: PaintToken;
449
455
  magenta: PaintToken;
456
+ gray: PaintToken;
450
457
  };
451
458
  };
452
459
  background: {
@@ -499,6 +506,12 @@ export interface AccentColorTokenSchema {
499
506
  subtle: PaintToken;
500
507
  bolder: PaintToken;
501
508
  };
509
+ gray: {
510
+ subtlest: PaintToken;
511
+ subtler: PaintToken;
512
+ subtle: PaintToken;
513
+ bolder: PaintToken;
514
+ };
502
515
  };
503
516
  };
504
517
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.5",
3
+ "version": "0.10.8",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "Design tokens are the single source of truth to name and store design decisions.",
6
6
  "license": "Apache-2.0",
@@ -55,6 +55,7 @@
55
55
  "@af/codegen": "*",
56
56
  "@atlaskit/badge": "^15.0.11",
57
57
  "@atlaskit/button": "^16.3.0",
58
+ "@atlaskit/checkbox": "^12.3.9",
58
59
  "@atlaskit/code": "^14.3.0",
59
60
  "@atlaskit/docs": "^9.0.10",
60
61
  "@atlaskit/dropdown-menu": "^11.2.0",
@@ -77,8 +78,10 @@
77
78
  "@testing-library/dom": "^7.7.3",
78
79
  "@testing-library/react": "^8.0.1",
79
80
  "@testing-library/react-hooks": "^1.0.4",
81
+ "@testing-library/user-event": "10.4.0",
80
82
  "@types/chrome": "^0.0.171",
81
83
  "copy-webpack-plugin": "^6.4.0",
84
+ "fuse.js": "^6.6.2",
82
85
  "lodash": "^4.17.21",
83
86
  "prettier": "^2.1.1",
84
87
  "react": "^16.8.0",