@atlaskit/tokens 11.4.3 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/dist/cjs/artifacts/palettes-raw/motion-palette.js +123 -305
- package/dist/cjs/artifacts/replacement-mapping.js +82 -11
- package/dist/cjs/artifacts/themes/atlassian-motion.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +50 -26
- package/dist/cjs/artifacts/token-names.js +32 -8
- package/dist/cjs/artifacts/tokens-raw/atlassian-motion.js +653 -135
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +1 -34
- package/dist/cjs/entry-points/token-metadata.codegen.js +1 -10
- package/dist/es2019/artifacts/palettes-raw/motion-palette.js +123 -305
- package/dist/es2019/artifacts/replacement-mapping.js +82 -11
- package/dist/es2019/artifacts/themes/atlassian-motion.js +64 -91
- package/dist/es2019/artifacts/themes/atlassian-typography.js +1 -2
- package/dist/es2019/artifacts/token-default-values.js +50 -26
- package/dist/es2019/artifacts/token-names.js +32 -8
- package/dist/es2019/artifacts/tokens-raw/atlassian-motion.js +653 -135
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +1 -34
- package/dist/es2019/entry-points/token-metadata.codegen.js +1 -10
- package/dist/esm/artifacts/palettes-raw/motion-palette.js +123 -305
- package/dist/esm/artifacts/replacement-mapping.js +82 -11
- package/dist/esm/artifacts/themes/atlassian-motion.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +50 -26
- package/dist/esm/artifacts/token-names.js +32 -8
- package/dist/esm/artifacts/tokens-raw/atlassian-motion.js +653 -135
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +1 -34
- package/dist/esm/entry-points/token-metadata.codegen.js +1 -10
- package/dist/types/artifacts/palettes-raw/motion-palette.d.ts +3 -15
- 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/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +50 -26
- package/dist/types/artifacts/token-names.d.ts +63 -15
- package/dist/types/artifacts/tokens-raw/atlassian-motion.d.ts +5 -5
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types/entry-points/css-type-schema.codegen.d.ts +6 -3
- package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types/types.d.ts +93 -15
- package/dist/types-ts4.5/artifacts/palettes-raw/motion-palette.d.ts +3 -15
- 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/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +50 -26
- package/dist/types-ts4.5/artifacts/token-names.d.ts +63 -15
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-motion.d.ts +5 -5
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +6 -3
- package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +93 -15
- package/figma/atlassian-typography.json +1 -3
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InternalTokenIds } from './artifacts/types-internal';
|
|
2
|
-
export type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'shape' | 'typography' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight' | 'letterSpacing' | 'motion' | '
|
|
2
|
+
export type Groups = 'raw' | 'paint' | 'shadow' | 'palette' | 'opacity' | 'spacing' | 'shape' | 'typography' | 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight' | 'letterSpacing' | 'motion' | 'motionDuration' | 'motionEasing' | 'motionKeyframe' | 'motionProperty';
|
|
3
3
|
type ActiveTokenState = 'active';
|
|
4
4
|
type DeprecatedTokenState = 'deprecated';
|
|
5
5
|
type DeletedTokenState = 'deleted';
|
|
@@ -108,6 +108,10 @@ export type ShapeToken<BaseToken> = DesignToken<BaseToken, 'shape'>;
|
|
|
108
108
|
export type FontWeightToken<BaseToken> = DesignToken<BaseToken, 'fontWeight'>;
|
|
109
109
|
export type FontFamilyToken<BaseToken> = DesignToken<BaseToken, 'fontFamily'>;
|
|
110
110
|
export type MotionToken<BaseToken> = DesignToken<BaseToken, 'motion'>;
|
|
111
|
+
export type MotionDurationToken<BaseToken> = DesignToken<BaseToken, 'motionDuration'>;
|
|
112
|
+
export type MotionEasingToken<BaseToken> = DesignToken<BaseToken, 'motionEasing'>;
|
|
113
|
+
export type MotionKeyframeToken<BaseToken> = DesignToken<BaseToken, 'motionKeyframe'>;
|
|
114
|
+
export type MotionPropertyToken<BaseToken> = DesignToken<BaseToken, 'motionProperty'>;
|
|
111
115
|
export type DeprecatedTypographyToken<BaseToken> = DesignToken<BaseToken, 'fontSize' | 'fontWeight' | 'fontFamily' | 'lineHeight' | 'letterSpacing'>;
|
|
112
116
|
export type RawToken = DesignToken<string, 'raw'>;
|
|
113
117
|
export interface PaletteColorTokenSchema<PaletteValues extends string> {
|
|
@@ -133,10 +137,10 @@ export interface ShapeScaleTokenSchema<RadiusScaleValues extends string, SizeSca
|
|
|
133
137
|
radius: Record<RadiusScaleValues, ShapeSchemaValue>;
|
|
134
138
|
}
|
|
135
139
|
export interface MotionScaleTokenSchema<DurationScaleValues extends string, BezierCurveScaleValues extends string, KeyframeScaleValues extends string, TransitionPropertyScaleValues extends string> {
|
|
136
|
-
duration: Record<DurationScaleValues, BaseToken<number, '
|
|
137
|
-
curve: Record<BezierCurveScaleValues, BaseToken<string, '
|
|
138
|
-
keyframe: Record<KeyframeScaleValues, BaseToken<Record<string, object>, '
|
|
139
|
-
properties: Record<TransitionPropertyScaleValues, BaseToken<string, '
|
|
140
|
+
duration: Record<DurationScaleValues, BaseToken<number, 'motionDuration'>>;
|
|
141
|
+
curve: Record<BezierCurveScaleValues, BaseToken<string, 'motionEasing'>>;
|
|
142
|
+
keyframe: Record<KeyframeScaleValues, BaseToken<Record<string, object>, 'motionKeyframe'>>;
|
|
143
|
+
properties: Record<TransitionPropertyScaleValues, BaseToken<string, 'motionProperty'>>;
|
|
140
144
|
}
|
|
141
145
|
export interface FontSizeScaleTokenSchema<ScaleValues extends string> {
|
|
142
146
|
fontSize: Record<ScaleValues, BaseToken<string | number, 'fontSize'>>;
|
|
@@ -1065,7 +1069,6 @@ export interface TypographyTokenSchema<TPalette extends {
|
|
|
1065
1069
|
body: {
|
|
1066
1070
|
'[default]': TypographyToken<TPalette>;
|
|
1067
1071
|
small: TypographyToken<TPalette>;
|
|
1068
|
-
UNSAFE_small: TypographyToken<TPalette>;
|
|
1069
1072
|
large: TypographyToken<TPalette>;
|
|
1070
1073
|
};
|
|
1071
1074
|
code: {
|
|
@@ -1133,6 +1136,10 @@ export interface MotionTokenSchema<BaseToken> {
|
|
|
1133
1136
|
exit: MotionToken<BaseToken>;
|
|
1134
1137
|
hovered: MotionToken<BaseToken>;
|
|
1135
1138
|
};
|
|
1139
|
+
blanket: {
|
|
1140
|
+
enter: MotionToken<BaseToken>;
|
|
1141
|
+
exit: MotionToken<BaseToken>;
|
|
1142
|
+
};
|
|
1136
1143
|
flag: {
|
|
1137
1144
|
enter: MotionToken<BaseToken>;
|
|
1138
1145
|
exit: MotionToken<BaseToken>;
|
|
@@ -1160,16 +1167,87 @@ export interface MotionTokenSchema<BaseToken> {
|
|
|
1160
1167
|
enter: MotionToken<BaseToken>;
|
|
1161
1168
|
exit: MotionToken<BaseToken>;
|
|
1162
1169
|
};
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
export interface MotionDurationTokenSchema<BaseToken> {
|
|
1173
|
+
motion: {
|
|
1174
|
+
duration: {
|
|
1175
|
+
instant: MotionDurationToken<BaseToken>;
|
|
1176
|
+
xxshort: MotionDurationToken<BaseToken>;
|
|
1177
|
+
xshort: MotionDurationToken<BaseToken>;
|
|
1178
|
+
short: MotionDurationToken<BaseToken>;
|
|
1179
|
+
medium: MotionDurationToken<BaseToken>;
|
|
1180
|
+
long: MotionDurationToken<BaseToken>;
|
|
1181
|
+
xlong: MotionDurationToken<BaseToken>;
|
|
1182
|
+
xxlong: MotionDurationToken<BaseToken>;
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
export interface MotionEasingTokenSchema<BaseToken> {
|
|
1187
|
+
motion: {
|
|
1188
|
+
easing: {
|
|
1189
|
+
out: {
|
|
1190
|
+
bold: MotionEasingToken<BaseToken>;
|
|
1191
|
+
practical: MotionEasingToken<BaseToken>;
|
|
1168
1192
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1193
|
+
in: {
|
|
1194
|
+
practical: MotionEasingToken<BaseToken>;
|
|
1195
|
+
};
|
|
1196
|
+
inout: {
|
|
1197
|
+
bold: MotionEasingToken<BaseToken>;
|
|
1198
|
+
};
|
|
1199
|
+
spring: MotionEasingToken<BaseToken>;
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
export interface MotionKeyframeTokenSchema<BaseToken> {
|
|
1204
|
+
motion: {
|
|
1205
|
+
keyframe: {
|
|
1206
|
+
scale: {
|
|
1207
|
+
in: {
|
|
1208
|
+
small: MotionKeyframeToken<BaseToken>;
|
|
1209
|
+
medium: MotionKeyframeToken<BaseToken>;
|
|
1210
|
+
};
|
|
1211
|
+
out: {
|
|
1212
|
+
small: MotionKeyframeToken<BaseToken>;
|
|
1213
|
+
medium: MotionKeyframeToken<BaseToken>;
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
fade: {
|
|
1217
|
+
in: MotionKeyframeToken<BaseToken>;
|
|
1218
|
+
out: MotionKeyframeToken<BaseToken>;
|
|
1219
|
+
};
|
|
1220
|
+
slide: {
|
|
1221
|
+
in: {
|
|
1222
|
+
top: {
|
|
1223
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1224
|
+
};
|
|
1225
|
+
bottom: {
|
|
1226
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1227
|
+
};
|
|
1228
|
+
left: {
|
|
1229
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1230
|
+
half: MotionKeyframeToken<BaseToken>;
|
|
1231
|
+
};
|
|
1232
|
+
right: {
|
|
1233
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
out: {
|
|
1237
|
+
top: {
|
|
1238
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1239
|
+
};
|
|
1240
|
+
bottom: {
|
|
1241
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1242
|
+
};
|
|
1243
|
+
left: {
|
|
1244
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1245
|
+
half: MotionKeyframeToken<BaseToken>;
|
|
1246
|
+
};
|
|
1247
|
+
right: {
|
|
1248
|
+
short: MotionKeyframeToken<BaseToken>;
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1173
1251
|
};
|
|
1174
1252
|
};
|
|
1175
1253
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"codegen-tokens": "run-ts ./scripts/style-dictionary/build.tsx && run-ts ./scripts/style-dictionary/build-plugin-token-map.tsx && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/ds-explorations && yarn codegen-styles"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/ds-lib": "^
|
|
40
|
+
"@atlaskit/ds-lib": "^7.0.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@babel/traverse": "^7.23.2",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@af/formatting": "workspace:^",
|
|
52
52
|
"@af/visual-regression": "workspace:^",
|
|
53
53
|
"@atlaskit/avatar": "^25.11.0",
|
|
54
|
-
"@atlaskit/button": "^23.
|
|
54
|
+
"@atlaskit/button": "^23.11.0",
|
|
55
55
|
"@atlaskit/calendar": "^17.2.0",
|
|
56
56
|
"@atlaskit/checkbox": "^17.3.0",
|
|
57
57
|
"@atlaskit/code": "^17.4.0",
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
62
62
|
"@atlaskit/form": "^15.5.0",
|
|
63
63
|
"@atlaskit/grid": "^0.18.0",
|
|
64
|
-
"@atlaskit/heading": "^5.
|
|
64
|
+
"@atlaskit/heading": "^5.4.0",
|
|
65
65
|
"@atlaskit/icon": "^34.0.0",
|
|
66
66
|
"@atlaskit/inline-message": "^15.6.0",
|
|
67
|
-
"@atlaskit/link": "^3.
|
|
68
|
-
"@atlaskit/lozenge": "^13.
|
|
67
|
+
"@atlaskit/link": "^3.4.0",
|
|
68
|
+
"@atlaskit/lozenge": "^13.6.0",
|
|
69
69
|
"@atlaskit/popup": "^4.16.0",
|
|
70
|
-
"@atlaskit/primitives": "^
|
|
70
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
71
71
|
"@atlaskit/radio": "^8.5.0",
|
|
72
72
|
"@atlaskit/section-message": "^8.12.0",
|
|
73
73
|
"@atlaskit/select": "^21.10.0",
|
|
74
|
-
"@atlaskit/tag": "^14.
|
|
74
|
+
"@atlaskit/tag": "^14.8.0",
|
|
75
75
|
"@atlaskit/textarea": "^8.2.0",
|
|
76
|
-
"@atlaskit/textfield": "^8.
|
|
77
|
-
"@atlaskit/theme": "^
|
|
76
|
+
"@atlaskit/textfield": "^8.3.0",
|
|
77
|
+
"@atlaskit/theme": "^23.0.0",
|
|
78
78
|
"@atlaskit/tooltip": "^21.1.0",
|
|
79
79
|
"@atlassian/codegen": "^0.1.0",
|
|
80
80
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|