@atlaskit/tokens 0.4.2 → 0.6.2
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 +57 -0
- package/css/atlassian-dark.css +203 -67
- package/css/atlassian-light.css +203 -67
- package/dist/cjs/artifacts/rename-mapping.js +326 -2
- package/dist/cjs/artifacts/token-default-values.js +203 -67
- package/dist/cjs/artifacts/token-names.js +203 -67
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +3442 -612
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +3426 -616
- 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 +189 -152
- package/dist/cjs/tokens/atlassian-dark/color/border.js +29 -2
- package/dist/cjs/tokens/atlassian-dark/color/icon.js +52 -0
- package/dist/cjs/tokens/atlassian-dark/color/interaction.js +32 -0
- package/dist/cjs/tokens/atlassian-dark/color/text.js +27 -22
- package/dist/cjs/tokens/atlassian-dark/deprecated/deprecated.js +351 -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 +189 -152
- package/dist/cjs/tokens/atlassian-light/color/border.js +29 -2
- package/dist/cjs/tokens/atlassian-light/color/icon.js +52 -0
- package/dist/cjs/tokens/atlassian-light/color/interaction.js +32 -0
- package/dist/cjs/tokens/atlassian-light/color/text.js +27 -22
- package/dist/cjs/tokens/atlassian-light/deprecated/deprecated.js +337 -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 +361 -306
- package/dist/cjs/tokens/default/color/border.js +67 -4
- package/dist/cjs/tokens/default/color/icon.js +100 -0
- package/dist/cjs/tokens/default/color/interaction.js +44 -0
- package/dist/cjs/tokens/default/color/text.js +44 -35
- package/dist/cjs/tokens/default/deprecated/deprecated.js +710 -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 +326 -2
- package/dist/es2019/artifacts/token-default-values.js +203 -67
- package/dist/es2019/artifacts/token-names.js +203 -67
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +3442 -612
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +3426 -616
- 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 +189 -152
- package/dist/es2019/tokens/atlassian-dark/color/border.js +29 -2
- package/dist/es2019/tokens/atlassian-dark/color/icon.js +45 -0
- package/dist/es2019/tokens/atlassian-dark/color/interaction.js +25 -0
- package/dist/es2019/tokens/atlassian-dark/color/text.js +27 -22
- package/dist/es2019/tokens/atlassian-dark/deprecated/deprecated.js +344 -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 +189 -152
- package/dist/es2019/tokens/atlassian-light/color/border.js +29 -2
- package/dist/es2019/tokens/atlassian-light/color/icon.js +45 -0
- package/dist/es2019/tokens/atlassian-light/color/interaction.js +25 -0
- package/dist/es2019/tokens/atlassian-light/color/text.js +27 -22
- package/dist/es2019/tokens/atlassian-light/deprecated/deprecated.js +330 -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 +361 -311
- package/dist/es2019/tokens/default/color/border.js +67 -4
- package/dist/es2019/tokens/default/color/icon.js +93 -0
- package/dist/es2019/tokens/default/color/interaction.js +37 -0
- package/dist/es2019/tokens/default/color/text.js +44 -42
- package/dist/es2019/tokens/default/deprecated/deprecated.js +741 -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 +326 -2
- package/dist/esm/artifacts/token-default-values.js +203 -67
- package/dist/esm/artifacts/token-names.js +203 -67
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +3442 -612
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +3426 -616
- 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 +189 -152
- package/dist/esm/tokens/atlassian-dark/color/border.js +29 -2
- package/dist/esm/tokens/atlassian-dark/color/icon.js +45 -0
- package/dist/esm/tokens/atlassian-dark/color/interaction.js +25 -0
- package/dist/esm/tokens/atlassian-dark/color/text.js +27 -22
- package/dist/esm/tokens/atlassian-dark/deprecated/deprecated.js +344 -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 +189 -152
- package/dist/esm/tokens/atlassian-light/color/border.js +29 -2
- package/dist/esm/tokens/atlassian-light/color/icon.js +45 -0
- package/dist/esm/tokens/atlassian-light/color/interaction.js +25 -0
- package/dist/esm/tokens/atlassian-light/color/text.js +27 -22
- package/dist/esm/tokens/atlassian-light/deprecated/deprecated.js +330 -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 +361 -306
- package/dist/esm/tokens/default/color/border.js +67 -4
- package/dist/esm/tokens/default/color/icon.js +93 -0
- package/dist/esm/tokens/default/color/interaction.js +37 -0
- package/dist/esm/tokens/default/color/text.js +44 -35
- package/dist/esm/tokens/default/deprecated/deprecated.js +703 -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/rename-mapping.d.ts +7 -3
- package/dist/types/artifacts/token-default-values.d.ts +203 -67
- package/dist/types/artifacts/token-names.d.ts +406 -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 +311 -56
- package/package.json +16 -7
- 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/tokens-browser-extension/README.md +0 -28
- package/tokens-browser-extension/atlassian-theme.css +0 -449
- package/tokens-browser-extension/background.js +0 -75
- package/tokens-browser-extension/content-script.js +0 -75
- package/tokens-browser-extension/devtools.html +0 -1
- package/tokens-browser-extension/devtools.js +0 -14
- package/tokens-browser-extension/manifest.json +0 -36
- package/tokens-browser-extension/messageback-script.js +0 -10
- package/tokens-browser-extension/messaging.js +0 -36
- package/tokens-browser-extension/panel.html +0 -25
- package/tokens-browser-extension/panel.js +0 -46
- package/tokens-browser-extension/toast.png +0 -0
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,305 @@ 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
|
+
bold: {
|
|
217
|
+
'[default]': PaintToken;
|
|
218
|
+
hovered: PaintToken;
|
|
219
|
+
pressed: PaintToken;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
selected: {
|
|
223
|
+
'[default]': {
|
|
224
|
+
'[default]': PaintToken;
|
|
225
|
+
hovered: PaintToken;
|
|
226
|
+
pressed: PaintToken;
|
|
227
|
+
};
|
|
228
|
+
bold: {
|
|
229
|
+
'[default]': PaintToken;
|
|
230
|
+
hovered: PaintToken;
|
|
231
|
+
pressed: PaintToken;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
danger: {
|
|
235
|
+
'[default]': {
|
|
236
|
+
'[default]': PaintToken;
|
|
237
|
+
hovered: PaintToken;
|
|
238
|
+
pressed: PaintToken;
|
|
239
|
+
};
|
|
240
|
+
bold: {
|
|
241
|
+
'[default]': PaintToken;
|
|
242
|
+
hovered: PaintToken;
|
|
243
|
+
pressed: PaintToken;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
warning: {
|
|
247
|
+
'[default]': {
|
|
248
|
+
'[default]': PaintToken;
|
|
249
|
+
hovered: PaintToken;
|
|
250
|
+
pressed: PaintToken;
|
|
251
|
+
};
|
|
252
|
+
bold: {
|
|
253
|
+
'[default]': PaintToken;
|
|
254
|
+
hovered: PaintToken;
|
|
255
|
+
pressed: PaintToken;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
success: {
|
|
259
|
+
'[default]': {
|
|
260
|
+
'[default]': PaintToken;
|
|
261
|
+
hovered: PaintToken;
|
|
262
|
+
pressed: PaintToken;
|
|
263
|
+
};
|
|
264
|
+
bold: {
|
|
265
|
+
'[default]': PaintToken;
|
|
266
|
+
hovered: PaintToken;
|
|
267
|
+
pressed: PaintToken;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
discovery: {
|
|
271
|
+
'[default]': {
|
|
272
|
+
'[default]': PaintToken;
|
|
273
|
+
hovered: PaintToken;
|
|
274
|
+
pressed: PaintToken;
|
|
275
|
+
};
|
|
276
|
+
bold: {
|
|
277
|
+
'[default]': PaintToken;
|
|
278
|
+
hovered: PaintToken;
|
|
279
|
+
pressed: PaintToken;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
information: {
|
|
283
|
+
'[default]': {
|
|
284
|
+
'[default]': PaintToken;
|
|
285
|
+
hovered: PaintToken;
|
|
286
|
+
pressed: PaintToken;
|
|
287
|
+
};
|
|
288
|
+
bold: {
|
|
289
|
+
'[default]': PaintToken;
|
|
290
|
+
hovered: PaintToken;
|
|
291
|
+
pressed: PaintToken;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
export interface BorderColorTokenSchema {
|
|
298
|
+
color: {
|
|
299
|
+
border: {
|
|
300
|
+
'[default]': PaintToken;
|
|
301
|
+
focused: PaintToken;
|
|
302
|
+
input: PaintToken;
|
|
303
|
+
disabled: PaintToken;
|
|
304
|
+
brand: PaintToken;
|
|
305
|
+
selected: PaintToken;
|
|
306
|
+
danger: PaintToken;
|
|
307
|
+
warning: PaintToken;
|
|
308
|
+
success: PaintToken;
|
|
309
|
+
discovery: PaintToken;
|
|
310
|
+
information: PaintToken;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export interface IconColorTokenSchema {
|
|
315
|
+
color: {
|
|
316
|
+
icon: {
|
|
317
|
+
'[default]': PaintToken;
|
|
318
|
+
subtle: PaintToken;
|
|
319
|
+
inverse: PaintToken;
|
|
320
|
+
disabled: PaintToken;
|
|
321
|
+
brand: PaintToken;
|
|
322
|
+
selected: PaintToken;
|
|
323
|
+
danger: PaintToken;
|
|
324
|
+
warning: {
|
|
325
|
+
'[default]': PaintToken;
|
|
326
|
+
inverse: PaintToken;
|
|
327
|
+
};
|
|
328
|
+
success: PaintToken;
|
|
329
|
+
discovery: PaintToken;
|
|
330
|
+
information: PaintToken;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
export interface TextColorTokenSchema {
|
|
335
|
+
color: {
|
|
336
|
+
text: {
|
|
337
|
+
'[default]': PaintToken;
|
|
338
|
+
subtle: PaintToken;
|
|
339
|
+
subtlest: PaintToken;
|
|
340
|
+
inverse: PaintToken;
|
|
341
|
+
brand: PaintToken;
|
|
342
|
+
selected: PaintToken;
|
|
343
|
+
danger: PaintToken;
|
|
344
|
+
warning: {
|
|
345
|
+
'[default]': PaintToken;
|
|
346
|
+
inverse: PaintToken;
|
|
347
|
+
};
|
|
348
|
+
success: PaintToken;
|
|
349
|
+
information: PaintToken;
|
|
350
|
+
discovery: PaintToken;
|
|
351
|
+
disabled: PaintToken;
|
|
352
|
+
};
|
|
353
|
+
link: {
|
|
354
|
+
'[default]': PaintToken;
|
|
355
|
+
pressed: PaintToken;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
export interface AccentColorTokenSchema {
|
|
360
|
+
color: {
|
|
361
|
+
text: {
|
|
362
|
+
accent: {
|
|
363
|
+
blue: PaintToken;
|
|
364
|
+
red: PaintToken;
|
|
365
|
+
orange: PaintToken;
|
|
366
|
+
yellow: PaintToken;
|
|
367
|
+
green: PaintToken;
|
|
368
|
+
purple: PaintToken;
|
|
369
|
+
teal: PaintToken;
|
|
370
|
+
magenta: PaintToken;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
icon: {
|
|
374
|
+
accent: {
|
|
375
|
+
blue: PaintToken;
|
|
376
|
+
red: PaintToken;
|
|
377
|
+
orange: PaintToken;
|
|
378
|
+
yellow: PaintToken;
|
|
379
|
+
green: PaintToken;
|
|
380
|
+
purple: PaintToken;
|
|
381
|
+
teal: PaintToken;
|
|
382
|
+
magenta: PaintToken;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
border: {
|
|
386
|
+
accent: {
|
|
387
|
+
blue: PaintToken;
|
|
388
|
+
red: PaintToken;
|
|
389
|
+
orange: PaintToken;
|
|
390
|
+
yellow: PaintToken;
|
|
391
|
+
green: PaintToken;
|
|
392
|
+
purple: PaintToken;
|
|
393
|
+
teal: PaintToken;
|
|
394
|
+
magenta: PaintToken;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
background: {
|
|
398
|
+
accent: {
|
|
399
|
+
blue: {
|
|
400
|
+
'[default]': PaintToken;
|
|
401
|
+
bold: PaintToken;
|
|
402
|
+
};
|
|
403
|
+
red: {
|
|
404
|
+
'[default]': PaintToken;
|
|
405
|
+
bold: PaintToken;
|
|
406
|
+
};
|
|
407
|
+
orange: {
|
|
408
|
+
'[default]': PaintToken;
|
|
409
|
+
bold: PaintToken;
|
|
410
|
+
};
|
|
411
|
+
yellow: {
|
|
412
|
+
'[default]': PaintToken;
|
|
413
|
+
bold: PaintToken;
|
|
414
|
+
};
|
|
415
|
+
green: {
|
|
416
|
+
'[default]': PaintToken;
|
|
417
|
+
bold: PaintToken;
|
|
418
|
+
};
|
|
419
|
+
teal: {
|
|
420
|
+
'[default]': PaintToken;
|
|
421
|
+
bold: PaintToken;
|
|
422
|
+
};
|
|
423
|
+
purple: {
|
|
424
|
+
'[default]': PaintToken;
|
|
425
|
+
bold: PaintToken;
|
|
426
|
+
};
|
|
427
|
+
magenta: {
|
|
428
|
+
'[default]': PaintToken;
|
|
429
|
+
bold: PaintToken;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
export interface InteractionColorTokenSchema {
|
|
436
|
+
color: {
|
|
437
|
+
interaction: {
|
|
438
|
+
pressed: PaintToken;
|
|
439
|
+
hovered: PaintToken;
|
|
440
|
+
inverse: {
|
|
441
|
+
pressed: PaintToken;
|
|
442
|
+
hovered: PaintToken;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
export interface UtilTokenSchema {
|
|
448
|
+
UNSAFE_util: {
|
|
449
|
+
transparent: RawToken;
|
|
450
|
+
MISSING_TOKEN: RawToken;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
export interface SurfaceTokenSchema {
|
|
454
|
+
elevation: {
|
|
455
|
+
surface: {
|
|
456
|
+
'[default]': PaintToken;
|
|
457
|
+
sunken: PaintToken;
|
|
458
|
+
raised: PaintToken;
|
|
459
|
+
overlay: PaintToken;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
export interface ShadowTokenSchema {
|
|
464
|
+
elevation: {
|
|
465
|
+
shadow: {
|
|
466
|
+
raised: ShadowToken;
|
|
467
|
+
overlay: ShadowToken;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
export interface DeprecatedTokenSchema {
|
|
472
|
+
color: {
|
|
473
|
+
accent: {
|
|
474
|
+
boldBlue: PaintToken;
|
|
475
|
+
boldGreen: PaintToken;
|
|
476
|
+
boldOrange: PaintToken;
|
|
477
|
+
boldPurple: PaintToken;
|
|
478
|
+
boldRed: PaintToken;
|
|
479
|
+
boldTeal: PaintToken;
|
|
480
|
+
subtleBlue: PaintToken;
|
|
481
|
+
subtleRed: PaintToken;
|
|
482
|
+
subtleGreen: PaintToken;
|
|
483
|
+
subtleOrange: PaintToken;
|
|
484
|
+
subtleTeal: PaintToken;
|
|
485
|
+
subtlePurple: PaintToken;
|
|
486
|
+
subtleMagenta: PaintToken;
|
|
487
|
+
};
|
|
189
488
|
background: {
|
|
190
489
|
default: PaintToken;
|
|
191
490
|
sunken: PaintToken;
|
|
@@ -194,10 +493,15 @@ export interface BackgroundColorTokenSchema {
|
|
|
194
493
|
selected: {
|
|
195
494
|
resting: PaintToken;
|
|
196
495
|
hover: PaintToken;
|
|
197
|
-
pressed: PaintToken;
|
|
198
496
|
};
|
|
199
|
-
disabled: PaintToken;
|
|
200
497
|
blanket: PaintToken;
|
|
498
|
+
brand: {
|
|
499
|
+
'[default]': {
|
|
500
|
+
'[default]': PaintToken;
|
|
501
|
+
hovered: PaintToken;
|
|
502
|
+
pressed: PaintToken;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
201
505
|
boldBrand: {
|
|
202
506
|
resting: PaintToken;
|
|
203
507
|
hover: PaintToken;
|
|
@@ -267,18 +571,10 @@ export interface BackgroundColorTokenSchema {
|
|
|
267
571
|
pressed: PaintToken;
|
|
268
572
|
};
|
|
269
573
|
};
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
export interface BorderColorTokenSchema {
|
|
273
|
-
color: {
|
|
274
574
|
border: {
|
|
275
575
|
focus: PaintToken;
|
|
276
576
|
neutral: PaintToken;
|
|
277
577
|
};
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
export interface IconBorderColorTokenSchema {
|
|
281
|
-
color: {
|
|
282
578
|
iconBorder: {
|
|
283
579
|
brand: PaintToken;
|
|
284
580
|
danger: PaintToken;
|
|
@@ -286,12 +582,7 @@ export interface IconBorderColorTokenSchema {
|
|
|
286
582
|
success: PaintToken;
|
|
287
583
|
discovery: PaintToken;
|
|
288
584
|
};
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
export interface TextColorTokenSchema {
|
|
292
|
-
color: {
|
|
293
585
|
text: {
|
|
294
|
-
selected: PaintToken;
|
|
295
586
|
highEmphasis: PaintToken;
|
|
296
587
|
mediumEmphasis: PaintToken;
|
|
297
588
|
lowEmphasis: PaintToken;
|
|
@@ -301,54 +592,18 @@ export interface TextColorTokenSchema {
|
|
|
301
592
|
resting: PaintToken;
|
|
302
593
|
pressed: PaintToken;
|
|
303
594
|
};
|
|
304
|
-
brand: PaintToken;
|
|
305
|
-
warning: PaintToken;
|
|
306
|
-
danger: PaintToken;
|
|
307
|
-
success: PaintToken;
|
|
308
|
-
discovery: PaintToken;
|
|
309
|
-
disabled: PaintToken;
|
|
310
595
|
};
|
|
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
596
|
overlay: {
|
|
335
597
|
pressed: PaintToken;
|
|
336
598
|
hover: PaintToken;
|
|
337
599
|
};
|
|
338
600
|
};
|
|
339
|
-
}
|
|
340
|
-
export interface ShadowTokenSchema {
|
|
341
601
|
shadow: {
|
|
342
602
|
card: ShadowToken;
|
|
343
603
|
overlay: ShadowToken;
|
|
344
604
|
};
|
|
345
605
|
}
|
|
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;
|
|
606
|
+
export declare type ElevationTokenSchema = SurfaceTokenSchema & ShadowTokenSchema;
|
|
607
|
+
export declare type ColorTokenSchema = BackgroundColorTokenSchema & BorderColorTokenSchema & IconColorTokenSchema & TextColorTokenSchema & AccentColorTokenSchema & UtilTokenSchema;
|
|
608
|
+
export declare type TokenSchema = PaletteColorTokenSchema & ColorTokenSchema & ElevationTokenSchema;
|
|
354
609
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
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",
|
|
@@ -26,22 +26,31 @@
|
|
|
26
26
|
"./css": "./css"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"ak-postbuild": "yarn codegen-tokens && yarn check-clean-git",
|
|
30
|
-
"check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are is out of date, run
|
|
31
|
-
"codegen-tokens": "ts-node --project ../../../tsconfig.node.json ./scripts/style-dictionary/build"
|
|
29
|
+
"ak-postbuild": "yarn codegen-tokens && yarn check-clean-git && yarn build-chrome-extension",
|
|
30
|
+
"check-clean-git": "git diff --exit-code -- packages/design-system/tokens/ || (echo 'tokens are is out of date, run yarn build tokens' && false)",
|
|
31
|
+
"codegen-tokens": "ts-node --project ../../../tsconfig.node.json ./scripts/style-dictionary/build",
|
|
32
|
+
"build-chrome-extension": "yarn --cwd tokens-browser-extension build-chrome-extension"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
35
|
+
"@atlaskit/ds-lib": "^1.4.0",
|
|
34
36
|
"@babel/runtime": "^7.0.0",
|
|
35
37
|
"@babel/traverse": "^7.15.0",
|
|
36
38
|
"@babel/types": "^7.15.0"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@atlaskit/code": "
|
|
40
|
-
"@atlaskit/
|
|
41
|
-
"@atlaskit/
|
|
41
|
+
"@atlaskit/code": "^14.3.0",
|
|
42
|
+
"@atlaskit/icon": "^21.10.2",
|
|
43
|
+
"@atlaskit/lozenge": "^11.0.0",
|
|
44
|
+
"@atlaskit/section-message": "^6.1.7",
|
|
45
|
+
"@atlaskit/tabs": "^13.2.4",
|
|
46
|
+
"@atlaskit/textfield": "^5.1.5",
|
|
47
|
+
"@atlaskit/theme": "^12.1.2",
|
|
48
|
+
"@atlaskit/toggle": "^12.4.2",
|
|
42
49
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
43
50
|
"@babel/core": "^7.12.3",
|
|
44
51
|
"@emotion/core": "^10.0.9",
|
|
52
|
+
"@types/chrome": "^0.0.171",
|
|
53
|
+
"copy-webpack-plugin": "^6.4.0",
|
|
45
54
|
"lodash": "^4.17.21",
|
|
46
55
|
"prettier": "^2.1.1",
|
|
47
56
|
"react": "^16.8.0",
|
|
@@ -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;
|