@atlaskit/tokens 12.0.0 → 13.0.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/artifacts/replacement-mapping.js +2 -153
  3. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +1 -2
  5. package/dist/cjs/artifacts/token-names.js +1 -2
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-motion.js +197 -197
  7. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +1 -34
  8. package/dist/cjs/entry-points/token-metadata.codegen.js +442 -10
  9. package/dist/cjs/entry-points/tokens-raw.js +8 -1
  10. package/dist/es2019/artifacts/replacement-mapping.js +2 -153
  11. package/dist/es2019/artifacts/themes/atlassian-typography.js +1 -2
  12. package/dist/es2019/artifacts/token-default-values.js +1 -2
  13. package/dist/es2019/artifacts/token-names.js +1 -2
  14. package/dist/es2019/artifacts/tokens-raw/atlassian-motion.js +197 -197
  15. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +1 -34
  16. package/dist/es2019/entry-points/token-metadata.codegen.js +442 -10
  17. package/dist/es2019/entry-points/tokens-raw.js +2 -1
  18. package/dist/esm/artifacts/replacement-mapping.js +2 -153
  19. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  20. package/dist/esm/artifacts/token-default-values.js +1 -2
  21. package/dist/esm/artifacts/token-names.js +1 -2
  22. package/dist/esm/artifacts/tokens-raw/atlassian-motion.js +197 -197
  23. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +1 -34
  24. package/dist/esm/entry-points/token-metadata.codegen.js +442 -10
  25. package/dist/esm/entry-points/tokens-raw.js +2 -1
  26. package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
  27. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  28. package/dist/types/artifacts/token-default-values.d.ts +1 -2
  29. package/dist/types/artifacts/token-names.d.ts +1 -3
  30. package/dist/types/artifacts/tokens-raw/atlassian-motion.d.ts +1 -1
  31. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  32. package/dist/types/artifacts/types-internal.d.ts +2 -2
  33. package/dist/types/artifacts/types.d.ts +2 -2
  34. package/dist/types/entry-points/css-type-schema.codegen.d.ts +2 -2
  35. package/dist/types/entry-points/token-metadata.codegen.d.ts +1 -1
  36. package/dist/types/entry-points/tokens-raw.d.ts +1 -0
  37. package/dist/types/types.d.ts +0 -1
  38. package/dist/types-ts4.5/artifacts/replacement-mapping.d.ts +1 -1
  39. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  40. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +1 -2
  41. package/dist/types-ts4.5/artifacts/token-names.d.ts +1 -3
  42. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-motion.d.ts +1 -1
  43. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
  44. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  45. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  46. package/dist/types-ts4.5/entry-points/css-type-schema.codegen.d.ts +2 -2
  47. package/dist/types-ts4.5/entry-points/token-metadata.codegen.d.ts +1 -1
  48. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -0
  49. package/dist/types-ts4.5/types.d.ts +0 -1
  50. package/figma/atlassian-typography.json +1 -3
  51. package/package.json +11 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 13.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b5f57321dd863`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b5f57321dd863) -
8
+ Transitioned motion design tokens from experimental to active and added usage guidance
9
+
10
+ ## 13.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`72017386a0120`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72017386a0120) -
15
+ Remove the deprecated `font.body.UNSAFE_small` token. This token was deprecated in `10.1.0` and
16
+ has been replaced by `font.body.small`. Please migrate any remaining usages to `font.body.small`.
17
+
3
18
  ## 12.0.0
4
19
 
5
20
  ### Major Changes
@@ -18,160 +18,9 @@ exports.default = void 0;
18
18
  * These changes will then be picked up by our tooling which will attempt to
19
19
  * migrate as many of these renames as possible.
20
20
  *
21
- * @codegen <<SignedSource::26489b868b6a67a598f0fa4a421cae65>>
21
+ * @codegen <<SignedSource::c779b40628532228cae2ec34977f1f8e>>
22
22
  * @codegenCommand yarn build tokens
23
23
  */
24
24
 
25
- var replacementMapper = [{
26
- "path": "motion.avatar.enter",
27
- "state": "experimental"
28
- }, {
29
- "path": "motion.avatar.exit",
30
- "state": "experimental"
31
- }, {
32
- "path": "motion.avatar.hovered",
33
- "state": "experimental"
34
- }, {
35
- "path": "motion.blanket.enter",
36
- "state": "experimental"
37
- }, {
38
- "path": "motion.blanket.exit",
39
- "state": "experimental"
40
- }, {
41
- "path": "motion.duration.instant",
42
- "state": "experimental"
43
- }, {
44
- "path": "motion.duration.long",
45
- "state": "experimental"
46
- }, {
47
- "path": "motion.duration.medium",
48
- "state": "experimental"
49
- }, {
50
- "path": "motion.duration.short",
51
- "state": "experimental"
52
- }, {
53
- "path": "motion.duration.xlong",
54
- "state": "experimental"
55
- }, {
56
- "path": "motion.duration.xshort",
57
- "state": "experimental"
58
- }, {
59
- "path": "motion.duration.xxlong",
60
- "state": "experimental"
61
- }, {
62
- "path": "motion.duration.xxshort",
63
- "state": "experimental"
64
- }, {
65
- "path": "motion.easing.in.practical",
66
- "state": "experimental"
67
- }, {
68
- "path": "motion.easing.inout.bold",
69
- "state": "experimental"
70
- }, {
71
- "path": "motion.easing.out.practical",
72
- "state": "experimental"
73
- }, {
74
- "path": "motion.easing.out.bold",
75
- "state": "experimental"
76
- }, {
77
- "path": "motion.easing.spring",
78
- "state": "experimental"
79
- }, {
80
- "path": "motion.flag.enter",
81
- "state": "experimental"
82
- }, {
83
- "path": "motion.flag.exit",
84
- "state": "experimental"
85
- }, {
86
- "path": "motion.flag.reposition",
87
- "state": "experimental"
88
- }, {
89
- "path": "motion.keyframe.fade.in",
90
- "state": "experimental"
91
- }, {
92
- "path": "motion.keyframe.fade.out",
93
- "state": "experimental"
94
- }, {
95
- "path": "motion.keyframe.scale.in.medium",
96
- "state": "experimental"
97
- }, {
98
- "path": "motion.keyframe.scale.in.small",
99
- "state": "experimental"
100
- }, {
101
- "path": "motion.keyframe.scale.out.medium",
102
- "state": "experimental"
103
- }, {
104
- "path": "motion.keyframe.scale.out.small",
105
- "state": "experimental"
106
- }, {
107
- "path": "motion.keyframe.slide.in.bottom.short",
108
- "state": "experimental"
109
- }, {
110
- "path": "motion.keyframe.slide.in.left.half",
111
- "state": "experimental"
112
- }, {
113
- "path": "motion.keyframe.slide.in.left.short",
114
- "state": "experimental"
115
- }, {
116
- "path": "motion.keyframe.slide.in.right.short",
117
- "state": "experimental"
118
- }, {
119
- "path": "motion.keyframe.slide.in.top.short",
120
- "state": "experimental"
121
- }, {
122
- "path": "motion.keyframe.slide.out.bottom.short",
123
- "state": "experimental"
124
- }, {
125
- "path": "motion.keyframe.slide.out.left.half",
126
- "state": "experimental"
127
- }, {
128
- "path": "motion.keyframe.slide.out.left.short",
129
- "state": "experimental"
130
- }, {
131
- "path": "motion.keyframe.slide.out.right.short",
132
- "state": "experimental"
133
- }, {
134
- "path": "motion.keyframe.slide.out.top.short",
135
- "state": "experimental"
136
- }, {
137
- "path": "motion.modal.enter",
138
- "state": "experimental"
139
- }, {
140
- "path": "motion.modal.exit",
141
- "state": "experimental"
142
- }, {
143
- "path": "motion.popup.enter.bottom",
144
- "state": "experimental"
145
- }, {
146
- "path": "motion.popup.enter.left",
147
- "state": "experimental"
148
- }, {
149
- "path": "motion.popup.enter.right",
150
- "state": "experimental"
151
- }, {
152
- "path": "motion.popup.enter.top",
153
- "state": "experimental"
154
- }, {
155
- "path": "motion.popup.exit.bottom",
156
- "state": "experimental"
157
- }, {
158
- "path": "motion.popup.exit.left",
159
- "state": "experimental"
160
- }, {
161
- "path": "motion.popup.exit.right",
162
- "state": "experimental"
163
- }, {
164
- "path": "motion.popup.exit.top",
165
- "state": "experimental"
166
- }, {
167
- "path": "motion.spotlight.enter",
168
- "state": "experimental"
169
- }, {
170
- "path": "motion.spotlight.exit",
171
- "state": "experimental"
172
- }, {
173
- "path": "font.body.UNSAFE_small",
174
- "state": "deprecated",
175
- "replacement": "font.body.small"
176
- }];
25
+ var replacementMapper = [];
177
26
  var _default = exports.default = replacementMapper;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::53278a261ad7a10a6b0212f6516599e1>>
9
+ * @codegen <<SignedSource::12d277e3c095466fe9d6c4fb8390f066>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
- var _default = exports.default = "\nhtml[data-theme~=\"typography:typography\"], [data-subtree-theme][data-theme~=\"typography:typography\"] {\n --ds-font-heading-xxlarge: normal 653 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 653 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 653 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 653 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 653 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 653 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 653 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-large: normal 653 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-medium: normal 653 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-small: normal 653 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 653;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n}\n";
12
+ var _default = exports.default = "\nhtml[data-theme~=\"typography:typography\"], [data-subtree-theme][data-theme~=\"typography:typography\"] {\n --ds-font-heading-xxlarge: normal 653 2rem/2.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 653 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 653 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 653 1.25rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 653 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 653 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 653 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-large: normal 653 1.75rem/2rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-medium: normal 653 1.5rem/1.75rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-metric-small: normal 653 1rem/1.25rem \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 653;\n --ds-font-family-heading: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif;\n}\n";
@@ -13,7 +13,7 @@ exports.default = void 0;
13
13
  * Token names mapped to their value in the default Atlassian themes ('light').
14
14
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
15
15
  *
16
- * @codegen <<SignedSource::0fbc9a08bd94ff0842a2dd504e6a9ce6>>
16
+ * @codegen <<SignedSource::3389a98f2c8d274c3d9e5d9d63df8780>>
17
17
  * @codegenCommand yarn build tokens
18
18
  */
19
19
  var defaultTokenValues = {
@@ -509,7 +509,6 @@ var defaultTokenValues = {
509
509
  'font.body.large': 'normal 400 1rem/1.5rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
510
510
  'font.body': 'normal 400 0.875rem/1.25rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
511
511
  'font.body.small': 'normal 400 0.75rem/1rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
512
- 'font.body.UNSAFE_small': 'normal 400 0.75rem/1rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
513
512
  'font.metric.large': 'normal 653 1.75rem/2rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
514
513
  'font.metric.medium': 'normal 653 1.5rem/1.75rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
515
514
  'font.metric.small': 'normal 653 1rem/1.25rem "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::c7da53f7a9d4a33334530aad043ae18b>>
9
+ * @codegen <<SignedSource::a1de8a9439d40392e3e4945ecf9d9214>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
  var tokens = {
@@ -502,7 +502,6 @@ var tokens = {
502
502
  'font.body.large': '--ds-font-body-large',
503
503
  'font.body': '--ds-font-body',
504
504
  'font.body.small': '--ds-font-body-small',
505
- 'font.body.UNSAFE_small': '--ds-font-body-UNSAFE_small',
506
505
  'font.metric.large': '--ds-font-metric-large',
507
506
  'font.metric.medium': '--ds-font-metric-medium',
508
507
  'font.metric.small': '--ds-font-metric-small',