@atlaskit/tokens 1.2.19 → 1.3.2
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 +22 -0
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/set-global-theme.js +36 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/set-global-theme.js +18 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/set-global-theme.js +36 -9
- package/dist/esm/version.json +1 -1
- package/dist/types/theme-config.d.ts +2 -2
- package/dist/types/utils/theme-loading.d.ts +3 -3
- package/package.json +34 -31
- package/report.api.md +2 -2
- package/tmp/api-report-tmp.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 1.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bae41641c82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bae41641c82) - Enable the dark theme tweaks for Confluence behind a feature flag.
|
|
8
|
+
|
|
9
|
+
## 1.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e55ef3fcfac`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e55ef3fcfac) - Fixes an issue where the dark theme tweaks (currently behind a feature flag) were not being displayed in some cases due to a race condition.
|
|
14
|
+
|
|
15
|
+
## 1.3.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.2.19
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.2
|
|
11
|
+
var version = "1.3.2";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.2
|
|
12
|
+
var version = "1.3.2";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -52,11 +52,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
52
52
|
themePreferences.push(themeId);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
if (
|
|
56
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
57
|
-
(0, _platformFeatureFlags.getBooleanFF)('design-system-team.dark-theme-iteration_dk1ln') && themePreferences.includes('dark')) {
|
|
58
|
-
themePreferences.push('dark-iteration');
|
|
59
|
-
}
|
|
60
55
|
return (0, _toConsumableArray2.default)(new Set(themePreferences));
|
|
61
56
|
};
|
|
62
57
|
|
|
@@ -125,6 +120,29 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
125
120
|
};
|
|
126
121
|
}()));
|
|
127
122
|
case 4:
|
|
123
|
+
if (!themePreferences.includes('dark')) {
|
|
124
|
+
_context2.next = 13;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
if (!
|
|
128
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
129
|
+
(0, _platformFeatureFlags.getBooleanFF)('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
130
|
+
_context2.next = 10;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
_context2.next = 8;
|
|
134
|
+
return (0, _themeLoading.loadAndAppendThemeCss)('dark-iteration');
|
|
135
|
+
case 8:
|
|
136
|
+
_context2.next = 13;
|
|
137
|
+
break;
|
|
138
|
+
case 10:
|
|
139
|
+
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
140
|
+
_context2.next = 13;
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
_context2.next = 13;
|
|
144
|
+
return (0, _themeLoading.loadAndAppendThemeCss)('dark-iteration');
|
|
145
|
+
case 13:
|
|
128
146
|
if (colorMode === 'auto' && darkModeMql) {
|
|
129
147
|
colorMode = darkModeMql.matches ? 'dark' : 'light';
|
|
130
148
|
// Add an event listener for changes to the system theme.
|
|
@@ -150,7 +168,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
150
168
|
document.documentElement.setAttribute(key, value);
|
|
151
169
|
});
|
|
152
170
|
return _context2.abrupt("return", unbindThemeChangeListener);
|
|
153
|
-
case
|
|
171
|
+
case 17:
|
|
154
172
|
case "end":
|
|
155
173
|
return _context2.stop();
|
|
156
174
|
}
|
|
@@ -201,7 +219,16 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
201
219
|
spacing: spacing,
|
|
202
220
|
typography: typography
|
|
203
221
|
});
|
|
204
|
-
|
|
222
|
+
if (themePreferences.includes('dark')) {
|
|
223
|
+
if (
|
|
224
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
225
|
+
(0, _platformFeatureFlags.getBooleanFF)('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
226
|
+
themePreferences.push('dark-iteration');
|
|
227
|
+
} else if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
228
|
+
themePreferences.push('dark-iteration');
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
_context4.next = 5;
|
|
205
232
|
return Promise.all(themePreferences.map( /*#__PURE__*/function () {
|
|
206
233
|
var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(themeId) {
|
|
207
234
|
var css;
|
|
@@ -234,12 +261,12 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
234
261
|
return _ref8.apply(this, arguments);
|
|
235
262
|
};
|
|
236
263
|
}()));
|
|
237
|
-
case
|
|
264
|
+
case 5:
|
|
238
265
|
results = _context4.sent;
|
|
239
266
|
return _context4.abrupt("return", results.filter(function (theme) {
|
|
240
267
|
return theme !== undefined;
|
|
241
268
|
}));
|
|
242
|
-
case
|
|
269
|
+
case 7:
|
|
243
270
|
case "end":
|
|
244
271
|
return _context4.stop();
|
|
245
272
|
}
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
const name = "@atlaskit/tokens";
|
|
4
|
-
const version = "1.2
|
|
4
|
+
const version = "1.3.2";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
const name = "@atlaskit/tokens";
|
|
5
|
-
const version = "1.2
|
|
5
|
+
const version = "1.3.2";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -43,11 +43,6 @@ const getThemePreferences = themeState => {
|
|
|
43
43
|
themePreferences.push(themeId);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
if (
|
|
47
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
48
|
-
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln') && themePreferences.includes('dark')) {
|
|
49
|
-
themePreferences.push('dark-iteration');
|
|
50
|
-
}
|
|
51
46
|
return [...new Set(themePreferences)];
|
|
52
47
|
};
|
|
53
48
|
|
|
@@ -83,6 +78,15 @@ const setGlobalTheme = async ({
|
|
|
83
78
|
typography
|
|
84
79
|
});
|
|
85
80
|
await Promise.all(themePreferences.map(async themeId => await loadAndAppendThemeCss(themeId)));
|
|
81
|
+
if (themePreferences.includes('dark')) {
|
|
82
|
+
if (
|
|
83
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
84
|
+
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
85
|
+
await loadAndAppendThemeCss('dark-iteration');
|
|
86
|
+
} else if (getBooleanFF('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
87
|
+
await loadAndAppendThemeCss('dark-iteration');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
86
90
|
if (colorMode === 'auto' && darkModeMql) {
|
|
87
91
|
colorMode = darkModeMql.matches ? 'dark' : 'light';
|
|
88
92
|
// Add an event listener for changes to the system theme.
|
|
@@ -134,6 +138,15 @@ export const getThemeStyles = async ({
|
|
|
134
138
|
spacing,
|
|
135
139
|
typography
|
|
136
140
|
});
|
|
141
|
+
if (themePreferences.includes('dark')) {
|
|
142
|
+
if (
|
|
143
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
144
|
+
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
145
|
+
themePreferences.push('dark-iteration');
|
|
146
|
+
} else if (getBooleanFF('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
147
|
+
themePreferences.push('dark-iteration');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
137
150
|
const results = await Promise.all(themePreferences.map(async themeId => {
|
|
138
151
|
try {
|
|
139
152
|
const css = await loadThemeCss(themeId);
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
var name = "@atlaskit/tokens";
|
|
4
|
-
var version = "1.2
|
|
4
|
+
var version = "1.3.2";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "1.2
|
|
5
|
+
var version = "1.3.2";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -46,11 +46,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
|
|
|
46
46
|
themePreferences.push(themeId);
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
if (
|
|
50
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
51
|
-
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln') && themePreferences.includes('dark')) {
|
|
52
|
-
themePreferences.push('dark-iteration');
|
|
53
|
-
}
|
|
54
49
|
return _toConsumableArray(new Set(themePreferences));
|
|
55
50
|
};
|
|
56
51
|
|
|
@@ -119,6 +114,29 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
119
114
|
};
|
|
120
115
|
}()));
|
|
121
116
|
case 4:
|
|
117
|
+
if (!themePreferences.includes('dark')) {
|
|
118
|
+
_context2.next = 13;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (!
|
|
122
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
123
|
+
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
124
|
+
_context2.next = 10;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
_context2.next = 8;
|
|
128
|
+
return loadAndAppendThemeCss('dark-iteration');
|
|
129
|
+
case 8:
|
|
130
|
+
_context2.next = 13;
|
|
131
|
+
break;
|
|
132
|
+
case 10:
|
|
133
|
+
if (!getBooleanFF('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
134
|
+
_context2.next = 13;
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
_context2.next = 13;
|
|
138
|
+
return loadAndAppendThemeCss('dark-iteration');
|
|
139
|
+
case 13:
|
|
122
140
|
if (colorMode === 'auto' && darkModeMql) {
|
|
123
141
|
colorMode = darkModeMql.matches ? 'dark' : 'light';
|
|
124
142
|
// Add an event listener for changes to the system theme.
|
|
@@ -144,7 +162,7 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
144
162
|
document.documentElement.setAttribute(key, value);
|
|
145
163
|
});
|
|
146
164
|
return _context2.abrupt("return", unbindThemeChangeListener);
|
|
147
|
-
case
|
|
165
|
+
case 17:
|
|
148
166
|
case "end":
|
|
149
167
|
return _context2.stop();
|
|
150
168
|
}
|
|
@@ -195,7 +213,16 @@ export var getThemeStyles = /*#__PURE__*/function () {
|
|
|
195
213
|
spacing: spacing,
|
|
196
214
|
typography: typography
|
|
197
215
|
});
|
|
198
|
-
|
|
216
|
+
if (themePreferences.includes('dark')) {
|
|
217
|
+
if (
|
|
218
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
219
|
+
getBooleanFF('design-system-team.dark-theme-iteration_dk1ln')) {
|
|
220
|
+
themePreferences.push('dark-iteration');
|
|
221
|
+
} else if (getBooleanFF('platform.design-system-team.dark-iteration-confluence_e2t22')) {
|
|
222
|
+
themePreferences.push('dark-iteration');
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
_context4.next = 5;
|
|
199
226
|
return Promise.all(themePreferences.map( /*#__PURE__*/function () {
|
|
200
227
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(themeId) {
|
|
201
228
|
var css;
|
|
@@ -228,12 +255,12 @@ export var getThemeStyles = /*#__PURE__*/function () {
|
|
|
228
255
|
return _ref8.apply(this, arguments);
|
|
229
256
|
};
|
|
230
257
|
}()));
|
|
231
|
-
case
|
|
258
|
+
case 5:
|
|
232
259
|
results = _context4.sent;
|
|
233
260
|
return _context4.abrupt("return", results.filter(function (theme) {
|
|
234
261
|
return theme !== undefined;
|
|
235
262
|
}));
|
|
236
|
-
case
|
|
263
|
+
case 7:
|
|
237
264
|
case "end":
|
|
238
265
|
return _context4.stop();
|
|
239
266
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -22,7 +22,7 @@ export declare type ThemeKinds = 'color' | 'spacing' | 'typography' | 'shape';
|
|
|
22
22
|
* The idea is there may exist many color themes, but every theme must either fit into light or dark.
|
|
23
23
|
*/
|
|
24
24
|
export declare const themeColorModes: readonly ["light", "dark", "auto"];
|
|
25
|
-
export declare type ThemeColorModes = typeof themeColorModes[number];
|
|
25
|
+
export declare type ThemeColorModes = (typeof themeColorModes)[number];
|
|
26
26
|
export declare type DataColorModes = Exclude<ThemeColorModes, 'auto'>;
|
|
27
27
|
/**
|
|
28
28
|
* Theme ids: The value that will be mounted to the DOM as a data attr
|
|
@@ -31,7 +31,7 @@ export declare type DataColorModes = Exclude<ThemeColorModes, 'auto'>;
|
|
|
31
31
|
* These ids must be kebab case
|
|
32
32
|
*/
|
|
33
33
|
export declare const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape"];
|
|
34
|
-
export declare type ThemeIds = typeof themeIds[number];
|
|
34
|
+
export declare type ThemeIds = (typeof themeIds)[number];
|
|
35
35
|
export declare type ThemeOverrideIds = 'dark-iteration';
|
|
36
36
|
/**
|
|
37
37
|
* Theme to use a base. This will create the theme as
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeIds } from '../theme-config';
|
|
2
|
-
export declare const loadAndAppendThemeCss: (themeId: ThemeIds) => Promise<void>;
|
|
3
|
-
export declare const loadThemeCss: (themeId: ThemeIds) => Promise<string>;
|
|
1
|
+
import { ThemeIds, ThemeOverrideIds } from '../theme-config';
|
|
2
|
+
export declare const loadAndAppendThemeCss: (themeId: ThemeIds | ThemeOverrideIds) => Promise<void>;
|
|
3
|
+
export declare const loadThemeCss: (themeId: ThemeIds | ThemeOverrideIds) => Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.2
|
|
3
|
+
"version": "1.3.2",
|
|
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",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"codegen-tokens": "ts-node --project $(npx repo-root)/tsconfig.node.json ./scripts/style-dictionary/build"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@atlaskit/ds-lib": "^2.
|
|
56
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
55
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
56
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@babel/traverse": "^7.20.0",
|
|
59
59
|
"@babel/types": "^7.20.0",
|
|
@@ -64,35 +64,35 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@af/accessibility-testing": "*",
|
|
67
|
-
"@atlaskit/avatar": "^21.
|
|
68
|
-
"@atlaskit/badge": "^15.0
|
|
69
|
-
"@atlaskit/button": "^16.
|
|
70
|
-
"@atlaskit/checkbox": "^12.
|
|
71
|
-
"@atlaskit/code": "^14.
|
|
72
|
-
"@atlaskit/docs": "^9.0
|
|
73
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
74
|
-
"@atlaskit/ds-explorations": "^2.
|
|
75
|
-
"@atlaskit/dynamic-table": "^14.
|
|
76
|
-
"@atlaskit/empty-state": "^7.
|
|
77
|
-
"@atlaskit/focus-ring": "^1.
|
|
78
|
-
"@atlaskit/grid": "^0.
|
|
79
|
-
"@atlaskit/heading": "^1.
|
|
80
|
-
"@atlaskit/icon": "^21.
|
|
81
|
-
"@atlaskit/lozenge": "^11.
|
|
82
|
-
"@atlaskit/modal-dialog": "^12.
|
|
83
|
-
"@atlaskit/primitives": "^0.
|
|
84
|
-
"@atlaskit/section-message": "^6.
|
|
85
|
-
"@atlaskit/select": "^16.
|
|
86
|
-
"@atlaskit/tabs": "^13.
|
|
87
|
-
"@atlaskit/tag": "^11.
|
|
88
|
-
"@atlaskit/textarea": "^4.
|
|
89
|
-
"@atlaskit/textfield": "^5.
|
|
90
|
-
"@atlaskit/theme": "^12.
|
|
91
|
-
"@atlaskit/toggle": "^12.
|
|
92
|
-
"@atlaskit/tooltip": "^17.
|
|
67
|
+
"@atlaskit/avatar": "^21.3.0",
|
|
68
|
+
"@atlaskit/badge": "^15.1.0",
|
|
69
|
+
"@atlaskit/button": "^16.7.0",
|
|
70
|
+
"@atlaskit/checkbox": "^12.5.0",
|
|
71
|
+
"@atlaskit/code": "^14.6.0",
|
|
72
|
+
"@atlaskit/docs": "^9.1.0",
|
|
73
|
+
"@atlaskit/dropdown-menu": "^11.8.0",
|
|
74
|
+
"@atlaskit/ds-explorations": "^2.1.0",
|
|
75
|
+
"@atlaskit/dynamic-table": "^14.9.0",
|
|
76
|
+
"@atlaskit/empty-state": "^7.5.0",
|
|
77
|
+
"@atlaskit/focus-ring": "^1.3.0",
|
|
78
|
+
"@atlaskit/grid": "^0.9.0",
|
|
79
|
+
"@atlaskit/heading": "^1.3.0",
|
|
80
|
+
"@atlaskit/icon": "^21.12.0",
|
|
81
|
+
"@atlaskit/lozenge": "^11.4.0",
|
|
82
|
+
"@atlaskit/modal-dialog": "^12.5.0",
|
|
83
|
+
"@atlaskit/primitives": "^0.9.0",
|
|
84
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
85
|
+
"@atlaskit/select": "^16.2.0",
|
|
86
|
+
"@atlaskit/tabs": "^13.4.0",
|
|
87
|
+
"@atlaskit/tag": "^11.5.0",
|
|
88
|
+
"@atlaskit/textarea": "^4.6.0",
|
|
89
|
+
"@atlaskit/textfield": "^5.4.0",
|
|
90
|
+
"@atlaskit/theme": "^12.5.0",
|
|
91
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
92
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
93
93
|
"@atlaskit/visual-regression": "*",
|
|
94
94
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
95
|
-
"@atlassian/codegen": "^0.0
|
|
95
|
+
"@atlassian/codegen": "^0.1.0",
|
|
96
96
|
"@atlassian/feature-flags-test-utils": "*",
|
|
97
97
|
"@babel/core": "^7.20.0",
|
|
98
98
|
"@emotion/core": "^10.0.9",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"echarts-for-react": "^3.0.2",
|
|
110
110
|
"fuse.js": "^6.6.2",
|
|
111
111
|
"lodash": "^4.17.21",
|
|
112
|
-
"prettier": "^2.
|
|
112
|
+
"prettier": "^2.8.0",
|
|
113
113
|
"react": "^16.8.0",
|
|
114
114
|
"react-use-clipboard": "^1.0.0",
|
|
115
115
|
"recharts": "^1.8.5",
|
|
@@ -135,6 +135,9 @@
|
|
|
135
135
|
"platform-feature-flags": {
|
|
136
136
|
"design-system-team.dark-theme-iteration_dk1ln": {
|
|
137
137
|
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"platform.design-system-team.dark-iteration-confluence_e2t22": {
|
|
140
|
+
"type": "boolean"
|
|
138
141
|
}
|
|
139
142
|
},
|
|
140
143
|
"homepage": "https://atlassian.design/components/tokens",
|
package/report.api.md
CHANGED
|
@@ -1255,7 +1255,7 @@ type SpacingPaletteToken = keyof typeof baseSpacingTokens;
|
|
|
1255
1255
|
export type SpacingToken = DesignToken<SpacingPaletteToken, 'spacing'>;
|
|
1256
1256
|
|
|
1257
1257
|
// @public (undocumented)
|
|
1258
|
-
export type ThemeColorModes = typeof themeColorModes[number];
|
|
1258
|
+
export type ThemeColorModes = (typeof themeColorModes)[number];
|
|
1259
1259
|
|
|
1260
1260
|
// @public
|
|
1261
1261
|
const themeColorModes: readonly ['light', 'dark', 'auto'];
|
|
@@ -1286,7 +1286,7 @@ interface ThemeConfig {
|
|
|
1286
1286
|
export const themeConfig: Record<Themes, ThemeConfig>;
|
|
1287
1287
|
|
|
1288
1288
|
// @public (undocumented)
|
|
1289
|
-
export type ThemeIds = typeof themeIds[number];
|
|
1289
|
+
export type ThemeIds = (typeof themeIds)[number];
|
|
1290
1290
|
|
|
1291
1291
|
// @public
|
|
1292
1292
|
const themeIds: readonly [
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -556,7 +556,7 @@ type SpacingPaletteToken = keyof typeof baseSpacingTokens;
|
|
|
556
556
|
export type SpacingToken = DesignToken<SpacingPaletteToken, 'spacing'>;
|
|
557
557
|
|
|
558
558
|
// @public (undocumented)
|
|
559
|
-
export type ThemeColorModes = typeof themeColorModes[number];
|
|
559
|
+
export type ThemeColorModes = (typeof themeColorModes)[number];
|
|
560
560
|
|
|
561
561
|
// @public
|
|
562
562
|
const themeColorModes: readonly ["light", "dark", "auto"];
|
|
@@ -584,7 +584,7 @@ interface ThemeConfig {
|
|
|
584
584
|
export const themeConfig: Record<Themes, ThemeConfig>;
|
|
585
585
|
|
|
586
586
|
// @public (undocumented)
|
|
587
|
-
export type ThemeIds = typeof themeIds[number];
|
|
587
|
+
export type ThemeIds = (typeof themeIds)[number];
|
|
588
588
|
|
|
589
589
|
// @public
|
|
590
590
|
const themeIds: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing", "typography", "shape"];
|