@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
@@ -8,7 +8,7 @@ exports.additionalContrastChecker = exports.additionalChecks = void 0;
8
8
  var _atlassianDarkTokenValueForContrastCheck = _interopRequireDefault(require("../artifacts/atlassian-dark-token-value-for-contrast-check"));
9
9
  var _atlassianLightTokenValueForContrastCheck = _interopRequireDefault(require("../artifacts/atlassian-light-token-value-for-contrast-check"));
10
10
  var _colorUtils = require("./color-utils");
11
- var additionalChecks = [{
11
+ var additionalChecks = exports.additionalChecks = [{
12
12
  foreground: 'color.text.brand',
13
13
  backgroundLight: 'elevation.surface.sunken',
14
14
  backgroundDark: 'elevation.surface.overlay',
@@ -50,11 +50,10 @@ var additionalChecks = [{
50
50
  // In dark mode: lighten the following tokens by one base token
51
51
  updatedTokens: ['color.chart.brand', 'color.chart.brand.hovered']
52
52
  }];
53
- exports.additionalChecks = additionalChecks;
54
53
  var getColorFromTokenRaw = function getColorFromTokenRaw(tokenName, mode) {
55
54
  return mode === 'light' ? _atlassianLightTokenValueForContrastCheck.default[tokenName] : _atlassianDarkTokenValueForContrastCheck.default[tokenName];
56
55
  };
57
- var additionalContrastChecker = function additionalContrastChecker(_ref) {
56
+ var additionalContrastChecker = exports.additionalContrastChecker = function additionalContrastChecker(_ref) {
58
57
  var customThemeTokenMap = _ref.customThemeTokenMap,
59
58
  mode = _ref.mode,
60
59
  themeRamp = _ref.themeRamp;
@@ -82,5 +81,4 @@ var additionalContrastChecker = function additionalContrastChecker(_ref) {
82
81
  }
83
82
  });
84
83
  return updatedCustomThemeTokenMap;
85
- };
86
- exports.additionalContrastChecker = additionalContrastChecker;
84
+ };
@@ -16,7 +16,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
16
16
  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; }
17
17
  var lowLuminanceContrastRatios = [1.12, 1.33, 2.03, 2.73, 3.33, 4.27, 5.2, 6.62, 12.46, 14.25];
18
18
  var highLuminanceContrastRatios = [1.08, 1.24, 1.55, 1.99, 2.45, 3.34, 4.64, 6.1, 10.19, 12.6];
19
- var getClosestColorIndex = function getClosestColorIndex(themeRamp, brandColor) {
19
+ var getClosestColorIndex = exports.getClosestColorIndex = function getClosestColorIndex(themeRamp, brandColor) {
20
20
  // Iterate over themeRamp and find whichever color is closest to brandColor
21
21
  var closestColorIndex = 0;
22
22
  var closestColorDistance = null;
@@ -29,8 +29,7 @@ var getClosestColorIndex = function getClosestColorIndex(themeRamp, brandColor)
29
29
  });
30
30
  return closestColorIndex;
31
31
  };
32
- exports.getClosestColorIndex = getClosestColorIndex;
33
- var generateColors = function generateColors(brandColor) {
32
+ var generateColors = exports.generateColors = function generateColors(brandColor) {
34
33
  // Determine luminance
35
34
  var HSLBrandColorHue = (0, _colorUtils.hexToHSL)(brandColor)[0];
36
35
  var baseRgb = (0, _colorUtils.HSLToRGB)(HSLBrandColorHue, 100, 60);
@@ -69,7 +68,6 @@ var generateColors = function generateColors(brandColor) {
69
68
  *
70
69
  * Returns an array of the resulting colors
71
70
  */
72
- exports.generateColors = generateColors;
73
71
  function getInteractionStates(rampPosition, number, colors) {
74
72
  var result = [];
75
73
  for (var i = 1; i <= number; i++) {
@@ -81,7 +79,7 @@ function getInteractionStates(rampPosition, number, colors) {
81
79
  }
82
80
  return result;
83
81
  }
84
- var generateTokenMap = function generateTokenMap(brandColor, mode, themeRamp) {
82
+ var generateTokenMap = exports.generateTokenMap = function generateTokenMap(brandColor, mode, themeRamp) {
85
83
  var _generateColors = generateColors(brandColor),
86
84
  ramp = _generateColors.ramp,
87
85
  replacedColor = _generateColors.replacedColor;
@@ -220,8 +218,7 @@ var generateTokenMap = function generateTokenMap(brandColor, mode, themeRamp) {
220
218
  dark: customThemeTokenMapDark
221
219
  };
222
220
  };
223
- exports.generateTokenMap = generateTokenMap;
224
- var generateTokenMapWithContrastCheck = function generateTokenMapWithContrastCheck(brandColor, mode, themeRamp) {
221
+ var generateTokenMapWithContrastCheck = exports.generateTokenMapWithContrastCheck = function generateTokenMapWithContrastCheck(brandColor, mode, themeRamp) {
225
222
  var colors = themeRamp || generateColors(brandColor).ramp;
226
223
  var tokenMaps = generateTokenMap(brandColor, mode, colors);
227
224
  var result = {};
@@ -238,5 +235,4 @@ var generateTokenMapWithContrastCheck = function generateTokenMapWithContrastChe
238
235
  }
239
236
  });
240
237
  return result;
241
- };
242
- exports.generateTokenMapWithContrastCheck = generateTokenMapWithContrastCheck;
238
+ };
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getThemePreferences = void 0;
7
+ exports.getThemePreferences = exports.getThemeOverridePreferences = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
- var getThemePreferences = function getThemePreferences(themeState) {
10
+ var getThemePreferences = exports.getThemePreferences = function getThemePreferences(themeState) {
11
11
  var colorMode = themeState.colorMode,
12
12
  dark = themeState.dark,
13
13
  light = themeState.light,
@@ -15,14 +15,35 @@ var getThemePreferences = function getThemePreferences(themeState) {
15
15
  spacing = themeState.spacing,
16
16
  typography = themeState.typography;
17
17
  var themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
18
+
19
+ // Replace light/dark theme with new palette if feature flag is on
20
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.saturated-palette-changes_asoro')) {
21
+ // Iterate over themePreferences and swap out light/dark with new palette
22
+ themePreferences.forEach(function (themeId, index) {
23
+ if (themeId === 'light') {
24
+ themePreferences[index] = 'light-saturated-palette-changes';
25
+ }
26
+ if (themeId === 'dark') {
27
+ themePreferences[index] = 'dark-saturated-palette-changes';
28
+ }
29
+ });
30
+ }
18
31
  [shape, spacing, typography].forEach(function (themeId) {
19
32
  if (themeId) {
20
33
  themePreferences.push(themeId);
21
34
  }
22
35
  });
23
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu')) {
24
- themePreferences.push("".concat(themePreferences.includes('dark') ? 'dark' : 'light', "-new-input-border"));
25
- }
26
36
  return (0, _toConsumableArray2.default)(new Set(themePreferences));
27
37
  };
28
- exports.getThemePreferences = getThemePreferences;
38
+ var getThemeOverridePreferences = exports.getThemeOverridePreferences = function getThemeOverridePreferences(themeState) {
39
+ var colorMode = themeState.colorMode,
40
+ dark = themeState.dark,
41
+ light = themeState.light;
42
+ var themeOverridePreferences = [];
43
+ var themePreferences = colorMode === 'auto' ? [light, dark] : [themeState[colorMode]];
44
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu')) {
45
+ themePreferences.includes('light') && themeOverridePreferences.push('light-new-input-border');
46
+ themePreferences.includes('dark') && themeOverridePreferences.push('dark-new-input-border');
47
+ }
48
+ return (0, _toConsumableArray2.default)(new Set(themeOverridePreferences));
49
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.hash = void 0;
7
- var hash = function hash(str) {
7
+ var hash = exports.hash = function hash(str) {
8
8
  var hash = 0;
9
9
  for (var i = 0; i < str.length; i++) {
10
10
  var char = str.charCodeAt(i);
@@ -13,5 +13,4 @@ var hash = function hash(str) {
13
13
  }
14
14
 
15
15
  return new Uint32Array([hash])[0].toString(36);
16
- };
17
- exports.hash = hash;
16
+ };
@@ -49,7 +49,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
49
49
  * Tone is equivalent to L* in the L*a*b* color space, or L in the LCH color
50
50
  * space.
51
51
  */
52
- var Contrast = /*#__PURE__*/function () {
52
+ var Contrast = exports.Contrast = /*#__PURE__*/function () {
53
53
  function Contrast() {
54
54
  (0, _classCallCheck2.default)(this, Contrast);
55
55
  }
@@ -184,5 +184,4 @@ var Contrast = /*#__PURE__*/function () {
184
184
  }
185
185
  }]);
186
186
  return Contrast;
187
- }();
188
- exports.Contrast = Contrast;
187
+ }();
@@ -11,8 +11,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
11
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
12
  var utils = _interopRequireWildcard(require("./color-utils"));
13
13
  var math = _interopRequireWildcard(require("./math-utils"));
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ var _class2;
16
15
  /**
17
16
  * Below lines are copied from @material/material-color-utilities.
18
17
  * Do not modify it.
@@ -33,6 +32,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
32
  * See the License for the specific language governing permissions and
34
33
  * limitations under the License.
35
34
  */
35
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
36
37
  /**
37
38
  * A color system built using CAM16 hue and chroma, and L* from
38
39
  * L*a*b*.
@@ -53,7 +54,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
53
54
  * accurate color measurement system that can also accurately render what colors
54
55
  * will appear as in different lighting environments.
55
56
  */
56
- var Hct = /*#__PURE__*/function () {
57
+ var Hct = exports.Hct = /*#__PURE__*/function () {
57
58
  function Hct(argb) {
58
59
  (0, _classCallCheck2.default)(this, Hct);
59
60
  this.argb = argb;
@@ -204,7 +205,6 @@ var Hct = /*#__PURE__*/function () {
204
205
  * point is accurately measured as a slightly chromatic blue by CAM16. (roughly,
205
206
  * hue 203, chroma 3, lightness 100)
206
207
  */
207
- exports.Hct = Hct;
208
208
  var Cam16 = /*#__PURE__*/function () {
209
209
  /**
210
210
  * All of the CAM16 dimensions can be calculated from 3 of the dimensions, in
@@ -951,7 +951,7 @@ var HctSolver = /*#__PURE__*/function () {
951
951
  (0, _defineProperty2.default)(HctSolver, "LINRGB_FROM_SCALED_DISCOUNT", [[1373.2198709594231, -1100.4251190754821, -7.278681089101213], [-271.815969077903, 559.6580465940733, -32.46047482791194], [1.9622899599665666, -57.173814538844006, 308.7233197812385]]);
952
952
  (0, _defineProperty2.default)(HctSolver, "Y_FROM_LINRGB", [0.2126, 0.7152, 0.0722]);
953
953
  (0, _defineProperty2.default)(HctSolver, "CRITICAL_PLANES", [0.015176349177441876, 0.045529047532325624, 0.07588174588720938, 0.10623444424209313, 0.13658714259697685, 0.16693984095186062, 0.19729253930674434, 0.2276452376616281, 0.2579979360165119, 0.28835063437139563, 0.3188300904430532, 0.350925934958123, 0.3848314933096426, 0.42057480301049466, 0.458183274052838, 0.4976837250274023, 0.5391024159806381, 0.5824650784040898, 0.6277969426914107, 0.6751227633498623, 0.7244668422128921, 0.775853049866786, 0.829304845476233, 0.8848452951698498, 0.942497089126609, 1.0022825574869039, 1.0642236851973577, 1.1283421258858297, 1.1946592148522128, 1.2631959812511864, 1.3339731595349034, 1.407011200216447, 1.4823302800086415, 1.5599503113873272, 1.6398909516233677, 1.7221716113234105, 1.8068114625156377, 1.8938294463134073, 1.9832442801866852, 2.075074464868551, 2.1693382909216234, 2.2660538449872063, 2.36523901573795, 2.4669114995532007, 2.5710888059345764, 2.6777882626779785, 2.7870270208169257, 2.898822059350997, 3.0131901897720907, 3.1301480604002863, 3.2497121605402226, 3.3718988244681087, 3.4967242352587946, 3.624204428461639, 3.754355295633311, 3.887192587735158, 4.022731918402185, 4.160988767090289, 4.301978482107941, 4.445716283538092, 4.592217266055746, 4.741496401646282, 4.893568542229298, 5.048448422192488, 5.20615066083972, 5.3666897647573375, 5.5300801301023865, 5.696336044816294, 5.865471690767354, 6.037501145825082, 6.212438385869475, 6.390297286737924, 6.571091626112461, 6.7548350853498045, 6.941541251256611, 7.131223617812143, 7.323895587840543, 7.5195704746346665, 7.7182615035334345, 7.919981813454504, 8.124744458384042, 8.332562408825165, 8.543448553206703, 8.757415699253682, 8.974476575321063, 9.194643831691977, 9.417930041841839, 9.644347703669503, 9.873909240696694, 10.106627003236781, 10.342513269534024, 10.58158024687427, 10.8238400726681, 11.069304815507364, 11.317986476196008, 11.569896988756009, 11.825048221409341, 12.083451977536606, 12.345119996613247, 12.610063955123938, 12.878295467455942, 13.149826086772048, 13.42466730586372, 13.702830557985108, 13.984327217668513, 14.269168601521828, 14.55736596900856, 14.848930523210871, 15.143873411576273, 15.44220572664832, 15.743938506781891, 16.04908273684337, 16.35764934889634, 16.66964922287304, 16.985093187232053, 17.30399201960269, 17.62635644741625, 17.95219714852476, 18.281524751807332, 18.614349837764564, 18.95068293910138, 19.290534541298456, 19.633915083172692, 19.98083495742689, 20.331304511189067, 20.685334046541502, 21.042933821039977, 21.404114048223256, 21.76888489811322, 22.137256497705877, 22.50923893145328, 22.884842241736916, 23.264076429332462, 23.6469514538663, 24.033477234264016, 24.42366364919083, 24.817520537484558, 25.21505769858089, 25.61628489293138, 26.021211842414342, 26.429848230738664, 26.842203703840827, 27.258287870275353, 27.678110301598522, 28.10168053274597, 28.529008062403893, 28.96010235337422, 29.39497283293396, 29.83362889318845, 30.276079891419332, 30.722335150426627, 31.172403958865512, 31.62629557157785, 32.08401920991837, 32.54558406207592, 33.010999283389665, 33.4802739966603, 33.953417292456834, 34.430438229418264, 34.911345834551085, 35.39614910352207, 35.88485700094671, 36.37747846067349, 36.87402238606382, 37.37449765026789, 37.87891309649659, 38.38727753828926, 38.89959975977785, 39.41588851594697, 39.93615253289054, 40.460400508064545, 40.98864111053629, 41.520882981230194, 42.05713473317016, 42.597404951718396, 43.141702194811224, 43.6900349931913, 44.24241185063697, 44.798841244188324, 45.35933162437017, 45.92389141541209, 46.49252901546552, 47.065252796817916, 47.64207110610409, 48.22299226451468, 48.808024568002054, 49.3971762874833, 49.9904556690408, 50.587870934119984, 51.189430279724725, 51.79514187861014, 52.40501387947288, 53.0190544071392, 53.637271562750364, 54.259673423945976, 54.88626804504493, 55.517063457223934, 56.15206766869424, 56.79128866487574, 57.43473440856916, 58.08241284012621, 58.734331877617365, 59.39049941699807, 60.05092333227251, 60.715611475655585, 61.38457167773311, 62.057811747619894, 62.7353394731159, 63.417162620860914, 64.10328893648692, 64.79372614476921, 65.48848194977529, 66.18756403501224, 66.89098006357258, 67.59873767827808, 68.31084450182222, 69.02730813691093, 69.74813616640164, 70.47333615344107, 71.20291564160104, 71.93688215501312, 72.67524319850172, 73.41800625771542, 74.16517879925733, 74.9167682708136, 75.67278210128072, 76.43322770089146, 77.1981124613393, 77.96744375590167, 78.74122893956174, 79.51947534912904, 80.30219030335869, 81.08938110306934, 81.88105503125999, 82.67721935322541, 83.4778813166706, 84.28304815182372, 85.09272707154808, 85.90692527145302, 86.72564993000343, 87.54890820862819, 88.3767072518277, 89.2090541872801, 90.04595612594655, 90.88742016217518, 91.73345337380438, 92.58406282226491, 93.43925555268066, 94.29903859396902, 95.16341895893969, 96.03240364439274, 96.9059996312159, 97.78421388448044, 98.6670533535366, 99.55452497210776]);
954
- var ViewingConditions = /*#__PURE__*/function () {
954
+ var ViewingConditions = exports.ViewingConditions = /*#__PURE__*/function () {
955
955
  /**
956
956
  * Parameters are intermediate values of the CAM16 conversion process. Their
957
957
  * names are shorthand for technical color science terminology, this class
@@ -1029,8 +1029,8 @@ var ViewingConditions = /*#__PURE__*/function () {
1029
1029
  }]);
1030
1030
  return ViewingConditions;
1031
1031
  }();
1032
- exports.ViewingConditions = ViewingConditions;
1032
+ _class2 = ViewingConditions;
1033
1033
  /**
1034
1034
  * sRGB-like viewing conditions.
1035
1035
  */
1036
- (0, _defineProperty2.default)(ViewingConditions, "DEFAULT", ViewingConditions.make());
1036
+ (0, _defineProperty2.default)(ViewingConditions, "DEFAULT", _class2.make());
@@ -9,7 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _themeImportMap = _interopRequireDefault(require("../artifacts/theme-import-map"));
11
11
  var _constants = require("../constants");
12
- var loadAndAppendThemeCss = /*#__PURE__*/function () {
12
+ var loadAndAppendThemeCss = exports.loadAndAppendThemeCss = /*#__PURE__*/function () {
13
13
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(themeId) {
14
14
  var themeCss, style;
15
15
  return _regenerator.default.wrap(function _callee$(_context) {
@@ -39,8 +39,7 @@ var loadAndAppendThemeCss = /*#__PURE__*/function () {
39
39
  return _ref.apply(this, arguments);
40
40
  };
41
41
  }();
42
- exports.loadAndAppendThemeCss = loadAndAppendThemeCss;
43
- var loadThemeCss = /*#__PURE__*/function () {
42
+ var loadThemeCss = exports.loadThemeCss = /*#__PURE__*/function () {
44
43
  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(themeId) {
45
44
  var _yield$themeImportMap, themeCss;
46
45
  return _regenerator.default.wrap(function _callee2$(_context2) {
@@ -62,6 +61,4 @@ var loadThemeCss = /*#__PURE__*/function () {
62
61
  return _ref2.apply(this, arguments);
63
62
  };
64
63
  }();
65
- exports.loadThemeCss = loadThemeCss;
66
- var darkModeMediaQuery = '(prefers-color-scheme: dark)';
67
- exports.darkModeMediaQuery = darkModeMediaQuery;
64
+ var darkModeMediaQuery = exports.darkModeMediaQuery = '(prefers-color-scheme: dark)';
@@ -21,7 +21,7 @@ var _constants = require("../constants");
21
21
  * // Returns ds-background-bold
22
22
  * getCSSCustomProperty('color.background.bold.[default]')
23
23
  */
24
- var getCSSCustomProperty = function getCSSCustomProperty(path) {
24
+ var getCSSCustomProperty = exports.getCSSCustomProperty = function getCSSCustomProperty(path) {
25
25
  var normalizedPath = typeof path === 'string' ? path.split('.') : path;
26
26
 
27
27
  // Opacity and other 'shallow' groups are more readable when not trimmed
@@ -45,8 +45,7 @@ var getCSSCustomProperty = function getCSSCustomProperty(path) {
45
45
  * // Returns color.background.bold
46
46
  * getTokenId('color.background.bold.[default]')
47
47
  */
48
- exports.getCSSCustomProperty = getCSSCustomProperty;
49
- var getTokenId = function getTokenId(path) {
48
+ var getTokenId = exports.getTokenId = function getTokenId(path) {
50
49
  var normalizedPath = typeof path === 'string' ? path.split('.') : path;
51
50
  return normalizedPath.filter(function (el) {
52
51
  return el !== '[default]';
@@ -63,8 +62,6 @@ var getTokenId = function getTokenId(path) {
63
62
  * // Returns color.background.bold.[default]
64
63
  * getFullyQualifiedTokenId(['color', 'background', 'bold', '[default]'])
65
64
  */
66
- exports.getTokenId = getTokenId;
67
- var getFullyQualifiedTokenId = function getFullyQualifiedTokenId(path) {
65
+ var getFullyQualifiedTokenId = exports.getFullyQualifiedTokenId = function getFullyQualifiedTokenId(path) {
68
66
  return path.join('.');
69
- };
70
- exports.getFullyQualifiedTokenId = getFullyQualifiedTokenId;
67
+ };
@@ -7,7 +7,7 @@ exports.tokenOrder = void 0;
7
7
  /**
8
8
  * Create specific rules for ordering tokens based on their root path and subpath.
9
9
  */
10
- var tokenOrder = [{
10
+ var tokenOrder = exports.tokenOrder = [{
11
11
  path: 'color',
12
12
  subpaths: ['text', 'link', 'icon', 'border', 'background', 'blanket', 'interaction', 'skeleton', 'chart',
13
13
  // deleted ↓
@@ -42,5 +42,4 @@ var tokenOrder = [{
42
42
  path: 'value',
43
43
  // Legacy palette
44
44
  subpaths: []
45
- }];
46
- exports.tokenOrder = tokenOrder;
45
+ }];
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::fb8c64dc20041c62b562be8da8152e46>>
3
+ * @codegen <<SignedSource::70935f0c6dc0ecb8df8e0eea44853fba>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -64,14 +64,14 @@ const tokens = [{
64
64
  "name": "typography.fontFamily.FontFamilyWebMono",
65
65
  "path": ["typography", "fontFamily", "FontFamilyWebMono"]
66
66
  }, {
67
- "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
67
+ "value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
68
68
  "attributes": {
69
69
  "group": "fontFamily"
70
70
  },
71
71
  "filePath": "src/palettes/typography-palette.tsx",
72
72
  "isSource": true,
73
73
  "original": {
74
- "value": "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
74
+ "value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
75
75
  "attributes": {
76
76
  "group": "fontFamily"
77
77
  }