@atlaskit/tokens 1.2.18 → 1.3.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 +22 -0
- package/dist/cjs/artifacts/theme-import-map.js +16 -8
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/set-global-theme.js +127 -127
- package/dist/cjs/utils/theme-loading.js +35 -40
- 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 +10 -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 +127 -127
- package/dist/esm/utils/theme-loading.js +35 -40
- 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 -34
- package/report.api.md +2 -2
- package/tmp/api-report-tmp.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
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,11 +52,11 @@
|
|
|
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
|
-
"@babel/traverse": "^7.
|
|
59
|
-
"@babel/types": "^7.
|
|
58
|
+
"@babel/traverse": "^7.20.0",
|
|
59
|
+
"@babel/types": "^7.20.0",
|
|
60
60
|
"bind-event-listener": "^2.1.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
@@ -64,37 +64,37 @@
|
|
|
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
|
-
"@babel/core": "^7.
|
|
97
|
+
"@babel/core": "^7.20.0",
|
|
98
98
|
"@emotion/core": "^10.0.9",
|
|
99
99
|
"@emotion/react": "^11.7.1",
|
|
100
100
|
"@testing-library/dom": "^8.17.1",
|
|
@@ -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",
|
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"];
|