@atlaskit/tokens 13.4.0 → 15.0.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 (219) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/artifacts/theme-import-map/package.json +1 -8
  3. package/artifacts/types/package.json +1 -8
  4. package/babel-plugin/package.json +1 -8
  5. package/constants/package.json +1 -8
  6. package/css-type-schema/package.json +1 -8
  7. package/custom-themes/package.json +1 -8
  8. package/dist/cjs/theme-state-defaults.js +1 -4
  9. package/dist/es2019/theme-state-defaults.js +1 -4
  10. package/dist/esm/theme-state-defaults.js +1 -4
  11. package/enable-global-theme/package.json +1 -8
  12. package/get-global-theme/package.json +1 -8
  13. package/get-ssr-auto-script/package.json +1 -8
  14. package/get-theme-html-attrs/package.json +1 -8
  15. package/get-theme-styles/package.json +1 -8
  16. package/get-token/package.json +1 -8
  17. package/get-token-value/package.json +1 -8
  18. package/package.json +29 -40
  19. package/palettes-raw/package.json +1 -8
  20. package/rename-mapping/package.json +1 -8
  21. package/set-global-theme/package.json +1 -8
  22. package/theme-config/package.json +1 -8
  23. package/theme-mutation-observer/package.json +1 -8
  24. package/theme-state-transformer/package.json +1 -8
  25. package/token-default-values/package.json +1 -8
  26. package/token-ids/package.json +1 -8
  27. package/token-metadata/package.json +1 -8
  28. package/token-names/package.json +1 -8
  29. package/token-order/package.json +1 -8
  30. package/tokens-raw/package.json +1 -8
  31. package/types/package.json +1 -8
  32. package/use-theme-observer/package.json +1 -8
  33. package/dist/cjs/artifacts/themes/atlassian-shape-rounder.js +0 -12
  34. package/dist/cjs/artifacts/themes/atlassian-shape-roundest.js +0 -12
  35. package/dist/es2019/artifacts/themes/atlassian-shape-rounder.js +0 -19
  36. package/dist/es2019/artifacts/themes/atlassian-shape-roundest.js +0 -19
  37. package/dist/esm/artifacts/themes/atlassian-shape-rounder.js +0 -6
  38. package/dist/esm/artifacts/themes/atlassian-shape-roundest.js +0 -6
  39. package/dist/types/artifacts/themes/atlassian-shape-rounder.d.ts +0 -7
  40. package/dist/types/artifacts/themes/atlassian-shape-roundest.d.ts +0 -7
  41. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +0 -18
  42. package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +0 -18
  43. package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +0 -16
  44. package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +0 -25
  45. package/dist/types-ts4.5/artifacts/palettes-raw/motion-palette.d.ts +0 -24
  46. package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +0 -25
  47. package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +0 -25
  48. package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +0 -24
  49. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +0 -24
  50. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +0 -24
  51. package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +0 -26
  52. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +0 -16
  53. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-future.d.ts +0 -7
  54. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +0 -7
  55. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-new-input-border.d.ts +0 -7
  56. package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +0 -7
  57. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +0 -7
  58. package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +0 -7
  59. package/dist/types-ts4.5/artifacts/themes/atlassian-light-future.d.ts +0 -7
  60. package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +0 -7
  61. package/dist/types-ts4.5/artifacts/themes/atlassian-light-new-input-border.d.ts +0 -7
  62. package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +0 -7
  63. package/dist/types-ts4.5/artifacts/themes/atlassian-motion.d.ts +0 -7
  64. package/dist/types-ts4.5/artifacts/themes/atlassian-shape-rounder.d.ts +0 -7
  65. package/dist/types-ts4.5/artifacts/themes/atlassian-shape-roundest.d.ts +0 -7
  66. package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +0 -7
  67. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +0 -7
  68. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +0 -7
  69. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +0 -566
  70. package/dist/types-ts4.5/artifacts/token-names.d.ts +0 -1113
  71. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +0 -50
  72. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +0 -31
  73. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +0 -51
  74. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +0 -51
  75. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -51
  76. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -51
  77. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +0 -50
  78. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +0 -31
  79. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +0 -51
  80. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +0 -51
  81. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-motion.d.ts +0 -43
  82. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +0 -31
  83. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -31
  84. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +0 -38
  85. package/dist/types-ts4.5/artifacts/types-internal.d.ts +0 -6
  86. package/dist/types-ts4.5/artifacts/types.d.ts +0 -6
  87. package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -784
  88. package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
  89. package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
  90. package/dist/types-ts4.5/artifacts/typescript/atlassian-light-token-names.d.ts +0 -784
  91. package/dist/types-ts4.5/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
  92. package/dist/types-ts4.5/artifacts/typescript/atlassian-light-types.d.ts +0 -6
  93. package/dist/types-ts4.5/babel-plugin/index.d.ts +0 -1
  94. package/dist/types-ts4.5/babel-plugin/plugin.d.ts +0 -29
  95. package/dist/types-ts4.5/constants.d.ts +0 -9
  96. package/dist/types-ts4.5/custom-theme.d.ts +0 -6
  97. package/dist/types-ts4.5/enable-global-theme.d.ts +0 -26
  98. package/dist/types-ts4.5/entry-points/artifacts-theme-import-map.d.ts +0 -1
  99. package/dist/types-ts4.5/entry-points/artifacts-types.d.ts +0 -1
  100. package/dist/types-ts4.5/entry-points/babel-plugin.d.ts +0 -1
  101. package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
  102. package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +0 -165
  103. package/dist/types-ts4.5/entry-points/custom-themes.d.ts +0 -1
  104. package/dist/types-ts4.5/entry-points/enable-global-theme.d.ts +0 -1
  105. package/dist/types-ts4.5/entry-points/get-global-theme.d.ts +0 -1
  106. package/dist/types-ts4.5/entry-points/get-ssr-auto-script.d.ts +0 -1
  107. package/dist/types-ts4.5/entry-points/get-theme-html-attrs.d.ts +0 -1
  108. package/dist/types-ts4.5/entry-points/get-theme-styles.d.ts +0 -1
  109. package/dist/types-ts4.5/entry-points/get-token-value.d.ts +0 -1
  110. package/dist/types-ts4.5/entry-points/get-token.d.ts +0 -1
  111. package/dist/types-ts4.5/entry-points/palettes-raw.d.ts +0 -2
  112. package/dist/types-ts4.5/entry-points/rename-mapping.d.ts +0 -1
  113. package/dist/types-ts4.5/entry-points/set-global-theme.d.ts +0 -1
  114. package/dist/types-ts4.5/entry-points/theme-config.d.ts +0 -2
  115. package/dist/types-ts4.5/entry-points/theme-mutation-observer.d.ts +0 -1
  116. package/dist/types-ts4.5/entry-points/theme-state-transformer.d.ts +0 -2
  117. package/dist/types-ts4.5/entry-points/token-default-values.d.ts +0 -1
  118. package/dist/types-ts4.5/entry-points/token-ids.d.ts +0 -1
  119. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +0 -19
  120. package/dist/types-ts4.5/entry-points/token-names.d.ts +0 -2
  121. package/dist/types-ts4.5/entry-points/token-order.d.ts +0 -1
  122. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +0 -6
  123. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  124. package/dist/types-ts4.5/entry-points/use-theme-observer.d.ts +0 -1
  125. package/dist/types-ts4.5/get-custom-theme-styles.d.ts +0 -16
  126. package/dist/types-ts4.5/get-global-theme.d.ts +0 -3
  127. package/dist/types-ts4.5/get-ssr-auto-script.d.ts +0 -11
  128. package/dist/types-ts4.5/get-theme-html-attrs.d.ts +0 -18
  129. package/dist/types-ts4.5/get-theme-styles.d.ts +0 -25
  130. package/dist/types-ts4.5/get-token-value.d.ts +0 -25
  131. package/dist/types-ts4.5/get-token.d.ts +0 -26
  132. package/dist/types-ts4.5/index.d.ts +0 -19
  133. package/dist/types-ts4.5/is-color-mode.d.ts +0 -2
  134. package/dist/types-ts4.5/is-theme-ids.d.ts +0 -2
  135. package/dist/types-ts4.5/is-theme-kind.d.ts +0 -11
  136. package/dist/types-ts4.5/load-custom-theme-styles.d.ts +0 -17
  137. package/dist/types-ts4.5/set-global-theme.d.ts +0 -26
  138. package/dist/types-ts4.5/theme-color-modes.d.ts +0 -12
  139. package/dist/types-ts4.5/theme-config.d.ts +0 -121
  140. package/dist/types-ts4.5/theme-ids.d.ts +0 -19
  141. package/dist/types-ts4.5/theme-mutation-observer.d.ts +0 -25
  142. package/dist/types-ts4.5/theme-object-to-string.d.ts +0 -13
  143. package/dist/types-ts4.5/theme-options-schema.d.ts +0 -7
  144. package/dist/types-ts4.5/theme-state-defaults.d.ts +0 -14
  145. package/dist/types-ts4.5/theme-state.d.ts +0 -17
  146. package/dist/types-ts4.5/theme-string-to-object.d.ts +0 -14
  147. package/dist/types-ts4.5/types.d.ts +0 -1356
  148. package/dist/types-ts4.5/use-theme-observer.d.ts +0 -16
  149. package/dist/types-ts4.5/utils/additional-contrast-checker.d.ts +0 -9
  150. package/dist/types-ts4.5/utils/color-detection.d.ts +0 -8
  151. package/dist/types-ts4.5/utils/color-mode-listeners.d.ts +0 -13
  152. package/dist/types-ts4.5/utils/configure-page.d.ts +0 -6
  153. package/dist/types-ts4.5/utils/contrast-mode-listeners.d.ts +0 -13
  154. package/dist/types-ts4.5/utils/custom-theme-loading-utils.d.ts +0 -4
  155. package/dist/types-ts4.5/utils/custom-theme-token-contrast-check.d.ts +0 -11
  156. package/dist/types-ts4.5/utils/delta-e.d.ts +0 -1
  157. package/dist/types-ts4.5/utils/generate-colors.d.ts +0 -5
  158. package/dist/types-ts4.5/utils/generate-token-map-with-contrast-check.d.ts +0 -11
  159. package/dist/types-ts4.5/utils/generate-token-map.d.ts +0 -11
  160. package/dist/types-ts4.5/utils/get-alpha.d.ts +0 -1
  161. package/dist/types-ts4.5/utils/get-closest-color-index.d.ts +0 -2
  162. package/dist/types-ts4.5/utils/get-contrast-ratio.d.ts +0 -1
  163. package/dist/types-ts4.5/utils/get-css-custom-property.d.ts +0 -15
  164. package/dist/types-ts4.5/utils/get-fully-qualified-token-id.d.ts +0 -11
  165. package/dist/types-ts4.5/utils/get-increased-contrast-theme.d.ts +0 -5
  166. package/dist/types-ts4.5/utils/get-theme-override-preferences.d.ts +0 -2
  167. package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +0 -3
  168. package/dist/types-ts4.5/utils/get-token-id.d.ts +0 -15
  169. package/dist/types-ts4.5/utils/hash.d.ts +0 -1
  170. package/dist/types-ts4.5/utils/hct-color-utils/alpha-from-argb.d.ts +0 -4
  171. package/dist/types-ts4.5/utils/hct-color-utils/argb-from-linrgb.d.ts +0 -4
  172. package/dist/types-ts4.5/utils/hct-color-utils/argb-from-lstar.d.ts +0 -8
  173. package/dist/types-ts4.5/utils/hct-color-utils/argb-from-rgb.d.ts +0 -4
  174. package/dist/types-ts4.5/utils/hct-color-utils/argb-from-rgba.d.ts +0 -8
  175. package/dist/types-ts4.5/utils/hct-color-utils/argb-from-xyz.d.ts +0 -4
  176. package/dist/types-ts4.5/utils/hct-color-utils/blue-from-argb.d.ts +0 -4
  177. package/dist/types-ts4.5/utils/hct-color-utils/clamp-component.d.ts +0 -1
  178. package/dist/types-ts4.5/utils/hct-color-utils/clamp-double.d.ts +0 -7
  179. package/dist/types-ts4.5/utils/hct-color-utils/clamp-int.d.ts +0 -7
  180. package/dist/types-ts4.5/utils/hct-color-utils/contrast.d.ts +0 -78
  181. package/dist/types-ts4.5/utils/hct-color-utils/delinearized.d.ts +0 -9
  182. package/dist/types-ts4.5/utils/hct-color-utils/green-from-argb.d.ts +0 -4
  183. package/dist/types-ts4.5/utils/hct-color-utils/hct.d.ts +0 -92
  184. package/dist/types-ts4.5/utils/hct-color-utils/index.d.ts +0 -4
  185. package/dist/types-ts4.5/utils/hct-color-utils/lab-f.d.ts +0 -1
  186. package/dist/types-ts4.5/utils/hct-color-utils/lab-invf.d.ts +0 -1
  187. package/dist/types-ts4.5/utils/hct-color-utils/lerp.d.ts +0 -6
  188. package/dist/types-ts4.5/utils/hct-color-utils/linearized.d.ts +0 -9
  189. package/dist/types-ts4.5/utils/hct-color-utils/lstar-from-argb.d.ts +0 -7
  190. package/dist/types-ts4.5/utils/hct-color-utils/lstar-from-y.d.ts +0 -12
  191. package/dist/types-ts4.5/utils/hct-color-utils/math-utils.d.ts +0 -6
  192. package/dist/types-ts4.5/utils/hct-color-utils/matrix-multiply.d.ts +0 -4
  193. package/dist/types-ts4.5/utils/hct-color-utils/red-from-argb.d.ts +0 -4
  194. package/dist/types-ts4.5/utils/hct-color-utils/rgba-from-argb.d.ts +0 -8
  195. package/dist/types-ts4.5/utils/hct-color-utils/rgba.d.ts +0 -14
  196. package/dist/types-ts4.5/utils/hct-color-utils/sanitize-degrees-double.d.ts +0 -7
  197. package/dist/types-ts4.5/utils/hct-color-utils/signum.d.ts +0 -6
  198. package/dist/types-ts4.5/utils/hct-color-utils/viewing-conditions.d.ts +0 -47
  199. package/dist/types-ts4.5/utils/hct-color-utils/white-point-d65.d.ts +0 -6
  200. package/dist/types-ts4.5/utils/hct-color-utils/y-from-lstar.d.ts +0 -12
  201. package/dist/types-ts4.5/utils/hex-to-hsl.d.ts +0 -5
  202. package/dist/types-ts4.5/utils/hex-to-rgb-a.d.ts +0 -6
  203. package/dist/types-ts4.5/utils/hex-to-rgb.d.ts +0 -5
  204. package/dist/types-ts4.5/utils/hex-to-rgba-values.d.ts +0 -6
  205. package/dist/types-ts4.5/utils/hsl-to-rgb.d.ts +0 -5
  206. package/dist/types-ts4.5/utils/is-valid-brand-hex.d.ts +0 -1
  207. package/dist/types-ts4.5/utils/is-valid-hex.d.ts +0 -1
  208. package/dist/types-ts4.5/utils/limit-size-of-custom-style-elements.d.ts +0 -1
  209. package/dist/types-ts4.5/utils/load-theme-css.d.ts +0 -2
  210. package/dist/types-ts4.5/utils/reduce-token-map.d.ts +0 -6
  211. package/dist/types-ts4.5/utils/relative-luminance-w3-c.d.ts +0 -1
  212. package/dist/types-ts4.5/utils/rgb-to-hex.d.ts +0 -1
  213. package/dist/types-ts4.5/utils/rgb-to-lab.d.ts +0 -5
  214. package/dist/types-ts4.5/utils/theme-loading.d.ts +0 -5
  215. package/dist/types-ts4.5/utils/token-ids.d.ts +0 -3
  216. package/dist/types-ts4.5/utils/token-order.d.ts +0 -7
  217. package/dist/types-ts4.5/utils/token-usage-guidelines.d.ts +0 -8
  218. package/figma/atlassian-shape-rounder.json +0 -123
  219. package/figma/atlassian-shape-roundest.json +0 -123
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`26bb3944a5ea4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26bb3944a5ea4) -
8
+ Removed unused shape-rounder and shape-roundest themes. Removed legacy typography themes from
9
+ prebuilt.
10
+
11
+ ### Patch Changes
12
+
13
+ - [`d223db963e46d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d223db963e46d) -
14
+ Cleanup feature gate `platform-dst-motion-theme-default`. Motion theme is now permanently enabled
15
+ by default in `setGlobalTheme` calls.
16
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
17
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
18
+ gating.
19
+ - Updated dependencies
20
+
21
+ ## 14.0.0
22
+
23
+ ### Major Changes
24
+
25
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
26
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
27
+
28
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
29
+
30
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
31
+
32
+ ```diff
33
+ - "typesVersions": {
34
+ - ">=4.5 <4.9": {
35
+ - "*": [
36
+ - "dist/types-ts4.5/*",
37
+ - "dist/types-ts4.5/index.d.ts"
38
+ - ]
39
+ - }
40
+ - },
41
+ ```
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies
46
+
3
47
  ## 13.4.0
4
48
 
5
49
  ### Minor Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/artifacts-theme-import-map.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/artifacts-theme-import-map.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/artifacts-theme-import-map.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../../dist/types/entry-points/artifacts-types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/entry-points/artifacts-types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/entry-points/artifacts-types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/babel-plugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/babel-plugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/babel-plugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/constants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/constants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/constants.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/css-type-schema.codegen.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/css-type-schema.codegen.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/custom-themes.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/custom-themes.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/custom-themes.d.ts"
17
10
  }
@@ -17,10 +17,7 @@ function getShapeDefault() {
17
17
  return undefined;
18
18
  }
19
19
  function getMotionDefault() {
20
- if ((0, _platformFeatureFlags.fg)('platform-dst-motion-theme-default')) {
21
- return 'motion';
22
- }
23
- return undefined;
20
+ return 'motion';
24
21
  }
25
22
 
26
23
  /**
@@ -12,10 +12,7 @@ function getShapeDefault() {
12
12
  return undefined;
13
13
  }
14
14
  function getMotionDefault() {
15
- if (fg('platform-dst-motion-theme-default')) {
16
- return 'motion';
17
- }
18
- return undefined;
15
+ return 'motion';
19
16
  }
20
17
 
21
18
  /**
@@ -12,10 +12,7 @@ function getShapeDefault() {
12
12
  return undefined;
13
13
  }
14
14
  function getMotionDefault() {
15
- if (fg('platform-dst-motion-theme-default')) {
16
- return 'motion';
17
- }
18
- return undefined;
15
+ return 'motion';
19
16
  }
20
17
 
21
18
  /**
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/enable-global-theme.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/enable-global-theme.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/enable-global-theme.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-global-theme.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-global-theme.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-global-theme.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-ssr-auto-script.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-ssr-auto-script.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-ssr-auto-script.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-theme-html-attrs.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-theme-html-attrs.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-theme-html-attrs.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-theme-styles.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-theme-styles.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-theme-styles.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-token.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-token.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-token.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/get-token-value.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/get-token-value.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/get-token-value.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "13.4.0",
3
+ "version": "15.0.0",
4
4
  "description": "Design tokens are the single source of truth to name and store design decisions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,8 +37,9 @@
37
37
  "codegen-tokens": "run-ts ./scripts/style-dictionary/build.tsx && run-ts ./scripts/style-dictionary/build-plugin-token-map.tsx && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/ds-explorations && yarn codegen-styles"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/ds-lib": "^7.0.0",
41
- "@atlaskit/platform-feature-flags": "^1.1.0",
40
+ "@atlaskit/ds-lib": "^8.0.0",
41
+ "@atlaskit/platform-feature-flags": "^2.0.0",
42
+ "@atlassian/react-compiler-gating": "^0.2.0",
42
43
  "@babel/runtime": "^7.0.0",
43
44
  "@babel/traverse": "^7.23.2",
44
45
  "@babel/types": "^7.20.0",
@@ -50,34 +51,33 @@
50
51
  "devDependencies": {
51
52
  "@af/formatting": "workspace:^",
52
53
  "@af/visual-regression": "workspace:^",
53
- "@atlaskit/avatar": "^25.15.0",
54
- "@atlaskit/button": "^23.11.0",
55
- "@atlaskit/calendar": "^17.2.0",
56
- "@atlaskit/checkbox": "^17.3.0",
57
- "@atlaskit/code": "^17.5.0",
58
- "@atlaskit/css": "^0.19.0",
59
- "@atlaskit/docs": "^11.8.0",
60
- "@atlaskit/dropdown-menu": "^16.10.0",
61
- "@atlaskit/dynamic-table": "^18.4.0",
62
- "@atlaskit/form": "^15.5.0",
63
- "@atlaskit/heading": "^5.4.0",
64
- "@atlaskit/icon": "^35.4.0",
65
- "@atlaskit/inline-message": "^15.6.0",
66
- "@atlaskit/link": "^3.4.0",
67
- "@atlaskit/lozenge": "^13.9.0",
68
- "@atlaskit/popup": "^4.24.0",
69
- "@atlaskit/primitives": "^19.0.0",
70
- "@atlaskit/radio": "^8.6.0",
71
- "@atlaskit/section-message": "^8.13.0",
72
- "@atlaskit/select": "^21.12.0",
73
- "@atlaskit/tag": "^14.16.0",
74
- "@atlaskit/textarea": "^8.3.0",
75
- "@atlaskit/textfield": "^8.3.0",
76
- "@atlaskit/theme": "^25.0.0",
77
- "@atlaskit/tooltip": "^22.6.0",
54
+ "@atlaskit/avatar": "^26.0.0",
55
+ "@atlaskit/button": "^24.1.0",
56
+ "@atlaskit/calendar": "^18.0.0",
57
+ "@atlaskit/checkbox": "^18.0.0",
58
+ "@atlaskit/code": "^18.0.0",
59
+ "@atlaskit/css": "^1.0.0",
60
+ "@atlaskit/docs": "^12.0.0",
61
+ "@atlaskit/dropdown-menu": "^17.0.0",
62
+ "@atlaskit/dynamic-table": "^19.0.0",
63
+ "@atlaskit/form": "^16.0.0",
64
+ "@atlaskit/heading": "^6.0.0",
65
+ "@atlaskit/icon": "^36.0.0",
66
+ "@atlaskit/inline-message": "^16.0.0",
67
+ "@atlaskit/link": "^4.0.0",
68
+ "@atlaskit/lozenge": "^14.0.0",
69
+ "@atlaskit/popup": "^5.0.0",
70
+ "@atlaskit/primitives": "^20.0.0",
71
+ "@atlaskit/radio": "^9.0.0",
72
+ "@atlaskit/section-message": "^9.1.0",
73
+ "@atlaskit/select": "^22.1.0",
74
+ "@atlaskit/tag": "^15.0.0",
75
+ "@atlaskit/textarea": "^9.0.0",
76
+ "@atlaskit/textfield": "^9.0.0",
77
+ "@atlaskit/theme": "^26.0.0",
78
+ "@atlaskit/tooltip": "^23.0.0",
78
79
  "@atlassian/codegen": "^0.2.0",
79
80
  "@atlassian/feature-flags-test-utils": "^1.1.0",
80
- "@atlassian/react-compiler-gating": "workspace:^",
81
81
  "@atlassian/structured-docs-types": "workspace:^",
82
82
  "@atlassian/ts-loader": "^0.1.0",
83
83
  "@babel/core": "7.24.9",
@@ -118,23 +118,12 @@
118
118
  "postcss-less"
119
119
  ]
120
120
  },
121
- "typesVersions": {
122
- ">=4.5 <4.9": {
123
- "*": [
124
- "dist/types-ts4.5/*",
125
- "dist/types-ts4.5/index.d.ts"
126
- ]
127
- }
128
- },
129
121
  "platform-feature-flags": {
130
122
  "platform_increased-contrast-themes": {
131
123
  "type": "boolean"
132
124
  },
133
125
  "platform-dst-shape-theme-default": {
134
126
  "type": "boolean"
135
- },
136
- "platform-dst-motion-theme-default": {
137
- "type": "boolean"
138
127
  }
139
128
  },
140
129
  "homepage": "https://atlassian.design/components/tokens"
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/palettes-raw.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/palettes-raw.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/palettes-raw.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/rename-mapping.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/rename-mapping.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/rename-mapping.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/set-global-theme.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/set-global-theme.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/set-global-theme.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/theme-config.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/theme-config.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/theme-config.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/theme-mutation-observer.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/theme-mutation-observer.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/theme-mutation-observer.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/theme-state-transformer.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/theme-state-transformer.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/theme-state-transformer.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/token-default-values.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/token-default-values.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/token-default-values.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/token-ids.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/token-ids.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/token-ids.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/token-metadata.codegen.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/token-metadata.codegen.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/token-names.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/token-names.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/token-names.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/token-order.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/token-order.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/token-order.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/tokens-raw.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/tokens-raw.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/tokens-raw.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/use-theme-observer.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/use-theme-observer.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/use-theme-observer.d.ts"
17
10
  }
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::f516cab37702e8e3d5152cb55d59256b>>
10
- * @codegenCommand yarn build tokens
11
- */
12
- var _default = exports.default = "\nhtml[data-theme~=\"shape:shape-rounder\"] {\n --ds-radius-xsmall: 0.125rem;\n --ds-radius-small: 0.25rem;\n --ds-radius-medium: 0.375rem;\n --ds-radius-large: 0.75rem;\n --ds-radius-xlarge: 1rem;\n --ds-radius-full: 624.9375rem;\n --ds-radius-tile: 25%;\n --ds-border-width: 0.0625rem;\n --ds-border-width-selected: 0.125rem;\n --ds-border-width-focused: 0.125rem;\n}\n";
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::46c9186a43917f0c2addc79cdca0c7e6>>
10
- * @codegenCommand yarn build tokens
11
- */
12
- var _default = exports.default = "\nhtml[data-theme~=\"shape:shape-roundest\"] {\n --ds-radius-xsmall: 0.125rem;\n --ds-radius-small: 0.25rem;\n --ds-radius-medium: 0.75rem;\n --ds-radius-large: 1rem;\n --ds-radius-xlarge: 1.25rem;\n --ds-radius-full: 624.9375rem;\n --ds-radius-tile: 25%;\n --ds-border-width: 0.0625rem;\n --ds-border-width-selected: 0.125rem;\n --ds-border-width-focused: 0.125rem;\n}\n";
@@ -1,19 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::f516cab37702e8e3d5152cb55d59256b>>
4
- * @codegenCommand yarn build tokens
5
- */
6
- export default `
7
- html[data-theme~="shape:shape-rounder"] {
8
- --ds-radius-xsmall: 0.125rem;
9
- --ds-radius-small: 0.25rem;
10
- --ds-radius-medium: 0.375rem;
11
- --ds-radius-large: 0.75rem;
12
- --ds-radius-xlarge: 1rem;
13
- --ds-radius-full: 624.9375rem;
14
- --ds-radius-tile: 25%;
15
- --ds-border-width: 0.0625rem;
16
- --ds-border-width-selected: 0.125rem;
17
- --ds-border-width-focused: 0.125rem;
18
- }
19
- `;