@atlaskit/tokens 11.1.1 → 11.3.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 +14 -0
- package/codemods/hypermod.config.tsx +3 -0
- package/codemods/remove-fallbacks/transform.tsx +26 -0
- package/dist/cjs/artifacts/palettes-raw/motion-palette.js +414 -63
- package/dist/cjs/artifacts/replacement-mapping.js +51 -3
- package/dist/cjs/artifacts/themes/atlassian-motion.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +25 -9
- package/dist/cjs/artifacts/token-names.js +19 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-motion.js +527 -47
- package/dist/cjs/babel-plugin/plugin.js +5 -0
- package/dist/cjs/entry-points/token-metadata.codegen.js +2342 -470
- package/dist/cjs/utils/token-usage-guidelines.js +117 -0
- package/dist/es2019/artifacts/palettes-raw/motion-palette.js +414 -63
- package/dist/es2019/artifacts/replacement-mapping.js +51 -3
- package/dist/es2019/artifacts/themes/atlassian-motion.js +119 -15
- package/dist/es2019/artifacts/token-default-values.js +25 -9
- package/dist/es2019/artifacts/token-names.js +19 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-motion.js +527 -47
- package/dist/es2019/babel-plugin/plugin.js +5 -0
- package/dist/es2019/entry-points/token-metadata.codegen.js +2342 -470
- package/dist/es2019/utils/token-usage-guidelines.js +109 -0
- package/dist/esm/artifacts/palettes-raw/motion-palette.js +414 -63
- package/dist/esm/artifacts/replacement-mapping.js +51 -3
- package/dist/esm/artifacts/themes/atlassian-motion.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +25 -9
- package/dist/esm/artifacts/token-names.js +19 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-motion.js +527 -47
- package/dist/esm/babel-plugin/plugin.js +5 -0
- package/dist/esm/entry-points/token-metadata.codegen.js +2342 -470
- package/dist/esm/utils/token-usage-guidelines.js +111 -0
- package/dist/types/artifacts/palettes-raw/motion-palette.d.ts +5 -3
- package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-motion.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +25 -9
- package/dist/types/artifacts/token-names.d.ts +37 -5
- package/dist/types/artifacts/tokens-raw/atlassian-motion.d.ts +5 -3
- package/dist/types/entry-points/css-type-schema.codegen.d.ts +2 -2
- package/dist/types/entry-points/token-metadata.codegen.d.ts +6 -2
- package/dist/types/types.d.ts +31 -2
- package/dist/types/utils/token-usage-guidelines.d.ts +8 -0
- package/dist/types-ts4.5/artifacts/palettes-raw/motion-palette.d.ts +5 -3
- package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-motion.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +25 -9
- package/dist/types-ts4.5/artifacts/token-names.d.ts +37 -5
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-motion.d.ts +5 -3
- package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +6 -2
- package/dist/types-ts4.5/types.d.ts +31 -2
- package/dist/types-ts4.5/utils/token-usage-guidelines.d.ts +8 -0
- package/package.json +12 -11
- package/tokens.docs.tsx +52 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export var getTokenUsageGuidelines = function getTokenUsageGuidelines(tokenId) {
|
|
2
|
+
var tokenTypes = Object.keys(usageMappings);
|
|
3
|
+
var foundType = tokenTypes.find(function (type) {
|
|
4
|
+
return tokenId.startsWith(type);
|
|
5
|
+
});
|
|
6
|
+
if (foundType && usageMappings[foundType]) {
|
|
7
|
+
return usageMappings[foundType];
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
usage: '',
|
|
11
|
+
cssProperties: []
|
|
12
|
+
}; // Fallback if tokenId doesn't match any token type
|
|
13
|
+
};
|
|
14
|
+
var usageMappings = {
|
|
15
|
+
'color.text': {
|
|
16
|
+
usage: 'The color for standard text. Use for primary, readable text in most user interface situations (e.g. color.text, color.text.subtle)',
|
|
17
|
+
cssProperties: ['color']
|
|
18
|
+
},
|
|
19
|
+
'color.link': {
|
|
20
|
+
usage: 'The color for hyperlinks. Use for elements that are links to external resources or navigation (e.g. color.link)',
|
|
21
|
+
cssProperties: ['color']
|
|
22
|
+
},
|
|
23
|
+
'color.icon': {
|
|
24
|
+
usage: 'The color for icons. Use for graphical icon elements (e.g. color.icon.brand)',
|
|
25
|
+
cssProperties: ['color', 'fill', 'stroke']
|
|
26
|
+
},
|
|
27
|
+
'color.border': {
|
|
28
|
+
usage: 'The color for borders or outlines. Use for border and outline colors on components (e.g. color.border, color.border.focused)',
|
|
29
|
+
cssProperties: ['border-color', 'outline-color']
|
|
30
|
+
},
|
|
31
|
+
'color.background': {
|
|
32
|
+
usage: 'The color for backgrounds. Use for areas behind content (e.g. color.background.neutral, color.background.selected)',
|
|
33
|
+
cssProperties: ['background-color']
|
|
34
|
+
},
|
|
35
|
+
'color.blanket': {
|
|
36
|
+
usage: 'The color for overlay "blankets" such as modals/dimmers/overlays (e.g. color.blanket)',
|
|
37
|
+
cssProperties: ['background-color']
|
|
38
|
+
},
|
|
39
|
+
'color.interaction': {
|
|
40
|
+
usage: 'Transparent interaction states for use over elements when their background color cannot change, such as images and avatars.',
|
|
41
|
+
cssProperties: ['background-color', 'border-color']
|
|
42
|
+
},
|
|
43
|
+
'color.skeleton': {
|
|
44
|
+
usage: 'The color for skeleton/loading placeholders (e.g. color.skeleton)',
|
|
45
|
+
cssProperties: ['background-color']
|
|
46
|
+
},
|
|
47
|
+
'color.chart': {
|
|
48
|
+
usage: 'The color for chart and data visualization elements (e.g. color.chart)',
|
|
49
|
+
cssProperties: ['fill', 'stroke', 'background-color', 'color']
|
|
50
|
+
},
|
|
51
|
+
'elevation.surface': {
|
|
52
|
+
usage: 'The base color for app and component surfaces. Raised and overlay surfaces should be used in concert with shadows (e.g. elevation.surface.raised should be used with elevation.shadow.raised)',
|
|
53
|
+
cssProperties: ['background-color']
|
|
54
|
+
},
|
|
55
|
+
'elevation.shadow': {
|
|
56
|
+
usage: 'Shadows for showing depth and elevation (e.g. elevation.shadow.raised, elevation.shadow.overlay). Use via the box-shadow property to indicate layer hierarchy',
|
|
57
|
+
cssProperties: ['box-shadow']
|
|
58
|
+
},
|
|
59
|
+
opacity: {
|
|
60
|
+
usage: 'Controls the transparency of an element (e.g. opacity.disabled, opacity.loading). Used for communication of loading and disabled states',
|
|
61
|
+
cssProperties: ['opacity']
|
|
62
|
+
},
|
|
63
|
+
utility: {
|
|
64
|
+
usage: 'Code-specific tokens to aid with migration or enable features such as automatic elevation detection',
|
|
65
|
+
cssProperties: []
|
|
66
|
+
},
|
|
67
|
+
space: {
|
|
68
|
+
usage: 'Spacing tokens define the distance, alignment, and layout positioning (e.g. space.100, space.200, space.050). Use for margin, padding, gap, and layout positioning such as top, left, etc',
|
|
69
|
+
cssProperties: ['padding', 'margin', 'gap', 'top', 'left', 'right', 'bottom', 'inset']
|
|
70
|
+
},
|
|
71
|
+
'font.heading': {
|
|
72
|
+
usage: 'A composite token that applies complete font-related properties for headings (e.g. font.heading.xlarge). Includes font size, weight, line height, and family',
|
|
73
|
+
cssProperties: ['font']
|
|
74
|
+
},
|
|
75
|
+
'font.body': {
|
|
76
|
+
usage: 'A composite token that applies all font properties for standard body text (e.g. font.body)',
|
|
77
|
+
cssProperties: ['font']
|
|
78
|
+
},
|
|
79
|
+
'font.metric': {
|
|
80
|
+
usage: 'Font settings for displaying numbers or metrics, ensuring legibility and alignment (e.g. font.metric)',
|
|
81
|
+
cssProperties: ['font']
|
|
82
|
+
},
|
|
83
|
+
'font.code': {
|
|
84
|
+
usage: 'Font settings for inline code and code blocks, enforcing monospace font and sizing (e.g. font.code)',
|
|
85
|
+
cssProperties: ['font', 'font-family', 'font-size', 'font-weight', 'line-height']
|
|
86
|
+
},
|
|
87
|
+
'font.weight': {
|
|
88
|
+
usage: 'Granular control of font weight (e.g. font.weight.regular, font.weight.semibold). Use only to override the default font tokens for custom typography components beyond what’s supported by Text, MetricText and Heading',
|
|
89
|
+
cssProperties: ['font-weight']
|
|
90
|
+
},
|
|
91
|
+
'font.family': {
|
|
92
|
+
usage: 'Granular control of font family (e.g. font.family.body). Use only when overriding the default in composites',
|
|
93
|
+
cssProperties: ['font-family']
|
|
94
|
+
},
|
|
95
|
+
'font.lineHeight': {
|
|
96
|
+
usage: 'Granular control of font line height (e.g. font.lineHeight.100). Use only when overriding the default in composites',
|
|
97
|
+
cssProperties: ['line-height']
|
|
98
|
+
},
|
|
99
|
+
radius: {
|
|
100
|
+
usage: 'Controls the rounding of element corners, often for containers (e.g. radius.medium, radius.circle)',
|
|
101
|
+
cssProperties: ['border-radius', 'border-top-left-radius', 'border-top-right-radius', 'border-bottom-left-radius', 'border-bottom-right-radius']
|
|
102
|
+
},
|
|
103
|
+
'border.width': {
|
|
104
|
+
usage: 'Controls the thickness of borders/dividers (e.g. border.width, border.width.selected). Use to standardize border widths throughout UI',
|
|
105
|
+
cssProperties: ['border-width']
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Types of tokens. Using path.subpath notation.
|
|
111
|
+
*/
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::1825c86d6664e1366bcb1ab73b5d2a4a>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
type TokenValue = string | number | {
|
|
7
7
|
duration: number;
|
|
8
8
|
curve: string;
|
|
9
|
-
keyframes
|
|
9
|
+
keyframes?: string[];
|
|
10
|
+
properties?: string[];
|
|
10
11
|
delay?: number;
|
|
11
12
|
} | Record<string, any>;
|
|
12
13
|
type TokenValueOriginal = string | number | {
|
|
13
14
|
duration: string;
|
|
14
15
|
curve: string;
|
|
15
|
-
keyframes
|
|
16
|
+
keyframes?: string[];
|
|
17
|
+
properties?: string[];
|
|
16
18
|
delay?: string;
|
|
17
19
|
} | Record<string, any>;
|
|
18
20
|
type TokenAttributes = {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::e46353a7329c8e87640e1586a2ec2ce7>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import type tokens from './token-names';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::335cdc677cad1d4b1fd602ac8f261e85>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\n@keyframes ScaleIn80 {\n 0% {\n transform: scale(0.8);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn85 {\n 0% {\n transform: scale(0.85);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn90 {\n 0% {\n transform: scale(0.9);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn95 {\n 0% {\n transform: scale(0.95);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleOut80 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n }\n}\n@keyframes ScaleOut85 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.85);\n }\n}\n@keyframes ScaleOut90 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.9);\n }\n}\n@keyframes ScaleOut95 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.95);\n }\n}\n@keyframes FadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes FadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes
|
|
6
|
+
declare const _default: "\n@keyframes SlideInTop {\n 0% {\n transform: translateY(8px);\n }\n 100% {\n transform: translateY(0px);\n }\n}\n@keyframes SlideInBottom {\n 0% {\n transform: translateY(-8px);\n }\n 100% {\n transform: translateY(0px);\n }\n}\n@keyframes SlideInLeft {\n 0% {\n transform: translateX(8px);\n }\n 100% {\n transform: translateX(0px);\n }\n}\n@keyframes SlideInRight {\n 0% {\n transform: translateX(-8px);\n }\n 100% {\n transform: translateX(0px);\n }\n}\n@keyframes SlideOutTop {\n 0% {\n transform: translateY(0px);\n }\n 100% {\n transform: translateY(4px);\n }\n}\n@keyframes SlideOutBottom {\n 0% {\n transform: translateY(0px);\n }\n 100% {\n transform: translateY(-4px);\n }\n}\n@keyframes SlideOutLeft {\n 0% {\n transform: translateX(0px);\n }\n 100% {\n transform: translateX(4px);\n }\n}\n@keyframes SlideOutRight {\n 0% {\n transform: translateX(0px);\n }\n 100% {\n transform: translateX(-4px);\n }\n}\n@keyframes ScaleIn80 {\n 0% {\n transform: scale(0.8);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn85 {\n 0% {\n transform: scale(0.85);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn90 {\n 0% {\n transform: scale(0.9);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn95 {\n 0% {\n transform: scale(0.95);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleOut80 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n }\n}\n@keyframes ScaleOut85 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.85);\n }\n}\n@keyframes ScaleOut90 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.9);\n }\n}\n@keyframes ScaleOut95 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.95);\n }\n}\n@keyframes FadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes FadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes SlideIn15PercentLeft {\n 0% {\n transform: translateX(-15%);\n transform-origin: left;\n }\n 100% {\n transform: translateX(0px);\n transform-origin: left;\n }\n}\n@keyframes SlideOut15PercentLeft {\n 0% {\n transform: translateX(0px);\n transform-origin: left;\n }\n 100% {\n transform: translateX(-15%);\n transform-origin: left;\n }\n}\n@keyframes SlideIn50PercentLeft {\n 0% {\n transform: translateX(-50%);\n transform-origin: left;\n }\n 100% {\n transform: translateX(0px);\n transform-origin: left;\n }\n}\n@keyframes SlideOut50PercentLeft {\n 0% {\n transform: translateX(0px);\n transform-origin: left;\n }\n 100% {\n transform: translateX(-50%);\n transform-origin: left;\n }\n}\nhtml[data-theme~=\"motion:motion\"], [data-subtree-theme][data-theme~=\"motion:motion\"] {\n --ds-avatar-enter: 150ms cubic-bezier(0.6, 0, 0.8, 0.6) ScaleIn80, 150ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeIn;\n --ds-avatar-exit: 100ms cubic-bezier(0.32, 0, 0.67, 0) ScaleOut80, 100ms cubic-bezier(0.32, 0, 0.67, 0) FadeOut;\n --ds-avatar-hovered: transform 100ms cubic-bezier(0.32, 0, 0.67, 0);\n --ds-content-enter-long: 400ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-enter-medium: 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-enter-short: 100ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-exit-long: 200ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-content-exit-medium: 100ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-content-exit-short: 50ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-flag-enter: 250ms cubic-bezier(0, 0.4, 0, 1) SlideIn50PercentLeft, 250ms cubic-bezier(0, 0.4, 0, 1) FadeIn;\n --ds-flag-exit: 200ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOut15PercentLeft, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-flag-reposition: transform 300ms cubic-bezier(0.4, 0, 0, 1);\n --ds-modal-enter: 200ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-modal-exit: 200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut;\n --ds-popup-enter-bottom: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInBottom, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-left: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInLeft, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-right: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInRight, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-top: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInTop, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-exit-bottom: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutBottom, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-left: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutLeft, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-right: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutRight, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-top: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutTop, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-spotlight-enter: 250ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 250ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-spotlight-exit: 200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -7,18 +7,34 @@
|
|
|
7
7
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
8
8
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
9
9
|
*
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::c8dea3807fda6392faffb7299b6ecb9a>>
|
|
11
11
|
* @codegenCommand yarn build tokens
|
|
12
12
|
*/
|
|
13
13
|
declare const defaultTokenValues: {
|
|
14
|
-
readonly 'motion.
|
|
15
|
-
readonly 'motion.
|
|
16
|
-
readonly 'motion.
|
|
17
|
-
readonly 'motion.content.
|
|
18
|
-
readonly 'motion.content.
|
|
19
|
-
readonly 'motion.content.
|
|
20
|
-
readonly 'motion.
|
|
21
|
-
readonly 'motion.
|
|
14
|
+
readonly 'motion.avatar.enter': "150ms cubic-bezier(0.6, 0, 0.8, 0.6) ScaleIn80, 150ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeIn";
|
|
15
|
+
readonly 'motion.avatar.exit': "100ms cubic-bezier(0.32, 0, 0.67, 0) ScaleOut80, 100ms cubic-bezier(0.32, 0, 0.67, 0) FadeOut";
|
|
16
|
+
readonly 'motion.avatar.hovered': "transform 100ms cubic-bezier(0.32, 0, 0.67, 0)";
|
|
17
|
+
readonly 'motion.content.enter.long': "400ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
18
|
+
readonly 'motion.content.enter.medium': "200ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
19
|
+
readonly 'motion.content.enter.short': "100ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
20
|
+
readonly 'motion.content.exit.long': "200ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
21
|
+
readonly 'motion.content.exit.medium': "100ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
22
|
+
readonly 'motion.content.exit.short': "50ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
23
|
+
readonly 'motion.flag.enter': "250ms cubic-bezier(0, 0.4, 0, 1) SlideIn50PercentLeft, 250ms cubic-bezier(0, 0.4, 0, 1) FadeIn";
|
|
24
|
+
readonly 'motion.flag.exit': "200ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOut15PercentLeft, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
25
|
+
readonly 'motion.flag.reposition': "transform 300ms cubic-bezier(0.4, 0, 0, 1)";
|
|
26
|
+
readonly 'motion.modal.enter': "200ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
27
|
+
readonly 'motion.modal.exit': "200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut";
|
|
28
|
+
readonly 'motion.popup.enter.bottom': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInBottom, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
29
|
+
readonly 'motion.popup.enter.left': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInLeft, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
30
|
+
readonly 'motion.popup.enter.right': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInRight, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
31
|
+
readonly 'motion.popup.enter.top': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInTop, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
32
|
+
readonly 'motion.popup.exit.bottom': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutBottom, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
33
|
+
readonly 'motion.popup.exit.left': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutLeft, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
34
|
+
readonly 'motion.popup.exit.right': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutRight, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
35
|
+
readonly 'motion.popup.exit.top': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutTop, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
36
|
+
readonly 'motion.spotlight.enter': "250ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 250ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
37
|
+
readonly 'motion.spotlight.exit': "200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut";
|
|
22
38
|
readonly 'color.text': "#292A2E";
|
|
23
39
|
readonly 'color.text.accent.lime': "#4C6B1F";
|
|
24
40
|
readonly 'color.text.accent.lime.bolder': "#37471F";
|
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::921c184d9a6e3b52bd2ab053939ce9ad>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
7
|
+
readonly 'motion.avatar.enter': "--ds-avatar-enter";
|
|
8
|
+
readonly 'motion.avatar.exit': "--ds-avatar-exit";
|
|
9
|
+
readonly 'motion.avatar.hovered': "--ds-avatar-hovered";
|
|
7
10
|
readonly 'motion.content.enter.long': "--ds-content-enter-long";
|
|
8
11
|
readonly 'motion.content.enter.medium': "--ds-content-enter-medium";
|
|
9
12
|
readonly 'motion.content.enter.short': "--ds-content-enter-short";
|
|
10
13
|
readonly 'motion.content.exit.long': "--ds-content-exit-long";
|
|
11
14
|
readonly 'motion.content.exit.medium': "--ds-content-exit-medium";
|
|
12
15
|
readonly 'motion.content.exit.short': "--ds-content-exit-short";
|
|
13
|
-
readonly 'motion.
|
|
14
|
-
readonly 'motion.
|
|
16
|
+
readonly 'motion.flag.enter': "--ds-flag-enter";
|
|
17
|
+
readonly 'motion.flag.exit': "--ds-flag-exit";
|
|
18
|
+
readonly 'motion.flag.reposition': "--ds-flag-reposition";
|
|
19
|
+
readonly 'motion.modal.enter': "--ds-modal-enter";
|
|
20
|
+
readonly 'motion.modal.exit': "--ds-modal-exit";
|
|
21
|
+
readonly 'motion.popup.enter.bottom': "--ds-popup-enter-bottom";
|
|
22
|
+
readonly 'motion.popup.enter.left': "--ds-popup-enter-left";
|
|
23
|
+
readonly 'motion.popup.enter.right': "--ds-popup-enter-right";
|
|
24
|
+
readonly 'motion.popup.enter.top': "--ds-popup-enter-top";
|
|
25
|
+
readonly 'motion.popup.exit.bottom': "--ds-popup-exit-bottom";
|
|
26
|
+
readonly 'motion.popup.exit.left': "--ds-popup-exit-left";
|
|
27
|
+
readonly 'motion.popup.exit.right': "--ds-popup-exit-right";
|
|
28
|
+
readonly 'motion.popup.exit.top': "--ds-popup-exit-top";
|
|
29
|
+
readonly 'motion.spotlight.enter': "--ds-spotlight-enter";
|
|
30
|
+
readonly 'motion.spotlight.exit': "--ds-spotlight-exit";
|
|
15
31
|
readonly 'color.text': "--ds-text";
|
|
16
32
|
readonly 'color.text.accent.lime': "--ds-text-accent-lime";
|
|
17
33
|
readonly 'color.text.accent.lime.bolder': "--ds-text-accent-lime-bolder";
|
|
@@ -482,14 +498,30 @@ declare const tokens: {
|
|
|
482
498
|
readonly 'border.width.focused': "--ds-border-width-focused";
|
|
483
499
|
};
|
|
484
500
|
export type CSSTokenMap = {
|
|
501
|
+
'motion.avatar.enter': 'var(--ds-avatar-enter)';
|
|
502
|
+
'motion.avatar.exit': 'var(--ds-avatar-exit)';
|
|
503
|
+
'motion.avatar.hovered': 'var(--ds-avatar-hovered)';
|
|
485
504
|
'motion.content.enter.long': 'var(--ds-content-enter-long)';
|
|
486
505
|
'motion.content.enter.medium': 'var(--ds-content-enter-medium)';
|
|
487
506
|
'motion.content.enter.short': 'var(--ds-content-enter-short)';
|
|
488
507
|
'motion.content.exit.long': 'var(--ds-content-exit-long)';
|
|
489
508
|
'motion.content.exit.medium': 'var(--ds-content-exit-medium)';
|
|
490
509
|
'motion.content.exit.short': 'var(--ds-content-exit-short)';
|
|
491
|
-
'motion.
|
|
492
|
-
'motion.
|
|
510
|
+
'motion.flag.enter': 'var(--ds-flag-enter)';
|
|
511
|
+
'motion.flag.exit': 'var(--ds-flag-exit)';
|
|
512
|
+
'motion.flag.reposition': 'var(--ds-flag-reposition)';
|
|
513
|
+
'motion.modal.enter': 'var(--ds-modal-enter)';
|
|
514
|
+
'motion.modal.exit': 'var(--ds-modal-exit)';
|
|
515
|
+
'motion.popup.enter.bottom': 'var(--ds-popup-enter-bottom)';
|
|
516
|
+
'motion.popup.enter.left': 'var(--ds-popup-enter-left)';
|
|
517
|
+
'motion.popup.enter.right': 'var(--ds-popup-enter-right)';
|
|
518
|
+
'motion.popup.enter.top': 'var(--ds-popup-enter-top)';
|
|
519
|
+
'motion.popup.exit.bottom': 'var(--ds-popup-exit-bottom)';
|
|
520
|
+
'motion.popup.exit.left': 'var(--ds-popup-exit-left)';
|
|
521
|
+
'motion.popup.exit.right': 'var(--ds-popup-exit-right)';
|
|
522
|
+
'motion.popup.exit.top': 'var(--ds-popup-exit-top)';
|
|
523
|
+
'motion.spotlight.enter': 'var(--ds-spotlight-enter)';
|
|
524
|
+
'motion.spotlight.exit': 'var(--ds-spotlight-exit)';
|
|
493
525
|
'color.text': 'var(--ds-text)';
|
|
494
526
|
'color.text.accent.lime': 'var(--ds-text-accent-lime)';
|
|
495
527
|
'color.text.accent.lime.bolder': 'var(--ds-text-accent-lime-bolder)';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::a05c62bc089a075de35d08a2570d9421>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
type TokenValue = {
|
|
7
7
|
duration: number;
|
|
8
8
|
curve: string;
|
|
9
|
-
keyframes
|
|
9
|
+
keyframes?: string[];
|
|
10
|
+
properties?: string[];
|
|
10
11
|
delay?: number;
|
|
11
12
|
};
|
|
12
13
|
type TokenValueOriginal = {
|
|
13
14
|
duration: string;
|
|
14
15
|
curve: string;
|
|
15
|
-
keyframes
|
|
16
|
+
keyframes?: string[];
|
|
17
|
+
properties?: string[];
|
|
16
18
|
delay?: string;
|
|
17
19
|
};
|
|
18
20
|
type TokenAttributes = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Strict design token based typedef representing a subset of safe CSS properties.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::08c6f944d8c913dff7bdf4becc44b834>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
export type BackgroundColorHovered = 'var(--ds-background-accent-lime-subtlest-hovered)' | 'var(--ds-background-accent-lime-subtler-hovered)' | 'var(--ds-background-accent-lime-subtle-hovered)' | 'var(--ds-background-accent-lime-bolder-hovered)' | 'var(--ds-background-accent-red-subtlest-hovered)' | 'var(--ds-background-accent-red-subtler-hovered)' | 'var(--ds-background-accent-red-subtle-hovered)' | 'var(--ds-background-accent-red-bolder-hovered)' | 'var(--ds-background-accent-orange-subtlest-hovered)' | 'var(--ds-background-accent-orange-subtler-hovered)' | 'var(--ds-background-accent-orange-subtle-hovered)' | 'var(--ds-background-accent-orange-bolder-hovered)' | 'var(--ds-background-accent-yellow-subtlest-hovered)' | 'var(--ds-background-accent-yellow-subtler-hovered)' | 'var(--ds-background-accent-yellow-subtle-hovered)' | 'var(--ds-background-accent-yellow-bolder-hovered)' | 'var(--ds-background-accent-green-subtlest-hovered)' | 'var(--ds-background-accent-green-subtler-hovered)' | 'var(--ds-background-accent-green-subtle-hovered)' | 'var(--ds-background-accent-green-bolder-hovered)' | 'var(--ds-background-accent-teal-subtlest-hovered)' | 'var(--ds-background-accent-teal-subtler-hovered)' | 'var(--ds-background-accent-teal-subtle-hovered)' | 'var(--ds-background-accent-teal-bolder-hovered)' | 'var(--ds-background-accent-blue-subtlest-hovered)' | 'var(--ds-background-accent-blue-subtler-hovered)' | 'var(--ds-background-accent-blue-subtle-hovered)' | 'var(--ds-background-accent-blue-bolder-hovered)' | 'var(--ds-background-accent-purple-subtlest-hovered)' | 'var(--ds-background-accent-purple-subtler-hovered)' | 'var(--ds-background-accent-purple-subtle-hovered)' | 'var(--ds-background-accent-purple-bolder-hovered)' | 'var(--ds-background-accent-magenta-subtlest-hovered)' | 'var(--ds-background-accent-magenta-subtler-hovered)' | 'var(--ds-background-accent-magenta-subtle-hovered)' | 'var(--ds-background-accent-magenta-bolder-hovered)' | 'var(--ds-background-accent-gray-subtlest-hovered)' | 'var(--ds-background-accent-gray-subtler-hovered)' | 'var(--ds-background-accent-gray-subtle-hovered)' | 'var(--ds-background-accent-gray-bolder-hovered)' | 'var(--ds-background-input-hovered)' | 'var(--ds-background-inverse-subtle-hovered)' | 'var(--ds-background-neutral-hovered)' | 'var(--ds-background-neutral-subtle-hovered)' | 'var(--ds-background-neutral-bold-hovered)' | 'var(--ds-background-selected-hovered)' | 'var(--ds-background-selected-bold-hovered)' | 'var(--ds-background-brand-subtlest-hovered)' | 'var(--ds-background-brand-bold-hovered)' | 'var(--ds-background-brand-boldest-hovered)' | 'var(--ds-background-danger-hovered)' | 'var(--ds-background-danger-subtler-hovered)' | 'var(--ds-background-danger-bold-hovered)' | 'var(--ds-background-warning-hovered)' | 'var(--ds-background-warning-subtler-hovered)' | 'var(--ds-background-warning-bold-hovered)' | 'var(--ds-background-success-hovered)' | 'var(--ds-background-success-subtler-hovered)' | 'var(--ds-background-success-bold-hovered)' | 'var(--ds-background-discovery-hovered)' | 'var(--ds-background-discovery-subtler-hovered)' | 'var(--ds-background-discovery-bold-hovered)' | 'var(--ds-background-information-hovered)' | 'var(--ds-background-information-subtler-hovered)' | 'var(--ds-background-information-bold-hovered)' | 'var(--ds-surface-hovered)' | 'var(--ds-surface-overlay-hovered)' | 'var(--ds-surface-raised-hovered)';
|
|
@@ -27,7 +27,7 @@ export type TextColor = 'transparent' | TextColorPressed | 'var(--ds-text)' | 'v
|
|
|
27
27
|
export type Opacity = 'var(--ds-opacity-disabled)' | 'var(--ds-opacity-loading)' | 0 | 1 | '0' | '1';
|
|
28
28
|
export type FontWeight = 'var(--ds-font-weight-regular)' | 'var(--ds-font-weight-medium)' | 'var(--ds-font-weight-semibold)' | 'var(--ds-font-weight-bold)' | 'inherit' | 'initial' | 'unset';
|
|
29
29
|
export type FontFamily = 'var(--ds-font-family-heading)' | 'var(--ds-font-family-body)' | 'var(--ds-font-family-code)' | 'var(--ds-font-family-brand-heading)' | 'var(--ds-font-family-brand-body)';
|
|
30
|
-
export type Motion = 'var(--ds-content-enter-long)' | 'var(--ds-content-enter-medium)' | 'var(--ds-content-enter-short)' | 'var(--ds-content-exit-long)' | 'var(--ds-content-exit-medium)' | 'var(--ds-content-exit-short)' | 'var(--ds-
|
|
30
|
+
export type Motion = 'var(--ds-avatar-enter)' | 'var(--ds-avatar-exit)' | 'var(--ds-avatar-hovered)' | 'var(--ds-content-enter-long)' | 'var(--ds-content-enter-medium)' | 'var(--ds-content-enter-short)' | 'var(--ds-content-exit-long)' | 'var(--ds-content-exit-medium)' | 'var(--ds-content-exit-short)' | 'var(--ds-flag-enter)' | 'var(--ds-flag-exit)' | 'var(--ds-flag-reposition)' | 'var(--ds-modal-enter)' | 'var(--ds-modal-exit)' | 'var(--ds-popup-enter-bottom)' | 'var(--ds-popup-enter-left)' | 'var(--ds-popup-enter-right)' | 'var(--ds-popup-enter-top)' | 'var(--ds-popup-exit-bottom)' | 'var(--ds-popup-exit-left)' | 'var(--ds-popup-exit-right)' | 'var(--ds-popup-exit-top)' | 'var(--ds-spotlight-enter)' | 'var(--ds-spotlight-exit)';
|
|
31
31
|
export interface CSSPropertiesHovered {
|
|
32
32
|
backgroundColor: BackgroundColorHovered;
|
|
33
33
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
3
|
*
|
|
4
|
-
* Metadata for generation of
|
|
4
|
+
* Metadata for generation of `@atlaskit/ads-mcp` and https://atlassian.design/llms-tokens.txt.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c219f53298a002dc5340fcc003a56953>>
|
|
7
7
|
* @codegenCommand yarn build tokens
|
|
8
8
|
*/
|
|
9
9
|
export interface Token {
|
|
@@ -11,5 +11,9 @@ export interface Token {
|
|
|
11
11
|
path: string[];
|
|
12
12
|
description: string;
|
|
13
13
|
exampleValue?: string | number;
|
|
14
|
+
usageGuidelines: {
|
|
15
|
+
usage: string;
|
|
16
|
+
cssProperties: string[];
|
|
17
|
+
};
|
|
14
18
|
}
|
|
15
19
|
export declare const tokens: Token[];
|
package/dist/types/types.d.ts
CHANGED
|
@@ -132,10 +132,11 @@ export interface ShapeScaleTokenSchema<RadiusScaleValues extends string, SizeSca
|
|
|
132
132
|
};
|
|
133
133
|
radius: Record<RadiusScaleValues, ShapeSchemaValue>;
|
|
134
134
|
}
|
|
135
|
-
export interface MotionScaleTokenSchema<DurationScaleValues extends string, BezierCurveScaleValues extends string, KeyframeScaleValues extends string> {
|
|
135
|
+
export interface MotionScaleTokenSchema<DurationScaleValues extends string, BezierCurveScaleValues extends string, KeyframeScaleValues extends string, TransitionPropertyScaleValues extends string> {
|
|
136
136
|
duration: Record<DurationScaleValues, BaseToken<number, 'motion'>>;
|
|
137
137
|
curve: Record<BezierCurveScaleValues, BaseToken<string, 'motion'>>;
|
|
138
138
|
keyframe: Record<KeyframeScaleValues, BaseToken<Record<string, object>, 'keyframe'>>;
|
|
139
|
+
properties: Record<TransitionPropertyScaleValues, BaseToken<string, 'motion'>>;
|
|
139
140
|
}
|
|
140
141
|
export interface FontSizeScaleTokenSchema<ScaleValues extends string> {
|
|
141
142
|
fontSize: Record<ScaleValues, BaseToken<string | number, 'fontSize'>>;
|
|
@@ -1127,7 +1128,35 @@ export interface FontFamilyTokenSchema<BaseToken> {
|
|
|
1127
1128
|
*/
|
|
1128
1129
|
export interface MotionTokenSchema<BaseToken> {
|
|
1129
1130
|
motion: {
|
|
1130
|
-
|
|
1131
|
+
avatar: {
|
|
1132
|
+
enter: MotionToken<BaseToken>;
|
|
1133
|
+
exit: MotionToken<BaseToken>;
|
|
1134
|
+
hovered: MotionToken<BaseToken>;
|
|
1135
|
+
};
|
|
1136
|
+
flag: {
|
|
1137
|
+
enter: MotionToken<BaseToken>;
|
|
1138
|
+
exit: MotionToken<BaseToken>;
|
|
1139
|
+
reposition: MotionToken<BaseToken>;
|
|
1140
|
+
};
|
|
1141
|
+
modal: {
|
|
1142
|
+
enter: MotionToken<BaseToken>;
|
|
1143
|
+
exit: MotionToken<BaseToken>;
|
|
1144
|
+
};
|
|
1145
|
+
popup: {
|
|
1146
|
+
enter: {
|
|
1147
|
+
top: MotionToken<BaseToken>;
|
|
1148
|
+
bottom: MotionToken<BaseToken>;
|
|
1149
|
+
left: MotionToken<BaseToken>;
|
|
1150
|
+
right: MotionToken<BaseToken>;
|
|
1151
|
+
};
|
|
1152
|
+
exit: {
|
|
1153
|
+
top: MotionToken<BaseToken>;
|
|
1154
|
+
bottom: MotionToken<BaseToken>;
|
|
1155
|
+
left: MotionToken<BaseToken>;
|
|
1156
|
+
right: MotionToken<BaseToken>;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
spotlight: {
|
|
1131
1160
|
enter: MotionToken<BaseToken>;
|
|
1132
1161
|
exit: MotionToken<BaseToken>;
|
|
1133
1162
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getTokenUsageGuidelines: (tokenId: string) => {
|
|
2
|
+
usage: string;
|
|
3
|
+
cssProperties: string[];
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Types of tokens. Using path.subpath notation.
|
|
7
|
+
*/
|
|
8
|
+
export type TokenCategory = 'color.text' | 'color.link' | 'color.icon' | 'color.border' | 'color.background' | 'color.blanket' | 'color.interaction' | 'color.skeleton' | 'color.chart' | 'elevation.surface' | 'elevation.shadow' | 'opacity' | 'utility' | 'space' | 'font.heading' | 'font.body' | 'font.metric' | 'font.code' | 'font.weight' | 'font.family' | 'font.lineHeight' | 'radius' | 'border.width';
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::1825c86d6664e1366bcb1ab73b5d2a4a>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
type TokenValue = string | number | {
|
|
7
7
|
duration: number;
|
|
8
8
|
curve: string;
|
|
9
|
-
keyframes
|
|
9
|
+
keyframes?: string[];
|
|
10
|
+
properties?: string[];
|
|
10
11
|
delay?: number;
|
|
11
12
|
} | Record<string, any>;
|
|
12
13
|
type TokenValueOriginal = string | number | {
|
|
13
14
|
duration: string;
|
|
14
15
|
curve: string;
|
|
15
|
-
keyframes
|
|
16
|
+
keyframes?: string[];
|
|
17
|
+
properties?: string[];
|
|
16
18
|
delay?: string;
|
|
17
19
|
} | Record<string, any>;
|
|
18
20
|
type TokenAttributes = {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* These changes will then be picked up by our tooling which will attempt to
|
|
13
13
|
* migrate as many of these renames as possible.
|
|
14
14
|
*
|
|
15
|
-
* @codegen <<SignedSource::
|
|
15
|
+
* @codegen <<SignedSource::e46353a7329c8e87640e1586a2ec2ce7>>
|
|
16
16
|
* @codegenCommand yarn build tokens
|
|
17
17
|
*/
|
|
18
18
|
import type tokens from './token-names';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::335cdc677cad1d4b1fd602ac8f261e85>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "\n@keyframes ScaleIn80 {\n 0% {\n transform: scale(0.8);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn85 {\n 0% {\n transform: scale(0.85);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn90 {\n 0% {\n transform: scale(0.9);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn95 {\n 0% {\n transform: scale(0.95);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleOut80 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n }\n}\n@keyframes ScaleOut85 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.85);\n }\n}\n@keyframes ScaleOut90 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.9);\n }\n}\n@keyframes ScaleOut95 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.95);\n }\n}\n@keyframes FadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes FadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes
|
|
6
|
+
declare const _default: "\n@keyframes SlideInTop {\n 0% {\n transform: translateY(8px);\n }\n 100% {\n transform: translateY(0px);\n }\n}\n@keyframes SlideInBottom {\n 0% {\n transform: translateY(-8px);\n }\n 100% {\n transform: translateY(0px);\n }\n}\n@keyframes SlideInLeft {\n 0% {\n transform: translateX(8px);\n }\n 100% {\n transform: translateX(0px);\n }\n}\n@keyframes SlideInRight {\n 0% {\n transform: translateX(-8px);\n }\n 100% {\n transform: translateX(0px);\n }\n}\n@keyframes SlideOutTop {\n 0% {\n transform: translateY(0px);\n }\n 100% {\n transform: translateY(4px);\n }\n}\n@keyframes SlideOutBottom {\n 0% {\n transform: translateY(0px);\n }\n 100% {\n transform: translateY(-4px);\n }\n}\n@keyframes SlideOutLeft {\n 0% {\n transform: translateX(0px);\n }\n 100% {\n transform: translateX(4px);\n }\n}\n@keyframes SlideOutRight {\n 0% {\n transform: translateX(0px);\n }\n 100% {\n transform: translateX(-4px);\n }\n}\n@keyframes ScaleIn80 {\n 0% {\n transform: scale(0.8);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn85 {\n 0% {\n transform: scale(0.85);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn90 {\n 0% {\n transform: scale(0.9);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleIn95 {\n 0% {\n transform: scale(0.95);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes ScaleOut80 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n }\n}\n@keyframes ScaleOut85 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.85);\n }\n}\n@keyframes ScaleOut90 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.9);\n }\n}\n@keyframes ScaleOut95 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.95);\n }\n}\n@keyframes FadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes FadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes SlideIn15PercentLeft {\n 0% {\n transform: translateX(-15%);\n transform-origin: left;\n }\n 100% {\n transform: translateX(0px);\n transform-origin: left;\n }\n}\n@keyframes SlideOut15PercentLeft {\n 0% {\n transform: translateX(0px);\n transform-origin: left;\n }\n 100% {\n transform: translateX(-15%);\n transform-origin: left;\n }\n}\n@keyframes SlideIn50PercentLeft {\n 0% {\n transform: translateX(-50%);\n transform-origin: left;\n }\n 100% {\n transform: translateX(0px);\n transform-origin: left;\n }\n}\n@keyframes SlideOut50PercentLeft {\n 0% {\n transform: translateX(0px);\n transform-origin: left;\n }\n 100% {\n transform: translateX(-50%);\n transform-origin: left;\n }\n}\nhtml[data-theme~=\"motion:motion\"], [data-subtree-theme][data-theme~=\"motion:motion\"] {\n --ds-avatar-enter: 150ms cubic-bezier(0.6, 0, 0.8, 0.6) ScaleIn80, 150ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeIn;\n --ds-avatar-exit: 100ms cubic-bezier(0.32, 0, 0.67, 0) ScaleOut80, 100ms cubic-bezier(0.32, 0, 0.67, 0) FadeOut;\n --ds-avatar-hovered: transform 100ms cubic-bezier(0.32, 0, 0.67, 0);\n --ds-content-enter-long: 400ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-enter-medium: 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-enter-short: 100ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-content-exit-long: 200ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-content-exit-medium: 100ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-content-exit-short: 50ms cubic-bezier(0.4, 0, 0, 1) FadeOut;\n --ds-flag-enter: 250ms cubic-bezier(0, 0.4, 0, 1) SlideIn50PercentLeft, 250ms cubic-bezier(0, 0.4, 0, 1) FadeIn;\n --ds-flag-exit: 200ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOut15PercentLeft, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-flag-reposition: transform 300ms cubic-bezier(0.4, 0, 0, 1);\n --ds-modal-enter: 200ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-modal-exit: 200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut;\n --ds-popup-enter-bottom: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInBottom, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-left: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInLeft, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-right: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInRight, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-enter-top: 150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInTop, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn;\n --ds-popup-exit-bottom: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutBottom, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-left: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutLeft, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-right: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutRight, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-popup-exit-top: 100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutTop, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut;\n --ds-spotlight-enter: 250ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 250ms cubic-bezier(0.4, 0, 0, 1) FadeIn;\n --ds-spotlight-exit: 200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut;\n}\n";
|
|
7
7
|
export default _default;
|
|
@@ -7,18 +7,34 @@
|
|
|
7
7
|
* Token names mapped to their value in the default Atlassian themes ('light').
|
|
8
8
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
9
9
|
*
|
|
10
|
-
* @codegen <<SignedSource::
|
|
10
|
+
* @codegen <<SignedSource::c8dea3807fda6392faffb7299b6ecb9a>>
|
|
11
11
|
* @codegenCommand yarn build tokens
|
|
12
12
|
*/
|
|
13
13
|
declare const defaultTokenValues: {
|
|
14
|
-
readonly 'motion.
|
|
15
|
-
readonly 'motion.
|
|
16
|
-
readonly 'motion.
|
|
17
|
-
readonly 'motion.content.
|
|
18
|
-
readonly 'motion.content.
|
|
19
|
-
readonly 'motion.content.
|
|
20
|
-
readonly 'motion.
|
|
21
|
-
readonly 'motion.
|
|
14
|
+
readonly 'motion.avatar.enter': "150ms cubic-bezier(0.6, 0, 0.8, 0.6) ScaleIn80, 150ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeIn";
|
|
15
|
+
readonly 'motion.avatar.exit': "100ms cubic-bezier(0.32, 0, 0.67, 0) ScaleOut80, 100ms cubic-bezier(0.32, 0, 0.67, 0) FadeOut";
|
|
16
|
+
readonly 'motion.avatar.hovered': "transform 100ms cubic-bezier(0.32, 0, 0.67, 0)";
|
|
17
|
+
readonly 'motion.content.enter.long': "400ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
18
|
+
readonly 'motion.content.enter.medium': "200ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
19
|
+
readonly 'motion.content.enter.short': "100ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
20
|
+
readonly 'motion.content.exit.long': "200ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
21
|
+
readonly 'motion.content.exit.medium': "100ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
22
|
+
readonly 'motion.content.exit.short': "50ms cubic-bezier(0.4, 0, 0, 1) FadeOut";
|
|
23
|
+
readonly 'motion.flag.enter': "250ms cubic-bezier(0, 0.4, 0, 1) SlideIn50PercentLeft, 250ms cubic-bezier(0, 0.4, 0, 1) FadeIn";
|
|
24
|
+
readonly 'motion.flag.exit': "200ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOut15PercentLeft, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
25
|
+
readonly 'motion.flag.reposition': "transform 300ms cubic-bezier(0.4, 0, 0, 1)";
|
|
26
|
+
readonly 'motion.modal.enter': "200ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 200ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
27
|
+
readonly 'motion.modal.exit': "200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut";
|
|
28
|
+
readonly 'motion.popup.enter.bottom': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInBottom, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
29
|
+
readonly 'motion.popup.enter.left': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInLeft, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
30
|
+
readonly 'motion.popup.enter.right': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInRight, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
31
|
+
readonly 'motion.popup.enter.top': "150ms cubic-bezier(0.4, 1, 0.6, 1) SlideInTop, 150ms cubic-bezier(0.4, 1, 0.6, 1) FadeIn";
|
|
32
|
+
readonly 'motion.popup.exit.bottom': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutBottom, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
33
|
+
readonly 'motion.popup.exit.left': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutLeft, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
34
|
+
readonly 'motion.popup.exit.right': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutRight, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
35
|
+
readonly 'motion.popup.exit.top': "100ms cubic-bezier(0.6, 0, 0.8, 0.6) SlideOutTop, 100ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut";
|
|
36
|
+
readonly 'motion.spotlight.enter': "250ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95, 250ms cubic-bezier(0.4, 0, 0, 1) FadeIn";
|
|
37
|
+
readonly 'motion.spotlight.exit': "200ms cubic-bezier(0.4, 1, 0.6, 1) ScaleOut95, 200ms cubic-bezier(0.4, 1, 0.6, 1) FadeOut";
|
|
22
38
|
readonly 'color.text': "#292A2E";
|
|
23
39
|
readonly 'color.text.accent.lime': "#4C6B1F";
|
|
24
40
|
readonly 'color.text.accent.lime.bolder': "#37471F";
|
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::921c184d9a6e3b52bd2ab053939ce9ad>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const tokens: {
|
|
7
|
+
readonly 'motion.avatar.enter': "--ds-avatar-enter";
|
|
8
|
+
readonly 'motion.avatar.exit': "--ds-avatar-exit";
|
|
9
|
+
readonly 'motion.avatar.hovered': "--ds-avatar-hovered";
|
|
7
10
|
readonly 'motion.content.enter.long': "--ds-content-enter-long";
|
|
8
11
|
readonly 'motion.content.enter.medium': "--ds-content-enter-medium";
|
|
9
12
|
readonly 'motion.content.enter.short': "--ds-content-enter-short";
|
|
10
13
|
readonly 'motion.content.exit.long': "--ds-content-exit-long";
|
|
11
14
|
readonly 'motion.content.exit.medium': "--ds-content-exit-medium";
|
|
12
15
|
readonly 'motion.content.exit.short': "--ds-content-exit-short";
|
|
13
|
-
readonly 'motion.
|
|
14
|
-
readonly 'motion.
|
|
16
|
+
readonly 'motion.flag.enter': "--ds-flag-enter";
|
|
17
|
+
readonly 'motion.flag.exit': "--ds-flag-exit";
|
|
18
|
+
readonly 'motion.flag.reposition': "--ds-flag-reposition";
|
|
19
|
+
readonly 'motion.modal.enter': "--ds-modal-enter";
|
|
20
|
+
readonly 'motion.modal.exit': "--ds-modal-exit";
|
|
21
|
+
readonly 'motion.popup.enter.bottom': "--ds-popup-enter-bottom";
|
|
22
|
+
readonly 'motion.popup.enter.left': "--ds-popup-enter-left";
|
|
23
|
+
readonly 'motion.popup.enter.right': "--ds-popup-enter-right";
|
|
24
|
+
readonly 'motion.popup.enter.top': "--ds-popup-enter-top";
|
|
25
|
+
readonly 'motion.popup.exit.bottom': "--ds-popup-exit-bottom";
|
|
26
|
+
readonly 'motion.popup.exit.left': "--ds-popup-exit-left";
|
|
27
|
+
readonly 'motion.popup.exit.right': "--ds-popup-exit-right";
|
|
28
|
+
readonly 'motion.popup.exit.top': "--ds-popup-exit-top";
|
|
29
|
+
readonly 'motion.spotlight.enter': "--ds-spotlight-enter";
|
|
30
|
+
readonly 'motion.spotlight.exit': "--ds-spotlight-exit";
|
|
15
31
|
readonly 'color.text': "--ds-text";
|
|
16
32
|
readonly 'color.text.accent.lime': "--ds-text-accent-lime";
|
|
17
33
|
readonly 'color.text.accent.lime.bolder': "--ds-text-accent-lime-bolder";
|
|
@@ -482,14 +498,30 @@ declare const tokens: {
|
|
|
482
498
|
readonly 'border.width.focused': "--ds-border-width-focused";
|
|
483
499
|
};
|
|
484
500
|
export type CSSTokenMap = {
|
|
501
|
+
'motion.avatar.enter': 'var(--ds-avatar-enter)';
|
|
502
|
+
'motion.avatar.exit': 'var(--ds-avatar-exit)';
|
|
503
|
+
'motion.avatar.hovered': 'var(--ds-avatar-hovered)';
|
|
485
504
|
'motion.content.enter.long': 'var(--ds-content-enter-long)';
|
|
486
505
|
'motion.content.enter.medium': 'var(--ds-content-enter-medium)';
|
|
487
506
|
'motion.content.enter.short': 'var(--ds-content-enter-short)';
|
|
488
507
|
'motion.content.exit.long': 'var(--ds-content-exit-long)';
|
|
489
508
|
'motion.content.exit.medium': 'var(--ds-content-exit-medium)';
|
|
490
509
|
'motion.content.exit.short': 'var(--ds-content-exit-short)';
|
|
491
|
-
'motion.
|
|
492
|
-
'motion.
|
|
510
|
+
'motion.flag.enter': 'var(--ds-flag-enter)';
|
|
511
|
+
'motion.flag.exit': 'var(--ds-flag-exit)';
|
|
512
|
+
'motion.flag.reposition': 'var(--ds-flag-reposition)';
|
|
513
|
+
'motion.modal.enter': 'var(--ds-modal-enter)';
|
|
514
|
+
'motion.modal.exit': 'var(--ds-modal-exit)';
|
|
515
|
+
'motion.popup.enter.bottom': 'var(--ds-popup-enter-bottom)';
|
|
516
|
+
'motion.popup.enter.left': 'var(--ds-popup-enter-left)';
|
|
517
|
+
'motion.popup.enter.right': 'var(--ds-popup-enter-right)';
|
|
518
|
+
'motion.popup.enter.top': 'var(--ds-popup-enter-top)';
|
|
519
|
+
'motion.popup.exit.bottom': 'var(--ds-popup-exit-bottom)';
|
|
520
|
+
'motion.popup.exit.left': 'var(--ds-popup-exit-left)';
|
|
521
|
+
'motion.popup.exit.right': 'var(--ds-popup-exit-right)';
|
|
522
|
+
'motion.popup.exit.top': 'var(--ds-popup-exit-top)';
|
|
523
|
+
'motion.spotlight.enter': 'var(--ds-spotlight-enter)';
|
|
524
|
+
'motion.spotlight.exit': 'var(--ds-spotlight-exit)';
|
|
493
525
|
'color.text': 'var(--ds-text)';
|
|
494
526
|
'color.text.accent.lime': 'var(--ds-text-accent-lime)';
|
|
495
527
|
'color.text.accent.lime.bolder': 'var(--ds-text-accent-lime-bolder)';
|