@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
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var typography = {
|
|
8
8
|
font: {
|
|
9
9
|
heading: {
|
|
10
|
-
|
|
10
|
+
xxlarge: {
|
|
11
11
|
value: {
|
|
12
12
|
fontWeight: 'FontWeight700',
|
|
13
13
|
fontSize: 'FontSize36',
|
|
@@ -17,7 +17,7 @@ var typography = {
|
|
|
17
17
|
letterSpacing: 'LetterSpacing0'
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
xlarge: {
|
|
21
21
|
value: {
|
|
22
22
|
fontWeight: 'FontWeight700',
|
|
23
23
|
fontSize: 'FontSize28',
|
|
@@ -27,7 +27,7 @@ var typography = {
|
|
|
27
27
|
letterSpacing: 'LetterSpacing0'
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
large: {
|
|
31
31
|
value: {
|
|
32
32
|
fontWeight: 'FontWeight700',
|
|
33
33
|
fontSize: 'FontSize24',
|
|
@@ -37,7 +37,7 @@ var typography = {
|
|
|
37
37
|
letterSpacing: 'LetterSpacing0'
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
medium: {
|
|
41
41
|
value: {
|
|
42
42
|
fontWeight: 'FontWeight700',
|
|
43
43
|
fontSize: 'FontSize20',
|
|
@@ -47,7 +47,7 @@ var typography = {
|
|
|
47
47
|
letterSpacing: 'LetterSpacing0'
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
small: {
|
|
51
51
|
value: {
|
|
52
52
|
fontWeight: 'FontWeight700',
|
|
53
53
|
fontSize: 'FontSize16',
|
|
@@ -57,7 +57,7 @@ var typography = {
|
|
|
57
57
|
letterSpacing: 'LetterSpacing0'
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
xsmall: {
|
|
61
61
|
value: {
|
|
62
62
|
fontWeight: 'FontWeight700',
|
|
63
63
|
fontSize: 'FontSize14',
|
|
@@ -67,7 +67,7 @@ var typography = {
|
|
|
67
67
|
letterSpacing: 'LetterSpacing0'
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
xxsmall: {
|
|
71
71
|
value: {
|
|
72
72
|
fontWeight: 'FontWeight700',
|
|
73
73
|
fontSize: 'FontSize12',
|
|
@@ -101,7 +101,7 @@ var typography = {
|
|
|
101
101
|
letterSpacing: 'LetterSpacing0'
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
small: {
|
|
105
105
|
value: {
|
|
106
106
|
fontWeight: 'FontWeight400',
|
|
107
107
|
fontSize: 'FontSize12',
|
|
@@ -111,7 +111,7 @@ var typography = {
|
|
|
111
111
|
letterSpacing: 'LetterSpacing0'
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
-
|
|
114
|
+
large: {
|
|
115
115
|
value: {
|
|
116
116
|
fontWeight: 'FontWeight400',
|
|
117
117
|
fontSize: 'FontSize16',
|
|
@@ -133,7 +133,7 @@ var typography = {
|
|
|
133
133
|
letterSpacing: 'LetterSpacing0'
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
-
|
|
136
|
+
small: {
|
|
137
137
|
value: {
|
|
138
138
|
fontWeight: 'FontWeight400',
|
|
139
139
|
fontSize: 'FontSize12',
|
|
@@ -146,5 +146,4 @@ var typography = {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
var _default = typography;
|
|
150
|
-
exports.default = _default;
|
|
149
|
+
var _default = exports.default = typography;
|
|
@@ -15,7 +15,7 @@ var utility = {
|
|
|
15
15
|
var typography = {
|
|
16
16
|
font: {
|
|
17
17
|
heading: {
|
|
18
|
-
|
|
18
|
+
xxlarge: {
|
|
19
19
|
value: {
|
|
20
20
|
fontWeight: 'FontWeight500',
|
|
21
21
|
fontSize: 'LegacyFontSize35',
|
|
@@ -25,7 +25,7 @@ var typography = {
|
|
|
25
25
|
letterSpacing: 'LetterSpacing400'
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
xlarge: {
|
|
29
29
|
value: {
|
|
30
30
|
fontWeight: 'FontWeight600',
|
|
31
31
|
fontSize: 'LegacyFontSize29',
|
|
@@ -35,7 +35,7 @@ var typography = {
|
|
|
35
35
|
letterSpacing: 'LetterSpacing400'
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
large: {
|
|
39
39
|
value: {
|
|
40
40
|
fontWeight: 'FontWeight500',
|
|
41
41
|
fontSize: 'FontSize24',
|
|
@@ -45,7 +45,7 @@ var typography = {
|
|
|
45
45
|
letterSpacing: 'LetterSpacing400'
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
medium: {
|
|
49
49
|
value: {
|
|
50
50
|
fontWeight: 'FontWeight500',
|
|
51
51
|
fontSize: 'FontSize20',
|
|
@@ -55,7 +55,7 @@ var typography = {
|
|
|
55
55
|
letterSpacing: 'LetterSpacing300'
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
small: {
|
|
59
59
|
value: {
|
|
60
60
|
fontWeight: 'FontWeight600',
|
|
61
61
|
fontSize: 'FontSize16',
|
|
@@ -65,7 +65,7 @@ var typography = {
|
|
|
65
65
|
letterSpacing: 'LetterSpacing200'
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
xsmall: {
|
|
69
69
|
value: {
|
|
70
70
|
fontWeight: 'FontWeight600',
|
|
71
71
|
fontSize: 'FontSize14',
|
|
@@ -75,7 +75,7 @@ var typography = {
|
|
|
75
75
|
letterSpacing: 'LetterSpacing100'
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
xxsmall: {
|
|
79
79
|
value: {
|
|
80
80
|
fontWeight: 'FontWeight600',
|
|
81
81
|
fontSize: 'FontSize12',
|
|
@@ -109,7 +109,7 @@ var typography = {
|
|
|
109
109
|
letterSpacing: 'LetterSpacing0'
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
|
|
112
|
+
large: {
|
|
113
113
|
value: {
|
|
114
114
|
fontWeight: 'FontWeight400',
|
|
115
115
|
fontSize: 'FontSize16',
|
|
@@ -119,7 +119,7 @@ var typography = {
|
|
|
119
119
|
letterSpacing: 'LetterSpacing0'
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
small: {
|
|
123
123
|
value: {
|
|
124
124
|
fontWeight: 'FontWeight400',
|
|
125
125
|
fontSize: 'LegacyFontSize11',
|
|
@@ -141,7 +141,7 @@ var typography = {
|
|
|
141
141
|
letterSpacing: 'LetterSpacing0'
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
|
|
144
|
+
small: {
|
|
145
145
|
value: {
|
|
146
146
|
fontWeight: 'FontWeight400',
|
|
147
147
|
fontSize: 'LegacyFontSize11',
|
|
@@ -154,8 +154,7 @@ var typography = {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var _default = {
|
|
157
|
+
var _default = exports.default = {
|
|
158
158
|
font: typography.font,
|
|
159
159
|
utility: utility
|
|
160
|
-
};
|
|
161
|
-
exports.default = _default;
|
|
160
|
+
};
|
|
@@ -15,7 +15,7 @@ var utility = {
|
|
|
15
15
|
var typography = {
|
|
16
16
|
font: {
|
|
17
17
|
heading: {
|
|
18
|
-
|
|
18
|
+
xxlarge: {
|
|
19
19
|
value: {
|
|
20
20
|
fontWeight: 'FontWeight700',
|
|
21
21
|
fontSize: 'FontSize32',
|
|
@@ -25,7 +25,7 @@ var typography = {
|
|
|
25
25
|
letterSpacing: 'LetterSpacing0'
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
xlarge: {
|
|
29
29
|
value: {
|
|
30
30
|
fontWeight: 'FontWeight700',
|
|
31
31
|
fontSize: 'FontSize28',
|
|
@@ -35,7 +35,7 @@ var typography = {
|
|
|
35
35
|
letterSpacing: 'LetterSpacing0'
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
large: {
|
|
39
39
|
value: {
|
|
40
40
|
fontWeight: 'FontWeight700',
|
|
41
41
|
fontSize: 'FontSize24',
|
|
@@ -45,7 +45,7 @@ var typography = {
|
|
|
45
45
|
letterSpacing: 'LetterSpacing0'
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
medium: {
|
|
49
49
|
value: {
|
|
50
50
|
fontWeight: 'FontWeight700',
|
|
51
51
|
fontSize: 'FontSize20',
|
|
@@ -55,7 +55,7 @@ var typography = {
|
|
|
55
55
|
letterSpacing: 'LetterSpacing0'
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
small: {
|
|
59
59
|
value: {
|
|
60
60
|
fontWeight: 'FontWeight700',
|
|
61
61
|
fontSize: 'FontSize16',
|
|
@@ -65,7 +65,7 @@ var typography = {
|
|
|
65
65
|
letterSpacing: 'LetterSpacing0'
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
|
|
68
|
+
xsmall: {
|
|
69
69
|
value: {
|
|
70
70
|
fontWeight: 'FontWeight700',
|
|
71
71
|
fontSize: 'FontSize14',
|
|
@@ -75,7 +75,7 @@ var typography = {
|
|
|
75
75
|
letterSpacing: 'LetterSpacing0'
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
xxsmall: {
|
|
79
79
|
value: {
|
|
80
80
|
fontWeight: 'FontWeight700',
|
|
81
81
|
fontSize: 'FontSize12',
|
|
@@ -109,7 +109,7 @@ var typography = {
|
|
|
109
109
|
letterSpacing: 'LetterSpacing0'
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
|
|
112
|
+
large: {
|
|
113
113
|
value: {
|
|
114
114
|
fontWeight: 'FontWeight400',
|
|
115
115
|
fontSize: 'FontSize16',
|
|
@@ -119,7 +119,7 @@ var typography = {
|
|
|
119
119
|
letterSpacing: 'LetterSpacing0'
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
small: {
|
|
123
123
|
value: {
|
|
124
124
|
fontWeight: 'FontWeight400',
|
|
125
125
|
fontSize: 'FontSize12',
|
|
@@ -141,7 +141,7 @@ var typography = {
|
|
|
141
141
|
letterSpacing: 'LetterSpacing0'
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
|
|
144
|
+
small: {
|
|
145
145
|
value: {
|
|
146
146
|
fontWeight: 'FontWeight400',
|
|
147
147
|
fontSize: 'FontSize12',
|
|
@@ -154,8 +154,7 @@ var typography = {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var _default = {
|
|
157
|
+
var _default = exports.default = {
|
|
158
158
|
font: typography.font,
|
|
159
159
|
utility: utility
|
|
160
|
-
};
|
|
161
|
-
exports.default = _default;
|
|
160
|
+
};
|
|
@@ -34,7 +34,7 @@ var font = {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
heading: {
|
|
37
|
-
|
|
37
|
+
xxlarge: {
|
|
38
38
|
attributes: {
|
|
39
39
|
group: 'typography',
|
|
40
40
|
state: 'experimental',
|
|
@@ -42,7 +42,7 @@ var font = {
|
|
|
42
42
|
description: 'TBD'
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
xlarge: {
|
|
46
46
|
attributes: {
|
|
47
47
|
group: 'typography',
|
|
48
48
|
state: 'experimental',
|
|
@@ -50,7 +50,7 @@ var font = {
|
|
|
50
50
|
description: 'TBD'
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
large: {
|
|
54
54
|
attributes: {
|
|
55
55
|
group: 'typography',
|
|
56
56
|
state: 'experimental',
|
|
@@ -58,7 +58,7 @@ var font = {
|
|
|
58
58
|
description: 'TBD'
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
medium: {
|
|
62
62
|
attributes: {
|
|
63
63
|
group: 'typography',
|
|
64
64
|
state: 'experimental',
|
|
@@ -66,7 +66,7 @@ var font = {
|
|
|
66
66
|
description: 'TBD'
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
small: {
|
|
70
70
|
attributes: {
|
|
71
71
|
group: 'typography',
|
|
72
72
|
state: 'experimental',
|
|
@@ -74,7 +74,7 @@ var font = {
|
|
|
74
74
|
description: 'TBD'
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
xsmall: {
|
|
78
78
|
attributes: {
|
|
79
79
|
group: 'typography',
|
|
80
80
|
state: 'experimental',
|
|
@@ -82,7 +82,7 @@ var font = {
|
|
|
82
82
|
description: 'TBD'
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
xxsmall: {
|
|
86
86
|
attributes: {
|
|
87
87
|
group: 'typography',
|
|
88
88
|
state: 'experimental',
|
|
@@ -92,7 +92,7 @@ var font = {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
ui: {
|
|
95
|
-
|
|
95
|
+
small: {
|
|
96
96
|
attributes: {
|
|
97
97
|
group: 'typography',
|
|
98
98
|
state: 'experimental',
|
|
@@ -110,7 +110,7 @@ var font = {
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
body: {
|
|
113
|
-
|
|
113
|
+
large: {
|
|
114
114
|
attributes: {
|
|
115
115
|
group: 'typography',
|
|
116
116
|
state: 'experimental',
|
|
@@ -118,7 +118,7 @@ var font = {
|
|
|
118
118
|
description: 'Larger body font or default body font for text rich experiences.'
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
-
|
|
121
|
+
small: {
|
|
122
122
|
attributes: {
|
|
123
123
|
group: 'typography',
|
|
124
124
|
state: 'experimental',
|
|
@@ -137,5 +137,4 @@ var font = {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
var _default = font;
|
|
141
|
-
exports.default = _default;
|
|
140
|
+
var _default = exports.default = font;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.hexToRGBAValues = exports.getBoxShadow = void 0;
|
|
7
|
-
var hexToRGBAValues = function hexToRGBAValues(hex) {
|
|
7
|
+
var hexToRGBAValues = exports.hexToRGBAValues = function hexToRGBAValues(hex) {
|
|
8
8
|
var hexColor = hex.replace('#', '');
|
|
9
9
|
return {
|
|
10
10
|
r: parseInt(hexColor.slice(0, 2), 16),
|
|
@@ -19,8 +19,7 @@ var hexToRGBAValues = function hexToRGBAValues(hex) {
|
|
|
19
19
|
*
|
|
20
20
|
* @param rawShadow - ShadowToken raw value
|
|
21
21
|
*/
|
|
22
|
-
exports.
|
|
23
|
-
var getBoxShadow = function getBoxShadow(rawShadow) {
|
|
22
|
+
var getBoxShadow = exports.getBoxShadow = function getBoxShadow(rawShadow) {
|
|
24
23
|
return rawShadow.map(function (_ref) {
|
|
25
24
|
var radius = _ref.radius,
|
|
26
25
|
offset = _ref.offset,
|
|
@@ -32,5 +31,4 @@ var getBoxShadow = function getBoxShadow(rawShadow) {
|
|
|
32
31
|
b = _hexToRGBAValues.b;
|
|
33
32
|
return "".concat(offset.x, "px ").concat(offset.y, "px ").concat(radius, "px rgba(").concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
|
|
34
33
|
}).join(',');
|
|
35
|
-
};
|
|
36
|
-
exports.getBoxShadow = getBoxShadow;
|
|
34
|
+
};
|
|
@@ -62,5 +62,4 @@ var ColorModeObserver = /*#__PURE__*/function () {
|
|
|
62
62
|
* that can be unbound by any consumer when no longer needed.
|
|
63
63
|
*/
|
|
64
64
|
var SingletonColorModeObserver = new ColorModeObserver();
|
|
65
|
-
var _default = SingletonColorModeObserver;
|
|
66
|
-
exports.default = _default;
|
|
65
|
+
var _default = exports.default = SingletonColorModeObserver;
|
|
@@ -14,12 +14,11 @@ exports.isValidBrandHex = void 0;
|
|
|
14
14
|
exports.relativeLuminanceW3C = relativeLuminanceW3C;
|
|
15
15
|
exports.rgbToHex = rgbToHex;
|
|
16
16
|
// valid hex color with 6 digits
|
|
17
|
-
var isValidBrandHex = function isValidBrandHex(hex) {
|
|
17
|
+
var isValidBrandHex = exports.isValidBrandHex = function isValidBrandHex(hex) {
|
|
18
18
|
return /^#[0-9A-F]{6}$/i.test(hex);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// valid hex color with 4, 6 or 8 digits
|
|
22
|
-
exports.isValidBrandHex = isValidBrandHex;
|
|
23
22
|
var isValidHex = function isValidHex(hex) {
|
|
24
23
|
return /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
25
24
|
};
|