@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.
- package/CHANGELOG.md +6 -0
- package/css/atlassian-dark.css +3 -1
- package/css/atlassian-legacy-dark.css +3 -1
- package/css/atlassian-legacy-light.css +3 -1
- package/css/atlassian-light.css +3 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +35 -1
- package/dist/cjs/artifacts/palettes-raw/palette.js +35 -1
- package/dist/cjs/artifacts/token-default-values.js +3 -1
- package/dist/cjs/artifacts/token-names.js +3 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/cjs/constants.js +5 -3
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/legacy-palette.js +18 -0
- package/dist/cjs/palettes/palette.js +18 -0
- package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/default/elevation/shadow.js +1 -1
- package/dist/cjs/tokens/default/opacity/opacity.js +28 -0
- package/dist/cjs/utils/token-ids.js +8 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +35 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +35 -1
- package/dist/es2019/artifacts/token-default-values.js +3 -1
- package/dist/es2019/artifacts/token-names.js +3 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/es2019/constants.js +2 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/legacy-palette.js +18 -0
- package/dist/es2019/palettes/palette.js +18 -0
- package/dist/es2019/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/default/elevation/shadow.js +1 -1
- package/dist/es2019/tokens/default/opacity/opacity.js +21 -0
- package/dist/es2019/utils/token-ids.js +6 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +35 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +35 -1
- package/dist/esm/artifacts/token-default-values.js +3 -1
- package/dist/esm/artifacts/token-names.js +3 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +45 -3
- package/dist/esm/constants.js +2 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/legacy-palette.js +18 -0
- package/dist/esm/palettes/palette.js +18 -0
- package/dist/esm/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/default/elevation/shadow.js +1 -1
- package/dist/esm/tokens/default/opacity/opacity.js +21 -0
- package/dist/esm/utils/token-ids.js +6 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +20 -3
- package/dist/types/artifacts/palettes-raw/palette.d.ts +20 -3
- package/dist/types/artifacts/token-default-values.d.ts +3 -1
- package/dist/types/artifacts/token-names.d.ts +5 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +28 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +28 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +28 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +28 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/tokens/atlassian-dark/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-legacy-light/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/atlassian-light/opacity/opacity.d.ts +3 -0
- package/dist/types/tokens/default/opacity/opacity.d.ts +3 -0
- package/dist/types/types.d.ts +29 -8
- package/dist/types/utils/token-ids.d.ts +1 -3
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ var shadow = {
|
|
|
20
20
|
group: 'shadow',
|
|
21
21
|
state: 'active',
|
|
22
22
|
introduced: '0.6.0',
|
|
23
|
-
description: "Use to create a shadow when content
|
|
23
|
+
description: "Use to create a shadow when content scrolls under other content."
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
overlay: {
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
attributes: {
|
|
11
|
+
group: 'opacity',
|
|
12
|
+
state: 'active',
|
|
13
|
+
introduced: '0.10.13',
|
|
14
|
+
description: "Apply to images when in a disabled state."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
loading: {
|
|
18
|
+
attributes: {
|
|
19
|
+
group: 'opacity',
|
|
20
|
+
state: 'active',
|
|
21
|
+
introduced: '0.10.13',
|
|
22
|
+
description: "Apply to content that sits under a loading spinner."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var _default = opacity;
|
|
28
|
+
exports.default = _default;
|
|
@@ -26,14 +26,13 @@ var _constants = require("../constants");
|
|
|
26
26
|
* getCSSCustomProperty('color.background.bold.[default]')
|
|
27
27
|
*/
|
|
28
28
|
var getCSSCustomProperty = function getCSSCustomProperty(path) {
|
|
29
|
-
var normalizedPath = typeof path === 'string' ? path.split('.') : path;
|
|
30
|
-
|
|
29
|
+
var normalizedPath = typeof path === 'string' ? path.split('.') : path; // Opacity and other 'shallow' groups are more readable when not trimmed
|
|
30
|
+
|
|
31
|
+
var slice = _constants.CSS_VAR_FULL.includes(path[0]) ? 0 : 1;
|
|
32
|
+
return "--".concat([_constants.CSS_PREFIX].concat((0, _toConsumableArray2.default)(normalizedPath.slice(slice))).filter(function (el) {
|
|
31
33
|
return el !== '[default]';
|
|
32
34
|
}).join('-'));
|
|
33
35
|
};
|
|
34
|
-
|
|
35
|
-
exports.getCSSCustomProperty = getCSSCustomProperty;
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
37
|
* Transforms a style dictionary token path to a shorthand token id
|
|
39
38
|
* These ids will be typically be how tokens are interacted with via typescript and css
|
|
@@ -48,6 +47,10 @@ exports.getCSSCustomProperty = getCSSCustomProperty;
|
|
|
48
47
|
* // Returns color.background.bold
|
|
49
48
|
* getTokenId('color.background.bold.[default]')
|
|
50
49
|
*/
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
exports.getCSSCustomProperty = getCSSCustomProperty;
|
|
53
|
+
|
|
51
54
|
var getTokenId = function getTokenId(path) {
|
|
52
55
|
var normalizedPath = typeof path === 'string' ? path.split('.') : path;
|
|
53
56
|
return normalizedPath.filter(function (el) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::91ca2bc33315a9a910c7ca93bcb63936>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
7
|
+
"value": 0.2,
|
|
8
|
+
"attributes": {
|
|
9
|
+
"group": "palette",
|
|
10
|
+
"category": "opacity"
|
|
11
|
+
},
|
|
12
|
+
"filePath": "src/palettes/legacy-palette.tsx",
|
|
13
|
+
"isSource": true,
|
|
14
|
+
"original": {
|
|
15
|
+
"value": 0.2,
|
|
16
|
+
"attributes": {
|
|
17
|
+
"group": "palette",
|
|
18
|
+
"category": "opacity"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"name": "value.opacity.Opacity20",
|
|
22
|
+
"path": ["value", "opacity", "Opacity20"]
|
|
23
|
+
}, {
|
|
24
|
+
"value": 0.4,
|
|
25
|
+
"attributes": {
|
|
26
|
+
"group": "palette",
|
|
27
|
+
"category": "opacity"
|
|
28
|
+
},
|
|
29
|
+
"filePath": "src/palettes/legacy-palette.tsx",
|
|
30
|
+
"isSource": true,
|
|
31
|
+
"original": {
|
|
32
|
+
"value": 0.4,
|
|
33
|
+
"attributes": {
|
|
34
|
+
"group": "palette",
|
|
35
|
+
"category": "opacity"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"name": "value.opacity.Opacity40",
|
|
39
|
+
"path": ["value", "opacity", "Opacity40"]
|
|
40
|
+
}, {
|
|
7
41
|
"value": "transparent",
|
|
8
42
|
"attributes": {
|
|
9
43
|
"group": "palette",
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::54a73caa5e11805075c57f698252b1e7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
7
|
+
"value": 0.2,
|
|
8
|
+
"attributes": {
|
|
9
|
+
"group": "palette",
|
|
10
|
+
"category": "opacity"
|
|
11
|
+
},
|
|
12
|
+
"filePath": "src/palettes/palette.tsx",
|
|
13
|
+
"isSource": true,
|
|
14
|
+
"original": {
|
|
15
|
+
"value": 0.2,
|
|
16
|
+
"attributes": {
|
|
17
|
+
"group": "palette",
|
|
18
|
+
"category": "opacity"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"name": "value.opacity.Opacity20",
|
|
22
|
+
"path": ["value", "opacity", "Opacity20"]
|
|
23
|
+
}, {
|
|
24
|
+
"value": 0.4,
|
|
25
|
+
"attributes": {
|
|
26
|
+
"group": "palette",
|
|
27
|
+
"category": "opacity"
|
|
28
|
+
},
|
|
29
|
+
"filePath": "src/palettes/palette.tsx",
|
|
30
|
+
"isSource": true,
|
|
31
|
+
"original": {
|
|
32
|
+
"value": 0.4,
|
|
33
|
+
"attributes": {
|
|
34
|
+
"group": "palette",
|
|
35
|
+
"category": "opacity"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"name": "value.opacity.Opacity40",
|
|
39
|
+
"path": ["value", "opacity", "Opacity40"]
|
|
40
|
+
}, {
|
|
7
41
|
"value": "#E9F2FF",
|
|
8
42
|
"attributes": {
|
|
9
43
|
"group": "palette",
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::d33654f7422a0d210f1d8a1bf4497a45>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
const defaultTokenValues = {
|
|
@@ -288,6 +288,8 @@ const defaultTokenValues = {
|
|
|
288
288
|
'elevation.surface.sunken': '#F7F8F9',
|
|
289
289
|
'elevation.surface.raised': '#FFFFFF',
|
|
290
290
|
'elevation.surface.overlay': '#FFFFFF',
|
|
291
|
+
'opacity.disabled': '0.4',
|
|
292
|
+
'opacity.loading': '0.2',
|
|
291
293
|
'utility.UNSAFE_util.transparent': 'transparent',
|
|
292
294
|
'utility.UNSAFE_util.MISSING_TOKEN': '#FA11F2'
|
|
293
295
|
};
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::e9fa17eebeaf3b2a8318f43c4f7e89c4>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -285,6 +285,8 @@ const tokens = {
|
|
|
285
285
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
286
286
|
'elevation.surface.raised': '--ds-surface-raised',
|
|
287
287
|
'elevation.surface.overlay': '--ds-surface-overlay',
|
|
288
|
+
'opacity.disabled': '--ds-opacity-disabled',
|
|
289
|
+
'opacity.loading': '--ds-opacity-loading',
|
|
288
290
|
'utility.UNSAFE_util.transparent': '--ds-UNSAFE_util-transparent',
|
|
289
291
|
'utility.UNSAFE_util.MISSING_TOKEN': '--ds-UNSAFE_util-MISSING_TOKEN'
|
|
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::
|
|
3
|
+
* @codegen <<SignedSource::b756f5f6727c826e5f41b4d6b9d2b8e3>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -6499,7 +6499,7 @@ const tokens = [{
|
|
|
6499
6499
|
"group": "shadow",
|
|
6500
6500
|
"state": "active",
|
|
6501
6501
|
"introduced": "0.6.0",
|
|
6502
|
-
"description": "Use to create a shadow when content
|
|
6502
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6503
6503
|
},
|
|
6504
6504
|
"value": [{
|
|
6505
6505
|
"radius": 12,
|
|
@@ -6525,7 +6525,7 @@ const tokens = [{
|
|
|
6525
6525
|
"group": "shadow",
|
|
6526
6526
|
"state": "active",
|
|
6527
6527
|
"introduced": "0.6.0",
|
|
6528
|
-
"description": "Use to create a shadow when content
|
|
6528
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6529
6529
|
},
|
|
6530
6530
|
"value": [{
|
|
6531
6531
|
"radius": 12,
|
|
@@ -6704,6 +6704,48 @@ const tokens = [{
|
|
|
6704
6704
|
},
|
|
6705
6705
|
"name": "elevation.surface.overlay",
|
|
6706
6706
|
"path": ["elevation", "surface", "overlay"]
|
|
6707
|
+
}, {
|
|
6708
|
+
"attributes": {
|
|
6709
|
+
"group": "opacity",
|
|
6710
|
+
"state": "active",
|
|
6711
|
+
"introduced": "0.10.13",
|
|
6712
|
+
"description": "Apply to images when in a disabled state."
|
|
6713
|
+
},
|
|
6714
|
+
"value": 0.4,
|
|
6715
|
+
"filePath": "src/tokens/atlassian-dark/opacity/opacity.tsx",
|
|
6716
|
+
"isSource": true,
|
|
6717
|
+
"original": {
|
|
6718
|
+
"attributes": {
|
|
6719
|
+
"group": "opacity",
|
|
6720
|
+
"state": "active",
|
|
6721
|
+
"introduced": "0.10.13",
|
|
6722
|
+
"description": "Apply to images when in a disabled state."
|
|
6723
|
+
},
|
|
6724
|
+
"value": "Opacity40"
|
|
6725
|
+
},
|
|
6726
|
+
"name": "opacity.disabled",
|
|
6727
|
+
"path": ["opacity", "disabled"]
|
|
6728
|
+
}, {
|
|
6729
|
+
"attributes": {
|
|
6730
|
+
"group": "opacity",
|
|
6731
|
+
"state": "active",
|
|
6732
|
+
"introduced": "0.10.13",
|
|
6733
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6734
|
+
},
|
|
6735
|
+
"value": 0.2,
|
|
6736
|
+
"filePath": "src/tokens/atlassian-dark/opacity/opacity.tsx",
|
|
6737
|
+
"isSource": true,
|
|
6738
|
+
"original": {
|
|
6739
|
+
"attributes": {
|
|
6740
|
+
"group": "opacity",
|
|
6741
|
+
"state": "active",
|
|
6742
|
+
"introduced": "0.10.13",
|
|
6743
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6744
|
+
},
|
|
6745
|
+
"value": "Opacity20"
|
|
6746
|
+
},
|
|
6747
|
+
"name": "opacity.loading",
|
|
6748
|
+
"path": ["opacity", "loading"]
|
|
6707
6749
|
}, {
|
|
6708
6750
|
"attributes": {
|
|
6709
6751
|
"group": "raw",
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::a99ec8f38397a16cab91e936de51714f>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -6499,7 +6499,7 @@ const tokens = [{
|
|
|
6499
6499
|
"group": "shadow",
|
|
6500
6500
|
"state": "active",
|
|
6501
6501
|
"introduced": "0.6.0",
|
|
6502
|
-
"description": "Use to create a shadow when content
|
|
6502
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6503
6503
|
},
|
|
6504
6504
|
"value": [{
|
|
6505
6505
|
"radius": 12,
|
|
@@ -6525,7 +6525,7 @@ const tokens = [{
|
|
|
6525
6525
|
"group": "shadow",
|
|
6526
6526
|
"state": "active",
|
|
6527
6527
|
"introduced": "0.6.0",
|
|
6528
|
-
"description": "Use to create a shadow when content
|
|
6528
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6529
6529
|
},
|
|
6530
6530
|
"value": [{
|
|
6531
6531
|
"radius": 12,
|
|
@@ -6704,6 +6704,48 @@ const tokens = [{
|
|
|
6704
6704
|
},
|
|
6705
6705
|
"name": "elevation.surface.overlay",
|
|
6706
6706
|
"path": ["elevation", "surface", "overlay"]
|
|
6707
|
+
}, {
|
|
6708
|
+
"attributes": {
|
|
6709
|
+
"group": "opacity",
|
|
6710
|
+
"state": "active",
|
|
6711
|
+
"introduced": "0.10.13",
|
|
6712
|
+
"description": "Apply to images when in a disabled state."
|
|
6713
|
+
},
|
|
6714
|
+
"value": 0.4,
|
|
6715
|
+
"filePath": "src/tokens/atlassian-legacy-dark/opacity/opacity.tsx",
|
|
6716
|
+
"isSource": true,
|
|
6717
|
+
"original": {
|
|
6718
|
+
"attributes": {
|
|
6719
|
+
"group": "opacity",
|
|
6720
|
+
"state": "active",
|
|
6721
|
+
"introduced": "0.10.13",
|
|
6722
|
+
"description": "Apply to images when in a disabled state."
|
|
6723
|
+
},
|
|
6724
|
+
"value": "Opacity40"
|
|
6725
|
+
},
|
|
6726
|
+
"name": "opacity.disabled",
|
|
6727
|
+
"path": ["opacity", "disabled"]
|
|
6728
|
+
}, {
|
|
6729
|
+
"attributes": {
|
|
6730
|
+
"group": "opacity",
|
|
6731
|
+
"state": "active",
|
|
6732
|
+
"introduced": "0.10.13",
|
|
6733
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6734
|
+
},
|
|
6735
|
+
"value": 0.2,
|
|
6736
|
+
"filePath": "src/tokens/atlassian-legacy-dark/opacity/opacity.tsx",
|
|
6737
|
+
"isSource": true,
|
|
6738
|
+
"original": {
|
|
6739
|
+
"attributes": {
|
|
6740
|
+
"group": "opacity",
|
|
6741
|
+
"state": "active",
|
|
6742
|
+
"introduced": "0.10.13",
|
|
6743
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6744
|
+
},
|
|
6745
|
+
"value": "Opacity20"
|
|
6746
|
+
},
|
|
6747
|
+
"name": "opacity.loading",
|
|
6748
|
+
"path": ["opacity", "loading"]
|
|
6707
6749
|
}, {
|
|
6708
6750
|
"attributes": {
|
|
6709
6751
|
"group": "raw",
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::180d57420fabe8bfc7baadbcf7e39146>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -6479,7 +6479,7 @@ const tokens = [{
|
|
|
6479
6479
|
"group": "shadow",
|
|
6480
6480
|
"state": "active",
|
|
6481
6481
|
"introduced": "0.6.0",
|
|
6482
|
-
"description": "Use to create a shadow when content
|
|
6482
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6483
6483
|
},
|
|
6484
6484
|
"value": [{
|
|
6485
6485
|
"radius": 8,
|
|
@@ -6505,7 +6505,7 @@ const tokens = [{
|
|
|
6505
6505
|
"group": "shadow",
|
|
6506
6506
|
"state": "active",
|
|
6507
6507
|
"introduced": "0.6.0",
|
|
6508
|
-
"description": "Use to create a shadow when content
|
|
6508
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6509
6509
|
},
|
|
6510
6510
|
"value": [{
|
|
6511
6511
|
"radius": 8,
|
|
@@ -6664,6 +6664,48 @@ const tokens = [{
|
|
|
6664
6664
|
},
|
|
6665
6665
|
"name": "elevation.surface.overlay",
|
|
6666
6666
|
"path": ["elevation", "surface", "overlay"]
|
|
6667
|
+
}, {
|
|
6668
|
+
"attributes": {
|
|
6669
|
+
"group": "opacity",
|
|
6670
|
+
"state": "active",
|
|
6671
|
+
"introduced": "0.10.13",
|
|
6672
|
+
"description": "Apply to images when in a disabled state."
|
|
6673
|
+
},
|
|
6674
|
+
"value": 0.4,
|
|
6675
|
+
"filePath": "src/tokens/atlassian-legacy-light/opacity/opacity.tsx",
|
|
6676
|
+
"isSource": true,
|
|
6677
|
+
"original": {
|
|
6678
|
+
"attributes": {
|
|
6679
|
+
"group": "opacity",
|
|
6680
|
+
"state": "active",
|
|
6681
|
+
"introduced": "0.10.13",
|
|
6682
|
+
"description": "Apply to images when in a disabled state."
|
|
6683
|
+
},
|
|
6684
|
+
"value": "Opacity40"
|
|
6685
|
+
},
|
|
6686
|
+
"name": "opacity.disabled",
|
|
6687
|
+
"path": ["opacity", "disabled"]
|
|
6688
|
+
}, {
|
|
6689
|
+
"attributes": {
|
|
6690
|
+
"group": "opacity",
|
|
6691
|
+
"state": "active",
|
|
6692
|
+
"introduced": "0.10.13",
|
|
6693
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6694
|
+
},
|
|
6695
|
+
"value": 0.2,
|
|
6696
|
+
"filePath": "src/tokens/atlassian-legacy-light/opacity/opacity.tsx",
|
|
6697
|
+
"isSource": true,
|
|
6698
|
+
"original": {
|
|
6699
|
+
"attributes": {
|
|
6700
|
+
"group": "opacity",
|
|
6701
|
+
"state": "active",
|
|
6702
|
+
"introduced": "0.10.13",
|
|
6703
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6704
|
+
},
|
|
6705
|
+
"value": "Opacity20"
|
|
6706
|
+
},
|
|
6707
|
+
"name": "opacity.loading",
|
|
6708
|
+
"path": ["opacity", "loading"]
|
|
6667
6709
|
}, {
|
|
6668
6710
|
"attributes": {
|
|
6669
6711
|
"group": "raw",
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::6977decc7ef870a337b1171d6775d9dc>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -6479,7 +6479,7 @@ const tokens = [{
|
|
|
6479
6479
|
"group": "shadow",
|
|
6480
6480
|
"state": "active",
|
|
6481
6481
|
"introduced": "0.6.0",
|
|
6482
|
-
"description": "Use to create a shadow when content
|
|
6482
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6483
6483
|
},
|
|
6484
6484
|
"value": [{
|
|
6485
6485
|
"radius": 8,
|
|
@@ -6505,7 +6505,7 @@ const tokens = [{
|
|
|
6505
6505
|
"group": "shadow",
|
|
6506
6506
|
"state": "active",
|
|
6507
6507
|
"introduced": "0.6.0",
|
|
6508
|
-
"description": "Use to create a shadow when content
|
|
6508
|
+
"description": "Use to create a shadow when content scrolls under other content."
|
|
6509
6509
|
},
|
|
6510
6510
|
"value": [{
|
|
6511
6511
|
"radius": 8,
|
|
@@ -6664,6 +6664,48 @@ const tokens = [{
|
|
|
6664
6664
|
},
|
|
6665
6665
|
"name": "elevation.surface.overlay",
|
|
6666
6666
|
"path": ["elevation", "surface", "overlay"]
|
|
6667
|
+
}, {
|
|
6668
|
+
"attributes": {
|
|
6669
|
+
"group": "opacity",
|
|
6670
|
+
"state": "active",
|
|
6671
|
+
"introduced": "0.10.13",
|
|
6672
|
+
"description": "Apply to images when in a disabled state."
|
|
6673
|
+
},
|
|
6674
|
+
"value": 0.4,
|
|
6675
|
+
"filePath": "src/tokens/atlassian-light/opacity/opacity.tsx",
|
|
6676
|
+
"isSource": true,
|
|
6677
|
+
"original": {
|
|
6678
|
+
"attributes": {
|
|
6679
|
+
"group": "opacity",
|
|
6680
|
+
"state": "active",
|
|
6681
|
+
"introduced": "0.10.13",
|
|
6682
|
+
"description": "Apply to images when in a disabled state."
|
|
6683
|
+
},
|
|
6684
|
+
"value": "Opacity40"
|
|
6685
|
+
},
|
|
6686
|
+
"name": "opacity.disabled",
|
|
6687
|
+
"path": ["opacity", "disabled"]
|
|
6688
|
+
}, {
|
|
6689
|
+
"attributes": {
|
|
6690
|
+
"group": "opacity",
|
|
6691
|
+
"state": "active",
|
|
6692
|
+
"introduced": "0.10.13",
|
|
6693
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6694
|
+
},
|
|
6695
|
+
"value": 0.2,
|
|
6696
|
+
"filePath": "src/tokens/atlassian-light/opacity/opacity.tsx",
|
|
6697
|
+
"isSource": true,
|
|
6698
|
+
"original": {
|
|
6699
|
+
"attributes": {
|
|
6700
|
+
"group": "opacity",
|
|
6701
|
+
"state": "active",
|
|
6702
|
+
"introduced": "0.10.13",
|
|
6703
|
+
"description": "Apply to content that sits under a loading spinner."
|
|
6704
|
+
},
|
|
6705
|
+
"value": "Opacity20"
|
|
6706
|
+
},
|
|
6707
|
+
"name": "opacity.loading",
|
|
6708
|
+
"path": ["opacity", "loading"]
|
|
6667
6709
|
}, {
|
|
6668
6710
|
"attributes": {
|
|
6669
6711
|
"group": "raw",
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export const THEMES = ['light', 'dark', 'legacy-light', 'legacy-dark'];
|
|
2
2
|
export const THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
3
3
|
export const DEFAULT_THEME = 'light';
|
|
4
|
-
export const CSS_PREFIX = 'ds';
|
|
4
|
+
export const CSS_PREFIX = 'ds';
|
|
5
|
+
export const CSS_VAR_FULL = ['opacity']; // Maps the longer theme name to a shorthand used in css/code
|
|
5
6
|
|
|
6
7
|
export const THEME_NAME_MAP = {
|
|
7
8
|
'atlassian-light': 'light',
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -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.
|
|
5
|
+
const version = "0.10.19";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
let token = tokens[path];
|
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
* This palette should be exclusively used for backwards compatible themes
|
|
5
5
|
*/
|
|
6
6
|
const palette = {
|
|
7
|
+
value: {
|
|
8
|
+
opacity: {
|
|
9
|
+
Opacity20: {
|
|
10
|
+
value: 0.2,
|
|
11
|
+
attributes: {
|
|
12
|
+
group: 'palette',
|
|
13
|
+
category: 'opacity'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
Opacity40: {
|
|
17
|
+
value: 0.4,
|
|
18
|
+
attributes: {
|
|
19
|
+
group: 'palette',
|
|
20
|
+
category: 'opacity'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
7
25
|
color: {
|
|
8
26
|
palette: {
|
|
9
27
|
transparent: {
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
const palette = {
|
|
2
|
+
value: {
|
|
3
|
+
opacity: {
|
|
4
|
+
Opacity20: {
|
|
5
|
+
value: 0.2,
|
|
6
|
+
attributes: {
|
|
7
|
+
group: 'palette',
|
|
8
|
+
category: 'opacity'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
Opacity40: {
|
|
12
|
+
value: 0.4,
|
|
13
|
+
attributes: {
|
|
14
|
+
group: 'palette',
|
|
15
|
+
category: 'opacity'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
2
20
|
color: {
|
|
3
21
|
palette: {
|
|
4
22
|
B100: {
|
|
@@ -14,7 +14,7 @@ const shadow = {
|
|
|
14
14
|
group: 'shadow',
|
|
15
15
|
state: 'active',
|
|
16
16
|
introduced: '0.6.0',
|
|
17
|
-
description: `Use to create a shadow when content
|
|
17
|
+
description: `Use to create a shadow when content scrolls under other content.`
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
overlay: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const opacity = {
|
|
2
|
+
opacity: {
|
|
3
|
+
disabled: {
|
|
4
|
+
attributes: {
|
|
5
|
+
group: 'opacity',
|
|
6
|
+
state: 'active',
|
|
7
|
+
introduced: '0.10.13',
|
|
8
|
+
description: `Apply to images when in a disabled state.`
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
loading: {
|
|
12
|
+
attributes: {
|
|
13
|
+
group: 'opacity',
|
|
14
|
+
state: 'active',
|
|
15
|
+
introduced: '0.10.13',
|
|
16
|
+
description: `Apply to content that sits under a loading spinner.`
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default opacity;
|