@comicrelief/component-library 8.83.0 → 8.84.0

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 (46) hide show
  1. package/dist/index.cjs.js +1237 -868
  2. package/dist/index.es.js +10978 -10219
  3. package/package.json +1 -1
  4. package/src/App.styles.js +2 -2
  5. package/src/components/Atoms/Button/Button.js +13 -3
  6. package/src/components/Atoms/Button/Button.style.js +19 -1
  7. package/src/components/Atoms/Button/Button.test.js +1 -1
  8. package/src/components/Atoms/Button/ButtonExample.jsx +24 -0
  9. package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +1 -1
  10. package/src/components/Atoms/Icons/Cross.js +0 -1
  11. package/src/components/Atoms/Icons/Download.js +4 -4
  12. package/src/components/Atoms/Icons/External.js +4 -4
  13. package/src/components/Atoms/Icons/Filter.js +50 -0
  14. package/src/components/Atoms/Icons/IconsExample.jsx +9 -5
  15. package/src/components/Atoms/Icons/Undo.js +44 -0
  16. package/src/components/Atoms/Icons/index.js +2 -0
  17. package/src/components/Atoms/Link/Link.test.js +1 -1
  18. package/src/components/Atoms/Link/LinkExample.jsx +4 -2
  19. package/src/components/Atoms/Text/TextExample.jsx +338 -130
  20. package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +2 -2
  21. package/src/components/Molecules/ExpandedButton/ExpandedButton.style.js +1 -0
  22. package/src/components/Molecules/ExpandedButton/__snapshots__/ExpandedButton.test.js.snap +1 -0
  23. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +2 -2
  24. package/src/components/Molecules/QuoteSlice/__snapshots__/QuoteSlice.test.js.snap +1 -1
  25. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +2 -2
  26. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +1 -3
  27. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +1 -1
  28. package/src/components/Organisms/EmailBanner/__snapshots__/EmailBanner.test.js.snap +12 -12
  29. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +3 -3
  30. package/src/components/Organisms/FilterCard/FilterCard.js +286 -0
  31. package/src/components/Organisms/FilterCard/FilterCard.style.js +425 -0
  32. package/src/components/Organisms/FilterCard/FilterCard.test.js +60 -0
  33. package/src/components/Organisms/FilterCard/FilterCardExample.jsx +48 -0
  34. package/src/components/Organisms/FilterCard/FilterCardNodes.js +155 -0
  35. package/src/components/Organisms/FilterCard/__snapshots__/FilterCard.test.js.snap +1006 -0
  36. package/src/components/Organisms/FilterCard/_utils/_utils.js +57 -0
  37. package/src/components/Organisms/FilterCard/assets/Rectangle.svg +3 -0
  38. package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +4 -4
  39. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +1 -1
  40. package/src/data/TestFilterCardNodeData.js +930 -0
  41. package/src/data/data.js +64 -1
  42. package/src/data/test-icons/Children--black.svg +5 -0
  43. package/src/data/test-icons/Children--white.svg +5 -0
  44. package/src/demos/index.jsx +31 -9
  45. package/src/index.js +1 -0
  46. package/src/theme/crTheme/buttonColors.js +3 -4
@@ -0,0 +1,1006 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders standard FilterCard correctly 1`] = `
4
+ .c2 {
5
+ font-family: 'Anton',Impact,sans-serif;
6
+ font-weight: 400;
7
+ text-transform: uppercase;
8
+ letter-spacing: 0;
9
+ font-size: 2rem;
10
+ line-height: 2rem;
11
+ }
12
+
13
+ .c2 span {
14
+ font-size: inherit;
15
+ line-height: inherit;
16
+ }
17
+
18
+ .c5 {
19
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
20
+ font-weight: 400;
21
+ text-transform: inherit;
22
+ letter-spacing: 0;
23
+ font-size: 1rem;
24
+ line-height: 1.25rem;
25
+ }
26
+
27
+ .c5 span {
28
+ font-size: inherit;
29
+ line-height: inherit;
30
+ }
31
+
32
+ .c0 {
33
+ width: 100%;
34
+ height: auto;
35
+ display: flex;
36
+ position: relative;
37
+ flex-direction: column;
38
+ background: #F4F3F5;
39
+ justify-content: center;
40
+ padding: 2rem 1rem 2rem;
41
+ }
42
+
43
+ .c1 {
44
+ background: #FFFFFF;
45
+ border-radius: 1rem;
46
+ padding: 2rem;
47
+ position: relative;
48
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
49
+ }
50
+
51
+ .c1:after {
52
+ --size: 3rem;
53
+ position: absolute;
54
+ content: "";
55
+ width: var(--size);
56
+ height: var(--size);
57
+ bottom: calc((var(--size) * -0.5));
58
+ left: calc(50% - (var(--size) / 2));
59
+ background: center/contain no-repeat url("mock.asset");
60
+ filter: drop-shadow(0px 6px 3px rgba(0,0,0,0.05));
61
+ }
62
+
63
+ .c4 {
64
+ margin-bottom: 40px;
65
+ }
66
+
67
+ @media (min-width: 740px) {
68
+ .c2 {
69
+ font-size: 2.5rem;
70
+ line-height: 2.5rem;
71
+ }
72
+ }
73
+
74
+ @media (min-width: 1024px) {
75
+ .c2 {
76
+ font-size: 3rem;
77
+ line-height: 3rem;
78
+ }
79
+ }
80
+
81
+ @media (min-width: 740px) {
82
+ .c5 {
83
+ font-size: 1rem;
84
+ line-height: 1.25rem;
85
+ }
86
+ }
87
+
88
+ @media (min-width: 1024px) {
89
+ .c5 {
90
+ font-size: 1.125rem;
91
+ line-height: 1.375rem;
92
+ }
93
+ }
94
+
95
+ @media (min-width: 1024px) {
96
+ .c3 {
97
+ margin-bottom: 2rem;
98
+ }
99
+ }
100
+
101
+ @media (min-width: 740px) {
102
+ .c0 {
103
+ padding-inline: 2rem;
104
+ }
105
+ }
106
+
107
+ @media (min-width: 740px) {
108
+ .c1:after {
109
+ left: 3rem;
110
+ }
111
+ }
112
+
113
+ @media (min-width: 1024px) {
114
+ .c1 {
115
+ padding: 4rem;
116
+ }
117
+
118
+ .c1:after {
119
+ left: 4rem;
120
+ }
121
+ }
122
+
123
+ <div
124
+ className="c0"
125
+ data-testid="FilterCard"
126
+ id="filtercard--standard"
127
+ >
128
+ <div
129
+ className=""
130
+ >
131
+ <div
132
+ className="c1"
133
+ >
134
+ <h1
135
+ className="c2 c3"
136
+ >
137
+ Your fundraising resources: STANDARD
138
+ </h1>
139
+ <div
140
+ className="c4"
141
+ >
142
+ <span
143
+ className="c5"
144
+ >
145
+ From fundraising packs to bunting, certificates, cake labels and more, find everything you need to take yourself funny for money this Red Nose Day. Select a resource type to filters the results.
146
+ </span>
147
+ </div>
148
+ <span
149
+ style={
150
+ {
151
+ "display": "block",
152
+ "textAlign": "center",
153
+ }
154
+ }
155
+ >
156
+ <span
157
+ style={
158
+ {
159
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
160
+ "animationFillMode": "both",
161
+ "backgroundColor": "black",
162
+ "borderRadius": "100%",
163
+ "display": "inline-block",
164
+ "height": "15px",
165
+ "margin": "2px",
166
+ "width": "15px",
167
+ }
168
+ }
169
+ />
170
+ <span
171
+ style={
172
+ {
173
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
174
+ "animationFillMode": "both",
175
+ "backgroundColor": "black",
176
+ "borderRadius": "100%",
177
+ "display": "inline-block",
178
+ "height": "15px",
179
+ "margin": "2px",
180
+ "width": "15px",
181
+ }
182
+ }
183
+ />
184
+ <span
185
+ style={
186
+ {
187
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.36s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
188
+ "animationFillMode": "both",
189
+ "backgroundColor": "black",
190
+ "borderRadius": "100%",
191
+ "display": "inline-block",
192
+ "height": "15px",
193
+ "margin": "2px",
194
+ "width": "15px",
195
+ }
196
+ }
197
+ />
198
+ </span>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ `;
203
+
204
+ exports[`renders standard FilterCard w/expanded content + loader 1`] = `
205
+ .c2 {
206
+ font-family: 'Anton',Impact,sans-serif;
207
+ font-weight: 400;
208
+ text-transform: uppercase;
209
+ letter-spacing: 0;
210
+ font-size: 2rem;
211
+ line-height: 2rem;
212
+ }
213
+
214
+ .c2 span {
215
+ font-size: inherit;
216
+ line-height: inherit;
217
+ }
218
+
219
+ .c5 {
220
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
221
+ font-weight: 400;
222
+ text-transform: inherit;
223
+ letter-spacing: 0;
224
+ font-size: 1rem;
225
+ line-height: 1.25rem;
226
+ }
227
+
228
+ .c5 span {
229
+ font-size: inherit;
230
+ line-height: inherit;
231
+ }
232
+
233
+ .c0 {
234
+ width: 100%;
235
+ height: auto;
236
+ display: flex;
237
+ position: relative;
238
+ flex-direction: column;
239
+ background: #F4F3F5;
240
+ justify-content: center;
241
+ padding: 2rem 1rem 2rem;
242
+ }
243
+
244
+ .c1 {
245
+ background: #FFFFFF;
246
+ border-radius: 1rem;
247
+ padding: 2rem;
248
+ position: relative;
249
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
250
+ }
251
+
252
+ .c1:after {
253
+ --size: 3rem;
254
+ position: absolute;
255
+ content: "";
256
+ width: var(--size);
257
+ height: var(--size);
258
+ bottom: calc((var(--size) * -0.5));
259
+ left: calc(50% - (var(--size) / 2));
260
+ background: center/contain no-repeat url("mock.asset");
261
+ filter: drop-shadow(0px 6px 3px rgba(0,0,0,0.05));
262
+ }
263
+
264
+ .c4 {
265
+ margin-bottom: 40px;
266
+ }
267
+
268
+ @media (min-width: 740px) {
269
+ .c2 {
270
+ font-size: 2.5rem;
271
+ line-height: 2.5rem;
272
+ }
273
+ }
274
+
275
+ @media (min-width: 1024px) {
276
+ .c2 {
277
+ font-size: 3rem;
278
+ line-height: 3rem;
279
+ }
280
+ }
281
+
282
+ @media (min-width: 740px) {
283
+ .c5 {
284
+ font-size: 1rem;
285
+ line-height: 1.25rem;
286
+ }
287
+ }
288
+
289
+ @media (min-width: 1024px) {
290
+ .c5 {
291
+ font-size: 1.125rem;
292
+ line-height: 1.375rem;
293
+ }
294
+ }
295
+
296
+ @media (min-width: 1024px) {
297
+ .c3 {
298
+ margin-bottom: 2rem;
299
+ }
300
+ }
301
+
302
+ @media (min-width: 740px) {
303
+ .c0 {
304
+ padding-inline: 2rem;
305
+ }
306
+ }
307
+
308
+ @media (min-width: 740px) {
309
+ .c1:after {
310
+ left: 3rem;
311
+ }
312
+ }
313
+
314
+ @media (min-width: 1024px) {
315
+ .c1 {
316
+ padding: 4rem;
317
+ }
318
+
319
+ .c1:after {
320
+ left: 4rem;
321
+ }
322
+ }
323
+
324
+ <div
325
+ className="c0"
326
+ data-testid="FilterCard"
327
+ id="filtercard--expanded-loader"
328
+ >
329
+ <div
330
+ className=""
331
+ >
332
+ <div
333
+ className="c1"
334
+ >
335
+ <h1
336
+ className="c2 c3"
337
+ >
338
+ Your fundraising resources: EXPANDED + LOADER
339
+ </h1>
340
+ <div
341
+ className="c4"
342
+ >
343
+ <span
344
+ className="c5"
345
+ >
346
+ From fundraising packs to bunting, certificates, cake labels and more, find everything you need to take yourself funny for money this Red Nose Day. Select a resource type to filters the results.
347
+ </span>
348
+ </div>
349
+ <span
350
+ style={
351
+ {
352
+ "display": "block",
353
+ "textAlign": "center",
354
+ }
355
+ }
356
+ >
357
+ <span
358
+ style={
359
+ {
360
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
361
+ "animationFillMode": "both",
362
+ "backgroundColor": "black",
363
+ "borderRadius": "100%",
364
+ "display": "inline-block",
365
+ "height": "15px",
366
+ "margin": "2px",
367
+ "width": "15px",
368
+ }
369
+ }
370
+ />
371
+ <span
372
+ style={
373
+ {
374
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
375
+ "animationFillMode": "both",
376
+ "backgroundColor": "black",
377
+ "borderRadius": "100%",
378
+ "display": "inline-block",
379
+ "height": "15px",
380
+ "margin": "2px",
381
+ "width": "15px",
382
+ }
383
+ }
384
+ />
385
+ <span
386
+ style={
387
+ {
388
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.36s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
389
+ "animationFillMode": "both",
390
+ "backgroundColor": "black",
391
+ "borderRadius": "100%",
392
+ "display": "inline-block",
393
+ "height": "15px",
394
+ "margin": "2px",
395
+ "width": "15px",
396
+ }
397
+ }
398
+ />
399
+ </span>
400
+ </div>
401
+ </div>
402
+ </div>
403
+ `;
404
+
405
+ exports[`renders standard FilterCard w/expanded content 1`] = `
406
+ .c2 {
407
+ font-family: 'Anton',Impact,sans-serif;
408
+ font-weight: 400;
409
+ text-transform: uppercase;
410
+ letter-spacing: 0;
411
+ font-size: 2rem;
412
+ line-height: 2rem;
413
+ }
414
+
415
+ .c2 span {
416
+ font-size: inherit;
417
+ line-height: inherit;
418
+ }
419
+
420
+ .c5 {
421
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
422
+ font-weight: 400;
423
+ text-transform: inherit;
424
+ letter-spacing: 0;
425
+ font-size: 1rem;
426
+ line-height: 1.25rem;
427
+ }
428
+
429
+ .c5 span {
430
+ font-size: inherit;
431
+ line-height: inherit;
432
+ }
433
+
434
+ .c0 {
435
+ width: 100%;
436
+ height: auto;
437
+ display: flex;
438
+ position: relative;
439
+ flex-direction: column;
440
+ background: #F4F3F5;
441
+ justify-content: center;
442
+ padding: 2rem 1rem 2rem;
443
+ }
444
+
445
+ .c1 {
446
+ background: #FFFFFF;
447
+ border-radius: 1rem;
448
+ padding: 2rem;
449
+ position: relative;
450
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
451
+ }
452
+
453
+ .c1:after {
454
+ --size: 3rem;
455
+ position: absolute;
456
+ content: "";
457
+ width: var(--size);
458
+ height: var(--size);
459
+ bottom: calc((var(--size) * -0.5));
460
+ left: calc(50% - (var(--size) / 2));
461
+ background: center/contain no-repeat url("mock.asset");
462
+ filter: drop-shadow(0px 6px 3px rgba(0,0,0,0.05));
463
+ }
464
+
465
+ .c4 {
466
+ margin-bottom: 40px;
467
+ }
468
+
469
+ @media (min-width: 740px) {
470
+ .c2 {
471
+ font-size: 2.5rem;
472
+ line-height: 2.5rem;
473
+ }
474
+ }
475
+
476
+ @media (min-width: 1024px) {
477
+ .c2 {
478
+ font-size: 3rem;
479
+ line-height: 3rem;
480
+ }
481
+ }
482
+
483
+ @media (min-width: 740px) {
484
+ .c5 {
485
+ font-size: 1rem;
486
+ line-height: 1.25rem;
487
+ }
488
+ }
489
+
490
+ @media (min-width: 1024px) {
491
+ .c5 {
492
+ font-size: 1.125rem;
493
+ line-height: 1.375rem;
494
+ }
495
+ }
496
+
497
+ @media (min-width: 1024px) {
498
+ .c3 {
499
+ margin-bottom: 2rem;
500
+ }
501
+ }
502
+
503
+ @media (min-width: 740px) {
504
+ .c0 {
505
+ padding-inline: 2rem;
506
+ }
507
+ }
508
+
509
+ @media (min-width: 740px) {
510
+ .c1:after {
511
+ left: 3rem;
512
+ }
513
+ }
514
+
515
+ @media (min-width: 1024px) {
516
+ .c1 {
517
+ padding: 4rem;
518
+ }
519
+
520
+ .c1:after {
521
+ left: 4rem;
522
+ }
523
+ }
524
+
525
+ <div
526
+ className="c0"
527
+ data-testid="FilterCard"
528
+ id="filtercard--expanded"
529
+ >
530
+ <div
531
+ className=""
532
+ >
533
+ <div
534
+ className="c1"
535
+ >
536
+ <h1
537
+ className="c2 c3"
538
+ >
539
+ Your fundraising resources: EXPANDED
540
+ </h1>
541
+ <div
542
+ className="c4"
543
+ >
544
+ <span
545
+ className="c5"
546
+ >
547
+ From fundraising packs to bunting, certificates, cake labels and more, find everything you need to take yourself funny for money this Red Nose Day. Select a resource type to filters the results.
548
+ </span>
549
+ </div>
550
+ <span
551
+ style={
552
+ {
553
+ "display": "block",
554
+ "textAlign": "center",
555
+ }
556
+ }
557
+ >
558
+ <span
559
+ style={
560
+ {
561
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
562
+ "animationFillMode": "both",
563
+ "backgroundColor": "black",
564
+ "borderRadius": "100%",
565
+ "display": "inline-block",
566
+ "height": "15px",
567
+ "margin": "2px",
568
+ "width": "15px",
569
+ }
570
+ }
571
+ />
572
+ <span
573
+ style={
574
+ {
575
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
576
+ "animationFillMode": "both",
577
+ "backgroundColor": "black",
578
+ "borderRadius": "100%",
579
+ "display": "inline-block",
580
+ "height": "15px",
581
+ "margin": "2px",
582
+ "width": "15px",
583
+ }
584
+ }
585
+ />
586
+ <span
587
+ style={
588
+ {
589
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.36s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
590
+ "animationFillMode": "both",
591
+ "backgroundColor": "black",
592
+ "borderRadius": "100%",
593
+ "display": "inline-block",
594
+ "height": "15px",
595
+ "margin": "2px",
596
+ "width": "15px",
597
+ }
598
+ }
599
+ />
600
+ </span>
601
+ </div>
602
+ </div>
603
+ </div>
604
+ `;
605
+
606
+ exports[`renders standard FilterCard w/expanded content, loader + hero 1`] = `
607
+ .c2 {
608
+ font-family: 'Anton',Impact,sans-serif;
609
+ font-weight: 400;
610
+ text-transform: uppercase;
611
+ letter-spacing: 0;
612
+ font-size: 2rem;
613
+ line-height: 2rem;
614
+ }
615
+
616
+ .c2 span {
617
+ font-size: inherit;
618
+ line-height: inherit;
619
+ }
620
+
621
+ .c5 {
622
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
623
+ font-weight: 400;
624
+ text-transform: inherit;
625
+ letter-spacing: 0;
626
+ font-size: 1rem;
627
+ line-height: 1.25rem;
628
+ }
629
+
630
+ .c5 span {
631
+ font-size: inherit;
632
+ line-height: inherit;
633
+ }
634
+
635
+ .c0 {
636
+ width: 100%;
637
+ height: auto;
638
+ display: flex;
639
+ position: relative;
640
+ flex-direction: column;
641
+ background: #F4F3F5;
642
+ justify-content: center;
643
+ padding: 2rem 1rem 2rem;
644
+ }
645
+
646
+ .c1 {
647
+ background: #FFFFFF;
648
+ border-radius: 1rem;
649
+ padding: 2rem;
650
+ position: relative;
651
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
652
+ }
653
+
654
+ .c1:after {
655
+ --size: 3rem;
656
+ position: absolute;
657
+ content: "";
658
+ width: var(--size);
659
+ height: var(--size);
660
+ bottom: calc((var(--size) * -0.5));
661
+ left: calc(50% - (var(--size) / 2));
662
+ background: center/contain no-repeat url("mock.asset");
663
+ filter: drop-shadow(0px 6px 3px rgba(0,0,0,0.05));
664
+ }
665
+
666
+ .c4 {
667
+ margin-bottom: 40px;
668
+ }
669
+
670
+ @media (min-width: 740px) {
671
+ .c2 {
672
+ font-size: 2.5rem;
673
+ line-height: 2.5rem;
674
+ }
675
+ }
676
+
677
+ @media (min-width: 1024px) {
678
+ .c2 {
679
+ font-size: 3rem;
680
+ line-height: 3rem;
681
+ }
682
+ }
683
+
684
+ @media (min-width: 740px) {
685
+ .c5 {
686
+ font-size: 1rem;
687
+ line-height: 1.25rem;
688
+ }
689
+ }
690
+
691
+ @media (min-width: 1024px) {
692
+ .c5 {
693
+ font-size: 1.125rem;
694
+ line-height: 1.375rem;
695
+ }
696
+ }
697
+
698
+ @media (min-width: 1024px) {
699
+ .c3 {
700
+ margin-bottom: 2rem;
701
+ }
702
+ }
703
+
704
+ @media (min-width: 740px) {
705
+ .c0 {
706
+ padding-inline: 2rem;
707
+ }
708
+ }
709
+
710
+ @media (min-width: 740px) {
711
+ .c1:after {
712
+ left: 3rem;
713
+ }
714
+ }
715
+
716
+ @media (min-width: 1024px) {
717
+ .c1 {
718
+ padding: 4rem;
719
+ }
720
+
721
+ .c1:after {
722
+ left: 4rem;
723
+ }
724
+ }
725
+
726
+ <div
727
+ className="c0"
728
+ data-testid="FilterCard"
729
+ id="filtercard--expanded-loader-hero"
730
+ >
731
+ <div
732
+ className=""
733
+ >
734
+ <div
735
+ className="c1"
736
+ >
737
+ <h1
738
+ className="c2 c3"
739
+ >
740
+ Your fundraising resources: EXPANDED + LOADER + HERO
741
+ </h1>
742
+ <div
743
+ className="c4"
744
+ >
745
+ <span
746
+ className="c5"
747
+ >
748
+ From fundraising packs to bunting, certificates, cake labels and more, find everything you need to take yourself funny for money this Red Nose Day. Select a resource type to filters the results.
749
+ </span>
750
+ </div>
751
+ <span
752
+ style={
753
+ {
754
+ "display": "block",
755
+ "textAlign": "center",
756
+ }
757
+ }
758
+ >
759
+ <span
760
+ style={
761
+ {
762
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
763
+ "animationFillMode": "both",
764
+ "backgroundColor": "black",
765
+ "borderRadius": "100%",
766
+ "display": "inline-block",
767
+ "height": "15px",
768
+ "margin": "2px",
769
+ "width": "15px",
770
+ }
771
+ }
772
+ />
773
+ <span
774
+ style={
775
+ {
776
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
777
+ "animationFillMode": "both",
778
+ "backgroundColor": "black",
779
+ "borderRadius": "100%",
780
+ "display": "inline-block",
781
+ "height": "15px",
782
+ "margin": "2px",
783
+ "width": "15px",
784
+ }
785
+ }
786
+ />
787
+ <span
788
+ style={
789
+ {
790
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.36s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
791
+ "animationFillMode": "both",
792
+ "backgroundColor": "black",
793
+ "borderRadius": "100%",
794
+ "display": "inline-block",
795
+ "height": "15px",
796
+ "margin": "2px",
797
+ "width": "15px",
798
+ }
799
+ }
800
+ />
801
+ </span>
802
+ </div>
803
+ </div>
804
+ </div>
805
+ `;
806
+
807
+ exports[`renders standard FilterCard w/hero correctly 1`] = `
808
+ .c2 {
809
+ font-family: 'Anton',Impact,sans-serif;
810
+ font-weight: 400;
811
+ text-transform: uppercase;
812
+ letter-spacing: 0;
813
+ font-size: 2rem;
814
+ line-height: 2rem;
815
+ }
816
+
817
+ .c2 span {
818
+ font-size: inherit;
819
+ line-height: inherit;
820
+ }
821
+
822
+ .c5 {
823
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
824
+ font-weight: 400;
825
+ text-transform: inherit;
826
+ letter-spacing: 0;
827
+ font-size: 1rem;
828
+ line-height: 1.25rem;
829
+ }
830
+
831
+ .c5 span {
832
+ font-size: inherit;
833
+ line-height: inherit;
834
+ }
835
+
836
+ .c0 {
837
+ width: 100%;
838
+ height: auto;
839
+ display: flex;
840
+ position: relative;
841
+ flex-direction: column;
842
+ background: #F4F3F5;
843
+ justify-content: center;
844
+ padding: 2rem 1rem 2rem;
845
+ }
846
+
847
+ .c1 {
848
+ background: #FFFFFF;
849
+ border-radius: 1rem;
850
+ padding: 2rem;
851
+ position: relative;
852
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
853
+ }
854
+
855
+ .c1:after {
856
+ --size: 3rem;
857
+ position: absolute;
858
+ content: "";
859
+ width: var(--size);
860
+ height: var(--size);
861
+ bottom: calc((var(--size) * -0.5));
862
+ left: calc(50% - (var(--size) / 2));
863
+ background: center/contain no-repeat url("mock.asset");
864
+ filter: drop-shadow(0px 6px 3px rgba(0,0,0,0.05));
865
+ }
866
+
867
+ .c4 {
868
+ margin-bottom: 40px;
869
+ }
870
+
871
+ @media (min-width: 740px) {
872
+ .c2 {
873
+ font-size: 2.5rem;
874
+ line-height: 2.5rem;
875
+ }
876
+ }
877
+
878
+ @media (min-width: 1024px) {
879
+ .c2 {
880
+ font-size: 3rem;
881
+ line-height: 3rem;
882
+ }
883
+ }
884
+
885
+ @media (min-width: 740px) {
886
+ .c5 {
887
+ font-size: 1rem;
888
+ line-height: 1.25rem;
889
+ }
890
+ }
891
+
892
+ @media (min-width: 1024px) {
893
+ .c5 {
894
+ font-size: 1.125rem;
895
+ line-height: 1.375rem;
896
+ }
897
+ }
898
+
899
+ @media (min-width: 1024px) {
900
+ .c3 {
901
+ margin-bottom: 2rem;
902
+ }
903
+ }
904
+
905
+ @media (min-width: 740px) {
906
+ .c0 {
907
+ padding-inline: 2rem;
908
+ }
909
+ }
910
+
911
+ @media (min-width: 740px) {
912
+ .c1:after {
913
+ left: 3rem;
914
+ }
915
+ }
916
+
917
+ @media (min-width: 1024px) {
918
+ .c1 {
919
+ padding: 4rem;
920
+ }
921
+
922
+ .c1:after {
923
+ left: 4rem;
924
+ }
925
+ }
926
+
927
+ <div
928
+ className="c0"
929
+ data-testid="FilterCard"
930
+ id="filtercard--hero"
931
+ >
932
+ <div
933
+ className=""
934
+ >
935
+ <div
936
+ className="c1"
937
+ >
938
+ <h1
939
+ className="c2 c3"
940
+ >
941
+ Your fundraising resources: HERO
942
+ </h1>
943
+ <div
944
+ className="c4"
945
+ >
946
+ <span
947
+ className="c5"
948
+ >
949
+ From fundraising packs to bunting, certificates, cake labels and more, find everything you need to take yourself funny for money this Red Nose Day. Select a resource type to filters the results.
950
+ </span>
951
+ </div>
952
+ <span
953
+ style={
954
+ {
955
+ "display": "block",
956
+ "textAlign": "center",
957
+ }
958
+ }
959
+ >
960
+ <span
961
+ style={
962
+ {
963
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.12s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
964
+ "animationFillMode": "both",
965
+ "backgroundColor": "black",
966
+ "borderRadius": "100%",
967
+ "display": "inline-block",
968
+ "height": "15px",
969
+ "margin": "2px",
970
+ "width": "15px",
971
+ }
972
+ }
973
+ />
974
+ <span
975
+ style={
976
+ {
977
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.24s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
978
+ "animationFillMode": "both",
979
+ "backgroundColor": "black",
980
+ "borderRadius": "100%",
981
+ "display": "inline-block",
982
+ "height": "15px",
983
+ "margin": "2px",
984
+ "width": "15px",
985
+ }
986
+ }
987
+ />
988
+ <span
989
+ style={
990
+ {
991
+ "animation": "react-spinners-PulseLoader-pulse 0.75s 0.36s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)",
992
+ "animationFillMode": "both",
993
+ "backgroundColor": "black",
994
+ "borderRadius": "100%",
995
+ "display": "inline-block",
996
+ "height": "15px",
997
+ "margin": "2px",
998
+ "width": "15px",
999
+ }
1000
+ }
1001
+ />
1002
+ </span>
1003
+ </div>
1004
+ </div>
1005
+ </div>
1006
+ `;