@atlaskit/tokens 0.10.3 → 0.10.6
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/.eslintrc.js +35 -0
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist/cjs/artifacts/rename-mapping.js +10 -10
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +37 -19
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +37 -19
- package/dist/cjs/babel-plugin/plugin.js +57 -53
- package/dist/cjs/constants.js +4 -2
- package/dist/cjs/get-token.js +9 -2
- package/dist/cjs/tokens/default/deprecated/deprecated.js +18 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +10 -10
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +37 -19
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +37 -19
- package/dist/es2019/babel-plugin/plugin.js +50 -45
- package/dist/es2019/constants.js +2 -1
- package/dist/es2019/get-token.js +8 -2
- package/dist/es2019/tokens/default/deprecated/deprecated.js +18 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +10 -10
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +37 -19
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +37 -19
- package/dist/esm/babel-plugin/plugin.js +57 -53
- package/dist/esm/constants.js +2 -1
- package/dist/esm/get-token.js +8 -2
- package/dist/esm/tokens/default/deprecated/deprecated.js +18 -9
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/rename-mapping.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -28
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -28
- package/dist/types/babel-plugin/plugin.d.ts +5 -5
- package/dist/types/constants.d.ts +1 -0
- package/package.json +7 -3
|
@@ -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::7cdaec19ecd5c921bc01bf32e95ed909>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -2886,9 +2886,10 @@ const tokens = [{
|
|
|
2886
2886
|
}, {
|
|
2887
2887
|
"attributes": {
|
|
2888
2888
|
"group": "paint",
|
|
2889
|
-
"state": "
|
|
2889
|
+
"state": "deleted",
|
|
2890
2890
|
"introduced": "0.1.0",
|
|
2891
2891
|
"deprecated": "0.8.3",
|
|
2892
|
+
"deleted": "0.10.5",
|
|
2892
2893
|
"replacement": "color.background.inverse.subtle.[default]",
|
|
2893
2894
|
"description": "Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards."
|
|
2894
2895
|
},
|
|
@@ -2898,9 +2899,10 @@ const tokens = [{
|
|
|
2898
2899
|
"original": {
|
|
2899
2900
|
"attributes": {
|
|
2900
2901
|
"group": "paint",
|
|
2901
|
-
"state": "
|
|
2902
|
+
"state": "deleted",
|
|
2902
2903
|
"introduced": "0.1.0",
|
|
2903
2904
|
"deprecated": "0.8.3",
|
|
2905
|
+
"deleted": "0.10.5",
|
|
2904
2906
|
"replacement": "color.background.inverse.subtle.[default]",
|
|
2905
2907
|
"description": "Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards."
|
|
2906
2908
|
},
|
|
@@ -3226,9 +3228,10 @@ const tokens = [{
|
|
|
3226
3228
|
}, {
|
|
3227
3229
|
"attributes": {
|
|
3228
3230
|
"group": "paint",
|
|
3229
|
-
"state": "
|
|
3231
|
+
"state": "deleted",
|
|
3230
3232
|
"introduced": "0.6.0",
|
|
3231
3233
|
"deprecated": "0.6.2",
|
|
3234
|
+
"deleted": "0.10.5",
|
|
3232
3235
|
"replacement": "color.background.selected.[default].[default]",
|
|
3233
3236
|
"description": "Use for the background of elements used to reinforce our brand."
|
|
3234
3237
|
},
|
|
@@ -3238,9 +3241,10 @@ const tokens = [{
|
|
|
3238
3241
|
"original": {
|
|
3239
3242
|
"attributes": {
|
|
3240
3243
|
"group": "paint",
|
|
3241
|
-
"state": "
|
|
3244
|
+
"state": "deleted",
|
|
3242
3245
|
"introduced": "0.6.0",
|
|
3243
3246
|
"deprecated": "0.6.2",
|
|
3247
|
+
"deleted": "0.10.5",
|
|
3244
3248
|
"replacement": "color.background.selected.[default].[default]",
|
|
3245
3249
|
"description": "Use for the background of elements used to reinforce our brand."
|
|
3246
3250
|
},
|
|
@@ -3251,9 +3255,10 @@ const tokens = [{
|
|
|
3251
3255
|
}, {
|
|
3252
3256
|
"attributes": {
|
|
3253
3257
|
"group": "paint",
|
|
3254
|
-
"state": "
|
|
3258
|
+
"state": "deleted",
|
|
3255
3259
|
"introduced": "0.6.0",
|
|
3256
3260
|
"deprecated": "0.6.2",
|
|
3261
|
+
"deleted": "0.10.5",
|
|
3257
3262
|
"replacement": "color.background.selected.[default].hovered",
|
|
3258
3263
|
"description": "Hovered state for color.background.brand"
|
|
3259
3264
|
},
|
|
@@ -3263,9 +3268,10 @@ const tokens = [{
|
|
|
3263
3268
|
"original": {
|
|
3264
3269
|
"attributes": {
|
|
3265
3270
|
"group": "paint",
|
|
3266
|
-
"state": "
|
|
3271
|
+
"state": "deleted",
|
|
3267
3272
|
"introduced": "0.6.0",
|
|
3268
3273
|
"deprecated": "0.6.2",
|
|
3274
|
+
"deleted": "0.10.5",
|
|
3269
3275
|
"replacement": "color.background.selected.[default].hovered",
|
|
3270
3276
|
"description": "Hovered state for color.background.brand"
|
|
3271
3277
|
},
|
|
@@ -3276,9 +3282,10 @@ const tokens = [{
|
|
|
3276
3282
|
}, {
|
|
3277
3283
|
"attributes": {
|
|
3278
3284
|
"group": "paint",
|
|
3279
|
-
"state": "
|
|
3285
|
+
"state": "deleted",
|
|
3280
3286
|
"introduced": "0.6.0",
|
|
3281
3287
|
"deprecated": "0.6.2",
|
|
3288
|
+
"deleted": "0.10.5",
|
|
3282
3289
|
"replacement": "color.background.selected.[default].pressed",
|
|
3283
3290
|
"description": "Pressed state for color.background.brand"
|
|
3284
3291
|
},
|
|
@@ -3288,9 +3295,10 @@ const tokens = [{
|
|
|
3288
3295
|
"original": {
|
|
3289
3296
|
"attributes": {
|
|
3290
3297
|
"group": "paint",
|
|
3291
|
-
"state": "
|
|
3298
|
+
"state": "deleted",
|
|
3292
3299
|
"introduced": "0.6.0",
|
|
3293
3300
|
"deprecated": "0.6.2",
|
|
3301
|
+
"deleted": "0.10.5",
|
|
3294
3302
|
"replacement": "color.background.selected.[default].pressed",
|
|
3295
3303
|
"description": "Pressed state for color.background.brand"
|
|
3296
3304
|
},
|
|
@@ -3427,9 +3435,10 @@ const tokens = [{
|
|
|
3427
3435
|
}, {
|
|
3428
3436
|
"attributes": {
|
|
3429
3437
|
"group": "paint",
|
|
3430
|
-
"state": "
|
|
3438
|
+
"state": "deleted",
|
|
3431
3439
|
"introduced": "0.1.0",
|
|
3432
3440
|
"deprecated": "0.6.0",
|
|
3441
|
+
"deleted": "0.10.5",
|
|
3433
3442
|
"replacement": "color.background.selected.[default].[default]",
|
|
3434
3443
|
"description": "Use for backgrounds of elements in a selected state"
|
|
3435
3444
|
},
|
|
@@ -3439,9 +3448,10 @@ const tokens = [{
|
|
|
3439
3448
|
"original": {
|
|
3440
3449
|
"attributes": {
|
|
3441
3450
|
"group": "paint",
|
|
3442
|
-
"state": "
|
|
3451
|
+
"state": "deleted",
|
|
3443
3452
|
"introduced": "0.1.0",
|
|
3444
3453
|
"deprecated": "0.6.0",
|
|
3454
|
+
"deleted": "0.10.5",
|
|
3445
3455
|
"replacement": "color.background.selected.[default].[default]",
|
|
3446
3456
|
"description": "Use for backgrounds of elements in a selected state"
|
|
3447
3457
|
},
|
|
@@ -3452,9 +3462,10 @@ const tokens = [{
|
|
|
3452
3462
|
}, {
|
|
3453
3463
|
"attributes": {
|
|
3454
3464
|
"group": "paint",
|
|
3455
|
-
"state": "
|
|
3465
|
+
"state": "deleted",
|
|
3456
3466
|
"introduced": "0.1.0",
|
|
3457
3467
|
"deprecated": "0.6.0",
|
|
3468
|
+
"deleted": "0.10.5",
|
|
3458
3469
|
"replacement": "color.background.selected.[default].hovered",
|
|
3459
3470
|
"description": "Hover state for color.background.selected"
|
|
3460
3471
|
},
|
|
@@ -3464,9 +3475,10 @@ const tokens = [{
|
|
|
3464
3475
|
"original": {
|
|
3465
3476
|
"attributes": {
|
|
3466
3477
|
"group": "paint",
|
|
3467
|
-
"state": "
|
|
3478
|
+
"state": "deleted",
|
|
3468
3479
|
"introduced": "0.1.0",
|
|
3469
3480
|
"deprecated": "0.6.0",
|
|
3481
|
+
"deleted": "0.10.5",
|
|
3470
3482
|
"replacement": "color.background.selected.[default].hovered",
|
|
3471
3483
|
"description": "Hover state for color.background.selected"
|
|
3472
3484
|
},
|
|
@@ -4755,9 +4767,10 @@ const tokens = [{
|
|
|
4755
4767
|
}, {
|
|
4756
4768
|
"attributes": {
|
|
4757
4769
|
"group": "paint",
|
|
4758
|
-
"state": "
|
|
4770
|
+
"state": "deleted",
|
|
4759
4771
|
"introduced": "0.0.15",
|
|
4760
4772
|
"deprecated": "0.6.0",
|
|
4773
|
+
"deleted": "0.10.5",
|
|
4761
4774
|
"replacement": "color.background.selected.[default].hovered",
|
|
4762
4775
|
"description": "Hover state for background.subtleBrand"
|
|
4763
4776
|
},
|
|
@@ -4767,9 +4780,10 @@ const tokens = [{
|
|
|
4767
4780
|
"original": {
|
|
4768
4781
|
"attributes": {
|
|
4769
4782
|
"group": "paint",
|
|
4770
|
-
"state": "
|
|
4783
|
+
"state": "deleted",
|
|
4771
4784
|
"introduced": "0.0.15",
|
|
4772
4785
|
"deprecated": "0.6.0",
|
|
4786
|
+
"deleted": "0.10.5",
|
|
4773
4787
|
"replacement": "color.background.selected.[default].hovered",
|
|
4774
4788
|
"description": "Hover state for background.subtleBrand"
|
|
4775
4789
|
},
|
|
@@ -4780,9 +4794,10 @@ const tokens = [{
|
|
|
4780
4794
|
}, {
|
|
4781
4795
|
"attributes": {
|
|
4782
4796
|
"group": "paint",
|
|
4783
|
-
"state": "
|
|
4797
|
+
"state": "deleted",
|
|
4784
4798
|
"introduced": "0.0.15",
|
|
4785
4799
|
"deprecated": "0.6.0",
|
|
4800
|
+
"deleted": "0.10.5",
|
|
4786
4801
|
"replacement": "color.background.selected.[default].pressed",
|
|
4787
4802
|
"description": "Pressed state for background.subtleBrand"
|
|
4788
4803
|
},
|
|
@@ -4792,9 +4807,10 @@ const tokens = [{
|
|
|
4792
4807
|
"original": {
|
|
4793
4808
|
"attributes": {
|
|
4794
4809
|
"group": "paint",
|
|
4795
|
-
"state": "
|
|
4810
|
+
"state": "deleted",
|
|
4796
4811
|
"introduced": "0.0.15",
|
|
4797
4812
|
"deprecated": "0.6.0",
|
|
4813
|
+
"deleted": "0.10.5",
|
|
4798
4814
|
"replacement": "color.background.selected.[default].pressed",
|
|
4799
4815
|
"description": "Pressed state for background.subtleBrand"
|
|
4800
4816
|
},
|
|
@@ -4805,9 +4821,10 @@ const tokens = [{
|
|
|
4805
4821
|
}, {
|
|
4806
4822
|
"attributes": {
|
|
4807
4823
|
"group": "paint",
|
|
4808
|
-
"state": "
|
|
4824
|
+
"state": "deleted",
|
|
4809
4825
|
"introduced": "0.0.15",
|
|
4810
4826
|
"deprecated": "0.6.0",
|
|
4827
|
+
"deleted": "0.10.5",
|
|
4811
4828
|
"replacement": "color.background.selected.[default].[default]",
|
|
4812
4829
|
"description": "Use for subdued backgrounds of UI elements like information section messages and in progress lozenges."
|
|
4813
4830
|
},
|
|
@@ -4817,9 +4834,10 @@ const tokens = [{
|
|
|
4817
4834
|
"original": {
|
|
4818
4835
|
"attributes": {
|
|
4819
4836
|
"group": "paint",
|
|
4820
|
-
"state": "
|
|
4837
|
+
"state": "deleted",
|
|
4821
4838
|
"introduced": "0.0.15",
|
|
4822
4839
|
"deprecated": "0.6.0",
|
|
4840
|
+
"deleted": "0.10.5",
|
|
4823
4841
|
"replacement": "color.background.selected.[default].[default]",
|
|
4824
4842
|
"description": "Use for subdued backgrounds of UI elements like information section messages and in progress lozenges."
|
|
4825
4843
|
},
|
|
@@ -4,66 +4,71 @@ import tokenNames from '../artifacts/token-names';
|
|
|
4
4
|
export default function plugin() {
|
|
5
5
|
return {
|
|
6
6
|
visitor: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Program: {
|
|
8
|
+
enter(path, state) {
|
|
9
|
+
path.traverse({
|
|
10
|
+
CallExpression(path) {
|
|
11
|
+
const tokenImportScope = getTokenImportScope(path);
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
if (!tokenImportScope) {
|
|
14
|
+
return;
|
|
15
|
+
} // Check arguments have correct format
|
|
13
16
|
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
if (!path.node.arguments[0]) {
|
|
19
|
+
throw new Error(`token() requires at least one argument`);
|
|
20
|
+
} else if (!t.isStringLiteral(path.node.arguments[0])) {
|
|
21
|
+
throw new Error(`token() must have a string as the first argument`);
|
|
22
|
+
} else if (path.node.arguments.length > 2) {
|
|
23
|
+
throw new Error(`token() does not accept ${path.node.arguments.length} arguments`);
|
|
24
|
+
} // Check the token exists
|
|
22
25
|
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
const tokenName = path.node.arguments[0].value;
|
|
28
|
+
const cssTokenValue = tokenNames[tokenName];
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
if (!cssTokenValue) {
|
|
31
|
+
throw new Error(`token '${tokenName}' does not exist`);
|
|
32
|
+
}
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
var replacementNode; // if no fallback is set, optionally find one from the default theme
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
if (path.node.arguments.length < 2) {
|
|
37
|
+
if (state.opts.shouldUseAutoFallback) {
|
|
38
|
+
replacementNode = t.stringLiteral(`var(${cssTokenValue}, ${getDefaultFallback(tokenName)})`);
|
|
39
|
+
} else {
|
|
40
|
+
replacementNode = t.stringLiteral(`var(${cssTokenValue})`);
|
|
41
|
+
}
|
|
42
|
+
} // Handle fallbacks
|
|
40
43
|
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
const fallback = path.node.arguments[1];
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
if (t.isStringLiteral(fallback)) {
|
|
48
|
+
// String literals can be concatenated into css variable call
|
|
49
|
+
// Empty string fallbacks are ignored. For now, as the user did specify a fallback, no default is inserted
|
|
50
|
+
replacementNode = t.stringLiteral(fallback.value ? `var(${cssTokenValue}, ${fallback.value})` : `var(${cssTokenValue})`);
|
|
51
|
+
} else if (t.isExpression(fallback)) {
|
|
52
|
+
// Expressions should be placed in a template string/literal
|
|
53
|
+
replacementNode = t.templateLiteral([t.templateElement({
|
|
54
|
+
cooked: `var(${cssTokenValue}, `,
|
|
55
|
+
// Currently we create a "raw" value by inserting escape characters via regex (https://github.com/babel/babel/issues/9242)
|
|
56
|
+
raw: `var(${cssTokenValue.replace(/\\|`|\${/g, '\\$&')}, `
|
|
57
|
+
}, false), t.templateElement({
|
|
58
|
+
raw: ')',
|
|
59
|
+
cooked: ')'
|
|
60
|
+
}, true)], [fallback]);
|
|
61
|
+
} // Replace path and call scope.crawl() to refresh the scope bindings + references
|
|
59
62
|
|
|
60
63
|
|
|
61
|
-
|
|
64
|
+
replacementNode && path.replaceWith(replacementNode); // @ts-ignore crawl is a valid property
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
tokenImportScope.crawl();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
});
|
|
70
|
+
},
|
|
65
71
|
|
|
66
|
-
Program: {
|
|
67
72
|
exit(path) {
|
|
68
73
|
path.traverse({
|
|
69
74
|
ImportDeclaration(path) {
|
package/dist/es2019/constants.js
CHANGED
package/dist/es2019/get-token.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
|
+
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
3
4
|
const name = "@atlaskit/tokens";
|
|
4
|
-
const version = "0.10.
|
|
5
|
+
const version = "0.10.6";
|
|
5
6
|
|
|
6
7
|
function token(path, fallback) {
|
|
7
8
|
let token = tokens[path];
|
|
8
9
|
|
|
9
10
|
if (process.env.NODE_ENV !== 'production' && !token) {
|
|
10
|
-
warnOnce(`Unknown token id at path: ${path} for ${name}@${version}`);
|
|
11
11
|
token = tokens['utility.UNSAFE_util.MISSING_TOKEN'];
|
|
12
|
+
warnOnce(`Unknown token id at path: ${path} for ${name}@${version}`);
|
|
13
|
+
} // if the token is not found - replacing it with variable name without any value, to avoid it being undefined which would result in invalid css
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if (!token) {
|
|
17
|
+
token = TOKEN_NOT_FOUND_CSS_VAR;
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
const tokenCall = fallback ? `var(${token}, ${fallback})` : `var(${token})`;
|
|
@@ -356,9 +356,10 @@ const color = {
|
|
|
356
356
|
'[default]': {
|
|
357
357
|
attributes: {
|
|
358
358
|
group: 'paint',
|
|
359
|
-
state: '
|
|
359
|
+
state: 'deleted',
|
|
360
360
|
introduced: '0.6.0',
|
|
361
361
|
deprecated: '0.6.2',
|
|
362
|
+
deleted: '0.10.5',
|
|
362
363
|
replacement: 'color.background.selected.[default].[default]',
|
|
363
364
|
description: 'Use for the background of elements used to reinforce our brand.'
|
|
364
365
|
}
|
|
@@ -366,9 +367,10 @@ const color = {
|
|
|
366
367
|
hovered: {
|
|
367
368
|
attributes: {
|
|
368
369
|
group: 'paint',
|
|
369
|
-
state: '
|
|
370
|
+
state: 'deleted',
|
|
370
371
|
introduced: '0.6.0',
|
|
371
372
|
deprecated: '0.6.2',
|
|
373
|
+
deleted: '0.10.5',
|
|
372
374
|
replacement: 'color.background.selected.[default].hovered',
|
|
373
375
|
description: 'Hovered state for color.background.brand'
|
|
374
376
|
}
|
|
@@ -376,9 +378,10 @@ const color = {
|
|
|
376
378
|
pressed: {
|
|
377
379
|
attributes: {
|
|
378
380
|
group: 'paint',
|
|
379
|
-
state: '
|
|
381
|
+
state: 'deleted',
|
|
380
382
|
introduced: '0.6.0',
|
|
381
383
|
deprecated: '0.6.2',
|
|
384
|
+
deleted: '0.10.5',
|
|
382
385
|
replacement: 'color.background.selected.[default].pressed',
|
|
383
386
|
description: 'Pressed state for color.background.brand'
|
|
384
387
|
}
|
|
@@ -621,9 +624,10 @@ const color = {
|
|
|
621
624
|
'[default]': {
|
|
622
625
|
attributes: {
|
|
623
626
|
group: 'paint',
|
|
624
|
-
state: '
|
|
627
|
+
state: 'deleted',
|
|
625
628
|
introduced: '0.1.0',
|
|
626
629
|
deprecated: '0.8.3',
|
|
630
|
+
deleted: '0.10.5',
|
|
627
631
|
replacement: 'color.background.inverse.subtle.[default]',
|
|
628
632
|
description: 'Use for backgrounds of elements on a bold background, such as in the buttons on spotlight cards.'
|
|
629
633
|
}
|
|
@@ -649,9 +653,10 @@ Combine with shadow.overlay.`
|
|
|
649
653
|
resting: {
|
|
650
654
|
attributes: {
|
|
651
655
|
group: 'paint',
|
|
652
|
-
state: '
|
|
656
|
+
state: 'deleted',
|
|
653
657
|
introduced: '0.1.0',
|
|
654
658
|
deprecated: '0.6.0',
|
|
659
|
+
deleted: '0.10.5',
|
|
655
660
|
replacement: 'color.background.selected.[default].[default]',
|
|
656
661
|
description: 'Use for backgrounds of elements in a selected state'
|
|
657
662
|
}
|
|
@@ -659,9 +664,10 @@ Combine with shadow.overlay.`
|
|
|
659
664
|
hover: {
|
|
660
665
|
attributes: {
|
|
661
666
|
group: 'paint',
|
|
662
|
-
state: '
|
|
667
|
+
state: 'deleted',
|
|
663
668
|
introduced: '0.1.0',
|
|
664
669
|
deprecated: '0.6.0',
|
|
670
|
+
deleted: '0.10.5',
|
|
665
671
|
replacement: 'color.background.selected.[default].hovered',
|
|
666
672
|
description: 'Hover state for color.background.selected'
|
|
667
673
|
}
|
|
@@ -695,9 +701,10 @@ Combine with shadow.overlay.`
|
|
|
695
701
|
hover: {
|
|
696
702
|
attributes: {
|
|
697
703
|
group: 'paint',
|
|
698
|
-
state: '
|
|
704
|
+
state: 'deleted',
|
|
699
705
|
introduced: '0.0.15',
|
|
700
706
|
deprecated: '0.6.0',
|
|
707
|
+
deleted: '0.10.5',
|
|
701
708
|
replacement: 'color.background.selected.[default].hovered',
|
|
702
709
|
description: 'Hover state for background.subtleBrand'
|
|
703
710
|
}
|
|
@@ -705,9 +712,10 @@ Combine with shadow.overlay.`
|
|
|
705
712
|
pressed: {
|
|
706
713
|
attributes: {
|
|
707
714
|
group: 'paint',
|
|
708
|
-
state: '
|
|
715
|
+
state: 'deleted',
|
|
709
716
|
introduced: '0.0.15',
|
|
710
717
|
deprecated: '0.6.0',
|
|
718
|
+
deleted: '0.10.5',
|
|
711
719
|
replacement: 'color.background.selected.[default].pressed',
|
|
712
720
|
description: 'Pressed state for background.subtleBrand'
|
|
713
721
|
}
|
|
@@ -715,9 +723,10 @@ Combine with shadow.overlay.`
|
|
|
715
723
|
resting: {
|
|
716
724
|
attributes: {
|
|
717
725
|
group: 'paint',
|
|
718
|
-
state: '
|
|
726
|
+
state: 'deleted',
|
|
719
727
|
introduced: '0.0.15',
|
|
720
728
|
deprecated: '0.6.0',
|
|
729
|
+
deleted: '0.10.5',
|
|
721
730
|
replacement: 'color.background.selected.[default].[default]',
|
|
722
731
|
description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
|
|
723
732
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -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::51fbaf5510a3fead6a2844d4df866a77>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
var renameMapper = [{
|
|
@@ -117,27 +117,27 @@ var renameMapper = [{
|
|
|
117
117
|
"replacement": "color.background.accent.magenta.subtle"
|
|
118
118
|
}, {
|
|
119
119
|
"path": "color.background.inverse.[default]",
|
|
120
|
-
"state": "
|
|
120
|
+
"state": "deleted",
|
|
121
121
|
"replacement": "color.background.inverse.subtle.[default]"
|
|
122
122
|
}, {
|
|
123
123
|
"path": "color.background.brand.[default].[default]",
|
|
124
|
-
"state": "
|
|
124
|
+
"state": "deleted",
|
|
125
125
|
"replacement": "color.background.selected.[default].[default]"
|
|
126
126
|
}, {
|
|
127
127
|
"path": "color.background.brand.[default].hovered",
|
|
128
|
-
"state": "
|
|
128
|
+
"state": "deleted",
|
|
129
129
|
"replacement": "color.background.selected.[default].hovered"
|
|
130
130
|
}, {
|
|
131
131
|
"path": "color.background.brand.[default].pressed",
|
|
132
|
-
"state": "
|
|
132
|
+
"state": "deleted",
|
|
133
133
|
"replacement": "color.background.selected.[default].pressed"
|
|
134
134
|
}, {
|
|
135
135
|
"path": "color.background.selected.resting",
|
|
136
|
-
"state": "
|
|
136
|
+
"state": "deleted",
|
|
137
137
|
"replacement": "color.background.selected.[default].[default]"
|
|
138
138
|
}, {
|
|
139
139
|
"path": "color.background.selected.hover",
|
|
140
|
-
"state": "
|
|
140
|
+
"state": "deleted",
|
|
141
141
|
"replacement": "color.background.selected.[default].hovered"
|
|
142
142
|
}, {
|
|
143
143
|
"path": "color.background.blanket",
|
|
@@ -237,15 +237,15 @@ var renameMapper = [{
|
|
|
237
237
|
"replacement": "color.background.input.[default]"
|
|
238
238
|
}, {
|
|
239
239
|
"path": "color.background.subtleBrand.hover",
|
|
240
|
-
"state": "
|
|
240
|
+
"state": "deleted",
|
|
241
241
|
"replacement": "color.background.selected.[default].hovered"
|
|
242
242
|
}, {
|
|
243
243
|
"path": "color.background.subtleBrand.pressed",
|
|
244
|
-
"state": "
|
|
244
|
+
"state": "deleted",
|
|
245
245
|
"replacement": "color.background.selected.[default].pressed"
|
|
246
246
|
}, {
|
|
247
247
|
"path": "color.background.subtleBrand.resting",
|
|
248
|
-
"state": "
|
|
248
|
+
"state": "deleted",
|
|
249
249
|
"replacement": "color.background.selected.[default].[default]"
|
|
250
250
|
}, {
|
|
251
251
|
"path": "color.background.subtleDanger.hover",
|