@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
@@ -70,13 +70,215 @@ export default InteractionSurface;
70
70
 
71
71
  /**
72
72
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
73
- * @codegen <<SignedSource::01dc580099e9b8257da4c8f610e7874c>>
73
+ * @codegen <<SignedSource::03b3f0bf0d4f1326c6bfa087f92bef36>>
74
74
  * @codegenId interactions
75
75
  * @codegenCommand yarn codegen-styles
76
76
  * @codegenParams ["background"]
77
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
77
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::815ddd719715ae06521cad06e1921e40>>
78
78
  */
79
79
  const backgroundActiveColorMap = {
80
+ 'accent.lime.subtlest': css({
81
+ ':active': {
82
+ backgroundColor: token('color.background.accent.lime.subtlest.pressed'),
83
+ },
84
+ }),
85
+ 'accent.lime.subtler': css({
86
+ ':active': {
87
+ backgroundColor: token('color.background.accent.lime.subtler.pressed'),
88
+ },
89
+ }),
90
+ 'accent.lime.subtle': css({
91
+ ':active': {
92
+ backgroundColor: token('color.background.accent.lime.subtle.pressed'),
93
+ },
94
+ }),
95
+ 'accent.lime.bolder': css({
96
+ ':active': {
97
+ backgroundColor: token('color.background.accent.lime.bolder.pressed'),
98
+ },
99
+ }),
100
+ 'accent.red.subtlest': css({
101
+ ':active': {
102
+ backgroundColor: token('color.background.accent.red.subtlest.pressed'),
103
+ },
104
+ }),
105
+ 'accent.red.subtler': css({
106
+ ':active': {
107
+ backgroundColor: token('color.background.accent.red.subtler.pressed'),
108
+ },
109
+ }),
110
+ 'accent.red.subtle': css({
111
+ ':active': {
112
+ backgroundColor: token('color.background.accent.red.subtle.pressed'),
113
+ },
114
+ }),
115
+ 'accent.red.bolder': css({
116
+ ':active': {
117
+ backgroundColor: token('color.background.accent.red.bolder.pressed'),
118
+ },
119
+ }),
120
+ 'accent.orange.subtlest': css({
121
+ ':active': {
122
+ backgroundColor: token('color.background.accent.orange.subtlest.pressed'),
123
+ },
124
+ }),
125
+ 'accent.orange.subtler': css({
126
+ ':active': {
127
+ backgroundColor: token('color.background.accent.orange.subtler.pressed'),
128
+ },
129
+ }),
130
+ 'accent.orange.subtle': css({
131
+ ':active': {
132
+ backgroundColor: token('color.background.accent.orange.subtle.pressed'),
133
+ },
134
+ }),
135
+ 'accent.orange.bolder': css({
136
+ ':active': {
137
+ backgroundColor: token('color.background.accent.orange.bolder.pressed'),
138
+ },
139
+ }),
140
+ 'accent.yellow.subtlest': css({
141
+ ':active': {
142
+ backgroundColor: token('color.background.accent.yellow.subtlest.pressed'),
143
+ },
144
+ }),
145
+ 'accent.yellow.subtler': css({
146
+ ':active': {
147
+ backgroundColor: token('color.background.accent.yellow.subtler.pressed'),
148
+ },
149
+ }),
150
+ 'accent.yellow.subtle': css({
151
+ ':active': {
152
+ backgroundColor: token('color.background.accent.yellow.subtle.pressed'),
153
+ },
154
+ }),
155
+ 'accent.yellow.bolder': css({
156
+ ':active': {
157
+ backgroundColor: token('color.background.accent.yellow.bolder.pressed'),
158
+ },
159
+ }),
160
+ 'accent.green.subtlest': css({
161
+ ':active': {
162
+ backgroundColor: token('color.background.accent.green.subtlest.pressed'),
163
+ },
164
+ }),
165
+ 'accent.green.subtler': css({
166
+ ':active': {
167
+ backgroundColor: token('color.background.accent.green.subtler.pressed'),
168
+ },
169
+ }),
170
+ 'accent.green.subtle': css({
171
+ ':active': {
172
+ backgroundColor: token('color.background.accent.green.subtle.pressed'),
173
+ },
174
+ }),
175
+ 'accent.green.bolder': css({
176
+ ':active': {
177
+ backgroundColor: token('color.background.accent.green.bolder.pressed'),
178
+ },
179
+ }),
180
+ 'accent.teal.subtlest': css({
181
+ ':active': {
182
+ backgroundColor: token('color.background.accent.teal.subtlest.pressed'),
183
+ },
184
+ }),
185
+ 'accent.teal.subtler': css({
186
+ ':active': {
187
+ backgroundColor: token('color.background.accent.teal.subtler.pressed'),
188
+ },
189
+ }),
190
+ 'accent.teal.subtle': css({
191
+ ':active': {
192
+ backgroundColor: token('color.background.accent.teal.subtle.pressed'),
193
+ },
194
+ }),
195
+ 'accent.teal.bolder': css({
196
+ ':active': {
197
+ backgroundColor: token('color.background.accent.teal.bolder.pressed'),
198
+ },
199
+ }),
200
+ 'accent.blue.subtlest': css({
201
+ ':active': {
202
+ backgroundColor: token('color.background.accent.blue.subtlest.pressed'),
203
+ },
204
+ }),
205
+ 'accent.blue.subtler': css({
206
+ ':active': {
207
+ backgroundColor: token('color.background.accent.blue.subtler.pressed'),
208
+ },
209
+ }),
210
+ 'accent.blue.subtle': css({
211
+ ':active': {
212
+ backgroundColor: token('color.background.accent.blue.subtle.pressed'),
213
+ },
214
+ }),
215
+ 'accent.blue.bolder': css({
216
+ ':active': {
217
+ backgroundColor: token('color.background.accent.blue.bolder.pressed'),
218
+ },
219
+ }),
220
+ 'accent.purple.subtlest': css({
221
+ ':active': {
222
+ backgroundColor: token('color.background.accent.purple.subtlest.pressed'),
223
+ },
224
+ }),
225
+ 'accent.purple.subtler': css({
226
+ ':active': {
227
+ backgroundColor: token('color.background.accent.purple.subtler.pressed'),
228
+ },
229
+ }),
230
+ 'accent.purple.subtle': css({
231
+ ':active': {
232
+ backgroundColor: token('color.background.accent.purple.subtle.pressed'),
233
+ },
234
+ }),
235
+ 'accent.purple.bolder': css({
236
+ ':active': {
237
+ backgroundColor: token('color.background.accent.purple.bolder.pressed'),
238
+ },
239
+ }),
240
+ 'accent.magenta.subtlest': css({
241
+ ':active': {
242
+ backgroundColor: token(
243
+ 'color.background.accent.magenta.subtlest.pressed',
244
+ ),
245
+ },
246
+ }),
247
+ 'accent.magenta.subtler': css({
248
+ ':active': {
249
+ backgroundColor: token('color.background.accent.magenta.subtler.pressed'),
250
+ },
251
+ }),
252
+ 'accent.magenta.subtle': css({
253
+ ':active': {
254
+ backgroundColor: token('color.background.accent.magenta.subtle.pressed'),
255
+ },
256
+ }),
257
+ 'accent.magenta.bolder': css({
258
+ ':active': {
259
+ backgroundColor: token('color.background.accent.magenta.bolder.pressed'),
260
+ },
261
+ }),
262
+ 'accent.gray.subtlest': css({
263
+ ':active': {
264
+ backgroundColor: token('color.background.accent.gray.subtlest.pressed'),
265
+ },
266
+ }),
267
+ 'accent.gray.subtler': css({
268
+ ':active': {
269
+ backgroundColor: token('color.background.accent.gray.subtler.pressed'),
270
+ },
271
+ }),
272
+ 'accent.gray.subtle': css({
273
+ ':active': {
274
+ backgroundColor: token('color.background.accent.gray.subtle.pressed'),
275
+ },
276
+ }),
277
+ 'accent.gray.bolder': css({
278
+ ':active': {
279
+ backgroundColor: token('color.background.accent.gray.bolder.pressed'),
280
+ },
281
+ }),
80
282
  input: css({
81
283
  ':active': { backgroundColor: token('color.background.input.pressed') },
82
284
  }),
@@ -175,6 +377,208 @@ const backgroundActiveColorMap = {
175
377
  };
176
378
 
177
379
  const backgroundHoverColorMap = {
380
+ 'accent.lime.subtlest': css({
381
+ ':hover': {
382
+ backgroundColor: token('color.background.accent.lime.subtlest.hovered'),
383
+ },
384
+ }),
385
+ 'accent.lime.subtler': css({
386
+ ':hover': {
387
+ backgroundColor: token('color.background.accent.lime.subtler.hovered'),
388
+ },
389
+ }),
390
+ 'accent.lime.subtle': css({
391
+ ':hover': {
392
+ backgroundColor: token('color.background.accent.lime.subtle.hovered'),
393
+ },
394
+ }),
395
+ 'accent.lime.bolder': css({
396
+ ':hover': {
397
+ backgroundColor: token('color.background.accent.lime.bolder.hovered'),
398
+ },
399
+ }),
400
+ 'accent.red.subtlest': css({
401
+ ':hover': {
402
+ backgroundColor: token('color.background.accent.red.subtlest.hovered'),
403
+ },
404
+ }),
405
+ 'accent.red.subtler': css({
406
+ ':hover': {
407
+ backgroundColor: token('color.background.accent.red.subtler.hovered'),
408
+ },
409
+ }),
410
+ 'accent.red.subtle': css({
411
+ ':hover': {
412
+ backgroundColor: token('color.background.accent.red.subtle.hovered'),
413
+ },
414
+ }),
415
+ 'accent.red.bolder': css({
416
+ ':hover': {
417
+ backgroundColor: token('color.background.accent.red.bolder.hovered'),
418
+ },
419
+ }),
420
+ 'accent.orange.subtlest': css({
421
+ ':hover': {
422
+ backgroundColor: token('color.background.accent.orange.subtlest.hovered'),
423
+ },
424
+ }),
425
+ 'accent.orange.subtler': css({
426
+ ':hover': {
427
+ backgroundColor: token('color.background.accent.orange.subtler.hovered'),
428
+ },
429
+ }),
430
+ 'accent.orange.subtle': css({
431
+ ':hover': {
432
+ backgroundColor: token('color.background.accent.orange.subtle.hovered'),
433
+ },
434
+ }),
435
+ 'accent.orange.bolder': css({
436
+ ':hover': {
437
+ backgroundColor: token('color.background.accent.orange.bolder.hovered'),
438
+ },
439
+ }),
440
+ 'accent.yellow.subtlest': css({
441
+ ':hover': {
442
+ backgroundColor: token('color.background.accent.yellow.subtlest.hovered'),
443
+ },
444
+ }),
445
+ 'accent.yellow.subtler': css({
446
+ ':hover': {
447
+ backgroundColor: token('color.background.accent.yellow.subtler.hovered'),
448
+ },
449
+ }),
450
+ 'accent.yellow.subtle': css({
451
+ ':hover': {
452
+ backgroundColor: token('color.background.accent.yellow.subtle.hovered'),
453
+ },
454
+ }),
455
+ 'accent.yellow.bolder': css({
456
+ ':hover': {
457
+ backgroundColor: token('color.background.accent.yellow.bolder.hovered'),
458
+ },
459
+ }),
460
+ 'accent.green.subtlest': css({
461
+ ':hover': {
462
+ backgroundColor: token('color.background.accent.green.subtlest.hovered'),
463
+ },
464
+ }),
465
+ 'accent.green.subtler': css({
466
+ ':hover': {
467
+ backgroundColor: token('color.background.accent.green.subtler.hovered'),
468
+ },
469
+ }),
470
+ 'accent.green.subtle': css({
471
+ ':hover': {
472
+ backgroundColor: token('color.background.accent.green.subtle.hovered'),
473
+ },
474
+ }),
475
+ 'accent.green.bolder': css({
476
+ ':hover': {
477
+ backgroundColor: token('color.background.accent.green.bolder.hovered'),
478
+ },
479
+ }),
480
+ 'accent.teal.subtlest': css({
481
+ ':hover': {
482
+ backgroundColor: token('color.background.accent.teal.subtlest.hovered'),
483
+ },
484
+ }),
485
+ 'accent.teal.subtler': css({
486
+ ':hover': {
487
+ backgroundColor: token('color.background.accent.teal.subtler.hovered'),
488
+ },
489
+ }),
490
+ 'accent.teal.subtle': css({
491
+ ':hover': {
492
+ backgroundColor: token('color.background.accent.teal.subtle.hovered'),
493
+ },
494
+ }),
495
+ 'accent.teal.bolder': css({
496
+ ':hover': {
497
+ backgroundColor: token('color.background.accent.teal.bolder.hovered'),
498
+ },
499
+ }),
500
+ 'accent.blue.subtlest': css({
501
+ ':hover': {
502
+ backgroundColor: token('color.background.accent.blue.subtlest.hovered'),
503
+ },
504
+ }),
505
+ 'accent.blue.subtler': css({
506
+ ':hover': {
507
+ backgroundColor: token('color.background.accent.blue.subtler.hovered'),
508
+ },
509
+ }),
510
+ 'accent.blue.subtle': css({
511
+ ':hover': {
512
+ backgroundColor: token('color.background.accent.blue.subtle.hovered'),
513
+ },
514
+ }),
515
+ 'accent.blue.bolder': css({
516
+ ':hover': {
517
+ backgroundColor: token('color.background.accent.blue.bolder.hovered'),
518
+ },
519
+ }),
520
+ 'accent.purple.subtlest': css({
521
+ ':hover': {
522
+ backgroundColor: token('color.background.accent.purple.subtlest.hovered'),
523
+ },
524
+ }),
525
+ 'accent.purple.subtler': css({
526
+ ':hover': {
527
+ backgroundColor: token('color.background.accent.purple.subtler.hovered'),
528
+ },
529
+ }),
530
+ 'accent.purple.subtle': css({
531
+ ':hover': {
532
+ backgroundColor: token('color.background.accent.purple.subtle.hovered'),
533
+ },
534
+ }),
535
+ 'accent.purple.bolder': css({
536
+ ':hover': {
537
+ backgroundColor: token('color.background.accent.purple.bolder.hovered'),
538
+ },
539
+ }),
540
+ 'accent.magenta.subtlest': css({
541
+ ':hover': {
542
+ backgroundColor: token(
543
+ 'color.background.accent.magenta.subtlest.hovered',
544
+ ),
545
+ },
546
+ }),
547
+ 'accent.magenta.subtler': css({
548
+ ':hover': {
549
+ backgroundColor: token('color.background.accent.magenta.subtler.hovered'),
550
+ },
551
+ }),
552
+ 'accent.magenta.subtle': css({
553
+ ':hover': {
554
+ backgroundColor: token('color.background.accent.magenta.subtle.hovered'),
555
+ },
556
+ }),
557
+ 'accent.magenta.bolder': css({
558
+ ':hover': {
559
+ backgroundColor: token('color.background.accent.magenta.bolder.hovered'),
560
+ },
561
+ }),
562
+ 'accent.gray.subtlest': css({
563
+ ':hover': {
564
+ backgroundColor: token('color.background.accent.gray.subtlest.hovered'),
565
+ },
566
+ }),
567
+ 'accent.gray.subtler': css({
568
+ ':hover': {
569
+ backgroundColor: token('color.background.accent.gray.subtler.hovered'),
570
+ },
571
+ }),
572
+ 'accent.gray.subtle': css({
573
+ ':hover': {
574
+ backgroundColor: token('color.background.accent.gray.subtle.hovered'),
575
+ },
576
+ }),
577
+ 'accent.gray.bolder': css({
578
+ ':hover': {
579
+ backgroundColor: token('color.background.accent.gray.bolder.hovered'),
580
+ },
581
+ }),
178
582
  input: css({
179
583
  ':hover': { backgroundColor: token('color.background.input.hovered') },
180
584
  }),
@@ -311,11 +311,11 @@ export type LineHeight = keyof typeof lineHeightMap;
311
311
 
312
312
  /**
313
313
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
314
- * @codegen <<SignedSource::8a6efbd43991cb2ebd97bd5eed33e192>>
314
+ * @codegen <<SignedSource::d2da3ae653a14d48ae7649d16e323e40>>
315
315
  * @codegenId colors
316
316
  * @codegenCommand yarn codegen-styles
317
317
  * @codegenParams ["text"]
318
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
318
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::815ddd719715ae06521cad06e1921e40>>
319
319
  */
320
320
  const textColorMap = {
321
321
  'color.text': css({
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * The color map is used to map a background color token to a matching text color that will meet contrast.
5
5
  *
6
- * @codegen <<SignedSource::1884888c7b0fc397963699c7902aaec7>>
6
+ * @codegen <<SignedSource::49cf3a9a4b6ea82d76f3d977759cac32>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
8
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::815ddd719715ae06521cad06e1921e40>>
9
9
  */
10
10
  export default {
11
11
  'neutral.bold': 'inverse',
@@ -60,6 +60,46 @@ const backgroundColorMap: {
60
60
 
61
61
  // @public (undocumented)
62
62
  const backgroundHoverColorMap: {
63
+ 'accent.lime.subtlest': SerializedStyles;
64
+ 'accent.lime.subtler': SerializedStyles;
65
+ 'accent.lime.subtle': SerializedStyles;
66
+ 'accent.lime.bolder': SerializedStyles;
67
+ 'accent.red.subtlest': SerializedStyles;
68
+ 'accent.red.subtler': SerializedStyles;
69
+ 'accent.red.subtle': SerializedStyles;
70
+ 'accent.red.bolder': SerializedStyles;
71
+ 'accent.orange.subtlest': SerializedStyles;
72
+ 'accent.orange.subtler': SerializedStyles;
73
+ 'accent.orange.subtle': SerializedStyles;
74
+ 'accent.orange.bolder': SerializedStyles;
75
+ 'accent.yellow.subtlest': SerializedStyles;
76
+ 'accent.yellow.subtler': SerializedStyles;
77
+ 'accent.yellow.subtle': SerializedStyles;
78
+ 'accent.yellow.bolder': SerializedStyles;
79
+ 'accent.green.subtlest': SerializedStyles;
80
+ 'accent.green.subtler': SerializedStyles;
81
+ 'accent.green.subtle': SerializedStyles;
82
+ 'accent.green.bolder': SerializedStyles;
83
+ 'accent.teal.subtlest': SerializedStyles;
84
+ 'accent.teal.subtler': SerializedStyles;
85
+ 'accent.teal.subtle': SerializedStyles;
86
+ 'accent.teal.bolder': SerializedStyles;
87
+ 'accent.blue.subtlest': SerializedStyles;
88
+ 'accent.blue.subtler': SerializedStyles;
89
+ 'accent.blue.subtle': SerializedStyles;
90
+ 'accent.blue.bolder': SerializedStyles;
91
+ 'accent.purple.subtlest': SerializedStyles;
92
+ 'accent.purple.subtler': SerializedStyles;
93
+ 'accent.purple.subtle': SerializedStyles;
94
+ 'accent.purple.bolder': SerializedStyles;
95
+ 'accent.magenta.subtlest': SerializedStyles;
96
+ 'accent.magenta.subtler': SerializedStyles;
97
+ 'accent.magenta.subtle': SerializedStyles;
98
+ 'accent.magenta.bolder': SerializedStyles;
99
+ 'accent.gray.subtlest': SerializedStyles;
100
+ 'accent.gray.subtler': SerializedStyles;
101
+ 'accent.gray.subtle': SerializedStyles;
102
+ 'accent.gray.bolder': SerializedStyles;
63
103
  input: SerializedStyles;
64
104
  'inverse.subtle': SerializedStyles;
65
105
  neutral: SerializedStyles;