@comicrelief/component-library 8.49.1 → 8.50.1

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 (57) hide show
  1. package/dist/components/Molecules/Accordion/Accordion.js +8 -1
  2. package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +60 -21
  3. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -6
  4. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -16
  5. package/dist/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.js +59 -0
  6. package/{src/components/Molecules → dist/components/Molecules/CTA}/CTAMultiCard/CTAMultiCard.md +4 -4
  7. package/dist/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.style.js +55 -0
  8. package/dist/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.test.js +91 -0
  9. package/dist/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +2931 -0
  10. package/dist/components/Molecules/CTA/CTAMultiCard/example_data.json +107 -0
  11. package/dist/components/Molecules/CTA/CTASingleCard/CTASingleCard.js +44 -0
  12. package/dist/components/Molecules/CTA/CTASingleCard/CTASingleCard.md +124 -0
  13. package/dist/components/Molecules/CTA/CTASingleCard/CTASingleCard.style.js +23 -0
  14. package/dist/components/Molecules/CTA/CTASingleCard/CTASingleCard.test.js +96 -0
  15. package/dist/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +903 -0
  16. package/dist/components/Molecules/CTA/shared/CTACard.js +67 -0
  17. package/dist/components/Molecules/CTA/shared/CTACard.style.js +269 -0
  18. package/dist/components/Molecules/{CTAMultiCard → CTA/shared}/_ArrowIcon.js +1 -1
  19. package/dist/components/Molecules/Descriptor/Descriptor.js +1 -5
  20. package/dist/components/Molecules/Descriptor/Descriptor.test.js +0 -8
  21. package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.style.js +11 -11
  22. package/dist/components/Molecules/OLD_CTAMultiCard/_ArrowIcon.js +29 -0
  23. package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/__snapshots__/CTAMultiCard.test.js.snap +8 -0
  24. package/dist/index.js +8 -1
  25. package/package.json +1 -1
  26. package/src/components/Molecules/Accordion/Accordion.js +8 -1
  27. package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +60 -21
  28. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +0 -6
  29. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -16
  30. package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.js +99 -0
  31. package/{dist/components/Molecules → src/components/Molecules/CTA}/CTAMultiCard/CTAMultiCard.md +4 -4
  32. package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.style.js +68 -0
  33. package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.test.js +107 -0
  34. package/src/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +2931 -0
  35. package/src/components/Molecules/CTA/CTAMultiCard/example_data.json +107 -0
  36. package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.js +72 -0
  37. package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.md +124 -0
  38. package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.style.js +19 -0
  39. package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.test.js +96 -0
  40. package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +903 -0
  41. package/src/components/Molecules/CTA/shared/CTACard.js +115 -0
  42. package/src/components/Molecules/CTA/shared/CTACard.style.js +356 -0
  43. package/src/components/Molecules/Descriptor/Descriptor.js +0 -4
  44. package/src/components/Molecules/Descriptor/Descriptor.test.js +0 -8
  45. package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.style.js +2 -0
  46. package/src/components/Molecules/OLD_CTAMultiCard/_ArrowIcon.js +22 -0
  47. package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/__snapshots__/CTAMultiCard.test.js.snap +8 -0
  48. package/src/index.js +2 -1
  49. /package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.js +0 -0
  50. /package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.test.js +0 -0
  51. /package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/SingleCard.js +0 -0
  52. /package/dist/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/example_data.json +0 -0
  53. /package/src/components/Molecules/{CTAMultiCard → CTA/shared}/_ArrowIcon.js +0 -0
  54. /package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.js +0 -0
  55. /package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/CTAMultiCard.test.js +0 -0
  56. /package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/SingleCard.js +0 -0
  57. /package/src/components/Molecules/{CTAMultiCard → OLD_CTAMultiCard}/example_data.json +0 -0
@@ -0,0 +1,903 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders correctly with data prop 1`] = `
4
+ .c9 {
5
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
6
+ font-weight: 400;
7
+ text-transform: inherit;
8
+ -webkit-letter-spacing: 0;
9
+ -moz-letter-spacing: 0;
10
+ -ms-letter-spacing: 0;
11
+ letter-spacing: 0;
12
+ font-size: 1rem;
13
+ line-height: 1.25rem;
14
+ }
15
+
16
+ .c9 span {
17
+ font-size: inherit;
18
+ line-height: inherit;
19
+ }
20
+
21
+ .c5 {
22
+ display: block;
23
+ width: 100%;
24
+ height: 100%;
25
+ position: relative;
26
+ }
27
+
28
+ .c6 {
29
+ width: 100%;
30
+ height: 100%;
31
+ display: block;
32
+ object-fit: cover;
33
+ }
34
+
35
+ .c17 {
36
+ display: inline-block;
37
+ color: #FFFFFF;
38
+ fill: currentColor;
39
+ }
40
+
41
+ .c4 {
42
+ width: 100%;
43
+ overflow: hidden;
44
+ -webkit-flex-shrink: 0;
45
+ -ms-flex-negative: 0;
46
+ flex-shrink: 0;
47
+ background: transparent;
48
+ border-radius: 1rem 1rem 0 0;
49
+ }
50
+
51
+ .c4 img {
52
+ width: 100%;
53
+ height: auto;
54
+ object-fit: cover;
55
+ display: block;
56
+ }
57
+
58
+ .c12 {
59
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
60
+ font-weight: 400;
61
+ text-transform: inherit;
62
+ -webkit-letter-spacing: 0;
63
+ -moz-letter-spacing: 0;
64
+ -ms-letter-spacing: 0;
65
+ letter-spacing: 0;
66
+ font-size: 1rem;
67
+ line-height: 1.25rem;
68
+ color: #969598;
69
+ font-weight: bold;
70
+ -webkit-text-decoration: none;
71
+ text-decoration: none;
72
+ position: relative;
73
+ display: inline-block;
74
+ }
75
+
76
+ .c14 {
77
+ height: 4px;
78
+ width: 100%;
79
+ position: absolute;
80
+ left: 0;
81
+ bottom: -5px;
82
+ -webkit-transition: opacity 0.15s 0.1s;
83
+ transition: opacity 0.15s 0.1s;
84
+ opacity: 0;
85
+ pointer-events: none;
86
+ }
87
+
88
+ .c16 {
89
+ width: 32px;
90
+ height: 32px;
91
+ border-radius: 50%;
92
+ background: #969598;
93
+ display: -webkit-box;
94
+ display: -webkit-flex;
95
+ display: -ms-flexbox;
96
+ display: flex;
97
+ -webkit-align-items: center;
98
+ -webkit-box-align: center;
99
+ -ms-flex-align: center;
100
+ align-items: center;
101
+ -webkit-box-pack: center;
102
+ -webkit-justify-content: center;
103
+ -ms-flex-pack: center;
104
+ justify-content: center;
105
+ -webkit-flex-shrink: 0;
106
+ -ms-flex-negative: 0;
107
+ flex-shrink: 0;
108
+ }
109
+
110
+ .c2 {
111
+ display: -webkit-box;
112
+ display: -webkit-flex;
113
+ display: -ms-flexbox;
114
+ display: flex;
115
+ position: relative;
116
+ -webkit-flex-direction: column;
117
+ -ms-flex-direction: column;
118
+ flex-direction: column;
119
+ width: 100%;
120
+ -webkit-flex: 1 1 auto;
121
+ -ms-flex: 1 1 auto;
122
+ flex: 1 1 auto;
123
+ background: transparent;
124
+ border-radius: 1rem;
125
+ box-shadow: 0 0 1rem rgba(0,0,0,0.15);
126
+ -webkit-text-decoration: none;
127
+ text-decoration: none;
128
+ overflow: hidden;
129
+ cursor: pointer;
130
+ box-sizing: border-box;
131
+ }
132
+
133
+ .c2 img {
134
+ -webkit-transform: scale(1.02);
135
+ -ms-transform: scale(1.02);
136
+ transform: scale(1.02);
137
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
138
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
139
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
140
+ }
141
+
142
+ .c1 {
143
+ width: 100%;
144
+ -webkit-flex-shrink: 0;
145
+ -ms-flex-negative: 0;
146
+ flex-shrink: 0;
147
+ display: -webkit-box;
148
+ display: -webkit-flex;
149
+ display: -ms-flexbox;
150
+ display: flex;
151
+ -webkit-flex-direction: column;
152
+ -ms-flex-direction: column;
153
+ flex-direction: column;
154
+ -webkit-align-self: stretch;
155
+ -ms-flex-item-align: stretch;
156
+ align-self: stretch;
157
+ width: 100%;
158
+ max-width: 100%;
159
+ }
160
+
161
+ .c7 {
162
+ width: 100%;
163
+ background: #FFFFFF;
164
+ display: -webkit-box;
165
+ display: -webkit-flex;
166
+ display: -ms-flexbox;
167
+ display: flex;
168
+ -webkit-flex-direction: column;
169
+ -ms-flex-direction: column;
170
+ flex-direction: column;
171
+ padding: 2rem;
172
+ -webkit-flex: 1;
173
+ -ms-flex: 1;
174
+ flex: 1;
175
+ min-height: 0;
176
+ border-radius: 0 0 1rem 1rem;
177
+ }
178
+
179
+ .c8 {
180
+ -webkit-flex: 1;
181
+ -ms-flex: 1;
182
+ flex: 1;
183
+ display: -webkit-box;
184
+ display: -webkit-flex;
185
+ display: -ms-flexbox;
186
+ display: flex;
187
+ -webkit-flex-direction: column;
188
+ -ms-flex-direction: column;
189
+ flex-direction: column;
190
+ min-height: 0;
191
+ }
192
+
193
+ .c10 {
194
+ width: 100%;
195
+ display: -webkit-box;
196
+ display: -webkit-flex;
197
+ display: -ms-flexbox;
198
+ display: flex;
199
+ -webkit-flex-direction: row;
200
+ -ms-flex-direction: row;
201
+ flex-direction: row;
202
+ -webkit-align-items: center;
203
+ -webkit-box-align: center;
204
+ -ms-flex-align: center;
205
+ align-items: center;
206
+ -webkit-box-pack: justify;
207
+ -webkit-justify-content: space-between;
208
+ -ms-flex-pack: justify;
209
+ justify-content: space-between;
210
+ margin-top: auto;
211
+ padding-top: 1rem;
212
+ }
213
+
214
+ .c0 {
215
+ padding-top: 1rem;
216
+ padding-bottom: 2rem;
217
+ display: -webkit-box;
218
+ display: -webkit-flex;
219
+ display: -ms-flexbox;
220
+ display: flex;
221
+ width: 100%;
222
+ max-width: 1152px;
223
+ margin: 0 auto;
224
+ background: transparent;
225
+ }
226
+
227
+ .c0 img {
228
+ -webkit-transform: scale(1.02);
229
+ -ms-transform: scale(1.02);
230
+ transform: scale(1.02);
231
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
232
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
233
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
234
+ }
235
+
236
+ @media (min-width:740px) {
237
+ .c9 {
238
+ font-size: 1rem;
239
+ line-height: 1.25rem;
240
+ }
241
+ }
242
+
243
+ @media (min-width:1024px) {
244
+ .c9 {
245
+ font-size: 1.125rem;
246
+ line-height: 1.375rem;
247
+ }
248
+ }
249
+
250
+ @media (min-width:740px) {
251
+ .c4 {
252
+ width: calc(100% / 3);
253
+ min-width: 292px;
254
+ max-width: 309px;
255
+ -webkit-flex-shrink: 0;
256
+ -ms-flex-negative: 0;
257
+ flex-shrink: 0;
258
+ -webkit-box-flex: 0;
259
+ -webkit-flex-grow: 0;
260
+ -ms-flex-positive: 0;
261
+ flex-grow: 0;
262
+ height: 100%;
263
+ border-radius: 1rem 0 0 1rem;
264
+ }
265
+ }
266
+
267
+ @media (min-width:1024px) {
268
+ .c4 {
269
+ min-width: 355px;
270
+ max-width: 362px;
271
+ }
272
+ }
273
+
274
+ @media (min-width:1440px) {
275
+ .c4 {
276
+ min-width: 363px;
277
+ max-width: 363px;
278
+ }
279
+ }
280
+
281
+ @media (min-width:740px) {
282
+ .c4 img {
283
+ height: 100%;
284
+ object-fit: cover;
285
+ }
286
+ }
287
+
288
+ @media (min-width:740px) {
289
+ .c4 img {
290
+ -webkit-transition: -webkit-transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
291
+ -webkit-transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
292
+ transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
293
+ -webkit-transform-origin: center;
294
+ -ms-transform-origin: center;
295
+ transform-origin: center;
296
+ }
297
+
298
+ .c4 img:hover,
299
+ .c4 img:focus {
300
+ -webkit-transform: scale(1.08);
301
+ -ms-transform: scale(1.08);
302
+ transform: scale(1.08);
303
+ }
304
+ }
305
+
306
+ @media (min-width:740px) {
307
+ .c12 {
308
+ font-size: 1rem;
309
+ line-height: 1.25rem;
310
+ }
311
+ }
312
+
313
+ @media (min-width:1024px) {
314
+ .c12 {
315
+ font-size: 1.125rem;
316
+ line-height: 1.375rem;
317
+ }
318
+ }
319
+
320
+ @media (min-width:740px) {
321
+ .c2 {
322
+ -webkit-flex-direction: row;
323
+ -ms-flex-direction: row;
324
+ flex-direction: row;
325
+ -webkit-align-items: stretch;
326
+ -webkit-box-align: stretch;
327
+ -ms-flex-align: stretch;
328
+ align-items: stretch;
329
+ min-height: calc(219px - 4rem);
330
+ }
331
+ }
332
+
333
+ @media (min-width:1024px) {
334
+ .c2 {
335
+ min-height: calc(272px - 4rem);
336
+ }
337
+ }
338
+
339
+ @media (min-width:740px) {
340
+ .c2 {
341
+ -webkit-transition: -webkit-transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
342
+ -webkit-transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
343
+ transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
344
+ -webkit-transform-origin: center;
345
+ -ms-transform-origin: center;
346
+ transform-origin: center;
347
+ }
348
+
349
+ .c2:hover,
350
+ .c2:focus {
351
+ -webkit-transform: translateY(-0.02px);
352
+ -ms-transform: translateY(-0.02px);
353
+ transform: translateY(-0.02px);
354
+ }
355
+
356
+ .c2:hover {
357
+ box-shadow: 0 0 1.5rem rgba(0,0,0,0.25);
358
+ }
359
+
360
+ .c2:hover .c3 img {
361
+ -webkit-transform: scale(1.1);
362
+ -ms-transform: scale(1.1);
363
+ transform: scale(1.1);
364
+ }
365
+
366
+ .c2:hover .c11 {
367
+ color: #E52630;
368
+ -webkit-text-decoration: none;
369
+ text-decoration: none;
370
+ }
371
+
372
+ .c2:hover .c13 {
373
+ opacity: 1;
374
+ }
375
+
376
+ .c2:hover .c15 {
377
+ background: #E52630;
378
+ }
379
+ }
380
+
381
+ @media (min-width:740px) {
382
+ .c1 {
383
+ -webkit-flex-basis: 100%;
384
+ -ms-flex-preferred-size: 100%;
385
+ flex-basis: 100%;
386
+ max-width: 100%;
387
+ height: auto;
388
+ }
389
+ }
390
+
391
+ @media (min-width:1440px) {
392
+ .c1 {
393
+ -webkit-flex-basis: 100%;
394
+ -ms-flex-preferred-size: 100%;
395
+ flex-basis: 100%;
396
+ max-width: 100%;
397
+ height: auto;
398
+ }
399
+ }
400
+
401
+ @media (min-width:740px) {
402
+ .c7 {
403
+ width: calc(200% / 3);
404
+ min-width: 384px;
405
+ max-width: 650px;
406
+ -webkit-flex: 1;
407
+ -ms-flex: 1;
408
+ flex: 1;
409
+ border-radius: 0 1rem 1rem 0;
410
+ }
411
+ }
412
+
413
+ @media (min-width:1024px) {
414
+ .c7 {
415
+ min-width: 541px;
416
+ max-width: 790px;
417
+ }
418
+ }
419
+
420
+ @media (min-width:1440px) {
421
+ .c7 {
422
+ width: 789px;
423
+ }
424
+ }
425
+
426
+ <div
427
+ className="c0"
428
+ >
429
+ <div
430
+ className="c1"
431
+ >
432
+ <a
433
+ className="c2"
434
+ href="/test"
435
+ rel={null}
436
+ target="self"
437
+ >
438
+ <div
439
+ className="c3 c4"
440
+ >
441
+ <div
442
+ className="c5 lazyload"
443
+ height="100%"
444
+ width="100%"
445
+ >
446
+ <img
447
+ alt="Example image"
448
+ className="c6 lazyload"
449
+ data-lowsrc="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAPABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAcIBAb/xAAjEAACAgIBBAIDAAAAAAAAAAABAgMEABEGBRIhMQdBE1Fh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAgT/xAAaEQADAQADAAAAAAAAAAAAAAAAAQIDERIT/9oADAMBAAIRAxEAPwBzRcrjVY+0tonyT41nG8y+SLFTkgpQTVFpoqiRZGHc2/egf4RrMM12OHpNi3LsrAjO2vsKCcQtvkbTW570sMUt6xphJKnd+Ma9A78ZRWcS+SWNLpNMqAdQidVaSxErEA6ZgCNj9YZNPTOTpJW7+ovdlnLHyjgAD6GGPug+bP/Z"
450
+ data-sizes="auto"
451
+ data-src="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg"
452
+ data-srcset="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&q=80&fm=webp 678w"
453
+ height="100%"
454
+ src="https://images.ctfassets.net/zsfivwzfgl3t/4VsIykPLHDNkNCT9djGrX/c8f1e4cb5c6bda5a7b77f18501e9304d/challenge-1.jpg?w=678&h=501&fl=progressive&q=80&fm=jpg"
455
+ srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
456
+ width="100%"
457
+ />
458
+ </div>
459
+ </div>
460
+ <div
461
+ className="c7"
462
+ >
463
+ <div
464
+ className="c8"
465
+ >
466
+ <p
467
+ className="c9"
468
+ >
469
+ <strong>
470
+ Single Card
471
+ </strong>
472
+ content here
473
+ </p>
474
+ </div>
475
+ <div
476
+ className="c10"
477
+ >
478
+ <span
479
+ className="c11 c12"
480
+ >
481
+ Learn more
482
+ <img
483
+ alt=""
484
+ aria-hidden="true"
485
+ className="c13 c14"
486
+ src="mock.asset"
487
+ />
488
+ </span>
489
+ <div
490
+ className="c15 c16"
491
+ >
492
+ <svg
493
+ className="c17"
494
+ fill="none"
495
+ height="13"
496
+ viewBox="0 0 15 13"
497
+ width="15"
498
+ xmlns="http://www.w3.org/2000/svg"
499
+ >
500
+ <path
501
+ d="M9.58496 0.349976C9.1395 -0.116662 8.40641 -0.116634 7.96094 0.349976C7.52803 0.803486 7.5281 1.53021 7.96094 1.98376L11.1582 5.33337H1.13672C0.48748 5.33337 0 5.87822 0 6.50037C2.15408e-05 7.1225 0.487494 7.66736 1.13672 7.66736H11.1582L7.96094 11.017C7.52806 11.4705 7.52899 12.1972 7.96191 12.6508C8.18163 12.8803 8.47556 13.0004 8.77344 13.0004C9.07114 13.0002 9.36533 12.8808 9.58496 12.6508L14.6758 7.31677L14.6748 7.3158L14.6875 7.3031L14.6865 7.30212C14.6954 7.29215 14.7044 7.28482 14.71 7.27771C14.7117 7.27545 14.7133 7.27285 14.7148 7.27087C14.7485 7.23203 14.7824 7.18925 14.8135 7.14099L14.8154 7.13806C14.8354 7.10658 14.8493 7.07842 14.8564 7.06384L14.8652 7.04626L14.8662 7.04431L14.8672 7.04333C14.8672 7.04333 14.868 7.04057 14.8691 7.03845C14.8709 7.03512 14.8758 7.02671 14.8799 7.01892L14.8802 7.01839C14.8888 7.002 14.9034 6.97423 14.917 6.93982V6.93787C14.9303 6.90375 14.9391 6.87285 14.9443 6.85388C14.9469 6.84458 14.9498 6.83567 14.9512 6.83044C14.9527 6.82454 14.9535 6.8228 14.9541 6.82068C14.9541 6.82068 14.9542 6.81753 14.9551 6.81482L14.958 6.80603L14.9586 6.80422C14.9631 6.78961 14.9718 6.76119 14.9785 6.72693V6.72498C15.0066 6.57705 15.0066 6.4246 14.9785 6.27673V6.27478L14.958 6.19568L14.9551 6.18591L14.9531 6.18005L14.9512 6.17224C14.9497 6.1664 14.9481 6.15677 14.9453 6.14685C14.9398 6.12695 14.9307 6.09654 14.917 6.06189C14.9032 6.02688 14.8885 5.99813 14.8799 5.98181C14.8758 5.97402 14.8709 5.96562 14.8691 5.96228L14.8564 5.93689C14.849 5.92177 14.8351 5.89372 14.8154 5.86267L14.8145 5.86072L14.7529 5.7738C14.7316 5.74659 14.7094 5.72129 14.6875 5.69763C14.6837 5.69341 14.6802 5.68854 14.6758 5.68396L9.58496 0.349976Z"
502
+ fill="currentColor"
503
+ />
504
+ </svg>
505
+ </div>
506
+ </div>
507
+ </div>
508
+ </a>
509
+ </div>
510
+ </div>
511
+ `;
512
+
513
+ exports[`renders correctly without image 1`] = `
514
+ .c5 {
515
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
516
+ font-weight: 400;
517
+ text-transform: inherit;
518
+ -webkit-letter-spacing: 0;
519
+ -moz-letter-spacing: 0;
520
+ -ms-letter-spacing: 0;
521
+ letter-spacing: 0;
522
+ font-size: 1rem;
523
+ line-height: 1.25rem;
524
+ }
525
+
526
+ .c5 span {
527
+ font-size: inherit;
528
+ line-height: inherit;
529
+ }
530
+
531
+ .c13 {
532
+ display: inline-block;
533
+ color: #FFFFFF;
534
+ fill: currentColor;
535
+ }
536
+
537
+ .c8 {
538
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
539
+ font-weight: 400;
540
+ text-transform: inherit;
541
+ -webkit-letter-spacing: 0;
542
+ -moz-letter-spacing: 0;
543
+ -ms-letter-spacing: 0;
544
+ letter-spacing: 0;
545
+ font-size: 1rem;
546
+ line-height: 1.25rem;
547
+ color: #969598;
548
+ font-weight: bold;
549
+ -webkit-text-decoration: none;
550
+ text-decoration: none;
551
+ position: relative;
552
+ display: inline-block;
553
+ }
554
+
555
+ .c10 {
556
+ height: 4px;
557
+ width: 100%;
558
+ position: absolute;
559
+ left: 0;
560
+ bottom: -5px;
561
+ -webkit-transition: opacity 0.15s 0.1s;
562
+ transition: opacity 0.15s 0.1s;
563
+ opacity: 0;
564
+ pointer-events: none;
565
+ }
566
+
567
+ .c12 {
568
+ width: 32px;
569
+ height: 32px;
570
+ border-radius: 50%;
571
+ background: #969598;
572
+ display: -webkit-box;
573
+ display: -webkit-flex;
574
+ display: -ms-flexbox;
575
+ display: flex;
576
+ -webkit-align-items: center;
577
+ -webkit-box-align: center;
578
+ -ms-flex-align: center;
579
+ align-items: center;
580
+ -webkit-box-pack: center;
581
+ -webkit-justify-content: center;
582
+ -ms-flex-pack: center;
583
+ justify-content: center;
584
+ -webkit-flex-shrink: 0;
585
+ -ms-flex-negative: 0;
586
+ flex-shrink: 0;
587
+ }
588
+
589
+ .c2 {
590
+ display: -webkit-box;
591
+ display: -webkit-flex;
592
+ display: -ms-flexbox;
593
+ display: flex;
594
+ position: relative;
595
+ -webkit-flex-direction: column;
596
+ -ms-flex-direction: column;
597
+ flex-direction: column;
598
+ width: 100%;
599
+ -webkit-flex: 1 1 auto;
600
+ -ms-flex: 1 1 auto;
601
+ flex: 1 1 auto;
602
+ background: transparent;
603
+ border-radius: 1rem;
604
+ box-shadow: 0 0 1rem rgba(0,0,0,0.15);
605
+ -webkit-text-decoration: none;
606
+ text-decoration: none;
607
+ overflow: hidden;
608
+ cursor: pointer;
609
+ box-sizing: border-box;
610
+ }
611
+
612
+ .c2 img {
613
+ -webkit-transform: scale(1.02);
614
+ -ms-transform: scale(1.02);
615
+ transform: scale(1.02);
616
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
617
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
618
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
619
+ }
620
+
621
+ .c1 {
622
+ width: 100%;
623
+ -webkit-flex-shrink: 0;
624
+ -ms-flex-negative: 0;
625
+ flex-shrink: 0;
626
+ display: -webkit-box;
627
+ display: -webkit-flex;
628
+ display: -ms-flexbox;
629
+ display: flex;
630
+ -webkit-flex-direction: column;
631
+ -ms-flex-direction: column;
632
+ flex-direction: column;
633
+ -webkit-align-self: stretch;
634
+ -ms-flex-item-align: stretch;
635
+ align-self: stretch;
636
+ width: 100%;
637
+ max-width: 100%;
638
+ }
639
+
640
+ .c3 {
641
+ width: 100%;
642
+ background: #FFFFFF;
643
+ display: -webkit-box;
644
+ display: -webkit-flex;
645
+ display: -ms-flexbox;
646
+ display: flex;
647
+ -webkit-flex-direction: column;
648
+ -ms-flex-direction: column;
649
+ flex-direction: column;
650
+ padding: 2rem;
651
+ -webkit-flex: 1;
652
+ -ms-flex: 1;
653
+ flex: 1;
654
+ min-height: 0;
655
+ border-radius: 0 0 1rem 1rem;
656
+ }
657
+
658
+ .c4 {
659
+ -webkit-flex: 1;
660
+ -ms-flex: 1;
661
+ flex: 1;
662
+ display: -webkit-box;
663
+ display: -webkit-flex;
664
+ display: -ms-flexbox;
665
+ display: flex;
666
+ -webkit-flex-direction: column;
667
+ -ms-flex-direction: column;
668
+ flex-direction: column;
669
+ min-height: 0;
670
+ }
671
+
672
+ .c6 {
673
+ width: 100%;
674
+ display: -webkit-box;
675
+ display: -webkit-flex;
676
+ display: -ms-flexbox;
677
+ display: flex;
678
+ -webkit-flex-direction: row;
679
+ -ms-flex-direction: row;
680
+ flex-direction: row;
681
+ -webkit-align-items: center;
682
+ -webkit-box-align: center;
683
+ -ms-flex-align: center;
684
+ align-items: center;
685
+ -webkit-box-pack: justify;
686
+ -webkit-justify-content: space-between;
687
+ -ms-flex-pack: justify;
688
+ justify-content: space-between;
689
+ margin-top: auto;
690
+ padding-top: 1rem;
691
+ }
692
+
693
+ .c0 {
694
+ padding-top: 1rem;
695
+ padding-bottom: 2rem;
696
+ display: -webkit-box;
697
+ display: -webkit-flex;
698
+ display: -ms-flexbox;
699
+ display: flex;
700
+ width: 100%;
701
+ max-width: 1152px;
702
+ margin: 0 auto;
703
+ background: transparent;
704
+ }
705
+
706
+ .c0 img {
707
+ -webkit-transform: scale(1.02);
708
+ -ms-transform: scale(1.02);
709
+ transform: scale(1.02);
710
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
711
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
712
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
713
+ }
714
+
715
+ @media (min-width:740px) {
716
+ .c5 {
717
+ font-size: 1rem;
718
+ line-height: 1.25rem;
719
+ }
720
+ }
721
+
722
+ @media (min-width:1024px) {
723
+ .c5 {
724
+ font-size: 1.125rem;
725
+ line-height: 1.375rem;
726
+ }
727
+ }
728
+
729
+ @media (min-width:740px) {
730
+ .c8 {
731
+ font-size: 1rem;
732
+ line-height: 1.25rem;
733
+ }
734
+ }
735
+
736
+ @media (min-width:1024px) {
737
+ .c8 {
738
+ font-size: 1.125rem;
739
+ line-height: 1.375rem;
740
+ }
741
+ }
742
+
743
+ @media (min-width:740px) {
744
+ .c2 {
745
+ -webkit-flex-direction: row;
746
+ -ms-flex-direction: row;
747
+ flex-direction: row;
748
+ -webkit-align-items: stretch;
749
+ -webkit-box-align: stretch;
750
+ -ms-flex-align: stretch;
751
+ align-items: stretch;
752
+ min-height: calc(219px - 4rem);
753
+ }
754
+ }
755
+
756
+ @media (min-width:1024px) {
757
+ .c2 {
758
+ min-height: calc(272px - 4rem);
759
+ }
760
+ }
761
+
762
+ @media (min-width:740px) {
763
+ .c2 {
764
+ -webkit-transition: -webkit-transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
765
+ -webkit-transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
766
+ transition: transform 0.30000000000000004s cubic-bezier(0.68,-0.8500000000000001,0.265,1.9500000000000002);
767
+ -webkit-transform-origin: center;
768
+ -ms-transform-origin: center;
769
+ transform-origin: center;
770
+ }
771
+
772
+ .c2:hover,
773
+ .c2:focus {
774
+ -webkit-transform: translateY(-0.02px);
775
+ -ms-transform: translateY(-0.02px);
776
+ transform: translateY(-0.02px);
777
+ }
778
+
779
+ .c2:hover {
780
+ box-shadow: 0 0 1.5rem rgba(0,0,0,0.25);
781
+ }
782
+
783
+ .c2:hover .c7 {
784
+ color: #E52630;
785
+ -webkit-text-decoration: none;
786
+ text-decoration: none;
787
+ }
788
+
789
+ .c2:hover .c9 {
790
+ opacity: 1;
791
+ }
792
+
793
+ .c2:hover .c11 {
794
+ background: #E52630;
795
+ }
796
+ }
797
+
798
+ @media (min-width:740px) {
799
+ .c1 {
800
+ -webkit-flex-basis: 100%;
801
+ -ms-flex-preferred-size: 100%;
802
+ flex-basis: 100%;
803
+ max-width: 100%;
804
+ height: auto;
805
+ }
806
+ }
807
+
808
+ @media (min-width:1440px) {
809
+ .c1 {
810
+ -webkit-flex-basis: 100%;
811
+ -ms-flex-preferred-size: 100%;
812
+ flex-basis: 100%;
813
+ max-width: 100%;
814
+ height: auto;
815
+ }
816
+ }
817
+
818
+ @media (min-width:740px) {
819
+ .c3 {
820
+ width: calc(200% / 3);
821
+ min-width: 384px;
822
+ max-width: 650px;
823
+ -webkit-flex: 1;
824
+ -ms-flex: 1;
825
+ flex: 1;
826
+ border-radius: 0 1rem 1rem 0;
827
+ }
828
+ }
829
+
830
+ @media (min-width:1024px) {
831
+ .c3 {
832
+ min-width: 541px;
833
+ max-width: 790px;
834
+ }
835
+ }
836
+
837
+ @media (min-width:1440px) {
838
+ .c3 {
839
+ width: 789px;
840
+ }
841
+ }
842
+
843
+ <div
844
+ className="c0"
845
+ >
846
+ <div
847
+ className="c1"
848
+ >
849
+ <a
850
+ className="c2"
851
+ href="/test-no-image"
852
+ rel={null}
853
+ target="self"
854
+ >
855
+ <div
856
+ className="c3"
857
+ >
858
+ <div
859
+ className="c4"
860
+ >
861
+ <p
862
+ className="c5"
863
+ >
864
+ Card without image
865
+ </p>
866
+ </div>
867
+ <div
868
+ className="c6"
869
+ >
870
+ <span
871
+ className="c7 c8"
872
+ >
873
+ View card
874
+ <img
875
+ alt=""
876
+ aria-hidden="true"
877
+ className="c9 c10"
878
+ src="mock.asset"
879
+ />
880
+ </span>
881
+ <div
882
+ className="c11 c12"
883
+ >
884
+ <svg
885
+ className="c13"
886
+ fill="none"
887
+ height="13"
888
+ viewBox="0 0 15 13"
889
+ width="15"
890
+ xmlns="http://www.w3.org/2000/svg"
891
+ >
892
+ <path
893
+ d="M9.58496 0.349976C9.1395 -0.116662 8.40641 -0.116634 7.96094 0.349976C7.52803 0.803486 7.5281 1.53021 7.96094 1.98376L11.1582 5.33337H1.13672C0.48748 5.33337 0 5.87822 0 6.50037C2.15408e-05 7.1225 0.487494 7.66736 1.13672 7.66736H11.1582L7.96094 11.017C7.52806 11.4705 7.52899 12.1972 7.96191 12.6508C8.18163 12.8803 8.47556 13.0004 8.77344 13.0004C9.07114 13.0002 9.36533 12.8808 9.58496 12.6508L14.6758 7.31677L14.6748 7.3158L14.6875 7.3031L14.6865 7.30212C14.6954 7.29215 14.7044 7.28482 14.71 7.27771C14.7117 7.27545 14.7133 7.27285 14.7148 7.27087C14.7485 7.23203 14.7824 7.18925 14.8135 7.14099L14.8154 7.13806C14.8354 7.10658 14.8493 7.07842 14.8564 7.06384L14.8652 7.04626L14.8662 7.04431L14.8672 7.04333C14.8672 7.04333 14.868 7.04057 14.8691 7.03845C14.8709 7.03512 14.8758 7.02671 14.8799 7.01892L14.8802 7.01839C14.8888 7.002 14.9034 6.97423 14.917 6.93982V6.93787C14.9303 6.90375 14.9391 6.87285 14.9443 6.85388C14.9469 6.84458 14.9498 6.83567 14.9512 6.83044C14.9527 6.82454 14.9535 6.8228 14.9541 6.82068C14.9541 6.82068 14.9542 6.81753 14.9551 6.81482L14.958 6.80603L14.9586 6.80422C14.9631 6.78961 14.9718 6.76119 14.9785 6.72693V6.72498C15.0066 6.57705 15.0066 6.4246 14.9785 6.27673V6.27478L14.958 6.19568L14.9551 6.18591L14.9531 6.18005L14.9512 6.17224C14.9497 6.1664 14.9481 6.15677 14.9453 6.14685C14.9398 6.12695 14.9307 6.09654 14.917 6.06189C14.9032 6.02688 14.8885 5.99813 14.8799 5.98181C14.8758 5.97402 14.8709 5.96562 14.8691 5.96228L14.8564 5.93689C14.849 5.92177 14.8351 5.89372 14.8154 5.86267L14.8145 5.86072L14.7529 5.7738C14.7316 5.74659 14.7094 5.72129 14.6875 5.69763C14.6837 5.69341 14.6802 5.68854 14.6758 5.68396L9.58496 0.349976Z"
894
+ fill="currentColor"
895
+ />
896
+ </svg>
897
+ </div>
898
+ </div>
899
+ </div>
900
+ </a>
901
+ </div>
902
+ </div>
903
+ `;