@atlaskit/tokens 0.10.18 → 0.10.19

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 (84) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/css/atlassian-dark.css +3 -1
  3. package/css/atlassian-legacy-dark.css +3 -1
  4. package/css/atlassian-legacy-light.css +3 -1
  5. package/css/atlassian-light.css +3 -1
  6. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +35 -1
  7. package/dist/cjs/artifacts/palettes-raw/palette.js +35 -1
  8. package/dist/cjs/artifacts/token-default-values.js +3 -1
  9. package/dist/cjs/artifacts/token-names.js +3 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +45 -3
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +45 -3
  14. package/dist/cjs/constants.js +5 -3
  15. package/dist/cjs/get-token.js +1 -1
  16. package/dist/cjs/palettes/legacy-palette.js +18 -0
  17. package/dist/cjs/palettes/palette.js +18 -0
  18. package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +18 -0
  19. package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +18 -0
  20. package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +18 -0
  21. package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +18 -0
  22. package/dist/cjs/tokens/default/elevation/shadow.js +1 -1
  23. package/dist/cjs/tokens/default/opacity/opacity.js +28 -0
  24. package/dist/cjs/utils/token-ids.js +8 -5
  25. package/dist/cjs/version.json +1 -1
  26. package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +35 -1
  27. package/dist/es2019/artifacts/palettes-raw/palette.js +35 -1
  28. package/dist/es2019/artifacts/token-default-values.js +3 -1
  29. package/dist/es2019/artifacts/token-names.js +3 -1
  30. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +45 -3
  31. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
  32. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
  33. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +45 -3
  34. package/dist/es2019/constants.js +2 -1
  35. package/dist/es2019/get-token.js +1 -1
  36. package/dist/es2019/palettes/legacy-palette.js +18 -0
  37. package/dist/es2019/palettes/palette.js +18 -0
  38. package/dist/es2019/tokens/atlassian-dark/opacity/opacity.js +11 -0
  39. package/dist/es2019/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
  40. package/dist/es2019/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
  41. package/dist/es2019/tokens/atlassian-light/opacity/opacity.js +11 -0
  42. package/dist/es2019/tokens/default/elevation/shadow.js +1 -1
  43. package/dist/es2019/tokens/default/opacity/opacity.js +21 -0
  44. package/dist/es2019/utils/token-ids.js +6 -4
  45. package/dist/es2019/version.json +1 -1
  46. package/dist/esm/artifacts/palettes-raw/legacy-palette.js +35 -1
  47. package/dist/esm/artifacts/palettes-raw/palette.js +35 -1
  48. package/dist/esm/artifacts/token-default-values.js +3 -1
  49. package/dist/esm/artifacts/token-names.js +3 -1
  50. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +45 -3
  51. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
  52. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
  53. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +45 -3
  54. package/dist/esm/constants.js +2 -1
  55. package/dist/esm/get-token.js +1 -1
  56. package/dist/esm/palettes/legacy-palette.js +18 -0
  57. package/dist/esm/palettes/palette.js +18 -0
  58. package/dist/esm/tokens/atlassian-dark/opacity/opacity.js +11 -0
  59. package/dist/esm/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
  60. package/dist/esm/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
  61. package/dist/esm/tokens/atlassian-light/opacity/opacity.js +11 -0
  62. package/dist/esm/tokens/default/elevation/shadow.js +1 -1
  63. package/dist/esm/tokens/default/opacity/opacity.js +21 -0
  64. package/dist/esm/utils/token-ids.js +6 -4
  65. package/dist/esm/version.json +1 -1
  66. package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +20 -3
  67. package/dist/types/artifacts/palettes-raw/palette.d.ts +20 -3
  68. package/dist/types/artifacts/token-default-values.d.ts +3 -1
  69. package/dist/types/artifacts/token-names.d.ts +5 -1
  70. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +28 -1
  71. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +28 -1
  72. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +28 -1
  73. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +28 -1
  74. package/dist/types/artifacts/types-internal.d.ts +2 -2
  75. package/dist/types/artifacts/types.d.ts +2 -2
  76. package/dist/types/constants.d.ts +1 -0
  77. package/dist/types/tokens/atlassian-dark/opacity/opacity.d.ts +3 -0
  78. package/dist/types/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +3 -0
  79. package/dist/types/tokens/atlassian-legacy-light/opacity/opacity.d.ts +3 -0
  80. package/dist/types/tokens/atlassian-light/opacity/opacity.d.ts +3 -0
  81. package/dist/types/tokens/default/opacity/opacity.d.ts +3 -0
  82. package/dist/types/types.d.ts +29 -8
  83. package/dist/types/utils/token-ids.d.ts +1 -3
  84. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 0.10.19
4
+
5
+ ### Patch Changes
6
+
7
+ - [`efe09ca1159`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efe09ca1159) - Adds new opacity tokens, opacity.disabled and opacity.loading, that can be applied to elements to indicate loading and disabled states.
8
+
3
9
  ## 0.10.18
4
10
 
5
11
  ### Patch Changes
@@ -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::e7a1da5f12bf3daf065833cca6f750d8>>
3
+ * @codegen <<SignedSource::2d184cd66c975da2b8dadfece3cfd90b>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  html[data-theme="dark"] {
@@ -285,6 +285,8 @@ html[data-theme="dark"] {
285
285
  --ds-surface-sunken: #101214;
286
286
  --ds-surface-raised: #1D2125;
287
287
  --ds-surface-overlay: #22272B;
288
+ --ds-opacity-disabled: 0.4;
289
+ --ds-opacity-loading: 0.2;
288
290
  --ds-UNSAFE_util-transparent: transparent;
289
291
  --ds-UNSAFE_util-MISSING_TOKEN: #FA11F2;
290
292
  }
@@ -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::309d5e73b0df37c62c47c9818f306d6f>>
3
+ * @codegen <<SignedSource::9e4724606cca025b6077a0f11ccdee6c>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  html[data-theme="legacy-dark"] {
@@ -285,6 +285,8 @@ html[data-theme="legacy-dark"] {
285
285
  --ds-surface-sunken: #67758F;
286
286
  --ds-surface-raised: #455166;
287
287
  --ds-surface-overlay: #7988A3;
288
+ --ds-opacity-disabled: 0.4;
289
+ --ds-opacity-loading: 0.2;
288
290
  --ds-UNSAFE_util-transparent: transparent;
289
291
  --ds-UNSAFE_util-MISSING_TOKEN: #FA11F2;
290
292
  }
@@ -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::ec6a4031921471c3f81d72dd860c027d>>
3
+ * @codegen <<SignedSource::b2f59f139505a9ba4477df154a83033b>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  html[data-theme="legacy-light"] {
@@ -285,6 +285,8 @@ html[data-theme="legacy-light"] {
285
285
  --ds-surface-sunken: #F4F5F7;
286
286
  --ds-surface-raised: #FFFFFF;
287
287
  --ds-surface-overlay: #FFFFFF;
288
+ --ds-opacity-disabled: 0.4;
289
+ --ds-opacity-loading: 0.2;
288
290
  --ds-UNSAFE_util-transparent: transparent;
289
291
  --ds-UNSAFE_util-MISSING_TOKEN: #FA11F2;
290
292
  }
@@ -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::f188dd3bf2da5dc22166cc13f91c1373>>
3
+ * @codegen <<SignedSource::5db5ba104d3553b1f54a52b44df005b2>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  html[data-theme="light"] {
@@ -285,6 +285,8 @@ html[data-theme="light"] {
285
285
  --ds-surface-sunken: #F7F8F9;
286
286
  --ds-surface-raised: #FFFFFF;
287
287
  --ds-surface-overlay: #FFFFFF;
288
+ --ds-opacity-disabled: 0.4;
289
+ --ds-opacity-loading: 0.2;
288
290
  --ds-UNSAFE_util-transparent: transparent;
289
291
  --ds-UNSAFE_util-MISSING_TOKEN: #FA11F2;
290
292
  }
@@ -7,10 +7,44 @@ 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::73a857568cd56494102a8abd48a3f08c>>
10
+ * @codegen <<SignedSource::91ca2bc33315a9a910c7ca93bcb63936>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
14
+ "value": 0.2,
15
+ "attributes": {
16
+ "group": "palette",
17
+ "category": "opacity"
18
+ },
19
+ "filePath": "src/palettes/legacy-palette.tsx",
20
+ "isSource": true,
21
+ "original": {
22
+ "value": 0.2,
23
+ "attributes": {
24
+ "group": "palette",
25
+ "category": "opacity"
26
+ }
27
+ },
28
+ "name": "value.opacity.Opacity20",
29
+ "path": ["value", "opacity", "Opacity20"]
30
+ }, {
31
+ "value": 0.4,
32
+ "attributes": {
33
+ "group": "palette",
34
+ "category": "opacity"
35
+ },
36
+ "filePath": "src/palettes/legacy-palette.tsx",
37
+ "isSource": true,
38
+ "original": {
39
+ "value": 0.4,
40
+ "attributes": {
41
+ "group": "palette",
42
+ "category": "opacity"
43
+ }
44
+ },
45
+ "name": "value.opacity.Opacity40",
46
+ "path": ["value", "opacity", "Opacity40"]
47
+ }, {
14
48
  "value": "transparent",
15
49
  "attributes": {
16
50
  "group": "palette",
@@ -7,10 +7,44 @@ 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::48a859c3e6fb79202e5702421d1b6254>>
10
+ * @codegen <<SignedSource::54a73caa5e11805075c57f698252b1e7>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
14
+ "value": 0.2,
15
+ "attributes": {
16
+ "group": "palette",
17
+ "category": "opacity"
18
+ },
19
+ "filePath": "src/palettes/palette.tsx",
20
+ "isSource": true,
21
+ "original": {
22
+ "value": 0.2,
23
+ "attributes": {
24
+ "group": "palette",
25
+ "category": "opacity"
26
+ }
27
+ },
28
+ "name": "value.opacity.Opacity20",
29
+ "path": ["value", "opacity", "Opacity20"]
30
+ }, {
31
+ "value": 0.4,
32
+ "attributes": {
33
+ "group": "palette",
34
+ "category": "opacity"
35
+ },
36
+ "filePath": "src/palettes/palette.tsx",
37
+ "isSource": true,
38
+ "original": {
39
+ "value": 0.4,
40
+ "attributes": {
41
+ "group": "palette",
42
+ "category": "opacity"
43
+ }
44
+ },
45
+ "name": "value.opacity.Opacity40",
46
+ "path": ["value", "opacity", "Opacity40"]
47
+ }, {
14
48
  "value": "#E9F2FF",
15
49
  "attributes": {
16
50
  "group": "palette",
@@ -10,7 +10,7 @@ exports.default = void 0;
10
10
  *
11
11
  * Token names mapped to their value in the default Atlassian theme ('light')
12
12
  *
13
- * @codegen <<SignedSource::bf85c12f621d58ae427a6fd99c62fd24>>
13
+ * @codegen <<SignedSource::d33654f7422a0d210f1d8a1bf4497a45>>
14
14
  * @codegenCommand yarn build tokens
15
15
  */
16
16
  var defaultTokenValues = {
@@ -295,6 +295,8 @@ var defaultTokenValues = {
295
295
  'elevation.surface.sunken': '#F7F8F9',
296
296
  'elevation.surface.raised': '#FFFFFF',
297
297
  'elevation.surface.overlay': '#FFFFFF',
298
+ 'opacity.disabled': '0.4',
299
+ 'opacity.loading': '0.2',
298
300
  'utility.UNSAFE_util.transparent': 'transparent',
299
301
  'utility.UNSAFE_util.MISSING_TOKEN': '#FA11F2'
300
302
  };
@@ -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::3acc6507214a2d925fd75bce0549f0ab>>
10
+ * @codegen <<SignedSource::e9fa17eebeaf3b2a8318f43c4f7e89c4>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = {
@@ -292,6 +292,8 @@ var tokens = {
292
292
  'elevation.surface.sunken': '--ds-surface-sunken',
293
293
  'elevation.surface.raised': '--ds-surface-raised',
294
294
  'elevation.surface.overlay': '--ds-surface-overlay',
295
+ 'opacity.disabled': '--ds-opacity-disabled',
296
+ 'opacity.loading': '--ds-opacity-loading',
295
297
  'utility.UNSAFE_util.transparent': '--ds-UNSAFE_util-transparent',
296
298
  'utility.UNSAFE_util.MISSING_TOKEN': '--ds-UNSAFE_util-MISSING_TOKEN'
297
299
  };
@@ -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::3fef3c7e03c920ccf46adb8e5016f1f9>>
10
+ * @codegen <<SignedSource::b756f5f6727c826e5f41b4d6b9d2b8e3>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -6506,7 +6506,7 @@ var tokens = [{
6506
6506
  "group": "shadow",
6507
6507
  "state": "active",
6508
6508
  "introduced": "0.6.0",
6509
- "description": "Use to create a shadow when content scolls under other content."
6509
+ "description": "Use to create a shadow when content scrolls under other content."
6510
6510
  },
6511
6511
  "value": [{
6512
6512
  "radius": 12,
@@ -6532,7 +6532,7 @@ var tokens = [{
6532
6532
  "group": "shadow",
6533
6533
  "state": "active",
6534
6534
  "introduced": "0.6.0",
6535
- "description": "Use to create a shadow when content scolls under other content."
6535
+ "description": "Use to create a shadow when content scrolls under other content."
6536
6536
  },
6537
6537
  "value": [{
6538
6538
  "radius": 12,
@@ -6711,6 +6711,48 @@ var tokens = [{
6711
6711
  },
6712
6712
  "name": "elevation.surface.overlay",
6713
6713
  "path": ["elevation", "surface", "overlay"]
6714
+ }, {
6715
+ "attributes": {
6716
+ "group": "opacity",
6717
+ "state": "active",
6718
+ "introduced": "0.10.13",
6719
+ "description": "Apply to images when in a disabled state."
6720
+ },
6721
+ "value": 0.4,
6722
+ "filePath": "src/tokens/atlassian-dark/opacity/opacity.tsx",
6723
+ "isSource": true,
6724
+ "original": {
6725
+ "attributes": {
6726
+ "group": "opacity",
6727
+ "state": "active",
6728
+ "introduced": "0.10.13",
6729
+ "description": "Apply to images when in a disabled state."
6730
+ },
6731
+ "value": "Opacity40"
6732
+ },
6733
+ "name": "opacity.disabled",
6734
+ "path": ["opacity", "disabled"]
6735
+ }, {
6736
+ "attributes": {
6737
+ "group": "opacity",
6738
+ "state": "active",
6739
+ "introduced": "0.10.13",
6740
+ "description": "Apply to content that sits under a loading spinner."
6741
+ },
6742
+ "value": 0.2,
6743
+ "filePath": "src/tokens/atlassian-dark/opacity/opacity.tsx",
6744
+ "isSource": true,
6745
+ "original": {
6746
+ "attributes": {
6747
+ "group": "opacity",
6748
+ "state": "active",
6749
+ "introduced": "0.10.13",
6750
+ "description": "Apply to content that sits under a loading spinner."
6751
+ },
6752
+ "value": "Opacity20"
6753
+ },
6754
+ "name": "opacity.loading",
6755
+ "path": ["opacity", "loading"]
6714
6756
  }, {
6715
6757
  "attributes": {
6716
6758
  "group": "raw",
@@ -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::1db540cf97cd7f307fc628bbb5346972>>
10
+ * @codegen <<SignedSource::a99ec8f38397a16cab91e936de51714f>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -6506,7 +6506,7 @@ var tokens = [{
6506
6506
  "group": "shadow",
6507
6507
  "state": "active",
6508
6508
  "introduced": "0.6.0",
6509
- "description": "Use to create a shadow when content scolls under other content."
6509
+ "description": "Use to create a shadow when content scrolls under other content."
6510
6510
  },
6511
6511
  "value": [{
6512
6512
  "radius": 12,
@@ -6532,7 +6532,7 @@ var tokens = [{
6532
6532
  "group": "shadow",
6533
6533
  "state": "active",
6534
6534
  "introduced": "0.6.0",
6535
- "description": "Use to create a shadow when content scolls under other content."
6535
+ "description": "Use to create a shadow when content scrolls under other content."
6536
6536
  },
6537
6537
  "value": [{
6538
6538
  "radius": 12,
@@ -6711,6 +6711,48 @@ var tokens = [{
6711
6711
  },
6712
6712
  "name": "elevation.surface.overlay",
6713
6713
  "path": ["elevation", "surface", "overlay"]
6714
+ }, {
6715
+ "attributes": {
6716
+ "group": "opacity",
6717
+ "state": "active",
6718
+ "introduced": "0.10.13",
6719
+ "description": "Apply to images when in a disabled state."
6720
+ },
6721
+ "value": 0.4,
6722
+ "filePath": "src/tokens/atlassian-legacy-dark/opacity/opacity.tsx",
6723
+ "isSource": true,
6724
+ "original": {
6725
+ "attributes": {
6726
+ "group": "opacity",
6727
+ "state": "active",
6728
+ "introduced": "0.10.13",
6729
+ "description": "Apply to images when in a disabled state."
6730
+ },
6731
+ "value": "Opacity40"
6732
+ },
6733
+ "name": "opacity.disabled",
6734
+ "path": ["opacity", "disabled"]
6735
+ }, {
6736
+ "attributes": {
6737
+ "group": "opacity",
6738
+ "state": "active",
6739
+ "introduced": "0.10.13",
6740
+ "description": "Apply to content that sits under a loading spinner."
6741
+ },
6742
+ "value": 0.2,
6743
+ "filePath": "src/tokens/atlassian-legacy-dark/opacity/opacity.tsx",
6744
+ "isSource": true,
6745
+ "original": {
6746
+ "attributes": {
6747
+ "group": "opacity",
6748
+ "state": "active",
6749
+ "introduced": "0.10.13",
6750
+ "description": "Apply to content that sits under a loading spinner."
6751
+ },
6752
+ "value": "Opacity20"
6753
+ },
6754
+ "name": "opacity.loading",
6755
+ "path": ["opacity", "loading"]
6714
6756
  }, {
6715
6757
  "attributes": {
6716
6758
  "group": "raw",
@@ -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::6a9c9852352020740a85fbffbcc447e3>>
10
+ * @codegen <<SignedSource::180d57420fabe8bfc7baadbcf7e39146>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -6486,7 +6486,7 @@ var tokens = [{
6486
6486
  "group": "shadow",
6487
6487
  "state": "active",
6488
6488
  "introduced": "0.6.0",
6489
- "description": "Use to create a shadow when content scolls under other content."
6489
+ "description": "Use to create a shadow when content scrolls under other content."
6490
6490
  },
6491
6491
  "value": [{
6492
6492
  "radius": 8,
@@ -6512,7 +6512,7 @@ var tokens = [{
6512
6512
  "group": "shadow",
6513
6513
  "state": "active",
6514
6514
  "introduced": "0.6.0",
6515
- "description": "Use to create a shadow when content scolls under other content."
6515
+ "description": "Use to create a shadow when content scrolls under other content."
6516
6516
  },
6517
6517
  "value": [{
6518
6518
  "radius": 8,
@@ -6671,6 +6671,48 @@ var tokens = [{
6671
6671
  },
6672
6672
  "name": "elevation.surface.overlay",
6673
6673
  "path": ["elevation", "surface", "overlay"]
6674
+ }, {
6675
+ "attributes": {
6676
+ "group": "opacity",
6677
+ "state": "active",
6678
+ "introduced": "0.10.13",
6679
+ "description": "Apply to images when in a disabled state."
6680
+ },
6681
+ "value": 0.4,
6682
+ "filePath": "src/tokens/atlassian-legacy-light/opacity/opacity.tsx",
6683
+ "isSource": true,
6684
+ "original": {
6685
+ "attributes": {
6686
+ "group": "opacity",
6687
+ "state": "active",
6688
+ "introduced": "0.10.13",
6689
+ "description": "Apply to images when in a disabled state."
6690
+ },
6691
+ "value": "Opacity40"
6692
+ },
6693
+ "name": "opacity.disabled",
6694
+ "path": ["opacity", "disabled"]
6695
+ }, {
6696
+ "attributes": {
6697
+ "group": "opacity",
6698
+ "state": "active",
6699
+ "introduced": "0.10.13",
6700
+ "description": "Apply to content that sits under a loading spinner."
6701
+ },
6702
+ "value": 0.2,
6703
+ "filePath": "src/tokens/atlassian-legacy-light/opacity/opacity.tsx",
6704
+ "isSource": true,
6705
+ "original": {
6706
+ "attributes": {
6707
+ "group": "opacity",
6708
+ "state": "active",
6709
+ "introduced": "0.10.13",
6710
+ "description": "Apply to content that sits under a loading spinner."
6711
+ },
6712
+ "value": "Opacity20"
6713
+ },
6714
+ "name": "opacity.loading",
6715
+ "path": ["opacity", "loading"]
6674
6716
  }, {
6675
6717
  "attributes": {
6676
6718
  "group": "raw",
@@ -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::f6a9d19d9e568ee23ce24a7127ceb09c>>
10
+ * @codegen <<SignedSource::6977decc7ef870a337b1171d6775d9dc>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  var tokens = [{
@@ -6486,7 +6486,7 @@ var tokens = [{
6486
6486
  "group": "shadow",
6487
6487
  "state": "active",
6488
6488
  "introduced": "0.6.0",
6489
- "description": "Use to create a shadow when content scolls under other content."
6489
+ "description": "Use to create a shadow when content scrolls under other content."
6490
6490
  },
6491
6491
  "value": [{
6492
6492
  "radius": 8,
@@ -6512,7 +6512,7 @@ var tokens = [{
6512
6512
  "group": "shadow",
6513
6513
  "state": "active",
6514
6514
  "introduced": "0.6.0",
6515
- "description": "Use to create a shadow when content scolls under other content."
6515
+ "description": "Use to create a shadow when content scrolls under other content."
6516
6516
  },
6517
6517
  "value": [{
6518
6518
  "radius": 8,
@@ -6671,6 +6671,48 @@ var tokens = [{
6671
6671
  },
6672
6672
  "name": "elevation.surface.overlay",
6673
6673
  "path": ["elevation", "surface", "overlay"]
6674
+ }, {
6675
+ "attributes": {
6676
+ "group": "opacity",
6677
+ "state": "active",
6678
+ "introduced": "0.10.13",
6679
+ "description": "Apply to images when in a disabled state."
6680
+ },
6681
+ "value": 0.4,
6682
+ "filePath": "src/tokens/atlassian-light/opacity/opacity.tsx",
6683
+ "isSource": true,
6684
+ "original": {
6685
+ "attributes": {
6686
+ "group": "opacity",
6687
+ "state": "active",
6688
+ "introduced": "0.10.13",
6689
+ "description": "Apply to images when in a disabled state."
6690
+ },
6691
+ "value": "Opacity40"
6692
+ },
6693
+ "name": "opacity.disabled",
6694
+ "path": ["opacity", "disabled"]
6695
+ }, {
6696
+ "attributes": {
6697
+ "group": "opacity",
6698
+ "state": "active",
6699
+ "introduced": "0.10.13",
6700
+ "description": "Apply to content that sits under a loading spinner."
6701
+ },
6702
+ "value": 0.2,
6703
+ "filePath": "src/tokens/atlassian-light/opacity/opacity.tsx",
6704
+ "isSource": true,
6705
+ "original": {
6706
+ "attributes": {
6707
+ "group": "opacity",
6708
+ "state": "active",
6709
+ "introduced": "0.10.13",
6710
+ "description": "Apply to content that sits under a loading spinner."
6711
+ },
6712
+ "value": "Opacity20"
6713
+ },
6714
+ "name": "opacity.loading",
6715
+ "path": ["opacity", "loading"]
6674
6716
  }, {
6675
6717
  "attributes": {
6676
6718
  "group": "raw",
@@ -3,16 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TOKEN_NOT_FOUND_CSS_VAR = exports.THEME_NAME_MAP = exports.THEME_DATA_ATTRIBUTE = exports.THEMES = exports.DEFAULT_THEME = exports.CSS_PREFIX = void 0;
6
+ exports.TOKEN_NOT_FOUND_CSS_VAR = exports.THEME_NAME_MAP = exports.THEME_DATA_ATTRIBUTE = exports.THEMES = exports.DEFAULT_THEME = exports.CSS_VAR_FULL = exports.CSS_PREFIX = void 0;
7
7
  var THEMES = ['light', 'dark', 'legacy-light', 'legacy-dark'];
8
8
  exports.THEMES = THEMES;
9
9
  var THEME_DATA_ATTRIBUTE = 'data-theme';
10
10
  exports.THEME_DATA_ATTRIBUTE = THEME_DATA_ATTRIBUTE;
11
11
  var DEFAULT_THEME = 'light';
12
12
  exports.DEFAULT_THEME = DEFAULT_THEME;
13
- var CSS_PREFIX = 'ds'; // Maps the longer theme name to a shorthand used in css/code
14
-
13
+ var CSS_PREFIX = 'ds';
15
14
  exports.CSS_PREFIX = CSS_PREFIX;
15
+ var CSS_VAR_FULL = ['opacity']; // Maps the longer theme name to a shorthand used in css/code
16
+
17
+ exports.CSS_VAR_FULL = CSS_VAR_FULL;
16
18
  var THEME_NAME_MAP = {
17
19
  'atlassian-light': 'light',
18
20
  'atlassian-dark': 'dark',
@@ -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.18";
17
+ var version = "0.10.19";
18
18
 
19
19
  function token(path, fallback) {
20
20
  var token = _tokenNames.default[path];
@@ -11,6 +11,24 @@ exports.default = void 0;
11
11
  * This palette should be exclusively used for backwards compatible themes
12
12
  */
13
13
  var palette = {
14
+ value: {
15
+ opacity: {
16
+ Opacity20: {
17
+ value: 0.2,
18
+ attributes: {
19
+ group: 'palette',
20
+ category: 'opacity'
21
+ }
22
+ },
23
+ Opacity40: {
24
+ value: 0.4,
25
+ attributes: {
26
+ group: 'palette',
27
+ category: 'opacity'
28
+ }
29
+ }
30
+ }
31
+ },
14
32
  color: {
15
33
  palette: {
16
34
  transparent: {
@@ -5,6 +5,24 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var palette = {
8
+ value: {
9
+ opacity: {
10
+ Opacity20: {
11
+ value: 0.2,
12
+ attributes: {
13
+ group: 'palette',
14
+ category: 'opacity'
15
+ }
16
+ },
17
+ Opacity40: {
18
+ value: 0.4,
19
+ attributes: {
20
+ group: 'palette',
21
+ category: 'opacity'
22
+ }
23
+ }
24
+ }
25
+ },
8
26
  color: {
9
27
  palette: {
10
28
  B100: {
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var opacity = {
8
+ opacity: {
9
+ disabled: {
10
+ value: 'Opacity40'
11
+ },
12
+ loading: {
13
+ value: 'Opacity20'
14
+ }
15
+ }
16
+ };
17
+ var _default = opacity;
18
+ exports.default = _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var opacity = {
8
+ opacity: {
9
+ disabled: {
10
+ value: 'Opacity40'
11
+ },
12
+ loading: {
13
+ value: 'Opacity20'
14
+ }
15
+ }
16
+ };
17
+ var _default = opacity;
18
+ exports.default = _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var opacity = {
8
+ opacity: {
9
+ disabled: {
10
+ value: 'Opacity40'
11
+ },
12
+ loading: {
13
+ value: 'Opacity20'
14
+ }
15
+ }
16
+ };
17
+ var _default = opacity;
18
+ exports.default = _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var opacity = {
8
+ opacity: {
9
+ disabled: {
10
+ value: 'Opacity40'
11
+ },
12
+ loading: {
13
+ value: 'Opacity20'
14
+ }
15
+ }
16
+ };
17
+ var _default = opacity;
18
+ exports.default = _default;