@atlaskit/tokens 1.15.2 → 1.17.0

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 (100) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
  3. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
  4. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
  5. package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
  6. package/dist/cjs/artifacts/token-default-values.js +2 -1
  7. package/dist/cjs/artifacts/token-names.js +2 -1
  8. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +31 -11
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +23 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +23 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +23 -1
  12. package/dist/cjs/constants.js +4 -2
  13. package/dist/cjs/get-token-value.js +1 -1
  14. package/dist/cjs/get-token.js +1 -1
  15. package/dist/cjs/index.js +8 -1
  16. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +6 -6
  17. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +9 -0
  18. package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +9 -0
  19. package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +9 -0
  20. package/dist/cjs/tokens/atlassian-light/utility/utility.js +9 -0
  21. package/dist/cjs/tokens/default/utility/utility.js +12 -0
  22. package/dist/es2019/artifacts/themes/atlassian-dark.js +4 -3
  23. package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +2 -1
  24. package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +2 -1
  25. package/dist/es2019/artifacts/themes/atlassian-light.js +2 -1
  26. package/dist/es2019/artifacts/token-default-values.js +2 -1
  27. package/dist/es2019/artifacts/token-names.js +2 -1
  28. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +31 -11
  29. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +23 -1
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +23 -1
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +23 -1
  32. package/dist/es2019/constants.js +2 -1
  33. package/dist/es2019/get-token-value.js +1 -1
  34. package/dist/es2019/get-token.js +1 -1
  35. package/dist/es2019/index.js +2 -1
  36. package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +6 -6
  37. package/dist/es2019/tokens/atlassian-dark/utility/utility.js +8 -0
  38. package/dist/es2019/tokens/atlassian-legacy-dark/utility/utility.js +8 -0
  39. package/dist/es2019/tokens/atlassian-legacy-light/utility/utility.js +8 -0
  40. package/dist/es2019/tokens/atlassian-light/utility/utility.js +8 -0
  41. package/dist/es2019/tokens/default/utility/utility.js +12 -0
  42. package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
  43. package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
  44. package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
  45. package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
  46. package/dist/esm/artifacts/token-default-values.js +2 -1
  47. package/dist/esm/artifacts/token-names.js +2 -1
  48. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +31 -11
  49. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +23 -1
  50. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +23 -1
  51. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +23 -1
  52. package/dist/esm/constants.js +2 -1
  53. package/dist/esm/get-token-value.js +1 -1
  54. package/dist/esm/get-token.js +1 -1
  55. package/dist/esm/index.js +2 -1
  56. package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +6 -6
  57. package/dist/esm/tokens/atlassian-dark/utility/utility.js +8 -0
  58. package/dist/esm/tokens/atlassian-legacy-dark/utility/utility.js +8 -0
  59. package/dist/esm/tokens/atlassian-legacy-light/utility/utility.js +8 -0
  60. package/dist/esm/tokens/atlassian-light/utility/utility.js +8 -0
  61. package/dist/esm/tokens/default/utility/utility.js +12 -0
  62. package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
  63. package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  64. package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  65. package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
  66. package/dist/types/artifacts/token-default-values.d.ts +2 -1
  67. package/dist/types/artifacts/token-names.d.ts +3 -1
  68. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -5
  69. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  70. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  71. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  72. package/dist/types/artifacts/types-internal.d.ts +2 -2
  73. package/dist/types/artifacts/types.d.ts +2 -2
  74. package/dist/types/constants.d.ts +1 -0
  75. package/dist/types/index.d.ts +1 -0
  76. package/dist/types/types.d.ts +5 -0
  77. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
  78. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
  79. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
  80. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
  81. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +2 -1
  82. package/dist/types-ts4.5/artifacts/token-names.d.ts +3 -1
  83. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -5
  84. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
  85. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
  86. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
  87. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  88. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  89. package/dist/types-ts4.5/constants.d.ts +1 -0
  90. package/dist/types-ts4.5/index.d.ts +1 -0
  91. package/dist/types-ts4.5/types.d.ts +5 -0
  92. package/figma/atlassian-dark.json +4 -5
  93. package/package.json +1 -1
  94. package/report.api.md +9 -2
  95. package/tmp/api-report-tmp.d.ts +7 -2
  96. package/dist/cjs/artifacts/themes/atlassian-dark-iteration.js +0 -13
  97. package/dist/es2019/artifacts/themes/atlassian-dark-iteration.js +0 -49
  98. package/dist/esm/artifacts/themes/atlassian-dark-iteration.js +0 -6
  99. package/dist/types/artifacts/themes/atlassian-dark-iteration.d.ts +0 -7
  100. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-iteration.d.ts +0 -7
@@ -9,7 +9,7 @@ var shadow = {
9
9
  shadow: {
10
10
  raised: {
11
11
  value: [{
12
- // This inset shadow is just to allow animations between shadow types
12
+ // This shadow is just to allow animations between shadow types
13
13
  radius: 0,
14
14
  spread: 1,
15
15
  // @ts-ignore no current palette colour for this yet
@@ -18,8 +18,7 @@ var shadow = {
18
18
  x: 0,
19
19
  y: 0
20
20
  },
21
- opacity: 0,
22
- inset: true
21
+ opacity: 0
23
22
  }, {
24
23
  radius: 1,
25
24
  offset: {
@@ -77,13 +76,13 @@ var shadow = {
77
76
  value: [{
78
77
  radius: 0,
79
78
  spread: 1,
80
- color: 'DarkNeutral100A',
79
+ // @ts-ignore no current palette colour for this yet
80
+ color: '#39424a',
81
81
  offset: {
82
82
  x: 0,
83
83
  y: 0
84
84
  },
85
- opacity: 0.12,
86
- inset: true
85
+ opacity: 1
87
86
  }, {
88
87
  radius: 12,
89
88
  offset: {
@@ -95,6 +94,7 @@ var shadow = {
95
94
  opacity: 0.36
96
95
  }, {
97
96
  radius: 1,
97
+ spread: 1,
98
98
  offset: {
99
99
  x: 0,
100
100
  y: 0
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _surface = _interopRequireDefault(require("../elevation/surface"));
7
9
  var utility = {
10
+ elevation: {
11
+ surface: {
12
+ current: {
13
+ value: _surface.default.elevation.surface['[default]']['[default]'].value
14
+ }
15
+ }
16
+ },
8
17
  UNSAFE: {
9
18
  transparent: {
10
19
  value: 'transparent'
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _surface = _interopRequireDefault(require("../elevation/surface"));
7
9
  var utility = {
10
+ elevation: {
11
+ surface: {
12
+ current: {
13
+ value: _surface.default.elevation.surface['[default]']['[default]'].value
14
+ }
15
+ }
16
+ },
8
17
  UNSAFE: {
9
18
  transparent: {
10
19
  value: 'transparent'
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _surface = _interopRequireDefault(require("../elevation/surface"));
7
9
  var utility = {
10
+ elevation: {
11
+ surface: {
12
+ current: {
13
+ value: _surface.default.elevation.surface['[default]']['[default]'].value
14
+ }
15
+ }
16
+ },
8
17
  UNSAFE: {
9
18
  transparent: {
10
19
  value: 'transparent'
@@ -1,14 +1,23 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _surface = _interopRequireDefault(require("../elevation/surface"));
7
9
  var utility = {
8
10
  UNSAFE: {
9
11
  transparent: {
10
12
  value: 'transparent'
11
13
  }
14
+ },
15
+ elevation: {
16
+ surface: {
17
+ current: {
18
+ value: _surface.default.elevation.surface['[default]']['[default]'].value
19
+ }
20
+ }
12
21
  }
13
22
  };
14
23
  var _default = {
@@ -14,6 +14,18 @@ var utility = {
14
14
  description: 'Transparent token used for backwards compatibility between new and old theming solutions'
15
15
  }
16
16
  }
17
+ },
18
+ elevation: {
19
+ surface: {
20
+ current: {
21
+ attributes: {
22
+ group: 'paint',
23
+ state: 'active',
24
+ introduced: '1.14.0',
25
+ description: "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
26
+ }
27
+ }
28
+ }
17
29
  }
18
30
  };
19
31
  var _default = {
@@ -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::e604987b15cfe0a366b3286681388a27>>
3
+ * @codegen <<SignedSource::ee1744fd5bb4236aa11d6b04264c3f36>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -308,10 +308,11 @@ html[data-color-mode="dark"][data-theme~="dark:dark"] {
308
308
  --ds-shadow-overflow: 0px 0px 12px #0304048F, 0px 0px 1px #03040480;
309
309
  --ds-shadow-overflow-perimeter: #03040480;
310
310
  --ds-shadow-overflow-spread: #0304048f;
311
- --ds-shadow-overlay: inset 0px 0px 0px 1px #BCD6F01F, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
312
- --ds-shadow-raised: inset 0px 0px 0px 1px #00000000, 0px 1px 1px #03040480, 0px 0px 1px #03040480;
311
+ --ds-shadow-overlay: 0px 0px 0px 1px #39424a, 0px 8px 12px #0304045C, 0px 0px 1px 1px #03040480;
312
+ --ds-shadow-raised: 0px 0px 0px 1px #00000000, 0px 1px 1px #03040480, 0px 0px 1px #03040480;
313
313
  --ds-opacity-disabled: 0.4;
314
314
  --ds-opacity-loading: 0.2;
315
315
  --ds-UNSAFE-transparent: transparent;
316
+ --ds-elevation-surface-current: #1D2125;
316
317
  }
317
318
  `;
@@ -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::1be3f0bcebfb31cee85358d44c955235>>
3
+ * @codegen <<SignedSource::894461832aeb4a23b3e2b76aabc72aa2>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -313,5 +313,6 @@ html[data-color-mode="dark"][data-theme~="dark:legacy-dark"] {
313
313
  --ds-opacity-disabled: 0.4;
314
314
  --ds-opacity-loading: 0.2;
315
315
  --ds-UNSAFE-transparent: transparent;
316
+ --ds-elevation-surface-current: #1B2638;
316
317
  }
317
318
  `;
@@ -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::6c33e244168e3fd752767b58505680ca>>
3
+ * @codegen <<SignedSource::bb1cb4ad45bcc3279ee350014d84f67d>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -313,5 +313,6 @@ html[data-color-mode="dark"][data-theme~="dark:legacy-light"] {
313
313
  --ds-opacity-disabled: 0.4;
314
314
  --ds-opacity-loading: 0.2;
315
315
  --ds-UNSAFE-transparent: transparent;
316
+ --ds-elevation-surface-current: #FFFFFF;
316
317
  }
317
318
  `;
@@ -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::b43cd34188f48573ad15a23eeca733c5>>
3
+ * @codegen <<SignedSource::4c22d0040bb94fc1c6de62360674bb8f>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -313,5 +313,6 @@ html[data-color-mode="dark"][data-theme~="dark:light"] {
313
313
  --ds-opacity-disabled: 0.4;
314
314
  --ds-opacity-loading: 0.2;
315
315
  --ds-UNSAFE-transparent: transparent;
316
+ --ds-elevation-surface-current: #FFFFFF;
316
317
  }
317
318
  `;
@@ -7,7 +7,7 @@
7
7
  * Token names mapped to their value in the default Atlassian themes ('light').
8
8
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
9
9
  *
10
- * @codegen <<SignedSource::7b0a463a4cd5463b13d98c47582631db>>
10
+ * @codegen <<SignedSource::840fd992afdcf5c5441bb2f2c6c314e7>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  const defaultTokenValues = {
@@ -317,6 +317,7 @@ const defaultTokenValues = {
317
317
  'opacity.disabled': '0.4',
318
318
  'opacity.loading': '0.2',
319
319
  'utility.UNSAFE.transparent': 'transparent',
320
+ 'utility.elevation.surface.current': '#FFFFFF',
320
321
  'border.radius.050': '0.125rem',
321
322
  'border.radius': '0.25rem',
322
323
  'border.radius.100': '0.25rem',
@@ -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::941775f7937b33243f0409b0ddd4fcd1>>
3
+ * @codegen <<SignedSource::b711d4f618026dc282f82bd14b87c1b3>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = {
@@ -310,6 +310,7 @@ const tokens = {
310
310
  'opacity.disabled': '--ds-opacity-disabled',
311
311
  'opacity.loading': '--ds-opacity-loading',
312
312
  'utility.UNSAFE.transparent': '--ds-UNSAFE-transparent',
313
+ 'utility.elevation.surface.current': '--ds-elevation-surface-current',
313
314
  'border.radius.050': '--ds-border-radius-050',
314
315
  'border.radius': '--ds-border-radius',
315
316
  'border.radius.100': '--ds-border-radius-100',
@@ -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::10dbc24fd477fa86fa9ecfdb19000ddf>>
3
+ * @codegen <<SignedSource::72b954bf07d3f88c91f182994cf842e8>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -6667,13 +6667,12 @@ const tokens = [{
6667
6667
  "value": [{
6668
6668
  "radius": 0,
6669
6669
  "spread": 1,
6670
- "color": "#BCD6F00A",
6670
+ "color": "#39424a",
6671
6671
  "offset": {
6672
6672
  "x": 0,
6673
6673
  "y": 0
6674
6674
  },
6675
- "opacity": 0.12,
6676
- "inset": true
6675
+ "opacity": 1
6677
6676
  }, {
6678
6677
  "radius": 12,
6679
6678
  "offset": {
@@ -6684,6 +6683,7 @@ const tokens = [{
6684
6683
  "opacity": 0.36
6685
6684
  }, {
6686
6685
  "radius": 1,
6686
+ "spread": 1,
6687
6687
  "offset": {
6688
6688
  "x": 0,
6689
6689
  "y": 0
@@ -6703,13 +6703,12 @@ const tokens = [{
6703
6703
  "value": [{
6704
6704
  "radius": 0,
6705
6705
  "spread": 1,
6706
- "color": "DarkNeutral100A",
6706
+ "color": "#39424a",
6707
6707
  "offset": {
6708
6708
  "x": 0,
6709
6709
  "y": 0
6710
6710
  },
6711
- "opacity": 0.12,
6712
- "inset": true
6711
+ "opacity": 1
6713
6712
  }, {
6714
6713
  "radius": 12,
6715
6714
  "offset": {
@@ -6720,6 +6719,7 @@ const tokens = [{
6720
6719
  "opacity": 0.36
6721
6720
  }, {
6722
6721
  "radius": 1,
6722
+ "spread": 1,
6723
6723
  "offset": {
6724
6724
  "x": 0,
6725
6725
  "y": 0
@@ -6746,8 +6746,7 @@ const tokens = [{
6746
6746
  "x": 0,
6747
6747
  "y": 0
6748
6748
  },
6749
- "opacity": 0,
6750
- "inset": true
6749
+ "opacity": 0
6751
6750
  }, {
6752
6751
  "radius": 1,
6753
6752
  "offset": {
@@ -6782,8 +6781,7 @@ const tokens = [{
6782
6781
  "x": 0,
6783
6782
  "y": 0
6784
6783
  },
6785
- "opacity": 0,
6786
- "inset": true
6784
+ "opacity": 0
6787
6785
  }, {
6788
6786
  "radius": 1,
6789
6787
  "offset": {
@@ -6871,5 +6869,27 @@ const tokens = [{
6871
6869
  "name": "utility.UNSAFE.transparent",
6872
6870
  "path": ["utility", "UNSAFE", "transparent"],
6873
6871
  "cleanName": "utility.UNSAFE.transparent"
6872
+ }, {
6873
+ "attributes": {
6874
+ "group": "paint",
6875
+ "state": "active",
6876
+ "introduced": "1.14.0",
6877
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6878
+ },
6879
+ "value": "#1D2125",
6880
+ "filePath": "src/tokens/atlassian-dark/utility/utility.tsx",
6881
+ "isSource": true,
6882
+ "original": {
6883
+ "attributes": {
6884
+ "group": "paint",
6885
+ "state": "active",
6886
+ "introduced": "1.14.0",
6887
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6888
+ },
6889
+ "value": "DarkNeutral100"
6890
+ },
6891
+ "name": "utility.elevation.surface.current",
6892
+ "path": ["utility", "elevation", "surface", "current"],
6893
+ "cleanName": "utility.elevation.surface.current"
6874
6894
  }];
6875
6895
  export default tokens;
@@ -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::6601df15e45294ebfb575b1b034a2aa7>>
3
+ * @codegen <<SignedSource::2a0fae81b3c8b6bd958a5afee23d5c83>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -6871,5 +6871,27 @@ const tokens = [{
6871
6871
  "name": "utility.UNSAFE.transparent",
6872
6872
  "path": ["utility", "UNSAFE", "transparent"],
6873
6873
  "cleanName": "utility.UNSAFE.transparent"
6874
+ }, {
6875
+ "attributes": {
6876
+ "group": "paint",
6877
+ "state": "active",
6878
+ "introduced": "1.14.0",
6879
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6880
+ },
6881
+ "value": "#1B2638",
6882
+ "filePath": "src/tokens/atlassian-legacy-dark/utility/utility.tsx",
6883
+ "isSource": true,
6884
+ "original": {
6885
+ "attributes": {
6886
+ "group": "paint",
6887
+ "state": "active",
6888
+ "introduced": "1.14.0",
6889
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6890
+ },
6891
+ "value": "DN30"
6892
+ },
6893
+ "name": "utility.elevation.surface.current",
6894
+ "path": ["utility", "elevation", "surface", "current"],
6895
+ "cleanName": "utility.elevation.surface.current"
6874
6896
  }];
6875
6897
  export default tokens;
@@ -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::309519b3d309ba66f31d019788cc5ef0>>
3
+ * @codegen <<SignedSource::b3ea1da0f88da3d30d4cda12e93afc66>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -6831,5 +6831,27 @@ const tokens = [{
6831
6831
  "name": "utility.UNSAFE.transparent",
6832
6832
  "path": ["utility", "UNSAFE", "transparent"],
6833
6833
  "cleanName": "utility.UNSAFE.transparent"
6834
+ }, {
6835
+ "attributes": {
6836
+ "group": "paint",
6837
+ "state": "active",
6838
+ "introduced": "1.14.0",
6839
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6840
+ },
6841
+ "value": "#FFFFFF",
6842
+ "filePath": "src/tokens/atlassian-legacy-light/utility/utility.tsx",
6843
+ "isSource": true,
6844
+ "original": {
6845
+ "attributes": {
6846
+ "group": "paint",
6847
+ "state": "active",
6848
+ "introduced": "1.14.0",
6849
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6850
+ },
6851
+ "value": "N0"
6852
+ },
6853
+ "name": "utility.elevation.surface.current",
6854
+ "path": ["utility", "elevation", "surface", "current"],
6855
+ "cleanName": "utility.elevation.surface.current"
6834
6856
  }];
6835
6857
  export default tokens;
@@ -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::c96324369c8a09e129803eff1f33d1e8>>
3
+ * @codegen <<SignedSource::433c4b4063a7a64e2fbe6ec86614ba47>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -6831,5 +6831,27 @@ const tokens = [{
6831
6831
  "name": "utility.UNSAFE.transparent",
6832
6832
  "path": ["utility", "UNSAFE", "transparent"],
6833
6833
  "cleanName": "utility.UNSAFE.transparent"
6834
+ }, {
6835
+ "attributes": {
6836
+ "group": "paint",
6837
+ "state": "active",
6838
+ "introduced": "1.14.0",
6839
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6840
+ },
6841
+ "value": "#FFFFFF",
6842
+ "filePath": "src/tokens/atlassian-light/utility/utility.tsx",
6843
+ "isSource": true,
6844
+ "original": {
6845
+ "attributes": {
6846
+ "group": "paint",
6847
+ "state": "active",
6848
+ "introduced": "1.14.0",
6849
+ "description": "A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value."
6850
+ },
6851
+ "value": "Neutral0"
6852
+ },
6853
+ "name": "utility.elevation.surface.current",
6854
+ "path": ["utility", "elevation", "surface", "current"],
6855
+ "cleanName": "utility.elevation.surface.current"
6834
6856
  }];
6835
6857
  export default tokens;
@@ -3,4 +3,5 @@ export const COLOR_MODE_ATTRIBUTE = 'data-color-mode';
3
3
  export const CUSTOM_THEME_ATTRIBUTE = 'data-custom-theme';
4
4
  export const CSS_PREFIX = 'ds';
5
5
  export const CSS_VAR_FULL = ['opacity', 'font', 'space', 'border'];
6
- export const TOKEN_NOT_FOUND_CSS_VAR = `--${CSS_PREFIX}-token-not-found`;
6
+ export const TOKEN_NOT_FOUND_CSS_VAR = `--${CSS_PREFIX}-token-not-found`;
7
+ export const CURRENT_SURFACE_CSS_VAR = `--${CSS_PREFIX}-elevation-surface-current`;
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.15.2";
4
+ const version = "1.17.0";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -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 = "1.15.2";
5
+ const version = "1.17.0";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -8,4 +8,5 @@ export { default as getSSRAutoScript } from './get-ssr-auto-script';
8
8
  export { default as useThemeObserver } from './use-theme-observer';
9
9
  export { default as ThemeMutationObserver } from './theme-mutation-observer';
10
10
  export { default as getGlobalTheme } from './get-global-theme';
11
- export { themeStringToObject, themeObjectToString } from './theme-state-transformer';
11
+ export { themeStringToObject, themeObjectToString } from './theme-state-transformer';
12
+ export { CURRENT_SURFACE_CSS_VAR } from './constants';
@@ -3,7 +3,7 @@ const shadow = {
3
3
  shadow: {
4
4
  raised: {
5
5
  value: [{
6
- // This inset shadow is just to allow animations between shadow types
6
+ // This shadow is just to allow animations between shadow types
7
7
  radius: 0,
8
8
  spread: 1,
9
9
  // @ts-ignore no current palette colour for this yet
@@ -12,8 +12,7 @@ const shadow = {
12
12
  x: 0,
13
13
  y: 0
14
14
  },
15
- opacity: 0,
16
- inset: true
15
+ opacity: 0
17
16
  }, {
18
17
  radius: 1,
19
18
  offset: {
@@ -71,13 +70,13 @@ const shadow = {
71
70
  value: [{
72
71
  radius: 0,
73
72
  spread: 1,
74
- color: 'DarkNeutral100A',
73
+ // @ts-ignore no current palette colour for this yet
74
+ color: '#39424a',
75
75
  offset: {
76
76
  x: 0,
77
77
  y: 0
78
78
  },
79
- opacity: 0.12,
80
- inset: true
79
+ opacity: 1
81
80
  }, {
82
81
  radius: 12,
83
82
  offset: {
@@ -89,6 +88,7 @@ const shadow = {
89
88
  opacity: 0.36
90
89
  }, {
91
90
  radius: 1,
91
+ spread: 1,
92
92
  offset: {
93
93
  x: 0,
94
94
  y: 0
@@ -1,4 +1,12 @@
1
+ import elevation from '../elevation/surface';
1
2
  const utility = {
3
+ elevation: {
4
+ surface: {
5
+ current: {
6
+ value: elevation.elevation.surface['[default]']['[default]'].value
7
+ }
8
+ }
9
+ },
2
10
  UNSAFE: {
3
11
  transparent: {
4
12
  value: 'transparent'
@@ -1,4 +1,12 @@
1
+ import elevation from '../elevation/surface';
1
2
  const utility = {
3
+ elevation: {
4
+ surface: {
5
+ current: {
6
+ value: elevation.elevation.surface['[default]']['[default]'].value
7
+ }
8
+ }
9
+ },
2
10
  UNSAFE: {
3
11
  transparent: {
4
12
  value: 'transparent'
@@ -1,4 +1,12 @@
1
+ import elevation from '../elevation/surface';
1
2
  const utility = {
3
+ elevation: {
4
+ surface: {
5
+ current: {
6
+ value: elevation.elevation.surface['[default]']['[default]'].value
7
+ }
8
+ }
9
+ },
2
10
  UNSAFE: {
3
11
  transparent: {
4
12
  value: 'transparent'
@@ -1,8 +1,16 @@
1
+ import elevation from '../elevation/surface';
1
2
  const utility = {
2
3
  UNSAFE: {
3
4
  transparent: {
4
5
  value: 'transparent'
5
6
  }
7
+ },
8
+ elevation: {
9
+ surface: {
10
+ current: {
11
+ value: elevation.elevation.surface['[default]']['[default]'].value
12
+ }
13
+ }
6
14
  }
7
15
  };
8
16
  export default {
@@ -8,6 +8,18 @@ const utility = {
8
8
  description: 'Transparent token used for backwards compatibility between new and old theming solutions'
9
9
  }
10
10
  }
11
+ },
12
+ elevation: {
13
+ surface: {
14
+ current: {
15
+ attributes: {
16
+ group: 'paint',
17
+ state: 'active',
18
+ introduced: '1.14.0',
19
+ description: `A dynamic token that represents the current surface color set by a parent element. It defaults to the 'elevation.surface' token value.`
20
+ }
21
+ }
22
+ }
11
23
  }
12
24
  };
13
25
  export default {