@atlaskit/tokens 0.10.35 → 0.11.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 +9 -0
- package/css/atlassian-spacing.css +2 -2
- package/css/atlassian-typography.css +27 -0
- package/dist/cjs/artifacts/palettes-raw/font-size-scale.js +135 -0
- package/dist/cjs/artifacts/palettes-raw/font-weight-scale.js +75 -0
- package/dist/cjs/artifacts/palettes-raw/line-height-scale.js +105 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts → cjs/artifacts/rename-mapping/atlassian-typography.js} +11 -10
- package/dist/cjs/artifacts/rename-mapping.js +3 -1
- package/dist/cjs/artifacts/token-default-values.js +3 -1
- package/dist/cjs/artifacts/token-names.js +3 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +435 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-default-values.js +40 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-token-names.js +36 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-typography-types.js +5 -0
- package/dist/cjs/constants.js +2 -2
- package/dist/cjs/entry-points/init.js +9 -0
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography/font-family.js +24 -0
- package/dist/cjs/palettes/typography/font-size-scale.js +60 -0
- package/dist/cjs/palettes/typography/font-weight-scale.js +36 -0
- package/dist/cjs/palettes/typography/index.js +28 -0
- package/dist/cjs/palettes/typography/line-height-scale.js +48 -0
- package/dist/cjs/theme-config.js +8 -0
- package/dist/cjs/tokens/atlassian-typography/font-family.js +20 -0
- package/dist/cjs/tokens/atlassian-typography/font-size.js +38 -0
- package/dist/cjs/tokens/atlassian-typography/font-weight.js +26 -0
- package/dist/cjs/tokens/atlassian-typography/line-height.js +32 -0
- package/dist/cjs/tokens/default/elevation/surface.js +2 -2
- package/dist/cjs/tokens/default/typography/font-family.js +30 -0
- package/dist/cjs/tokens/default/typography/font-size.js +78 -0
- package/dist/cjs/tokens/default/typography/font-weight.js +46 -0
- package/dist/cjs/tokens/default/typography/line-height.js +62 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/font-size-scale.js +127 -0
- package/dist/es2019/artifacts/palettes-raw/font-weight-scale.js +67 -0
- package/dist/es2019/artifacts/palettes-raw/line-height-scale.js +97 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts → es2019/artifacts/rename-mapping/atlassian-typography.js} +3 -10
- package/dist/es2019/artifacts/rename-mapping.js +2 -1
- package/dist/es2019/artifacts/token-default-values.js +3 -1
- package/dist/es2019/artifacts/token-names.js +3 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +427 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-token-names.js +28 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-typography-types.js +1 -0
- package/dist/es2019/constants.js +2 -2
- package/dist/es2019/entry-points/init.js +4 -0
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography/font-family.js +17 -0
- package/dist/es2019/palettes/typography/font-size-scale.js +53 -0
- package/dist/es2019/palettes/typography/font-weight-scale.js +29 -0
- package/dist/es2019/palettes/typography/index.js +12 -0
- package/dist/es2019/palettes/typography/line-height-scale.js +41 -0
- package/dist/es2019/theme-config.js +8 -0
- package/dist/es2019/tokens/atlassian-typography/font-family.js +13 -0
- package/dist/es2019/tokens/atlassian-typography/font-size.js +31 -0
- package/dist/es2019/tokens/atlassian-typography/font-weight.js +19 -0
- package/dist/es2019/tokens/atlassian-typography/line-height.js +25 -0
- package/dist/es2019/tokens/default/elevation/surface.js +2 -2
- package/dist/es2019/tokens/default/typography/font-family.js +23 -0
- package/dist/es2019/tokens/default/typography/font-size.js +71 -0
- package/dist/es2019/tokens/default/typography/font-weight.js +39 -0
- package/dist/es2019/tokens/default/typography/line-height.js +55 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/font-size-scale.js +127 -0
- package/dist/esm/artifacts/palettes-raw/font-weight-scale.js +67 -0
- package/dist/esm/artifacts/palettes-raw/line-height-scale.js +97 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts → esm/artifacts/rename-mapping/atlassian-typography.js} +3 -10
- package/dist/esm/artifacts/rename-mapping.js +2 -1
- package/dist/esm/artifacts/token-default-values.js +2 -1
- package/dist/esm/artifacts/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +427 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +2 -2
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +2 -2
- package/dist/esm/artifacts/typescript/atlassian-typography-token-default-values.js +32 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-token-names.js +28 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-typography-types.js +1 -0
- package/dist/esm/constants.js +2 -2
- package/dist/esm/entry-points/init.js +4 -0
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography/font-family.js +17 -0
- package/dist/esm/palettes/typography/font-size-scale.js +53 -0
- package/dist/esm/palettes/typography/font-weight-scale.js +29 -0
- package/dist/esm/palettes/typography/index.js +14 -0
- package/dist/esm/palettes/typography/line-height-scale.js +41 -0
- package/dist/esm/theme-config.js +8 -0
- package/dist/esm/tokens/atlassian-typography/font-family.js +13 -0
- package/dist/esm/tokens/atlassian-typography/font-size.js +31 -0
- package/dist/esm/tokens/atlassian-typography/font-weight.js +19 -0
- package/dist/esm/tokens/atlassian-typography/line-height.js +25 -0
- package/dist/esm/tokens/default/elevation/surface.js +2 -2
- package/dist/esm/tokens/default/typography/font-family.js +23 -0
- package/dist/esm/tokens/default/typography/font-size.js +71 -0
- package/dist/esm/tokens/default/typography/font-weight.js +39 -0
- package/dist/esm/tokens/default/typography/line-height.js +55 -0
- package/dist/esm/version.json +1 -1
- package/dist/{types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts → types/artifacts/palettes-raw/font-size-scale.d.ts} +1 -1
- package/dist/types/artifacts/palettes-raw/font-weight-scale.d.ts +22 -0
- package/dist/types/artifacts/palettes-raw/line-height-scale.d.ts +22 -0
- package/dist/{types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts → types/artifacts/rename-mapping/atlassian-typography.d.ts} +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +20 -0
- package/dist/types/artifacts/token-names.d.ts +22 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +28 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-typography-token-default-values.d.ts +32 -0
- package/dist/types/artifacts/typescript/atlassian-typography-token-names.d.ts +50 -0
- package/dist/types/artifacts/typescript/atlassian-typography-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-typography-types.d.ts +6 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/entry-points/init.d.ts +4 -0
- package/dist/types/palettes/typography/font-family.d.ts +5 -0
- package/dist/types/palettes/typography/font-size-scale.d.ts +5 -0
- package/dist/types/palettes/typography/font-weight-scale.d.ts +5 -0
- package/dist/types/palettes/typography/index.d.ts +10 -0
- package/dist/types/palettes/typography/line-height-scale.d.ts +5 -0
- package/dist/types/theme-config.d.ts +5 -3
- package/dist/types/tokens/atlassian-typography/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/font-size.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/font-weight.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography/line-height.d.ts +4 -0
- package/dist/types/tokens/default/elevation/surface.d.ts +2 -2
- package/dist/types/tokens/default/typography/font-family.d.ts +4 -0
- package/dist/types/tokens/default/typography/font-size.d.ts +4 -0
- package/dist/types/tokens/default/typography/font-weight.d.ts +4 -0
- package/dist/types/tokens/default/typography/line-height.d.ts +4 -0
- package/dist/types/types.d.ts +62 -1
- package/init/package.json +17 -0
- package/package.json +6 -5
- package/report.api.md +57 -4
- package/tmp/api-report-tmp.d.ts +50 -4
- package/dist/types-ts4.0/artifacts/palettes-raw/legacy-palette.d.ts +0 -41
- package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +0 -41
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +0 -26
- package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +0 -372
- package/dist/types-ts4.0/artifacts/token-names.d.ts +0 -376
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +0 -222
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +0 -222
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +0 -174
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +0 -174
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +0 -82
- package/dist/types-ts4.0/artifacts/types-internal.d.ts +0 -2
- package/dist/types-ts4.0/artifacts/types.d.ts +0 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +0 -305
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +0 -596
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +0 -88
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +0 -162
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +0 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +0 -6
- package/dist/types-ts4.0/babel-plugin/index.d.ts +0 -1
- package/dist/types-ts4.0/babel-plugin/plugin.d.ts +0 -14
- package/dist/types-ts4.0/constants.d.ts +0 -6
- package/dist/types-ts4.0/entry-points/babel-plugin.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/palettes-raw.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/rename-mapping.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/spacing-raw.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/token-ids.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/token-names.d.ts +0 -2
- package/dist/types-ts4.0/entry-points/tokens-raw.d.ts +0 -2
- package/dist/types-ts4.0/figma/synchronize-figma-tokens.d.ts +0 -24
- package/dist/types-ts4.0/figma/types.d.ts +0 -40
- package/dist/types-ts4.0/get-token.d.ts +0 -25
- package/dist/types-ts4.0/index.d.ts +0 -6
- package/dist/types-ts4.0/palettes/legacy-palette.d.ts +0 -10
- package/dist/types-ts4.0/palettes/palette.d.ts +0 -5
- package/dist/types-ts4.0/palettes/spacing-scale.d.ts +0 -5
- package/dist/types-ts4.0/set-global-theme.d.ts +0 -15
- package/dist/types-ts4.0/theme-change-observer.d.ts +0 -36
- package/dist/types-ts4.0/theme-config.d.ts +0 -53
- package/dist/types-ts4.0/tokens/atlassian-dark/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-dark/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-legacy-dark/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-legacy-light/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-light/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/atlassian-light/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/accent.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/background.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/border.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/icon.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/interaction.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/skeleton.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/color/text.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/deprecated/deprecated.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/elevation/shadow.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/elevation/surface.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/opacity/opacity.d.ts +0 -3
- package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +0 -4
- package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +0 -5
- package/dist/types-ts4.0/types.d.ts +0 -798
- package/dist/types-ts4.0/utils/color-detection.d.ts +0 -38
- package/dist/types-ts4.0/utils/token-ids.d.ts +0 -41
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ShadowToken } from '../types';
|
|
2
|
-
export declare const hexToRGBAValues: (hex: string) => {
|
|
3
|
-
r: number;
|
|
4
|
-
g: number;
|
|
5
|
-
b: number;
|
|
6
|
-
a: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const hexToRGBA: (hex: string) => string;
|
|
9
|
-
export declare const getLuminance: ({ r, g, b, }: {
|
|
10
|
-
r: number;
|
|
11
|
-
b: number;
|
|
12
|
-
g: number;
|
|
13
|
-
}) => number;
|
|
14
|
-
/**
|
|
15
|
-
* Returns an accessible hard-coded text color based on the color contrast with
|
|
16
|
-
* the background.
|
|
17
|
-
*
|
|
18
|
-
* @param hex - The Hex color code of the background
|
|
19
|
-
* @param [opts.hardcodedSurface] - If set, a design token will be returned instead
|
|
20
|
-
* of a hard-coded color. This is to support more transparent backgrounds
|
|
21
|
-
* to allow the text to invert colors depending on the current theme's surface color.
|
|
22
|
-
*/
|
|
23
|
-
export declare const getTextColorForBackground: (hex: string, opts?: {
|
|
24
|
-
hardcodedSurface?: "light" | "dark" | undefined;
|
|
25
|
-
} | undefined) => string;
|
|
26
|
-
/**
|
|
27
|
-
* Returns a border if determined to be required based on the color contrast with
|
|
28
|
-
* the background.
|
|
29
|
-
*
|
|
30
|
-
* @param hex - The Hex color code of the background
|
|
31
|
-
*/
|
|
32
|
-
export declare const getBorderForBackground: (hex: string) => string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Returns a box shadow formatted for CSS from a ShadowToken raw value.
|
|
35
|
-
*
|
|
36
|
-
* @param rawShadow - ShadowToken raw value
|
|
37
|
-
*/
|
|
38
|
-
export declare const getBoxShadow: (rawShadow: ShadowToken<string>['value']) => string;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transforms a style dictionary token path to a CSS custom property.
|
|
3
|
-
*
|
|
4
|
-
* A css prefix will be prepended and all [default] key words will be omitted
|
|
5
|
-
* from the path
|
|
6
|
-
*
|
|
7
|
-
* @example <caption>Passing a path as an array</caption>
|
|
8
|
-
* // Returns ds-background-bold
|
|
9
|
-
* getCSSCustomProperty(['color', 'background', 'bold', '[default]'])
|
|
10
|
-
*
|
|
11
|
-
* @example <caption>Passing a path as a string</caption>
|
|
12
|
-
* // Returns ds-background-bold
|
|
13
|
-
* getCSSCustomProperty('color.background.bold.[default]')
|
|
14
|
-
*/
|
|
15
|
-
export declare const getCSSCustomProperty: (path: string | string[]) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Transforms a style dictionary token path to a shorthand token id
|
|
18
|
-
* These ids will be typically be how tokens are interacted with via typescript and css
|
|
19
|
-
*
|
|
20
|
-
* All [default] key words will be omitted from the path
|
|
21
|
-
*
|
|
22
|
-
* @example <caption>Passing a path as an array</caption>
|
|
23
|
-
* // Returns color.background.bold
|
|
24
|
-
* getTokenId(['color', 'background', 'bold', '[default]'])
|
|
25
|
-
*
|
|
26
|
-
* @example <caption>Passing a path as a string</caption>
|
|
27
|
-
* // Returns color.background.bold
|
|
28
|
-
* getTokenId('color.background.bold.[default]')
|
|
29
|
-
*/
|
|
30
|
-
export declare const getTokenId: (path: string | string[]) => string;
|
|
31
|
-
/**
|
|
32
|
-
* Transforms a style dictionary token path to a fully qualified token id
|
|
33
|
-
* These Ids are intended to be used internal to this package by style-dictionary
|
|
34
|
-
*
|
|
35
|
-
* [default] key words will NOT be omitted from the path
|
|
36
|
-
*
|
|
37
|
-
* @example <caption>Passing a path as a string</caption>
|
|
38
|
-
* // Returns color.background.bold.[default]
|
|
39
|
-
* getFullyQualifiedTokenId(['color', 'background', 'bold', '[default]'])
|
|
40
|
-
*/
|
|
41
|
-
export declare const getFullyQualifiedTokenId: (path: string[]) => string;
|