@atlaskit/tokens 13.3.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/artifacts/theme-import-map/package.json +1 -8
- package/artifacts/types/package.json +1 -8
- package/babel-plugin/package.json +1 -8
- package/constants/package.json +1 -8
- package/css-type-schema/package.json +1 -8
- package/custom-themes/package.json +1 -8
- package/dist/cjs/artifacts/generated-pairs.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +5 -1
- package/dist/cjs/artifacts/token-names.js +5 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +89 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +89 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light-increased-contrast.js +89 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +89 -1
- package/dist/cjs/entry-points/token-metadata.codegen.js +37 -1
- package/dist/cjs/utils/token-order.js +1 -1
- package/dist/cjs/utils/token-usage-guidelines.js +3 -0
- package/dist/es2019/artifacts/generated-pairs.js +2 -2
- package/dist/es2019/artifacts/themes/atlassian-dark-increased-contrast.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-dark.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-light-increased-contrast.js +5 -1
- package/dist/es2019/artifacts/themes/atlassian-light.js +5 -1
- package/dist/es2019/artifacts/token-default-values.js +5 -1
- package/dist/es2019/artifacts/token-names.js +5 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +89 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +89 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light-increased-contrast.js +89 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +89 -1
- package/dist/es2019/entry-points/token-metadata.codegen.js +37 -1
- package/dist/es2019/utils/token-order.js +1 -1
- package/dist/es2019/utils/token-usage-guidelines.js +3 -0
- package/dist/esm/artifacts/generated-pairs.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light-increased-contrast.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +5 -1
- package/dist/esm/artifacts/token-names.js +5 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-increased-contrast.js +89 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +89 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light-increased-contrast.js +89 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +89 -1
- package/dist/esm/entry-points/token-metadata.codegen.js +37 -1
- package/dist/esm/utils/token-order.js +1 -1
- package/dist/esm/utils/token-usage-guidelines.js +3 -0
- package/dist/types/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light-increased-contrast.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +5 -1
- package/dist/types/artifacts/token-names.d.ts +9 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/entry-points/css-type-schema.codegen.d.ts +4 -4
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/types.d.ts +24 -6
- package/enable-global-theme/package.json +1 -8
- package/figma/atlassian-dark-increased-contrast.json +36 -0
- package/figma/atlassian-dark.json +36 -0
- package/figma/atlassian-light-increased-contrast.json +36 -0
- package/figma/atlassian-light.json +36 -0
- package/get-global-theme/package.json +1 -8
- package/get-ssr-auto-script/package.json +1 -8
- package/get-theme-html-attrs/package.json +1 -8
- package/get-theme-styles/package.json +1 -8
- package/get-token/package.json +1 -8
- package/get-token-value/package.json +1 -8
- package/package.json +29 -37
- package/palettes-raw/package.json +1 -8
- package/rename-mapping/package.json +1 -8
- package/set-global-theme/package.json +1 -8
- package/theme-config/package.json +1 -8
- package/theme-mutation-observer/package.json +1 -8
- package/theme-state-transformer/package.json +1 -8
- package/token-default-values/package.json +1 -8
- package/token-ids/package.json +1 -8
- package/token-metadata/package.json +1 -8
- package/token-names/package.json +1 -8
- package/token-order/package.json +1 -8
- package/tokens-raw/package.json +1 -8
- package/types/package.json +1 -8
- package/use-theme-observer/package.json +1 -8
- package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +0 -18
- package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +0 -18
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +0 -16
- package/dist/types-ts4.5/artifacts/palettes-raw/legacy-palette.d.ts +0 -25
- package/dist/types-ts4.5/artifacts/palettes-raw/motion-palette.d.ts +0 -24
- package/dist/types-ts4.5/artifacts/palettes-raw/palette-brand-refresh.d.ts +0 -25
- package/dist/types-ts4.5/artifacts/palettes-raw/palette.d.ts +0 -25
- package/dist/types-ts4.5/artifacts/palettes-raw/shape-palette.d.ts +0 -24
- package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +0 -24
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +0 -24
- package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +0 -26
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +0 -16
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-future.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-increased-contrast.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark-new-input-border.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-future.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-increased-contrast.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-light-new-input-border.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-motion.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-rounder.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape-roundest.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-shape.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +0 -7
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +0 -562
- package/dist/types-ts4.5/artifacts/token-names.d.ts +0 -1105
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-brand-refresh.d.ts +0 -50
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-future.d.ts +0 -31
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-increased-contrast.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-brand-refresh.d.ts +0 -50
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-future.d.ts +0 -31
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light-increased-contrast.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +0 -51
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-motion.d.ts +0 -43
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-shape.d.ts +0 -31
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -31
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +0 -38
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +0 -6
- package/dist/types-ts4.5/artifacts/types.d.ts +0 -6
- package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -784
- package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
- package/dist/types-ts4.5/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
- package/dist/types-ts4.5/artifacts/typescript/atlassian-light-token-names.d.ts +0 -784
- package/dist/types-ts4.5/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
- package/dist/types-ts4.5/artifacts/typescript/atlassian-light-types.d.ts +0 -6
- package/dist/types-ts4.5/babel-plugin/index.d.ts +0 -1
- package/dist/types-ts4.5/babel-plugin/plugin.d.ts +0 -29
- package/dist/types-ts4.5/constants.d.ts +0 -9
- package/dist/types-ts4.5/custom-theme.d.ts +0 -6
- package/dist/types-ts4.5/enable-global-theme.d.ts +0 -26
- package/dist/types-ts4.5/entry-points/artifacts-theme-import-map.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/artifacts-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/babel-plugin.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +0 -165
- package/dist/types-ts4.5/entry-points/custom-themes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/enable-global-theme.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-global-theme.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-ssr-auto-script.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-theme-html-attrs.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-theme-styles.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-token-value.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/get-token.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/palettes-raw.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/rename-mapping.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/set-global-theme.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/theme-config.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/theme-mutation-observer.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/theme-state-transformer.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/token-default-values.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/token-ids.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +0 -19
- package/dist/types-ts4.5/entry-points/token-names.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/token-order.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +0 -6
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-theme-observer.d.ts +0 -1
- package/dist/types-ts4.5/get-custom-theme-styles.d.ts +0 -16
- package/dist/types-ts4.5/get-global-theme.d.ts +0 -3
- package/dist/types-ts4.5/get-ssr-auto-script.d.ts +0 -11
- package/dist/types-ts4.5/get-theme-html-attrs.d.ts +0 -18
- package/dist/types-ts4.5/get-theme-styles.d.ts +0 -25
- package/dist/types-ts4.5/get-token-value.d.ts +0 -25
- package/dist/types-ts4.5/get-token.d.ts +0 -26
- package/dist/types-ts4.5/index.d.ts +0 -19
- package/dist/types-ts4.5/is-color-mode.d.ts +0 -2
- package/dist/types-ts4.5/is-theme-ids.d.ts +0 -2
- package/dist/types-ts4.5/is-theme-kind.d.ts +0 -11
- package/dist/types-ts4.5/load-custom-theme-styles.d.ts +0 -17
- package/dist/types-ts4.5/set-global-theme.d.ts +0 -26
- package/dist/types-ts4.5/theme-color-modes.d.ts +0 -12
- package/dist/types-ts4.5/theme-config.d.ts +0 -121
- package/dist/types-ts4.5/theme-ids.d.ts +0 -19
- package/dist/types-ts4.5/theme-mutation-observer.d.ts +0 -25
- package/dist/types-ts4.5/theme-object-to-string.d.ts +0 -13
- package/dist/types-ts4.5/theme-options-schema.d.ts +0 -7
- package/dist/types-ts4.5/theme-state-defaults.d.ts +0 -14
- package/dist/types-ts4.5/theme-state.d.ts +0 -17
- package/dist/types-ts4.5/theme-string-to-object.d.ts +0 -14
- package/dist/types-ts4.5/types.d.ts +0 -1338
- package/dist/types-ts4.5/use-theme-observer.d.ts +0 -16
- package/dist/types-ts4.5/utils/additional-contrast-checker.d.ts +0 -9
- package/dist/types-ts4.5/utils/color-detection.d.ts +0 -8
- package/dist/types-ts4.5/utils/color-mode-listeners.d.ts +0 -13
- package/dist/types-ts4.5/utils/configure-page.d.ts +0 -6
- package/dist/types-ts4.5/utils/contrast-mode-listeners.d.ts +0 -13
- package/dist/types-ts4.5/utils/custom-theme-loading-utils.d.ts +0 -4
- package/dist/types-ts4.5/utils/custom-theme-token-contrast-check.d.ts +0 -11
- package/dist/types-ts4.5/utils/delta-e.d.ts +0 -1
- package/dist/types-ts4.5/utils/generate-colors.d.ts +0 -5
- package/dist/types-ts4.5/utils/generate-token-map-with-contrast-check.d.ts +0 -11
- package/dist/types-ts4.5/utils/generate-token-map.d.ts +0 -11
- package/dist/types-ts4.5/utils/get-alpha.d.ts +0 -1
- package/dist/types-ts4.5/utils/get-closest-color-index.d.ts +0 -2
- package/dist/types-ts4.5/utils/get-contrast-ratio.d.ts +0 -1
- package/dist/types-ts4.5/utils/get-css-custom-property.d.ts +0 -15
- package/dist/types-ts4.5/utils/get-fully-qualified-token-id.d.ts +0 -11
- package/dist/types-ts4.5/utils/get-increased-contrast-theme.d.ts +0 -5
- package/dist/types-ts4.5/utils/get-theme-override-preferences.d.ts +0 -2
- package/dist/types-ts4.5/utils/get-theme-preferences.d.ts +0 -3
- package/dist/types-ts4.5/utils/get-token-id.d.ts +0 -15
- package/dist/types-ts4.5/utils/hash.d.ts +0 -1
- package/dist/types-ts4.5/utils/hct-color-utils/alpha-from-argb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/argb-from-linrgb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/argb-from-lstar.d.ts +0 -8
- package/dist/types-ts4.5/utils/hct-color-utils/argb-from-rgb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/argb-from-rgba.d.ts +0 -8
- package/dist/types-ts4.5/utils/hct-color-utils/argb-from-xyz.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/blue-from-argb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/clamp-component.d.ts +0 -1
- package/dist/types-ts4.5/utils/hct-color-utils/clamp-double.d.ts +0 -7
- package/dist/types-ts4.5/utils/hct-color-utils/clamp-int.d.ts +0 -7
- package/dist/types-ts4.5/utils/hct-color-utils/contrast.d.ts +0 -78
- package/dist/types-ts4.5/utils/hct-color-utils/delinearized.d.ts +0 -9
- package/dist/types-ts4.5/utils/hct-color-utils/green-from-argb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/hct.d.ts +0 -92
- package/dist/types-ts4.5/utils/hct-color-utils/index.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/lab-f.d.ts +0 -1
- package/dist/types-ts4.5/utils/hct-color-utils/lab-invf.d.ts +0 -1
- package/dist/types-ts4.5/utils/hct-color-utils/lerp.d.ts +0 -6
- package/dist/types-ts4.5/utils/hct-color-utils/linearized.d.ts +0 -9
- package/dist/types-ts4.5/utils/hct-color-utils/lstar-from-argb.d.ts +0 -7
- package/dist/types-ts4.5/utils/hct-color-utils/lstar-from-y.d.ts +0 -12
- package/dist/types-ts4.5/utils/hct-color-utils/math-utils.d.ts +0 -6
- package/dist/types-ts4.5/utils/hct-color-utils/matrix-multiply.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/red-from-argb.d.ts +0 -4
- package/dist/types-ts4.5/utils/hct-color-utils/rgba-from-argb.d.ts +0 -8
- package/dist/types-ts4.5/utils/hct-color-utils/rgba.d.ts +0 -14
- package/dist/types-ts4.5/utils/hct-color-utils/sanitize-degrees-double.d.ts +0 -7
- package/dist/types-ts4.5/utils/hct-color-utils/signum.d.ts +0 -6
- package/dist/types-ts4.5/utils/hct-color-utils/viewing-conditions.d.ts +0 -47
- package/dist/types-ts4.5/utils/hct-color-utils/white-point-d65.d.ts +0 -6
- package/dist/types-ts4.5/utils/hct-color-utils/y-from-lstar.d.ts +0 -12
- package/dist/types-ts4.5/utils/hex-to-hsl.d.ts +0 -5
- package/dist/types-ts4.5/utils/hex-to-rgb-a.d.ts +0 -6
- package/dist/types-ts4.5/utils/hex-to-rgb.d.ts +0 -5
- package/dist/types-ts4.5/utils/hex-to-rgba-values.d.ts +0 -6
- package/dist/types-ts4.5/utils/hsl-to-rgb.d.ts +0 -5
- package/dist/types-ts4.5/utils/is-valid-brand-hex.d.ts +0 -1
- package/dist/types-ts4.5/utils/is-valid-hex.d.ts +0 -1
- package/dist/types-ts4.5/utils/limit-size-of-custom-style-elements.d.ts +0 -1
- package/dist/types-ts4.5/utils/load-theme-css.d.ts +0 -2
- package/dist/types-ts4.5/utils/reduce-token-map.d.ts +0 -6
- package/dist/types-ts4.5/utils/relative-luminance-w3-c.d.ts +0 -1
- package/dist/types-ts4.5/utils/rgb-to-hex.d.ts +0 -1
- package/dist/types-ts4.5/utils/rgb-to-lab.d.ts +0 -5
- package/dist/types-ts4.5/utils/theme-loading.d.ts +0 -5
- package/dist/types-ts4.5/utils/token-ids.d.ts +0 -3
- package/dist/types-ts4.5/utils/token-order.d.ts +0 -7
- package/dist/types-ts4.5/utils/token-usage-guidelines.d.ts +0 -8
|
@@ -8,6 +8,9 @@ const getTokenCategoryId = tokenId => {
|
|
|
8
8
|
if (tokenId.startsWith('color.rovo.icon.')) {
|
|
9
9
|
return tokenId.replace('color.rovo.icon.', 'color.icon.');
|
|
10
10
|
}
|
|
11
|
+
if (tokenId.startsWith('elevation.rovo.surface.')) {
|
|
12
|
+
return tokenId.replace('elevation.rovo.surface.', 'elevation.surface.');
|
|
13
|
+
}
|
|
11
14
|
return tokenId;
|
|
12
15
|
};
|
|
13
16
|
export const getTokenUsageGuidelines = tokenId => {
|