@atlaskit/ds-explorations 5.0.2 → 5.0.4

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.
@@ -1,576 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`@atlaskit/design-system-explorations bg styles are generated correctly 1`] = `
4
- "const backgroundColorMap = {
5
- disabled: css({
6
- backgroundColor: token('color.background.disabled', '#091e4289'),
7
- }),
8
- input: css({
9
- backgroundColor: token('color.background.input', '#FAFBFC'),
10
- }),
11
- 'inverse.subtle': css({
12
- backgroundColor: token('color.background.inverse.subtle', '#00000029'),
13
- }),
14
- neutral: css({
15
- backgroundColor: token('color.background.neutral', '#DFE1E6'),
16
- }),
17
- 'neutral.subtle': css({
18
- backgroundColor: token('color.background.neutral.subtle', 'transparent'),
19
- }),
20
- 'neutral.bold': css({
21
- backgroundColor: token('color.background.neutral.bold', '#42526E'),
22
- }),
23
- selected: css({
24
- backgroundColor: token('color.background.selected', '#DEEBFF'),
25
- }),
26
- 'selected.bold': css({
27
- backgroundColor: token('color.background.selected.bold', '#0052CC'),
28
- }),
29
- 'brand.subtlest': css({
30
- backgroundColor: token('color.background.brand.subtlest', '#B3D4FF'),
31
- }),
32
- 'brand.bold': css({
33
- backgroundColor: token('color.background.brand.bold', '#0052CC'),
34
- }),
35
- 'brand.boldest': css({
36
- backgroundColor: token('color.background.brand.boldest', '#0747A6'),
37
- }),
38
- danger: css({
39
- backgroundColor: token('color.background.danger', '#FFEBE6'),
40
- }),
41
- 'danger.bold': css({
42
- backgroundColor: token('color.background.danger.bold', '#DE350B'),
43
- }),
44
- warning: css({
45
- backgroundColor: token('color.background.warning', '#FFFAE6'),
46
- }),
47
- 'warning.bold': css({
48
- backgroundColor: token('color.background.warning.bold', '#FFAB00'),
49
- }),
50
- success: css({
51
- backgroundColor: token('color.background.success', '#E3FCEF'),
52
- }),
53
- 'success.bold': css({
54
- backgroundColor: token('color.background.success.bold', '#00875A'),
55
- }),
56
- discovery: css({
57
- backgroundColor: token('color.background.discovery', '#EAE6FF'),
58
- }),
59
- 'discovery.bold': css({
60
- backgroundColor: token('color.background.discovery.bold', '#5243AA'),
61
- }),
62
- information: css({
63
- backgroundColor: token('color.background.information', '#DEEBFF'),
64
- }),
65
- 'information.bold': css({
66
- backgroundColor: token('color.background.information.bold', '#0052CC'),
67
- }),
68
- 'color.blanket': css({
69
- backgroundColor: token('color.blanket', '#091e4289'),
70
- }),
71
- 'color.blanket.selected': css({
72
- backgroundColor: token('color.blanket.selected', '#388BFF14'),
73
- }),
74
- 'color.blanket.danger': css({
75
- backgroundColor: token('color.blanket.danger', '#EF5C4814'),
76
- }),
77
- 'elevation.surface': css({
78
- backgroundColor: token('elevation.surface', '#FFFFFF'),
79
- }),
80
- 'elevation.surface.overlay': css({
81
- backgroundColor: token('elevation.surface.overlay', '#FFFFFF'),
82
- }),
83
- 'elevation.surface.raised': css({
84
- backgroundColor: token('elevation.surface.raised', '#FFFFFF'),
85
- }),
86
- 'elevation.surface.sunken': css({
87
- backgroundColor: token('elevation.surface.sunken', '#F4F5F7'),
88
- }),
89
- } as const;
90
-
91
- export type BackgroundColor = keyof typeof backgroundColorMap;
92
- "
93
- `;
94
-
95
- exports[`@atlaskit/design-system-explorations border styles are generated correctly 1`] = `
96
- "const borderColorMap = {
97
- 'color.border': css({
98
- borderColor: token('color.border', '#091e4221'),
99
- }),
100
- disabled: css({
101
- borderColor: token('color.border.disabled', '#FAFBFC'),
102
- }),
103
- focused: css({
104
- borderColor: token('color.border.focused', '#2684FF'),
105
- }),
106
- input: css({
107
- borderColor: token('color.border.input', '#FAFBFC'),
108
- }),
109
- inverse: css({
110
- borderColor: token('color.border.inverse', '#FFFFFF'),
111
- }),
112
- selected: css({
113
- borderColor: token('color.border.selected', '#0052CC'),
114
- }),
115
- brand: css({
116
- borderColor: token('color.border.brand', '#0052CC'),
117
- }),
118
- danger: css({
119
- borderColor: token('color.border.danger', '#FF5630'),
120
- }),
121
- warning: css({
122
- borderColor: token('color.border.warning', '#FFC400'),
123
- }),
124
- success: css({
125
- borderColor: token('color.border.success', '#00875A'),
126
- }),
127
- discovery: css({
128
- borderColor: token('color.border.discovery', '#998DD9'),
129
- }),
130
- information: css({
131
- borderColor: token('color.border.information', '#0065FF'),
132
- }),
133
- bold: css({
134
- borderColor: token('color.border.bold', '#344563'),
135
- }),
136
- } as const;
137
-
138
- export type BorderColor = keyof typeof borderColorMap;
139
- "
140
- `;
141
-
142
- exports[`@atlaskit/design-system-explorations border styles are generated correctly 2`] = `
143
- "const backgroundActiveColorMap = {
144
- 'accent.lime.subtlest': css({
145
- '&:active': { backgroundColor: token('color.background.accent.lime.subtlest.pressed') },
146
- }),
147
- 'accent.lime.subtler': css({
148
- '&:active': { backgroundColor: token('color.background.accent.lime.subtler.pressed') },
149
- }),
150
- 'accent.lime.subtle': css({
151
- '&:active': { backgroundColor: token('color.background.accent.lime.subtle.pressed') },
152
- }),
153
- 'accent.lime.bolder': css({
154
- '&:active': { backgroundColor: token('color.background.accent.lime.bolder.pressed') },
155
- }),
156
- 'accent.red.subtlest': css({
157
- '&:active': { backgroundColor: token('color.background.accent.red.subtlest.pressed') },
158
- }),
159
- 'accent.red.subtler': css({
160
- '&:active': { backgroundColor: token('color.background.accent.red.subtler.pressed') },
161
- }),
162
- 'accent.red.subtle': css({
163
- '&:active': { backgroundColor: token('color.background.accent.red.subtle.pressed') },
164
- }),
165
- 'accent.red.bolder': css({
166
- '&:active': { backgroundColor: token('color.background.accent.red.bolder.pressed') },
167
- }),
168
- 'accent.orange.subtlest': css({
169
- '&:active': { backgroundColor: token('color.background.accent.orange.subtlest.pressed') },
170
- }),
171
- 'accent.orange.subtler': css({
172
- '&:active': { backgroundColor: token('color.background.accent.orange.subtler.pressed') },
173
- }),
174
- 'accent.orange.subtle': css({
175
- '&:active': { backgroundColor: token('color.background.accent.orange.subtle.pressed') },
176
- }),
177
- 'accent.orange.bolder': css({
178
- '&:active': { backgroundColor: token('color.background.accent.orange.bolder.pressed') },
179
- }),
180
- 'accent.yellow.subtlest': css({
181
- '&:active': { backgroundColor: token('color.background.accent.yellow.subtlest.pressed') },
182
- }),
183
- 'accent.yellow.subtler': css({
184
- '&:active': { backgroundColor: token('color.background.accent.yellow.subtler.pressed') },
185
- }),
186
- 'accent.yellow.subtle': css({
187
- '&:active': { backgroundColor: token('color.background.accent.yellow.subtle.pressed') },
188
- }),
189
- 'accent.yellow.bolder': css({
190
- '&:active': { backgroundColor: token('color.background.accent.yellow.bolder.pressed') },
191
- }),
192
- 'accent.green.subtlest': css({
193
- '&:active': { backgroundColor: token('color.background.accent.green.subtlest.pressed') },
194
- }),
195
- 'accent.green.subtler': css({
196
- '&:active': { backgroundColor: token('color.background.accent.green.subtler.pressed') },
197
- }),
198
- 'accent.green.subtle': css({
199
- '&:active': { backgroundColor: token('color.background.accent.green.subtle.pressed') },
200
- }),
201
- 'accent.green.bolder': css({
202
- '&:active': { backgroundColor: token('color.background.accent.green.bolder.pressed') },
203
- }),
204
- 'accent.teal.subtlest': css({
205
- '&:active': { backgroundColor: token('color.background.accent.teal.subtlest.pressed') },
206
- }),
207
- 'accent.teal.subtler': css({
208
- '&:active': { backgroundColor: token('color.background.accent.teal.subtler.pressed') },
209
- }),
210
- 'accent.teal.subtle': css({
211
- '&:active': { backgroundColor: token('color.background.accent.teal.subtle.pressed') },
212
- }),
213
- 'accent.teal.bolder': css({
214
- '&:active': { backgroundColor: token('color.background.accent.teal.bolder.pressed') },
215
- }),
216
- 'accent.blue.subtlest': css({
217
- '&:active': { backgroundColor: token('color.background.accent.blue.subtlest.pressed') },
218
- }),
219
- 'accent.blue.subtler': css({
220
- '&:active': { backgroundColor: token('color.background.accent.blue.subtler.pressed') },
221
- }),
222
- 'accent.blue.subtle': css({
223
- '&:active': { backgroundColor: token('color.background.accent.blue.subtle.pressed') },
224
- }),
225
- 'accent.blue.bolder': css({
226
- '&:active': { backgroundColor: token('color.background.accent.blue.bolder.pressed') },
227
- }),
228
- 'accent.purple.subtlest': css({
229
- '&:active': { backgroundColor: token('color.background.accent.purple.subtlest.pressed') },
230
- }),
231
- 'accent.purple.subtler': css({
232
- '&:active': { backgroundColor: token('color.background.accent.purple.subtler.pressed') },
233
- }),
234
- 'accent.purple.subtle': css({
235
- '&:active': { backgroundColor: token('color.background.accent.purple.subtle.pressed') },
236
- }),
237
- 'accent.purple.bolder': css({
238
- '&:active': { backgroundColor: token('color.background.accent.purple.bolder.pressed') },
239
- }),
240
- 'accent.magenta.subtlest': css({
241
- '&:active': { backgroundColor: token('color.background.accent.magenta.subtlest.pressed') },
242
- }),
243
- 'accent.magenta.subtler': css({
244
- '&:active': { backgroundColor: token('color.background.accent.magenta.subtler.pressed') },
245
- }),
246
- 'accent.magenta.subtle': css({
247
- '&:active': { backgroundColor: token('color.background.accent.magenta.subtle.pressed') },
248
- }),
249
- 'accent.magenta.bolder': css({
250
- '&:active': { backgroundColor: token('color.background.accent.magenta.bolder.pressed') },
251
- }),
252
- 'accent.gray.subtlest': css({
253
- '&:active': { backgroundColor: token('color.background.accent.gray.subtlest.pressed') },
254
- }),
255
- 'accent.gray.subtler': css({
256
- '&:active': { backgroundColor: token('color.background.accent.gray.subtler.pressed') },
257
- }),
258
- 'accent.gray.subtle': css({
259
- '&:active': { backgroundColor: token('color.background.accent.gray.subtle.pressed') },
260
- }),
261
- 'accent.gray.bolder': css({
262
- '&:active': { backgroundColor: token('color.background.accent.gray.bolder.pressed') },
263
- }),
264
- input: css({
265
- '&:active': { backgroundColor: token('color.background.input.pressed') },
266
- }),
267
- 'inverse.subtle': css({
268
- '&:active': { backgroundColor: token('color.background.inverse.subtle.pressed') },
269
- }),
270
- neutral: css({
271
- '&:active': { backgroundColor: token('color.background.neutral.pressed') },
272
- }),
273
- 'neutral.subtle': css({
274
- '&:active': { backgroundColor: token('color.background.neutral.subtle.pressed') },
275
- }),
276
- 'neutral.bold': css({
277
- '&:active': { backgroundColor: token('color.background.neutral.bold.pressed') },
278
- }),
279
- selected: css({
280
- '&:active': { backgroundColor: token('color.background.selected.pressed') },
281
- }),
282
- 'selected.bold': css({
283
- '&:active': { backgroundColor: token('color.background.selected.bold.pressed') },
284
- }),
285
- 'brand.subtlest': css({
286
- '&:active': { backgroundColor: token('color.background.brand.subtlest.pressed') },
287
- }),
288
- 'brand.bold': css({
289
- '&:active': { backgroundColor: token('color.background.brand.bold.pressed') },
290
- }),
291
- 'brand.boldest': css({
292
- '&:active': { backgroundColor: token('color.background.brand.boldest.pressed') },
293
- }),
294
- danger: css({
295
- '&:active': { backgroundColor: token('color.background.danger.pressed') },
296
- }),
297
- 'danger.bold': css({
298
- '&:active': { backgroundColor: token('color.background.danger.bold.pressed') },
299
- }),
300
- warning: css({
301
- '&:active': { backgroundColor: token('color.background.warning.pressed') },
302
- }),
303
- 'warning.bold': css({
304
- '&:active': { backgroundColor: token('color.background.warning.bold.pressed') },
305
- }),
306
- success: css({
307
- '&:active': { backgroundColor: token('color.background.success.pressed') },
308
- }),
309
- 'success.bold': css({
310
- '&:active': { backgroundColor: token('color.background.success.bold.pressed') },
311
- }),
312
- discovery: css({
313
- '&:active': { backgroundColor: token('color.background.discovery.pressed') },
314
- }),
315
- 'discovery.bold': css({
316
- '&:active': { backgroundColor: token('color.background.discovery.bold.pressed') },
317
- }),
318
- information: css({
319
- '&:active': { backgroundColor: token('color.background.information.pressed') },
320
- }),
321
- 'information.bold': css({
322
- '&:active': { backgroundColor: token('color.background.information.bold.pressed') },
323
- }),
324
- 'elevation.surface': css({
325
- '&:active': { backgroundColor: token('elevation.surface.pressed') },
326
- }),
327
- 'elevation.surface.overlay': css({
328
- '&:active': { backgroundColor: token('elevation.surface.overlay.pressed') },
329
- }),
330
- 'elevation.surface.raised': css({
331
- '&:active': { backgroundColor: token('elevation.surface.raised.pressed') },
332
- }),
333
- };
334
-
335
- const backgroundHoverColorMap = {
336
- 'accent.lime.subtlest': css({
337
- '&:hover': { backgroundColor: token('color.background.accent.lime.subtlest.hovered') },
338
- }),
339
- 'accent.lime.subtler': css({
340
- '&:hover': { backgroundColor: token('color.background.accent.lime.subtler.hovered') },
341
- }),
342
- 'accent.lime.subtle': css({
343
- '&:hover': { backgroundColor: token('color.background.accent.lime.subtle.hovered') },
344
- }),
345
- 'accent.lime.bolder': css({
346
- '&:hover': { backgroundColor: token('color.background.accent.lime.bolder.hovered') },
347
- }),
348
- 'accent.red.subtlest': css({
349
- '&:hover': { backgroundColor: token('color.background.accent.red.subtlest.hovered') },
350
- }),
351
- 'accent.red.subtler': css({
352
- '&:hover': { backgroundColor: token('color.background.accent.red.subtler.hovered') },
353
- }),
354
- 'accent.red.subtle': css({
355
- '&:hover': { backgroundColor: token('color.background.accent.red.subtle.hovered') },
356
- }),
357
- 'accent.red.bolder': css({
358
- '&:hover': { backgroundColor: token('color.background.accent.red.bolder.hovered') },
359
- }),
360
- 'accent.orange.subtlest': css({
361
- '&:hover': { backgroundColor: token('color.background.accent.orange.subtlest.hovered') },
362
- }),
363
- 'accent.orange.subtler': css({
364
- '&:hover': { backgroundColor: token('color.background.accent.orange.subtler.hovered') },
365
- }),
366
- 'accent.orange.subtle': css({
367
- '&:hover': { backgroundColor: token('color.background.accent.orange.subtle.hovered') },
368
- }),
369
- 'accent.orange.bolder': css({
370
- '&:hover': { backgroundColor: token('color.background.accent.orange.bolder.hovered') },
371
- }),
372
- 'accent.yellow.subtlest': css({
373
- '&:hover': { backgroundColor: token('color.background.accent.yellow.subtlest.hovered') },
374
- }),
375
- 'accent.yellow.subtler': css({
376
- '&:hover': { backgroundColor: token('color.background.accent.yellow.subtler.hovered') },
377
- }),
378
- 'accent.yellow.subtle': css({
379
- '&:hover': { backgroundColor: token('color.background.accent.yellow.subtle.hovered') },
380
- }),
381
- 'accent.yellow.bolder': css({
382
- '&:hover': { backgroundColor: token('color.background.accent.yellow.bolder.hovered') },
383
- }),
384
- 'accent.green.subtlest': css({
385
- '&:hover': { backgroundColor: token('color.background.accent.green.subtlest.hovered') },
386
- }),
387
- 'accent.green.subtler': css({
388
- '&:hover': { backgroundColor: token('color.background.accent.green.subtler.hovered') },
389
- }),
390
- 'accent.green.subtle': css({
391
- '&:hover': { backgroundColor: token('color.background.accent.green.subtle.hovered') },
392
- }),
393
- 'accent.green.bolder': css({
394
- '&:hover': { backgroundColor: token('color.background.accent.green.bolder.hovered') },
395
- }),
396
- 'accent.teal.subtlest': css({
397
- '&:hover': { backgroundColor: token('color.background.accent.teal.subtlest.hovered') },
398
- }),
399
- 'accent.teal.subtler': css({
400
- '&:hover': { backgroundColor: token('color.background.accent.teal.subtler.hovered') },
401
- }),
402
- 'accent.teal.subtle': css({
403
- '&:hover': { backgroundColor: token('color.background.accent.teal.subtle.hovered') },
404
- }),
405
- 'accent.teal.bolder': css({
406
- '&:hover': { backgroundColor: token('color.background.accent.teal.bolder.hovered') },
407
- }),
408
- 'accent.blue.subtlest': css({
409
- '&:hover': { backgroundColor: token('color.background.accent.blue.subtlest.hovered') },
410
- }),
411
- 'accent.blue.subtler': css({
412
- '&:hover': { backgroundColor: token('color.background.accent.blue.subtler.hovered') },
413
- }),
414
- 'accent.blue.subtle': css({
415
- '&:hover': { backgroundColor: token('color.background.accent.blue.subtle.hovered') },
416
- }),
417
- 'accent.blue.bolder': css({
418
- '&:hover': { backgroundColor: token('color.background.accent.blue.bolder.hovered') },
419
- }),
420
- 'accent.purple.subtlest': css({
421
- '&:hover': { backgroundColor: token('color.background.accent.purple.subtlest.hovered') },
422
- }),
423
- 'accent.purple.subtler': css({
424
- '&:hover': { backgroundColor: token('color.background.accent.purple.subtler.hovered') },
425
- }),
426
- 'accent.purple.subtle': css({
427
- '&:hover': { backgroundColor: token('color.background.accent.purple.subtle.hovered') },
428
- }),
429
- 'accent.purple.bolder': css({
430
- '&:hover': { backgroundColor: token('color.background.accent.purple.bolder.hovered') },
431
- }),
432
- 'accent.magenta.subtlest': css({
433
- '&:hover': { backgroundColor: token('color.background.accent.magenta.subtlest.hovered') },
434
- }),
435
- 'accent.magenta.subtler': css({
436
- '&:hover': { backgroundColor: token('color.background.accent.magenta.subtler.hovered') },
437
- }),
438
- 'accent.magenta.subtle': css({
439
- '&:hover': { backgroundColor: token('color.background.accent.magenta.subtle.hovered') },
440
- }),
441
- 'accent.magenta.bolder': css({
442
- '&:hover': { backgroundColor: token('color.background.accent.magenta.bolder.hovered') },
443
- }),
444
- 'accent.gray.subtlest': css({
445
- '&:hover': { backgroundColor: token('color.background.accent.gray.subtlest.hovered') },
446
- }),
447
- 'accent.gray.subtler': css({
448
- '&:hover': { backgroundColor: token('color.background.accent.gray.subtler.hovered') },
449
- }),
450
- 'accent.gray.subtle': css({
451
- '&:hover': { backgroundColor: token('color.background.accent.gray.subtle.hovered') },
452
- }),
453
- 'accent.gray.bolder': css({
454
- '&:hover': { backgroundColor: token('color.background.accent.gray.bolder.hovered') },
455
- }),
456
- input: css({
457
- '&:hover': { backgroundColor: token('color.background.input.hovered') },
458
- }),
459
- 'inverse.subtle': css({
460
- '&:hover': { backgroundColor: token('color.background.inverse.subtle.hovered') },
461
- }),
462
- neutral: css({
463
- '&:hover': { backgroundColor: token('color.background.neutral.hovered') },
464
- }),
465
- 'neutral.subtle': css({
466
- '&:hover': { backgroundColor: token('color.background.neutral.subtle.hovered') },
467
- }),
468
- 'neutral.bold': css({
469
- '&:hover': { backgroundColor: token('color.background.neutral.bold.hovered') },
470
- }),
471
- selected: css({
472
- '&:hover': { backgroundColor: token('color.background.selected.hovered') },
473
- }),
474
- 'selected.bold': css({
475
- '&:hover': { backgroundColor: token('color.background.selected.bold.hovered') },
476
- }),
477
- 'brand.subtlest': css({
478
- '&:hover': { backgroundColor: token('color.background.brand.subtlest.hovered') },
479
- }),
480
- 'brand.bold': css({
481
- '&:hover': { backgroundColor: token('color.background.brand.bold.hovered') },
482
- }),
483
- 'brand.boldest': css({
484
- '&:hover': { backgroundColor: token('color.background.brand.boldest.hovered') },
485
- }),
486
- danger: css({
487
- '&:hover': { backgroundColor: token('color.background.danger.hovered') },
488
- }),
489
- 'danger.bold': css({
490
- '&:hover': { backgroundColor: token('color.background.danger.bold.hovered') },
491
- }),
492
- warning: css({
493
- '&:hover': { backgroundColor: token('color.background.warning.hovered') },
494
- }),
495
- 'warning.bold': css({
496
- '&:hover': { backgroundColor: token('color.background.warning.bold.hovered') },
497
- }),
498
- success: css({
499
- '&:hover': { backgroundColor: token('color.background.success.hovered') },
500
- }),
501
- 'success.bold': css({
502
- '&:hover': { backgroundColor: token('color.background.success.bold.hovered') },
503
- }),
504
- discovery: css({
505
- '&:hover': { backgroundColor: token('color.background.discovery.hovered') },
506
- }),
507
- 'discovery.bold': css({
508
- '&:hover': { backgroundColor: token('color.background.discovery.bold.hovered') },
509
- }),
510
- information: css({
511
- '&:hover': { backgroundColor: token('color.background.information.hovered') },
512
- }),
513
- 'information.bold': css({
514
- '&:hover': { backgroundColor: token('color.background.information.bold.hovered') },
515
- }),
516
- 'elevation.surface': css({
517
- '&:hover': { backgroundColor: token('elevation.surface.hovered') },
518
- }),
519
- 'elevation.surface.overlay': css({
520
- '&:hover': { backgroundColor: token('elevation.surface.overlay.hovered') },
521
- }),
522
- 'elevation.surface.raised': css({
523
- '&:hover': { backgroundColor: token('elevation.surface.raised.hovered') },
524
- }),
525
- };
526
-
527
- type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
528
- "
529
- `;
530
-
531
- exports[`@atlaskit/design-system-explorations text styles are generated correctly 1`] = `
532
- "const textColorMap = {
533
- 'color.text': css({
534
- color: token('color.text', '#172B4D'),
535
- }),
536
- disabled: css({
537
- color: token('color.text.disabled', '#A5ADBA'),
538
- }),
539
- inverse: css({
540
- color: token('color.text.inverse', '#FFFFFF'),
541
- }),
542
- selected: css({
543
- color: token('color.text.selected', '#0052CC'),
544
- }),
545
- brand: css({
546
- color: token('color.text.brand', '#0065FF'),
547
- }),
548
- danger: css({
549
- color: token('color.text.danger', '#DE350B'),
550
- }),
551
- warning: css({
552
- color: token('color.text.warning', '#974F0C'),
553
- }),
554
- 'warning.inverse': css({
555
- color: token('color.text.warning.inverse', '#172B4D'),
556
- }),
557
- success: css({
558
- color: token('color.text.success', '#006644'),
559
- }),
560
- discovery: css({
561
- color: token('color.text.discovery', '#403294'),
562
- }),
563
- information: css({
564
- color: token('color.text.information', '#0052CC'),
565
- }),
566
- subtlest: css({
567
- color: token('color.text.subtlest', '#7A869A'),
568
- }),
569
- subtle: css({
570
- color: token('color.text.subtle', '#42526E'),
571
- }),
572
- } as const;
573
-
574
- export type TextColor = keyof typeof textColorMap;
575
- "
576
- `;
@@ -1,23 +0,0 @@
1
- import { createColorStylesFromTemplate } from '../color-codegen-template';
2
- import { createInteractionStylesFromTemplate } from '../interaction-codegen';
3
- describe('@atlaskit/design-system-explorations', () => {
4
- test('text styles are generated correctly', () => {
5
- expect(createColorStylesFromTemplate('text')).toMatchSnapshot();
6
- });
7
-
8
- test('bg styles are generated correctly', () => {
9
- expect(createColorStylesFromTemplate('background')).toMatchSnapshot();
10
- });
11
-
12
- test('border styles are generated correctly', () => {
13
- expect(createColorStylesFromTemplate('border')).toMatchSnapshot();
14
- });
15
-
16
- test('border styles are generated correctly', () => {
17
- expect(createInteractionStylesFromTemplate('background')).toMatchSnapshot();
18
- });
19
-
20
- test('incorrect config throws', () => {
21
- expect(() => createColorStylesFromTemplate('fizzbuzz' as any)).toThrowError();
22
- });
23
- });
@@ -1,71 +0,0 @@
1
- import React from 'react';
2
-
3
- import { fireEvent, render, screen } from '@testing-library/react';
4
-
5
- import { Box, Text } from '@atlaskit/primitives';
6
- import { token } from '@atlaskit/tokens';
7
-
8
- import { UNSAFE_InteractionSurface as InteractionSurface } from '../../../index';
9
-
10
- // skipping this test as it does not work with jsdom.reconfigure. Need to rewrite this test.
11
- // https://hello.jira.atlassian.cloud/browse/UTEST-2000
12
- describe.skip('InteractionSurface component', () => {
13
- it('should render by itself', () => {
14
- render(
15
- <InteractionSurface testId="basic">
16
- <></>
17
- </InteractionSurface>,
18
- );
19
- expect(screen.getByTestId('basic')).toBeInTheDocument();
20
- });
21
- it('should render given a neutral hover interaction by default', () => {
22
- render(
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
24
- <div style={{ position: 'relative' }}>
25
- <InteractionSurface testId="surface">hello</InteractionSurface>
26
- </div>,
27
- );
28
-
29
- const surfaceElement = screen.getByTestId('surface');
30
- expect(getComputedStyle(surfaceElement).backgroundColor).toBe('');
31
- fireEvent.mouseOver(surfaceElement);
32
- expect(surfaceElement).toHaveStyle(
33
- `background-color: ${token('color.background.neutral.bold.hovered')}`,
34
- );
35
- });
36
-
37
- it('should render given a brand hover interaction by if set as brand', () => {
38
- render(
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
40
- <div style={{ position: 'relative' }}>
41
- <InteractionSurface appearance="brand.bold" testId="surface">
42
- hello
43
- </InteractionSurface>
44
- </div>,
45
- );
46
-
47
- const surfaceElement = screen.getByTestId('surface');
48
- expect(getComputedStyle(surfaceElement).backgroundColor).toBe('');
49
- fireEvent.mouseOver(surfaceElement);
50
- expect(surfaceElement).toHaveStyle(
51
- `background-color: ${token('color.background.brand.bold.hovered')}`,
52
- );
53
- });
54
-
55
- it('should render an inherited hover state if a Box context is present', () => {
56
- render(
57
- <Box backgroundColor="color.background.brand.bold">
58
- <InteractionSurface testId="surface">
59
- <Text>hello</Text>
60
- </InteractionSurface>
61
- </Box>,
62
- );
63
-
64
- const surfaceElement = screen.getByTestId('surface');
65
- expect(getComputedStyle(surfaceElement).backgroundColor).toBe('');
66
- fireEvent.mouseOver(surfaceElement);
67
- expect(surfaceElement).toHaveStyle(
68
- `background-color: ${token('color.background.brand.bold.hovered')}`,
69
- );
70
- });
71
- });