@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.
Files changed (135) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/artifacts/generated-pairs.js +1 -1
  3. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +2 -1
  4. package/dist/cjs/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  5. package/dist/cjs/artifacts/palettes-raw/palette.js +2 -1
  6. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +2 -1
  7. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +2 -1
  8. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +2 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +2 -1
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  14. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  15. package/dist/cjs/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  16. package/dist/cjs/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  17. package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  18. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +2 -1
  19. package/dist/cjs/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  20. package/dist/cjs/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  21. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +2 -1
  22. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  23. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
  24. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  25. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  26. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +2 -1
  27. package/dist/cjs/babel-plugin/plugin.js +4 -1
  28. package/dist/cjs/set-global-theme.js +30 -23
  29. package/dist/es2019/artifacts/generated-pairs.js +1 -1
  30. package/dist/es2019/artifacts/palettes-raw/legacy-palette.js +2 -1
  31. package/dist/es2019/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  32. package/dist/es2019/artifacts/palettes-raw/palette.js +2 -1
  33. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +2 -1
  34. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +2 -1
  35. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +2 -1
  36. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  37. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  38. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  39. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +2 -1
  40. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  41. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  42. package/dist/es2019/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  43. package/dist/es2019/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  44. package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  45. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +2 -1
  46. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  47. package/dist/es2019/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  48. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +2 -1
  49. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  50. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
  51. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  52. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  53. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +2 -1
  54. package/dist/es2019/babel-plugin/plugin.js +4 -1
  55. package/dist/es2019/set-global-theme.js +17 -10
  56. package/dist/esm/artifacts/generated-pairs.js +1 -1
  57. package/dist/esm/artifacts/palettes-raw/legacy-palette.js +2 -1
  58. package/dist/esm/artifacts/palettes-raw/palette-brand-refresh.js +2 -1
  59. package/dist/esm/artifacts/palettes-raw/palette.js +2 -1
  60. package/dist/esm/artifacts/palettes-raw/shape-palette.js +2 -1
  61. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +2 -1
  62. package/dist/esm/artifacts/palettes-raw/typography-palette.js +2 -1
  63. package/dist/esm/artifacts/tokens-raw/atlassian-dark-brand-refresh.js +2 -1
  64. package/dist/esm/artifacts/tokens-raw/atlassian-dark-future.js +2 -1
  65. package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +2 -1
  66. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +2 -1
  67. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +2 -1
  68. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +2 -1
  69. package/dist/esm/artifacts/tokens-raw/atlassian-light-brand-refresh.js +2 -1
  70. package/dist/esm/artifacts/tokens-raw/atlassian-light-future.js +2 -1
  71. package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +2 -1
  72. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +2 -1
  73. package/dist/esm/artifacts/tokens-raw/atlassian-shape-rounder.js +2 -1
  74. package/dist/esm/artifacts/tokens-raw/atlassian-shape-roundest.js +2 -1
  75. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +2 -1
  76. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +2 -1
  77. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +2 -1
  78. package/dist/esm/artifacts/tokens-raw/atlassian-typography-modernized.js +2 -1
  79. package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +2 -1
  80. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +2 -1
  81. package/dist/esm/babel-plugin/plugin.js +4 -1
  82. package/dist/esm/set-global-theme.js +30 -23
  83. package/dist/types/artifacts/generated-pairs.d.ts +4 -9
  84. package/dist/types/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  85. package/dist/types/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  86. package/dist/types/artifacts/palettes-raw/palette.d.ts +14 -30
  87. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  88. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  89. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  90. package/dist/types/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  91. package/dist/types/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  92. package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  93. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  94. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  95. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  96. package/dist/types/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  97. package/dist/types/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  98. package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  99. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  100. package/dist/types/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  101. package/dist/types/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  102. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  103. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  104. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  105. package/dist/types/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  106. package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  107. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  108. package/dist/types/set-global-theme.d.ts +1 -1
  109. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +4 -9
  110. package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +14 -30
  111. package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +14 -30
  112. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +14 -30
  113. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +13 -26
  114. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +13 -11
  115. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +13 -26
  116. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +36 -95
  117. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +18 -17
  118. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +36 -119
  119. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +36 -95
  120. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +36 -99
  121. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +36 -75
  122. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +36 -75
  123. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +18 -17
  124. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +36 -99
  125. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +36 -75
  126. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-rounder.d.ts +18 -73
  127. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape-roundest.d.ts +18 -73
  128. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +18 -73
  129. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +18 -43
  130. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +25 -46
  131. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-modernized.d.ts +25 -46
  132. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +25 -46
  133. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +25 -46
  134. package/dist/types-ts4.5/set-global-theme.d.ts +1 -1
  135. package/package.json +4 -4
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::5fb765784561d214bcc78d25188fa47e>>
9
+ * @codegen <<SignedSource::012be6ddb918f408e4258335916d9334>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "#FFEBE6",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::a06fa043504c1e55d9871df9eab477b6>>
9
+ * @codegen <<SignedSource::54883f28091f3d25251716094b262928>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "#EFFFD6",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::ef2302d3e60545ba54818efd29a896a6>>
9
+ * @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "#EFFFD6",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::56944727b3c1e10bac5077e2c3edc9bf>>
9
+ * @codegen <<SignedSource::72feb1804c9c8d27535c172745ee1b9b>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "2px",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::773f331b816c6bade1dffda09ee7f5ff>>
9
+ * @codegen <<SignedSource::11e5a7b123691c94315b7df9e7aa8f9f>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "0px",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::c4ada678a4605209a273f3250ad0a333>>
9
+ * @codegen <<SignedSource::0736e3ca289c67f160a69299616f69c9>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "Roboto Mono",
14
15
  "attributes": {
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::62f6caabd88b17fe7f89c141fee3f0e2>>
9
+ * @codegen <<SignedSource::147a2afa95c37bc2a3b0a0e34c7a9710>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::ab55c164418ef8725d43715108841276>>
9
+ * @codegen <<SignedSource::98ec2ef3c3602f1046b2ecf3775d0f05>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::733444f60885d3da7ce8a7af7e46129a>>
9
+ * @codegen <<SignedSource::b10cb2c641a28d967973840725505a5d>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "#DEE4EA",
14
15
  "filePath": "schema/themes/atlassian-dark-increased-contrast/color/text.tsx",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::06ca0ed72399c6d73167eeb8e786d25b>>
9
+ * @codegen <<SignedSource::e5a01f19d58623f99b97e4dd2aef4926>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::fbf8e2b60aebce76cca97bc8f0838200>>
9
+ * @codegen <<SignedSource::9acedb862e373430c3930988761cbe44>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::af708029445848a184edeabecd92221f>>
9
+ * @codegen <<SignedSource::4670b0f10caa1698222cecfe37d7912d>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::a91c462d2f619efeed138e43013a806f>>
9
+ * @codegen <<SignedSource::1e215ad0e04dce07835882e324bc937e>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::940fbbe091341b7f246528cfc921961d>>
9
+ * @codegen <<SignedSource::8511311bb358d4d21a3ac431d0be8a44>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::0f7faf50570284c11dff5f282b4fa4fe>>
9
+ * @codegen <<SignedSource::7d6d41baa7103c9ee49c1e976d66bf14>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "value": "#091E42",
14
15
  "filePath": "schema/themes/atlassian-light-increased-contrast/color/text.tsx",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::621312f3cbdb221281b52b23cf9e6c58>>
9
+ * @codegen <<SignedSource::0ddb883a95cb1a36c2ce1db708181be1>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "paint",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::9f7396048d77a42862f986e9f2aa144e>>
9
+ * @codegen <<SignedSource::ae0db95e6643057107d0c09628e379a7>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "shape",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::05611dfd0ca8208c27a67efbdb8a44f0>>
9
+ * @codegen <<SignedSource::62159541fb88b669eb2ad0f06e7e0daf>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "shape",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::cb61446316a92e7f26958e3ca733fd1e>>
9
+ * @codegen <<SignedSource::f3ee3158256a13e7401785620da6d439>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "shape",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::b5cb4872c7a2014d836a8fa15e4c0102>>
9
+ * @codegen <<SignedSource::c5e6cf9e70d065b7daac533ac0569acf>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "spacing",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::329c848af71c3d96d855087c3791e2ef>>
9
+ * @codegen <<SignedSource::80e21582acfe238b3aab5d8c8d1ec831>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "raw",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::c0d5e0833c4c903bceceac9b9739bbdf>>
9
+ * @codegen <<SignedSource::d9a4e2432a4ea835e7ceac5c19e379b5>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "raw",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::3e0deeb09853e95221bd7bba0b9638ef>>
9
+ * @codegen <<SignedSource::03640b642efa498f3c90b99101405f9e>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "raw",
@@ -6,9 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::6daadbbdeae45dc5d3ae1237dc483b07>>
9
+ * @codegen <<SignedSource::2d82706aaef27f4b665743cafd879972>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
+
12
13
  var tokens = [{
13
14
  "attributes": {
14
15
  "group": "typography",
@@ -49,7 +49,7 @@ var getThemeValues = function getThemeValues(theme) {
49
49
  value = rawToken.value;
50
50
  } else if (typeof rawToken.value === 'number') {
51
51
  value = rawToken.value.toString();
52
- } else {
52
+ } else if (Array.isArray(rawToken.value)) {
53
53
  // If it's a box shadow, it'll be an array of values that needs to be
54
54
  // formatted to look like '0px 0px 8px #091e4229, 0px 0px 1px #091e421F'
55
55
  value = rawToken.value.reduce(function (prev, curr, index) {
@@ -73,6 +73,9 @@ var getThemeValues = function getThemeValues(theme) {
73
73
  }
74
74
  return prev + value;
75
75
  }, '');
76
+ } else {
77
+ // ignore when value is `fontweight` etc. - this is apparently not handled here.
78
+ return formatted;
76
79
  }
77
80
  return _objectSpread(_objectSpread({}, formatted), {}, (0, _defineProperty2.default)({}, rawToken.cleanName, value));
78
81
  }, {});
@@ -7,8 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ var _getGlobalTheme = _interopRequireDefault(require("./get-global-theme"));
12
14
  var _themeConfig = require("./theme-config");
13
15
  var _colorUtils = require("./utils/color-utils");
14
16
  var _configurePage = _interopRequireDefault(require("./utils/configure-page"));
@@ -19,6 +21,8 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
19
21
  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; } }
20
22
  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; }
21
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
24
+ 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; }
25
+ 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) { (0, _defineProperty2.default)(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; }
22
26
  /**
23
27
  * Sets the theme globally at runtime. This updates the `data-theme` and `data-color-mode` attributes on your page's <html> tag.
24
28
  *
@@ -42,7 +46,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
42
46
  */
43
47
  var setGlobalTheme = /*#__PURE__*/function () {
44
48
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
45
- var _ref2,
49
+ var nextThemeState,
50
+ themeLoader,
51
+ _ref2,
46
52
  _ref2$colorMode,
47
53
  colorMode,
48
54
  _ref2$contrastMode,
@@ -59,7 +65,6 @@ var setGlobalTheme = /*#__PURE__*/function () {
59
65
  typography,
60
66
  _ref2$UNSAFE_themeOpt,
61
67
  UNSAFE_themeOptions,
62
- themeLoader,
63
68
  themeState,
64
69
  themePreferences,
65
70
  loadingStrategy,
@@ -75,9 +80,11 @@ var setGlobalTheme = /*#__PURE__*/function () {
75
80
  return _regenerator.default.wrap(function _callee3$(_context3) {
76
81
  while (1) switch (_context3.prev = _context3.next) {
77
82
  case 0:
78
- _ref2 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? _themeConfig.themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? _themeConfig.themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? _themeConfig.themeStateDefaults['shape'] : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? _themeConfig.themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt;
83
+ nextThemeState = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
79
84
  themeLoader = _args3.length > 1 ? _args3[1] : undefined;
80
- // CLEANUP: Remove. This blocks application of increased contrast themes
85
+ _ref2 = typeof nextThemeState === 'function' ? nextThemeState(_objectSpread(_objectSpread({}, _themeConfig.themeStateDefaults), {}, {
86
+ typography: _themeConfig.themeStateDefaults['typography']()
87
+ }, (0, _getGlobalTheme.default)())) : nextThemeState, _ref2$colorMode = _ref2.colorMode, colorMode = _ref2$colorMode === void 0 ? _themeConfig.themeStateDefaults['colorMode'] : _ref2$colorMode, _ref2$contrastMode = _ref2.contrastMode, contrastMode = _ref2$contrastMode === void 0 ? _themeConfig.themeStateDefaults['contrastMode'] : _ref2$contrastMode, _ref2$dark = _ref2.dark, dark = _ref2$dark === void 0 ? _themeConfig.themeStateDefaults['dark'] : _ref2$dark, _ref2$light = _ref2.light, light = _ref2$light === void 0 ? _themeConfig.themeStateDefaults['light'] : _ref2$light, _ref2$shape = _ref2.shape, shape = _ref2$shape === void 0 ? _themeConfig.themeStateDefaults['shape'] : _ref2$shape, _ref2$spacing = _ref2.spacing, spacing = _ref2$spacing === void 0 ? _themeConfig.themeStateDefaults['spacing'] : _ref2$spacing, _ref2$typography = _ref2.typography, typography = _ref2$typography === void 0 ? _themeConfig.themeStateDefaults['typography']() : _ref2$typography, _ref2$UNSAFE_themeOpt = _ref2.UNSAFE_themeOptions, UNSAFE_themeOptions = _ref2$UNSAFE_themeOpt === void 0 ? _themeConfig.themeStateDefaults['UNSAFE_themeOptions'] : _ref2$UNSAFE_themeOpt; // CLEANUP: Remove. This blocks application of increased contrast themes
81
88
  // without the feature flag enabled.
82
89
  if (!(0, _platformFeatureFlags.fg)('platform_increased-contrast-themes')) {
83
90
  if (light === 'light-increased-contrast') {
@@ -150,44 +157,44 @@ var setGlobalTheme = /*#__PURE__*/function () {
150
157
  }))());
151
158
  }
152
159
  }
153
- _context3.next = 10;
160
+ _context3.next = 11;
154
161
  return Promise.all(loadingTasks);
155
- case 10:
162
+ case 11:
156
163
  // Load override themes after standard themes
157
164
  themeOverridePreferences = (0, _getThemePreferences.getThemeOverridePreferences)(themeState);
158
165
  _iterator = _createForOfIteratorHelper(themeOverridePreferences);
159
- _context3.prev = 12;
166
+ _context3.prev = 13;
160
167
  _iterator.s();
161
- case 14:
168
+ case 15:
162
169
  if ((_step = _iterator.n()).done) {
163
- _context3.next = 20;
170
+ _context3.next = 21;
164
171
  break;
165
172
  }
166
173
  themeId = _step.value;
167
- _context3.next = 18;
174
+ _context3.next = 19;
168
175
  return loadingStrategy(themeId);
169
- case 18:
170
- _context3.next = 14;
176
+ case 19:
177
+ _context3.next = 15;
171
178
  break;
172
- case 20:
173
- _context3.next = 25;
179
+ case 21:
180
+ _context3.next = 26;
174
181
  break;
175
- case 22:
176
- _context3.prev = 22;
177
- _context3.t0 = _context3["catch"](12);
182
+ case 23:
183
+ _context3.prev = 23;
184
+ _context3.t0 = _context3["catch"](13);
178
185
  _iterator.e(_context3.t0);
179
- case 25:
180
- _context3.prev = 25;
186
+ case 26:
187
+ _context3.prev = 26;
181
188
  _iterator.f();
182
- return _context3.finish(25);
183
- case 28:
189
+ return _context3.finish(26);
190
+ case 29:
184
191
  autoUnbind = (0, _configurePage.default)(themeState);
185
192
  return _context3.abrupt("return", autoUnbind);
186
- case 30:
193
+ case 31:
187
194
  case "end":
188
195
  return _context3.stop();
189
196
  }
190
- }, _callee3, null, [[12, 22, 25, 28]]);
197
+ }, _callee3, null, [[13, 23, 26, 29]]);
191
198
  }));
192
199
  return function setGlobalTheme() {
193
200
  return _ref.apply(this, arguments);