@comicrelief/component-library 8.86.2 → 8.86.3
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 +2 -5
- package/dist/index.es.js +2 -5
- package/package.json +1 -1
- 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
|
}
|
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,
|
package/package.json
CHANGED
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;
|