@atlaskit/tokens 0.5.0 → 0.6.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 +12 -0
- package/css/atlassian-dark.css +196 -67
- package/css/atlassian-light.css +196 -67
- package/dist/cjs/artifacts/rename-mapping.js +321 -1
- package/dist/cjs/artifacts/token-default-values.js +196 -67
- package/dist/cjs/artifacts/token-names.js +196 -67
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +3311 -616
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +3296 -621
- package/dist/cjs/artifacts/types-internal.js +5 -0
- package/dist/cjs/get-token.js +10 -3
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +150 -39
- package/dist/cjs/tokens/atlassian-dark/color/background.js +178 -154
- package/dist/cjs/tokens/atlassian-dark/color/border.js +26 -2
- package/dist/cjs/tokens/atlassian-dark/color/icon.js +49 -0
- package/dist/cjs/tokens/atlassian-dark/color/interaction.js +32 -0
- package/dist/cjs/tokens/atlassian-dark/color/text.js +25 -23
- package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +344 -0
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +66 -0
- package/dist/cjs/tokens/atlassian-dark/elevation/surface.js +26 -0
- package/dist/cjs/tokens/atlassian-light/color/accent.js +150 -39
- package/dist/cjs/tokens/atlassian-light/color/background.js +178 -154
- package/dist/cjs/tokens/atlassian-light/color/border.js +26 -2
- package/dist/cjs/tokens/atlassian-light/color/icon.js +49 -0
- package/dist/cjs/tokens/atlassian-light/color/interaction.js +32 -0
- package/dist/cjs/tokens/atlassian-light/color/text.js +25 -23
- package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +330 -0
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +52 -0
- package/dist/cjs/tokens/atlassian-light/elevation/surface.js +26 -0
- package/dist/cjs/tokens/default/color/accent.js +306 -87
- package/dist/cjs/tokens/default/color/background.js +339 -309
- package/dist/cjs/tokens/default/color/border.js +60 -4
- package/dist/cjs/tokens/default/color/icon.js +93 -0
- package/dist/cjs/tokens/default/color/interaction.js +44 -0
- package/dist/cjs/tokens/default/color/text.js +37 -35
- package/dist/cjs/tokens/default/deprecated/deprecated.js +698 -0
- package/dist/cjs/tokens/default/elevation/shadow.js +28 -0
- package/dist/cjs/tokens/default/elevation/surface.js +42 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +321 -1
- package/dist/es2019/artifacts/token-default-values.js +196 -67
- package/dist/es2019/artifacts/token-names.js +196 -67
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +3311 -616
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +3296 -621
- package/dist/es2019/artifacts/types-internal.js +1 -0
- package/dist/es2019/get-token.js +8 -3
- package/dist/es2019/tokens/atlassian-dark/color/accent.js +150 -39
- package/dist/es2019/tokens/atlassian-dark/color/background.js +178 -154
- package/dist/es2019/tokens/atlassian-dark/color/border.js +26 -2
- package/dist/es2019/tokens/atlassian-dark/color/icon.js +42 -0
- package/dist/es2019/tokens/atlassian-dark/color/interaction.js +25 -0
- package/dist/es2019/tokens/atlassian-dark/color/text.js +25 -23
- package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +337 -0
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +59 -0
- package/dist/es2019/tokens/atlassian-dark/elevation/surface.js +19 -0
- package/dist/es2019/tokens/atlassian-light/color/accent.js +150 -39
- package/dist/es2019/tokens/atlassian-light/color/background.js +178 -154
- package/dist/es2019/tokens/atlassian-light/color/border.js +26 -2
- package/dist/es2019/tokens/atlassian-light/color/icon.js +42 -0
- package/dist/es2019/tokens/atlassian-light/color/interaction.js +25 -0
- package/dist/es2019/tokens/atlassian-light/color/text.js +25 -23
- package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +323 -0
- package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +45 -0
- package/dist/es2019/tokens/atlassian-light/elevation/surface.js +19 -0
- package/dist/es2019/tokens/default/color/accent.js +306 -87
- package/dist/es2019/tokens/default/color/background.js +339 -314
- package/dist/es2019/tokens/default/color/border.js +60 -4
- package/dist/es2019/tokens/default/color/icon.js +86 -0
- package/dist/es2019/tokens/default/color/interaction.js +37 -0
- package/dist/es2019/tokens/default/color/text.js +37 -42
- package/dist/es2019/tokens/default/deprecated/deprecated.js +729 -0
- package/dist/es2019/tokens/default/elevation/shadow.js +23 -0
- package/dist/es2019/tokens/default/elevation/surface.js +37 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +321 -1
- package/dist/esm/artifacts/token-default-values.js +196 -67
- package/dist/esm/artifacts/token-names.js +196 -67
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +3311 -616
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +3296 -621
- package/dist/esm/artifacts/types-internal.js +1 -0
- package/dist/esm/get-token.js +8 -3
- package/dist/esm/tokens/atlassian-dark/color/accent.js +150 -39
- package/dist/esm/tokens/atlassian-dark/color/background.js +178 -154
- package/dist/esm/tokens/atlassian-dark/color/border.js +26 -2
- package/dist/esm/tokens/atlassian-dark/color/icon.js +42 -0
- package/dist/esm/tokens/atlassian-dark/color/interaction.js +25 -0
- package/dist/esm/tokens/atlassian-dark/color/text.js +25 -23
- package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +337 -0
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +59 -0
- package/dist/esm/tokens/atlassian-dark/elevation/surface.js +19 -0
- package/dist/esm/tokens/atlassian-light/color/accent.js +150 -39
- package/dist/esm/tokens/atlassian-light/color/background.js +178 -154
- package/dist/esm/tokens/atlassian-light/color/border.js +26 -2
- package/dist/esm/tokens/atlassian-light/color/icon.js +42 -0
- package/dist/esm/tokens/atlassian-light/color/interaction.js +25 -0
- package/dist/esm/tokens/atlassian-light/color/text.js +25 -23
- package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +323 -0
- package/dist/esm/tokens/atlassian-light/elevation/shadow.js +45 -0
- package/dist/esm/tokens/atlassian-light/elevation/surface.js +19 -0
- package/dist/esm/tokens/default/color/accent.js +306 -87
- package/dist/esm/tokens/default/color/background.js +339 -309
- package/dist/esm/tokens/default/color/border.js +60 -4
- package/dist/esm/tokens/default/color/icon.js +86 -0
- package/dist/esm/tokens/default/color/interaction.js +37 -0
- package/dist/esm/tokens/default/color/text.js +37 -35
- package/dist/esm/tokens/default/deprecated/deprecated.js +691 -0
- package/dist/esm/tokens/default/elevation/shadow.js +21 -0
- package/dist/esm/tokens/default/elevation/surface.js +35 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +196 -67
- package/dist/types/artifacts/token-names.d.ts +392 -134
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +86 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +62 -0
- package/dist/types/artifacts/types-internal.d.ts +4 -0
- package/dist/types/artifacts/types.d.ts +1 -1
- package/dist/types/get-token.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/icon.d.ts +3 -0
- package/dist/types/tokens/atlassian-dark/color/interaction.d.ts +3 -0
- package/dist/types/tokens/atlassian-dark/deprecated/deprecated.d.ts +3 -0
- package/dist/types/tokens/atlassian-dark/{shadow → elevation}/shadow.d.ts +0 -0
- package/dist/types/tokens/atlassian-dark/elevation/surface.d.ts +3 -0
- package/dist/types/tokens/atlassian-light/color/icon.d.ts +3 -0
- package/dist/types/tokens/atlassian-light/color/interaction.d.ts +3 -0
- package/dist/types/tokens/atlassian-light/deprecated/deprecated.d.ts +3 -0
- package/dist/types/tokens/atlassian-light/{shadow → elevation}/shadow.d.ts +0 -0
- package/dist/types/tokens/atlassian-light/elevation/surface.d.ts +3 -0
- package/dist/types/tokens/default/color/icon.d.ts +3 -0
- package/dist/types/tokens/default/color/interaction.d.ts +3 -0
- package/dist/types/tokens/default/deprecated/deprecated.d.ts +3 -0
- package/dist/types/tokens/default/{shadow → elevation}/shadow.d.ts +0 -0
- package/dist/types/tokens/default/elevation/surface.d.ts +3 -0
- package/dist/types/tokens/default/utility/utility.d.ts +72 -72
- package/dist/types/types.d.ts +294 -54
- package/package.json +2 -1
- package/tokens-browser-extension/manifest.json +1 -2
- package/dist/cjs/tokens/atlassian-dark/color/icon-border.js +0 -29
- package/dist/cjs/tokens/atlassian-dark/color/overlay.js +0 -20
- package/dist/cjs/tokens/atlassian-dark/shadow/shadow.js +0 -64
- package/dist/cjs/tokens/atlassian-light/color/icon-border.js +0 -29
- package/dist/cjs/tokens/atlassian-light/color/overlay.js +0 -20
- package/dist/cjs/tokens/atlassian-light/shadow/shadow.js +0 -50
- package/dist/cjs/tokens/default/color/icon-border.js +0 -49
- package/dist/cjs/tokens/default/color/overlay.js +0 -28
- package/dist/cjs/tokens/default/shadow/shadow.js +0 -26
- package/dist/es2019/tokens/atlassian-dark/color/icon-border.js +0 -22
- package/dist/es2019/tokens/atlassian-dark/color/overlay.js +0 -13
- package/dist/es2019/tokens/atlassian-dark/shadow/shadow.js +0 -57
- package/dist/es2019/tokens/atlassian-light/color/icon-border.js +0 -22
- package/dist/es2019/tokens/atlassian-light/color/overlay.js +0 -13
- package/dist/es2019/tokens/atlassian-light/shadow/shadow.js +0 -43
- package/dist/es2019/tokens/default/color/icon-border.js +0 -60
- package/dist/es2019/tokens/default/color/overlay.js +0 -21
- package/dist/es2019/tokens/default/shadow/shadow.js +0 -27
- package/dist/esm/tokens/atlassian-dark/color/icon-border.js +0 -22
- package/dist/esm/tokens/atlassian-dark/color/overlay.js +0 -13
- package/dist/esm/tokens/atlassian-dark/shadow/shadow.js +0 -57
- package/dist/esm/tokens/atlassian-light/color/icon-border.js +0 -22
- package/dist/esm/tokens/atlassian-light/color/overlay.js +0 -13
- package/dist/esm/tokens/atlassian-light/shadow/shadow.js +0 -43
- package/dist/esm/tokens/default/color/icon-border.js +0 -42
- package/dist/esm/tokens/default/color/overlay.js +0 -21
- package/dist/esm/tokens/default/shadow/shadow.js +0 -19
- package/dist/types/tokens/atlassian-dark/color/icon-border.d.ts +0 -3
- package/dist/types/tokens/atlassian-dark/color/overlay.d.ts +0 -3
- package/dist/types/tokens/atlassian-light/color/icon-border.d.ts +0 -3
- package/dist/types/tokens/atlassian-light/color/overlay.d.ts +0 -3
- package/dist/types/tokens/default/color/icon-border.d.ts +0 -3
- package/dist/types/tokens/default/color/overlay.d.ts +0 -3
package/dist/types/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InternalTokenIds } from './artifacts/types-internal';
|
|
2
2
|
export declare type Groups = 'raw' | 'paint' | 'shadow' | 'palette';
|
|
3
3
|
export declare type ActiveTokenStates = 'active';
|
|
4
4
|
export declare type ReplacedTokenStates = 'deprecated' | 'deleted';
|
|
5
5
|
export declare type TokenState = ActiveTokenStates | ReplacedTokenStates;
|
|
6
|
-
export declare type Replacement =
|
|
6
|
+
export declare type Replacement = InternalTokenIds | InternalTokenIds[];
|
|
7
7
|
export interface Token<TValue, Group extends Groups> {
|
|
8
8
|
value: TValue;
|
|
9
9
|
attributes: {
|
|
@@ -186,6 +186,295 @@ export interface PaletteColorTokenSchema {
|
|
|
186
186
|
}
|
|
187
187
|
export interface BackgroundColorTokenSchema {
|
|
188
188
|
color: {
|
|
189
|
+
blanket: PaintToken;
|
|
190
|
+
background: {
|
|
191
|
+
disabled: PaintToken;
|
|
192
|
+
inverse: PaintToken;
|
|
193
|
+
input: {
|
|
194
|
+
'[default]': PaintToken;
|
|
195
|
+
hovered: PaintToken;
|
|
196
|
+
pressed: PaintToken;
|
|
197
|
+
};
|
|
198
|
+
neutral: {
|
|
199
|
+
'[default]': {
|
|
200
|
+
'[default]': PaintToken;
|
|
201
|
+
hovered: PaintToken;
|
|
202
|
+
pressed: PaintToken;
|
|
203
|
+
};
|
|
204
|
+
subtle: {
|
|
205
|
+
'[default]': PaintToken;
|
|
206
|
+
hovered: PaintToken;
|
|
207
|
+
pressed: PaintToken;
|
|
208
|
+
};
|
|
209
|
+
bold: {
|
|
210
|
+
'[default]': PaintToken;
|
|
211
|
+
hovered: PaintToken;
|
|
212
|
+
pressed: PaintToken;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
brand: {
|
|
216
|
+
'[default]': {
|
|
217
|
+
'[default]': PaintToken;
|
|
218
|
+
hovered: PaintToken;
|
|
219
|
+
pressed: PaintToken;
|
|
220
|
+
};
|
|
221
|
+
bold: {
|
|
222
|
+
'[default]': PaintToken;
|
|
223
|
+
hovered: PaintToken;
|
|
224
|
+
pressed: PaintToken;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
danger: {
|
|
228
|
+
'[default]': {
|
|
229
|
+
'[default]': PaintToken;
|
|
230
|
+
hovered: PaintToken;
|
|
231
|
+
pressed: PaintToken;
|
|
232
|
+
};
|
|
233
|
+
bold: {
|
|
234
|
+
'[default]': PaintToken;
|
|
235
|
+
hovered: PaintToken;
|
|
236
|
+
pressed: PaintToken;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
warning: {
|
|
240
|
+
'[default]': {
|
|
241
|
+
'[default]': PaintToken;
|
|
242
|
+
hovered: PaintToken;
|
|
243
|
+
pressed: PaintToken;
|
|
244
|
+
};
|
|
245
|
+
bold: {
|
|
246
|
+
'[default]': PaintToken;
|
|
247
|
+
hovered: PaintToken;
|
|
248
|
+
pressed: PaintToken;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
success: {
|
|
252
|
+
'[default]': {
|
|
253
|
+
'[default]': PaintToken;
|
|
254
|
+
hovered: PaintToken;
|
|
255
|
+
pressed: PaintToken;
|
|
256
|
+
};
|
|
257
|
+
bold: {
|
|
258
|
+
'[default]': PaintToken;
|
|
259
|
+
hovered: PaintToken;
|
|
260
|
+
pressed: PaintToken;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
discovery: {
|
|
264
|
+
'[default]': {
|
|
265
|
+
'[default]': PaintToken;
|
|
266
|
+
hovered: PaintToken;
|
|
267
|
+
pressed: PaintToken;
|
|
268
|
+
};
|
|
269
|
+
bold: {
|
|
270
|
+
'[default]': PaintToken;
|
|
271
|
+
hovered: PaintToken;
|
|
272
|
+
pressed: PaintToken;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
information: {
|
|
276
|
+
'[default]': {
|
|
277
|
+
'[default]': PaintToken;
|
|
278
|
+
hovered: PaintToken;
|
|
279
|
+
pressed: PaintToken;
|
|
280
|
+
};
|
|
281
|
+
bold: {
|
|
282
|
+
'[default]': PaintToken;
|
|
283
|
+
hovered: PaintToken;
|
|
284
|
+
pressed: PaintToken;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
export interface BorderColorTokenSchema {
|
|
291
|
+
color: {
|
|
292
|
+
border: {
|
|
293
|
+
'[default]': PaintToken;
|
|
294
|
+
focused: PaintToken;
|
|
295
|
+
input: PaintToken;
|
|
296
|
+
disabled: PaintToken;
|
|
297
|
+
brand: PaintToken;
|
|
298
|
+
danger: PaintToken;
|
|
299
|
+
warning: PaintToken;
|
|
300
|
+
success: PaintToken;
|
|
301
|
+
discovery: PaintToken;
|
|
302
|
+
information: PaintToken;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
export interface IconColorTokenSchema {
|
|
307
|
+
color: {
|
|
308
|
+
icon: {
|
|
309
|
+
'[default]': PaintToken;
|
|
310
|
+
subtle: PaintToken;
|
|
311
|
+
inverse: PaintToken;
|
|
312
|
+
disabled: PaintToken;
|
|
313
|
+
brand: PaintToken;
|
|
314
|
+
danger: PaintToken;
|
|
315
|
+
warning: {
|
|
316
|
+
'[default]': PaintToken;
|
|
317
|
+
inverse: PaintToken;
|
|
318
|
+
};
|
|
319
|
+
success: PaintToken;
|
|
320
|
+
discovery: PaintToken;
|
|
321
|
+
information: PaintToken;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
export interface TextColorTokenSchema {
|
|
326
|
+
color: {
|
|
327
|
+
text: {
|
|
328
|
+
'[default]': PaintToken;
|
|
329
|
+
subtle: PaintToken;
|
|
330
|
+
subtlest: PaintToken;
|
|
331
|
+
inverse: PaintToken;
|
|
332
|
+
brand: PaintToken;
|
|
333
|
+
danger: PaintToken;
|
|
334
|
+
warning: {
|
|
335
|
+
'[default]': PaintToken;
|
|
336
|
+
inverse: PaintToken;
|
|
337
|
+
};
|
|
338
|
+
success: PaintToken;
|
|
339
|
+
information: PaintToken;
|
|
340
|
+
discovery: PaintToken;
|
|
341
|
+
disabled: PaintToken;
|
|
342
|
+
};
|
|
343
|
+
link: {
|
|
344
|
+
'[default]': PaintToken;
|
|
345
|
+
pressed: PaintToken;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
export interface AccentColorTokenSchema {
|
|
350
|
+
color: {
|
|
351
|
+
text: {
|
|
352
|
+
accent: {
|
|
353
|
+
blue: PaintToken;
|
|
354
|
+
red: PaintToken;
|
|
355
|
+
orange: PaintToken;
|
|
356
|
+
yellow: PaintToken;
|
|
357
|
+
green: PaintToken;
|
|
358
|
+
purple: PaintToken;
|
|
359
|
+
teal: PaintToken;
|
|
360
|
+
magenta: PaintToken;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
icon: {
|
|
364
|
+
accent: {
|
|
365
|
+
blue: PaintToken;
|
|
366
|
+
red: PaintToken;
|
|
367
|
+
orange: PaintToken;
|
|
368
|
+
yellow: PaintToken;
|
|
369
|
+
green: PaintToken;
|
|
370
|
+
purple: PaintToken;
|
|
371
|
+
teal: PaintToken;
|
|
372
|
+
magenta: PaintToken;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
border: {
|
|
376
|
+
accent: {
|
|
377
|
+
blue: PaintToken;
|
|
378
|
+
red: PaintToken;
|
|
379
|
+
orange: PaintToken;
|
|
380
|
+
yellow: PaintToken;
|
|
381
|
+
green: PaintToken;
|
|
382
|
+
purple: PaintToken;
|
|
383
|
+
teal: PaintToken;
|
|
384
|
+
magenta: PaintToken;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
background: {
|
|
388
|
+
accent: {
|
|
389
|
+
blue: {
|
|
390
|
+
'[default]': PaintToken;
|
|
391
|
+
bold: PaintToken;
|
|
392
|
+
};
|
|
393
|
+
red: {
|
|
394
|
+
'[default]': PaintToken;
|
|
395
|
+
bold: PaintToken;
|
|
396
|
+
};
|
|
397
|
+
orange: {
|
|
398
|
+
'[default]': PaintToken;
|
|
399
|
+
bold: PaintToken;
|
|
400
|
+
};
|
|
401
|
+
yellow: {
|
|
402
|
+
'[default]': PaintToken;
|
|
403
|
+
bold: PaintToken;
|
|
404
|
+
};
|
|
405
|
+
green: {
|
|
406
|
+
'[default]': PaintToken;
|
|
407
|
+
bold: PaintToken;
|
|
408
|
+
};
|
|
409
|
+
teal: {
|
|
410
|
+
'[default]': PaintToken;
|
|
411
|
+
bold: PaintToken;
|
|
412
|
+
};
|
|
413
|
+
purple: {
|
|
414
|
+
'[default]': PaintToken;
|
|
415
|
+
bold: PaintToken;
|
|
416
|
+
};
|
|
417
|
+
magenta: {
|
|
418
|
+
'[default]': PaintToken;
|
|
419
|
+
bold: PaintToken;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
export interface InteractionColorTokenSchema {
|
|
426
|
+
color: {
|
|
427
|
+
interaction: {
|
|
428
|
+
pressed: PaintToken;
|
|
429
|
+
hovered: PaintToken;
|
|
430
|
+
inverse: {
|
|
431
|
+
pressed: PaintToken;
|
|
432
|
+
hovered: PaintToken;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
export interface UtilTokenSchema {
|
|
438
|
+
UNSAFE_util: {
|
|
439
|
+
transparent: RawToken;
|
|
440
|
+
MISSING_TOKEN: RawToken;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
export interface SurfaceTokenSchema {
|
|
444
|
+
elevation: {
|
|
445
|
+
surface: {
|
|
446
|
+
'[default]': PaintToken;
|
|
447
|
+
sunken: PaintToken;
|
|
448
|
+
raised: PaintToken;
|
|
449
|
+
overlay: PaintToken;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
export interface ShadowTokenSchema {
|
|
454
|
+
elevation: {
|
|
455
|
+
shadow: {
|
|
456
|
+
raised: ShadowToken;
|
|
457
|
+
overlay: ShadowToken;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
export interface DeprecatedTokenSchema {
|
|
462
|
+
color: {
|
|
463
|
+
accent: {
|
|
464
|
+
boldBlue: PaintToken;
|
|
465
|
+
boldGreen: PaintToken;
|
|
466
|
+
boldOrange: PaintToken;
|
|
467
|
+
boldPurple: PaintToken;
|
|
468
|
+
boldRed: PaintToken;
|
|
469
|
+
boldTeal: PaintToken;
|
|
470
|
+
subtleBlue: PaintToken;
|
|
471
|
+
subtleRed: PaintToken;
|
|
472
|
+
subtleGreen: PaintToken;
|
|
473
|
+
subtleOrange: PaintToken;
|
|
474
|
+
subtleTeal: PaintToken;
|
|
475
|
+
subtlePurple: PaintToken;
|
|
476
|
+
subtleMagenta: PaintToken;
|
|
477
|
+
};
|
|
189
478
|
background: {
|
|
190
479
|
default: PaintToken;
|
|
191
480
|
sunken: PaintToken;
|
|
@@ -196,7 +485,6 @@ export interface BackgroundColorTokenSchema {
|
|
|
196
485
|
hover: PaintToken;
|
|
197
486
|
pressed: PaintToken;
|
|
198
487
|
};
|
|
199
|
-
disabled: PaintToken;
|
|
200
488
|
blanket: PaintToken;
|
|
201
489
|
boldBrand: {
|
|
202
490
|
resting: PaintToken;
|
|
@@ -267,18 +555,10 @@ export interface BackgroundColorTokenSchema {
|
|
|
267
555
|
pressed: PaintToken;
|
|
268
556
|
};
|
|
269
557
|
};
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
export interface BorderColorTokenSchema {
|
|
273
|
-
color: {
|
|
274
558
|
border: {
|
|
275
559
|
focus: PaintToken;
|
|
276
560
|
neutral: PaintToken;
|
|
277
561
|
};
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
export interface IconBorderColorTokenSchema {
|
|
281
|
-
color: {
|
|
282
562
|
iconBorder: {
|
|
283
563
|
brand: PaintToken;
|
|
284
564
|
danger: PaintToken;
|
|
@@ -286,10 +566,6 @@ export interface IconBorderColorTokenSchema {
|
|
|
286
566
|
success: PaintToken;
|
|
287
567
|
discovery: PaintToken;
|
|
288
568
|
};
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
export interface TextColorTokenSchema {
|
|
292
|
-
color: {
|
|
293
569
|
text: {
|
|
294
570
|
selected: PaintToken;
|
|
295
571
|
highEmphasis: PaintToken;
|
|
@@ -301,54 +577,18 @@ export interface TextColorTokenSchema {
|
|
|
301
577
|
resting: PaintToken;
|
|
302
578
|
pressed: PaintToken;
|
|
303
579
|
};
|
|
304
|
-
brand: PaintToken;
|
|
305
|
-
warning: PaintToken;
|
|
306
|
-
danger: PaintToken;
|
|
307
|
-
success: PaintToken;
|
|
308
|
-
discovery: PaintToken;
|
|
309
|
-
disabled: PaintToken;
|
|
310
580
|
};
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
export interface AccentColorTokenSchema {
|
|
314
|
-
color: {
|
|
315
|
-
accent: {
|
|
316
|
-
boldBlue: PaintToken;
|
|
317
|
-
boldGreen: PaintToken;
|
|
318
|
-
boldOrange: PaintToken;
|
|
319
|
-
boldPurple: PaintToken;
|
|
320
|
-
boldRed: PaintToken;
|
|
321
|
-
boldTeal: PaintToken;
|
|
322
|
-
subtleBlue: PaintToken;
|
|
323
|
-
subtleRed: PaintToken;
|
|
324
|
-
subtleGreen: PaintToken;
|
|
325
|
-
subtleOrange: PaintToken;
|
|
326
|
-
subtleTeal: PaintToken;
|
|
327
|
-
subtlePurple: PaintToken;
|
|
328
|
-
subtleMagenta: PaintToken;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
export interface OverlayColorTokenSchema {
|
|
333
|
-
color: {
|
|
334
581
|
overlay: {
|
|
335
582
|
pressed: PaintToken;
|
|
336
583
|
hover: PaintToken;
|
|
337
584
|
};
|
|
338
585
|
};
|
|
339
|
-
}
|
|
340
|
-
export interface ShadowTokenSchema {
|
|
341
586
|
shadow: {
|
|
342
587
|
card: ShadowToken;
|
|
343
588
|
overlay: ShadowToken;
|
|
344
589
|
};
|
|
345
590
|
}
|
|
346
|
-
export
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
MISSING_TOKEN: RawToken;
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconBorderColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
|
|
353
|
-
export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ShadowTokenSchema;
|
|
591
|
+
export declare type ElevationTokenSchema = SurfaceTokenSchema & ShadowTokenSchema;
|
|
592
|
+
export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
|
|
593
|
+
export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ElevationTokenSchema;
|
|
354
594
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "Tokens are a single source of truth to name and store Atlassian design decisions.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"codegen-tokens": "ts-node --project ../../../tsconfig.node.json ./scripts/style-dictionary/build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@atlaskit/ds-lib": "^1.3.0",
|
|
34
35
|
"@babel/runtime": "^7.0.0",
|
|
35
36
|
"@babel/traverse": "^7.15.0",
|
|
36
37
|
"@babel/types": "^7.15.0"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"storage",
|
|
17
17
|
"webNavigation"
|
|
18
18
|
],
|
|
19
|
-
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs88BPdeATfZMpEmyioaG2gS8OXpcEYKTnfriDiOPrHApjiMOrbiMU2cFZsbxqKpBMktKrmOa6PRq328H6N4QN42p2c9eGdY1Mgun9UAQFV1EQWsUelAWzKeZRMRPWVBTnMHVRIHe7p9cXoHCTRB0kIbqR+P7zhxaf2bCaaiQ/UUMeX7LFLDoXNCmuFOnjLLupkNgJJdPIDCHpEypwQCpNNUH4UsOxJ0yTfAplYdw7cc7ZwSh/BJqAWRplywkXwRrL5FeFfXknIi/tMZzxYv4ZM89CY5ogPr1JZMVA5sw0xW0oh81wLHa6Y47mmPXgMtzyNKZ/QJRP6b66uNuot+FXQIDAQAB",
|
|
20
19
|
"content_scripts": [
|
|
21
20
|
{
|
|
22
21
|
"matches": [
|
|
@@ -33,4 +32,4 @@
|
|
|
33
32
|
}
|
|
34
33
|
],
|
|
35
34
|
"manifest_version": 2
|
|
36
|
-
}
|
|
35
|
+
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var color = {
|
|
8
|
-
color: {
|
|
9
|
-
iconBorder: {
|
|
10
|
-
brand: {
|
|
11
|
-
value: 'B500'
|
|
12
|
-
},
|
|
13
|
-
danger: {
|
|
14
|
-
value: 'R500'
|
|
15
|
-
},
|
|
16
|
-
warning: {
|
|
17
|
-
value: 'Y500'
|
|
18
|
-
},
|
|
19
|
-
success: {
|
|
20
|
-
value: 'G500'
|
|
21
|
-
},
|
|
22
|
-
discovery: {
|
|
23
|
-
value: 'P500'
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var _default = color;
|
|
29
|
-
exports.default = _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var color = {
|
|
8
|
-
color: {
|
|
9
|
-
overlay: {
|
|
10
|
-
hover: {
|
|
11
|
-
value: 'DN400A'
|
|
12
|
-
},
|
|
13
|
-
pressed: {
|
|
14
|
-
value: 'DN500A'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var _default = color;
|
|
20
|
-
exports.default = _default;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var shadow = {
|
|
8
|
-
shadow: {
|
|
9
|
-
card: {
|
|
10
|
-
value: [{
|
|
11
|
-
radius: 1,
|
|
12
|
-
offset: {
|
|
13
|
-
x: 0,
|
|
14
|
-
y: 1
|
|
15
|
-
},
|
|
16
|
-
color: 'DN-100A',
|
|
17
|
-
// This opacity overrides the color alpha.
|
|
18
|
-
opacity: 0.5
|
|
19
|
-
}, {
|
|
20
|
-
radius: 1,
|
|
21
|
-
offset: {
|
|
22
|
-
x: 0,
|
|
23
|
-
y: 0
|
|
24
|
-
},
|
|
25
|
-
color: 'DN-100A',
|
|
26
|
-
// This opacity overrides the color alpha.
|
|
27
|
-
opacity: 0.5
|
|
28
|
-
}]
|
|
29
|
-
},
|
|
30
|
-
overlay: {
|
|
31
|
-
value: [{
|
|
32
|
-
radius: 0,
|
|
33
|
-
spread: 1,
|
|
34
|
-
color: 'DN100A',
|
|
35
|
-
offset: {
|
|
36
|
-
x: 0,
|
|
37
|
-
y: 0
|
|
38
|
-
},
|
|
39
|
-
opacity: 0.04,
|
|
40
|
-
inset: true
|
|
41
|
-
}, {
|
|
42
|
-
radius: 12,
|
|
43
|
-
offset: {
|
|
44
|
-
x: 0,
|
|
45
|
-
y: 8
|
|
46
|
-
},
|
|
47
|
-
color: 'DN-100A',
|
|
48
|
-
// This opacity overrides the color alpha.
|
|
49
|
-
opacity: 0.36
|
|
50
|
-
}, {
|
|
51
|
-
radius: 1,
|
|
52
|
-
offset: {
|
|
53
|
-
x: 0,
|
|
54
|
-
y: 0
|
|
55
|
-
},
|
|
56
|
-
color: 'DN-100A',
|
|
57
|
-
// This opacity overrides the color alpha.
|
|
58
|
-
opacity: 0.5
|
|
59
|
-
}]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
var _default = shadow;
|
|
64
|
-
exports.default = _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var color = {
|
|
8
|
-
color: {
|
|
9
|
-
iconBorder: {
|
|
10
|
-
brand: {
|
|
11
|
-
value: 'B600'
|
|
12
|
-
},
|
|
13
|
-
danger: {
|
|
14
|
-
value: 'R600'
|
|
15
|
-
},
|
|
16
|
-
warning: {
|
|
17
|
-
value: 'O600'
|
|
18
|
-
},
|
|
19
|
-
success: {
|
|
20
|
-
value: 'G600'
|
|
21
|
-
},
|
|
22
|
-
discovery: {
|
|
23
|
-
value: 'P600'
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var _default = color;
|
|
29
|
-
exports.default = _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var color = {
|
|
8
|
-
color: {
|
|
9
|
-
overlay: {
|
|
10
|
-
hover: {
|
|
11
|
-
value: 'N400A'
|
|
12
|
-
},
|
|
13
|
-
pressed: {
|
|
14
|
-
value: 'N500A'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var _default = color;
|
|
20
|
-
exports.default = _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var shadow = {
|
|
8
|
-
shadow: {
|
|
9
|
-
card: {
|
|
10
|
-
value: [{
|
|
11
|
-
radius: 1,
|
|
12
|
-
offset: {
|
|
13
|
-
x: 0,
|
|
14
|
-
y: 1
|
|
15
|
-
},
|
|
16
|
-
color: 'N1100',
|
|
17
|
-
opacity: 0.25
|
|
18
|
-
}, {
|
|
19
|
-
radius: 1,
|
|
20
|
-
offset: {
|
|
21
|
-
x: 0,
|
|
22
|
-
y: 0
|
|
23
|
-
},
|
|
24
|
-
color: 'N1100',
|
|
25
|
-
opacity: 0.31
|
|
26
|
-
}]
|
|
27
|
-
},
|
|
28
|
-
overlay: {
|
|
29
|
-
value: [{
|
|
30
|
-
radius: 12,
|
|
31
|
-
offset: {
|
|
32
|
-
x: 0,
|
|
33
|
-
y: 8
|
|
34
|
-
},
|
|
35
|
-
color: 'N1100',
|
|
36
|
-
opacity: 0.15
|
|
37
|
-
}, {
|
|
38
|
-
radius: 1,
|
|
39
|
-
offset: {
|
|
40
|
-
x: 0,
|
|
41
|
-
y: 0
|
|
42
|
-
},
|
|
43
|
-
color: 'N1100',
|
|
44
|
-
opacity: 0.31
|
|
45
|
-
}]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var _default = shadow;
|
|
50
|
-
exports.default = _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var color = {
|
|
8
|
-
color: {
|
|
9
|
-
iconBorder: {
|
|
10
|
-
brand: {
|
|
11
|
-
attributes: {
|
|
12
|
-
group: 'paint',
|
|
13
|
-
state: 'active',
|
|
14
|
-
description: "\nUse rarely for icons or borders representing brand, in-progress, or information, such as the icons in information sections messages.\n\nAlso use for blue icons or borders when there is no meaning tied to the color, such as file type icons."
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
danger: {
|
|
18
|
-
attributes: {
|
|
19
|
-
group: 'paint',
|
|
20
|
-
state: 'active',
|
|
21
|
-
description: "\nUse rarely for icons and borders representing critical information, such the icons in error section messages or the borders on invalid text fields.\n\nAlso use for red icons or borders when there is no meaning tied to the color, such as file type icons."
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
warning: {
|
|
25
|
-
attributes: {
|
|
26
|
-
group: 'paint',
|
|
27
|
-
state: 'active',
|
|
28
|
-
description: "\nUse rarely for icons and borders representing semi-urgent information, such as the icons in warning section messages.\n\nAlso use for yellow icons or borders when there is no meaning tied to the color, such as file type icons.\n"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
success: {
|
|
32
|
-
attributes: {
|
|
33
|
-
group: 'paint',
|
|
34
|
-
state: 'active',
|
|
35
|
-
description: "\nUse rarely for icons and borders representing positive information, such as the icons in success section messages or the borders on validated text fields.\n\nAlso use for green icons or borders when there is no meaning tied to the color, such as file type icons.\n"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
discovery: {
|
|
39
|
-
attributes: {
|
|
40
|
-
group: 'paint',
|
|
41
|
-
state: 'active',
|
|
42
|
-
description: "\nUse rarely for icons and borders representing new information, such as the icons in discovery section mesages or the borders in onboarding spotlights.\n\nAlso use for purple icons or borders when there is no meaning tied to the color, such as file type icons.\n"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var _default = color;
|
|
49
|
-
exports.default = _default;
|