@atlaskit/tokens 0.3.0 → 0.4.0
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 +20 -0
- package/README.md +28 -0
- package/babel-plugin/package.json +7 -0
- package/css/atlassian-dark.css +24 -23
- package/css/atlassian-light.css +21 -20
- package/dist/cjs/artifacts/rename-mapping.js +23 -0
- package/dist/cjs/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/cjs/{tokens → artifacts}/token-names.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1786 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1766 -0
- package/dist/cjs/artifacts/types.js +5 -0
- package/dist/cjs/{entry-points/token-default-values.js → babel-plugin/index.js} +2 -2
- package/dist/cjs/babel-plugin/plugin.js +176 -0
- package/dist/cjs/entry-points/rename-mapping.js +1 -1
- package/dist/cjs/entry-points/token-names.js +1 -1
- package/dist/cjs/figma/synchronize-figma-tokens.js +41 -39
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/cjs/tokens/default/color/accent.js +13 -0
- package/dist/cjs/tokens/default/color/background.js +49 -0
- package/dist/cjs/tokens/default/color/border.js +2 -0
- package/dist/cjs/tokens/default/color/icon-border.js +5 -0
- package/dist/cjs/tokens/default/color/overlay.js +2 -0
- package/dist/cjs/tokens/default/color/text.js +14 -0
- package/dist/cjs/tokens/default/shadow/shadow.js +2 -0
- package/dist/cjs/tokens/default/utility/utility.js +10 -2
- package/dist/cjs/tokens/palette.js +145 -260
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +16 -0
- package/dist/es2019/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/es2019/{tokens → artifacts}/token-names.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/es2019/artifacts/types.js +1 -0
- package/dist/es2019/babel-plugin/index.js +1 -0
- package/dist/es2019/babel-plugin/plugin.js +151 -0
- package/dist/es2019/entry-points/rename-mapping.js +1 -1
- package/dist/es2019/entry-points/token-names.js +1 -1
- package/dist/es2019/figma/synchronize-figma-tokens.js +41 -39
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/es2019/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/es2019/tokens/default/color/accent.js +13 -0
- package/dist/es2019/tokens/default/color/background.js +49 -0
- package/dist/es2019/tokens/default/color/border.js +2 -0
- package/dist/es2019/tokens/default/color/icon-border.js +5 -0
- package/dist/es2019/tokens/default/color/overlay.js +2 -0
- package/dist/es2019/tokens/default/color/text.js +14 -0
- package/dist/es2019/tokens/default/shadow/shadow.js +2 -0
- package/dist/es2019/tokens/default/utility/utility.js +10 -2
- package/dist/es2019/tokens/palette.js +145 -260
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +16 -0
- package/dist/esm/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/esm/{tokens → artifacts}/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/esm/artifacts/types.js +1 -0
- package/dist/esm/babel-plugin/index.js +1 -0
- package/dist/esm/babel-plugin/plugin.js +158 -0
- package/dist/esm/entry-points/rename-mapping.js +1 -1
- package/dist/esm/entry-points/token-names.js +1 -1
- package/dist/esm/figma/synchronize-figma-tokens.js +41 -39
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/esm/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/esm/tokens/default/color/accent.js +13 -0
- package/dist/esm/tokens/default/color/background.js +49 -0
- package/dist/esm/tokens/default/color/border.js +2 -0
- package/dist/esm/tokens/default/color/icon-border.js +5 -0
- package/dist/esm/tokens/default/color/overlay.js +2 -0
- package/dist/esm/tokens/default/color/text.js +14 -0
- package/dist/esm/tokens/default/shadow/shadow.js +2 -0
- package/dist/esm/tokens/default/utility/utility.js +10 -2
- package/dist/esm/tokens/palette.js +145 -260
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/rename-mapping.d.ts +17 -0
- package/dist/types/{tokens → artifacts}/token-default-values.d.ts +21 -20
- package/dist/types/{tokens → artifacts}/token-names.d.ts +2 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +80 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +56 -0
- package/dist/types/artifacts/types.d.ts +4 -0
- package/dist/types/babel-plugin/index.d.ts +1 -0
- package/dist/types/babel-plugin/plugin.d.ts +14 -0
- package/dist/types/entry-points/babel-plugin.d.ts +1 -0
- package/dist/types/entry-points/rename-mapping.d.ts +1 -1
- package/dist/types/entry-points/token-names.d.ts +2 -2
- package/dist/types/get-token.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +10 -2
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +10 -2
- package/dist/types/tokens/default/utility/utility.d.ts +138 -2
- package/dist/types/types.d.ts +49 -14
- package/package.json +17 -6
- package/dist/cjs/tokens/rename-mapping.js +0 -29
- package/dist/es2019/entry-points/token-default-values.js +0 -1
- package/dist/es2019/tokens/rename-mapping.js +0 -21
- package/dist/esm/entry-points/token-default-values.js +0 -1
- package/dist/esm/tokens/rename-mapping.js +0 -21
- package/dist/types/entry-points/token-default-values.d.ts +0 -1
- package/dist/types/tokens/rename-mapping.d.ts +0 -24
- package/token-default-values/package.json +0 -7
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is intended to help automate renaming of tokens.
|
|
3
|
+
*
|
|
4
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
5
|
+
* 2. Add a 'rename' attribute to the token with the value 'my.new.token'
|
|
6
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
7
|
+
* 4. Run 'bolt build tokens' to have you changes reflected in this map
|
|
8
|
+
* 5. eslint and other tools will now use this to automate replacing tokens
|
|
9
|
+
*
|
|
10
|
+
* These changes will then be picked up by our tooling, which will attempt to
|
|
11
|
+
* migrate as many of these renames as possible
|
|
12
|
+
*/
|
|
13
|
+
import tokens from './token-names';
|
|
14
|
+
declare type Token = keyof typeof tokens | string;
|
|
15
|
+
declare type RenameMapper = Partial<Record<Token, Token>>;
|
|
16
|
+
declare const renameMapper: RenameMapper;
|
|
17
|
+
export default renameMapper;
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
*/
|
|
4
4
|
declare const defaultTokenValues: {
|
|
5
5
|
readonly 'color.accent.boldBlue': "#579DFF";
|
|
6
|
-
readonly 'color.accent.boldGreen': "#
|
|
7
|
-
readonly 'color.accent.boldOrange': "#
|
|
6
|
+
readonly 'color.accent.boldGreen': "#4BCE97";
|
|
7
|
+
readonly 'color.accent.boldOrange': "#FAA53D";
|
|
8
8
|
readonly 'color.accent.boldPurple': "#9F8FEF";
|
|
9
|
-
readonly 'color.accent.boldRed': "#
|
|
10
|
-
readonly 'color.accent.boldTeal': "#
|
|
9
|
+
readonly 'color.accent.boldRed': "#F87462";
|
|
10
|
+
readonly 'color.accent.boldTeal': "#60C6D2";
|
|
11
11
|
readonly 'color.accent.subtleBlue': "#CCE0FF";
|
|
12
|
-
readonly 'color.accent.subtleGreen': "#
|
|
12
|
+
readonly 'color.accent.subtleGreen': "#BAF3DB";
|
|
13
13
|
readonly 'color.accent.subtleMagenta': "#FDD0EC";
|
|
14
|
-
readonly 'color.accent.subtleOrange': "#
|
|
14
|
+
readonly 'color.accent.subtleOrange': "#FFE2BD";
|
|
15
15
|
readonly 'color.accent.subtlePurple': "#DFD8FD";
|
|
16
16
|
readonly 'color.accent.subtleRed': "#FFD2CC";
|
|
17
|
-
readonly 'color.accent.subtleTeal': "#
|
|
17
|
+
readonly 'color.accent.subtleTeal': "#C1F0F5";
|
|
18
18
|
readonly 'color.background.sunken': "#091E4208";
|
|
19
19
|
readonly 'color.background.default': "#FFFFFF";
|
|
20
20
|
readonly 'color.background.card': "#FFFFFF";
|
|
@@ -30,24 +30,24 @@ declare const defaultTokenValues: {
|
|
|
30
30
|
readonly 'color.background.subtleBrand.resting': "#E9F2FF";
|
|
31
31
|
readonly 'color.background.subtleBrand.hover': "#CCE0FF";
|
|
32
32
|
readonly 'color.background.subtleBrand.pressed': "#85B8FF";
|
|
33
|
-
readonly 'color.background.boldDanger.resting': "#
|
|
34
|
-
readonly 'color.background.boldDanger.hover': "#
|
|
35
|
-
readonly 'color.background.boldDanger.pressed': "#
|
|
33
|
+
readonly 'color.background.boldDanger.resting': "#CA3521";
|
|
34
|
+
readonly 'color.background.boldDanger.hover': "#AE2A19";
|
|
35
|
+
readonly 'color.background.boldDanger.pressed': "#601E16";
|
|
36
36
|
readonly 'color.background.subtleDanger.resting': "#FFEDEB";
|
|
37
37
|
readonly 'color.background.subtleDanger.hover': "#FFD2CC";
|
|
38
|
-
readonly 'color.background.subtleDanger.pressed': "#
|
|
39
|
-
readonly 'color.background.boldWarning.resting': "#
|
|
40
|
-
readonly 'color.background.boldWarning.hover': "#
|
|
38
|
+
readonly 'color.background.subtleDanger.pressed': "#FF9C8F";
|
|
39
|
+
readonly 'color.background.boldWarning.resting': "#E2B203";
|
|
40
|
+
readonly 'color.background.boldWarning.hover': "#CF9F02";
|
|
41
41
|
readonly 'color.background.boldWarning.pressed': "#B38600";
|
|
42
42
|
readonly 'color.background.subtleWarning.resting': "#FFF7D6";
|
|
43
|
-
readonly 'color.background.subtleWarning.hover': "#
|
|
44
|
-
readonly 'color.background.subtleWarning.pressed': "#
|
|
43
|
+
readonly 'color.background.subtleWarning.hover': "#F8E6A0";
|
|
44
|
+
readonly 'color.background.subtleWarning.pressed': "#F5CD47";
|
|
45
45
|
readonly 'color.background.boldSuccess.resting': "#1F845A";
|
|
46
46
|
readonly 'color.background.boldSuccess.hover': "#216E4E";
|
|
47
47
|
readonly 'color.background.boldSuccess.pressed': "#164B35";
|
|
48
48
|
readonly 'color.background.subtleSuccess.resting': "#DFFCF0";
|
|
49
|
-
readonly 'color.background.subtleSuccess.hover': "#
|
|
50
|
-
readonly 'color.background.subtleSuccess.pressed': "#
|
|
49
|
+
readonly 'color.background.subtleSuccess.hover': "#BAF3DB";
|
|
50
|
+
readonly 'color.background.subtleSuccess.pressed': "#7EE2B8";
|
|
51
51
|
readonly 'color.background.boldDiscovery.resting': "#6E5DC6";
|
|
52
52
|
readonly 'color.background.boldDiscovery.hover': "#5E4DB2";
|
|
53
53
|
readonly 'color.background.boldDiscovery.pressed': "#352C63";
|
|
@@ -67,8 +67,8 @@ declare const defaultTokenValues: {
|
|
|
67
67
|
readonly 'color.border.focus': "#388BFF";
|
|
68
68
|
readonly 'color.border.neutral': "#091E4224";
|
|
69
69
|
readonly 'color.iconBorder.brand': "#1D7AFC";
|
|
70
|
-
readonly 'color.iconBorder.danger': "#
|
|
71
|
-
readonly 'color.iconBorder.warning': "#
|
|
70
|
+
readonly 'color.iconBorder.danger': "#E34935";
|
|
71
|
+
readonly 'color.iconBorder.warning': "#D97008";
|
|
72
72
|
readonly 'color.iconBorder.success': "#22A06B";
|
|
73
73
|
readonly 'color.iconBorder.discovery': "#8270DB";
|
|
74
74
|
readonly 'color.overlay.hover': "#091E424F";
|
|
@@ -83,12 +83,13 @@ declare const defaultTokenValues: {
|
|
|
83
83
|
readonly 'color.text.link.pressed': "#0055CC";
|
|
84
84
|
readonly 'color.text.brand': "#0055CC";
|
|
85
85
|
readonly 'color.text.warning': "#974F0C";
|
|
86
|
-
readonly 'color.text.danger': "#
|
|
86
|
+
readonly 'color.text.danger': "#AE2A19";
|
|
87
87
|
readonly 'color.text.success': "#216E4E";
|
|
88
88
|
readonly 'color.text.discovery': "#5E4DB2";
|
|
89
89
|
readonly 'color.text.disabled': "#8993A5";
|
|
90
90
|
readonly 'shadow.card': "0px 1px 1px #091E4240, 0px 0px 1px #091E424F";
|
|
91
91
|
readonly 'shadow.overlay': "0px 8px 12px #091E4226, 0px 0px 1px #091E424F";
|
|
92
92
|
readonly 'utility.UNSAFE_util.transparent': "transparent";
|
|
93
|
+
readonly 'utility.UNSAFE_util.MISSING_TOKEN': "#FA11F2";
|
|
93
94
|
};
|
|
94
95
|
export default defaultTokenValues;
|
|
@@ -87,6 +87,7 @@ declare const tokens: {
|
|
|
87
87
|
readonly 'shadow.card': "--ds-card";
|
|
88
88
|
readonly 'shadow.overlay': "--ds-overlay";
|
|
89
89
|
readonly 'utility.UNSAFE_util.transparent': "--ds-UNSAFE_util-transparent";
|
|
90
|
+
readonly 'utility.UNSAFE_util.MISSING_TOKEN': "--ds-UNSAFE_util-MISSING_TOKEN";
|
|
90
91
|
};
|
|
91
92
|
export declare type CSSTokenMap = {
|
|
92
93
|
'color.accent.boldBlue': 'var(--ds-accent-boldBlue)';
|
|
@@ -177,6 +178,7 @@ export declare type CSSTokenMap = {
|
|
|
177
178
|
'shadow.card': 'var(--ds-card)';
|
|
178
179
|
'shadow.overlay': 'var(--ds-overlay)';
|
|
179
180
|
'utility.UNSAFE_util.transparent': 'var(--ds-UNSAFE_util-transparent)';
|
|
181
|
+
'utility.UNSAFE_util.MISSING_TOKEN': 'var(--ds-UNSAFE_util-MISSING_TOKEN)';
|
|
180
182
|
};
|
|
181
183
|
export declare type CSSToken = CSSTokenMap[keyof CSSTokenMap];
|
|
182
184
|
export default tokens;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const tokens: ({
|
|
2
|
+
attributes: {
|
|
3
|
+
group: string;
|
|
4
|
+
state: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
value: string;
|
|
8
|
+
filePath: string;
|
|
9
|
+
isSource: boolean;
|
|
10
|
+
original: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: string;
|
|
13
|
+
state: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
name: string;
|
|
19
|
+
path: string[];
|
|
20
|
+
} | {
|
|
21
|
+
attributes: {
|
|
22
|
+
group: string;
|
|
23
|
+
state: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
value: ({
|
|
27
|
+
radius: number;
|
|
28
|
+
spread: number;
|
|
29
|
+
color: string;
|
|
30
|
+
offset: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
};
|
|
34
|
+
opacity: number;
|
|
35
|
+
inset: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
radius: number;
|
|
38
|
+
offset: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
color: string;
|
|
43
|
+
opacity: number;
|
|
44
|
+
spread?: undefined;
|
|
45
|
+
inset?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
filePath: string;
|
|
48
|
+
isSource: boolean;
|
|
49
|
+
original: {
|
|
50
|
+
attributes: {
|
|
51
|
+
group: string;
|
|
52
|
+
state: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
value: ({
|
|
56
|
+
radius: number;
|
|
57
|
+
spread: number;
|
|
58
|
+
color: string;
|
|
59
|
+
offset: {
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
};
|
|
63
|
+
opacity: number;
|
|
64
|
+
inset: boolean;
|
|
65
|
+
} | {
|
|
66
|
+
radius: number;
|
|
67
|
+
offset: {
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
};
|
|
71
|
+
color: string;
|
|
72
|
+
opacity: number;
|
|
73
|
+
spread?: undefined;
|
|
74
|
+
inset?: undefined;
|
|
75
|
+
})[];
|
|
76
|
+
};
|
|
77
|
+
name: string;
|
|
78
|
+
path: string[];
|
|
79
|
+
})[];
|
|
80
|
+
export default tokens;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const tokens: ({
|
|
2
|
+
attributes: {
|
|
3
|
+
group: string;
|
|
4
|
+
state: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
value: string;
|
|
8
|
+
filePath: string;
|
|
9
|
+
isSource: boolean;
|
|
10
|
+
original: {
|
|
11
|
+
attributes: {
|
|
12
|
+
group: string;
|
|
13
|
+
state: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
name: string;
|
|
19
|
+
path: string[];
|
|
20
|
+
} | {
|
|
21
|
+
attributes: {
|
|
22
|
+
group: string;
|
|
23
|
+
state: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
value: {
|
|
27
|
+
radius: number;
|
|
28
|
+
offset: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
color: string;
|
|
33
|
+
opacity: number;
|
|
34
|
+
}[];
|
|
35
|
+
filePath: string;
|
|
36
|
+
isSource: boolean;
|
|
37
|
+
original: {
|
|
38
|
+
attributes: {
|
|
39
|
+
group: string;
|
|
40
|
+
state: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
value: {
|
|
44
|
+
radius: number;
|
|
45
|
+
offset: {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
};
|
|
49
|
+
color: string;
|
|
50
|
+
opacity: number;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
name: string;
|
|
54
|
+
path: string[];
|
|
55
|
+
})[];
|
|
56
|
+
export default tokens;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type representing the currently active tokens
|
|
3
|
+
*/
|
|
4
|
+
export declare type ActiveTokens = 'color.accent.boldBlue' | 'color.accent.boldGreen' | 'color.accent.boldOrange' | 'color.accent.boldPurple' | 'color.accent.boldRed' | 'color.accent.boldTeal' | 'color.accent.subtleBlue' | 'color.accent.subtleGreen' | 'color.accent.subtleMagenta' | 'color.accent.subtleOrange' | 'color.accent.subtlePurple' | 'color.accent.subtleRed' | 'color.accent.subtleTeal' | 'color.background.sunken' | 'color.background.default' | 'color.background.card' | 'color.background.overlay' | 'color.background.selected.resting' | 'color.background.selected.hover' | 'color.background.selected.pressed' | 'color.background.blanket' | 'color.background.disabled' | 'color.background.boldBrand.resting' | 'color.background.boldBrand.hover' | 'color.background.boldBrand.pressed' | 'color.background.subtleBrand.resting' | 'color.background.subtleBrand.hover' | 'color.background.subtleBrand.pressed' | 'color.background.boldDanger.resting' | 'color.background.boldDanger.hover' | 'color.background.boldDanger.pressed' | 'color.background.subtleDanger.resting' | 'color.background.subtleDanger.hover' | 'color.background.subtleDanger.pressed' | 'color.background.boldWarning.resting' | 'color.background.boldWarning.hover' | 'color.background.boldWarning.pressed' | 'color.background.subtleWarning.resting' | 'color.background.subtleWarning.hover' | 'color.background.subtleWarning.pressed' | 'color.background.boldSuccess.resting' | 'color.background.boldSuccess.hover' | 'color.background.boldSuccess.pressed' | 'color.background.subtleSuccess.resting' | 'color.background.subtleSuccess.hover' | 'color.background.subtleSuccess.pressed' | 'color.background.boldDiscovery.resting' | 'color.background.boldDiscovery.hover' | 'color.background.boldDiscovery.pressed' | 'color.background.subtleDiscovery.resting' | 'color.background.subtleDiscovery.hover' | 'color.background.subtleDiscovery.pressed' | 'color.background.boldNeutral.resting' | 'color.background.boldNeutral.hover' | 'color.background.boldNeutral.pressed' | 'color.background.transparentNeutral.hover' | 'color.background.transparentNeutral.pressed' | 'color.background.subtleNeutral.resting' | 'color.background.subtleNeutral.hover' | 'color.background.subtleNeutral.pressed' | 'color.background.subtleBorderedNeutral.resting' | 'color.background.subtleBorderedNeutral.pressed' | 'color.border.focus' | 'color.border.neutral' | 'color.iconBorder.brand' | 'color.iconBorder.danger' | 'color.iconBorder.warning' | 'color.iconBorder.success' | 'color.iconBorder.discovery' | 'color.overlay.hover' | 'color.overlay.pressed' | 'color.text.selected' | 'color.text.highEmphasis' | 'color.text.mediumEmphasis' | 'color.text.lowEmphasis' | 'color.text.onBold' | 'color.text.onBoldWarning' | 'color.text.link.resting' | 'color.text.link.pressed' | 'color.text.brand' | 'color.text.warning' | 'color.text.danger' | 'color.text.success' | 'color.text.discovery' | 'color.text.disabled' | 'shadow.card' | 'shadow.overlay' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './plugin';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NodePath } from '@babel/traverse';
|
|
2
|
+
import * as t from '@babel/types';
|
|
3
|
+
export default function plugin(): {
|
|
4
|
+
visitor: {
|
|
5
|
+
CallExpression(path: NodePath<t.CallExpression>, state: {
|
|
6
|
+
opts: {
|
|
7
|
+
shouldUseAutoFallback?: boolean;
|
|
8
|
+
};
|
|
9
|
+
}): void;
|
|
10
|
+
Program: {
|
|
11
|
+
exit(path: NodePath<t.Program>): void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '../babel-plugin/plugin';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../artifacts/rename-mapping';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { CSSToken } from '../
|
|
1
|
+
export { default } from '../artifacts/token-names';
|
|
2
|
+
export type { CSSToken } from '../artifacts/token-names';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import tokens, { CSSTokenMap } from './
|
|
1
|
+
import tokens, { CSSTokenMap } from './artifacts/token-names';
|
|
2
2
|
declare type tokenSchema = typeof tokens;
|
|
3
3
|
declare function token<T extends keyof tokenSchema>(path: T, fallback?: string): CSSTokenMap[T];
|
|
4
4
|
export default token;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import type { UtilTokenSchema, ValueSchema } from '../../../types';
|
|
2
1
|
declare const _default: {
|
|
3
|
-
utility:
|
|
2
|
+
utility: Pick<{
|
|
3
|
+
UNSAFE_util: {
|
|
4
|
+
transparent: {
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
MISSING_TOKEN: {
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, "UNSAFE_util">;
|
|
4
12
|
};
|
|
5
13
|
export default _default;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import type { UtilTokenSchema, ValueSchema } from '../../../types';
|
|
2
1
|
declare const _default: {
|
|
3
|
-
utility:
|
|
2
|
+
utility: Pick<{
|
|
3
|
+
UNSAFE_util: {
|
|
4
|
+
transparent: {
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
MISSING_TOKEN: {
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, "UNSAFE_util">;
|
|
4
12
|
};
|
|
5
13
|
export default _default;
|