@atlaskit/tokens 0.10.13 → 0.10.16
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 +28 -0
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +1953 -0
- package/dist/cjs/artifacts/{palettes-raw.js → palettes-raw/palette.js} +233 -233
- package/dist/cjs/artifacts/rename-mapping.js +3 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +9 -5
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +9 -5
- package/dist/cjs/constants.js +3 -3
- package/dist/cjs/entry-points/palettes-raw.js +2 -2
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/legacy-palette.js +818 -0
- package/dist/cjs/{tokens → palettes}/palette.js +0 -0
- package/dist/cjs/tokens/default/deprecated/deprecated.js +4 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +1945 -0
- package/dist/es2019/artifacts/{palettes-raw.js → palettes-raw/palette.js} +233 -233
- package/dist/es2019/artifacts/rename-mapping.js +3 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +9 -5
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +9 -5
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/entry-points/palettes-raw.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/legacy-palette.js +810 -0
- package/dist/es2019/{tokens → palettes}/palette.js +0 -0
- package/dist/es2019/tokens/default/deprecated/deprecated.js +4 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +1945 -0
- package/dist/esm/artifacts/{palettes-raw.js → palettes-raw/palette.js} +233 -233
- package/dist/esm/artifacts/rename-mapping.js +3 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +9 -5
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +9 -5
- package/dist/esm/constants.js +1 -1
- package/dist/esm/entry-points/palettes-raw.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/legacy-palette.js +810 -0
- package/dist/esm/{tokens → palettes}/palette.js +0 -0
- package/dist/esm/tokens/default/deprecated/deprecated.js +4 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/{palettes-raw.d.ts → palettes-raw/legacy-palette.d.ts} +1 -1
- package/dist/types/artifacts/palettes-raw/palette.d.ts +24 -0
- 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/constants.d.ts +4 -1
- package/dist/types/entry-points/palettes-raw.d.ts +1 -1
- package/dist/types/palettes/legacy-palette.d.ts +10 -0
- package/dist/types/palettes/palette.d.ts +5 -0
- package/dist/types/tokens/atlassian-dark/color/accent.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/background.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/border.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/icon.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/interaction.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/skeleton.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/color/text.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/deprecated/deprecated.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/elevation/shadow.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/elevation/surface.d.ts +2 -1
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light/color/accent.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/background.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/border.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/icon.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/interaction.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/skeleton.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/color/text.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/deprecated/deprecated.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/elevation/shadow.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/elevation/surface.d.ts +2 -1
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/default/color/accent.d.ts +2 -1
- package/dist/types/tokens/default/color/background.d.ts +2 -1
- package/dist/types/tokens/default/color/border.d.ts +2 -1
- package/dist/types/tokens/default/color/icon.d.ts +2 -1
- package/dist/types/tokens/default/color/interaction.d.ts +2 -1
- package/dist/types/tokens/default/color/skeleton.d.ts +2 -1
- package/dist/types/tokens/default/color/text.d.ts +2 -1
- package/dist/types/tokens/default/deprecated/deprecated.d.ts +2 -1
- package/dist/types/tokens/default/elevation/shadow.d.ts +2 -1
- package/dist/types/tokens/default/elevation/surface.d.ts +2 -1
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +308 -426
- package/dist/types/utils/color-detection.d.ts +1 -1
- package/package.json +6 -6
- package/dist/types/tokens/palette.d.ts +0 -3
|
@@ -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::afc1ce63c4571109e333891b70af2ae8>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
const renameMapper = [{
|
|
@@ -321,11 +321,11 @@ const renameMapper = [{
|
|
|
321
321
|
"replacement": "color.background.neutral.subtle.pressed"
|
|
322
322
|
}, {
|
|
323
323
|
"path": "color.interaction.inverse.hovered",
|
|
324
|
-
"state": "
|
|
324
|
+
"state": "deleted",
|
|
325
325
|
"replacement": "color.background.inverse.subtle.hovered"
|
|
326
326
|
}, {
|
|
327
327
|
"path": "color.interaction.inverse.pressed",
|
|
328
|
-
"state": "
|
|
328
|
+
"state": "deleted",
|
|
329
329
|
"replacement": "color.background.inverse.subtle.pressed"
|
|
330
330
|
}, {
|
|
331
331
|
"path": "color.accent.boldBlue",
|
|
@@ -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::3fef3c7e03c920ccf46adb8e5016f1f9>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -5628,9 +5628,10 @@ const tokens = [{
|
|
|
5628
5628
|
}, {
|
|
5629
5629
|
"attributes": {
|
|
5630
5630
|
"group": "paint",
|
|
5631
|
-
"state": "
|
|
5631
|
+
"state": "deleted",
|
|
5632
5632
|
"introduced": "0.6.0",
|
|
5633
5633
|
"deprecated": "0.10.8",
|
|
5634
|
+
"deleted": "0.10.13",
|
|
5634
5635
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5635
5636
|
"replacement": "color.background.inverse.subtle.hovered"
|
|
5636
5637
|
},
|
|
@@ -5640,9 +5641,10 @@ const tokens = [{
|
|
|
5640
5641
|
"original": {
|
|
5641
5642
|
"attributes": {
|
|
5642
5643
|
"group": "paint",
|
|
5643
|
-
"state": "
|
|
5644
|
+
"state": "deleted",
|
|
5644
5645
|
"introduced": "0.6.0",
|
|
5645
5646
|
"deprecated": "0.10.8",
|
|
5647
|
+
"deleted": "0.10.13",
|
|
5646
5648
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5647
5649
|
"replacement": "color.background.inverse.subtle.hovered"
|
|
5648
5650
|
},
|
|
@@ -5653,9 +5655,10 @@ const tokens = [{
|
|
|
5653
5655
|
}, {
|
|
5654
5656
|
"attributes": {
|
|
5655
5657
|
"group": "paint",
|
|
5656
|
-
"state": "
|
|
5658
|
+
"state": "deleted",
|
|
5657
5659
|
"introduced": "0.6.0",
|
|
5658
5660
|
"deprecated": "0.10.8 ",
|
|
5661
|
+
"deleted": "0.10.13",
|
|
5659
5662
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5660
5663
|
"replacement": "color.background.inverse.subtle.pressed"
|
|
5661
5664
|
},
|
|
@@ -5665,9 +5668,10 @@ const tokens = [{
|
|
|
5665
5668
|
"original": {
|
|
5666
5669
|
"attributes": {
|
|
5667
5670
|
"group": "paint",
|
|
5668
|
-
"state": "
|
|
5671
|
+
"state": "deleted",
|
|
5669
5672
|
"introduced": "0.6.0",
|
|
5670
5673
|
"deprecated": "0.10.8 ",
|
|
5674
|
+
"deleted": "0.10.13",
|
|
5671
5675
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5672
5676
|
"replacement": "color.background.inverse.subtle.pressed"
|
|
5673
5677
|
},
|
|
@@ -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::f6a9d19d9e568ee23ce24a7127ceb09c>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -5628,9 +5628,10 @@ const tokens = [{
|
|
|
5628
5628
|
}, {
|
|
5629
5629
|
"attributes": {
|
|
5630
5630
|
"group": "paint",
|
|
5631
|
-
"state": "
|
|
5631
|
+
"state": "deleted",
|
|
5632
5632
|
"introduced": "0.6.0",
|
|
5633
5633
|
"deprecated": "0.10.8",
|
|
5634
|
+
"deleted": "0.10.13",
|
|
5634
5635
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5635
5636
|
"replacement": "color.background.inverse.subtle.hovered"
|
|
5636
5637
|
},
|
|
@@ -5640,9 +5641,10 @@ const tokens = [{
|
|
|
5640
5641
|
"original": {
|
|
5641
5642
|
"attributes": {
|
|
5642
5643
|
"group": "paint",
|
|
5643
|
-
"state": "
|
|
5644
|
+
"state": "deleted",
|
|
5644
5645
|
"introduced": "0.6.0",
|
|
5645
5646
|
"deprecated": "0.10.8",
|
|
5647
|
+
"deleted": "0.10.13",
|
|
5646
5648
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5647
5649
|
"replacement": "color.background.inverse.subtle.hovered"
|
|
5648
5650
|
},
|
|
@@ -5653,9 +5655,10 @@ const tokens = [{
|
|
|
5653
5655
|
}, {
|
|
5654
5656
|
"attributes": {
|
|
5655
5657
|
"group": "paint",
|
|
5656
|
-
"state": "
|
|
5658
|
+
"state": "deleted",
|
|
5657
5659
|
"introduced": "0.6.0",
|
|
5658
5660
|
"deprecated": "0.10.8 ",
|
|
5661
|
+
"deleted": "0.10.13",
|
|
5659
5662
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5660
5663
|
"replacement": "color.background.inverse.subtle.pressed"
|
|
5661
5664
|
},
|
|
@@ -5665,9 +5668,10 @@ const tokens = [{
|
|
|
5665
5668
|
"original": {
|
|
5666
5669
|
"attributes": {
|
|
5667
5670
|
"group": "paint",
|
|
5668
|
-
"state": "
|
|
5671
|
+
"state": "deleted",
|
|
5669
5672
|
"introduced": "0.6.0",
|
|
5670
5673
|
"deprecated": "0.10.8 ",
|
|
5674
|
+
"deleted": "0.10.13",
|
|
5671
5675
|
"description": "Use as a background overlay for elements in a hovered state on bold backgrounds, such as the buttons on spotlight cards.",
|
|
5672
5676
|
"replacement": "color.background.inverse.subtle.pressed"
|
|
5673
5677
|
},
|
package/dist/es2019/constants.js
CHANGED
|
@@ -3,7 +3,7 @@ export const THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
|
3
3
|
export const DEFAULT_THEME = 'light';
|
|
4
4
|
export const CSS_PREFIX = 'ds'; // Maps the longer theme name to a shorthand used in css/code
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const THEME_NAME_MAP = {
|
|
7
7
|
'atlassian-light': 'light',
|
|
8
8
|
'atlassian-dark': 'dark'
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../artifacts/palettes-raw';
|
|
1
|
+
export { default } from '../artifacts/palettes-raw/palette';
|
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 = "0.10.
|
|
5
|
+
const version = "0.10.16";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
let token = tokens[path];
|