@atlaskit/tokens 0.13.5 → 1.1.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.
Files changed (196) hide show
  1. package/CHANGELOG.md +305 -0
  2. package/README.md +7 -16
  3. package/dist/cjs/artifacts/palettes-raw/legacy-palette.js +0 -1
  4. package/dist/cjs/artifacts/palettes-raw/palette.js +0 -1
  5. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +0 -1
  6. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +0 -1
  7. package/dist/cjs/artifacts/replacement-mapping.js +3 -611
  8. package/dist/cjs/artifacts/theme-import-map.js +56 -0
  9. package/dist/cjs/artifacts/themes/atlassian-dark.js +13 -0
  10. package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +13 -0
  11. package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +13 -0
  12. package/dist/cjs/artifacts/themes/atlassian-light.js +13 -0
  13. package/dist/cjs/artifacts/themes/atlassian-spacing.js +13 -0
  14. package/dist/cjs/artifacts/themes/atlassian-typography.js +13 -0
  15. package/dist/cjs/artifacts/token-default-values.js +2 -170
  16. package/dist/cjs/artifacts/token-names.js +2 -170
  17. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1354 -4261
  18. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +1352 -4259
  19. package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +1396 -4283
  20. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1365 -4252
  21. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +1 -1582
  22. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +0 -1
  23. package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +0 -1
  24. package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +0 -1
  25. package/dist/cjs/babel-plugin/index.js +0 -2
  26. package/dist/cjs/babel-plugin/plugin.js +17 -43
  27. package/dist/cjs/entry-points/babel-plugin.js +0 -2
  28. package/dist/cjs/entry-points/palettes-raw.js +0 -2
  29. package/dist/cjs/entry-points/rename-mapping.js +0 -2
  30. package/dist/cjs/entry-points/token-ids.js +0 -1
  31. package/dist/cjs/entry-points/token-names.js +0 -2
  32. package/dist/cjs/entry-points/tokens-raw.js +0 -5
  33. package/dist/cjs/get-global-theme.js +30 -0
  34. package/dist/cjs/get-token-value.js +1 -10
  35. package/dist/cjs/get-token.js +3 -13
  36. package/dist/cjs/index.js +46 -10
  37. package/dist/cjs/palettes/legacy-palette.js +1 -1
  38. package/dist/cjs/palettes/spacing-scale.js +1 -1
  39. package/dist/cjs/palettes/typography-palette.js +0 -5
  40. package/dist/cjs/set-global-theme.js +265 -39
  41. package/dist/cjs/theme-config.js +8 -23
  42. package/dist/cjs/{theme-change-observer.js → theme-mutation-observer.js} +5 -57
  43. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +1 -4
  44. package/dist/cjs/tokens/atlassian-legacy-dark/utility/utility.js +1 -4
  45. package/dist/cjs/tokens/atlassian-legacy-light/utility/utility.js +1 -4
  46. package/dist/cjs/tokens/atlassian-light/utility/utility.js +1 -4
  47. package/dist/cjs/tokens/atlassian-spacing/spacing.js +0 -228
  48. package/dist/cjs/tokens/default/spacing/spacing.js +0 -621
  49. package/dist/cjs/tokens/default/utility/utility.js +1 -9
  50. package/dist/cjs/use-theme-observer.js +41 -0
  51. package/dist/cjs/utils/color-detection.js +23 -43
  52. package/dist/cjs/utils/theme-loading.js +69 -0
  53. package/dist/cjs/utils/theme-state-transformer.js +73 -0
  54. package/dist/cjs/utils/token-ids.js +4 -12
  55. package/dist/cjs/version.json +1 -1
  56. package/dist/es2019/artifacts/replacement-mapping.js +3 -610
  57. package/dist/es2019/artifacts/theme-import-map.js +27 -0
  58. package/dist/es2019/artifacts/themes/atlassian-dark.js +296 -0
  59. package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +296 -0
  60. package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +296 -0
  61. package/dist/es2019/artifacts/themes/atlassian-light.js +296 -0
  62. package/dist/es2019/artifacts/themes/atlassian-spacing.js +23 -0
  63. package/{css/atlassian-typography.css → dist/es2019/artifacts/themes/atlassian-typography.js} +4 -2
  64. package/dist/es2019/artifacts/token-default-values.js +2 -169
  65. package/dist/es2019/artifacts/token-names.js +2 -169
  66. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1354 -4260
  67. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +1349 -4255
  68. package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +1397 -4283
  69. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1360 -4246
  70. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +1 -1581
  71. package/dist/es2019/babel-plugin/plugin.js +17 -37
  72. package/dist/es2019/get-global-theme.js +20 -0
  73. package/dist/es2019/get-token-value.js +1 -6
  74. package/dist/es2019/get-token.js +3 -8
  75. package/dist/es2019/index.js +5 -2
  76. package/dist/es2019/palettes/legacy-palette.js +1 -0
  77. package/dist/es2019/palettes/spacing-scale.js +1 -0
  78. package/dist/es2019/palettes/typography-palette.js +2 -1
  79. package/dist/es2019/set-global-theme.js +162 -32
  80. package/dist/es2019/theme-config.js +5 -21
  81. package/dist/es2019/{theme-change-observer.js → theme-mutation-observer.js} +4 -37
  82. package/dist/es2019/tokens/atlassian-dark/utility/utility.js +1 -4
  83. package/dist/es2019/tokens/atlassian-legacy-dark/utility/utility.js +1 -4
  84. package/dist/es2019/tokens/atlassian-legacy-light/utility/utility.js +1 -4
  85. package/dist/es2019/tokens/atlassian-light/utility/utility.js +1 -4
  86. package/dist/es2019/tokens/atlassian-spacing/spacing.js +0 -227
  87. package/dist/es2019/tokens/default/spacing/spacing.js +0 -620
  88. package/dist/es2019/tokens/default/utility/utility.js +1 -9
  89. package/dist/es2019/use-theme-observer.js +26 -0
  90. package/dist/es2019/utils/color-detection.js +3 -5
  91. package/dist/es2019/utils/theme-loading.js +18 -0
  92. package/dist/es2019/utils/theme-state-transformer.js +47 -0
  93. package/dist/es2019/utils/token-ids.js +5 -4
  94. package/dist/es2019/version.json +1 -1
  95. package/dist/esm/artifacts/replacement-mapping.js +3 -610
  96. package/dist/esm/artifacts/theme-import-map.js +39 -0
  97. package/dist/esm/artifacts/themes/atlassian-dark.js +6 -0
  98. package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +6 -0
  99. package/dist/esm/artifacts/themes/atlassian-legacy-light.js +6 -0
  100. package/dist/esm/artifacts/themes/atlassian-light.js +6 -0
  101. package/dist/esm/artifacts/themes/atlassian-spacing.js +6 -0
  102. package/dist/esm/artifacts/themes/atlassian-typography.js +6 -0
  103. package/dist/esm/artifacts/token-default-values.js +2 -169
  104. package/dist/esm/artifacts/token-names.js +2 -169
  105. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1354 -4260
  106. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +1349 -4255
  107. package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +1397 -4283
  108. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1360 -4246
  109. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +1 -1581
  110. package/dist/esm/babel-plugin/plugin.js +17 -35
  111. package/dist/esm/get-global-theme.js +22 -0
  112. package/dist/esm/get-token-value.js +1 -6
  113. package/dist/esm/get-token.js +3 -8
  114. package/dist/esm/index.js +5 -2
  115. package/dist/esm/palettes/legacy-palette.js +1 -0
  116. package/dist/esm/palettes/spacing-scale.js +1 -0
  117. package/dist/esm/palettes/typography-palette.js +0 -3
  118. package/dist/esm/set-global-theme.js +263 -37
  119. package/dist/esm/theme-config.js +5 -21
  120. package/dist/esm/{theme-change-observer.js → theme-mutation-observer.js} +4 -49
  121. package/dist/esm/tokens/atlassian-dark/utility/utility.js +1 -4
  122. package/dist/esm/tokens/atlassian-legacy-dark/utility/utility.js +1 -4
  123. package/dist/esm/tokens/atlassian-legacy-light/utility/utility.js +1 -4
  124. package/dist/esm/tokens/atlassian-light/utility/utility.js +1 -4
  125. package/dist/esm/tokens/atlassian-spacing/spacing.js +0 -227
  126. package/dist/esm/tokens/default/spacing/spacing.js +0 -620
  127. package/dist/esm/tokens/default/utility/utility.js +1 -9
  128. package/dist/esm/use-theme-observer.js +34 -0
  129. package/dist/esm/utils/color-detection.js +23 -30
  130. package/dist/esm/utils/theme-loading.js +60 -0
  131. package/dist/esm/utils/theme-state-transformer.js +64 -0
  132. package/dist/esm/utils/token-ids.js +5 -4
  133. package/dist/esm/version.json +1 -1
  134. package/dist/types/artifacts/replacement-mapping.d.ts +1 -1
  135. package/dist/types/artifacts/theme-import-map.d.ts +16 -0
  136. package/dist/types/artifacts/themes/atlassian-dark.d.ts +7 -0
  137. package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +7 -0
  138. package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +7 -0
  139. package/dist/types/artifacts/themes/atlassian-light.d.ts +7 -0
  140. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +7 -0
  141. package/dist/types/artifacts/themes/atlassian-typography.d.ts +7 -0
  142. package/dist/types/artifacts/token-default-values.d.ts +2 -169
  143. package/dist/types/artifacts/token-names.d.ts +3 -337
  144. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -115
  145. package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -115
  146. package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -91
  147. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -91
  148. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -89
  149. package/dist/types/artifacts/types-internal.d.ts +2 -2
  150. package/dist/types/artifacts/types.d.ts +2 -2
  151. package/dist/types/get-global-theme.d.ts +2 -0
  152. package/dist/types/index.d.ts +7 -3
  153. package/dist/types/set-global-theme.d.ts +63 -7
  154. package/dist/types/theme-config.d.ts +10 -7
  155. package/dist/types/{theme-change-observer.d.ts → theme-mutation-observer.d.ts} +2 -16
  156. package/dist/types/types.d.ts +1 -286
  157. package/dist/types/use-theme-observer.d.ts +15 -0
  158. package/dist/types/utils/theme-loading.d.ts +3 -0
  159. package/dist/types/utils/theme-state-transformer.d.ts +26 -0
  160. package/figma/atlassian-dark.json +1 -102
  161. package/figma/atlassian-legacy-dark.json +1 -102
  162. package/figma/atlassian-legacy-light.json +1 -102
  163. package/figma/atlassian-light.json +1 -102
  164. package/figma/atlassian-spacing.json +1 -761
  165. package/package.json +5 -8
  166. package/report.api.md +85 -351
  167. package/tmp/api-report-tmp.d.ts +58 -342
  168. package/css/atlassian-dark.css +0 -786
  169. package/css/atlassian-legacy-dark.css +0 -786
  170. package/css/atlassian-legacy-light.css +0 -786
  171. package/css/atlassian-light.css +0 -786
  172. package/css/atlassian-spacing.css +0 -87
  173. package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +0 -407
  174. package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +0 -435
  175. package/dist/cjs/tokens/atlassian-legacy-dark/deprecated/deprecated.js +0 -532
  176. package/dist/cjs/tokens/atlassian-legacy-light/deprecated/deprecated.js +0 -523
  177. package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +0 -421
  178. package/dist/cjs/tokens/default/deprecated/deprecated.js +0 -1186
  179. package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +0 -399
  180. package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +0 -428
  181. package/dist/es2019/tokens/atlassian-legacy-dark/deprecated/deprecated.js +0 -525
  182. package/dist/es2019/tokens/atlassian-legacy-light/deprecated/deprecated.js +0 -516
  183. package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +0 -414
  184. package/dist/es2019/tokens/default/deprecated/deprecated.js +0 -1217
  185. package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +0 -399
  186. package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +0 -428
  187. package/dist/esm/tokens/atlassian-legacy-dark/deprecated/deprecated.js +0 -525
  188. package/dist/esm/tokens/atlassian-legacy-light/deprecated/deprecated.js +0 -516
  189. package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +0 -414
  190. package/dist/esm/tokens/default/deprecated/deprecated.js +0 -1179
  191. package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +0 -399
  192. package/dist/types/tokens/atlassian-dark/deprecated/deprecated.d.ts +0 -4
  193. package/dist/types/tokens/atlassian-legacy-dark/deprecated/deprecated.d.ts +0 -4
  194. package/dist/types/tokens/atlassian-legacy-light/deprecated/deprecated.d.ts +0 -4
  195. package/dist/types/tokens/atlassian-light/deprecated/deprecated.d.ts +0 -4
  196. package/dist/types/tokens/default/deprecated/deprecated.d.ts +0 -4
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /**
9
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
10
9
  *
@@ -19,617 +18,10 @@ exports.default = void 0;
19
18
  * These changes will then be picked up by our tooling which will attempt to
20
19
  * migrate as many of these renames as possible.
21
20
  *
22
- * @codegen <<SignedSource::f641b000c13ad37f0b16624edf778c41>>
21
+ * @codegen <<SignedSource::424b7eccf34d7d646da64d4755658ae1>>
23
22
  * @codegenCommand yarn build tokens
24
23
  */
25
- var replacementMapper = [{
26
- "path": "color.text.highEmphasis",
27
- "state": "deleted",
28
- "replacement": "color.text.[default]"
29
- }, {
30
- "path": "color.text.link.pressed",
31
- "state": "deleted",
32
- "replacement": "color.link.pressed"
33
- }, {
34
- "path": "color.text.link.resting",
35
- "state": "deleted",
36
- "replacement": "color.link.[default]"
37
- }, {
38
- "path": "color.text.lowEmphasis",
39
- "state": "deleted",
40
- "replacement": "color.text.subtlest"
41
- }, {
42
- "path": "color.text.mediumEmphasis",
43
- "state": "deleted",
44
- "replacement": "color.text.subtle"
45
- }, {
46
- "path": "color.text.onBold",
47
- "state": "deleted",
48
- "replacement": "color.text.inverse"
49
- }, {
50
- "path": "color.text.onBoldWarning",
51
- "state": "deleted",
52
- "replacement": "color.text.warning.inverse"
53
- }, {
54
- "path": "color.border.focus",
55
- "state": "deleted",
56
- "replacement": "color.border.focused"
57
- }, {
58
- "path": "color.border.neutral",
59
- "state": "deleted",
60
- "replacement": "color.border.[default]"
61
- }, {
62
- "path": "color.background.accent.red.[default]",
63
- "state": "deleted",
64
- "replacement": "color.background.accent.red.subtler"
65
- }, {
66
- "path": "color.background.accent.red.bold",
67
- "state": "deleted",
68
- "replacement": "color.background.accent.red.subtle"
69
- }, {
70
- "path": "color.background.accent.orange.[default]",
71
- "state": "deleted",
72
- "replacement": "color.background.accent.orange.subtler"
73
- }, {
74
- "path": "color.background.accent.orange.bold",
75
- "state": "deleted",
76
- "replacement": "color.background.accent.orange.subtle"
77
- }, {
78
- "path": "color.background.accent.yellow.[default]",
79
- "state": "deleted",
80
- "replacement": "color.background.accent.yellow.subtler"
81
- }, {
82
- "path": "color.background.accent.yellow.bold",
83
- "state": "deleted",
84
- "replacement": "color.background.accent.yellow.subtle"
85
- }, {
86
- "path": "color.background.accent.green.[default]",
87
- "state": "deleted",
88
- "replacement": "color.background.accent.green.subtler"
89
- }, {
90
- "path": "color.background.accent.green.bold",
91
- "state": "deleted",
92
- "replacement": "color.background.accent.green.subtle"
93
- }, {
94
- "path": "color.background.accent.teal.[default]",
95
- "state": "deleted",
96
- "replacement": "color.background.accent.teal.subtler"
97
- }, {
98
- "path": "color.background.accent.teal.bold",
99
- "state": "deleted",
100
- "replacement": "color.background.accent.teal.subtle"
101
- }, {
102
- "path": "color.background.accent.blue.[default]",
103
- "state": "deleted",
104
- "replacement": "color.background.accent.blue.subtler"
105
- }, {
106
- "path": "color.background.accent.blue.bold",
107
- "state": "deleted",
108
- "replacement": "color.background.accent.blue.subtle"
109
- }, {
110
- "path": "color.background.accent.purple.[default]",
111
- "state": "deleted",
112
- "replacement": "color.background.accent.purple.subtler"
113
- }, {
114
- "path": "color.background.accent.purple.bold",
115
- "state": "deleted",
116
- "replacement": "color.background.accent.purple.subtle"
117
- }, {
118
- "path": "color.background.accent.magenta.[default]",
119
- "state": "deleted",
120
- "replacement": "color.background.accent.magenta.subtler"
121
- }, {
122
- "path": "color.background.accent.magenta.bold",
123
- "state": "deleted",
124
- "replacement": "color.background.accent.magenta.subtle"
125
- }, {
126
- "path": "color.background.blanket",
127
- "state": "deleted",
128
- "replacement": "color.blanket.[default]"
129
- }, {
130
- "path": "color.background.boldBrand.hover",
131
- "state": "deleted",
132
- "replacement": "color.background.brand.bold.hovered"
133
- }, {
134
- "path": "color.background.boldBrand.pressed",
135
- "state": "deleted",
136
- "replacement": "color.background.brand.bold.pressed"
137
- }, {
138
- "path": "color.background.boldBrand.resting",
139
- "state": "deleted",
140
- "replacement": "color.background.brand.bold.[default]"
141
- }, {
142
- "path": "color.background.boldDanger.hover",
143
- "state": "deleted",
144
- "replacement": "color.background.danger.bold.hovered"
145
- }, {
146
- "path": "color.background.boldDanger.pressed",
147
- "state": "deleted",
148
- "replacement": "color.background.danger.bold.pressed"
149
- }, {
150
- "path": "color.background.boldDanger.resting",
151
- "state": "deleted",
152
- "replacement": "color.background.danger.bold.[default]"
153
- }, {
154
- "path": "color.background.boldDiscovery.hover",
155
- "state": "deleted",
156
- "replacement": "color.background.discovery.bold.hovered"
157
- }, {
158
- "path": "color.background.boldDiscovery.pressed",
159
- "state": "deleted",
160
- "replacement": "color.background.discovery.bold.pressed"
161
- }, {
162
- "path": "color.background.boldDiscovery.resting",
163
- "state": "deleted",
164
- "replacement": "color.background.discovery.bold.[default]"
165
- }, {
166
- "path": "color.background.boldNeutral.hover",
167
- "state": "deleted",
168
- "replacement": "color.background.neutral.bold.hovered"
169
- }, {
170
- "path": "color.background.boldNeutral.pressed",
171
- "state": "deleted",
172
- "replacement": "color.background.neutral.bold.pressed"
173
- }, {
174
- "path": "color.background.boldNeutral.resting",
175
- "state": "deleted",
176
- "replacement": "color.background.neutral.bold.[default]"
177
- }, {
178
- "path": "color.background.boldSuccess.hover",
179
- "state": "deleted",
180
- "replacement": "color.background.success.bold.hovered"
181
- }, {
182
- "path": "color.background.boldSuccess.pressed",
183
- "state": "deleted",
184
- "replacement": "color.background.success.bold.pressed"
185
- }, {
186
- "path": "color.background.boldSuccess.resting",
187
- "state": "deleted",
188
- "replacement": "color.background.success.bold.[default]"
189
- }, {
190
- "path": "color.background.boldWarning.hover",
191
- "state": "deleted",
192
- "replacement": "color.background.warning.bold.hovered"
193
- }, {
194
- "path": "color.background.boldWarning.pressed",
195
- "state": "deleted",
196
- "replacement": "color.background.warning.bold.pressed"
197
- }, {
198
- "path": "color.background.boldWarning.resting",
199
- "state": "deleted",
200
- "replacement": "color.background.warning.bold.[default]"
201
- }, {
202
- "path": "color.background.card",
203
- "state": "deleted",
204
- "replacement": "elevation.surface.raised.[default]"
205
- }, {
206
- "path": "color.background.default",
207
- "state": "deleted",
208
- "replacement": "elevation.surface.[default].[default]"
209
- }, {
210
- "path": "color.background.inverse.[default]",
211
- "state": "deleted",
212
- "replacement": "color.background.inverse.subtle.[default]"
213
- }, {
214
- "path": "color.background.overlay",
215
- "state": "deleted",
216
- "replacement": "elevation.surface.overlay.[default]"
217
- }, {
218
- "path": "color.background.selected.hover",
219
- "state": "deleted",
220
- "replacement": "color.background.selected.[default].hovered"
221
- }, {
222
- "path": "color.background.selected.resting",
223
- "state": "deleted",
224
- "replacement": "color.background.selected.[default].[default]"
225
- }, {
226
- "path": "color.background.subtleBorderedNeutral.pressed",
227
- "state": "deleted",
228
- "replacement": "color.background.input.pressed"
229
- }, {
230
- "path": "color.background.subtleBorderedNeutral.resting",
231
- "state": "deleted",
232
- "replacement": "color.background.input.[default]"
233
- }, {
234
- "path": "color.background.subtleBrand.hover",
235
- "state": "deleted",
236
- "replacement": "color.background.selected.[default].hovered"
237
- }, {
238
- "path": "color.background.subtleBrand.pressed",
239
- "state": "deleted",
240
- "replacement": "color.background.selected.[default].pressed"
241
- }, {
242
- "path": "color.background.subtleBrand.resting",
243
- "state": "deleted",
244
- "replacement": "color.background.selected.[default].[default]"
245
- }, {
246
- "path": "color.background.subtleDanger.hover",
247
- "state": "deleted",
248
- "replacement": "color.background.danger.[default].hovered"
249
- }, {
250
- "path": "color.background.subtleDanger.pressed",
251
- "state": "deleted",
252
- "replacement": "color.background.danger.[default].pressed"
253
- }, {
254
- "path": "color.background.subtleDanger.resting",
255
- "state": "deleted",
256
- "replacement": "color.background.danger.[default].[default]"
257
- }, {
258
- "path": "color.background.subtleDiscovery.hover",
259
- "state": "deleted",
260
- "replacement": "color.background.discovery.[default].hovered"
261
- }, {
262
- "path": "color.background.subtleDiscovery.pressed",
263
- "state": "deleted",
264
- "replacement": "color.background.discovery.[default].pressed"
265
- }, {
266
- "path": "color.background.subtleDiscovery.resting",
267
- "state": "deleted",
268
- "replacement": "color.background.discovery.[default].[default]"
269
- }, {
270
- "path": "color.background.subtleNeutral.hover",
271
- "state": "deleted",
272
- "replacement": "color.background.neutral.[default].hovered"
273
- }, {
274
- "path": "color.background.subtleNeutral.pressed",
275
- "state": "deleted",
276
- "replacement": "color.background.neutral.[default].pressed"
277
- }, {
278
- "path": "color.background.subtleNeutral.resting",
279
- "state": "deleted",
280
- "replacement": "color.background.neutral.[default].[default]"
281
- }, {
282
- "path": "color.background.subtleSuccess.hover",
283
- "state": "deleted",
284
- "replacement": "color.background.success.[default].hovered"
285
- }, {
286
- "path": "color.background.subtleSuccess.pressed",
287
- "state": "deleted",
288
- "replacement": "color.background.success.[default].pressed"
289
- }, {
290
- "path": "color.background.subtleSuccess.resting",
291
- "state": "deleted",
292
- "replacement": "color.background.success.[default].[default]"
293
- }, {
294
- "path": "color.background.subtleWarning.hover",
295
- "state": "deleted",
296
- "replacement": "color.background.warning.[default].hovered"
297
- }, {
298
- "path": "color.background.subtleWarning.pressed",
299
- "state": "deleted",
300
- "replacement": "color.background.warning.[default].pressed"
301
- }, {
302
- "path": "color.background.subtleWarning.resting",
303
- "state": "deleted",
304
- "replacement": "color.background.warning.[default].[default]"
305
- }, {
306
- "path": "color.background.sunken",
307
- "state": "deleted",
308
- "replacement": "elevation.surface.sunken"
309
- }, {
310
- "path": "color.background.transparentNeutral.hover",
311
- "state": "deleted",
312
- "replacement": "color.background.neutral.subtle.hovered"
313
- }, {
314
- "path": "color.background.transparentNeutral.pressed",
315
- "state": "deleted",
316
- "replacement": "color.background.neutral.subtle.pressed"
317
- }, {
318
- "path": "color.background.brand.[default].[default]",
319
- "state": "deleted",
320
- "replacement": "color.background.selected.[default].[default]"
321
- }, {
322
- "path": "color.background.brand.[default].hovered",
323
- "state": "deleted",
324
- "replacement": "color.background.selected.[default].hovered"
325
- }, {
326
- "path": "color.background.brand.[default].pressed",
327
- "state": "deleted",
328
- "replacement": "color.background.selected.[default].pressed"
329
- }, {
330
- "path": "color.interaction.inverse.hovered",
331
- "state": "deleted",
332
- "replacement": "color.background.inverse.subtle.hovered"
333
- }, {
334
- "path": "color.interaction.inverse.pressed",
335
- "state": "deleted",
336
- "replacement": "color.background.inverse.subtle.pressed"
337
- }, {
338
- "path": "color.accent.boldBlue",
339
- "state": "deleted",
340
- "replacement": "color.background.accent.blue.bolder"
341
- }, {
342
- "path": "color.accent.boldGreen",
343
- "state": "deleted",
344
- "replacement": "color.background.accent.green.bolder"
345
- }, {
346
- "path": "color.accent.boldOrange",
347
- "state": "deleted",
348
- "replacement": "color.background.accent.orange.bolder"
349
- }, {
350
- "path": "color.accent.boldPurple",
351
- "state": "deleted",
352
- "replacement": "color.background.accent.purple.bolder"
353
- }, {
354
- "path": "color.accent.boldRed",
355
- "state": "deleted",
356
- "replacement": "color.background.accent.red.bolder"
357
- }, {
358
- "path": "color.accent.boldTeal",
359
- "state": "deleted",
360
- "replacement": "color.background.accent.teal.bolder"
361
- }, {
362
- "path": "color.accent.subtleBlue",
363
- "state": "deleted",
364
- "replacement": "color.background.accent.blue.subtler"
365
- }, {
366
- "path": "color.accent.subtleGreen",
367
- "state": "deleted",
368
- "replacement": "color.background.accent.green.subtler"
369
- }, {
370
- "path": "color.accent.subtleMagenta",
371
- "state": "deleted",
372
- "replacement": "color.background.accent.magenta.subtler"
373
- }, {
374
- "path": "color.accent.subtleOrange",
375
- "state": "deleted",
376
- "replacement": "color.background.accent.orange.subtler"
377
- }, {
378
- "path": "color.accent.subtlePurple",
379
- "state": "deleted",
380
- "replacement": "color.background.accent.purple.subtler"
381
- }, {
382
- "path": "color.accent.subtleRed",
383
- "state": "deleted",
384
- "replacement": "color.background.accent.red.subtler"
385
- }, {
386
- "path": "color.accent.subtleTeal",
387
- "state": "deleted",
388
- "replacement": "color.background.accent.teal.subtler"
389
- }, {
390
- "path": "color.iconBorder.brand",
391
- "state": "deleted",
392
- "replacement": "color.icon.brand"
393
- }, {
394
- "path": "color.iconBorder.danger",
395
- "state": "deleted",
396
- "replacement": "color.icon.danger"
397
- }, {
398
- "path": "color.iconBorder.warning",
399
- "state": "deleted",
400
- "replacement": "color.icon.warning.[default]"
401
- }, {
402
- "path": "color.iconBorder.success",
403
- "state": "deleted",
404
- "replacement": "color.icon.success"
405
- }, {
406
- "path": "color.iconBorder.discovery",
407
- "state": "deleted",
408
- "replacement": "color.icon.discovery"
409
- }, {
410
- "path": "color.overlay.hover",
411
- "state": "deleted",
412
- "replacement": "color.interaction.hovered"
413
- }, {
414
- "path": "color.overlay.pressed",
415
- "state": "deleted",
416
- "replacement": "color.interaction.pressed"
417
- }, {
418
- "path": "shadow.card",
419
- "state": "deleted",
420
- "replacement": "elevation.shadow.raised"
421
- }, {
422
- "path": "shadow.overlay",
423
- "state": "deleted",
424
- "replacement": "elevation.shadow.overlay"
425
- }, {
426
- "path": "spacing.scaleLinear.0",
427
- "state": "experimental",
428
- "replacement": "0"
429
- }, {
430
- "path": "spacing.scaleLinear.100",
431
- "state": "experimental",
432
- "replacement": "2px"
433
- }, {
434
- "path": "spacing.scaleLinear.200",
435
- "state": "experimental",
436
- "replacement": "4px"
437
- }, {
438
- "path": "spacing.scaleLinear.300",
439
- "state": "experimental",
440
- "replacement": "6px"
441
- }, {
442
- "path": "spacing.scaleLinear.400",
443
- "state": "experimental",
444
- "replacement": "8px"
445
- }, {
446
- "path": "spacing.scaleLinear.500",
447
- "state": "experimental",
448
- "replacement": "12px"
449
- }, {
450
- "path": "spacing.scaleLinear.600",
451
- "state": "experimental",
452
- "replacement": "16px"
453
- }, {
454
- "path": "spacing.scaleLinear.700",
455
- "state": "experimental",
456
- "replacement": "20px"
457
- }, {
458
- "path": "spacing.scaleLinear.800",
459
- "state": "experimental",
460
- "replacement": "24px"
461
- }, {
462
- "path": "spacing.scaleLinear.900",
463
- "state": "experimental",
464
- "replacement": "32px"
465
- }, {
466
- "path": "spacing.scaleLinear.1000",
467
- "state": "experimental",
468
- "replacement": "40px"
469
- }, {
470
- "path": "spacing.scaleLinear.1100",
471
- "state": "experimental",
472
- "replacement": "48px"
473
- }, {
474
- "path": "spacing.size.none",
475
- "state": "experimental",
476
- "replacement": "0"
477
- }, {
478
- "path": "spacing.size.xxxxSmall",
479
- "state": "experimental",
480
- "replacement": "2px"
481
- }, {
482
- "path": "spacing.size.xxxSmall",
483
- "state": "experimental",
484
- "replacement": "4px"
485
- }, {
486
- "path": "spacing.size.xxSmall",
487
- "state": "experimental",
488
- "replacement": "6px"
489
- }, {
490
- "path": "spacing.size.xsmall",
491
- "state": "experimental",
492
- "replacement": "8px"
493
- }, {
494
- "path": "spacing.size.small",
495
- "state": "experimental",
496
- "replacement": "12px"
497
- }, {
498
- "path": "spacing.size.medium",
499
- "state": "experimental",
500
- "replacement": "16px"
501
- }, {
502
- "path": "spacing.size.large",
503
- "state": "experimental",
504
- "replacement": "20px"
505
- }, {
506
- "path": "spacing.size.xlarge",
507
- "state": "experimental",
508
- "replacement": "24px"
509
- }, {
510
- "path": "spacing.size.xxlarge",
511
- "state": "experimental",
512
- "replacement": "32px"
513
- }, {
514
- "path": "spacing.size.xxxlarge",
515
- "state": "experimental",
516
- "replacement": "40px"
517
- }, {
518
- "path": "spacing.size.xxxxlarge",
519
- "state": "experimental",
520
- "replacement": "48px"
521
- }, {
522
- "path": "spacing.gap.100",
523
- "state": "experimental",
524
- "replacement": "8px"
525
- }, {
526
- "path": "spacing.gap.200",
527
- "state": "experimental",
528
- "replacement": "16px"
529
- }, {
530
- "path": "spacing.gap.300",
531
- "state": "experimental",
532
- "replacement": "24px"
533
- }, {
534
- "path": "spacing.inset.100",
535
- "state": "experimental",
536
- "replacement": "8px"
537
- }, {
538
- "path": "spacing.inset.200",
539
- "state": "experimental",
540
- "replacement": "16px"
541
- }, {
542
- "path": "spacing.inset.300",
543
- "state": "experimental",
544
- "replacement": "24px"
545
- }, {
546
- "path": "spacing.ecl.container.12",
547
- "state": "experimental",
548
- "replacement": "12px"
549
- }, {
550
- "path": "spacing.ecl.container.16",
551
- "state": "experimental",
552
- "replacement": "16px"
553
- }, {
554
- "path": "spacing.ecl.container.20",
555
- "state": "experimental",
556
- "replacement": "20px"
557
- }, {
558
- "path": "spacing.ecl.container.24",
559
- "state": "experimental",
560
- "replacement": "24px"
561
- }, {
562
- "path": "spacing.ecl.element.2",
563
- "state": "experimental",
564
- "replacement": "2px"
565
- }, {
566
- "path": "spacing.ecl.element.4",
567
- "state": "experimental",
568
- "replacement": "4px"
569
- }, {
570
- "path": "spacing.ecl.element.6",
571
- "state": "experimental",
572
- "replacement": "6px"
573
- }, {
574
- "path": "spacing.ecl.element.8",
575
- "state": "experimental",
576
- "replacement": "8px"
577
- }, {
578
- "path": "spacing.ecl.layout.32",
579
- "state": "experimental",
580
- "replacement": "32px"
581
- }, {
582
- "path": "spacing.ecl.layout.40",
583
- "state": "experimental",
584
- "replacement": "40px"
585
- }, {
586
- "path": "spacing.ecl.layout.64",
587
- "state": "experimental",
588
- "replacement": "64px"
589
- }, {
590
- "path": "spacing.ccc.component.2",
591
- "state": "experimental",
592
- "replacement": "2px"
593
- }, {
594
- "path": "spacing.ccc.component.4",
595
- "state": "experimental",
596
- "replacement": "4px"
597
- }, {
598
- "path": "spacing.ccc.component.6",
599
- "state": "experimental",
600
- "replacement": "6px"
601
- }, {
602
- "path": "spacing.ccc.component.8",
603
- "state": "experimental",
604
- "replacement": "8px"
605
- }, {
606
- "path": "spacing.ccc.container.32",
607
- "state": "experimental",
608
- "replacement": "32px"
609
- }, {
610
- "path": "spacing.ccc.container.40",
611
- "state": "experimental",
612
- "replacement": "40px"
613
- }, {
614
- "path": "spacing.ccc.container.48",
615
- "state": "experimental",
616
- "replacement": "48px"
617
- }, {
618
- "path": "spacing.ccc.content.12",
619
- "state": "experimental",
620
- "replacement": "12px"
621
- }, {
622
- "path": "spacing.ccc.content.16",
623
- "state": "experimental",
624
- "replacement": "16px"
625
- }, {
626
- "path": "spacing.ccc.content.20",
627
- "state": "experimental",
628
- "replacement": "20px"
629
- }, {
630
- "path": "spacing.ccc.content.24",
631
- "state": "experimental",
632
- "replacement": "24px"
633
- }];
24
+
25
+ var replacementMapper = [];
634
26
  var _default = replacementMapper;
635
27
  exports.default = _default;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ /**
12
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
13
+ *
14
+ * This file contains a dynamic import for each theme this package exports.
15
+ * Themes are loaded asynchronously at runtime to minimise the amount of CSS we send to the client.
16
+ * This allows users to compose their themes and only use the tokens that are requested.
17
+ * When a new theme is created, the import should automatically be added to the map
18
+ *
19
+ * @codegen <<SignedSource::dca5807b567cf95fcec4906be228f65f>>
20
+ * @codegenCommand yarn build tokens
21
+ */
22
+
23
+ var themeImportsMap = {
24
+ 'light': function light() {
25
+ return Promise.resolve().then(function () {
26
+ return _interopRequireWildcard(require('./themes/atlassian-light'));
27
+ });
28
+ },
29
+ 'dark': function dark() {
30
+ return Promise.resolve().then(function () {
31
+ return _interopRequireWildcard(require('./themes/atlassian-dark'));
32
+ });
33
+ },
34
+ 'legacy-light': function legacyLight() {
35
+ return Promise.resolve().then(function () {
36
+ return _interopRequireWildcard(require('./themes/atlassian-legacy-light'));
37
+ });
38
+ },
39
+ 'legacy-dark': function legacyDark() {
40
+ return Promise.resolve().then(function () {
41
+ return _interopRequireWildcard(require('./themes/atlassian-legacy-dark'));
42
+ });
43
+ },
44
+ 'spacing': function spacing() {
45
+ return Promise.resolve().then(function () {
46
+ return _interopRequireWildcard(require('./themes/atlassian-spacing'));
47
+ });
48
+ },
49
+ 'typography': function typography() {
50
+ return Promise.resolve().then(function () {
51
+ return _interopRequireWildcard(require('./themes/atlassian-typography'));
52
+ });
53
+ }
54
+ };
55
+ var _default = themeImportsMap;
56
+ exports.default = _default;