@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
|
@@ -356,9 +356,10 @@ var 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 @@ var 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 @@ var 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 @@ var 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
|
}
|
|
@@ -644,9 +648,10 @@ var color = {
|
|
|
644
648
|
resting: {
|
|
645
649
|
attributes: {
|
|
646
650
|
group: 'paint',
|
|
647
|
-
state: '
|
|
651
|
+
state: 'deleted',
|
|
648
652
|
introduced: '0.1.0',
|
|
649
653
|
deprecated: '0.6.0',
|
|
654
|
+
deleted: '0.10.5',
|
|
650
655
|
replacement: 'color.background.selected.[default].[default]',
|
|
651
656
|
description: 'Use for backgrounds of elements in a selected state'
|
|
652
657
|
}
|
|
@@ -654,9 +659,10 @@ var color = {
|
|
|
654
659
|
hover: {
|
|
655
660
|
attributes: {
|
|
656
661
|
group: 'paint',
|
|
657
|
-
state: '
|
|
662
|
+
state: 'deleted',
|
|
658
663
|
introduced: '0.1.0',
|
|
659
664
|
deprecated: '0.6.0',
|
|
665
|
+
deleted: '0.10.5',
|
|
660
666
|
replacement: 'color.background.selected.[default].hovered',
|
|
661
667
|
description: 'Hover state for color.background.selected'
|
|
662
668
|
}
|
|
@@ -690,9 +696,10 @@ var color = {
|
|
|
690
696
|
hover: {
|
|
691
697
|
attributes: {
|
|
692
698
|
group: 'paint',
|
|
693
|
-
state: '
|
|
699
|
+
state: 'deleted',
|
|
694
700
|
introduced: '0.0.15',
|
|
695
701
|
deprecated: '0.6.0',
|
|
702
|
+
deleted: '0.10.5',
|
|
696
703
|
replacement: 'color.background.selected.[default].hovered',
|
|
697
704
|
description: 'Hover state for background.subtleBrand'
|
|
698
705
|
}
|
|
@@ -700,9 +707,10 @@ var color = {
|
|
|
700
707
|
pressed: {
|
|
701
708
|
attributes: {
|
|
702
709
|
group: 'paint',
|
|
703
|
-
state: '
|
|
710
|
+
state: 'deleted',
|
|
704
711
|
introduced: '0.0.15',
|
|
705
712
|
deprecated: '0.6.0',
|
|
713
|
+
deleted: '0.10.5',
|
|
706
714
|
replacement: 'color.background.selected.[default].pressed',
|
|
707
715
|
description: 'Pressed state for background.subtleBrand'
|
|
708
716
|
}
|
|
@@ -710,9 +718,10 @@ var color = {
|
|
|
710
718
|
resting: {
|
|
711
719
|
attributes: {
|
|
712
720
|
group: 'paint',
|
|
713
|
-
state: '
|
|
721
|
+
state: 'deleted',
|
|
714
722
|
introduced: '0.0.15',
|
|
715
723
|
deprecated: '0.6.0',
|
|
724
|
+
deleted: '0.10.5',
|
|
716
725
|
replacement: 'color.background.selected.[default].[default]',
|
|
717
726
|
description: 'Use for subdued backgrounds of UI elements like information section messages and in progress lozenges.'
|
|
718
727
|
}
|
package/dist/esm/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
|
import tokens from './token-names';
|
|
@@ -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::2790b3e5387d05c20675eb77bb4ec986>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -57,33 +57,6 @@ declare const tokens: ({
|
|
|
57
57
|
};
|
|
58
58
|
name: string;
|
|
59
59
|
path: string[];
|
|
60
|
-
} | {
|
|
61
|
-
attributes: {
|
|
62
|
-
group: string;
|
|
63
|
-
state: string;
|
|
64
|
-
introduced: string;
|
|
65
|
-
deprecated: string;
|
|
66
|
-
replacement: string;
|
|
67
|
-
description: string;
|
|
68
|
-
deleted?: undefined;
|
|
69
|
-
};
|
|
70
|
-
value: string;
|
|
71
|
-
filePath: string;
|
|
72
|
-
isSource: boolean;
|
|
73
|
-
original: {
|
|
74
|
-
attributes: {
|
|
75
|
-
group: string;
|
|
76
|
-
state: string;
|
|
77
|
-
introduced: string;
|
|
78
|
-
deprecated: string;
|
|
79
|
-
replacement: string;
|
|
80
|
-
description: string;
|
|
81
|
-
deleted?: undefined;
|
|
82
|
-
};
|
|
83
|
-
value: string;
|
|
84
|
-
};
|
|
85
|
-
name: string;
|
|
86
|
-
path: string[];
|
|
87
60
|
} | {
|
|
88
61
|
attributes: {
|
|
89
62
|
group: string;
|
|
@@ -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
|
declare const tokens: ({
|
|
@@ -57,33 +57,6 @@ declare const tokens: ({
|
|
|
57
57
|
};
|
|
58
58
|
name: string;
|
|
59
59
|
path: string[];
|
|
60
|
-
} | {
|
|
61
|
-
attributes: {
|
|
62
|
-
group: string;
|
|
63
|
-
state: string;
|
|
64
|
-
introduced: string;
|
|
65
|
-
deprecated: string;
|
|
66
|
-
replacement: string;
|
|
67
|
-
description: string;
|
|
68
|
-
deleted?: undefined;
|
|
69
|
-
};
|
|
70
|
-
value: string;
|
|
71
|
-
filePath: string;
|
|
72
|
-
isSource: boolean;
|
|
73
|
-
original: {
|
|
74
|
-
attributes: {
|
|
75
|
-
group: string;
|
|
76
|
-
state: string;
|
|
77
|
-
introduced: string;
|
|
78
|
-
deprecated: string;
|
|
79
|
-
replacement: string;
|
|
80
|
-
description: string;
|
|
81
|
-
deleted?: undefined;
|
|
82
|
-
};
|
|
83
|
-
value: string;
|
|
84
|
-
};
|
|
85
|
-
name: string;
|
|
86
|
-
path: string[];
|
|
87
60
|
} | {
|
|
88
61
|
attributes: {
|
|
89
62
|
group: string;
|
|
@@ -2,12 +2,12 @@ import { NodePath } from '@babel/traverse';
|
|
|
2
2
|
import * as t from '@babel/types';
|
|
3
3
|
export default function plugin(): {
|
|
4
4
|
visitor: {
|
|
5
|
-
CallExpression(path: NodePath<t.CallExpression>, state: {
|
|
6
|
-
opts: {
|
|
7
|
-
shouldUseAutoFallback?: boolean;
|
|
8
|
-
};
|
|
9
|
-
}): void;
|
|
10
5
|
Program: {
|
|
6
|
+
enter(path: NodePath<t.Program>, state: {
|
|
7
|
+
opts: {
|
|
8
|
+
shouldUseAutoFallback?: boolean;
|
|
9
|
+
};
|
|
10
|
+
}): void;
|
|
11
11
|
exit(path: NodePath<t.Program>): void;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -3,3 +3,4 @@ export declare const THEME_DATA_ATTRIBUTE = "data-theme";
|
|
|
3
3
|
export declare const DEFAULT_THEME = "light";
|
|
4
4
|
export declare const CSS_PREFIX = "ds";
|
|
5
5
|
export declare const LONG_SHORT_MAPPING: Record<string, typeof THEMES[number]>;
|
|
6
|
+
export declare const TOKEN_NOT_FOUND_CSS_VAR: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"draft": true
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
19
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
20
20
|
"main": "dist/cjs/index.js",
|
|
21
21
|
"module": "dist/esm/index.js",
|
|
22
22
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -55,9 +55,10 @@
|
|
|
55
55
|
"@af/codegen": "*",
|
|
56
56
|
"@atlaskit/badge": "^15.0.11",
|
|
57
57
|
"@atlaskit/button": "^16.3.0",
|
|
58
|
+
"@atlaskit/checkbox": "^12.3.9",
|
|
58
59
|
"@atlaskit/code": "^14.3.0",
|
|
59
60
|
"@atlaskit/docs": "^9.0.10",
|
|
60
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
61
|
+
"@atlaskit/dropdown-menu": "^11.2.0",
|
|
61
62
|
"@atlaskit/empty-state": "^7.3.9",
|
|
62
63
|
"@atlaskit/focus-ring": "^1.0.0",
|
|
63
64
|
"@atlaskit/heading": "^0.1.8",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
"@atlaskit/modal-dialog": "^12.2.4",
|
|
67
68
|
"@atlaskit/section-message": "^6.1.7",
|
|
68
69
|
"@atlaskit/tabs": "^13.2.4",
|
|
70
|
+
"@atlaskit/tag": "^11.3.1",
|
|
69
71
|
"@atlaskit/textfield": "^5.1.5",
|
|
70
72
|
"@atlaskit/theme": "^12.1.2",
|
|
71
73
|
"@atlaskit/toggle": "^12.4.2",
|
|
@@ -76,8 +78,10 @@
|
|
|
76
78
|
"@testing-library/dom": "^7.7.3",
|
|
77
79
|
"@testing-library/react": "^8.0.1",
|
|
78
80
|
"@testing-library/react-hooks": "^1.0.4",
|
|
81
|
+
"@testing-library/user-event": "10.4.0",
|
|
79
82
|
"@types/chrome": "^0.0.171",
|
|
80
83
|
"copy-webpack-plugin": "^6.4.0",
|
|
84
|
+
"fuse.js": "^6.6.2",
|
|
81
85
|
"lodash": "^4.17.21",
|
|
82
86
|
"prettier": "^2.1.1",
|
|
83
87
|
"react": "^16.8.0",
|