@atlaskit/tokens 4.7.0 → 4.8.1
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 +21 -0
- package/dist/cjs/babel-plugin/plugin.js +1 -1
- package/dist/cjs/entry-points/tokens-raw.js +14 -0
- package/dist/es2019/babel-plugin/plugin.js +1 -1
- package/dist/es2019/entry-points/tokens-raw.js +2 -0
- package/dist/esm/babel-plugin/plugin.js +1 -1
- package/dist/esm/entry-points/tokens-raw.js +2 -0
- package/dist/types/entry-points/tokens-raw.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +2 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 4.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#145286](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145286)
|
|
8
|
+
[`1da0ecb159341`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1da0ecb159341) -
|
|
9
|
+
Tiny wording change on @atlaskit/tokens/babel-plugin to more clearly describe the error without
|
|
10
|
+
string literal argument(s)
|
|
11
|
+
|
|
12
|
+
## 4.8.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#139915](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139915)
|
|
17
|
+
[`bb8ff89963687`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bb8ff89963687) -
|
|
18
|
+
Add lightBrandRefresh and darkBrandRefresh to @atlaskit/tokens/tokens-raw
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 4.7.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -99,7 +99,7 @@ function plugin() {
|
|
|
99
99
|
if (!path.node.arguments[0]) {
|
|
100
100
|
throw new Error("token() requires at least one argument");
|
|
101
101
|
} else if (!t.isStringLiteral(path.node.arguments[0])) {
|
|
102
|
-
throw new Error("token() must have a string as the first argument");
|
|
102
|
+
throw new Error("token() must have a string literal as the first argument");
|
|
103
103
|
} else if (path.node.arguments.length > 2) {
|
|
104
104
|
throw new Error("token() does not accept ".concat(path.node.arguments.length, " arguments"));
|
|
105
105
|
}
|
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "dark", {
|
|
|
10
10
|
return _atlassianDark.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "darkBrandRefresh", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _atlassianDarkBrandRefresh.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
Object.defineProperty(exports, "legacyLightTokens", {
|
|
14
20
|
enumerable: true,
|
|
15
21
|
get: function get() {
|
|
@@ -22,6 +28,12 @@ Object.defineProperty(exports, "light", {
|
|
|
22
28
|
return _atlassianLight.default;
|
|
23
29
|
}
|
|
24
30
|
});
|
|
31
|
+
Object.defineProperty(exports, "lightBrandRefresh", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _atlassianLightBrandRefresh.default;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
25
37
|
Object.defineProperty(exports, "shape", {
|
|
26
38
|
enumerable: true,
|
|
27
39
|
get: function get() {
|
|
@@ -53,8 +65,10 @@ Object.defineProperty(exports, "typographyRefreshed", {
|
|
|
53
65
|
}
|
|
54
66
|
});
|
|
55
67
|
var _atlassianLight = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-light"));
|
|
68
|
+
var _atlassianLightBrandRefresh = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-light-brand-refresh"));
|
|
56
69
|
var _atlassianLegacyLight = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-legacy-light"));
|
|
57
70
|
var _atlassianDark = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-dark"));
|
|
71
|
+
var _atlassianDarkBrandRefresh = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-dark-brand-refresh"));
|
|
58
72
|
var _atlassianSpacing = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-spacing"));
|
|
59
73
|
var _atlassianTypographyModernized = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-typography-modernized"));
|
|
60
74
|
var _atlassianTypographyRefreshed = _interopRequireDefault(require("../artifacts/tokens-raw/atlassian-typography-refreshed"));
|
|
@@ -75,7 +75,7 @@ export default function plugin() {
|
|
|
75
75
|
if (!path.node.arguments[0]) {
|
|
76
76
|
throw new Error(`token() requires at least one argument`);
|
|
77
77
|
} else if (!t.isStringLiteral(path.node.arguments[0])) {
|
|
78
|
-
throw new Error(`token() must have a string as the first argument`);
|
|
78
|
+
throw new Error(`token() must have a string literal as the first argument`);
|
|
79
79
|
} else if (path.node.arguments.length > 2) {
|
|
80
80
|
throw new Error(`token() does not accept ${path.node.arguments.length} arguments`);
|
|
81
81
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as light } from '../artifacts/tokens-raw/atlassian-light';
|
|
2
|
+
export { default as lightBrandRefresh } from '../artifacts/tokens-raw/atlassian-light-brand-refresh';
|
|
2
3
|
export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-legacy-light';
|
|
3
4
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
5
|
+
export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
|
|
4
6
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
7
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
8
|
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
@@ -89,7 +89,7 @@ export default function plugin() {
|
|
|
89
89
|
if (!path.node.arguments[0]) {
|
|
90
90
|
throw new Error("token() requires at least one argument");
|
|
91
91
|
} else if (!t.isStringLiteral(path.node.arguments[0])) {
|
|
92
|
-
throw new Error("token() must have a string as the first argument");
|
|
92
|
+
throw new Error("token() must have a string literal as the first argument");
|
|
93
93
|
} else if (path.node.arguments.length > 2) {
|
|
94
94
|
throw new Error("token() does not accept ".concat(path.node.arguments.length, " arguments"));
|
|
95
95
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as light } from '../artifacts/tokens-raw/atlassian-light';
|
|
2
|
+
export { default as lightBrandRefresh } from '../artifacts/tokens-raw/atlassian-light-brand-refresh';
|
|
2
3
|
export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-legacy-light';
|
|
3
4
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
5
|
+
export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
|
|
4
6
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
7
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
8
|
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as light } from '../artifacts/tokens-raw/atlassian-light';
|
|
2
|
+
export { default as lightBrandRefresh } from '../artifacts/tokens-raw/atlassian-light-brand-refresh';
|
|
2
3
|
export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-legacy-light';
|
|
3
4
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
5
|
+
export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
|
|
4
6
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
7
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
8
|
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as light } from '../artifacts/tokens-raw/atlassian-light';
|
|
2
|
+
export { default as lightBrandRefresh } from '../artifacts/tokens-raw/atlassian-light-brand-refresh';
|
|
2
3
|
export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-legacy-light';
|
|
3
4
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
5
|
+
export { default as darkBrandRefresh } from '../artifacts/tokens-raw/atlassian-dark-brand-refresh';
|
|
4
6
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
7
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
8
|
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
"@atlaskit/avatar": "^25.0.0",
|
|
48
48
|
"@atlaskit/button": "^23.0.0",
|
|
49
49
|
"@atlaskit/calendar": "^17.1.0",
|
|
50
|
-
"@atlaskit/checkbox": "^17.
|
|
50
|
+
"@atlaskit/checkbox": "^17.1.0",
|
|
51
51
|
"@atlaskit/code": "^17.0.0",
|
|
52
52
|
"@atlaskit/docs": "^10.0.0",
|
|
53
|
-
"@atlaskit/dropdown-menu": "^14.
|
|
54
|
-
"@atlaskit/dynamic-table": "^18.
|
|
53
|
+
"@atlaskit/dropdown-menu": "^14.1.0",
|
|
54
|
+
"@atlaskit/dynamic-table": "^18.1.0",
|
|
55
55
|
"@atlaskit/form": "^12.0.0",
|
|
56
56
|
"@atlaskit/grid": "^0.18.0",
|
|
57
|
-
"@atlaskit/heading": "^5.
|
|
58
|
-
"@atlaskit/icon": "^25.
|
|
57
|
+
"@atlaskit/heading": "^5.2.0",
|
|
58
|
+
"@atlaskit/icon": "^25.6.0",
|
|
59
59
|
"@atlaskit/inline-message": "^14.0.0",
|
|
60
60
|
"@atlaskit/link": "^3.1.0",
|
|
61
61
|
"@atlaskit/lozenge": "^12.2.0",
|
|
62
|
-
"@atlaskit/popup": "^
|
|
63
|
-
"@atlaskit/primitives": "^14.
|
|
64
|
-
"@atlaskit/radio": "^8.
|
|
62
|
+
"@atlaskit/popup": "^4.1.0",
|
|
63
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
64
|
+
"@atlaskit/radio": "^8.1.0",
|
|
65
65
|
"@atlaskit/section-message": "^8.2.0",
|
|
66
|
-
"@atlaskit/select": "^20.
|
|
66
|
+
"@atlaskit/select": "^20.4.0",
|
|
67
67
|
"@atlaskit/tag": "^14.0.0",
|
|
68
68
|
"@atlaskit/textarea": "^8.0.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.0.0",
|