@atlaskit/tokens 0.10.25 → 0.10.27
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 +12 -0
- package/css/atlassian-spacing.css +20 -0
- package/dist/cjs/artifacts/palettes-raw/palette.js +233 -233
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +195 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-dark.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-dark.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-legacy-light.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-light.js +427 -0
- package/dist/cjs/artifacts/rename-mapping/atlassian-spacing.js +79 -0
- package/dist/cjs/artifacts/rename-mapping.js +11 -418
- package/dist/cjs/artifacts/token-default-values.js +15 -302
- package/dist/cjs/artifacts/token-names.js +14 -298
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +282 -282
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +282 -282
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +314 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-dark-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +311 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +307 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-light-types.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +33 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-names.js +29 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types-internal.js +5 -0
- package/dist/cjs/artifacts/typescript/atlassian-spacing-types.js +5 -0
- package/dist/cjs/constants.js +4 -3
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/palette.js +116 -116
- package/dist/cjs/palettes/spacing-scale.js +86 -0
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +72 -72
- package/dist/cjs/tokens/atlassian-dark/color/background.js +54 -54
- package/dist/cjs/tokens/atlassian-dark/color/border.js +13 -13
- package/dist/cjs/tokens/atlassian-dark/color/icon.js +12 -12
- package/dist/cjs/tokens/atlassian-dark/color/skeleton.js +2 -2
- package/dist/cjs/tokens/atlassian-dark/color/text.js +15 -15
- package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +5 -5
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +10 -10
- package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +2 -2
- package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +2 -2
- package/dist/cjs/tokens/atlassian-light/color/accent.js +72 -72
- package/dist/cjs/tokens/atlassian-light/color/background.js +54 -54
- package/dist/cjs/tokens/atlassian-light/color/border.js +13 -13
- package/dist/cjs/tokens/atlassian-light/color/icon.js +12 -12
- package/dist/cjs/tokens/atlassian-light/color/skeleton.js +2 -2
- package/dist/cjs/tokens/atlassian-light/color/text.js +15 -15
- package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +99 -99
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +6 -6
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +10 -10
- package/dist/cjs/tokens/atlassian-spacing/spacing.js +55 -0
- package/dist/cjs/tokens/default/spacing/spacing.js +133 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/palette.js +233 -233
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +187 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-dark.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-light.js +419 -0
- package/dist/es2019/artifacts/rename-mapping/atlassian-spacing.js +71 -0
- package/dist/es2019/artifacts/rename-mapping.js +5 -418
- package/dist/es2019/artifacts/token-default-values.js +7 -301
- package/dist/es2019/artifacts/token-names.js +6 -297
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +282 -282
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +282 -282
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +306 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-dark-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-token-names.js +299 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-types-internal.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-light-types.js +1 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
- package/dist/es2019/artifacts/typescript/atlassian-spacing-types.js +7 -0
- package/dist/es2019/constants.js +4 -3
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/palette.js +116 -116
- package/dist/es2019/palettes/spacing-scale.js +79 -0
- package/dist/es2019/tokens/atlassian-dark/color/accent.js +72 -72
- package/dist/es2019/tokens/atlassian-dark/color/background.js +54 -54
- package/dist/es2019/tokens/atlassian-dark/color/border.js +13 -13
- package/dist/es2019/tokens/atlassian-dark/color/icon.js +12 -12
- package/dist/es2019/tokens/atlassian-dark/color/skeleton.js +2 -2
- package/dist/es2019/tokens/atlassian-dark/color/text.js +15 -15
- package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +5 -5
- package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +10 -10
- package/dist/es2019/tokens/atlassian-legacy-dark/color/background.js +2 -2
- package/dist/es2019/tokens/atlassian-legacy-light/color/background.js +2 -2
- package/dist/es2019/tokens/atlassian-light/color/accent.js +72 -72
- package/dist/es2019/tokens/atlassian-light/color/background.js +54 -54
- package/dist/es2019/tokens/atlassian-light/color/border.js +13 -13
- package/dist/es2019/tokens/atlassian-light/color/icon.js +12 -12
- package/dist/es2019/tokens/atlassian-light/color/skeleton.js +2 -2
- package/dist/es2019/tokens/atlassian-light/color/text.js +15 -15
- package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +99 -99
- package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +6 -6
- package/dist/es2019/tokens/atlassian-light/elevation/surface.js +10 -10
- package/dist/es2019/tokens/atlassian-spacing/spacing.js +48 -0
- package/dist/es2019/tokens/default/spacing/spacing.js +126 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/palette.js +233 -233
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +187 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-dark.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-dark.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-legacy-light.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-light.js +419 -0
- package/dist/esm/artifacts/rename-mapping/atlassian-spacing.js +71 -0
- package/dist/esm/artifacts/rename-mapping.js +7 -418
- package/dist/esm/artifacts/token-default-values.js +14 -302
- package/dist/esm/artifacts/token-names.js +13 -298
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +282 -282
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +282 -282
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +306 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-dark-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +303 -0
- package/dist/esm/artifacts/typescript/atlassian-light-token-names.js +299 -0
- package/dist/esm/artifacts/typescript/atlassian-light-types-internal.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-light-types.js +1 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +25 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-names.js +21 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-types-internal.js +7 -0
- package/dist/esm/artifacts/typescript/atlassian-spacing-types.js +7 -0
- package/dist/esm/constants.js +4 -3
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/palette.js +116 -116
- package/dist/esm/palettes/spacing-scale.js +79 -0
- package/dist/esm/tokens/atlassian-dark/color/accent.js +72 -72
- package/dist/esm/tokens/atlassian-dark/color/background.js +54 -54
- package/dist/esm/tokens/atlassian-dark/color/border.js +13 -13
- package/dist/esm/tokens/atlassian-dark/color/icon.js +12 -12
- package/dist/esm/tokens/atlassian-dark/color/skeleton.js +2 -2
- package/dist/esm/tokens/atlassian-dark/color/text.js +15 -15
- package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +100 -100
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +5 -5
- package/dist/esm/tokens/atlassian-dark/elevation/surface.js +10 -10
- package/dist/esm/tokens/atlassian-legacy-dark/color/background.js +2 -2
- package/dist/esm/tokens/atlassian-legacy-light/color/background.js +2 -2
- package/dist/esm/tokens/atlassian-light/color/accent.js +72 -72
- package/dist/esm/tokens/atlassian-light/color/background.js +54 -54
- package/dist/esm/tokens/atlassian-light/color/border.js +13 -13
- package/dist/esm/tokens/atlassian-light/color/icon.js +12 -12
- package/dist/esm/tokens/atlassian-light/color/skeleton.js +2 -2
- package/dist/esm/tokens/atlassian-light/color/text.js +15 -15
- package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +99 -99
- package/dist/esm/tokens/atlassian-light/elevation/shadow.js +6 -6
- package/dist/esm/tokens/atlassian-light/elevation/surface.js +10 -10
- package/dist/esm/tokens/atlassian-spacing/spacing.js +48 -0
- package/dist/esm/tokens/default/spacing/spacing.js +126 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
- package/dist/types/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
- package/dist/types/artifacts/rename-mapping.d.ts +4 -24
- package/dist/types/artifacts/token-default-values.d.ts +306 -301
- package/dist/types/artifacts/token-names.d.ts +16 -298
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
- package/dist/types/artifacts/types-internal.d.ts +2 -6
- package/dist/types/artifacts/types.d.ts +2 -6
- package/dist/types/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
- package/dist/types/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
- package/dist/types/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-light-types.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
- package/dist/types/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
- package/dist/types/constants.d.ts +3 -2
- package/dist/types/palettes/palette.d.ts +1 -1
- package/dist/types/palettes/spacing-scale.d.ts +5 -0
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-spacing/spacing.d.ts +4 -0
- package/dist/types/tokens/default/spacing/spacing.d.ts +4 -0
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +45 -5
- package/dist/types-ts4.0/artifacts/palettes-raw/palette.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts +22 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-dark.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-dark.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-legacy-light.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-light.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping/atlassian-spacing.d.ts +26 -0
- package/dist/types-ts4.0/artifacts/rename-mapping.d.ts +4 -24
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +306 -301
- package/dist/types-ts4.0/artifacts/token-names.d.ts +16 -298
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +30 -0
- package/dist/types-ts4.0/artifacts/types-internal.d.ts +2 -6
- package/dist/types-ts4.0/artifacts/types.d.ts +2 -6
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +303 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +592 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +25 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-names.d.ts +36 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types-internal.d.ts +6 -0
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-types.d.ts +6 -0
- package/dist/types-ts4.0/constants.d.ts +4 -2
- package/dist/types-ts4.0/palettes/palette.d.ts +1 -1
- package/dist/types-ts4.0/palettes/spacing-scale.d.ts +5 -0
- package/dist/types-ts4.0/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types-ts4.0/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types-ts4.0/tokens/atlassian-spacing/spacing.d.ts +4 -0
- package/dist/types-ts4.0/tokens/default/spacing/spacing.d.ts +4 -0
- package/dist/types-ts4.0/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types-ts4.0/types.d.ts +45 -5
- package/package.json +3 -2
- package/report.api.md +97 -50
- package/tmp/api-report-tmp.d.ts +664 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::39f5c50a16b92a67dcd34ffb038b73d2>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export declare type InternalTokenIds = 'color.text.accent.blue.[default]' | 'color.text.accent.blue.bolder' | 'color.text.accent.red.[default]' | 'color.text.accent.red.bolder' | 'color.text.accent.orange.[default]' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow.[default]' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green.[default]' | 'color.text.accent.green.bolder' | 'color.text.accent.purple.[default]' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal.[default]' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta.[default]' | 'color.text.accent.magenta.bolder' | 'color.text.accent.gray.[default]' | 'color.text.accent.gray.bolder' | 'color.text.[default]' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning.[default]' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.accent.gray' | 'color.icon.[default]' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning.[default]' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.accent.gray' | 'color.border.[default]' | 'color.border.bold' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle.[default]' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input.[default]' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral.[default].[default]' | 'color.background.neutral.[default].hovered' | 'color.background.neutral.[default].pressed' | 'color.background.neutral.subtle.[default]' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold.[default]' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold.[default]' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected.[default].[default]' | 'color.background.selected.[default].hovered' | 'color.background.selected.[default].pressed' | 'color.background.selected.bold.[default]' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger.[default].[default]' | 'color.background.danger.[default].hovered' | 'color.background.danger.[default].pressed' | 'color.background.danger.bold.[default]' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning.[default].[default]' | 'color.background.warning.[default].hovered' | 'color.background.warning.[default].pressed' | 'color.background.warning.bold.[default]' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success.[default].[default]' | 'color.background.success.[default].hovered' | 'color.background.success.[default].pressed' | 'color.background.success.bold.[default]' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery.[default].[default]' | 'color.background.discovery.[default].hovered' | 'color.background.discovery.[default].pressed' | 'color.background.discovery.bold.[default]' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information.[default].[default]' | 'color.background.information.[default].hovered' | 'color.background.information.[default].pressed' | 'color.background.information.bold.[default]' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket.[default]' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.skeleton.[default]' | 'color.skeleton.subtle' | 'color.link.[default]' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface.[default].[default]' | 'elevation.surface.[default].hovered' | 'elevation.surface.[default].pressed' | 'elevation.surface.sunken' | 'elevation.surface.raised.[default]' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.overlay.[default]' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'opacity.disabled' | 'opacity.loading' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::02e94c9602d30a3320fd9e00a1950a7c>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export declare type ActiveTokens = 'color.text.accent.blue' | 'color.text.accent.blue.bolder' | 'color.text.accent.red' | 'color.text.accent.red.bolder' | 'color.text.accent.orange' | 'color.text.accent.orange.bolder' | 'color.text.accent.yellow' | 'color.text.accent.yellow.bolder' | 'color.text.accent.green' | 'color.text.accent.green.bolder' | 'color.text.accent.purple' | 'color.text.accent.purple.bolder' | 'color.text.accent.teal' | 'color.text.accent.teal.bolder' | 'color.text.accent.magenta' | 'color.text.accent.magenta.bolder' | 'color.text.accent.gray' | 'color.text.accent.gray.bolder' | 'color.text' | 'color.text.subtle' | 'color.text.subtlest' | 'color.text.disabled' | 'color.text.inverse' | 'color.text.brand' | 'color.text.selected' | 'color.text.danger' | 'color.text.warning' | 'color.text.warning.inverse' | 'color.text.success' | 'color.text.discovery' | 'color.text.information' | 'color.icon.accent.blue' | 'color.icon.accent.red' | 'color.icon.accent.orange' | 'color.icon.accent.yellow' | 'color.icon.accent.green' | 'color.icon.accent.purple' | 'color.icon.accent.teal' | 'color.icon.accent.magenta' | 'color.icon.accent.gray' | 'color.icon' | 'color.icon.subtle' | 'color.icon.inverse' | 'color.icon.disabled' | 'color.icon.brand' | 'color.icon.selected' | 'color.icon.danger' | 'color.icon.warning' | 'color.icon.warning.inverse' | 'color.icon.success' | 'color.icon.discovery' | 'color.icon.information' | 'color.border.accent.blue' | 'color.border.accent.red' | 'color.border.accent.orange' | 'color.border.accent.yellow' | 'color.border.accent.green' | 'color.border.accent.purple' | 'color.border.accent.teal' | 'color.border.accent.magenta' | 'color.border.accent.gray' | 'color.border' | 'color.border.bold' | 'color.border.inverse' | 'color.border.focused' | 'color.border.input' | 'color.border.disabled' | 'color.border.brand' | 'color.border.selected' | 'color.border.danger' | 'color.border.warning' | 'color.border.success' | 'color.border.discovery' | 'color.border.information' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.bolder' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtle' | 'color.background.accent.red.bolder' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.bolder' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.bolder' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtle' | 'color.background.accent.green.bolder' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.bolder' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.bolder' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.bolder' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.bolder' | 'color.background.disabled' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.interaction.hovered' | 'color.interaction.pressed' | 'color.skeleton' | 'color.skeleton.subtle' | 'color.link' | 'color.link.pressed' | 'elevation.shadow.raised' | 'elevation.shadow.overflow' | 'elevation.shadow.overlay' | 'elevation.surface' | 'elevation.surface.hovered' | 'elevation.surface.pressed' | 'elevation.surface.sunken' | 'elevation.surface.raised' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.overlay' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'opacity.disabled' | 'opacity.loading' | 'utility.UNSAFE_util.transparent' | 'utility.UNSAFE_util.MISSING_TOKEN';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
|
+
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
|
+
*
|
|
7
|
+
* @codegen <<SignedSource::c5f4991ca82e83d24ff38509c8df5121>>
|
|
8
|
+
* @codegenCommand yarn build tokens
|
|
9
|
+
*/
|
|
10
|
+
declare const defaultTokenValues: {
|
|
11
|
+
readonly 'spacing.container.gutter': "8px";
|
|
12
|
+
readonly 'spacing.scale.0': "0";
|
|
13
|
+
readonly 'spacing.scale.100': "8px";
|
|
14
|
+
readonly 'spacing.scale.150': "12px";
|
|
15
|
+
readonly 'spacing.scale.200': "16px";
|
|
16
|
+
readonly 'spacing.scale.250': "20px";
|
|
17
|
+
readonly 'spacing.scale.300': "24px";
|
|
18
|
+
readonly 'spacing.scale.400': "32px";
|
|
19
|
+
readonly 'spacing.scale.500': "40px";
|
|
20
|
+
readonly 'spacing.scale.600': "48px";
|
|
21
|
+
readonly 'spacing.scale.025': "2px";
|
|
22
|
+
readonly 'spacing.scale.050': "4px";
|
|
23
|
+
readonly 'spacing.scale.075': "6px";
|
|
24
|
+
};
|
|
25
|
+
export default defaultTokenValues;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::873e77ae05fb3ff2730f5f6110aaeae3>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: {
|
|
7
|
+
readonly 'spacing.container.gutter': "--ds-container-gutter";
|
|
8
|
+
readonly 'spacing.scale.0': "--ds-scale-0";
|
|
9
|
+
readonly 'spacing.scale.100': "--ds-scale-100";
|
|
10
|
+
readonly 'spacing.scale.150': "--ds-scale-150";
|
|
11
|
+
readonly 'spacing.scale.200': "--ds-scale-200";
|
|
12
|
+
readonly 'spacing.scale.250': "--ds-scale-250";
|
|
13
|
+
readonly 'spacing.scale.300': "--ds-scale-300";
|
|
14
|
+
readonly 'spacing.scale.400': "--ds-scale-400";
|
|
15
|
+
readonly 'spacing.scale.500': "--ds-scale-500";
|
|
16
|
+
readonly 'spacing.scale.600': "--ds-scale-600";
|
|
17
|
+
readonly 'spacing.scale.025': "--ds-scale-025";
|
|
18
|
+
readonly 'spacing.scale.050': "--ds-scale-050";
|
|
19
|
+
readonly 'spacing.scale.075': "--ds-scale-075";
|
|
20
|
+
};
|
|
21
|
+
export declare type CSSTokenMap = {
|
|
22
|
+
'spacing.container.gutter': 'var(--ds-container-gutter)';
|
|
23
|
+
'spacing.scale.0': 'var(--ds-scale-0)';
|
|
24
|
+
'spacing.scale.100': 'var(--ds-scale-100)';
|
|
25
|
+
'spacing.scale.150': 'var(--ds-scale-150)';
|
|
26
|
+
'spacing.scale.200': 'var(--ds-scale-200)';
|
|
27
|
+
'spacing.scale.250': 'var(--ds-scale-250)';
|
|
28
|
+
'spacing.scale.300': 'var(--ds-scale-300)';
|
|
29
|
+
'spacing.scale.400': 'var(--ds-scale-400)';
|
|
30
|
+
'spacing.scale.500': 'var(--ds-scale-500)';
|
|
31
|
+
'spacing.scale.600': 'var(--ds-scale-600)';
|
|
32
|
+
'spacing.scale.025': 'var(--ds-scale-025)';
|
|
33
|
+
'spacing.scale.050': 'var(--ds-scale-050)';
|
|
34
|
+
'spacing.scale.075': 'var(--ds-scale-075)';
|
|
35
|
+
};
|
|
36
|
+
export default tokens;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const THEMES: readonly ["light", "dark", "legacy-light", "legacy-dark"];
|
|
1
|
+
export declare const THEMES: readonly ["light", "dark", "legacy-light", "legacy-dark", "spacing"];
|
|
2
2
|
export declare const THEME_DATA_ATTRIBUTE = "data-theme";
|
|
3
|
-
export declare const DEFAULT_THEME = "light";
|
|
3
|
+
export declare const DEFAULT_THEME = "light spacing";
|
|
4
4
|
export declare const CSS_PREFIX = "ds";
|
|
5
5
|
export declare const CSS_VAR_FULL: string[];
|
|
6
6
|
export declare const THEME_NAME_MAP: {
|
|
@@ -8,5 +8,6 @@ export declare const THEME_NAME_MAP: {
|
|
|
8
8
|
'atlassian-dark': string;
|
|
9
9
|
'atlassian-legacy-light': string;
|
|
10
10
|
'atlassian-legacy-dark': string;
|
|
11
|
+
'atlassian-spacing': string;
|
|
11
12
|
};
|
|
12
13
|
export declare const TOKEN_NOT_FOUND_CSS_VAR: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PaletteColorTokenSchema } from '../types';
|
|
2
|
-
declare type PaletteValues = '
|
|
2
|
+
declare type PaletteValues = 'Blue100' | 'Blue200' | 'Blue300' | 'Blue400' | 'Blue500' | 'Blue600' | 'Blue700' | 'Blue800' | 'Blue900' | 'Blue1000' | 'Red100' | 'Red200' | 'Red300' | 'Red400' | 'Red500' | 'Red600' | 'Red700' | 'Red800' | 'Red900' | 'Red1000' | 'Yellow100' | 'Yellow200' | 'Yellow300' | 'Yellow400' | 'Yellow500' | 'Yellow600' | 'Yellow700' | 'Yellow800' | 'Yellow900' | 'Yellow1000' | 'Green100' | 'Green200' | 'Green300' | 'Green400' | 'Green500' | 'Green600' | 'Green700' | 'Green800' | 'Green900' | 'Green1000' | 'Purple100' | 'Purple200' | 'Purple300' | 'Purple400' | 'Purple500' | 'Purple600' | 'Purple700' | 'Purple800' | 'Purple900' | 'Purple1000' | 'Teal100' | 'Teal200' | 'Teal300' | 'Teal400' | 'Teal500' | 'Teal600' | 'Teal700' | 'Teal800' | 'Teal900' | 'Teal1000' | 'Orange100' | 'Orange200' | 'Orange300' | 'Orange400' | 'Orange500' | 'Orange600' | 'Orange700' | 'Orange800' | 'Orange900' | 'Orange1000' | 'Magenta100' | 'Magenta200' | 'Magenta300' | 'Magenta400' | 'Magenta500' | 'Magenta600' | 'Magenta700' | 'Magenta800' | 'Magenta900' | 'Magenta1000' | 'DarkNeutral-100' | 'DarkNeutral-100A' | 'DarkNeutral0' | 'DarkNeutral100' | 'DarkNeutral100A' | 'DarkNeutral200' | 'DarkNeutral200A' | 'DarkNeutral300' | 'DarkNeutral300A' | 'DarkNeutral400' | 'DarkNeutral400A' | 'DarkNeutral500' | 'DarkNeutral500A' | 'DarkNeutral600' | 'DarkNeutral700' | 'DarkNeutral800' | 'DarkNeutral900' | 'DarkNeutral1000' | 'DarkNeutral1100' | 'Neutral0' | 'Neutral100' | 'Neutral100A' | 'Neutral200' | 'Neutral200A' | 'Neutral300' | 'Neutral300A' | 'Neutral400' | 'Neutral400A' | 'Neutral500' | 'Neutral500A' | 'Neutral600' | 'Neutral700' | 'Neutral800' | 'Neutral900' | 'Neutral1000' | 'Neutral1100';
|
|
3
3
|
export declare type BaseToken = keyof PaletteColorTokenSchema<PaletteValues>['color']['palette'];
|
|
4
4
|
declare const palette: PaletteColorTokenSchema<PaletteValues>;
|
|
5
5
|
export default palette;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SpacingScaleTokenSchema } from '../types';
|
|
2
|
+
export declare type ScaleValues = 'Space0' | 'Space025' | 'Space050' | 'Space075' | 'Space100' | 'Space150' | 'Space200' | 'Space250' | 'Space300' | 'Space400' | 'Space500' | 'Space600';
|
|
3
|
+
export declare type BaseToken = keyof SpacingScaleTokenSchema<ScaleValues>['spacing']['scale'];
|
|
4
|
+
declare const scale: SpacingScaleTokenSchema<ScaleValues>;
|
|
5
|
+
export default scale;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UtilTokenSchema, ValueSchema } from '../../../types';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
utility: ValueSchema<UtilTokenSchema<"
|
|
3
|
+
utility: ValueSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UtilTokenSchema, ValueSchema } from '../../../types';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
utility: ValueSchema<UtilTokenSchema<"
|
|
3
|
+
utility: ValueSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AttributeSchema, UtilTokenSchema } from '../../../types';
|
|
2
2
|
declare const _default: {
|
|
3
|
-
utility: AttributeSchema<UtilTokenSchema<"
|
|
3
|
+
utility: AttributeSchema<UtilTokenSchema<"Blue100" | "Blue200" | "Blue300" | "Blue400" | "Blue500" | "Blue600" | "Blue700" | "Blue800" | "Blue900" | "Blue1000" | "Red100" | "Red200" | "Red300" | "Red400" | "Red500" | "Red600" | "Red700" | "Red800" | "Red900" | "Red1000" | "Yellow100" | "Yellow200" | "Yellow300" | "Yellow400" | "Yellow500" | "Yellow600" | "Yellow700" | "Yellow800" | "Yellow900" | "Yellow1000" | "Green100" | "Green200" | "Green300" | "Green400" | "Green500" | "Green600" | "Green700" | "Green800" | "Green900" | "Green1000" | "Purple100" | "Purple200" | "Purple300" | "Purple400" | "Purple500" | "Purple600" | "Purple700" | "Purple800" | "Purple900" | "Purple1000" | "Teal100" | "Teal200" | "Teal300" | "Teal400" | "Teal500" | "Teal600" | "Teal700" | "Teal800" | "Teal900" | "Teal1000" | "Orange100" | "Orange200" | "Orange300" | "Orange400" | "Orange500" | "Orange600" | "Orange700" | "Orange800" | "Orange900" | "Orange1000" | "Magenta100" | "Magenta200" | "Magenta300" | "Magenta400" | "Magenta500" | "Magenta600" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta1000" | "DarkNeutral-100" | "DarkNeutral-100A" | "DarkNeutral0" | "DarkNeutral100" | "DarkNeutral100A" | "DarkNeutral200" | "DarkNeutral200A" | "DarkNeutral300" | "DarkNeutral300A" | "DarkNeutral400" | "DarkNeutral400A" | "DarkNeutral500" | "DarkNeutral500A" | "DarkNeutral600" | "DarkNeutral700" | "DarkNeutral800" | "DarkNeutral900" | "DarkNeutral1000" | "DarkNeutral1100" | "Neutral0" | "Neutral100" | "Neutral100A" | "Neutral200" | "Neutral200A" | "Neutral300" | "Neutral300A" | "Neutral400" | "Neutral400A" | "Neutral500" | "Neutral500A" | "Neutral600" | "Neutral700" | "Neutral800" | "Neutral900" | "Neutral1000" | "Neutral1100">>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { InternalTokenIds } from './artifacts/types-internal';
|
|
2
2
|
import { THEME_NAME_MAP, THEMES } from './constants';
|
|
3
|
-
export declare type Groups = 'raw' | 'paint' | 'shadow' | 'opacity' | '
|
|
3
|
+
export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'scale';
|
|
4
4
|
export declare type ActiveTokenState = 'active';
|
|
5
5
|
export declare type DeprecatedTokenState = 'deprecated';
|
|
6
6
|
export declare type DeletedTokenState = 'deleted';
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ExperimentalTokenState = 'experimental';
|
|
8
|
+
export declare type TokenState = ActiveTokenState | DeprecatedTokenState | DeletedTokenState | ExperimentalTokenState;
|
|
8
9
|
export declare type Replacement = InternalTokenIds | InternalTokenIds[];
|
|
10
|
+
export declare type ExperimentalReplacement = InternalTokenIds | InternalTokenIds[] | string;
|
|
9
11
|
export declare type PaletteCategory = 'blue' | 'purple' | 'red' | 'magenta' | 'orange' | 'yellow' | 'green' | 'teal' | 'light mode neutral' | 'dark mode neutral';
|
|
10
12
|
export declare type ValueCategory = 'opacity';
|
|
11
13
|
export declare type Themes = typeof THEMES[number];
|
|
@@ -16,12 +18,12 @@ export interface Token<TValue, Group extends Groups> {
|
|
|
16
18
|
group: Group;
|
|
17
19
|
description?: string;
|
|
18
20
|
state?: TokenState;
|
|
19
|
-
replacement?: Replacement;
|
|
21
|
+
replacement?: Replacement | ExperimentalReplacement;
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Base tokens define the raw values consumed by Design Tokens. They are a context-agnostic
|
|
24
|
-
* name:value pairing (for example, the base token
|
|
26
|
+
* name:value pairing (for example, the base token Neutral0 represents the value #FFFFFF ).
|
|
25
27
|
*/
|
|
26
28
|
export interface BaseToken<TValue, Group extends Groups> extends Token<TValue, Group> {
|
|
27
29
|
attributes: {
|
|
@@ -30,7 +32,7 @@ export interface BaseToken<TValue, Group extends Groups> extends Token<TValue, G
|
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Design tokens represent single sources of truth to name and store semantic design decisions.
|
|
33
|
-
* They map a semantic name (color.background.default) to a base token (
|
|
35
|
+
* They map a semantic name (color.background.default) to a base token (Neutral0).
|
|
34
36
|
*/
|
|
35
37
|
export interface DesignToken<TValue, Group extends Groups> extends Token<TValue, Group> {
|
|
36
38
|
attributes: {
|
|
@@ -53,6 +55,12 @@ export interface DesignToken<TValue, Group extends Groups> extends Token<TValue,
|
|
|
53
55
|
deprecated: string;
|
|
54
56
|
deleted: string;
|
|
55
57
|
replacement?: Replacement;
|
|
58
|
+
} | {
|
|
59
|
+
state: ExperimentalTokenState;
|
|
60
|
+
group: Group;
|
|
61
|
+
description: string;
|
|
62
|
+
introduced: string;
|
|
63
|
+
replacement?: ExperimentalReplacement;
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
declare type OmitDistributive<T, K extends PropertyKey> = T extends any ? T extends object ? Id<DeepOmit<T, K>> : T : never;
|
|
@@ -89,7 +97,13 @@ export declare type ShadowToken<BaseToken> = DesignToken<Array<{
|
|
|
89
97
|
inset?: boolean;
|
|
90
98
|
}>, 'shadow'>;
|
|
91
99
|
export declare type OpacityToken = DesignToken<string, 'opacity'>;
|
|
100
|
+
export declare type SpacingToken<BaseToken> = DesignToken<BaseToken, 'spacing'>;
|
|
92
101
|
export declare type RawToken = DesignToken<string, 'raw'>;
|
|
102
|
+
export interface ScaleToken extends BaseToken<string, 'scale'> {
|
|
103
|
+
attributes: {
|
|
104
|
+
group: 'scale';
|
|
105
|
+
};
|
|
106
|
+
}
|
|
93
107
|
export interface PaletteColorTokenSchema<PaletteValues extends string> {
|
|
94
108
|
value: {
|
|
95
109
|
opacity: {
|
|
@@ -101,6 +115,11 @@ export interface PaletteColorTokenSchema<PaletteValues extends string> {
|
|
|
101
115
|
palette: Record<PaletteValues, PaletteToken>;
|
|
102
116
|
};
|
|
103
117
|
}
|
|
118
|
+
export interface SpacingScaleTokenSchema<ScaleValues extends string> {
|
|
119
|
+
spacing: {
|
|
120
|
+
scale: Record<ScaleValues, ScaleToken>;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
104
123
|
export interface BackgroundColorTokenSchema<BaseToken> {
|
|
105
124
|
color: {
|
|
106
125
|
blanket: {
|
|
@@ -653,4 +672,25 @@ export interface DeprecatedTokenSchema<BaseToken> {
|
|
|
653
672
|
export declare type ElevationTokenSchema<BaseToken> = SurfaceTokenSchema<BaseToken> & ShadowTokenSchema<BaseToken>;
|
|
654
673
|
export declare type ColorTokenSchema<BaseToken> = BackgroundColorTokenSchema<BaseToken> & BorderColorTokenSchema<BaseToken> & IconColorTokenSchema<BaseToken> & TextColorTokenSchema<BaseToken> & AccentColorTokenSchema<BaseToken> & UtilTokenSchema<BaseToken>;
|
|
655
674
|
export declare type TokenSchema<BaseToken> = ColorTokenSchema<BaseToken> & ElevationTokenSchema<BaseToken>;
|
|
675
|
+
export interface SpacingTokenSchema<BaseToken> {
|
|
676
|
+
spacing: {
|
|
677
|
+
container: {
|
|
678
|
+
gutter: SpacingToken<BaseToken>;
|
|
679
|
+
};
|
|
680
|
+
scale: {
|
|
681
|
+
'0': SpacingToken<BaseToken>;
|
|
682
|
+
'025': SpacingToken<BaseToken>;
|
|
683
|
+
'050': SpacingToken<BaseToken>;
|
|
684
|
+
'075': SpacingToken<BaseToken>;
|
|
685
|
+
'100': SpacingToken<BaseToken>;
|
|
686
|
+
'150': SpacingToken<BaseToken>;
|
|
687
|
+
'200': SpacingToken<BaseToken>;
|
|
688
|
+
'250': SpacingToken<BaseToken>;
|
|
689
|
+
'300': SpacingToken<BaseToken>;
|
|
690
|
+
'400': SpacingToken<BaseToken>;
|
|
691
|
+
'500': SpacingToken<BaseToken>;
|
|
692
|
+
'600': SpacingToken<BaseToken>;
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
}
|
|
656
696
|
export {};
|
|
@@ -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::6a8bee72650af744db4926f40106688a>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: ({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::08ae35ae5d6bfe790b538db89c5876de>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: {
|
|
7
|
+
value: string;
|
|
8
|
+
attributes: {
|
|
9
|
+
group: string;
|
|
10
|
+
};
|
|
11
|
+
filePath: string;
|
|
12
|
+
isSource: boolean;
|
|
13
|
+
original: {
|
|
14
|
+
value: string;
|
|
15
|
+
attributes: {
|
|
16
|
+
group: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
name: string;
|
|
20
|
+
path: string[];
|
|
21
|
+
}[];
|
|
22
|
+
export default tokens;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::aed72cfe800fa74c79b858837a73edbf>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* This file is intended to help automate renaming of tokens.
|
|
5
|
+
*
|
|
6
|
+
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
+
* 2. Add a 'replacement' attribute to the token with the value 'my.new.token'
|
|
8
|
+
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
+
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
+
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
+
*
|
|
12
|
+
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
+
* migrate as many of these renames as possible.
|
|
14
|
+
*
|
|
15
|
+
* @codegen <<SignedSource::96a569b32686a2088f106c2ec4cd75d3>>
|
|
16
|
+
* @codegenCommand yarn build tokens
|
|
17
|
+
*/
|
|
18
|
+
import tokens from '../token-names';
|
|
19
|
+
declare type Token = keyof typeof tokens | string;
|
|
20
|
+
declare type RenameMap = {
|
|
21
|
+
path: string;
|
|
22
|
+
state: 'experimental' | 'deprecated' | 'deleted';
|
|
23
|
+
replacement: Token;
|
|
24
|
+
};
|
|
25
|
+
declare const renameMapper: RenameMap[];
|
|
26
|
+
export default renameMapper;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* This file is intended to help automate renaming of tokens.
|
|
5
|
-
*
|
|
6
|
-
* 1. Mark the old token's 'state' as deprecated
|
|
7
|
-
* 2. Add a 'rename' attribute to the token with the value 'my.new.token'
|
|
8
|
-
* 3. Create a new token matching the token above: 'my.new.token'
|
|
9
|
-
* 4. Run 'yarn build tokens' to have you changes reflected in this map
|
|
10
|
-
* 5. ESLint and other tools will now use this to automate replacing tokens
|
|
11
|
-
*
|
|
12
|
-
* These changes will then be picked up by our tooling which will attempt to
|
|
13
|
-
* migrate as many of these renames as possible.
|
|
14
|
-
*
|
|
15
|
-
* @codegen <<SignedSource::785f21ff78f22bc07f51619e1add8ba9>>
|
|
16
|
-
* @codegenCommand yarn build tokens
|
|
17
|
-
*/
|
|
18
|
-
import tokens from './token-names';
|
|
19
|
-
declare type Token = keyof typeof tokens | string;
|
|
20
|
-
declare type RenameMap = {
|
|
1
|
+
declare const renameMapper: {
|
|
21
2
|
path: string;
|
|
22
|
-
state:
|
|
23
|
-
replacement:
|
|
24
|
-
};
|
|
25
|
-
declare const renameMapper: RenameMap[];
|
|
3
|
+
state: "deprecated" | "deleted" | "experimental";
|
|
4
|
+
replacement: string;
|
|
5
|
+
}[];
|
|
26
6
|
export default renameMapper;
|