@atlaskit/tokens 0.10.19 → 0.10.20

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 (67) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/css/atlassian-dark.css +8 -2
  3. package/css/atlassian-legacy-dark.css +8 -2
  4. package/css/atlassian-legacy-light.css +7 -1
  5. package/css/atlassian-light.css +7 -1
  6. package/dist/cjs/artifacts/rename-mapping.js +4 -4
  7. package/dist/cjs/artifacts/token-default-values.js +7 -1
  8. package/dist/cjs/artifacts/token-names.js +7 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +163 -17
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +143 -17
  13. package/dist/cjs/get-token.js +1 -1
  14. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +12 -0
  15. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +27 -3
  16. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  17. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  18. package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  19. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +27 -3
  20. package/dist/cjs/tokens/default/deprecated/deprecated.js +3 -3
  21. package/dist/cjs/tokens/default/elevation/surface.js +69 -15
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/artifacts/rename-mapping.js +4 -4
  24. package/dist/es2019/artifacts/token-default-values.js +7 -1
  25. package/dist/es2019/artifacts/token-names.js +7 -1
  26. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +163 -17
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +143 -17
  30. package/dist/es2019/get-token.js +1 -1
  31. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +12 -0
  32. package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +27 -3
  33. package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  34. package/dist/es2019/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  35. package/dist/es2019/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  36. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +27 -3
  37. package/dist/es2019/tokens/default/deprecated/deprecated.js +3 -3
  38. package/dist/es2019/tokens/default/elevation/surface.js +69 -17
  39. package/dist/es2019/version.json +1 -1
  40. package/dist/esm/artifacts/rename-mapping.js +4 -4
  41. package/dist/esm/artifacts/token-default-values.js +7 -1
  42. package/dist/esm/artifacts/token-names.js +7 -1
  43. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +163 -17
  44. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  45. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  46. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +143 -17
  47. package/dist/esm/get-token.js +1 -1
  48. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +12 -0
  49. package/dist/esm/tokens/atlassian-dark/elevation/surface.js +27 -3
  50. package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  51. package/dist/esm/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  52. package/dist/esm/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  53. package/dist/esm/tokens/atlassian-light/elevation/surface.js +27 -3
  54. package/dist/esm/tokens/default/deprecated/deprecated.js +3 -3
  55. package/dist/esm/tokens/default/elevation/surface.js +69 -15
  56. package/dist/esm/version.json +1 -1
  57. package/dist/types/artifacts/rename-mapping.d.ts +1 -1
  58. package/dist/types/artifacts/token-default-values.d.ts +7 -1
  59. package/dist/types/artifacts/token-names.d.ts +13 -1
  60. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  61. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  62. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  63. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  64. package/dist/types/artifacts/types-internal.d.ts +2 -2
  65. package/dist/types/artifacts/types.d.ts +2 -2
  66. package/dist/types/types.d.ts +15 -3
  67. package/package.json +6 -5
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  /**
9
9
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
10
- * @codegen <<SignedSource::6977decc7ef870a337b1171d6775d9dc>>
10
+ * @codegen <<SignedSource::3e1535e99114e3ceefa050ae548283a1>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -4832,7 +4832,7 @@ var tokens = [{
4832
4832
  "introduced": "0.0.15",
4833
4833
  "deprecated": "0.6.0",
4834
4834
  "deleted": "0.8.0",
4835
- "replacement": "elevation.surface.raised",
4835
+ "replacement": "elevation.surface.raised.[default]",
4836
4836
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4837
4837
  },
4838
4838
  "value": "#FFFFFF",
@@ -4845,7 +4845,7 @@ var tokens = [{
4845
4845
  "introduced": "0.0.15",
4846
4846
  "deprecated": "0.6.0",
4847
4847
  "deleted": "0.8.0",
4848
- "replacement": "elevation.surface.raised",
4848
+ "replacement": "elevation.surface.raised.[default]",
4849
4849
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4850
4850
  },
4851
4851
  "value": "N0"
@@ -4859,7 +4859,7 @@ var tokens = [{
4859
4859
  "introduced": "0.0.15",
4860
4860
  "deprecated": "0.6.0",
4861
4861
  "deleted": "0.8.0",
4862
- "replacement": "elevation.surface.[default]",
4862
+ "replacement": "elevation.surface.[default].[default]",
4863
4863
  "description": "Use as the primary background for the UI"
4864
4864
  },
4865
4865
  "value": "#FFFFFF",
@@ -4872,7 +4872,7 @@ var tokens = [{
4872
4872
  "introduced": "0.0.15",
4873
4873
  "deprecated": "0.6.0",
4874
4874
  "deleted": "0.8.0",
4875
- "replacement": "elevation.surface.[default]",
4875
+ "replacement": "elevation.surface.[default].[default]",
4876
4876
  "description": "Use as the primary background for the UI"
4877
4877
  },
4878
4878
  "value": "N0"
@@ -4886,7 +4886,7 @@ var tokens = [{
4886
4886
  "introduced": "0.0.15",
4887
4887
  "deprecated": "0.6.0",
4888
4888
  "deleted": "0.8.0",
4889
- "replacement": "elevation.surface.overlay",
4889
+ "replacement": "elevation.surface.overlay.[default]",
4890
4890
  "description": "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
4891
4891
  },
4892
4892
  "value": "#FFFFFF",
@@ -4899,7 +4899,7 @@ var tokens = [{
4899
4899
  "introduced": "0.0.15",
4900
4900
  "deprecated": "0.6.0",
4901
4901
  "deleted": "0.8.0",
4902
- "replacement": "elevation.surface.overlay",
4902
+ "replacement": "elevation.surface.overlay.[default]",
4903
4903
  "description": "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
4904
4904
  },
4905
4905
  "value": "N0"
@@ -6606,8 +6606,50 @@ var tokens = [{
6606
6606
  },
6607
6607
  "value": "N0"
6608
6608
  },
6609
- "name": "elevation.surface.[default]",
6610
- "path": ["elevation", "surface", "[default]"]
6609
+ "name": "elevation.surface.[default].[default]",
6610
+ "path": ["elevation", "surface", "[default]", "[default]"]
6611
+ }, {
6612
+ "attributes": {
6613
+ "group": "paint",
6614
+ "state": "active",
6615
+ "introduced": "0.10.20",
6616
+ "description": "Hovered state of elevation.surface"
6617
+ },
6618
+ "value": "#F1F2F4",
6619
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6620
+ "isSource": true,
6621
+ "original": {
6622
+ "attributes": {
6623
+ "group": "paint",
6624
+ "state": "active",
6625
+ "introduced": "0.10.20",
6626
+ "description": "Hovered state of elevation.surface"
6627
+ },
6628
+ "value": "N200"
6629
+ },
6630
+ "name": "elevation.surface.[default].hovered",
6631
+ "path": ["elevation", "surface", "[default]", "hovered"]
6632
+ }, {
6633
+ "attributes": {
6634
+ "group": "paint",
6635
+ "state": "active",
6636
+ "introduced": "0.10.20",
6637
+ "description": "Pressed state of elevation.surface"
6638
+ },
6639
+ "value": "#DCDFE4",
6640
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6641
+ "isSource": true,
6642
+ "original": {
6643
+ "attributes": {
6644
+ "group": "paint",
6645
+ "state": "active",
6646
+ "introduced": "0.10.20",
6647
+ "description": "Pressed state of elevation.surface"
6648
+ },
6649
+ "value": "N300"
6650
+ },
6651
+ "name": "elevation.surface.[default].pressed",
6652
+ "path": ["elevation", "surface", "[default]", "pressed"]
6611
6653
  }, {
6612
6654
  "attributes": {
6613
6655
  "group": "paint",
@@ -6634,7 +6676,7 @@ var tokens = [{
6634
6676
  "group": "paint",
6635
6677
  "state": "active",
6636
6678
  "introduced": "0.6.0",
6637
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6679
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6638
6680
  },
6639
6681
  "value": "#FFFFFF",
6640
6682
  "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
@@ -6644,18 +6686,60 @@ var tokens = [{
6644
6686
  "group": "paint",
6645
6687
  "state": "active",
6646
6688
  "introduced": "0.6.0",
6647
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6689
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6648
6690
  },
6649
6691
  "value": "N0"
6650
6692
  },
6651
- "name": "elevation.surface.raised",
6652
- "path": ["elevation", "surface", "raised"]
6693
+ "name": "elevation.surface.raised.[default]",
6694
+ "path": ["elevation", "surface", "raised", "[default]"]
6695
+ }, {
6696
+ "attributes": {
6697
+ "group": "paint",
6698
+ "state": "active",
6699
+ "introduced": "0.10.20",
6700
+ "description": "Hovered state of elevation.surface.raised"
6701
+ },
6702
+ "value": "#F1F2F4",
6703
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6704
+ "isSource": true,
6705
+ "original": {
6706
+ "attributes": {
6707
+ "group": "paint",
6708
+ "state": "active",
6709
+ "introduced": "0.10.20",
6710
+ "description": "Hovered state of elevation.surface.raised"
6711
+ },
6712
+ "value": "N200"
6713
+ },
6714
+ "name": "elevation.surface.raised.hovered",
6715
+ "path": ["elevation", "surface", "raised", "hovered"]
6716
+ }, {
6717
+ "attributes": {
6718
+ "group": "paint",
6719
+ "state": "active",
6720
+ "introduced": "0.10.20",
6721
+ "description": "Pressed state of elevation.surface.raised"
6722
+ },
6723
+ "value": "#DCDFE4",
6724
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6725
+ "isSource": true,
6726
+ "original": {
6727
+ "attributes": {
6728
+ "group": "paint",
6729
+ "state": "active",
6730
+ "introduced": "0.10.20",
6731
+ "description": "Pressed state of elevation.surface.raised"
6732
+ },
6733
+ "value": "N300"
6734
+ },
6735
+ "name": "elevation.surface.raised.pressed",
6736
+ "path": ["elevation", "surface", "raised", "pressed"]
6653
6737
  }, {
6654
6738
  "attributes": {
6655
6739
  "group": "paint",
6656
6740
  "state": "active",
6657
6741
  "introduced": "0.6.0",
6658
- "description": "Use for the background of elements that sit on top of they UI, such as modals, dropdown menus, flags, and inline dialogs. Combine with elevation.shadow.overlay\n\nAlso use for the background of raised cards in a dragged state."
6742
+ "description": "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
6659
6743
  },
6660
6744
  "value": "#FFFFFF",
6661
6745
  "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
@@ -6665,12 +6749,54 @@ var tokens = [{
6665
6749
  "group": "paint",
6666
6750
  "state": "active",
6667
6751
  "introduced": "0.6.0",
6668
- "description": "Use for the background of elements that sit on top of they UI, such as modals, dropdown menus, flags, and inline dialogs. Combine with elevation.shadow.overlay\n\nAlso use for the background of raised cards in a dragged state."
6752
+ "description": "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
6669
6753
  },
6670
6754
  "value": "N0"
6671
6755
  },
6672
- "name": "elevation.surface.overlay",
6673
- "path": ["elevation", "surface", "overlay"]
6756
+ "name": "elevation.surface.overlay.[default]",
6757
+ "path": ["elevation", "surface", "overlay", "[default]"]
6758
+ }, {
6759
+ "attributes": {
6760
+ "group": "paint",
6761
+ "state": "active",
6762
+ "introduced": "0.10.20",
6763
+ "description": "Hovered state of elevation.surface.overlay"
6764
+ },
6765
+ "value": "#F1F2F4",
6766
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6767
+ "isSource": true,
6768
+ "original": {
6769
+ "attributes": {
6770
+ "group": "paint",
6771
+ "state": "active",
6772
+ "introduced": "0.10.20",
6773
+ "description": "Hovered state of elevation.surface.overlay"
6774
+ },
6775
+ "value": "N200"
6776
+ },
6777
+ "name": "elevation.surface.overlay.hovered",
6778
+ "path": ["elevation", "surface", "overlay", "hovered"]
6779
+ }, {
6780
+ "attributes": {
6781
+ "group": "paint",
6782
+ "state": "active",
6783
+ "introduced": "0.10.20",
6784
+ "description": "Pressed state of elevation.surface.overlay"
6785
+ },
6786
+ "value": "#DCDFE4",
6787
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6788
+ "isSource": true,
6789
+ "original": {
6790
+ "attributes": {
6791
+ "group": "paint",
6792
+ "state": "active",
6793
+ "introduced": "0.10.20",
6794
+ "description": "Pressed state of elevation.surface.overlay"
6795
+ },
6796
+ "value": "N300"
6797
+ },
6798
+ "name": "elevation.surface.overlay.pressed",
6799
+ "path": ["elevation", "surface", "overlay", "pressed"]
6674
6800
  }, {
6675
6801
  "attributes": {
6676
6802
  "group": "opacity",
@@ -14,7 +14,7 @@ var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
14
14
  var _constants = require("./constants");
15
15
 
16
16
  var name = "@atlaskit/tokens";
17
- var version = "0.10.19";
17
+ var version = "0.10.20";
18
18
 
19
19
  function token(path, fallback) {
20
20
  var token = _tokenNames.default[path];
@@ -9,6 +9,18 @@ var shadow = {
9
9
  shadow: {
10
10
  raised: {
11
11
  value: [{
12
+ // This inset shadow is just to allow animations between shadow types
13
+ radius: 0,
14
+ spread: 1,
15
+ // @ts-ignore no current palette colour for this yet
16
+ color: '#000000',
17
+ offset: {
18
+ x: 0,
19
+ y: 0
20
+ },
21
+ opacity: 0,
22
+ inset: true
23
+ }, {
12
24
  radius: 1,
13
25
  offset: {
14
26
  x: 0,
@@ -8,16 +8,40 @@ var elevation = {
8
8
  elevation: {
9
9
  surface: {
10
10
  '[default]': {
11
- value: 'DN0'
11
+ '[default]': {
12
+ value: 'DN0'
13
+ },
14
+ hovered: {
15
+ value: 'DN100'
16
+ },
17
+ pressed: {
18
+ value: 'DN200'
19
+ }
12
20
  },
13
21
  sunken: {
14
22
  value: 'DN-100'
15
23
  },
16
24
  raised: {
17
- value: 'DN100'
25
+ '[default]': {
26
+ value: 'DN100'
27
+ },
28
+ hovered: {
29
+ value: 'DN200'
30
+ },
31
+ pressed: {
32
+ value: 'DN300'
33
+ }
18
34
  },
19
35
  overlay: {
20
- value: 'DN200'
36
+ '[default]': {
37
+ value: 'DN200'
38
+ },
39
+ hovered: {
40
+ value: 'DN300'
41
+ },
42
+ pressed: {
43
+ value: 'DN400'
44
+ }
21
45
  }
22
46
  }
23
47
  }
@@ -9,6 +9,18 @@ var shadow = {
9
9
  shadow: {
10
10
  raised: {
11
11
  value: [{
12
+ // This inset shadow is just to allow animations between shadow types
13
+ radius: 0,
14
+ spread: 1,
15
+ // @ts-ignore no current palette colour for this yet
16
+ color: '#000000',
17
+ offset: {
18
+ x: 0,
19
+ y: 0
20
+ },
21
+ opacity: 0,
22
+ inset: true
23
+ }, {
12
24
  radius: 1,
13
25
  offset: {
14
26
  x: 0,
@@ -8,16 +8,40 @@ var elevation = {
8
8
  elevation: {
9
9
  surface: {
10
10
  '[default]': {
11
- value: 'DN30'
11
+ '[default]': {
12
+ value: 'DN30'
13
+ },
14
+ hovered: {
15
+ value: 'DN40'
16
+ },
17
+ pressed: {
18
+ value: 'DN50'
19
+ }
12
20
  },
13
21
  sunken: {
14
22
  value: 'DN100'
15
23
  },
16
24
  raised: {
17
- value: 'DN80'
25
+ '[default]': {
26
+ value: 'DN80'
27
+ },
28
+ hovered: {
29
+ value: 'DN90'
30
+ },
31
+ pressed: {
32
+ value: 'DN100'
33
+ }
18
34
  },
19
35
  overlay: {
20
- value: 'DN200'
36
+ '[default]': {
37
+ value: 'DN200'
38
+ },
39
+ hovered: {
40
+ value: 'DN300'
41
+ },
42
+ pressed: {
43
+ value: 'DN400'
44
+ }
21
45
  }
22
46
  }
23
47
  }
@@ -8,16 +8,40 @@ var elevation = {
8
8
  elevation: {
9
9
  surface: {
10
10
  '[default]': {
11
- value: 'N0'
11
+ '[default]': {
12
+ value: 'N0'
13
+ },
14
+ hovered: {
15
+ value: 'N10'
16
+ },
17
+ pressed: {
18
+ value: 'N20'
19
+ }
12
20
  },
13
21
  sunken: {
14
22
  value: 'N20'
15
23
  },
16
24
  raised: {
17
- value: 'N0'
25
+ '[default]': {
26
+ value: 'N0'
27
+ },
28
+ hovered: {
29
+ value: 'N10'
30
+ },
31
+ pressed: {
32
+ value: 'N20'
33
+ }
18
34
  },
19
35
  overlay: {
20
- value: 'N0'
36
+ '[default]': {
37
+ value: 'N0'
38
+ },
39
+ hovered: {
40
+ value: 'N10'
41
+ },
42
+ pressed: {
43
+ value: 'N20'
44
+ }
21
45
  }
22
46
  }
23
47
  }
@@ -8,16 +8,40 @@ var elevation = {
8
8
  elevation: {
9
9
  surface: {
10
10
  '[default]': {
11
- value: 'N0'
11
+ '[default]': {
12
+ value: 'N0'
13
+ },
14
+ hovered: {
15
+ value: 'N200'
16
+ },
17
+ pressed: {
18
+ value: 'N300'
19
+ }
12
20
  },
13
21
  sunken: {
14
22
  value: 'N100'
15
23
  },
16
24
  raised: {
17
- value: 'N0'
25
+ '[default]': {
26
+ value: 'N0'
27
+ },
28
+ hovered: {
29
+ value: 'N200'
30
+ },
31
+ pressed: {
32
+ value: 'N300'
33
+ }
18
34
  },
19
35
  overlay: {
20
- value: 'N0'
36
+ '[default]': {
37
+ value: 'N0'
38
+ },
39
+ hovered: {
40
+ value: 'N200'
41
+ },
42
+ pressed: {
43
+ value: 'N300'
44
+ }
21
45
  }
22
46
  }
23
47
  }
@@ -611,7 +611,7 @@ var color = {
611
611
  introduced: '0.0.15',
612
612
  deprecated: '0.6.0',
613
613
  deleted: '0.8.0',
614
- replacement: 'elevation.surface.raised',
614
+ replacement: 'elevation.surface.raised.[default]',
615
615
  description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
616
616
  }
617
617
  },
@@ -622,7 +622,7 @@ var color = {
622
622
  introduced: '0.0.15',
623
623
  deprecated: '0.6.0',
624
624
  deleted: '0.8.0',
625
- replacement: 'elevation.surface.[default]',
625
+ replacement: 'elevation.surface.[default].[default]',
626
626
  description: 'Use as the primary background for the UI'
627
627
  }
628
628
  },
@@ -646,7 +646,7 @@ var color = {
646
646
  introduced: '0.0.15',
647
647
  deprecated: '0.6.0',
648
648
  deleted: '0.8.0',
649
- replacement: 'elevation.surface.overlay',
649
+ replacement: 'elevation.surface.overlay.[default]',
650
650
  description: "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
651
651
  }
652
652
  },
@@ -8,11 +8,29 @@ var shadow = {
8
8
  elevation: {
9
9
  surface: {
10
10
  '[default]': {
11
- attributes: {
12
- group: 'paint',
13
- state: 'active',
14
- introduced: '0.6.0',
15
- description: 'Use as the primary background for the UI.'
11
+ '[default]': {
12
+ attributes: {
13
+ group: 'paint',
14
+ state: 'active',
15
+ introduced: '0.6.0',
16
+ description: 'Use as the primary background for the UI.'
17
+ }
18
+ },
19
+ hovered: {
20
+ attributes: {
21
+ group: 'paint',
22
+ state: 'active',
23
+ introduced: '0.10.20',
24
+ description: 'Hovered state of elevation.surface'
25
+ }
26
+ },
27
+ pressed: {
28
+ attributes: {
29
+ group: 'paint',
30
+ state: 'active',
31
+ introduced: '0.10.20',
32
+ description: 'Pressed state of elevation.surface'
33
+ }
16
34
  }
17
35
  },
18
36
  sunken: {
@@ -24,19 +42,55 @@ var shadow = {
24
42
  }
25
43
  },
26
44
  raised: {
27
- attributes: {
28
- group: 'paint',
29
- state: 'active',
30
- introduced: '0.6.0',
31
- description: 'Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised'
45
+ '[default]': {
46
+ attributes: {
47
+ group: 'paint',
48
+ state: 'active',
49
+ introduced: '0.6.0',
50
+ description: 'Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised.'
51
+ }
52
+ },
53
+ hovered: {
54
+ attributes: {
55
+ group: 'paint',
56
+ state: 'active',
57
+ introduced: '0.10.20',
58
+ description: 'Hovered state of elevation.surface.raised'
59
+ }
60
+ },
61
+ pressed: {
62
+ attributes: {
63
+ group: 'paint',
64
+ state: 'active',
65
+ introduced: '0.10.20',
66
+ description: 'Pressed state of elevation.surface.raised'
67
+ }
32
68
  }
33
69
  },
34
70
  overlay: {
35
- attributes: {
36
- group: 'paint',
37
- state: 'active',
38
- introduced: '0.6.0',
39
- description: "Use for the background of elements that sit on top of they UI, such as modals, dropdown menus, flags, and inline dialogs. Combine with elevation.shadow.overlay\n\nAlso use for the background of raised cards in a dragged state."
71
+ '[default]': {
72
+ attributes: {
73
+ group: 'paint',
74
+ state: 'active',
75
+ introduced: '0.6.0',
76
+ description: "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
77
+ }
78
+ },
79
+ hovered: {
80
+ attributes: {
81
+ group: 'paint',
82
+ state: 'active',
83
+ introduced: '0.10.20',
84
+ description: "Hovered state of elevation.surface.overlay"
85
+ }
86
+ },
87
+ pressed: {
88
+ attributes: {
89
+ group: 'paint',
90
+ state: 'active',
91
+ introduced: '0.10.20',
92
+ description: "Pressed state of elevation.surface.overlay"
93
+ }
40
94
  }
41
95
  }
42
96
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.19",
3
+ "version": "0.10.20",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -12,7 +12,7 @@
12
12
  * These changes will then be picked up by our tooling which will attempt to
13
13
  * migrate as many of these renames as possible.
14
14
  *
15
- * @codegen <<SignedSource::afc1ce63c4571109e333891b70af2ae8>>
15
+ * @codegen <<SignedSource::785f21ff78f22bc07f51619e1add8ba9>>
16
16
  * @codegenCommand yarn build tokens
17
17
  */
18
18
  const renameMapper = [{
@@ -218,15 +218,15 @@ const renameMapper = [{
218
218
  }, {
219
219
  "path": "color.background.card",
220
220
  "state": "deleted",
221
- "replacement": "elevation.surface.raised"
221
+ "replacement": "elevation.surface.raised.[default]"
222
222
  }, {
223
223
  "path": "color.background.default",
224
224
  "state": "deleted",
225
- "replacement": "elevation.surface.[default]"
225
+ "replacement": "elevation.surface.[default].[default]"
226
226
  }, {
227
227
  "path": "color.background.overlay",
228
228
  "state": "deleted",
229
- "replacement": "elevation.surface.overlay"
229
+ "replacement": "elevation.surface.overlay.[default]"
230
230
  }, {
231
231
  "path": "color.background.subtleBorderedNeutral.pressed",
232
232
  "state": "deleted",
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Token names mapped to their value in the default Atlassian theme ('light')
5
5
  *
6
- * @codegen <<SignedSource::d33654f7422a0d210f1d8a1bf4497a45>>
6
+ * @codegen <<SignedSource::59a1a4aaa5f768efccaed2c726fc2b08>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  const defaultTokenValues = {
@@ -285,9 +285,15 @@ const defaultTokenValues = {
285
285
  'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
286
286
  'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
287
287
  'elevation.surface': '#FFFFFF',
288
+ 'elevation.surface.hovered': '#F1F2F4',
289
+ 'elevation.surface.pressed': '#DCDFE4',
288
290
  'elevation.surface.sunken': '#F7F8F9',
289
291
  'elevation.surface.raised': '#FFFFFF',
292
+ 'elevation.surface.raised.hovered': '#F1F2F4',
293
+ 'elevation.surface.raised.pressed': '#DCDFE4',
290
294
  'elevation.surface.overlay': '#FFFFFF',
295
+ 'elevation.surface.overlay.hovered': '#F1F2F4',
296
+ 'elevation.surface.overlay.pressed': '#DCDFE4',
291
297
  'opacity.disabled': '0.4',
292
298
  'opacity.loading': '0.2',
293
299
  'utility.UNSAFE_util.transparent': 'transparent',