@atlaskit/ds-explorations 2.2.12 → 2.2.13

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 (29) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/components/box.partial.js +2 -2
  3. package/dist/cjs/components/interaction-surface.partial.js +402 -2
  4. package/dist/cjs/components/text.partial.js +2 -2
  5. package/dist/cjs/internal/color-map.js +2 -2
  6. package/dist/es2019/components/box.partial.js +2 -2
  7. package/dist/es2019/components/interaction-surface.partial.js +402 -2
  8. package/dist/es2019/components/text.partial.js +2 -2
  9. package/dist/es2019/internal/color-map.js +2 -2
  10. package/dist/esm/components/box.partial.js +2 -2
  11. package/dist/esm/components/interaction-surface.partial.js +402 -2
  12. package/dist/esm/components/text.partial.js +2 -2
  13. package/dist/esm/internal/color-map.js +2 -2
  14. package/dist/types/components/box.partial.d.ts +2 -2
  15. package/dist/types/components/interaction-surface.partial.d.ts +40 -0
  16. package/dist/types/components/text.partial.d.ts +2 -2
  17. package/dist/types/internal/color-map.d.ts +2 -2
  18. package/dist/types-ts4.5/components/box.partial.d.ts +2 -2
  19. package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +40 -0
  20. package/dist/types-ts4.5/components/text.partial.d.ts +2 -2
  21. package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
  22. package/package.json +2 -2
  23. package/report.api.md +40 -0
  24. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +404 -0
  25. package/src/components/box.partial.tsx +2 -2
  26. package/src/components/interaction-surface.partial.tsx +406 -2
  27. package/src/components/text.partial.tsx +2 -2
  28. package/src/internal/color-map.tsx +2 -2
  29. package/tmp/api-report-tmp.d.ts +40 -0
package/report.api.md CHANGED
@@ -71,6 +71,46 @@ const backgroundColorMap: {
71
71
 
72
72
  // @public (undocumented)
73
73
  const backgroundHoverColorMap: {
74
+ 'accent.lime.subtlest': SerializedStyles;
75
+ 'accent.lime.subtler': SerializedStyles;
76
+ 'accent.lime.subtle': SerializedStyles;
77
+ 'accent.lime.bolder': SerializedStyles;
78
+ 'accent.red.subtlest': SerializedStyles;
79
+ 'accent.red.subtler': SerializedStyles;
80
+ 'accent.red.subtle': SerializedStyles;
81
+ 'accent.red.bolder': SerializedStyles;
82
+ 'accent.orange.subtlest': SerializedStyles;
83
+ 'accent.orange.subtler': SerializedStyles;
84
+ 'accent.orange.subtle': SerializedStyles;
85
+ 'accent.orange.bolder': SerializedStyles;
86
+ 'accent.yellow.subtlest': SerializedStyles;
87
+ 'accent.yellow.subtler': SerializedStyles;
88
+ 'accent.yellow.subtle': SerializedStyles;
89
+ 'accent.yellow.bolder': SerializedStyles;
90
+ 'accent.green.subtlest': SerializedStyles;
91
+ 'accent.green.subtler': SerializedStyles;
92
+ 'accent.green.subtle': SerializedStyles;
93
+ 'accent.green.bolder': SerializedStyles;
94
+ 'accent.teal.subtlest': SerializedStyles;
95
+ 'accent.teal.subtler': SerializedStyles;
96
+ 'accent.teal.subtle': SerializedStyles;
97
+ 'accent.teal.bolder': SerializedStyles;
98
+ 'accent.blue.subtlest': SerializedStyles;
99
+ 'accent.blue.subtler': SerializedStyles;
100
+ 'accent.blue.subtle': SerializedStyles;
101
+ 'accent.blue.bolder': SerializedStyles;
102
+ 'accent.purple.subtlest': SerializedStyles;
103
+ 'accent.purple.subtler': SerializedStyles;
104
+ 'accent.purple.subtle': SerializedStyles;
105
+ 'accent.purple.bolder': SerializedStyles;
106
+ 'accent.magenta.subtlest': SerializedStyles;
107
+ 'accent.magenta.subtler': SerializedStyles;
108
+ 'accent.magenta.subtle': SerializedStyles;
109
+ 'accent.magenta.bolder': SerializedStyles;
110
+ 'accent.gray.subtlest': SerializedStyles;
111
+ 'accent.gray.subtler': SerializedStyles;
112
+ 'accent.gray.subtle': SerializedStyles;
113
+ 'accent.gray.bolder': SerializedStyles;
74
114
  input: SerializedStyles;
75
115
  'inverse.subtle': SerializedStyles;
76
116
  neutral: SerializedStyles;
@@ -141,6 +141,208 @@ export type BorderColor = keyof typeof borderColorMap;
141
141
 
142
142
  exports[`@atlaskit/design-system-explorations border styles are generated correctly 2`] = `
143
143
  "const backgroundActiveColorMap = {
144
+ 'accent.lime.subtlest': css({
145
+ ':active': {
146
+ backgroundColor: token('color.background.accent.lime.subtlest.pressed'),
147
+ },
148
+ }),
149
+ 'accent.lime.subtler': css({
150
+ ':active': {
151
+ backgroundColor: token('color.background.accent.lime.subtler.pressed'),
152
+ },
153
+ }),
154
+ 'accent.lime.subtle': css({
155
+ ':active': {
156
+ backgroundColor: token('color.background.accent.lime.subtle.pressed'),
157
+ },
158
+ }),
159
+ 'accent.lime.bolder': css({
160
+ ':active': {
161
+ backgroundColor: token('color.background.accent.lime.bolder.pressed'),
162
+ },
163
+ }),
164
+ 'accent.red.subtlest': css({
165
+ ':active': {
166
+ backgroundColor: token('color.background.accent.red.subtlest.pressed'),
167
+ },
168
+ }),
169
+ 'accent.red.subtler': css({
170
+ ':active': {
171
+ backgroundColor: token('color.background.accent.red.subtler.pressed'),
172
+ },
173
+ }),
174
+ 'accent.red.subtle': css({
175
+ ':active': {
176
+ backgroundColor: token('color.background.accent.red.subtle.pressed'),
177
+ },
178
+ }),
179
+ 'accent.red.bolder': css({
180
+ ':active': {
181
+ backgroundColor: token('color.background.accent.red.bolder.pressed'),
182
+ },
183
+ }),
184
+ 'accent.orange.subtlest': css({
185
+ ':active': {
186
+ backgroundColor: token('color.background.accent.orange.subtlest.pressed'),
187
+ },
188
+ }),
189
+ 'accent.orange.subtler': css({
190
+ ':active': {
191
+ backgroundColor: token('color.background.accent.orange.subtler.pressed'),
192
+ },
193
+ }),
194
+ 'accent.orange.subtle': css({
195
+ ':active': {
196
+ backgroundColor: token('color.background.accent.orange.subtle.pressed'),
197
+ },
198
+ }),
199
+ 'accent.orange.bolder': css({
200
+ ':active': {
201
+ backgroundColor: token('color.background.accent.orange.bolder.pressed'),
202
+ },
203
+ }),
204
+ 'accent.yellow.subtlest': css({
205
+ ':active': {
206
+ backgroundColor: token('color.background.accent.yellow.subtlest.pressed'),
207
+ },
208
+ }),
209
+ 'accent.yellow.subtler': css({
210
+ ':active': {
211
+ backgroundColor: token('color.background.accent.yellow.subtler.pressed'),
212
+ },
213
+ }),
214
+ 'accent.yellow.subtle': css({
215
+ ':active': {
216
+ backgroundColor: token('color.background.accent.yellow.subtle.pressed'),
217
+ },
218
+ }),
219
+ 'accent.yellow.bolder': css({
220
+ ':active': {
221
+ backgroundColor: token('color.background.accent.yellow.bolder.pressed'),
222
+ },
223
+ }),
224
+ 'accent.green.subtlest': css({
225
+ ':active': {
226
+ backgroundColor: token('color.background.accent.green.subtlest.pressed'),
227
+ },
228
+ }),
229
+ 'accent.green.subtler': css({
230
+ ':active': {
231
+ backgroundColor: token('color.background.accent.green.subtler.pressed'),
232
+ },
233
+ }),
234
+ 'accent.green.subtle': css({
235
+ ':active': {
236
+ backgroundColor: token('color.background.accent.green.subtle.pressed'),
237
+ },
238
+ }),
239
+ 'accent.green.bolder': css({
240
+ ':active': {
241
+ backgroundColor: token('color.background.accent.green.bolder.pressed'),
242
+ },
243
+ }),
244
+ 'accent.teal.subtlest': css({
245
+ ':active': {
246
+ backgroundColor: token('color.background.accent.teal.subtlest.pressed'),
247
+ },
248
+ }),
249
+ 'accent.teal.subtler': css({
250
+ ':active': {
251
+ backgroundColor: token('color.background.accent.teal.subtler.pressed'),
252
+ },
253
+ }),
254
+ 'accent.teal.subtle': css({
255
+ ':active': {
256
+ backgroundColor: token('color.background.accent.teal.subtle.pressed'),
257
+ },
258
+ }),
259
+ 'accent.teal.bolder': css({
260
+ ':active': {
261
+ backgroundColor: token('color.background.accent.teal.bolder.pressed'),
262
+ },
263
+ }),
264
+ 'accent.blue.subtlest': css({
265
+ ':active': {
266
+ backgroundColor: token('color.background.accent.blue.subtlest.pressed'),
267
+ },
268
+ }),
269
+ 'accent.blue.subtler': css({
270
+ ':active': {
271
+ backgroundColor: token('color.background.accent.blue.subtler.pressed'),
272
+ },
273
+ }),
274
+ 'accent.blue.subtle': css({
275
+ ':active': {
276
+ backgroundColor: token('color.background.accent.blue.subtle.pressed'),
277
+ },
278
+ }),
279
+ 'accent.blue.bolder': css({
280
+ ':active': {
281
+ backgroundColor: token('color.background.accent.blue.bolder.pressed'),
282
+ },
283
+ }),
284
+ 'accent.purple.subtlest': css({
285
+ ':active': {
286
+ backgroundColor: token('color.background.accent.purple.subtlest.pressed'),
287
+ },
288
+ }),
289
+ 'accent.purple.subtler': css({
290
+ ':active': {
291
+ backgroundColor: token('color.background.accent.purple.subtler.pressed'),
292
+ },
293
+ }),
294
+ 'accent.purple.subtle': css({
295
+ ':active': {
296
+ backgroundColor: token('color.background.accent.purple.subtle.pressed'),
297
+ },
298
+ }),
299
+ 'accent.purple.bolder': css({
300
+ ':active': {
301
+ backgroundColor: token('color.background.accent.purple.bolder.pressed'),
302
+ },
303
+ }),
304
+ 'accent.magenta.subtlest': css({
305
+ ':active': {
306
+ backgroundColor: token(
307
+ 'color.background.accent.magenta.subtlest.pressed',
308
+ ),
309
+ },
310
+ }),
311
+ 'accent.magenta.subtler': css({
312
+ ':active': {
313
+ backgroundColor: token('color.background.accent.magenta.subtler.pressed'),
314
+ },
315
+ }),
316
+ 'accent.magenta.subtle': css({
317
+ ':active': {
318
+ backgroundColor: token('color.background.accent.magenta.subtle.pressed'),
319
+ },
320
+ }),
321
+ 'accent.magenta.bolder': css({
322
+ ':active': {
323
+ backgroundColor: token('color.background.accent.magenta.bolder.pressed'),
324
+ },
325
+ }),
326
+ 'accent.gray.subtlest': css({
327
+ ':active': {
328
+ backgroundColor: token('color.background.accent.gray.subtlest.pressed'),
329
+ },
330
+ }),
331
+ 'accent.gray.subtler': css({
332
+ ':active': {
333
+ backgroundColor: token('color.background.accent.gray.subtler.pressed'),
334
+ },
335
+ }),
336
+ 'accent.gray.subtle': css({
337
+ ':active': {
338
+ backgroundColor: token('color.background.accent.gray.subtle.pressed'),
339
+ },
340
+ }),
341
+ 'accent.gray.bolder': css({
342
+ ':active': {
343
+ backgroundColor: token('color.background.accent.gray.bolder.pressed'),
344
+ },
345
+ }),
144
346
  input: css({
145
347
  ':active': { backgroundColor: token('color.background.input.pressed') },
146
348
  }),
@@ -239,6 +441,208 @@ exports[`@atlaskit/design-system-explorations border styles are generated correc
239
441
  };
240
442
 
241
443
  const backgroundHoverColorMap = {
444
+ 'accent.lime.subtlest': css({
445
+ ':hover': {
446
+ backgroundColor: token('color.background.accent.lime.subtlest.hovered'),
447
+ },
448
+ }),
449
+ 'accent.lime.subtler': css({
450
+ ':hover': {
451
+ backgroundColor: token('color.background.accent.lime.subtler.hovered'),
452
+ },
453
+ }),
454
+ 'accent.lime.subtle': css({
455
+ ':hover': {
456
+ backgroundColor: token('color.background.accent.lime.subtle.hovered'),
457
+ },
458
+ }),
459
+ 'accent.lime.bolder': css({
460
+ ':hover': {
461
+ backgroundColor: token('color.background.accent.lime.bolder.hovered'),
462
+ },
463
+ }),
464
+ 'accent.red.subtlest': css({
465
+ ':hover': {
466
+ backgroundColor: token('color.background.accent.red.subtlest.hovered'),
467
+ },
468
+ }),
469
+ 'accent.red.subtler': css({
470
+ ':hover': {
471
+ backgroundColor: token('color.background.accent.red.subtler.hovered'),
472
+ },
473
+ }),
474
+ 'accent.red.subtle': css({
475
+ ':hover': {
476
+ backgroundColor: token('color.background.accent.red.subtle.hovered'),
477
+ },
478
+ }),
479
+ 'accent.red.bolder': css({
480
+ ':hover': {
481
+ backgroundColor: token('color.background.accent.red.bolder.hovered'),
482
+ },
483
+ }),
484
+ 'accent.orange.subtlest': css({
485
+ ':hover': {
486
+ backgroundColor: token('color.background.accent.orange.subtlest.hovered'),
487
+ },
488
+ }),
489
+ 'accent.orange.subtler': css({
490
+ ':hover': {
491
+ backgroundColor: token('color.background.accent.orange.subtler.hovered'),
492
+ },
493
+ }),
494
+ 'accent.orange.subtle': css({
495
+ ':hover': {
496
+ backgroundColor: token('color.background.accent.orange.subtle.hovered'),
497
+ },
498
+ }),
499
+ 'accent.orange.bolder': css({
500
+ ':hover': {
501
+ backgroundColor: token('color.background.accent.orange.bolder.hovered'),
502
+ },
503
+ }),
504
+ 'accent.yellow.subtlest': css({
505
+ ':hover': {
506
+ backgroundColor: token('color.background.accent.yellow.subtlest.hovered'),
507
+ },
508
+ }),
509
+ 'accent.yellow.subtler': css({
510
+ ':hover': {
511
+ backgroundColor: token('color.background.accent.yellow.subtler.hovered'),
512
+ },
513
+ }),
514
+ 'accent.yellow.subtle': css({
515
+ ':hover': {
516
+ backgroundColor: token('color.background.accent.yellow.subtle.hovered'),
517
+ },
518
+ }),
519
+ 'accent.yellow.bolder': css({
520
+ ':hover': {
521
+ backgroundColor: token('color.background.accent.yellow.bolder.hovered'),
522
+ },
523
+ }),
524
+ 'accent.green.subtlest': css({
525
+ ':hover': {
526
+ backgroundColor: token('color.background.accent.green.subtlest.hovered'),
527
+ },
528
+ }),
529
+ 'accent.green.subtler': css({
530
+ ':hover': {
531
+ backgroundColor: token('color.background.accent.green.subtler.hovered'),
532
+ },
533
+ }),
534
+ 'accent.green.subtle': css({
535
+ ':hover': {
536
+ backgroundColor: token('color.background.accent.green.subtle.hovered'),
537
+ },
538
+ }),
539
+ 'accent.green.bolder': css({
540
+ ':hover': {
541
+ backgroundColor: token('color.background.accent.green.bolder.hovered'),
542
+ },
543
+ }),
544
+ 'accent.teal.subtlest': css({
545
+ ':hover': {
546
+ backgroundColor: token('color.background.accent.teal.subtlest.hovered'),
547
+ },
548
+ }),
549
+ 'accent.teal.subtler': css({
550
+ ':hover': {
551
+ backgroundColor: token('color.background.accent.teal.subtler.hovered'),
552
+ },
553
+ }),
554
+ 'accent.teal.subtle': css({
555
+ ':hover': {
556
+ backgroundColor: token('color.background.accent.teal.subtle.hovered'),
557
+ },
558
+ }),
559
+ 'accent.teal.bolder': css({
560
+ ':hover': {
561
+ backgroundColor: token('color.background.accent.teal.bolder.hovered'),
562
+ },
563
+ }),
564
+ 'accent.blue.subtlest': css({
565
+ ':hover': {
566
+ backgroundColor: token('color.background.accent.blue.subtlest.hovered'),
567
+ },
568
+ }),
569
+ 'accent.blue.subtler': css({
570
+ ':hover': {
571
+ backgroundColor: token('color.background.accent.blue.subtler.hovered'),
572
+ },
573
+ }),
574
+ 'accent.blue.subtle': css({
575
+ ':hover': {
576
+ backgroundColor: token('color.background.accent.blue.subtle.hovered'),
577
+ },
578
+ }),
579
+ 'accent.blue.bolder': css({
580
+ ':hover': {
581
+ backgroundColor: token('color.background.accent.blue.bolder.hovered'),
582
+ },
583
+ }),
584
+ 'accent.purple.subtlest': css({
585
+ ':hover': {
586
+ backgroundColor: token('color.background.accent.purple.subtlest.hovered'),
587
+ },
588
+ }),
589
+ 'accent.purple.subtler': css({
590
+ ':hover': {
591
+ backgroundColor: token('color.background.accent.purple.subtler.hovered'),
592
+ },
593
+ }),
594
+ 'accent.purple.subtle': css({
595
+ ':hover': {
596
+ backgroundColor: token('color.background.accent.purple.subtle.hovered'),
597
+ },
598
+ }),
599
+ 'accent.purple.bolder': css({
600
+ ':hover': {
601
+ backgroundColor: token('color.background.accent.purple.bolder.hovered'),
602
+ },
603
+ }),
604
+ 'accent.magenta.subtlest': css({
605
+ ':hover': {
606
+ backgroundColor: token(
607
+ 'color.background.accent.magenta.subtlest.hovered',
608
+ ),
609
+ },
610
+ }),
611
+ 'accent.magenta.subtler': css({
612
+ ':hover': {
613
+ backgroundColor: token('color.background.accent.magenta.subtler.hovered'),
614
+ },
615
+ }),
616
+ 'accent.magenta.subtle': css({
617
+ ':hover': {
618
+ backgroundColor: token('color.background.accent.magenta.subtle.hovered'),
619
+ },
620
+ }),
621
+ 'accent.magenta.bolder': css({
622
+ ':hover': {
623
+ backgroundColor: token('color.background.accent.magenta.bolder.hovered'),
624
+ },
625
+ }),
626
+ 'accent.gray.subtlest': css({
627
+ ':hover': {
628
+ backgroundColor: token('color.background.accent.gray.subtlest.hovered'),
629
+ },
630
+ }),
631
+ 'accent.gray.subtler': css({
632
+ ':hover': {
633
+ backgroundColor: token('color.background.accent.gray.subtler.hovered'),
634
+ },
635
+ }),
636
+ 'accent.gray.subtle': css({
637
+ ':hover': {
638
+ backgroundColor: token('color.background.accent.gray.subtle.hovered'),
639
+ },
640
+ }),
641
+ 'accent.gray.bolder': css({
642
+ ':hover': {
643
+ backgroundColor: token('color.background.accent.gray.bolder.hovered'),
644
+ },
645
+ }),
242
646
  input: css({
243
647
  ':hover': { backgroundColor: token('color.background.input.hovered') },
244
648
  }),
@@ -510,11 +510,11 @@ export type PaddingInline = keyof typeof paddingInlineMap;
510
510
 
511
511
  /**
512
512
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
513
- * @codegen <<SignedSource::3c02977212ac78f3a0f9de93e0a253c2>>
513
+ * @codegen <<SignedSource::fe1f557b04d44d23dfae5c9494ccddcc>>
514
514
  * @codegenId colors
515
515
  * @codegenCommand yarn codegen-styles
516
516
  * @codegenParams ["border", "background", "shadow"]
517
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
517
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::815ddd719715ae06521cad06e1921e40>>
518
518
  */
519
519
  const borderColorMap = {
520
520
  'color.border': css({