@atlaskit/tokens 0.10.19 → 0.10.21

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 (162) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/babel-plugin/package.json +8 -1
  3. package/css/atlassian-dark.css +8 -2
  4. package/css/atlassian-legacy-dark.css +8 -2
  5. package/css/atlassian-legacy-light.css +7 -1
  6. package/css/atlassian-light.css +7 -1
  7. package/dist/cjs/artifacts/rename-mapping.js +4 -4
  8. package/dist/cjs/artifacts/token-default-values.js +7 -1
  9. package/dist/cjs/artifacts/token-names.js +7 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +163 -17
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +143 -17
  14. package/dist/cjs/get-token.js +1 -1
  15. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +12 -0
  16. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +27 -3
  17. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  18. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  19. package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  20. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +27 -3
  21. package/dist/cjs/tokens/default/deprecated/deprecated.js +3 -3
  22. package/dist/cjs/tokens/default/elevation/surface.js +69 -15
  23. package/dist/cjs/version.json +1 -1
  24. package/dist/es2019/artifacts/rename-mapping.js +4 -4
  25. package/dist/es2019/artifacts/token-default-values.js +7 -1
  26. package/dist/es2019/artifacts/token-names.js +7 -1
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +163 -17
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +143 -17
  31. package/dist/es2019/get-token.js +1 -1
  32. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +12 -0
  33. package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +27 -3
  34. package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  35. package/dist/es2019/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  36. package/dist/es2019/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  37. package/dist/es2019/tokens/atlassian-light/elevation/surface.js +27 -3
  38. package/dist/es2019/tokens/default/deprecated/deprecated.js +3 -3
  39. package/dist/es2019/tokens/default/elevation/surface.js +69 -17
  40. package/dist/es2019/version.json +1 -1
  41. package/dist/esm/artifacts/rename-mapping.js +4 -4
  42. package/dist/esm/artifacts/token-default-values.js +7 -1
  43. package/dist/esm/artifacts/token-names.js +7 -1
  44. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +163 -17
  45. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +163 -17
  46. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +143 -17
  47. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +143 -17
  48. package/dist/esm/get-token.js +1 -1
  49. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +12 -0
  50. package/dist/esm/tokens/atlassian-dark/elevation/surface.js +27 -3
  51. package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
  52. package/dist/esm/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
  53. package/dist/esm/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
  54. package/dist/esm/tokens/atlassian-light/elevation/surface.js +27 -3
  55. package/dist/esm/tokens/default/deprecated/deprecated.js +3 -3
  56. package/dist/esm/tokens/default/elevation/surface.js +69 -15
  57. package/dist/esm/version.json +1 -1
  58. package/dist/types/artifacts/rename-mapping.d.ts +1 -1
  59. package/dist/types/artifacts/token-default-values.d.ts +7 -1
  60. package/dist/types/artifacts/token-names.d.ts +13 -1
  61. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
  62. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  63. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  64. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  65. package/dist/types/artifacts/types-internal.d.ts +2 -2
  66. package/dist/types/artifacts/types.d.ts +2 -2
  67. package/dist/types/types.d.ts +15 -3
  68. package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +41 -0
  69. package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +41 -0
  70. package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +26 -0
  71. package/dist/types-ts4.0/artifacts/token-default-values.d.ts +302 -0
  72. package/dist/types-ts4.0/artifacts/token-names.d.ts +593 -0
  73. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +222 -0
  74. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +222 -0
  75. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +174 -0
  76. package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +174 -0
  77. package/dist/types-ts4.0/artifacts/types-internal.d.ts +6 -0
  78. package/dist/types-ts4.0/artifacts/types.d.ts +6 -0
  79. package/dist/types-ts4.0/babel-plugin/index.d.ts +1 -0
  80. package/dist/types-ts4.0/babel-plugin/plugin.d.ts +14 -0
  81. package/dist/types-ts4.0/constants.d.ts +17 -0
  82. package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +1 -0
  83. package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +1 -0
  84. package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +1 -0
  85. package/dist/types-ts4.0/entry-points/token-ids.d.ts +1 -0
  86. package/dist/types-ts4.0/entry-points/token-names.d.ts +2 -0
  87. package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +24 -0
  88. package/dist/types-ts4.0/figma/types.d.ts +40 -0
  89. package/dist/types-ts4.0/get-token.d.ts +4 -0
  90. package/dist/types-ts4.0/index.d.ts +5 -0
  91. package/dist/types-ts4.0/palettes/legacy-palette.d.ts +10 -0
  92. package/dist/types-ts4.0/palettes/palette.d.ts +5 -0
  93. package/dist/types-ts4.0/set-global-theme.d.ts +3 -0
  94. package/dist/types-ts4.0/theme-change-observer.d.ts +35 -0
  95. package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +4 -0
  96. package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +4 -0
  97. package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +4 -0
  98. package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +4 -0
  99. package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +4 -0
  100. package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +4 -0
  101. package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +4 -0
  102. package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +4 -0
  103. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +4 -0
  104. package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +4 -0
  105. package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +3 -0
  106. package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +5 -0
  107. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +4 -0
  108. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +4 -0
  109. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +4 -0
  110. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +4 -0
  111. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +4 -0
  112. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +4 -0
  113. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +4 -0
  114. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +4 -0
  115. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +4 -0
  116. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +4 -0
  117. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +3 -0
  118. package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +5 -0
  119. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +4 -0
  120. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +4 -0
  121. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +4 -0
  122. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +4 -0
  123. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +4 -0
  124. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +4 -0
  125. package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +4 -0
  126. package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +4 -0
  127. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +4 -0
  128. package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +4 -0
  129. package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +3 -0
  130. package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +5 -0
  131. package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +4 -0
  132. package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +4 -0
  133. package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +4 -0
  134. package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +4 -0
  135. package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +4 -0
  136. package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +4 -0
  137. package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +4 -0
  138. package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +4 -0
  139. package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +4 -0
  140. package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +4 -0
  141. package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +3 -0
  142. package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +5 -0
  143. package/dist/types-ts4.0/tokens/default/color/accent.d.ts +4 -0
  144. package/dist/types-ts4.0/tokens/default/color/background.d.ts +4 -0
  145. package/dist/types-ts4.0/tokens/default/color/border.d.ts +4 -0
  146. package/dist/types-ts4.0/tokens/default/color/icon.d.ts +4 -0
  147. package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +4 -0
  148. package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +4 -0
  149. package/dist/types-ts4.0/tokens/default/color/text.d.ts +4 -0
  150. package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +4 -0
  151. package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +4 -0
  152. package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +4 -0
  153. package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +3 -0
  154. package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +5 -0
  155. package/dist/types-ts4.0/types.d.ts +656 -0
  156. package/dist/types-ts4.0/utils/color-detection.d.ts +38 -0
  157. package/dist/types-ts4.0/utils/token-ids.d.ts +41 -0
  158. package/package.json +15 -7
  159. package/palettes-raw/package.json +8 -1
  160. package/rename-mapping/package.json +8 -1
  161. package/token-ids/package.json +8 -1
  162. package/token-names/package.json +8 -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::180d57420fabe8bfc7baadbcf7e39146>>
3
+ * @codegen <<SignedSource::de3cdd57ab11cc9e909f280b3ea720f0>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -4825,7 +4825,7 @@ const tokens = [{
4825
4825
  "introduced": "0.0.15",
4826
4826
  "deprecated": "0.6.0",
4827
4827
  "deleted": "0.8.0",
4828
- "replacement": "elevation.surface.raised",
4828
+ "replacement": "elevation.surface.raised.[default]",
4829
4829
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4830
4830
  },
4831
4831
  "value": "#FA11F2",
@@ -4838,7 +4838,7 @@ const tokens = [{
4838
4838
  "introduced": "0.0.15",
4839
4839
  "deprecated": "0.6.0",
4840
4840
  "deleted": "0.8.0",
4841
- "replacement": "elevation.surface.raised",
4841
+ "replacement": "elevation.surface.raised.[default]",
4842
4842
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4843
4843
  },
4844
4844
  "value": "#FA11F2"
@@ -4852,7 +4852,7 @@ const tokens = [{
4852
4852
  "introduced": "0.0.15",
4853
4853
  "deprecated": "0.6.0",
4854
4854
  "deleted": "0.8.0",
4855
- "replacement": "elevation.surface.[default]",
4855
+ "replacement": "elevation.surface.[default].[default]",
4856
4856
  "description": "Use as the primary background for the UI"
4857
4857
  },
4858
4858
  "value": "#FA11F2",
@@ -4865,7 +4865,7 @@ const tokens = [{
4865
4865
  "introduced": "0.0.15",
4866
4866
  "deprecated": "0.6.0",
4867
4867
  "deleted": "0.8.0",
4868
- "replacement": "elevation.surface.[default]",
4868
+ "replacement": "elevation.surface.[default].[default]",
4869
4869
  "description": "Use as the primary background for the UI"
4870
4870
  },
4871
4871
  "value": "#FA11F2"
@@ -4879,7 +4879,7 @@ const tokens = [{
4879
4879
  "introduced": "0.0.15",
4880
4880
  "deprecated": "0.6.0",
4881
4881
  "deleted": "0.8.0",
4882
- "replacement": "elevation.surface.overlay",
4882
+ "replacement": "elevation.surface.overlay.[default]",
4883
4883
  "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."
4884
4884
  },
4885
4885
  "value": "#FA11F2",
@@ -4892,7 +4892,7 @@ const tokens = [{
4892
4892
  "introduced": "0.0.15",
4893
4893
  "deprecated": "0.6.0",
4894
4894
  "deleted": "0.8.0",
4895
- "replacement": "elevation.surface.overlay",
4895
+ "replacement": "elevation.surface.overlay.[default]",
4896
4896
  "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."
4897
4897
  },
4898
4898
  "value": "#FA11F2"
@@ -6599,8 +6599,50 @@ const tokens = [{
6599
6599
  },
6600
6600
  "value": "N0"
6601
6601
  },
6602
- "name": "elevation.surface.[default]",
6603
- "path": ["elevation", "surface", "[default]"]
6602
+ "name": "elevation.surface.[default].[default]",
6603
+ "path": ["elevation", "surface", "[default]", "[default]"]
6604
+ }, {
6605
+ "attributes": {
6606
+ "group": "paint",
6607
+ "state": "active",
6608
+ "introduced": "0.10.20",
6609
+ "description": "Hovered state of elevation.surface"
6610
+ },
6611
+ "value": "#FAFBFC",
6612
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6613
+ "isSource": true,
6614
+ "original": {
6615
+ "attributes": {
6616
+ "group": "paint",
6617
+ "state": "active",
6618
+ "introduced": "0.10.20",
6619
+ "description": "Hovered state of elevation.surface"
6620
+ },
6621
+ "value": "N10"
6622
+ },
6623
+ "name": "elevation.surface.[default].hovered",
6624
+ "path": ["elevation", "surface", "[default]", "hovered"]
6625
+ }, {
6626
+ "attributes": {
6627
+ "group": "paint",
6628
+ "state": "active",
6629
+ "introduced": "0.10.20",
6630
+ "description": "Pressed state of elevation.surface"
6631
+ },
6632
+ "value": "#F4F5F7",
6633
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6634
+ "isSource": true,
6635
+ "original": {
6636
+ "attributes": {
6637
+ "group": "paint",
6638
+ "state": "active",
6639
+ "introduced": "0.10.20",
6640
+ "description": "Pressed state of elevation.surface"
6641
+ },
6642
+ "value": "N20"
6643
+ },
6644
+ "name": "elevation.surface.[default].pressed",
6645
+ "path": ["elevation", "surface", "[default]", "pressed"]
6604
6646
  }, {
6605
6647
  "attributes": {
6606
6648
  "group": "paint",
@@ -6627,7 +6669,7 @@ const tokens = [{
6627
6669
  "group": "paint",
6628
6670
  "state": "active",
6629
6671
  "introduced": "0.6.0",
6630
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6672
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6631
6673
  },
6632
6674
  "value": "#FFFFFF",
6633
6675
  "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
@@ -6637,18 +6679,60 @@ const tokens = [{
6637
6679
  "group": "paint",
6638
6680
  "state": "active",
6639
6681
  "introduced": "0.6.0",
6640
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6682
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6641
6683
  },
6642
6684
  "value": "N0"
6643
6685
  },
6644
- "name": "elevation.surface.raised",
6645
- "path": ["elevation", "surface", "raised"]
6686
+ "name": "elevation.surface.raised.[default]",
6687
+ "path": ["elevation", "surface", "raised", "[default]"]
6688
+ }, {
6689
+ "attributes": {
6690
+ "group": "paint",
6691
+ "state": "active",
6692
+ "introduced": "0.10.20",
6693
+ "description": "Hovered state of elevation.surface.raised"
6694
+ },
6695
+ "value": "#FAFBFC",
6696
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6697
+ "isSource": true,
6698
+ "original": {
6699
+ "attributes": {
6700
+ "group": "paint",
6701
+ "state": "active",
6702
+ "introduced": "0.10.20",
6703
+ "description": "Hovered state of elevation.surface.raised"
6704
+ },
6705
+ "value": "N10"
6706
+ },
6707
+ "name": "elevation.surface.raised.hovered",
6708
+ "path": ["elevation", "surface", "raised", "hovered"]
6709
+ }, {
6710
+ "attributes": {
6711
+ "group": "paint",
6712
+ "state": "active",
6713
+ "introduced": "0.10.20",
6714
+ "description": "Pressed state of elevation.surface.raised"
6715
+ },
6716
+ "value": "#F4F5F7",
6717
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6718
+ "isSource": true,
6719
+ "original": {
6720
+ "attributes": {
6721
+ "group": "paint",
6722
+ "state": "active",
6723
+ "introduced": "0.10.20",
6724
+ "description": "Pressed state of elevation.surface.raised"
6725
+ },
6726
+ "value": "N20"
6727
+ },
6728
+ "name": "elevation.surface.raised.pressed",
6729
+ "path": ["elevation", "surface", "raised", "pressed"]
6646
6730
  }, {
6647
6731
  "attributes": {
6648
6732
  "group": "paint",
6649
6733
  "state": "active",
6650
6734
  "introduced": "0.6.0",
6651
- "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."
6735
+ "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."
6652
6736
  },
6653
6737
  "value": "#FFFFFF",
6654
6738
  "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
@@ -6658,12 +6742,54 @@ const tokens = [{
6658
6742
  "group": "paint",
6659
6743
  "state": "active",
6660
6744
  "introduced": "0.6.0",
6661
- "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."
6745
+ "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."
6662
6746
  },
6663
6747
  "value": "N0"
6664
6748
  },
6665
- "name": "elevation.surface.overlay",
6666
- "path": ["elevation", "surface", "overlay"]
6749
+ "name": "elevation.surface.overlay.[default]",
6750
+ "path": ["elevation", "surface", "overlay", "[default]"]
6751
+ }, {
6752
+ "attributes": {
6753
+ "group": "paint",
6754
+ "state": "active",
6755
+ "introduced": "0.10.20",
6756
+ "description": "Hovered state of elevation.surface.overlay"
6757
+ },
6758
+ "value": "#FAFBFC",
6759
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6760
+ "isSource": true,
6761
+ "original": {
6762
+ "attributes": {
6763
+ "group": "paint",
6764
+ "state": "active",
6765
+ "introduced": "0.10.20",
6766
+ "description": "Hovered state of elevation.surface.overlay"
6767
+ },
6768
+ "value": "N10"
6769
+ },
6770
+ "name": "elevation.surface.overlay.hovered",
6771
+ "path": ["elevation", "surface", "overlay", "hovered"]
6772
+ }, {
6773
+ "attributes": {
6774
+ "group": "paint",
6775
+ "state": "active",
6776
+ "introduced": "0.10.20",
6777
+ "description": "Pressed state of elevation.surface.overlay"
6778
+ },
6779
+ "value": "#F4F5F7",
6780
+ "filePath": "src/tokens/atlassian-legacy-light/elevation/surface.tsx",
6781
+ "isSource": true,
6782
+ "original": {
6783
+ "attributes": {
6784
+ "group": "paint",
6785
+ "state": "active",
6786
+ "introduced": "0.10.20",
6787
+ "description": "Pressed state of elevation.surface.overlay"
6788
+ },
6789
+ "value": "N20"
6790
+ },
6791
+ "name": "elevation.surface.overlay.pressed",
6792
+ "path": ["elevation", "surface", "overlay", "pressed"]
6667
6793
  }, {
6668
6794
  "attributes": {
6669
6795
  "group": "opacity",
@@ -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::6977decc7ef870a337b1171d6775d9dc>>
3
+ * @codegen <<SignedSource::3e1535e99114e3ceefa050ae548283a1>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -4825,7 +4825,7 @@ const tokens = [{
4825
4825
  "introduced": "0.0.15",
4826
4826
  "deprecated": "0.6.0",
4827
4827
  "deleted": "0.8.0",
4828
- "replacement": "elevation.surface.raised",
4828
+ "replacement": "elevation.surface.raised.[default]",
4829
4829
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4830
4830
  },
4831
4831
  "value": "#FFFFFF",
@@ -4838,7 +4838,7 @@ const tokens = [{
4838
4838
  "introduced": "0.0.15",
4839
4839
  "deprecated": "0.6.0",
4840
4840
  "deleted": "0.8.0",
4841
- "replacement": "elevation.surface.raised",
4841
+ "replacement": "elevation.surface.raised.[default]",
4842
4842
  "description": "Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card."
4843
4843
  },
4844
4844
  "value": "N0"
@@ -4852,7 +4852,7 @@ const tokens = [{
4852
4852
  "introduced": "0.0.15",
4853
4853
  "deprecated": "0.6.0",
4854
4854
  "deleted": "0.8.0",
4855
- "replacement": "elevation.surface.[default]",
4855
+ "replacement": "elevation.surface.[default].[default]",
4856
4856
  "description": "Use as the primary background for the UI"
4857
4857
  },
4858
4858
  "value": "#FFFFFF",
@@ -4865,7 +4865,7 @@ const tokens = [{
4865
4865
  "introduced": "0.0.15",
4866
4866
  "deprecated": "0.6.0",
4867
4867
  "deleted": "0.8.0",
4868
- "replacement": "elevation.surface.[default]",
4868
+ "replacement": "elevation.surface.[default].[default]",
4869
4869
  "description": "Use as the primary background for the UI"
4870
4870
  },
4871
4871
  "value": "N0"
@@ -4879,7 +4879,7 @@ const tokens = [{
4879
4879
  "introduced": "0.0.15",
4880
4880
  "deprecated": "0.6.0",
4881
4881
  "deleted": "0.8.0",
4882
- "replacement": "elevation.surface.overlay",
4882
+ "replacement": "elevation.surface.overlay.[default]",
4883
4883
  "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."
4884
4884
  },
4885
4885
  "value": "#FFFFFF",
@@ -4892,7 +4892,7 @@ const tokens = [{
4892
4892
  "introduced": "0.0.15",
4893
4893
  "deprecated": "0.6.0",
4894
4894
  "deleted": "0.8.0",
4895
- "replacement": "elevation.surface.overlay",
4895
+ "replacement": "elevation.surface.overlay.[default]",
4896
4896
  "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."
4897
4897
  },
4898
4898
  "value": "N0"
@@ -6599,8 +6599,50 @@ const tokens = [{
6599
6599
  },
6600
6600
  "value": "N0"
6601
6601
  },
6602
- "name": "elevation.surface.[default]",
6603
- "path": ["elevation", "surface", "[default]"]
6602
+ "name": "elevation.surface.[default].[default]",
6603
+ "path": ["elevation", "surface", "[default]", "[default]"]
6604
+ }, {
6605
+ "attributes": {
6606
+ "group": "paint",
6607
+ "state": "active",
6608
+ "introduced": "0.10.20",
6609
+ "description": "Hovered state of elevation.surface"
6610
+ },
6611
+ "value": "#F1F2F4",
6612
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6613
+ "isSource": true,
6614
+ "original": {
6615
+ "attributes": {
6616
+ "group": "paint",
6617
+ "state": "active",
6618
+ "introduced": "0.10.20",
6619
+ "description": "Hovered state of elevation.surface"
6620
+ },
6621
+ "value": "N200"
6622
+ },
6623
+ "name": "elevation.surface.[default].hovered",
6624
+ "path": ["elevation", "surface", "[default]", "hovered"]
6625
+ }, {
6626
+ "attributes": {
6627
+ "group": "paint",
6628
+ "state": "active",
6629
+ "introduced": "0.10.20",
6630
+ "description": "Pressed state of elevation.surface"
6631
+ },
6632
+ "value": "#DCDFE4",
6633
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6634
+ "isSource": true,
6635
+ "original": {
6636
+ "attributes": {
6637
+ "group": "paint",
6638
+ "state": "active",
6639
+ "introduced": "0.10.20",
6640
+ "description": "Pressed state of elevation.surface"
6641
+ },
6642
+ "value": "N300"
6643
+ },
6644
+ "name": "elevation.surface.[default].pressed",
6645
+ "path": ["elevation", "surface", "[default]", "pressed"]
6604
6646
  }, {
6605
6647
  "attributes": {
6606
6648
  "group": "paint",
@@ -6627,7 +6669,7 @@ const tokens = [{
6627
6669
  "group": "paint",
6628
6670
  "state": "active",
6629
6671
  "introduced": "0.6.0",
6630
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6672
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6631
6673
  },
6632
6674
  "value": "#FFFFFF",
6633
6675
  "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
@@ -6637,18 +6679,60 @@ const tokens = [{
6637
6679
  "group": "paint",
6638
6680
  "state": "active",
6639
6681
  "introduced": "0.6.0",
6640
- "description": "Use for the background of raised cards, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised"
6682
+ "description": "Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised."
6641
6683
  },
6642
6684
  "value": "N0"
6643
6685
  },
6644
- "name": "elevation.surface.raised",
6645
- "path": ["elevation", "surface", "raised"]
6686
+ "name": "elevation.surface.raised.[default]",
6687
+ "path": ["elevation", "surface", "raised", "[default]"]
6688
+ }, {
6689
+ "attributes": {
6690
+ "group": "paint",
6691
+ "state": "active",
6692
+ "introduced": "0.10.20",
6693
+ "description": "Hovered state of elevation.surface.raised"
6694
+ },
6695
+ "value": "#F1F2F4",
6696
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6697
+ "isSource": true,
6698
+ "original": {
6699
+ "attributes": {
6700
+ "group": "paint",
6701
+ "state": "active",
6702
+ "introduced": "0.10.20",
6703
+ "description": "Hovered state of elevation.surface.raised"
6704
+ },
6705
+ "value": "N200"
6706
+ },
6707
+ "name": "elevation.surface.raised.hovered",
6708
+ "path": ["elevation", "surface", "raised", "hovered"]
6709
+ }, {
6710
+ "attributes": {
6711
+ "group": "paint",
6712
+ "state": "active",
6713
+ "introduced": "0.10.20",
6714
+ "description": "Pressed state of elevation.surface.raised"
6715
+ },
6716
+ "value": "#DCDFE4",
6717
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6718
+ "isSource": true,
6719
+ "original": {
6720
+ "attributes": {
6721
+ "group": "paint",
6722
+ "state": "active",
6723
+ "introduced": "0.10.20",
6724
+ "description": "Pressed state of elevation.surface.raised"
6725
+ },
6726
+ "value": "N300"
6727
+ },
6728
+ "name": "elevation.surface.raised.pressed",
6729
+ "path": ["elevation", "surface", "raised", "pressed"]
6646
6730
  }, {
6647
6731
  "attributes": {
6648
6732
  "group": "paint",
6649
6733
  "state": "active",
6650
6734
  "introduced": "0.6.0",
6651
- "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."
6735
+ "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."
6652
6736
  },
6653
6737
  "value": "#FFFFFF",
6654
6738
  "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
@@ -6658,12 +6742,54 @@ const tokens = [{
6658
6742
  "group": "paint",
6659
6743
  "state": "active",
6660
6744
  "introduced": "0.6.0",
6661
- "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."
6745
+ "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."
6662
6746
  },
6663
6747
  "value": "N0"
6664
6748
  },
6665
- "name": "elevation.surface.overlay",
6666
- "path": ["elevation", "surface", "overlay"]
6749
+ "name": "elevation.surface.overlay.[default]",
6750
+ "path": ["elevation", "surface", "overlay", "[default]"]
6751
+ }, {
6752
+ "attributes": {
6753
+ "group": "paint",
6754
+ "state": "active",
6755
+ "introduced": "0.10.20",
6756
+ "description": "Hovered state of elevation.surface.overlay"
6757
+ },
6758
+ "value": "#F1F2F4",
6759
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6760
+ "isSource": true,
6761
+ "original": {
6762
+ "attributes": {
6763
+ "group": "paint",
6764
+ "state": "active",
6765
+ "introduced": "0.10.20",
6766
+ "description": "Hovered state of elevation.surface.overlay"
6767
+ },
6768
+ "value": "N200"
6769
+ },
6770
+ "name": "elevation.surface.overlay.hovered",
6771
+ "path": ["elevation", "surface", "overlay", "hovered"]
6772
+ }, {
6773
+ "attributes": {
6774
+ "group": "paint",
6775
+ "state": "active",
6776
+ "introduced": "0.10.20",
6777
+ "description": "Pressed state of elevation.surface.overlay"
6778
+ },
6779
+ "value": "#DCDFE4",
6780
+ "filePath": "src/tokens/atlassian-light/elevation/surface.tsx",
6781
+ "isSource": true,
6782
+ "original": {
6783
+ "attributes": {
6784
+ "group": "paint",
6785
+ "state": "active",
6786
+ "introduced": "0.10.20",
6787
+ "description": "Pressed state of elevation.surface.overlay"
6788
+ },
6789
+ "value": "N300"
6790
+ },
6791
+ "name": "elevation.surface.overlay.pressed",
6792
+ "path": ["elevation", "surface", "overlay", "pressed"]
6667
6793
  }, {
6668
6794
  "attributes": {
6669
6795
  "group": "opacity",
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "0.10.19";
5
+ const version = "0.10.21";
6
6
 
7
7
  function token(path, fallback) {
8
8
  let token = tokens[path];
@@ -3,6 +3,18 @@ const shadow = {
3
3
  shadow: {
4
4
  raised: {
5
5
  value: [{
6
+ // This inset shadow is just to allow animations between shadow types
7
+ radius: 0,
8
+ spread: 1,
9
+ // @ts-ignore no current palette colour for this yet
10
+ color: '#000000',
11
+ offset: {
12
+ x: 0,
13
+ y: 0
14
+ },
15
+ opacity: 0,
16
+ inset: true
17
+ }, {
6
18
  radius: 1,
7
19
  offset: {
8
20
  x: 0,
@@ -2,16 +2,40 @@ const elevation = {
2
2
  elevation: {
3
3
  surface: {
4
4
  '[default]': {
5
- value: 'DN0'
5
+ '[default]': {
6
+ value: 'DN0'
7
+ },
8
+ hovered: {
9
+ value: 'DN100'
10
+ },
11
+ pressed: {
12
+ value: 'DN200'
13
+ }
6
14
  },
7
15
  sunken: {
8
16
  value: 'DN-100'
9
17
  },
10
18
  raised: {
11
- value: 'DN100'
19
+ '[default]': {
20
+ value: 'DN100'
21
+ },
22
+ hovered: {
23
+ value: 'DN200'
24
+ },
25
+ pressed: {
26
+ value: 'DN300'
27
+ }
12
28
  },
13
29
  overlay: {
14
- value: 'DN200'
30
+ '[default]': {
31
+ value: 'DN200'
32
+ },
33
+ hovered: {
34
+ value: 'DN300'
35
+ },
36
+ pressed: {
37
+ value: 'DN400'
38
+ }
15
39
  }
16
40
  }
17
41
  }
@@ -3,6 +3,18 @@ const shadow = {
3
3
  shadow: {
4
4
  raised: {
5
5
  value: [{
6
+ // This inset shadow is just to allow animations between shadow types
7
+ radius: 0,
8
+ spread: 1,
9
+ // @ts-ignore no current palette colour for this yet
10
+ color: '#000000',
11
+ offset: {
12
+ x: 0,
13
+ y: 0
14
+ },
15
+ opacity: 0,
16
+ inset: true
17
+ }, {
6
18
  radius: 1,
7
19
  offset: {
8
20
  x: 0,
@@ -2,16 +2,40 @@ const elevation = {
2
2
  elevation: {
3
3
  surface: {
4
4
  '[default]': {
5
- value: 'DN30'
5
+ '[default]': {
6
+ value: 'DN30'
7
+ },
8
+ hovered: {
9
+ value: 'DN40'
10
+ },
11
+ pressed: {
12
+ value: 'DN50'
13
+ }
6
14
  },
7
15
  sunken: {
8
16
  value: 'DN100'
9
17
  },
10
18
  raised: {
11
- value: 'DN80'
19
+ '[default]': {
20
+ value: 'DN80'
21
+ },
22
+ hovered: {
23
+ value: 'DN90'
24
+ },
25
+ pressed: {
26
+ value: 'DN100'
27
+ }
12
28
  },
13
29
  overlay: {
14
- value: 'DN200'
30
+ '[default]': {
31
+ value: 'DN200'
32
+ },
33
+ hovered: {
34
+ value: 'DN300'
35
+ },
36
+ pressed: {
37
+ value: 'DN400'
38
+ }
15
39
  }
16
40
  }
17
41
  }
@@ -2,16 +2,40 @@ const elevation = {
2
2
  elevation: {
3
3
  surface: {
4
4
  '[default]': {
5
- value: 'N0'
5
+ '[default]': {
6
+ value: 'N0'
7
+ },
8
+ hovered: {
9
+ value: 'N10'
10
+ },
11
+ pressed: {
12
+ value: 'N20'
13
+ }
6
14
  },
7
15
  sunken: {
8
16
  value: 'N20'
9
17
  },
10
18
  raised: {
11
- value: 'N0'
19
+ '[default]': {
20
+ value: 'N0'
21
+ },
22
+ hovered: {
23
+ value: 'N10'
24
+ },
25
+ pressed: {
26
+ value: 'N20'
27
+ }
12
28
  },
13
29
  overlay: {
14
- value: 'N0'
30
+ '[default]': {
31
+ value: 'N0'
32
+ },
33
+ hovered: {
34
+ value: 'N10'
35
+ },
36
+ pressed: {
37
+ value: 'N20'
38
+ }
15
39
  }
16
40
  }
17
41
  }