@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.
- package/CHANGELOG.md +178 -164
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +1 -2
- package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +1 -2
- package/dist/cjs/artifacts/generated-pairs.js +1 -1
- package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/shape-palette.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +1 -2
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +4 -5
- package/dist/cjs/artifacts/palettes-raw/updated-saturated-palette.js +2257 -0
- package/dist/cjs/artifacts/replacement-mapping.js +1 -2
- package/dist/cjs/artifacts/theme-import-map.js +14 -3
- package/dist/cjs/artifacts/themes/atlassian-dark-new-input-border.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-dark-saturated-palette-changes.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-dark.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-light-new-input-border.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-light-saturated-palette-changes.js +12 -0
- package/dist/cjs/artifacts/themes/atlassian-light.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-shape.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-spacing.js +1 -2
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +2 -3
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +2 -3
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -3
- package/dist/cjs/artifacts/token-default-values.js +14 -15
- package/dist/cjs/artifacts/token-names.js +12 -13
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-new-input-border.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8683 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-new-input-border.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8645 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +1 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +34 -35
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +35 -36
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +35 -36
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +1 -2
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +1 -2
- package/dist/cjs/constants.js +8 -16
- package/dist/cjs/custom-theme.js +2 -3
- package/dist/cjs/enable-global-theme.js +1 -2
- package/dist/cjs/get-global-theme.js +1 -2
- package/dist/cjs/get-ssr-auto-script.js +1 -2
- package/dist/cjs/get-theme-html-attrs.js +1 -2
- package/dist/cjs/get-theme-styles.js +12 -10
- package/dist/cjs/get-token-value.js +2 -3
- package/dist/cjs/get-token.js +2 -3
- package/dist/cjs/load-custom-theme-styles.js +1 -2
- package/dist/cjs/palettes/legacy-palette.js +1 -2
- package/dist/cjs/palettes/palette.js +1 -2
- package/dist/cjs/palettes/shape-palette.js +1 -2
- package/dist/cjs/palettes/spacing-scale.js +1 -2
- package/dist/cjs/palettes/typography-palette.js +2 -3
- package/dist/cjs/palettes/updated-saturated-palette.js +320 -0
- package/dist/cjs/set-global-theme.js +38 -4
- package/dist/cjs/theme-config.js +31 -12
- package/dist/cjs/theme-mutation-observer.js +2 -3
- package/dist/cjs/theme-state-transformer.js +3 -5
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-dark-new-input-border/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +21 -0
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/background.js +26 -0
- package/dist/cjs/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +18 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-legacy-light/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-light/color/accent.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/background.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/chart.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/icon.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/interaction.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/skeleton.js +1 -2
- package/dist/cjs/tokens/atlassian-light/color/text.js +1 -2
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +1 -2
- package/dist/cjs/tokens/atlassian-light/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +2 -3
- package/dist/cjs/tokens/atlassian-light-new-input-border/color/border.js +1 -2
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/accent.js +35 -0
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/background.js +26 -0
- package/dist/cjs/tokens/atlassian-light-saturated-palette-changes/color/icon.js +16 -0
- package/dist/cjs/tokens/atlassian-shape/shape.js +1 -2
- package/dist/cjs/tokens/atlassian-spacing/spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography/theme.js +11 -12
- package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/font-size.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/font-weight.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/line-height.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +12 -13
- package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +1 -2
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +12 -13
- package/dist/cjs/tokens/default/color/accent.js +1 -2
- package/dist/cjs/tokens/default/color/background.js +1 -2
- package/dist/cjs/tokens/default/color/border.js +1 -2
- package/dist/cjs/tokens/default/color/chart.js +1 -2
- package/dist/cjs/tokens/default/color/icon.js +1 -2
- package/dist/cjs/tokens/default/color/interaction.js +1 -2
- package/dist/cjs/tokens/default/color/skeleton.js +1 -2
- package/dist/cjs/tokens/default/color/text.js +1 -2
- package/dist/cjs/tokens/default/elevation/shadow.js +1 -2
- package/dist/cjs/tokens/default/elevation/surface.js +1 -2
- package/dist/cjs/tokens/default/opacity/opacity.js +1 -2
- package/dist/cjs/tokens/default/shape/shape.js +1 -2
- package/dist/cjs/tokens/default/spacing/spacing.js +1 -2
- package/dist/cjs/tokens/default/typography/font-family.js +1 -2
- package/dist/cjs/tokens/default/typography/font-size.js +1 -2
- package/dist/cjs/tokens/default/typography/font-weight.js +1 -2
- package/dist/cjs/tokens/default/typography/font.js +11 -12
- package/dist/cjs/tokens/default/typography/letter-spacing.js +1 -2
- package/dist/cjs/tokens/default/typography/line-height.js +1 -2
- package/dist/cjs/tokens/default/utility/utility.js +2 -3
- package/dist/cjs/use-theme-observer.js +1 -2
- package/dist/cjs/utils/color-detection.js +3 -5
- package/dist/cjs/utils/color-mode-listeners.js +1 -2
- package/dist/cjs/utils/color-utils.js +1 -2
- package/dist/cjs/utils/custom-theme-token-contrast-check.js +3 -5
- package/dist/cjs/utils/generate-custom-color-ramp.js +5 -9
- package/dist/cjs/utils/get-theme-preferences.js +27 -6
- package/dist/cjs/utils/hash.js +2 -3
- package/dist/cjs/utils/hct-color-utils/contrast.js +2 -3
- package/dist/cjs/utils/hct-color-utils/hct.js +7 -7
- package/dist/cjs/utils/theme-loading.js +3 -6
- package/dist/cjs/utils/token-ids.js +4 -7
- package/dist/cjs/utils/token-order.js +2 -3
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +3 -3
- package/dist/es2019/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
- package/dist/es2019/artifacts/theme-import-map.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-dark-saturated-palette-changes.js +399 -0
- package/dist/es2019/artifacts/themes/atlassian-light-saturated-palette-changes.js +399 -0
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +13 -13
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +14 -14
- package/dist/es2019/artifacts/themes/atlassian-typography.js +14 -14
- package/dist/es2019/artifacts/token-default-values.js +13 -13
- package/dist/es2019/artifacts/token-names.js +11 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +34 -34
- package/dist/es2019/get-theme-styles.js +7 -4
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +1 -1
- package/dist/es2019/palettes/updated-saturated-palette.js +312 -0
- package/dist/es2019/set-global-theme.js +8 -2
- package/dist/es2019/theme-config.js +25 -1
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
- package/dist/es2019/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
- package/dist/es2019/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
- package/dist/es2019/tokens/atlassian-typography/theme.js +10 -10
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +10 -10
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +10 -10
- package/dist/es2019/tokens/default/typography/font.js +10 -10
- package/dist/es2019/utils/get-theme-preferences.js +26 -2
- package/dist/es2019/utils/hct-color-utils/hct.js +3 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +3 -3
- package/dist/esm/artifacts/palettes-raw/updated-saturated-palette.js +2251 -0
- package/dist/esm/artifacts/theme-import-map.js +9 -1
- package/dist/esm/artifacts/themes/atlassian-dark-saturated-palette-changes.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-light-saturated-palette-changes.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +13 -13
- package/dist/esm/artifacts/token-names.js +11 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.js +8677 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.js +8639 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +33 -33
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +34 -34
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +34 -34
- package/dist/esm/custom-theme.js +1 -1
- package/dist/esm/get-theme-styles.js +12 -9
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +1 -1
- package/dist/esm/palettes/updated-saturated-palette.js +313 -0
- package/dist/esm/set-global-theme.js +38 -3
- package/dist/esm/theme-config.js +25 -1
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/accent.js +15 -0
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/background.js +20 -0
- package/dist/esm/tokens/atlassian-dark-saturated-palette-changes/color/icon.js +12 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/accent.js +29 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/background.js +20 -0
- package/dist/esm/tokens/atlassian-light-saturated-palette-changes/color/icon.js +10 -0
- package/dist/esm/tokens/atlassian-typography/theme.js +10 -10
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +10 -10
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +10 -10
- package/dist/esm/tokens/default/typography/font.js +10 -10
- package/dist/esm/utils/get-theme-preferences.js +24 -2
- package/dist/esm/utils/hct-color-utils/hct.js +3 -1
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +13 -13
- package/dist/types/artifacts/token-names.d.ts +21 -21
- package/dist/types/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types/palettes/palette.d.ts +1 -1
- package/dist/types/palettes/updated-saturated-palette.d.ts +10 -0
- package/dist/types/theme-config.d.ts +8 -4
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
- package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +11 -11
- package/dist/types/utils/get-theme-preferences.d.ts +1 -0
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/palettes-raw/updated-saturated-palette.d.ts +41 -0
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-saturated-palette-changes.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-saturated-palette-changes.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +13 -13
- package/dist/types-ts4.5/artifacts/token-names.d.ts +21 -21
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-saturated-palette-changes.d.ts +109 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-saturated-palette-changes.d.ts +89 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types-ts4.5/palettes/palette.d.ts +1 -1
- package/dist/types-ts4.5/palettes/updated-saturated-palette.d.ts +10 -0
- package/dist/types-ts4.5/theme-config.d.ts +12 -4
- package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-dark-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/accent.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/background.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-light-saturated-palette-changes/color/icon.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +13 -13
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +13 -13
- package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +11 -11
- package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +1 -0
- package/figma/atlassian-dark-saturated-palette-changes.json +3540 -0
- package/figma/atlassian-light-saturated-palette-changes.json +3519 -0
- package/figma/atlassian-typography-adg3.json +2 -2
- package/figma/atlassian-typography-minor3.json +3 -3
- package/figma/atlassian-typography.json +3 -3
- package/package.json +5 -1
- package/report.api.md +32 -22
- package/tmp/api-report-tmp.d.ts +26 -24
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::385a83af4c578715d2776d3fe65ff10b>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -80,9 +80,9 @@ var tokens = [{
|
|
|
80
80
|
"letterSpacing": "LetterSpacing0"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"name": "font.body.
|
|
84
|
-
"path": ["font", "body", "
|
|
85
|
-
"cleanName": "font.body.
|
|
83
|
+
"name": "font.body.large",
|
|
84
|
+
"path": ["font", "body", "large"],
|
|
85
|
+
"cleanName": "font.body.large"
|
|
86
86
|
}, {
|
|
87
87
|
"attributes": {
|
|
88
88
|
"group": "typography",
|
|
@@ -109,9 +109,9 @@ var tokens = [{
|
|
|
109
109
|
"letterSpacing": "LetterSpacing0"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"name": "font.body.
|
|
113
|
-
"path": ["font", "body", "
|
|
114
|
-
"cleanName": "font.body.
|
|
112
|
+
"name": "font.body.small",
|
|
113
|
+
"path": ["font", "body", "small"],
|
|
114
|
+
"cleanName": "font.body.small"
|
|
115
115
|
}, {
|
|
116
116
|
"attributes": {
|
|
117
117
|
"group": "typography",
|
|
@@ -167,9 +167,9 @@ var tokens = [{
|
|
|
167
167
|
"letterSpacing": "LetterSpacing400"
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
-
"name": "font.heading.
|
|
171
|
-
"path": ["font", "heading", "
|
|
172
|
-
"cleanName": "font.heading.
|
|
170
|
+
"name": "font.heading.large",
|
|
171
|
+
"path": ["font", "heading", "large"],
|
|
172
|
+
"cleanName": "font.heading.large"
|
|
173
173
|
}, {
|
|
174
174
|
"attributes": {
|
|
175
175
|
"group": "typography",
|
|
@@ -196,9 +196,9 @@ var tokens = [{
|
|
|
196
196
|
"letterSpacing": "LetterSpacing300"
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
|
-
"name": "font.heading.
|
|
200
|
-
"path": ["font", "heading", "
|
|
201
|
-
"cleanName": "font.heading.
|
|
199
|
+
"name": "font.heading.medium",
|
|
200
|
+
"path": ["font", "heading", "medium"],
|
|
201
|
+
"cleanName": "font.heading.medium"
|
|
202
202
|
}, {
|
|
203
203
|
"attributes": {
|
|
204
204
|
"group": "typography",
|
|
@@ -225,9 +225,9 @@ var tokens = [{
|
|
|
225
225
|
"letterSpacing": "LetterSpacing200"
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
-
"name": "font.heading.
|
|
229
|
-
"path": ["font", "heading", "
|
|
230
|
-
"cleanName": "font.heading.
|
|
228
|
+
"name": "font.heading.small",
|
|
229
|
+
"path": ["font", "heading", "small"],
|
|
230
|
+
"cleanName": "font.heading.small"
|
|
231
231
|
}, {
|
|
232
232
|
"attributes": {
|
|
233
233
|
"group": "typography",
|
|
@@ -254,9 +254,9 @@ var tokens = [{
|
|
|
254
254
|
"letterSpacing": "LetterSpacing400"
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
-
"name": "font.heading.
|
|
258
|
-
"path": ["font", "heading", "
|
|
259
|
-
"cleanName": "font.heading.
|
|
257
|
+
"name": "font.heading.xlarge",
|
|
258
|
+
"path": ["font", "heading", "xlarge"],
|
|
259
|
+
"cleanName": "font.heading.xlarge"
|
|
260
260
|
}, {
|
|
261
261
|
"attributes": {
|
|
262
262
|
"group": "typography",
|
|
@@ -283,9 +283,9 @@ var tokens = [{
|
|
|
283
283
|
"letterSpacing": "LetterSpacing100"
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
|
-
"name": "font.heading.
|
|
287
|
-
"path": ["font", "heading", "
|
|
288
|
-
"cleanName": "font.heading.
|
|
286
|
+
"name": "font.heading.xsmall",
|
|
287
|
+
"path": ["font", "heading", "xsmall"],
|
|
288
|
+
"cleanName": "font.heading.xsmall"
|
|
289
289
|
}, {
|
|
290
290
|
"attributes": {
|
|
291
291
|
"group": "typography",
|
|
@@ -312,9 +312,9 @@ var tokens = [{
|
|
|
312
312
|
"letterSpacing": "LetterSpacing400"
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
|
-
"name": "font.heading.
|
|
316
|
-
"path": ["font", "heading", "
|
|
317
|
-
"cleanName": "font.heading.
|
|
315
|
+
"name": "font.heading.xxlarge",
|
|
316
|
+
"path": ["font", "heading", "xxlarge"],
|
|
317
|
+
"cleanName": "font.heading.xxlarge"
|
|
318
318
|
}, {
|
|
319
319
|
"attributes": {
|
|
320
320
|
"group": "typography",
|
|
@@ -341,9 +341,9 @@ var tokens = [{
|
|
|
341
341
|
"letterSpacing": "LetterSpacing0"
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
|
-
"name": "font.heading.
|
|
345
|
-
"path": ["font", "heading", "
|
|
346
|
-
"cleanName": "font.heading.
|
|
344
|
+
"name": "font.heading.xxsmall",
|
|
345
|
+
"path": ["font", "heading", "xxsmall"],
|
|
346
|
+
"cleanName": "font.heading.xxsmall"
|
|
347
347
|
}, {
|
|
348
348
|
"attributes": {
|
|
349
349
|
"group": "letterSpacing",
|
|
@@ -509,9 +509,9 @@ var tokens = [{
|
|
|
509
509
|
"letterSpacing": "LetterSpacing0"
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
-
"name": "font.ui.
|
|
513
|
-
"path": ["font", "ui", "
|
|
514
|
-
"cleanName": "font.ui.
|
|
512
|
+
"name": "font.ui.small",
|
|
513
|
+
"path": ["font", "ui", "small"],
|
|
514
|
+
"cleanName": "font.ui.small"
|
|
515
515
|
}, {
|
|
516
516
|
"attributes": {
|
|
517
517
|
"group": "fontFamily",
|
|
@@ -519,7 +519,7 @@ var tokens = [{
|
|
|
519
519
|
"introduced": "1.14.0",
|
|
520
520
|
"description": "Helpful guidance goes here"
|
|
521
521
|
},
|
|
522
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
522
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
523
523
|
"filePath": "src/tokens/atlassian-typography-adg3/font-family.tsx",
|
|
524
524
|
"isSource": true,
|
|
525
525
|
"original": {
|
|
@@ -563,7 +563,7 @@ var tokens = [{
|
|
|
563
563
|
"introduced": "1.14.0",
|
|
564
564
|
"description": "Helpful guidance goes here"
|
|
565
565
|
},
|
|
566
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
566
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
567
567
|
"filePath": "src/tokens/atlassian-typography-adg3/font-family.tsx",
|
|
568
568
|
"isSource": true,
|
|
569
569
|
"original": {
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::a2b2ba21b8b91fbc1e372aaed37f2619>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -80,9 +80,9 @@ var tokens = [{
|
|
|
80
80
|
"letterSpacing": "LetterSpacing0"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
"name": "font.body.
|
|
84
|
-
"path": ["font", "body", "
|
|
85
|
-
"cleanName": "font.body.
|
|
83
|
+
"name": "font.body.large",
|
|
84
|
+
"path": ["font", "body", "large"],
|
|
85
|
+
"cleanName": "font.body.large"
|
|
86
86
|
}, {
|
|
87
87
|
"attributes": {
|
|
88
88
|
"group": "typography",
|
|
@@ -109,9 +109,9 @@ var tokens = [{
|
|
|
109
109
|
"letterSpacing": "LetterSpacing0"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"name": "font.body.
|
|
113
|
-
"path": ["font", "body", "
|
|
114
|
-
"cleanName": "font.body.
|
|
112
|
+
"name": "font.body.small",
|
|
113
|
+
"path": ["font", "body", "small"],
|
|
114
|
+
"cleanName": "font.body.small"
|
|
115
115
|
}, {
|
|
116
116
|
"attributes": {
|
|
117
117
|
"group": "typography",
|
|
@@ -167,9 +167,9 @@ var tokens = [{
|
|
|
167
167
|
"letterSpacing": "LetterSpacing0"
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
-
"name": "font.heading.
|
|
171
|
-
"path": ["font", "heading", "
|
|
172
|
-
"cleanName": "font.heading.
|
|
170
|
+
"name": "font.heading.large",
|
|
171
|
+
"path": ["font", "heading", "large"],
|
|
172
|
+
"cleanName": "font.heading.large"
|
|
173
173
|
}, {
|
|
174
174
|
"attributes": {
|
|
175
175
|
"group": "typography",
|
|
@@ -196,9 +196,9 @@ var tokens = [{
|
|
|
196
196
|
"letterSpacing": "LetterSpacing0"
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
|
-
"name": "font.heading.
|
|
200
|
-
"path": ["font", "heading", "
|
|
201
|
-
"cleanName": "font.heading.
|
|
199
|
+
"name": "font.heading.medium",
|
|
200
|
+
"path": ["font", "heading", "medium"],
|
|
201
|
+
"cleanName": "font.heading.medium"
|
|
202
202
|
}, {
|
|
203
203
|
"attributes": {
|
|
204
204
|
"group": "typography",
|
|
@@ -225,9 +225,9 @@ var tokens = [{
|
|
|
225
225
|
"letterSpacing": "LetterSpacing0"
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
-
"name": "font.heading.
|
|
229
|
-
"path": ["font", "heading", "
|
|
230
|
-
"cleanName": "font.heading.
|
|
228
|
+
"name": "font.heading.small",
|
|
229
|
+
"path": ["font", "heading", "small"],
|
|
230
|
+
"cleanName": "font.heading.small"
|
|
231
231
|
}, {
|
|
232
232
|
"attributes": {
|
|
233
233
|
"group": "typography",
|
|
@@ -254,9 +254,9 @@ var tokens = [{
|
|
|
254
254
|
"letterSpacing": "LetterSpacing0"
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
-
"name": "font.heading.
|
|
258
|
-
"path": ["font", "heading", "
|
|
259
|
-
"cleanName": "font.heading.
|
|
257
|
+
"name": "font.heading.xlarge",
|
|
258
|
+
"path": ["font", "heading", "xlarge"],
|
|
259
|
+
"cleanName": "font.heading.xlarge"
|
|
260
260
|
}, {
|
|
261
261
|
"attributes": {
|
|
262
262
|
"group": "typography",
|
|
@@ -283,9 +283,9 @@ var tokens = [{
|
|
|
283
283
|
"letterSpacing": "LetterSpacing0"
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
|
-
"name": "font.heading.
|
|
287
|
-
"path": ["font", "heading", "
|
|
288
|
-
"cleanName": "font.heading.
|
|
286
|
+
"name": "font.heading.xsmall",
|
|
287
|
+
"path": ["font", "heading", "xsmall"],
|
|
288
|
+
"cleanName": "font.heading.xsmall"
|
|
289
289
|
}, {
|
|
290
290
|
"attributes": {
|
|
291
291
|
"group": "typography",
|
|
@@ -312,9 +312,9 @@ var tokens = [{
|
|
|
312
312
|
"letterSpacing": "LetterSpacing0"
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
|
-
"name": "font.heading.
|
|
316
|
-
"path": ["font", "heading", "
|
|
317
|
-
"cleanName": "font.heading.
|
|
315
|
+
"name": "font.heading.xxlarge",
|
|
316
|
+
"path": ["font", "heading", "xxlarge"],
|
|
317
|
+
"cleanName": "font.heading.xxlarge"
|
|
318
318
|
}, {
|
|
319
319
|
"attributes": {
|
|
320
320
|
"group": "typography",
|
|
@@ -341,9 +341,9 @@ var tokens = [{
|
|
|
341
341
|
"letterSpacing": "LetterSpacing0"
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
|
-
"name": "font.heading.
|
|
345
|
-
"path": ["font", "heading", "
|
|
346
|
-
"cleanName": "font.heading.
|
|
344
|
+
"name": "font.heading.xxsmall",
|
|
345
|
+
"path": ["font", "heading", "xxsmall"],
|
|
346
|
+
"cleanName": "font.heading.xxsmall"
|
|
347
347
|
}, {
|
|
348
348
|
"attributes": {
|
|
349
349
|
"group": "letterSpacing",
|
|
@@ -509,9 +509,9 @@ var tokens = [{
|
|
|
509
509
|
"letterSpacing": "LetterSpacing0"
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
-
"name": "font.ui.
|
|
513
|
-
"path": ["font", "ui", "
|
|
514
|
-
"cleanName": "font.ui.
|
|
512
|
+
"name": "font.ui.small",
|
|
513
|
+
"path": ["font", "ui", "small"],
|
|
514
|
+
"cleanName": "font.ui.small"
|
|
515
515
|
}, {
|
|
516
516
|
"attributes": {
|
|
517
517
|
"group": "fontFamily",
|
|
@@ -519,7 +519,7 @@ var tokens = [{
|
|
|
519
519
|
"introduced": "1.14.0",
|
|
520
520
|
"description": "Helpful guidance goes here"
|
|
521
521
|
},
|
|
522
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
522
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
523
523
|
"filePath": "src/tokens/atlassian-typography-minor3/font-family.tsx",
|
|
524
524
|
"isSource": true,
|
|
525
525
|
"original": {
|
|
@@ -563,7 +563,7 @@ var tokens = [{
|
|
|
563
563
|
"introduced": "1.14.0",
|
|
564
564
|
"description": "Helpful guidance goes here"
|
|
565
565
|
},
|
|
566
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
566
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
567
567
|
"filePath": "src/tokens/atlassian-typography-minor3/font-family.tsx",
|
|
568
568
|
"isSource": true,
|
|
569
569
|
"original": {
|
|
@@ -607,7 +607,7 @@ var tokens = [{
|
|
|
607
607
|
"introduced": "0.10.33",
|
|
608
608
|
"description": "Helpful guidance goes here"
|
|
609
609
|
},
|
|
610
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
610
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
611
611
|
"filePath": "src/tokens/atlassian-typography-minor3/font-family.tsx",
|
|
612
612
|
"isSource": true,
|
|
613
613
|
"original": {
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::87a8cb620b538e3524b5031d5a012ecd>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
var tokens = [{
|
|
@@ -58,9 +58,9 @@ var tokens = [{
|
|
|
58
58
|
"letterSpacing": "LetterSpacing0"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
"name": "font.body.
|
|
62
|
-
"path": ["font", "body", "
|
|
63
|
-
"cleanName": "font.body.
|
|
61
|
+
"name": "font.body.large",
|
|
62
|
+
"path": ["font", "body", "large"],
|
|
63
|
+
"cleanName": "font.body.large"
|
|
64
64
|
}, {
|
|
65
65
|
"attributes": {
|
|
66
66
|
"group": "typography",
|
|
@@ -87,9 +87,9 @@ var tokens = [{
|
|
|
87
87
|
"letterSpacing": "LetterSpacing0"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"name": "font.body.
|
|
91
|
-
"path": ["font", "body", "
|
|
92
|
-
"cleanName": "font.body.
|
|
90
|
+
"name": "font.body.small",
|
|
91
|
+
"path": ["font", "body", "small"],
|
|
92
|
+
"cleanName": "font.body.small"
|
|
93
93
|
}, {
|
|
94
94
|
"attributes": {
|
|
95
95
|
"group": "typography",
|
|
@@ -145,9 +145,9 @@ var tokens = [{
|
|
|
145
145
|
"letterSpacing": "LetterSpacing0"
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
|
-
"name": "font.heading.
|
|
149
|
-
"path": ["font", "heading", "
|
|
150
|
-
"cleanName": "font.heading.
|
|
148
|
+
"name": "font.heading.large",
|
|
149
|
+
"path": ["font", "heading", "large"],
|
|
150
|
+
"cleanName": "font.heading.large"
|
|
151
151
|
}, {
|
|
152
152
|
"attributes": {
|
|
153
153
|
"group": "typography",
|
|
@@ -174,9 +174,9 @@ var tokens = [{
|
|
|
174
174
|
"letterSpacing": "LetterSpacing0"
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
"name": "font.heading.
|
|
178
|
-
"path": ["font", "heading", "
|
|
179
|
-
"cleanName": "font.heading.
|
|
177
|
+
"name": "font.heading.medium",
|
|
178
|
+
"path": ["font", "heading", "medium"],
|
|
179
|
+
"cleanName": "font.heading.medium"
|
|
180
180
|
}, {
|
|
181
181
|
"attributes": {
|
|
182
182
|
"group": "typography",
|
|
@@ -203,9 +203,9 @@ var tokens = [{
|
|
|
203
203
|
"letterSpacing": "LetterSpacing0"
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
|
-
"name": "font.heading.
|
|
207
|
-
"path": ["font", "heading", "
|
|
208
|
-
"cleanName": "font.heading.
|
|
206
|
+
"name": "font.heading.small",
|
|
207
|
+
"path": ["font", "heading", "small"],
|
|
208
|
+
"cleanName": "font.heading.small"
|
|
209
209
|
}, {
|
|
210
210
|
"attributes": {
|
|
211
211
|
"group": "typography",
|
|
@@ -232,9 +232,9 @@ var tokens = [{
|
|
|
232
232
|
"letterSpacing": "LetterSpacing0"
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
|
-
"name": "font.heading.
|
|
236
|
-
"path": ["font", "heading", "
|
|
237
|
-
"cleanName": "font.heading.
|
|
235
|
+
"name": "font.heading.xlarge",
|
|
236
|
+
"path": ["font", "heading", "xlarge"],
|
|
237
|
+
"cleanName": "font.heading.xlarge"
|
|
238
238
|
}, {
|
|
239
239
|
"attributes": {
|
|
240
240
|
"group": "typography",
|
|
@@ -261,9 +261,9 @@ var tokens = [{
|
|
|
261
261
|
"letterSpacing": "LetterSpacing0"
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
|
-
"name": "font.heading.
|
|
265
|
-
"path": ["font", "heading", "
|
|
266
|
-
"cleanName": "font.heading.
|
|
264
|
+
"name": "font.heading.xsmall",
|
|
265
|
+
"path": ["font", "heading", "xsmall"],
|
|
266
|
+
"cleanName": "font.heading.xsmall"
|
|
267
267
|
}, {
|
|
268
268
|
"attributes": {
|
|
269
269
|
"group": "typography",
|
|
@@ -290,9 +290,9 @@ var tokens = [{
|
|
|
290
290
|
"letterSpacing": "LetterSpacing0"
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
|
-
"name": "font.heading.
|
|
294
|
-
"path": ["font", "heading", "
|
|
295
|
-
"cleanName": "font.heading.
|
|
293
|
+
"name": "font.heading.xxlarge",
|
|
294
|
+
"path": ["font", "heading", "xxlarge"],
|
|
295
|
+
"cleanName": "font.heading.xxlarge"
|
|
296
296
|
}, {
|
|
297
297
|
"attributes": {
|
|
298
298
|
"group": "typography",
|
|
@@ -319,9 +319,9 @@ var tokens = [{
|
|
|
319
319
|
"letterSpacing": "LetterSpacing0"
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
|
-
"name": "font.heading.
|
|
323
|
-
"path": ["font", "heading", "
|
|
324
|
-
"cleanName": "font.heading.
|
|
322
|
+
"name": "font.heading.xxsmall",
|
|
323
|
+
"path": ["font", "heading", "xxsmall"],
|
|
324
|
+
"cleanName": "font.heading.xxsmall"
|
|
325
325
|
}, {
|
|
326
326
|
"attributes": {
|
|
327
327
|
"group": "letterSpacing",
|
|
@@ -487,9 +487,9 @@ var tokens = [{
|
|
|
487
487
|
"letterSpacing": "LetterSpacing0"
|
|
488
488
|
}
|
|
489
489
|
},
|
|
490
|
-
"name": "font.ui.
|
|
491
|
-
"path": ["font", "ui", "
|
|
492
|
-
"cleanName": "font.ui.
|
|
490
|
+
"name": "font.ui.small",
|
|
491
|
+
"path": ["font", "ui", "small"],
|
|
492
|
+
"cleanName": "font.ui.small"
|
|
493
493
|
}, {
|
|
494
494
|
"attributes": {
|
|
495
495
|
"group": "fontFamily",
|
|
@@ -497,7 +497,7 @@ var tokens = [{
|
|
|
497
497
|
"introduced": "1.14.0",
|
|
498
498
|
"description": "Helpful guidance goes here"
|
|
499
499
|
},
|
|
500
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
500
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
501
501
|
"filePath": "src/tokens/atlassian-typography/font-family.tsx",
|
|
502
502
|
"isSource": true,
|
|
503
503
|
"original": {
|
|
@@ -541,7 +541,7 @@ var tokens = [{
|
|
|
541
541
|
"introduced": "1.14.0",
|
|
542
542
|
"description": "Helpful guidance goes here"
|
|
543
543
|
},
|
|
544
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
544
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
545
545
|
"filePath": "src/tokens/atlassian-typography/font-family.tsx",
|
|
546
546
|
"isSource": true,
|
|
547
547
|
"original": {
|
|
@@ -585,7 +585,7 @@ var tokens = [{
|
|
|
585
585
|
"introduced": "0.10.33",
|
|
586
586
|
"description": "Helpful guidance goes here"
|
|
587
587
|
},
|
|
588
|
-
"value": "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
588
|
+
"value": "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
589
589
|
"filePath": "src/tokens/atlassian-typography/font-family.tsx",
|
|
590
590
|
"isSource": true,
|
|
591
591
|
"original": {
|
package/dist/esm/custom-theme.js
CHANGED
|
@@ -23,7 +23,7 @@ export var CUSTOM_STYLE_ELEMENTS_SIZE_THRESHOLD = 10;
|
|
|
23
23
|
*/
|
|
24
24
|
export function getCustomThemeStyles(themeState) {
|
|
25
25
|
var _themeState$UNSAFE_th;
|
|
26
|
-
var brandColor = themeState === null || themeState === void 0
|
|
26
|
+
var brandColor = themeState === null || themeState === void 0 || (_themeState$UNSAFE_th = themeState.UNSAFE_themeOptions) === null || _themeState$UNSAFE_th === void 0 ? void 0 : _themeState$UNSAFE_th.brandColor;
|
|
27
27
|
var mode = (themeState === null || themeState === void 0 ? void 0 : themeState.colorMode) || themeStateDefaults['colorMode'];
|
|
28
28
|
var optionString = JSON.stringify(themeState === null || themeState === void 0 ? void 0 : themeState.UNSAFE_themeOptions);
|
|
29
29
|
var uniqueId = hash(optionString);
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { themeIdsWithOverrides, themeStateDefaults } from './theme-config';
|
|
5
5
|
import { isValidBrandHex } from './utils/color-utils';
|
|
6
|
-
import { getThemePreferences } from './utils/get-theme-preferences';
|
|
6
|
+
import { getThemeOverridePreferences, getThemePreferences } from './utils/get-theme-preferences';
|
|
7
7
|
import { loadThemeCss } from './utils/theme-loading';
|
|
8
8
|
/**
|
|
9
9
|
* Takes an object containing theme preferences, and returns an array of objects for use in applying styles to the document head.
|
|
@@ -23,24 +23,27 @@ import { loadThemeCss } from './utils/theme-loading';
|
|
|
23
23
|
*/
|
|
24
24
|
var getThemeStyles = /*#__PURE__*/function () {
|
|
25
25
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(preferences) {
|
|
26
|
-
var themePreferences, results;
|
|
26
|
+
var themePreferences, themeOverridePreferences, themeState, results;
|
|
27
27
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
28
28
|
while (1) switch (_context3.prev = _context3.next) {
|
|
29
29
|
case 0:
|
|
30
|
+
themeOverridePreferences = [];
|
|
30
31
|
if (preferences === 'all') {
|
|
31
32
|
themePreferences = themeIdsWithOverrides;
|
|
32
33
|
} else {
|
|
33
|
-
|
|
34
|
+
themeState = {
|
|
34
35
|
colorMode: (preferences === null || preferences === void 0 ? void 0 : preferences.colorMode) || themeStateDefaults['colorMode'],
|
|
35
36
|
dark: (preferences === null || preferences === void 0 ? void 0 : preferences.dark) || themeStateDefaults['dark'],
|
|
36
37
|
light: (preferences === null || preferences === void 0 ? void 0 : preferences.light) || themeStateDefaults['light'],
|
|
37
38
|
shape: (preferences === null || preferences === void 0 ? void 0 : preferences.shape) || themeStateDefaults['shape'],
|
|
38
39
|
spacing: (preferences === null || preferences === void 0 ? void 0 : preferences.spacing) || themeStateDefaults['spacing'],
|
|
39
40
|
typography: (preferences === null || preferences === void 0 ? void 0 : preferences.typography) || themeStateDefaults['typography']
|
|
40
|
-
}
|
|
41
|
+
};
|
|
42
|
+
themePreferences = getThemePreferences(themeState);
|
|
43
|
+
themeOverridePreferences = getThemeOverridePreferences(themeState);
|
|
41
44
|
}
|
|
42
|
-
_context3.next =
|
|
43
|
-
return Promise.all([].concat(_toConsumableArray(themePreferences.map( /*#__PURE__*/function () {
|
|
45
|
+
_context3.next = 4;
|
|
46
|
+
return Promise.all([].concat(_toConsumableArray([].concat(_toConsumableArray(themePreferences), _toConsumableArray(themeOverridePreferences)).map( /*#__PURE__*/function () {
|
|
44
47
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(themeId) {
|
|
45
48
|
var css;
|
|
46
49
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -79,7 +82,7 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
79
82
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
80
83
|
while (1) switch (_context2.prev = _context2.next) {
|
|
81
84
|
case 0:
|
|
82
|
-
if (!(preferences !== 'all' && preferences !== null && preferences !== void 0 && preferences.UNSAFE_themeOptions && isValidBrandHex(preferences === null || preferences === void 0
|
|
85
|
+
if (!(preferences !== 'all' && preferences !== null && preferences !== void 0 && preferences.UNSAFE_themeOptions && isValidBrandHex(preferences === null || preferences === void 0 || (_preferences$UNSAFE_t = preferences.UNSAFE_themeOptions) === null || _preferences$UNSAFE_t === void 0 ? void 0 : _preferences$UNSAFE_t.brandColor))) {
|
|
83
86
|
_context2.next = 15;
|
|
84
87
|
break;
|
|
85
88
|
}
|
|
@@ -108,12 +111,12 @@ var getThemeStyles = /*#__PURE__*/function () {
|
|
|
108
111
|
}
|
|
109
112
|
}, _callee2, null, [[1, 12]]);
|
|
110
113
|
}))()]));
|
|
111
|
-
case
|
|
114
|
+
case 4:
|
|
112
115
|
results = _context3.sent;
|
|
113
116
|
return _context3.abrupt("return", results.flat().filter(function (theme) {
|
|
114
117
|
return theme !== undefined;
|
|
115
118
|
}));
|
|
116
|
-
case
|
|
119
|
+
case 6:
|
|
117
120
|
case "end":
|
|
118
121
|
return _context3.stop();
|
|
119
122
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
var name = "@atlaskit/tokens";
|
|
4
|
-
var version = "1.
|
|
4
|
+
var version = "1.25.1";
|
|
5
5
|
/**
|
|
6
6
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
7
7
|
* resulting CSS Custom Property.
|
package/dist/esm/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
var name = "@atlaskit/tokens";
|
|
5
|
-
var version = "1.
|
|
5
|
+
var version = "1.25.1";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
8
8
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -141,7 +141,7 @@ var fontFamilyPalette = {
|
|
|
141
141
|
* @see https://fonts.google.com/knowledge/glossary/system_font_web_safe_font
|
|
142
142
|
*/
|
|
143
143
|
FontFamilyWebSans: {
|
|
144
|
-
value: "ui-sans-serif, \"Segoe UI\", system-ui,
|
|
144
|
+
value: "ui-sans-serif, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif",
|
|
145
145
|
attributes: {
|
|
146
146
|
group: 'fontFamily'
|
|
147
147
|
}
|