@comicrelief/component-library 8.86.2 → 8.86.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.
- package/dist/index.cjs.js +6 -5
- package/dist/index.es.js +6 -5
- package/package.json +1 -1
- package/src/components/Organisms/FilterCard/FilterCard.style.js +4 -0
- package/src/components/Organisms/FilterCard/__snapshots__/FilterCard.test.js.snap +30 -0
- package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js +2 -2
- package/src/components/Organisms/FooterNew/FooterNew.style.js +0 -3
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +48 -0
package/dist/index.cjs.js
CHANGED
|
@@ -4806,8 +4806,8 @@ attempted value: ${c}
|
|
|
4806
4806
|
display: block;
|
|
4807
4807
|
}
|
|
4808
4808
|
|
|
4809
|
-
${({animateOnHover:e})=>e&&Q1(!0,1.03,1)}
|
|
4810
|
-
`,M2=({animateOnHover:e=!1,noMargin:t=!1})=>f.jsx(vW,{animateOnHover:e,$noMargin:t,children:f.jsx("a",{href:"https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF",className:"fr-digital-badge",style:{height:"auto",width:"150px",textDecoration:"none"},target:"_blank",children:f.jsx("img",{src:"https://www.fundraisingregulator.org.uk/fr-badge/80983ed7-ea80-40db-8e52-4a3351d9e77d/en/white",width:"100%",alt:"Fundraising Regulator badge with validation link",loading:"lazy"})})});M2.propTypes={animateOnHover:l.bool,noMargin:l.bool};const yW=g.footer.attrs(()=>({role:"banner"}))`
|
|
4809
|
+
${({$animateOnHover:e})=>e&&Q1(!0,1.03,1)}
|
|
4810
|
+
`,M2=({animateOnHover:e=!1,noMargin:t=!1})=>f.jsx(vW,{$animateOnHover:e,$noMargin:t,children:f.jsx("a",{href:"https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF",className:"fr-digital-badge",style:{height:"auto",width:"150px",textDecoration:"none"},target:"_blank",children:f.jsx("img",{src:"https://www.fundraisingregulator.org.uk/fr-badge/80983ed7-ea80-40db-8e52-4a3351d9e77d/en/white",width:"100%",alt:"Fundraising Regulator badge with validation link",loading:"lazy"})})});M2.propTypes={animateOnHover:l.bool,noMargin:l.bool};const yW=g.footer.attrs(()=>({role:"banner"}))`
|
|
4811
4811
|
text-align: center;
|
|
4812
4812
|
line-height: initial;
|
|
4813
4813
|
background: #222;
|
|
@@ -5191,9 +5191,6 @@ gap: ${T("md")};
|
|
|
5191
5191
|
justify-content: ${({$desktopOnly:e,$showCRLogoOnly:t,$showFundraiserAtBottom:r})=>r?"flex-start":e&&t||e?"flex-end":"center"};
|
|
5192
5192
|
}
|
|
5193
5193
|
|
|
5194
|
-
|
|
5195
|
-
}
|
|
5196
|
-
|
|
5197
5194
|
@media ${({theme:e})=>e.breakpoints2026("L")} {
|
|
5198
5195
|
display: ${({$desktopOnly:e,$mobileOnly:t,$showCRLogoOnly:r,$showPairedLogos:n,$showFundraiserAtBottom:o})=>t&&o||t||e&&r?"none":e&&n?"flex":e?"none":"flex"};
|
|
5199
5196
|
}
|
|
@@ -7353,6 +7350,10 @@ gap: ${T("md")};
|
|
|
7353
7350
|
@media ${({theme:e})=>e.allBreakpoints("M")} {
|
|
7354
7351
|
padding-inline: 2rem;
|
|
7355
7352
|
}
|
|
7353
|
+
|
|
7354
|
+
@media ${({theme:e})=>e.allBreakpoints("L")} {
|
|
7355
|
+
padding-inline: 4rem;
|
|
7356
|
+
}
|
|
7356
7357
|
`,GJ=g.div`
|
|
7357
7358
|
background: ${({theme:e})=>e.color("white")};
|
|
7358
7359
|
border-radius: 1rem;
|
package/dist/index.es.js
CHANGED
|
@@ -26604,8 +26604,8 @@ const yU = b.div`
|
|
|
26604
26604
|
display: block;
|
|
26605
26605
|
}
|
|
26606
26606
|
|
|
26607
|
-
${({ animateOnHover: e }) => e && g4(!0, 1.03, 1)}
|
|
26608
|
-
`, R2 = ({ animateOnHover: e = !1, noMargin: t = !1 }) => /* @__PURE__ */ g(yU, { animateOnHover: e, $noMargin: t, children: /* @__PURE__ */ g("a", { href: "https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF", className: "fr-digital-badge", style: { height: "auto", width: "150px", textDecoration: "none" }, target: "_blank", children: /* @__PURE__ */ g("img", { src: "https://www.fundraisingregulator.org.uk/fr-badge/80983ed7-ea80-40db-8e52-4a3351d9e77d/en/white", width: "100%", alt: "Fundraising Regulator badge with validation link", loading: "lazy" }) }) });
|
|
26607
|
+
${({ $animateOnHover: e }) => e && g4(!0, 1.03, 1)}
|
|
26608
|
+
`, R2 = ({ animateOnHover: e = !1, noMargin: t = !1 }) => /* @__PURE__ */ g(yU, { $animateOnHover: e, $noMargin: t, children: /* @__PURE__ */ g("a", { href: "https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF", className: "fr-digital-badge", style: { height: "auto", width: "150px", textDecoration: "none" }, target: "_blank", children: /* @__PURE__ */ g("img", { src: "https://www.fundraisingregulator.org.uk/fr-badge/80983ed7-ea80-40db-8e52-4a3351d9e77d/en/white", width: "100%", alt: "Fundraising Regulator badge with validation link", loading: "lazy" }) }) });
|
|
26609
26609
|
R2.propTypes = {
|
|
26610
26610
|
/** Animate the logo on hover with spring scale animation */
|
|
26611
26611
|
animateOnHover: l.bool,
|
|
@@ -28284,9 +28284,6 @@ gap: ${O("md")};
|
|
|
28284
28284
|
justify-content: ${({ $desktopOnly: e, $showCRLogoOnly: t, $showFundraiserAtBottom: r }) => r ? "flex-start" : e && t || e ? "flex-end" : "center"};
|
|
28285
28285
|
}
|
|
28286
28286
|
|
|
28287
|
-
|
|
28288
|
-
}
|
|
28289
|
-
|
|
28290
28287
|
@media ${({ theme: e }) => e.breakpoints2026("L")} {
|
|
28291
28288
|
display: ${({
|
|
28292
28289
|
$desktopOnly: e,
|
|
@@ -33243,6 +33240,10 @@ const ZJ = (e) => {
|
|
|
33243
33240
|
@media ${({ theme: e }) => e.allBreakpoints("M")} {
|
|
33244
33241
|
padding-inline: 2rem;
|
|
33245
33242
|
}
|
|
33243
|
+
|
|
33244
|
+
@media ${({ theme: e }) => e.allBreakpoints("L")} {
|
|
33245
|
+
padding-inline: 4rem;
|
|
33246
|
+
}
|
|
33246
33247
|
`, rQ = b.div`
|
|
33247
33248
|
background: ${({ theme: e }) => e.color("white")};
|
|
33248
33249
|
border-radius: 1rem;
|
package/package.json
CHANGED
|
@@ -104,6 +104,12 @@ exports[`renders standard FilterCard correctly 1`] = `
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
@media (min-width: 1024px) {
|
|
108
|
+
.c0 {
|
|
109
|
+
padding-inline: 4rem;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
107
113
|
@media (min-width: 740px) {
|
|
108
114
|
.c1:after {
|
|
109
115
|
left: 3rem;
|
|
@@ -305,6 +311,12 @@ exports[`renders standard FilterCard w/expanded content + loader 1`] = `
|
|
|
305
311
|
}
|
|
306
312
|
}
|
|
307
313
|
|
|
314
|
+
@media (min-width: 1024px) {
|
|
315
|
+
.c0 {
|
|
316
|
+
padding-inline: 4rem;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
308
320
|
@media (min-width: 740px) {
|
|
309
321
|
.c1:after {
|
|
310
322
|
left: 3rem;
|
|
@@ -506,6 +518,12 @@ exports[`renders standard FilterCard w/expanded content 1`] = `
|
|
|
506
518
|
}
|
|
507
519
|
}
|
|
508
520
|
|
|
521
|
+
@media (min-width: 1024px) {
|
|
522
|
+
.c0 {
|
|
523
|
+
padding-inline: 4rem;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
509
527
|
@media (min-width: 740px) {
|
|
510
528
|
.c1:after {
|
|
511
529
|
left: 3rem;
|
|
@@ -707,6 +725,12 @@ exports[`renders standard FilterCard w/expanded content, loader + hero 1`] = `
|
|
|
707
725
|
}
|
|
708
726
|
}
|
|
709
727
|
|
|
728
|
+
@media (min-width: 1024px) {
|
|
729
|
+
.c0 {
|
|
730
|
+
padding-inline: 4rem;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
710
734
|
@media (min-width: 740px) {
|
|
711
735
|
.c1:after {
|
|
712
736
|
left: 3rem;
|
|
@@ -908,6 +932,12 @@ exports[`renders standard FilterCard w/hero correctly 1`] = `
|
|
|
908
932
|
}
|
|
909
933
|
}
|
|
910
934
|
|
|
935
|
+
@media (min-width: 1024px) {
|
|
936
|
+
.c0 {
|
|
937
|
+
padding-inline: 4rem;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
911
941
|
@media (min-width: 740px) {
|
|
912
942
|
.c1:after {
|
|
913
943
|
left: 3rem;
|
package/src/components/Organisms/Footer/FundraisingRegulatorLogo/FundraisingRegulatorLogo.js
CHANGED
|
@@ -14,11 +14,11 @@ const FundraisingRegulatorWrapper = styled.div`
|
|
|
14
14
|
display: block;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
${({ animateOnHover }) => animateOnHover && springScaleAnimation(true, 1.03, 1)}
|
|
17
|
+
${({ $animateOnHover }) => $animateOnHover && springScaleAnimation(true, 1.03, 1)}
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
const FundraisingRegulatorLogo = ({ animateOnHover = false, noMargin = false }) => (
|
|
21
|
-
<FundraisingRegulatorWrapper animateOnHover={animateOnHover} $noMargin={noMargin}>
|
|
21
|
+
<FundraisingRegulatorWrapper $animateOnHover={animateOnHover} $noMargin={noMargin}>
|
|
22
22
|
{/* Code from https://www.fundraisingregulator.org.uk/ */}
|
|
23
23
|
{/* eslint-disable-next-line react/jsx-no-target-blank */}
|
|
24
24
|
<a href="https://www.fundraisingregulator.org.uk/validate?registrant=COMIC+RELIEF" className="fr-digital-badge" style={{ height: 'auto', width: '150px', textDecoration: 'none' }} target="_blank">
|
|
@@ -817,6 +817,12 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
+
@media (min-width: 1024px) {
|
|
821
|
+
.c2 {
|
|
822
|
+
display: none;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
|
|
820
826
|
@media (min-width: 740px) {
|
|
821
827
|
.c32 {
|
|
822
828
|
flex: 0 0 auto;
|
|
@@ -828,6 +834,12 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
828
834
|
}
|
|
829
835
|
}
|
|
830
836
|
|
|
837
|
+
@media (min-width: 1024px) {
|
|
838
|
+
.c32 {
|
|
839
|
+
display: none;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
831
843
|
@media (min-width: 740px) {
|
|
832
844
|
.c34 {
|
|
833
845
|
flex: 0 0 auto;
|
|
@@ -839,6 +851,12 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
839
851
|
}
|
|
840
852
|
}
|
|
841
853
|
|
|
854
|
+
@media (min-width: 1024px) {
|
|
855
|
+
.c34 {
|
|
856
|
+
display: flex;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
842
860
|
@media (min-width: 740px) {
|
|
843
861
|
.c46 {
|
|
844
862
|
flex: 0 0 auto;
|
|
@@ -850,6 +868,12 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
850
868
|
}
|
|
851
869
|
}
|
|
852
870
|
|
|
871
|
+
@media (min-width: 1024px) {
|
|
872
|
+
.c46 {
|
|
873
|
+
display: none;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
|
|
853
877
|
@media (min-width: 1024px) {
|
|
854
878
|
.c44 {
|
|
855
879
|
margin-bottom: 0;
|
|
@@ -2158,6 +2182,12 @@ exports[`renders correctly 1`] = `
|
|
|
2158
2182
|
}
|
|
2159
2183
|
}
|
|
2160
2184
|
|
|
2185
|
+
@media (min-width: 1024px) {
|
|
2186
|
+
.c2 {
|
|
2187
|
+
display: none;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2161
2191
|
@media (min-width: 740px) {
|
|
2162
2192
|
.c32 {
|
|
2163
2193
|
flex: 0 0 auto;
|
|
@@ -2169,6 +2199,12 @@ exports[`renders correctly 1`] = `
|
|
|
2169
2199
|
}
|
|
2170
2200
|
}
|
|
2171
2201
|
|
|
2202
|
+
@media (min-width: 1024px) {
|
|
2203
|
+
.c32 {
|
|
2204
|
+
display: none;
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2172
2208
|
@media (min-width: 740px) {
|
|
2173
2209
|
.c34 {
|
|
2174
2210
|
flex: 0 0 auto;
|
|
@@ -2180,6 +2216,12 @@ exports[`renders correctly 1`] = `
|
|
|
2180
2216
|
}
|
|
2181
2217
|
}
|
|
2182
2218
|
|
|
2219
|
+
@media (min-width: 1024px) {
|
|
2220
|
+
.c34 {
|
|
2221
|
+
display: flex;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2183
2225
|
@media (min-width: 740px) {
|
|
2184
2226
|
.c46 {
|
|
2185
2227
|
flex: 0 0 auto;
|
|
@@ -2191,6 +2233,12 @@ exports[`renders correctly 1`] = `
|
|
|
2191
2233
|
}
|
|
2192
2234
|
}
|
|
2193
2235
|
|
|
2236
|
+
@media (min-width: 1024px) {
|
|
2237
|
+
.c46 {
|
|
2238
|
+
display: none;
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2194
2242
|
@media (min-width: 1024px) {
|
|
2195
2243
|
.c44 {
|
|
2196
2244
|
margin-bottom: 0;
|