@atlaskit/tokens 1.24.0 → 1.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/CHANGELOG.md +178 -164
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +1 -2
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +1 -2
  4. package/dist/cjs/artifacts/generated-pairs.js +1 -1
  5. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +1 -2
  6. package/dist/cjs/artifacts/palettes-raw/palette.js +1 -2
  7. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +1 -2
  8. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +1 -2
  9. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +4 -5
  10. package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +2257 -0
  11. package/dist/cjs/artifacts/replacement-mapping.js +1 -2
  12. package/dist/cjs/artifacts/theme-import-map.js +14 -3
  13. package/dist/cjs/artifacts/themes/atlassian-dark-new-input-border.js +1 -2
  14. package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +12 -0
  15. package/dist/cjs/artifacts/themes/atlassian-dark.js +1 -2
  16. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +1 -2
  17. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +1 -2
  18. package/dist/cjs/artifacts/themes/atlassian-light-new-input-border.js +1 -2
  19. package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +12 -0
  20. package/dist/cjs/artifacts/themes/atlassian-light.js +1 -2
  21. package/dist/cjs/artifacts/themes/atlassian-shape.js +1 -2
  22. package/dist/cjs/artifacts/themes/atlassian-spacing.js +1 -2
  23. package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -3
  24. package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -3
  25. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -3
  26. package/dist/cjs/artifacts/token-default-values.js +14 -15
  27. package/dist/cjs/artifacts/token-names.js +12 -13
  28. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +1 -2
  29. package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8683 -0
  30. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1 -2
  31. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +1 -2
  32. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +1 -2
  33. package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +1 -2
  34. package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8645 -0
  35. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1 -2
  36. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +1 -2
  37. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +1 -2
  38. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +34 -35
  39. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +35 -36
  40. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +35 -36
  41. package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +1 -2
  42. package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +1 -2
  43. package/dist/cjs/constants.js +8 -16
  44. package/dist/cjs/custom-theme.js +2 -3
  45. package/dist/cjs/enable-global-theme.js +1 -2
  46. package/dist/cjs/get-global-theme.js +1 -2
  47. package/dist/cjs/get-ssr-auto-script.js +1 -2
  48. package/dist/cjs/get-theme-html-attrs.js +1 -2
  49. package/dist/cjs/get-theme-styles.js +12 -10
  50. package/dist/cjs/get-token-value.js +2 -3
  51. package/dist/cjs/get-token.js +2 -3
  52. package/dist/cjs/load-custom-theme-styles.js +1 -2
  53. package/dist/cjs/palettes/legacy-palette.js +1 -2
  54. package/dist/cjs/palettes/palette.js +1 -2
  55. package/dist/cjs/palettes/shape-palette.js +1 -2
  56. package/dist/cjs/palettes/spacing-scale.js +1 -2
  57. package/dist/cjs/palettes/typography-palette.js +2 -3
  58. package/dist/cjs/palettes/updated-saturated-palette.js +320 -0
  59. package/dist/cjs/set-global-theme.js +38 -4
  60. package/dist/cjs/theme-config.js +31 -12
  61. package/dist/cjs/theme-mutation-observer.js +2 -3
  62. package/dist/cjs/theme-state-transformer.js +3 -5
  63. package/dist/cjs/tokens/atlassian-dark/color/accent.js +1 -2
  64. package/dist/cjs/tokens/atlassian-dark/color/background.js +1 -2
  65. package/dist/cjs/tokens/atlassian-dark/color/border.js +1 -2
  66. package/dist/cjs/tokens/atlassian-dark/color/chart.js +1 -2
  67. package/dist/cjs/tokens/atlassian-dark/color/icon.js +1 -2
  68. package/dist/cjs/tokens/atlassian-dark/color/interaction.js +1 -2
  69. package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +1 -2
  70. package/dist/cjs/tokens/atlassian-dark/color/text.js +1 -2
  71. package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +1 -2
  72. package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +1 -2
  73. package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +1 -2
  74. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +2 -3
  75. package/dist/cjs/tokens/atlassian-dark-new-input-border/color/border.js +1 -2
  76. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +21 -0
  77. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/background.js +26 -0
  78. package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +18 -0
  79. package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +1 -2
  80. package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +1 -2
  81. package/dist/cjs/tokens/atlassian-legacy-dark/color/border.js +1 -2
  82. package/dist/cjs/tokens/atlassian-legacy-dark/color/chart.js +1 -2
  83. package/dist/cjs/tokens/atlassian-legacy-dark/color/icon.js +1 -2
  84. package/dist/cjs/tokens/atlassian-legacy-dark/color/interaction.js +1 -2
  85. package/dist/cjs/tokens/atlassian-legacy-dark/color/skeleton.js +1 -2
  86. package/dist/cjs/tokens/atlassian-legacy-dark/color/text.js +1 -2
  87. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +1 -2
  88. package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +1 -2
  89. package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +1 -2
  90. package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +2 -3
  91. package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +1 -2
  92. package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +1 -2
  93. package/dist/cjs/tokens/atlassian-legacy-light/color/border.js +1 -2
  94. package/dist/cjs/tokens/atlassian-legacy-light/color/chart.js +1 -2
  95. package/dist/cjs/tokens/atlassian-legacy-light/color/icon.js +1 -2
  96. package/dist/cjs/tokens/atlassian-legacy-light/color/interaction.js +1 -2
  97. package/dist/cjs/tokens/atlassian-legacy-light/color/skeleton.js +1 -2
  98. package/dist/cjs/tokens/atlassian-legacy-light/color/text.js +1 -2
  99. package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +1 -2
  100. package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +1 -2
  101. package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +1 -2
  102. package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +2 -3
  103. package/dist/cjs/tokens/atlassian-light/color/accent.js +1 -2
  104. package/dist/cjs/tokens/atlassian-light/color/background.js +1 -2
  105. package/dist/cjs/tokens/atlassian-light/color/border.js +1 -2
  106. package/dist/cjs/tokens/atlassian-light/color/chart.js +1 -2
  107. package/dist/cjs/tokens/atlassian-light/color/icon.js +1 -2
  108. package/dist/cjs/tokens/atlassian-light/color/interaction.js +1 -2
  109. package/dist/cjs/tokens/atlassian-light/color/skeleton.js +1 -2
  110. package/dist/cjs/tokens/atlassian-light/color/text.js +1 -2
  111. package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +1 -2
  112. package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -2
  113. package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +1 -2
  114. package/dist/cjs/tokens/atlassian-light/utility/utility.js +2 -3
  115. package/dist/cjs/tokens/atlassian-light-new-input-border/color/border.js +1 -2
  116. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/accent.js +35 -0
  117. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/background.js +26 -0
  118. package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/icon.js +16 -0
  119. package/dist/cjs/tokens/atlassian-shape/shape.js +1 -2
  120. package/dist/cjs/tokens/atlassian-spacing/spacing.js +1 -2
  121. package/dist/cjs/tokens/atlassian-typography/font-family.js +1 -2
  122. package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +1 -2
  123. package/dist/cjs/tokens/atlassian-typography/theme.js +11 -12
  124. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +1 -2
  125. package/dist/cjs/tokens/atlassian-typography-adg3/font-size.js +1 -2
  126. package/dist/cjs/tokens/atlassian-typography-adg3/font-weight.js +1 -2
  127. package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +1 -2
  128. package/dist/cjs/tokens/atlassian-typography-adg3/line-height.js +1 -2
  129. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +12 -13
  130. package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +1 -2
  131. package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +1 -2
  132. package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +12 -13
  133. package/dist/cjs/tokens/default/color/accent.js +1 -2
  134. package/dist/cjs/tokens/default/color/background.js +1 -2
  135. package/dist/cjs/tokens/default/color/border.js +1 -2
  136. package/dist/cjs/tokens/default/color/chart.js +1 -2
  137. package/dist/cjs/tokens/default/color/icon.js +1 -2
  138. package/dist/cjs/tokens/default/color/interaction.js +1 -2
  139. package/dist/cjs/tokens/default/color/skeleton.js +1 -2
  140. package/dist/cjs/tokens/default/color/text.js +1 -2
  141. package/dist/cjs/tokens/default/elevation/shadow.js +1 -2
  142. package/dist/cjs/tokens/default/elevation/surface.js +1 -2
  143. package/dist/cjs/tokens/default/opacity/opacity.js +1 -2
  144. package/dist/cjs/tokens/default/shape/shape.js +1 -2
  145. package/dist/cjs/tokens/default/spacing/spacing.js +1 -2
  146. package/dist/cjs/tokens/default/typography/font-family.js +1 -2
  147. package/dist/cjs/tokens/default/typography/font-size.js +1 -2
  148. package/dist/cjs/tokens/default/typography/font-weight.js +1 -2
  149. package/dist/cjs/tokens/default/typography/font.js +11 -12
  150. package/dist/cjs/tokens/default/typography/letter-spacing.js +1 -2
  151. package/dist/cjs/tokens/default/typography/line-height.js +1 -2
  152. package/dist/cjs/tokens/default/utility/utility.js +2 -3
  153. package/dist/cjs/use-theme-observer.js +1 -2
  154. package/dist/cjs/utils/color-detection.js +3 -5
  155. package/dist/cjs/utils/color-mode-listeners.js +1 -2
  156. package/dist/cjs/utils/color-utils.js +1 -2
  157. package/dist/cjs/utils/custom-theme-token-contrast-check.js +3 -5
  158. package/dist/cjs/utils/generate-custom-color-ramp.js +5 -9
  159. package/dist/cjs/utils/get-theme-preferences.js +27 -6
  160. package/dist/cjs/utils/hash.js +2 -3
  161. package/dist/cjs/utils/hct-color-utils/contrast.js +2 -3
  162. package/dist/cjs/utils/hct-color-utils/hct.js +7 -7
  163. package/dist/cjs/utils/theme-loading.js +3 -6
  164. package/dist/cjs/utils/token-ids.js +4 -7
  165. package/dist/cjs/utils/token-order.js +2 -3
  166. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +3 -3
  167. package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
  168. package/dist/es2019/artifacts/theme-import-map.js +5 -1
  169. package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +399 -0
  170. package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +399 -0
  171. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +13 -13
  172. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +14 -14
  173. package/dist/es2019/artifacts/themes/atlassian-typography.js +14 -14
  174. package/dist/es2019/artifacts/token-default-values.js +13 -13
  175. package/dist/es2019/artifacts/token-names.js +11 -11
  176. package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
  177. package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
  178. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
  179. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
  180. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +34 -34
  181. package/dist/es2019/get-theme-styles.js +7 -4
  182. package/dist/es2019/get-token-value.js +1 -1
  183. package/dist/es2019/get-token.js +1 -1
  184. package/dist/es2019/palettes/typography-palette.js +1 -1
  185. package/dist/es2019/palettes/updated-saturated-palette.js +312 -0
  186. package/dist/es2019/set-global-theme.js +8 -2
  187. package/dist/es2019/theme-config.js +25 -1
  188. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
  189. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
  190. package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
  191. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
  192. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
  193. package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
  194. package/dist/es2019/tokens/atlassian-typography/theme.js +10 -10
  195. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +10 -10
  196. package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +10 -10
  197. package/dist/es2019/tokens/default/typography/font.js +10 -10
  198. package/dist/es2019/utils/get-theme-preferences.js +26 -2
  199. package/dist/es2019/utils/hct-color-utils/hct.js +3 -1
  200. package/dist/esm/artifacts/palettes-raw/typography-palette.js +3 -3
  201. package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
  202. package/dist/esm/artifacts/theme-import-map.js +9 -1
  203. package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +6 -0
  204. package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +6 -0
  205. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
  206. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
  207. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  208. package/dist/esm/artifacts/token-default-values.js +13 -13
  209. package/dist/esm/artifacts/token-names.js +11 -11
  210. package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
  211. package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
  212. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
  213. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
  214. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +34 -34
  215. package/dist/esm/custom-theme.js +1 -1
  216. package/dist/esm/get-theme-styles.js +12 -9
  217. package/dist/esm/get-token-value.js +1 -1
  218. package/dist/esm/get-token.js +1 -1
  219. package/dist/esm/palettes/typography-palette.js +1 -1
  220. package/dist/esm/palettes/updated-saturated-palette.js +313 -0
  221. package/dist/esm/set-global-theme.js +38 -3
  222. package/dist/esm/theme-config.js +25 -1
  223. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
  224. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
  225. package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
  226. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
  227. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
  228. package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
  229. package/dist/esm/tokens/atlassian-typography/theme.js +10 -10
  230. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +10 -10
  231. package/dist/esm/tokens/atlassian-typography-minor3/theme.js +10 -10
  232. package/dist/esm/tokens/default/typography/font.js +10 -10
  233. package/dist/esm/utils/get-theme-preferences.js +24 -2
  234. package/dist/esm/utils/hct-color-utils/hct.js +3 -1
  235. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  236. package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
  237. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  238. package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
  239. package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
  240. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  241. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  242. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  243. package/dist/types/artifacts/token-default-values.d.ts +13 -13
  244. package/dist/types/artifacts/token-names.d.ts +21 -21
  245. package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
  246. package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
  247. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
  248. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
  249. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  250. package/dist/types/palettes/palette.d.ts +1 -1
  251. package/dist/types/palettes/updated-saturated-palette.d.ts +10 -0
  252. package/dist/types/theme-config.d.ts +8 -4
  253. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  254. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
  255. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
  256. package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
  257. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
  258. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
  259. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
  260. package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
  261. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
  262. package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
  263. package/dist/types/tokens/default/utility/utility.d.ts +1 -1
  264. package/dist/types/types.d.ts +11 -11
  265. package/dist/types/utils/get-theme-preferences.d.ts +1 -0
  266. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  267. package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
  268. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  269. package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
  270. package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
  271. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
  272. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
  273. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  274. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +13 -13
  275. package/dist/types-ts4.5/artifacts/token-names.d.ts +21 -21
  276. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
  277. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
  278. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
  279. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
  280. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  281. package/dist/types-ts4.5/palettes/palette.d.ts +1 -1
  282. package/dist/types-ts4.5/palettes/updated-saturated-palette.d.ts +10 -0
  283. package/dist/types-ts4.5/theme-config.d.ts +12 -4
  284. package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
  285. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
  286. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
  287. package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
  288. package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
  289. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
  290. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
  291. package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
  292. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
  293. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
  294. package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
  295. package/dist/types-ts4.5/types.d.ts +11 -11
  296. package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +1 -0
  297. package/figma/atlassian-dark-saturated-palette-changes.json +3540 -0
  298. package/figma/atlassian-light-saturated-palette-changes.json +3519 -0
  299. package/figma/atlassian-typography-adg3.json +2 -2
  300. package/figma/atlassian-typography-minor3.json +3 -3
  301. package/figma/atlassian-typography.json +3 -3
  302. package/package.json +5 -1
  303. package/report.api.md +32 -22
  304. package/tmp/api-report-tmp.d.ts +26 -24
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var typography = {
8
8
  font: {
9
9
  heading: {
10
- xxl: {
10
+ xxlarge: {
11
11
  value: {
12
12
  fontWeight: 'FontWeight700',
13
13
  fontSize: 'FontSize36',
@@ -17,7 +17,7 @@ var typography = {
17
17
  letterSpacing: 'LetterSpacing0'
18
18
  }
19
19
  },
20
- xl: {
20
+ xlarge: {
21
21
  value: {
22
22
  fontWeight: 'FontWeight700',
23
23
  fontSize: 'FontSize28',
@@ -27,7 +27,7 @@ var typography = {
27
27
  letterSpacing: 'LetterSpacing0'
28
28
  }
29
29
  },
30
- lg: {
30
+ large: {
31
31
  value: {
32
32
  fontWeight: 'FontWeight700',
33
33
  fontSize: 'FontSize24',
@@ -37,7 +37,7 @@ var typography = {
37
37
  letterSpacing: 'LetterSpacing0'
38
38
  }
39
39
  },
40
- md: {
40
+ medium: {
41
41
  value: {
42
42
  fontWeight: 'FontWeight700',
43
43
  fontSize: 'FontSize20',
@@ -47,7 +47,7 @@ var typography = {
47
47
  letterSpacing: 'LetterSpacing0'
48
48
  }
49
49
  },
50
- sm: {
50
+ small: {
51
51
  value: {
52
52
  fontWeight: 'FontWeight700',
53
53
  fontSize: 'FontSize16',
@@ -57,7 +57,7 @@ var typography = {
57
57
  letterSpacing: 'LetterSpacing0'
58
58
  }
59
59
  },
60
- xs: {
60
+ xsmall: {
61
61
  value: {
62
62
  fontWeight: 'FontWeight700',
63
63
  fontSize: 'FontSize14',
@@ -67,7 +67,7 @@ var typography = {
67
67
  letterSpacing: 'LetterSpacing0'
68
68
  }
69
69
  },
70
- xxs: {
70
+ xxsmall: {
71
71
  value: {
72
72
  fontWeight: 'FontWeight700',
73
73
  fontSize: 'FontSize12',
@@ -101,7 +101,7 @@ var typography = {
101
101
  letterSpacing: 'LetterSpacing0'
102
102
  }
103
103
  },
104
- sm: {
104
+ small: {
105
105
  value: {
106
106
  fontWeight: 'FontWeight400',
107
107
  fontSize: 'FontSize12',
@@ -111,7 +111,7 @@ var typography = {
111
111
  letterSpacing: 'LetterSpacing0'
112
112
  }
113
113
  },
114
- lg: {
114
+ large: {
115
115
  value: {
116
116
  fontWeight: 'FontWeight400',
117
117
  fontSize: 'FontSize16',
@@ -133,7 +133,7 @@ var typography = {
133
133
  letterSpacing: 'LetterSpacing0'
134
134
  }
135
135
  },
136
- sm: {
136
+ small: {
137
137
  value: {
138
138
  fontWeight: 'FontWeight400',
139
139
  fontSize: 'FontSize12',
@@ -146,5 +146,4 @@ var typography = {
146
146
  }
147
147
  }
148
148
  };
149
- var _default = typography;
150
- exports.default = _default;
149
+ var _default = exports.default = typography;
@@ -28,5 +28,4 @@ var font = {
28
28
  }
29
29
  }
30
30
  };
31
- var _default = font;
32
- exports.default = _default;
31
+ var _default = exports.default = font;
@@ -34,5 +34,4 @@ var font = {
34
34
  }
35
35
  }
36
36
  };
37
- var _default = font;
38
- exports.default = _default;
37
+ var _default = exports.default = font;
@@ -22,5 +22,4 @@ var font = {
22
22
  }
23
23
  }
24
24
  };
25
- var _default = font;
26
- exports.default = _default;
25
+ var _default = exports.default = font;
@@ -25,5 +25,4 @@ var font = {
25
25
  }
26
26
  }
27
27
  };
28
- var _default = font;
29
- exports.default = _default;
28
+ var _default = exports.default = font;
@@ -31,5 +31,4 @@ var font = {
31
31
  }
32
32
  }
33
33
  };
34
- var _default = font;
35
- exports.default = _default;
34
+ var _default = exports.default = font;
@@ -15,7 +15,7 @@ var utility = {
15
15
  var typography = {
16
16
  font: {
17
17
  heading: {
18
- xxl: {
18
+ xxlarge: {
19
19
  value: {
20
20
  fontWeight: 'FontWeight500',
21
21
  fontSize: 'LegacyFontSize35',
@@ -25,7 +25,7 @@ var typography = {
25
25
  letterSpacing: 'LetterSpacing400'
26
26
  }
27
27
  },
28
- xl: {
28
+ xlarge: {
29
29
  value: {
30
30
  fontWeight: 'FontWeight600',
31
31
  fontSize: 'LegacyFontSize29',
@@ -35,7 +35,7 @@ var typography = {
35
35
  letterSpacing: 'LetterSpacing400'
36
36
  }
37
37
  },
38
- lg: {
38
+ large: {
39
39
  value: {
40
40
  fontWeight: 'FontWeight500',
41
41
  fontSize: 'FontSize24',
@@ -45,7 +45,7 @@ var typography = {
45
45
  letterSpacing: 'LetterSpacing400'
46
46
  }
47
47
  },
48
- md: {
48
+ medium: {
49
49
  value: {
50
50
  fontWeight: 'FontWeight500',
51
51
  fontSize: 'FontSize20',
@@ -55,7 +55,7 @@ var typography = {
55
55
  letterSpacing: 'LetterSpacing300'
56
56
  }
57
57
  },
58
- sm: {
58
+ small: {
59
59
  value: {
60
60
  fontWeight: 'FontWeight600',
61
61
  fontSize: 'FontSize16',
@@ -65,7 +65,7 @@ var typography = {
65
65
  letterSpacing: 'LetterSpacing200'
66
66
  }
67
67
  },
68
- xs: {
68
+ xsmall: {
69
69
  value: {
70
70
  fontWeight: 'FontWeight600',
71
71
  fontSize: 'FontSize14',
@@ -75,7 +75,7 @@ var typography = {
75
75
  letterSpacing: 'LetterSpacing100'
76
76
  }
77
77
  },
78
- xxs: {
78
+ xxsmall: {
79
79
  value: {
80
80
  fontWeight: 'FontWeight600',
81
81
  fontSize: 'FontSize12',
@@ -109,7 +109,7 @@ var typography = {
109
109
  letterSpacing: 'LetterSpacing0'
110
110
  }
111
111
  },
112
- lg: {
112
+ large: {
113
113
  value: {
114
114
  fontWeight: 'FontWeight400',
115
115
  fontSize: 'FontSize16',
@@ -119,7 +119,7 @@ var typography = {
119
119
  letterSpacing: 'LetterSpacing0'
120
120
  }
121
121
  },
122
- sm: {
122
+ small: {
123
123
  value: {
124
124
  fontWeight: 'FontWeight400',
125
125
  fontSize: 'LegacyFontSize11',
@@ -141,7 +141,7 @@ var typography = {
141
141
  letterSpacing: 'LetterSpacing0'
142
142
  }
143
143
  },
144
- sm: {
144
+ small: {
145
145
  value: {
146
146
  fontWeight: 'FontWeight400',
147
147
  fontSize: 'LegacyFontSize11',
@@ -154,8 +154,7 @@ var typography = {
154
154
  }
155
155
  }
156
156
  };
157
- var _default = {
157
+ var _default = exports.default = {
158
158
  font: typography.font,
159
159
  utility: utility
160
- };
161
- exports.default = _default;
160
+ };
@@ -28,5 +28,4 @@ var font = {
28
28
  }
29
29
  }
30
30
  };
31
- var _default = font;
32
- exports.default = _default;
31
+ var _default = exports.default = font;
@@ -25,5 +25,4 @@ var font = {
25
25
  }
26
26
  }
27
27
  };
28
- var _default = font;
29
- exports.default = _default;
28
+ var _default = exports.default = font;
@@ -15,7 +15,7 @@ var utility = {
15
15
  var typography = {
16
16
  font: {
17
17
  heading: {
18
- xxl: {
18
+ xxlarge: {
19
19
  value: {
20
20
  fontWeight: 'FontWeight700',
21
21
  fontSize: 'FontSize32',
@@ -25,7 +25,7 @@ var typography = {
25
25
  letterSpacing: 'LetterSpacing0'
26
26
  }
27
27
  },
28
- xl: {
28
+ xlarge: {
29
29
  value: {
30
30
  fontWeight: 'FontWeight700',
31
31
  fontSize: 'FontSize28',
@@ -35,7 +35,7 @@ var typography = {
35
35
  letterSpacing: 'LetterSpacing0'
36
36
  }
37
37
  },
38
- lg: {
38
+ large: {
39
39
  value: {
40
40
  fontWeight: 'FontWeight700',
41
41
  fontSize: 'FontSize24',
@@ -45,7 +45,7 @@ var typography = {
45
45
  letterSpacing: 'LetterSpacing0'
46
46
  }
47
47
  },
48
- md: {
48
+ medium: {
49
49
  value: {
50
50
  fontWeight: 'FontWeight700',
51
51
  fontSize: 'FontSize20',
@@ -55,7 +55,7 @@ var typography = {
55
55
  letterSpacing: 'LetterSpacing0'
56
56
  }
57
57
  },
58
- sm: {
58
+ small: {
59
59
  value: {
60
60
  fontWeight: 'FontWeight700',
61
61
  fontSize: 'FontSize16',
@@ -65,7 +65,7 @@ var typography = {
65
65
  letterSpacing: 'LetterSpacing0'
66
66
  }
67
67
  },
68
- xs: {
68
+ xsmall: {
69
69
  value: {
70
70
  fontWeight: 'FontWeight700',
71
71
  fontSize: 'FontSize14',
@@ -75,7 +75,7 @@ var typography = {
75
75
  letterSpacing: 'LetterSpacing0'
76
76
  }
77
77
  },
78
- xxs: {
78
+ xxsmall: {
79
79
  value: {
80
80
  fontWeight: 'FontWeight700',
81
81
  fontSize: 'FontSize12',
@@ -109,7 +109,7 @@ var typography = {
109
109
  letterSpacing: 'LetterSpacing0'
110
110
  }
111
111
  },
112
- lg: {
112
+ large: {
113
113
  value: {
114
114
  fontWeight: 'FontWeight400',
115
115
  fontSize: 'FontSize16',
@@ -119,7 +119,7 @@ var typography = {
119
119
  letterSpacing: 'LetterSpacing0'
120
120
  }
121
121
  },
122
- sm: {
122
+ small: {
123
123
  value: {
124
124
  fontWeight: 'FontWeight400',
125
125
  fontSize: 'FontSize12',
@@ -141,7 +141,7 @@ var typography = {
141
141
  letterSpacing: 'LetterSpacing0'
142
142
  }
143
143
  },
144
- sm: {
144
+ small: {
145
145
  value: {
146
146
  fontWeight: 'FontWeight400',
147
147
  fontSize: 'FontSize12',
@@ -154,8 +154,7 @@ var typography = {
154
154
  }
155
155
  }
156
156
  };
157
- var _default = {
157
+ var _default = exports.default = {
158
158
  font: typography.font,
159
159
  utility: utility
160
- };
161
- exports.default = _default;
160
+ };
@@ -1424,5 +1424,4 @@ var color = {
1424
1424
  }
1425
1425
  }
1426
1426
  };
1427
- var _default = color;
1428
- exports.default = _default;
1427
+ var _default = exports.default = color;
@@ -582,5 +582,4 @@ var color = {
582
582
  }
583
583
  }
584
584
  };
585
- var _default = color;
586
- exports.default = _default;
585
+ var _default = exports.default = color;
@@ -114,5 +114,4 @@ var color = {
114
114
  }
115
115
  }
116
116
  };
117
- var _default = color;
118
- exports.default = _default;
117
+ var _default = exports.default = color;
@@ -942,5 +942,4 @@ var color = {
942
942
  }
943
943
  }
944
944
  };
945
- var _default = color;
946
- exports.default = _default;
945
+ var _default = exports.default = color;
@@ -108,5 +108,4 @@ var color = {
108
108
  }
109
109
  }
110
110
  };
111
- var _default = color;
112
- exports.default = _default;
111
+ var _default = exports.default = color;
@@ -26,5 +26,4 @@ var color = {
26
26
  }
27
27
  }
28
28
  };
29
- var _default = color;
30
- exports.default = _default;
29
+ var _default = exports.default = color;
@@ -26,5 +26,4 @@ var color = {
26
26
  }
27
27
  }
28
28
  };
29
- var _default = color;
30
- exports.default = _default;
29
+ var _default = exports.default = color;
@@ -142,5 +142,4 @@ var color = {
142
142
  }
143
143
  }
144
144
  };
145
- var _default = color;
146
- exports.default = _default;
145
+ var _default = exports.default = color;
@@ -52,5 +52,4 @@ var shadow = {
52
52
  }
53
53
  }
54
54
  };
55
- var _default = shadow;
56
- exports.default = _default;
55
+ var _default = exports.default = shadow;
@@ -96,5 +96,4 @@ var surface = {
96
96
  }
97
97
  }
98
98
  };
99
- var _default = surface;
100
- exports.default = _default;
99
+ var _default = exports.default = surface;
@@ -24,5 +24,4 @@ var opacity = {
24
24
  }
25
25
  }
26
26
  };
27
- var _default = opacity;
28
- exports.default = _default;
27
+ var _default = exports.default = opacity;
@@ -103,5 +103,4 @@ var shape = {
103
103
  }
104
104
  }
105
105
  };
106
- var _default = shape;
107
- exports.default = _default;
106
+ var _default = exports.default = shape;
@@ -217,5 +217,4 @@ var spacing = {
217
217
  }
218
218
  }
219
219
  };
220
- var _default = spacing;
221
- exports.default = _default;
220
+ var _default = exports.default = spacing;
@@ -58,5 +58,4 @@ var font = {
58
58
  }
59
59
  }
60
60
  };
61
- var _default = font;
62
- exports.default = _default;
61
+ var _default = exports.default = font;
@@ -74,5 +74,4 @@ var font = {
74
74
  }
75
75
  }
76
76
  };
77
- var _default = font;
78
- exports.default = _default;
77
+ var _default = exports.default = font;
@@ -42,5 +42,4 @@ var font = {
42
42
  }
43
43
  }
44
44
  };
45
- var _default = font;
46
- exports.default = _default;
45
+ var _default = exports.default = font;
@@ -34,7 +34,7 @@ var font = {
34
34
  }
35
35
  },
36
36
  heading: {
37
- xxl: {
37
+ xxlarge: {
38
38
  attributes: {
39
39
  group: 'typography',
40
40
  state: 'experimental',
@@ -42,7 +42,7 @@ var font = {
42
42
  description: 'TBD'
43
43
  }
44
44
  },
45
- xl: {
45
+ xlarge: {
46
46
  attributes: {
47
47
  group: 'typography',
48
48
  state: 'experimental',
@@ -50,7 +50,7 @@ var font = {
50
50
  description: 'TBD'
51
51
  }
52
52
  },
53
- lg: {
53
+ large: {
54
54
  attributes: {
55
55
  group: 'typography',
56
56
  state: 'experimental',
@@ -58,7 +58,7 @@ var font = {
58
58
  description: 'TBD'
59
59
  }
60
60
  },
61
- md: {
61
+ medium: {
62
62
  attributes: {
63
63
  group: 'typography',
64
64
  state: 'experimental',
@@ -66,7 +66,7 @@ var font = {
66
66
  description: 'TBD'
67
67
  }
68
68
  },
69
- sm: {
69
+ small: {
70
70
  attributes: {
71
71
  group: 'typography',
72
72
  state: 'experimental',
@@ -74,7 +74,7 @@ var font = {
74
74
  description: 'TBD'
75
75
  }
76
76
  },
77
- xs: {
77
+ xsmall: {
78
78
  attributes: {
79
79
  group: 'typography',
80
80
  state: 'experimental',
@@ -82,7 +82,7 @@ var font = {
82
82
  description: 'TBD'
83
83
  }
84
84
  },
85
- xxs: {
85
+ xxsmall: {
86
86
  attributes: {
87
87
  group: 'typography',
88
88
  state: 'experimental',
@@ -92,7 +92,7 @@ var font = {
92
92
  }
93
93
  },
94
94
  ui: {
95
- sm: {
95
+ small: {
96
96
  attributes: {
97
97
  group: 'typography',
98
98
  state: 'experimental',
@@ -110,7 +110,7 @@ var font = {
110
110
  }
111
111
  },
112
112
  body: {
113
- lg: {
113
+ large: {
114
114
  attributes: {
115
115
  group: 'typography',
116
116
  state: 'experimental',
@@ -118,7 +118,7 @@ var font = {
118
118
  description: 'Larger body font or default body font for text rich experiences.'
119
119
  }
120
120
  },
121
- sm: {
121
+ small: {
122
122
  attributes: {
123
123
  group: 'typography',
124
124
  state: 'experimental',
@@ -137,5 +137,4 @@ var font = {
137
137
  }
138
138
  }
139
139
  };
140
- var _default = font;
141
- exports.default = _default;
140
+ var _default = exports.default = font;
@@ -50,5 +50,4 @@ var font = {
50
50
  }
51
51
  }
52
52
  };
53
- var _default = font;
54
- exports.default = _default;
53
+ var _default = exports.default = font;
@@ -66,5 +66,4 @@ var font = {
66
66
  }
67
67
  }
68
68
  };
69
- var _default = font;
70
- exports.default = _default;
69
+ var _default = exports.default = font;
@@ -36,7 +36,6 @@ var utility = {
36
36
  }
37
37
  }
38
38
  };
39
- var _default = {
39
+ var _default = exports.default = {
40
40
  utility: utility
41
- };
42
- exports.default = _default;
41
+ };
@@ -38,5 +38,4 @@ var useThemeObserver = function useThemeObserver() {
38
38
  }, []);
39
39
  return theme;
40
40
  };
41
- var _default = useThemeObserver;
42
- exports.default = _default;
41
+ var _default = exports.default = useThemeObserver;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.hexToRGBAValues = exports.getBoxShadow = void 0;
7
- var hexToRGBAValues = function hexToRGBAValues(hex) {
7
+ var hexToRGBAValues = exports.hexToRGBAValues = function hexToRGBAValues(hex) {
8
8
  var hexColor = hex.replace('#', '');
9
9
  return {
10
10
  r: parseInt(hexColor.slice(0, 2), 16),
@@ -19,8 +19,7 @@ var hexToRGBAValues = function hexToRGBAValues(hex) {
19
19
  *
20
20
  * @param rawShadow - ShadowToken raw value
21
21
  */
22
- exports.hexToRGBAValues = hexToRGBAValues;
23
- var getBoxShadow = function getBoxShadow(rawShadow) {
22
+ var getBoxShadow = exports.getBoxShadow = function getBoxShadow(rawShadow) {
24
23
  return rawShadow.map(function (_ref) {
25
24
  var radius = _ref.radius,
26
25
  offset = _ref.offset,
@@ -32,5 +31,4 @@ var getBoxShadow = function getBoxShadow(rawShadow) {
32
31
  b = _hexToRGBAValues.b;
33
32
  return "".concat(offset.x, "px ").concat(offset.y, "px ").concat(radius, "px rgba(").concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
34
33
  }).join(',');
35
- };
36
- exports.getBoxShadow = getBoxShadow;
34
+ };
@@ -62,5 +62,4 @@ var ColorModeObserver = /*#__PURE__*/function () {
62
62
  * that can be unbound by any consumer when no longer needed.
63
63
  */
64
64
  var SingletonColorModeObserver = new ColorModeObserver();
65
- var _default = SingletonColorModeObserver;
66
- exports.default = _default;
65
+ var _default = exports.default = SingletonColorModeObserver;
@@ -14,12 +14,11 @@ exports.isValidBrandHex = void 0;
14
14
  exports.relativeLuminanceW3C = relativeLuminanceW3C;
15
15
  exports.rgbToHex = rgbToHex;
16
16
  // valid hex color with 6 digits
17
- var isValidBrandHex = function isValidBrandHex(hex) {
17
+ var isValidBrandHex = exports.isValidBrandHex = function isValidBrandHex(hex) {
18
18
  return /^#[0-9A-F]{6}$/i.test(hex);
19
19
  };
20
20
 
21
21
  // valid hex color with 4, 6 or 8 digits
22
- exports.isValidBrandHex = isValidBrandHex;
23
22
  var isValidHex = function isValidHex(hex) {
24
23
  return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
25
24
  };