@atlaskit/tokens 0.10.18 → 0.10.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/css/atlassian-dark.css +10 -2
- package/css/atlassian-legacy-dark.css +10 -2
- package/css/atlassian-legacy-light.css +9 -1
- package/css/atlassian-light.css +9 -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/rename-mapping.js +4 -4
- package/dist/cjs/artifacts/token-default-values.js +9 -1
- package/dist/cjs/artifacts/token-names.js +9 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +207 -19
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +207 -19
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +187 -19
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +187 -19
- 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/elevation/shadow.js +12 -0
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +18 -0
- package/dist/cjs/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/cjs/tokens/default/elevation/shadow.js +1 -1
- package/dist/cjs/tokens/default/elevation/surface.js +69 -15
- 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/rename-mapping.js +4 -4
- package/dist/es2019/artifacts/token-default-values.js +9 -1
- package/dist/es2019/artifacts/token-names.js +9 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +207 -19
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +207 -19
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +187 -19
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +187 -19
- 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/elevation/shadow.js +12 -0
- package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/es2019/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/es2019/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/es2019/tokens/default/elevation/shadow.js +1 -1
- package/dist/es2019/tokens/default/elevation/surface.js +69 -17
- 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/rename-mapping.js +4 -4
- package/dist/esm/artifacts/token-default-values.js +9 -1
- package/dist/esm/artifacts/token-names.js +9 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +207 -19
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +207 -19
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +187 -19
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +187 -19
- 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/elevation/shadow.js +12 -0
- package/dist/esm/tokens/atlassian-dark/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +12 -0
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-legacy-dark/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-legacy-light/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-legacy-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/atlassian-light/elevation/surface.js +27 -3
- package/dist/esm/tokens/atlassian-light/opacity/opacity.js +11 -0
- package/dist/esm/tokens/default/deprecated/deprecated.js +3 -3
- package/dist/esm/tokens/default/elevation/shadow.js +1 -1
- package/dist/esm/tokens/default/elevation/surface.js +69 -15
- 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/rename-mapping.d.ts +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +9 -1
- package/dist/types/artifacts/token-names.d.ts +17 -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 +44 -11
- package/dist/types/utils/token-ids.d.ts +1 -3
- package/package.json +7 -6
|
@@ -611,7 +611,7 @@ var color = {
|
|
|
611
611
|
introduced: '0.0.15',
|
|
612
612
|
deprecated: '0.6.0',
|
|
613
613
|
deleted: '0.8.0',
|
|
614
|
-
replacement: 'elevation.surface.raised',
|
|
614
|
+
replacement: 'elevation.surface.raised.[default]',
|
|
615
615
|
description: 'Use for the background of raised cards, such as Jira cards on a Kanban board.\nCombine with shadow.card.'
|
|
616
616
|
}
|
|
617
617
|
},
|
|
@@ -622,7 +622,7 @@ var color = {
|
|
|
622
622
|
introduced: '0.0.15',
|
|
623
623
|
deprecated: '0.6.0',
|
|
624
624
|
deleted: '0.8.0',
|
|
625
|
-
replacement: 'elevation.surface.[default]',
|
|
625
|
+
replacement: 'elevation.surface.[default].[default]',
|
|
626
626
|
description: 'Use as the primary background for the UI'
|
|
627
627
|
}
|
|
628
628
|
},
|
|
@@ -646,7 +646,7 @@ var color = {
|
|
|
646
646
|
introduced: '0.0.15',
|
|
647
647
|
deprecated: '0.6.0',
|
|
648
648
|
deleted: '0.8.0',
|
|
649
|
-
replacement: 'elevation.surface.overlay',
|
|
649
|
+
replacement: 'elevation.surface.overlay.[default]',
|
|
650
650
|
description: "\nUse for the background of overlay elements, such as modals, dropdown menus, flags, and inline dialogs (i.e. elements that sit on top of the UI).\n\nAlso use for the background of raised cards in a dragged state.\n\nCombine with shadow.overlay."
|
|
651
651
|
}
|
|
652
652
|
},
|
|
@@ -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: {
|
|
@@ -8,11 +8,29 @@ var shadow = {
|
|
|
8
8
|
elevation: {
|
|
9
9
|
surface: {
|
|
10
10
|
'[default]': {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
'[default]': {
|
|
12
|
+
attributes: {
|
|
13
|
+
group: 'paint',
|
|
14
|
+
state: 'active',
|
|
15
|
+
introduced: '0.6.0',
|
|
16
|
+
description: 'Use as the primary background for the UI.'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
hovered: {
|
|
20
|
+
attributes: {
|
|
21
|
+
group: 'paint',
|
|
22
|
+
state: 'active',
|
|
23
|
+
introduced: '0.10.20',
|
|
24
|
+
description: 'Hovered state of elevation.surface'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
pressed: {
|
|
28
|
+
attributes: {
|
|
29
|
+
group: 'paint',
|
|
30
|
+
state: 'active',
|
|
31
|
+
introduced: '0.10.20',
|
|
32
|
+
description: 'Pressed state of elevation.surface'
|
|
33
|
+
}
|
|
16
34
|
}
|
|
17
35
|
},
|
|
18
36
|
sunken: {
|
|
@@ -24,19 +42,55 @@ var shadow = {
|
|
|
24
42
|
}
|
|
25
43
|
},
|
|
26
44
|
raised: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
45
|
+
'[default]': {
|
|
46
|
+
attributes: {
|
|
47
|
+
group: 'paint',
|
|
48
|
+
state: 'active',
|
|
49
|
+
introduced: '0.6.0',
|
|
50
|
+
description: 'Use for the background of cards that can be moved, such as Jira cards on a Kanban board. Combine with elevation.shadow.raised.'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
hovered: {
|
|
54
|
+
attributes: {
|
|
55
|
+
group: 'paint',
|
|
56
|
+
state: 'active',
|
|
57
|
+
introduced: '0.10.20',
|
|
58
|
+
description: 'Hovered state of elevation.surface.raised'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
pressed: {
|
|
62
|
+
attributes: {
|
|
63
|
+
group: 'paint',
|
|
64
|
+
state: 'active',
|
|
65
|
+
introduced: '0.10.20',
|
|
66
|
+
description: 'Pressed state of elevation.surface.raised'
|
|
67
|
+
}
|
|
32
68
|
}
|
|
33
69
|
},
|
|
34
70
|
overlay: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
71
|
+
'[default]': {
|
|
72
|
+
attributes: {
|
|
73
|
+
group: 'paint',
|
|
74
|
+
state: 'active',
|
|
75
|
+
introduced: '0.6.0',
|
|
76
|
+
description: "Use for the background of elements that sit on top of they UI, such as modals, dialogs, dropdown menus, floating toolbars, and floating single-action buttons. Also use for the background of raised cards in a dragged state. Combine with elevation.shadow.overlay."
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
hovered: {
|
|
80
|
+
attributes: {
|
|
81
|
+
group: 'paint',
|
|
82
|
+
state: 'active',
|
|
83
|
+
introduced: '0.10.20',
|
|
84
|
+
description: "Hovered state of elevation.surface.overlay"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
pressed: {
|
|
88
|
+
attributes: {
|
|
89
|
+
group: 'paint',
|
|
90
|
+
state: 'active',
|
|
91
|
+
introduced: '0.10.20',
|
|
92
|
+
description: "Pressed state of elevation.surface.overlay"
|
|
93
|
+
}
|
|
40
94
|
}
|
|
41
95
|
}
|
|
42
96
|
}
|
|
@@ -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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::785f21ff78f22bc07f51619e1add8ba9>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
const renameMapper = [{
|
|
@@ -218,15 +218,15 @@ const renameMapper = [{
|
|
|
218
218
|
}, {
|
|
219
219
|
"path": "color.background.card",
|
|
220
220
|
"state": "deleted",
|
|
221
|
-
"replacement": "elevation.surface.raised"
|
|
221
|
+
"replacement": "elevation.surface.raised.[default]"
|
|
222
222
|
}, {
|
|
223
223
|
"path": "color.background.default",
|
|
224
224
|
"state": "deleted",
|
|
225
|
-
"replacement": "elevation.surface.[default]"
|
|
225
|
+
"replacement": "elevation.surface.[default].[default]"
|
|
226
226
|
}, {
|
|
227
227
|
"path": "color.background.overlay",
|
|
228
228
|
"state": "deleted",
|
|
229
|
-
"replacement": "elevation.surface.overlay"
|
|
229
|
+
"replacement": "elevation.surface.overlay.[default]"
|
|
230
230
|
}, {
|
|
231
231
|
"path": "color.background.subtleBorderedNeutral.pressed",
|
|
232
232
|
"state": "deleted",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Token names mapped to their value in the default Atlassian theme ('light')
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::59a1a4aaa5f768efccaed2c726fc2b08>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
const defaultTokenValues = {
|
|
@@ -285,9 +285,17 @@ const defaultTokenValues = {
|
|
|
285
285
|
'elevation.shadow.overflow': '0px 8px 8px #091E4214, 0px 0px 1px #091E421F',
|
|
286
286
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
287
287
|
'elevation.surface': '#FFFFFF',
|
|
288
|
+
'elevation.surface.hovered': '#F1F2F4',
|
|
289
|
+
'elevation.surface.pressed': '#DCDFE4',
|
|
288
290
|
'elevation.surface.sunken': '#F7F8F9',
|
|
289
291
|
'elevation.surface.raised': '#FFFFFF',
|
|
292
|
+
'elevation.surface.raised.hovered': '#F1F2F4',
|
|
293
|
+
'elevation.surface.raised.pressed': '#DCDFE4',
|
|
290
294
|
'elevation.surface.overlay': '#FFFFFF',
|
|
295
|
+
'elevation.surface.overlay.hovered': '#F1F2F4',
|
|
296
|
+
'elevation.surface.overlay.pressed': '#DCDFE4',
|
|
297
|
+
'opacity.disabled': '0.4',
|
|
298
|
+
'opacity.loading': '0.2',
|
|
291
299
|
'utility.UNSAFE_util.transparent': 'transparent',
|
|
292
300
|
'utility.UNSAFE_util.MISSING_TOKEN': '#FA11F2'
|
|
293
301
|
};
|
|
@@ -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::fc7198ce92b9604af441e36c1acb2075>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -282,9 +282,17 @@ const tokens = {
|
|
|
282
282
|
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
283
283
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
284
284
|
'elevation.surface': '--ds-surface',
|
|
285
|
+
'elevation.surface.hovered': '--ds-surface-hovered',
|
|
286
|
+
'elevation.surface.pressed': '--ds-surface-pressed',
|
|
285
287
|
'elevation.surface.sunken': '--ds-surface-sunken',
|
|
286
288
|
'elevation.surface.raised': '--ds-surface-raised',
|
|
289
|
+
'elevation.surface.raised.hovered': '--ds-surface-raised-hovered',
|
|
290
|
+
'elevation.surface.raised.pressed': '--ds-surface-raised-pressed',
|
|
287
291
|
'elevation.surface.overlay': '--ds-surface-overlay',
|
|
292
|
+
'elevation.surface.overlay.hovered': '--ds-surface-overlay-hovered',
|
|
293
|
+
'elevation.surface.overlay.pressed': '--ds-surface-overlay-pressed',
|
|
294
|
+
'opacity.disabled': '--ds-opacity-disabled',
|
|
295
|
+
'opacity.loading': '--ds-opacity-loading',
|
|
288
296
|
'utility.UNSAFE_util.transparent': '--ds-UNSAFE_util-transparent',
|
|
289
297
|
'utility.UNSAFE_util.MISSING_TOKEN': '--ds-UNSAFE_util-MISSING_TOKEN'
|
|
290
298
|
};
|