@atlaskit/tokens 6.3.2 → 6.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 +22 -0
- package/dist/cjs/artifacts/generated-pairs.js +1 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/cjs/babel-plugin/plugin.js +4 -1
- package/dist/cjs/set-global-theme.js +30 -23
- package/dist/es2019/artifacts/generated-pairs.js +1 -1
- package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/es2019/babel-plugin/plugin.js +4 -1
- package/dist/es2019/set-global-theme.js +17 -10
- package/dist/esm/artifacts/generated-pairs.js +1 -1
- package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +2 -1
- package/dist/esm/babel-plugin/plugin.js +4 -1
- package/dist/esm/set-global-theme.js +30 -23
- package/dist/types/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types/set-global-theme.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
- package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
- package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::012be6ddb918f408e4258335916d9334>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "#FFEBE6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::54883f28091f3d25251716094b262928>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "#EFFFD6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "#EFFFD6",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::72feb1804c9c8d27535c172745ee1b9b>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "2px",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11e5a7b123691c94315b7df9e7aa8f9f>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "0px",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0736e3ca289c67f160a69299616f69c9>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "Roboto Mono",
|
|
8
9
|
"attributes": {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::147a2afa95c37bc2a3b0a0e34c7a9710>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::98ec2ef3c3602f1046b2ecf3775d0f05>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b10cb2c641a28d967973840725505a5d>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "#DEE4EA",
|
|
8
9
|
"filePath": "schema/themes/atlassian-dark-increased-contrast/color/text.tsx",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::e5a01f19d58623f99b97e4dd2aef4926>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::9acedb862e373430c3930988761cbe44>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4670b0f10caa1698222cecfe37d7912d>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::1e215ad0e04dce07835882e324bc937e>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8511311bb358d4d21a3ac431d0be8a44>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d6d41baa7103c9ee49c1e976d66bf14>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"value": "#091E42",
|
|
8
9
|
"filePath": "schema/themes/atlassian-light-increased-contrast/color/text.tsx",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::0ddb883a95cb1a36c2ce1db708181be1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "paint",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ae0db95e6643057107d0c09628e379a7>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::62159541fb88b669eb2ad0f06e7e0daf>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f3ee3158256a13e7401785620da6d439>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "shape",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c5e6cf9e70d065b7daac533ac0569acf>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "spacing",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::80e21582acfe238b3aab5d8c8d1ec831>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::d9a4e2432a4ea835e7ceac5c19e379b5>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::03640b642efa498f3c90b99101405f9e>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "raw",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::2d82706aaef27f4b665743cafd879972>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
var tokens = [{
|
|
7
8
|
"attributes": {
|
|
8
9
|
"group": "typography",
|
|
@@ -40,7 +40,7 @@ var getThemeValues = function getThemeValues(theme) {
|
|
|
40
40
|
value = rawToken.value;
|
|
41
41
|
} else if (typeof rawToken.value === 'number') {
|
|
42
42
|
value = rawToken.value.toString();
|
|
43
|
-
} else {
|
|
43
|
+
} else if (Array.isArray(rawToken.value)) {
|
|
44
44
|
// If it's a box shadow, it'll be an array of values that needs to be
|
|
45
45
|
// formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
|
|
46
46
|
value = rawToken.value.reduce(function (prev, curr, index) {
|
|
@@ -64,6 +64,9 @@ var getThemeValues = function getThemeValues(theme) {
|
|
|
64
64
|
}
|
|
65
65
|
return prev + value;
|
|
66
66
|
}, '');
|
|
67
|
+
} else {
|
|
68
|
+
// ignore when value is `fontweight` etc. - this is apparently not handled here.
|
|
69
|
+
return formatted;
|
|
67
70
|
}
|
|
68
71
|
return _objectSpread(_objectSpread({}, formatted), {}, _defineProperty({}, rawToken.cleanName, value));
|
|
69
72
|
}, {});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
3
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
5
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import getGlobalTheme from './get-global-theme';
|
|
7
11
|
import { themeStateDefaults } from './theme-config';
|
|
8
12
|
import { isValidBrandHex } from './utils/color-utils';
|
|
9
13
|
import configurePage from './utils/configure-page';
|
|
@@ -34,7 +38,9 @@ import { loadAndAppendThemeCss } from './utils/theme-loading';
|
|
|
34
38
|
*/
|
|
35
39
|
var setGlobalTheme = /*#__PURE__*/function () {
|
|
36
40
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
37
|
-
var
|
|
41
|
+
var nextThemeState,
|
|
42
|
+
themeLoader,
|
|
43
|
+
_ref2,
|
|
38
44
|
_ref2$colorMode,
|
|
39
45
|
colorMode,
|
|
40
46
|
_ref2$contrastMode,
|
|
@@ -51,7 +57,6 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
51
57
|
typography,
|
|
52
58
|
_ref2$UNSAFE_themeOpt,
|
|
53
59
|
UNSAFE_themeOptions,
|
|
54
|
-
themeLoader,
|
|
55
60
|
themeState,
|
|
56
61
|
themePreferences,
|
|
57
62
|
loadingStrategy,
|
|
@@ -67,9 +72,11 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
67
72
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
68
73
|
while (1) switch (_context3.prev = _context3.next) {
|
|
69
74
|
case 0:
|
|
70
|
-
|
|
75
|
+
nextThemeState = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
71
76
|
themeLoader = _args3.length > 1 ? _args3[1] : undefined;
|
|
72
|
-
|
|
77
|
+
_ref2 = typeof nextThemeState === 'function' ? nextThemeState(_objectSpread(_objectSpread({}, themeStateDefaults), {}, {
|
|
78
|
+
typography: themeStateDefaults['typography']()
|
|
79
|
+
}, getGlobalTheme())) : nextThemeState, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? themeStateDefaults['shape'] : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt; // CLEANUP: Remove. This blocks application of increased contrast themes
|
|
73
80
|
// without the feature flag enabled.
|
|
74
81
|
if (!fg('platform_increased-contrast-themes')) {
|
|
75
82
|
if (light === 'light-increased-contrast') {
|
|
@@ -140,44 +147,44 @@ var setGlobalTheme = /*#__PURE__*/function () {
|
|
|
140
147
|
}))());
|
|
141
148
|
}
|
|
142
149
|
}
|
|
143
|
-
_context3.next =
|
|
150
|
+
_context3.next = 11;
|
|
144
151
|
return Promise.all(loadingTasks);
|
|
145
|
-
case
|
|
152
|
+
case 11:
|
|
146
153
|
// Load override themes after standard themes
|
|
147
154
|
themeOverridePreferences = getThemeOverridePreferences(themeState);
|
|
148
155
|
_iterator = _createForOfIteratorHelper(themeOverridePreferences);
|
|
149
|
-
_context3.prev =
|
|
156
|
+
_context3.prev = 13;
|
|
150
157
|
_iterator.s();
|
|
151
|
-
case
|
|
158
|
+
case 15:
|
|
152
159
|
if ((_step = _iterator.n()).done) {
|
|
153
|
-
_context3.next =
|
|
160
|
+
_context3.next = 21;
|
|
154
161
|
break;
|
|
155
162
|
}
|
|
156
163
|
themeId = _step.value;
|
|
157
|
-
_context3.next =
|
|
164
|
+
_context3.next = 19;
|
|
158
165
|
return loadingStrategy(themeId);
|
|
159
|
-
case
|
|
160
|
-
_context3.next =
|
|
166
|
+
case 19:
|
|
167
|
+
_context3.next = 15;
|
|
161
168
|
break;
|
|
162
|
-
case
|
|
163
|
-
_context3.next =
|
|
169
|
+
case 21:
|
|
170
|
+
_context3.next = 26;
|
|
164
171
|
break;
|
|
165
|
-
case
|
|
166
|
-
_context3.prev =
|
|
167
|
-
_context3.t0 = _context3["catch"](
|
|
172
|
+
case 23:
|
|
173
|
+
_context3.prev = 23;
|
|
174
|
+
_context3.t0 = _context3["catch"](13);
|
|
168
175
|
_iterator.e(_context3.t0);
|
|
169
|
-
case
|
|
170
|
-
_context3.prev =
|
|
176
|
+
case 26:
|
|
177
|
+
_context3.prev = 26;
|
|
171
178
|
_iterator.f();
|
|
172
|
-
return _context3.finish(
|
|
173
|
-
case
|
|
179
|
+
return _context3.finish(26);
|
|
180
|
+
case 29:
|
|
174
181
|
autoUnbind = configurePage(themeState);
|
|
175
182
|
return _context3.abrupt("return", autoUnbind);
|
|
176
|
-
case
|
|
183
|
+
case 31:
|
|
177
184
|
case "end":
|
|
178
185
|
return _context3.stop();
|
|
179
186
|
}
|
|
180
|
-
}, _callee3, null, [[
|
|
187
|
+
}, _callee3, null, [[13, 23, 26, 29]]);
|
|
181
188
|
}));
|
|
182
189
|
return function setGlobalTheme() {
|
|
183
190
|
return _ref.apply(this, arguments);
|
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
* Auto-generated list of token pairings that may need to have sufficient contrast.
|
|
5
5
|
* Not currently used by tests, but is used by the custom theme contrast checker example
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::0eb97f6b58ef4db8602f525bf6140cc0>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
|
-
export declare const generatedPairs:
|
|
10
|
+
export declare const generatedPairs: {
|
|
11
11
|
foreground: string;
|
|
12
12
|
background: string;
|
|
13
13
|
desiredContrast: number;
|
|
14
|
-
layeredTokens
|
|
15
|
-
}
|
|
16
|
-
foreground: string;
|
|
17
|
-
background: string;
|
|
18
|
-
desiredContrast: number;
|
|
19
|
-
layeredTokens?: undefined;
|
|
20
|
-
})[];
|
|
14
|
+
layeredTokens?: string[];
|
|
15
|
+
}[];
|
|
21
16
|
export default generatedPairs;
|
|
@@ -1,41 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::012be6ddb918f408e4258335916d9334>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
original: {
|
|
15
|
-
value: string;
|
|
16
|
-
attributes: {
|
|
17
|
-
group: string;
|
|
18
|
-
category: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
name: string;
|
|
22
|
-
path: string[];
|
|
23
|
-
} | {
|
|
24
|
-
value: number;
|
|
25
|
-
attributes: {
|
|
26
|
-
group: string;
|
|
27
|
-
category: string;
|
|
28
|
-
};
|
|
6
|
+
type TokenValue = string | number;
|
|
7
|
+
type TokenValueOriginal = string | number;
|
|
8
|
+
type TokenAttributes = {
|
|
9
|
+
group: string;
|
|
10
|
+
category: string;
|
|
11
|
+
};
|
|
12
|
+
type Token = {
|
|
13
|
+
value: TokenValue;
|
|
29
14
|
filePath: string;
|
|
30
15
|
isSource: boolean;
|
|
16
|
+
attributes: TokenAttributes;
|
|
31
17
|
original: {
|
|
32
|
-
value:
|
|
33
|
-
attributes:
|
|
34
|
-
group: string;
|
|
35
|
-
category: string;
|
|
36
|
-
};
|
|
18
|
+
value: TokenValueOriginal;
|
|
19
|
+
attributes: TokenAttributes;
|
|
37
20
|
};
|
|
38
21
|
name: string;
|
|
39
22
|
path: string[];
|
|
40
|
-
}
|
|
23
|
+
};
|
|
24
|
+
declare const tokens: Token[];
|
|
41
25
|
export default tokens;
|
|
@@ -1,41 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::54883f28091f3d25251716094b262928>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
original: {
|
|
15
|
-
value: string;
|
|
16
|
-
attributes: {
|
|
17
|
-
group: string;
|
|
18
|
-
category: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
name: string;
|
|
22
|
-
path: string[];
|
|
23
|
-
} | {
|
|
24
|
-
value: number;
|
|
25
|
-
attributes: {
|
|
26
|
-
group: string;
|
|
27
|
-
category: string;
|
|
28
|
-
};
|
|
6
|
+
type TokenValue = string | number;
|
|
7
|
+
type TokenValueOriginal = string | number;
|
|
8
|
+
type TokenAttributes = {
|
|
9
|
+
group: string;
|
|
10
|
+
category: string;
|
|
11
|
+
};
|
|
12
|
+
type Token = {
|
|
13
|
+
value: TokenValue;
|
|
29
14
|
filePath: string;
|
|
30
15
|
isSource: boolean;
|
|
16
|
+
attributes: TokenAttributes;
|
|
31
17
|
original: {
|
|
32
|
-
value:
|
|
33
|
-
attributes:
|
|
34
|
-
group: string;
|
|
35
|
-
category: string;
|
|
36
|
-
};
|
|
18
|
+
value: TokenValueOriginal;
|
|
19
|
+
attributes: TokenAttributes;
|
|
37
20
|
};
|
|
38
21
|
name: string;
|
|
39
22
|
path: string[];
|
|
40
|
-
}
|
|
23
|
+
};
|
|
24
|
+
declare const tokens: Token[];
|
|
41
25
|
export default tokens;
|
|
@@ -1,41 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
original: {
|
|
15
|
-
value: string;
|
|
16
|
-
attributes: {
|
|
17
|
-
group: string;
|
|
18
|
-
category: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
name: string;
|
|
22
|
-
path: string[];
|
|
23
|
-
} | {
|
|
24
|
-
value: number;
|
|
25
|
-
attributes: {
|
|
26
|
-
group: string;
|
|
27
|
-
category: string;
|
|
28
|
-
};
|
|
6
|
+
type TokenValue = string | number;
|
|
7
|
+
type TokenValueOriginal = string | number;
|
|
8
|
+
type TokenAttributes = {
|
|
9
|
+
group: string;
|
|
10
|
+
category: string;
|
|
11
|
+
};
|
|
12
|
+
type Token = {
|
|
13
|
+
value: TokenValue;
|
|
29
14
|
filePath: string;
|
|
30
15
|
isSource: boolean;
|
|
16
|
+
attributes: TokenAttributes;
|
|
31
17
|
original: {
|
|
32
|
-
value:
|
|
33
|
-
attributes:
|
|
34
|
-
group: string;
|
|
35
|
-
category: string;
|
|
36
|
-
};
|
|
18
|
+
value: TokenValueOriginal;
|
|
19
|
+
attributes: TokenAttributes;
|
|
37
20
|
};
|
|
38
21
|
name: string;
|
|
39
22
|
path: string[];
|
|
40
|
-
}
|
|
23
|
+
};
|
|
24
|
+
declare const tokens: Token[];
|
|
41
25
|
export default tokens;
|