@comicrelief/component-library 8.89.1 → 8.89.2
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 +858 -858
- package/dist/index.es.js +5107 -5111
- package/package.json +1 -1
- package/src/components/Atoms/Icons/ArrowExample.jsx +8 -5
- package/src/components/Atoms/Icons/AtSign.js +4 -4
- package/src/components/Atoms/Icons/GiftAidLogo.js +4 -4
- package/src/components/Atoms/Icons/Internal.js +4 -4
- package/src/components/Atoms/Icons/Post.js +4 -4
- package/src/components/Atoms/Link/Link.test.js +0 -2
- package/src/components/Molecules/Accordion/AccordionExample.jsx +11 -9
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -1
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +0 -2
- package/src/components/Molecules/Banner/Banner.js +2 -2
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +0 -1
- package/src/components/Molecules/Box/Box.js +1 -1
- package/src/components/Molecules/Box/__snapshots__/Box.test.js.snap +0 -1
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +0 -4
- package/src/components/Molecules/LogoLinked/LogoLinked.js +4 -4
- package/src/components/Molecules/LogoLinked/LogoLinked.style.js +2 -2
- package/src/components/Molecules/Lookup/Lookup.js +0 -2
- package/src/components/Molecules/PopUp/PopUpGiftAid/__snapshots__/PopUpGiftAid.test.js.snap +0 -4
- package/src/components/Molecules/SearchResult/SearchResult.js +4 -4
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +0 -8
- package/src/components/Organisms/Donate/Donate.js +1 -1
- package/src/components/Organisms/Donate/Form/Form.js +2 -2
- package/src/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -1
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +0 -7
- package/src/components/Organisms/DonateBanner/Form/Form.js +2 -2
- package/src/components/Organisms/DonateBanner/MoneyBuy/MoneyBuy.js +1 -1
- package/src/components/Organisms/DonateBanner/__snapshots__/DonateBanner.test.js.snap +0 -7
- package/src/components/Organisms/DynamicGallery/_DynamicGalleryColumn.js +1 -1
- package/src/components/Organisms/DynamicGallery/__snapshots__/DynamicGallery.test.js.snap +0 -3
- package/src/components/Organisms/Footer/Footer.js +2 -2
- package/src/components/Organisms/Footer/FooterExample.jsx +3 -3
- package/src/components/Organisms/Footer/Nav/Nav.js +3 -3
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +0 -49
- package/src/components/Organisms/Header/Burger/BurgerMenu.js +1 -1
- package/src/components/Organisms/Header/Header.js +1 -1
- package/src/components/Organisms/Header/HeaderNav/HeaderNav.js +3 -3
- package/src/components/Organisms/Header/Nav/Nav.js +2 -2
- package/src/components/Organisms/Header2025/Burger/BurgerMenu.js +1 -1
- package/src/components/Organisms/Header2025/Header2025.js +2 -2
- package/src/components/Organisms/Header2025/Header2025Example.jsx +2 -2
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +2 -2
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +4 -4
- package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.js +2 -2
- package/src/components/Organisms/MarketingPreferencesDS/_OptInCheckbox.js +1 -1
- package/src/components/Organisms/Membership/Form/Form.js +3 -3
- package/src/components/Organisms/Membership/Membership.test.js +0 -9
- package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
package/package.json
CHANGED
|
@@ -19,12 +19,12 @@ const IconCard = styled.div`
|
|
|
19
19
|
border: 1px solid #e1e2e3;
|
|
20
20
|
border-radius: 6px;
|
|
21
21
|
min-width: 100px;
|
|
22
|
-
background: ${({ dark }) => dark ? '#222' : '#fff'};
|
|
22
|
+
background: ${({ $dark }) => ($dark ? '#222' : '#fff')};
|
|
23
23
|
`;
|
|
24
24
|
|
|
25
25
|
const Label = styled.p`
|
|
26
26
|
font-size: 0.75rem;
|
|
27
|
-
color: ${({ dark }) => dark ? '#fff' : '#333'};
|
|
27
|
+
color: ${({ $dark }) => ($dark ? '#fff' : '#333')};
|
|
28
28
|
margin: 0;
|
|
29
29
|
text-align: center;
|
|
30
30
|
`;
|
|
@@ -52,9 +52,9 @@ export default function ArrowExample() {
|
|
|
52
52
|
<h3>Colours</h3>
|
|
53
53
|
<Grid>
|
|
54
54
|
{colours.map(colour => (
|
|
55
|
-
<IconCard key={colour} dark={colour === 'white'}>
|
|
55
|
+
<IconCard key={colour} $dark={colour === 'white'}>
|
|
56
56
|
<Arrow size={48} colour={colour} direction="right" />
|
|
57
|
-
<Label dark={colour === 'white'}>{colour}</Label>
|
|
57
|
+
<Label $dark={colour === 'white'}>{colour}</Label>
|
|
58
58
|
</IconCard>
|
|
59
59
|
))}
|
|
60
60
|
</Grid>
|
|
@@ -66,7 +66,10 @@ export default function ArrowExample() {
|
|
|
66
66
|
{[16, 24, 32, 48, 64].map(size => (
|
|
67
67
|
<IconCard key={size}>
|
|
68
68
|
<Arrow size={size} colour="black" direction="right" />
|
|
69
|
-
<Label>
|
|
69
|
+
<Label>
|
|
70
|
+
{size}
|
|
71
|
+
px
|
|
72
|
+
</Label>
|
|
70
73
|
</IconCard>
|
|
71
74
|
))}
|
|
72
75
|
</Grid>
|
|
@@ -6,11 +6,11 @@ const PATH_DATA = 'M40.811,9.307C36.607,4.664,30.48,2,24,2C11.458,2,2,11.458,2,2
|
|
|
6
6
|
|
|
7
7
|
const StyledSVG = styled.svg`
|
|
8
8
|
// Mobile-colour if available, else use standard prop
|
|
9
|
-
fill: ${({ mobileColour, colour, theme }) => (mobileColour ? theme.color(mobileColour) : theme.color(colour))};
|
|
9
|
+
fill: ${({ $mobileColour, $colour, theme }) => ($mobileColour ? theme.color($mobileColour) : theme.color($colour))};
|
|
10
10
|
|
|
11
11
|
// Reinstate standard styles for 'desktop', adding a fallback for good measure:
|
|
12
12
|
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
13
|
-
fill: ${({ colour, theme }) => (colour ? theme.color(colour) : theme.color('white'))};
|
|
13
|
+
fill: ${({ $colour, theme }) => ($colour ? theme.color($colour) : theme.color('white'))};
|
|
14
14
|
}
|
|
15
15
|
`;
|
|
16
16
|
|
|
@@ -20,8 +20,8 @@ const AtSign = ({
|
|
|
20
20
|
<StyledSVG
|
|
21
21
|
width={size}
|
|
22
22
|
height={size}
|
|
23
|
-
colour={colour}
|
|
24
|
-
mobileColour={mobileColour}
|
|
23
|
+
$colour={colour}
|
|
24
|
+
$mobileColour={mobileColour}
|
|
25
25
|
viewBox="0 0 48 48"
|
|
26
26
|
{...rest}
|
|
27
27
|
>
|
|
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import styled, { withTheme } from 'styled-components';
|
|
4
4
|
|
|
5
5
|
const StyledSVG = styled.svg`
|
|
6
|
-
fill: ${({ mobileColour, colour, theme }) => (mobileColour ? theme.color(mobileColour) : theme.color(colour))};
|
|
6
|
+
fill: ${({ $mobileColour, $colour, theme }) => ($mobileColour ? theme.color($mobileColour) : theme.color($colour))};
|
|
7
7
|
|
|
8
8
|
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
9
|
-
fill: ${({ colour, theme }) => (colour ? theme.color(colour) : theme.color('white'))};
|
|
9
|
+
fill: ${({ $colour, theme }) => ($colour ? theme.color($colour) : theme.color('white'))};
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
12
|
|
|
@@ -18,8 +18,8 @@ const GiftAidLogo = ({
|
|
|
18
18
|
width={size}
|
|
19
19
|
height={(size * 124) / 350}
|
|
20
20
|
fill={theme.color(colour)}
|
|
21
|
-
colour={colour}
|
|
22
|
-
mobileColour={mobileColour}
|
|
21
|
+
$colour={colour}
|
|
22
|
+
$mobileColour={mobileColour}
|
|
23
23
|
xmlns="http://www.w3.org/2000/svg"
|
|
24
24
|
viewBox="0 0 350 124"
|
|
25
25
|
>
|
|
@@ -4,11 +4,11 @@ import styled, { withTheme } from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
const StyledSVG = styled.svg`
|
|
6
6
|
// Mobile-colour if available, else use standard prop
|
|
7
|
-
fill: ${({ mobileColour, colour, theme }) => (mobileColour ? theme.color(mobileColour) : theme.color(colour))};
|
|
7
|
+
fill: ${({ $mobileColour, $colour, theme }) => ($mobileColour ? theme.color($mobileColour) : theme.color($colour))};
|
|
8
8
|
|
|
9
9
|
// Reinstate standard styles for 'desktop', adding a fallback for good measure:
|
|
10
10
|
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
11
|
-
fill: ${({ colour, theme }) => (colour ? theme.color(colour) : theme.color('white'))};
|
|
11
|
+
fill: ${({ $colour, theme }) => ($colour ? theme.color($colour) : theme.color('white'))};
|
|
12
12
|
}
|
|
13
13
|
`;
|
|
14
14
|
|
|
@@ -20,8 +20,8 @@ const Internal = ({
|
|
|
20
20
|
width={size}
|
|
21
21
|
height={size}
|
|
22
22
|
fill={theme.color(colour)}
|
|
23
|
-
colour={colour}
|
|
24
|
-
mobileColour={mobileColour}
|
|
23
|
+
$colour={colour}
|
|
24
|
+
$mobileColour={mobileColour}
|
|
25
25
|
xmlns="http://www.w3.org/2000/svg"
|
|
26
26
|
viewBox="0 0 15 15"
|
|
27
27
|
>
|
|
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import styled, { withTheme } from 'styled-components';
|
|
4
4
|
|
|
5
5
|
const StyledSVG = styled.svg`
|
|
6
|
-
fill: ${({ mobileColour, colour, theme }) => (mobileColour ? theme.color(mobileColour) : theme.color(colour))};
|
|
6
|
+
fill: ${({ $mobileColour, $colour, theme }) => ($mobileColour ? theme.color($mobileColour) : theme.color($colour))};
|
|
7
7
|
|
|
8
8
|
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
9
|
-
fill: ${({ colour, theme }) => (colour ? theme.color(colour) : theme.color('white'))};
|
|
9
|
+
fill: ${({ $colour, theme }) => ($colour ? theme.color($colour) : theme.color('white'))};
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
12
|
|
|
@@ -18,8 +18,8 @@ const Post = ({
|
|
|
18
18
|
width={size}
|
|
19
19
|
height={size}
|
|
20
20
|
fill={theme.color(colour)}
|
|
21
|
-
colour={colour}
|
|
22
|
-
mobileColour={mobileColour}
|
|
21
|
+
$colour={colour}
|
|
22
|
+
$mobileColour={mobileColour}
|
|
23
23
|
xmlns="http://www.w3.org/2000/svg"
|
|
24
24
|
viewBox="0 0 24 24"
|
|
25
25
|
>
|
|
@@ -12,10 +12,11 @@ export default function AccordionExample() {
|
|
|
12
12
|
<>
|
|
13
13
|
<Wrapper>
|
|
14
14
|
<Accordion
|
|
15
|
-
title={
|
|
15
|
+
title={(
|
|
16
16
|
<Text family="Anton" size="l" uppercase>
|
|
17
17
|
I am the title
|
|
18
|
-
</Text>
|
|
18
|
+
</Text>
|
|
19
|
+
)}
|
|
19
20
|
>
|
|
20
21
|
<Text tag="p" size="s">
|
|
21
22
|
Name, surname, email and billing address We need these to process your payment,
|
|
@@ -32,7 +33,8 @@ export default function AccordionExample() {
|
|
|
32
33
|
>
|
|
33
34
|
<Text tag="p" size="s">Customised bottom padding here!</Text>
|
|
34
35
|
<Text tag="p" size="s">
|
|
35
|
-
<a href="https://www.google.com">A plain anchor link, made to resemble a Link component</a
|
|
36
|
+
<a href="https://www.google.com">A plain anchor link, made to resemble a Link component</a>
|
|
37
|
+
.
|
|
36
38
|
</Text>
|
|
37
39
|
</Accordion>
|
|
38
40
|
</Wrapper>
|
|
@@ -40,11 +42,11 @@ export default function AccordionExample() {
|
|
|
40
42
|
<Wrapper>
|
|
41
43
|
<Accordion
|
|
42
44
|
contentBottomPadding="100px"
|
|
43
|
-
title={
|
|
44
|
-
<Text
|
|
45
|
+
title={(
|
|
46
|
+
<Text tag="p" weight="700">
|
|
45
47
|
I am a title with an overridden text type and weight, to 'p' 700 which is the new donate preference
|
|
46
48
|
</Text>
|
|
47
|
-
}
|
|
49
|
+
)}
|
|
48
50
|
>
|
|
49
51
|
<Text tag="p" size="s">lorem ipsum</Text>
|
|
50
52
|
</Accordion>
|
|
@@ -53,11 +55,11 @@ export default function AccordionExample() {
|
|
|
53
55
|
<Wrapper>
|
|
54
56
|
<div style={{ width: '752px' }}>
|
|
55
57
|
<Accordion
|
|
56
|
-
title={
|
|
57
|
-
<Text
|
|
58
|
+
title={(
|
|
59
|
+
<Text tag="p" weight="700">
|
|
58
60
|
I am in a width simulating our real world use on desktop (NB because width is fixed, this is only to demonstrate desktop mode, don't use for examining mobile view)
|
|
59
61
|
</Text>
|
|
60
|
-
}
|
|
62
|
+
)}
|
|
61
63
|
>
|
|
62
64
|
<Text tag="p" size="s">
|
|
63
65
|
A STAR template answer is a structured way of responding to behavioural interview questions. Here's what it stands for:
|
|
@@ -45,7 +45,7 @@ const ArticleTeaser = ({
|
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
47
|
<OuterWrapper>
|
|
48
|
-
<Link href={href} type="standard"
|
|
48
|
+
<Link href={href} type="standard" $isNewsTeaser={isNewsTeaser} underline={false}>
|
|
49
49
|
<InnerWrapper $isNewsTeaser={isNewsTeaser}>
|
|
50
50
|
<ImageWrapper $isNewsTeaser={isNewsTeaser}>
|
|
51
51
|
<Image
|
|
@@ -374,7 +374,6 @@ it('renders article teaser correctly', () => {
|
|
|
374
374
|
className="c0"
|
|
375
375
|
>
|
|
376
376
|
<a
|
|
377
|
-
category={null}
|
|
378
377
|
className="c1 c2"
|
|
379
378
|
href="/test"
|
|
380
379
|
target="_self"
|
|
@@ -802,7 +801,6 @@ it('renders press realese correctly', () => {
|
|
|
802
801
|
className="c0"
|
|
803
802
|
>
|
|
804
803
|
<a
|
|
805
|
-
category=""
|
|
806
804
|
className="c1 c2"
|
|
807
805
|
href="/test"
|
|
808
806
|
target="_self"
|
|
@@ -6,7 +6,7 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
6
6
|
import { breakpointValues } from '../../../theme/shared/allBreakpoints';
|
|
7
7
|
|
|
8
8
|
const Wrapper = styled.div`
|
|
9
|
-
background: ${({ theme, backgroundColor }) => theme.color(backgroundColor)};
|
|
9
|
+
background: ${({ theme, $backgroundColor }) => theme.color($backgroundColor)};
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
const Container = styled.div`
|
|
@@ -25,7 +25,7 @@ const Container = styled.div`
|
|
|
25
25
|
`;
|
|
26
26
|
|
|
27
27
|
const Banner = ({ children, backgroundColor = 'grey_dark' }) => (
|
|
28
|
-
<Wrapper backgroundColor={backgroundColor}>
|
|
28
|
+
<Wrapper $backgroundColor={backgroundColor}>
|
|
29
29
|
<Container>
|
|
30
30
|
{ children }
|
|
31
31
|
</Container>
|
|
@@ -253,10 +253,8 @@ exports[`renders Column view correctly 1`] = `
|
|
|
253
253
|
>
|
|
254
254
|
<svg
|
|
255
255
|
className="c10"
|
|
256
|
-
colour="white"
|
|
257
256
|
fill="#FFFFFF"
|
|
258
257
|
height={20}
|
|
259
|
-
mobileColour={null}
|
|
260
258
|
viewBox="0 0 15 15"
|
|
261
259
|
width={20}
|
|
262
260
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -555,10 +553,8 @@ exports[`renders correctly 1`] = `
|
|
|
555
553
|
>
|
|
556
554
|
<svg
|
|
557
555
|
className="c10"
|
|
558
|
-
colour="white"
|
|
559
556
|
fill="#FFFFFF"
|
|
560
557
|
height={20}
|
|
561
|
-
mobileColour={null}
|
|
562
558
|
viewBox="0 0 15 15"
|
|
563
559
|
width={20}
|
|
564
560
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -19,7 +19,7 @@ const LogoLinked = ({
|
|
|
19
19
|
href={url}
|
|
20
20
|
title="Go to Sport Relief homepage"
|
|
21
21
|
target={newTab ? '_blank' : '_self'}
|
|
22
|
-
animateRotate={animateRotate}
|
|
22
|
+
$animateRotate={animateRotate}
|
|
23
23
|
>
|
|
24
24
|
<Logo
|
|
25
25
|
rotate={false}
|
|
@@ -40,7 +40,7 @@ const LogoLinked = ({
|
|
|
40
40
|
href={url}
|
|
41
41
|
title="Go to Comic Relief homepage"
|
|
42
42
|
target={newTab ? '_blank' : '_self'}
|
|
43
|
-
animateRotate={animateRotate}
|
|
43
|
+
$animateRotate={animateRotate}
|
|
44
44
|
>
|
|
45
45
|
<Logo
|
|
46
46
|
rotate={false}
|
|
@@ -63,7 +63,7 @@ const LogoLinked = ({
|
|
|
63
63
|
href={url}
|
|
64
64
|
title="Go to Comic Relief homepage"
|
|
65
65
|
target={newTab ? '_blank' : '_self'}
|
|
66
|
-
animatePulse={animatePulse}
|
|
66
|
+
$animatePulse={animatePulse}
|
|
67
67
|
>
|
|
68
68
|
<Logo
|
|
69
69
|
rotate={false}
|
|
@@ -83,7 +83,7 @@ const LogoLinked = ({
|
|
|
83
83
|
href={url}
|
|
84
84
|
title={title}
|
|
85
85
|
target={newTab ? '_blank' : '_self'}
|
|
86
|
-
animateRotate={animateRotate}
|
|
86
|
+
$animateRotate={animateRotate}
|
|
87
87
|
>
|
|
88
88
|
<Logo
|
|
89
89
|
rotate={false}
|
|
@@ -8,9 +8,9 @@ const TitleLabel = styled.span`
|
|
|
8
8
|
`;
|
|
9
9
|
|
|
10
10
|
const LogoLink = styled.a`
|
|
11
|
-
${({ animateRotate }) => logoRotateAnimation(animateRotate)}
|
|
11
|
+
${({ $animateRotate }) => logoRotateAnimation($animateRotate)}
|
|
12
12
|
|
|
13
|
-
${({ animatePulse }) => animatePulse && css`
|
|
13
|
+
${({ $animatePulse }) => $animatePulse && css`
|
|
14
14
|
img {
|
|
15
15
|
${pulseOutAnimation};
|
|
16
16
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import TextInputWithDropdown from '../../Atoms/TextInputWithDropdown/TextInputWithDropdown';
|
|
4
|
-
import spacing from '../../../theme/shared/spacing';
|
|
5
4
|
import ButtonWithStates from '../../Atoms/ButtonWithStates/ButtonWithStates';
|
|
6
5
|
|
|
7
6
|
const KEY_CODE_ENTER = 13;
|
|
@@ -70,7 +69,6 @@ const Lookup = ({
|
|
|
70
69
|
return (
|
|
71
70
|
<div {...rest}>
|
|
72
71
|
<TextInputWithDropdown
|
|
73
|
-
css={{ marginBottom: spacing('md') }}
|
|
74
72
|
name={name}
|
|
75
73
|
id={name}
|
|
76
74
|
value={query}
|
|
@@ -66,10 +66,8 @@ exports[`renders coral_light variant 1`] = `
|
|
|
66
66
|
>
|
|
67
67
|
<svg
|
|
68
68
|
className="c4"
|
|
69
|
-
colour="black"
|
|
70
69
|
fill="#000000"
|
|
71
70
|
height={49.6}
|
|
72
|
-
mobileColour={null}
|
|
73
71
|
viewBox="0 0 350 124"
|
|
74
72
|
width={140}
|
|
75
73
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -149,10 +147,8 @@ exports[`renders default blue_light variant 1`] = `
|
|
|
149
147
|
>
|
|
150
148
|
<svg
|
|
151
149
|
className="c4"
|
|
152
|
-
colour="black"
|
|
153
150
|
fill="#000000"
|
|
154
151
|
height={49.6}
|
|
155
|
-
mobileColour={null}
|
|
156
152
|
viewBox="0 0 350 124"
|
|
157
153
|
width={140}
|
|
158
154
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -36,10 +36,10 @@ const Item = styled(Link)`
|
|
|
36
36
|
const ImageWrapper = styled.div`
|
|
37
37
|
height: auto;
|
|
38
38
|
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
39
|
-
width: ${({ smallImageWidth }) => smallImageWidth};
|
|
39
|
+
width: ${({ $smallImageWidth }) => $smallImageWidth};
|
|
40
40
|
}
|
|
41
41
|
@media ${({ theme }) => theme.allBreakpoints('XL')} {
|
|
42
|
-
width: ${({ largeImageWidth }) => largeImageWidth};
|
|
42
|
+
width: ${({ $largeImageWidth }) => $largeImageWidth};
|
|
43
43
|
}
|
|
44
44
|
`;
|
|
45
45
|
|
|
@@ -73,8 +73,8 @@ const SearchResult = ({
|
|
|
73
73
|
<Wrapper>
|
|
74
74
|
<Item href={href} type="standard">
|
|
75
75
|
<ImageWrapper
|
|
76
|
-
smallImageWidth={smallImageWidth}
|
|
77
|
-
largeImageWidth={largeImageWidth}
|
|
76
|
+
$smallImageWidth={smallImageWidth}
|
|
77
|
+
$largeImageWidth={largeImageWidth}
|
|
78
78
|
>
|
|
79
79
|
<Picture
|
|
80
80
|
imageLow={imageLow}
|
|
@@ -160,8 +160,6 @@ exports[`renders correctly in minimalist form 1`] = `
|
|
|
160
160
|
>
|
|
161
161
|
<div
|
|
162
162
|
className="c3"
|
|
163
|
-
largeImageWidth="100%"
|
|
164
|
-
smallImageWidth="45%"
|
|
165
163
|
>
|
|
166
164
|
<div
|
|
167
165
|
className="c4"
|
|
@@ -386,8 +384,6 @@ exports[`renders correctly with copy 1`] = `
|
|
|
386
384
|
>
|
|
387
385
|
<div
|
|
388
386
|
className="c3"
|
|
389
|
-
largeImageWidth="100%"
|
|
390
|
-
smallImageWidth="45%"
|
|
391
387
|
>
|
|
392
388
|
<div
|
|
393
389
|
className="c4"
|
|
@@ -584,8 +580,6 @@ exports[`renders correctly with date 1`] = `
|
|
|
584
580
|
>
|
|
585
581
|
<div
|
|
586
582
|
className="c3"
|
|
587
|
-
largeImageWidth="100%"
|
|
588
|
-
smallImageWidth="45%"
|
|
589
583
|
>
|
|
590
584
|
<div
|
|
591
585
|
className="c4"
|
|
@@ -777,8 +771,6 @@ exports[`renders correctly with date and type 1`] = `
|
|
|
777
771
|
>
|
|
778
772
|
<div
|
|
779
773
|
className="c3"
|
|
780
|
-
largeImageWidth="100%"
|
|
781
|
-
smallImageWidth="45%"
|
|
782
774
|
>
|
|
783
775
|
<div
|
|
784
776
|
className="c4"
|
|
@@ -254,7 +254,7 @@ const Signup = ({
|
|
|
254
254
|
<MoneyBuys>
|
|
255
255
|
{givingData.moneybuys.map(({ value }, index) => (
|
|
256
256
|
<MoneyBuy
|
|
257
|
-
isSelected={amountDonate === value}
|
|
257
|
+
$isSelected={amountDonate === value}
|
|
258
258
|
amount={value.toString()}
|
|
259
259
|
description={`£${amountFormatter(value)}`}
|
|
260
260
|
setOtherAmount={() => setAmountDonate(value)}
|
|
@@ -275,7 +275,7 @@ const Signup = ({
|
|
|
275
275
|
step="0.01"
|
|
276
276
|
name="membership_amount"
|
|
277
277
|
type="string"
|
|
278
|
-
inputBorderColor={isAmountValid(amountDonate) === false}
|
|
278
|
+
$inputBorderColor={isAmountValid(amountDonate) === false}
|
|
279
279
|
label="£"
|
|
280
280
|
errorMsg=""
|
|
281
281
|
id={`${mbshipID}--MoneyBuy-userInput`}
|
|
@@ -648,7 +648,6 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
648
648
|
aria-required={false}
|
|
649
649
|
className="c24"
|
|
650
650
|
id="mship-4--MoneyBuy-userInput"
|
|
651
|
-
inputBorderColor={false}
|
|
652
651
|
max="25000"
|
|
653
652
|
min="1"
|
|
654
653
|
name="membership_amount"
|
|
@@ -1349,7 +1348,6 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1349
1348
|
aria-required={false}
|
|
1350
1349
|
className="c25"
|
|
1351
1350
|
id="mship-1--MoneyBuy-userInput"
|
|
1352
|
-
inputBorderColor={false}
|
|
1353
1351
|
max="25000"
|
|
1354
1352
|
min="1"
|
|
1355
1353
|
name="membership_amount"
|
|
@@ -2019,7 +2017,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2019
2017
|
aria-required={false}
|
|
2020
2018
|
className="c18"
|
|
2021
2019
|
id="mship-1--moneyBuy-box1"
|
|
2022
|
-
isSelected={false}
|
|
2023
2020
|
name="mship-1--moneyBuy1"
|
|
2024
2021
|
onClick={[Function]}
|
|
2025
2022
|
placeholder=""
|
|
@@ -2053,7 +2050,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2053
2050
|
aria-required={false}
|
|
2054
2051
|
className="c18"
|
|
2055
2052
|
id="mship-1--moneyBuy-box2"
|
|
2056
|
-
isSelected={true}
|
|
2057
2053
|
name="mship-1--moneyBuy2"
|
|
2058
2054
|
onClick={[Function]}
|
|
2059
2055
|
placeholder=""
|
|
@@ -2087,7 +2083,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2087
2083
|
aria-required={false}
|
|
2088
2084
|
className="c18"
|
|
2089
2085
|
id="mship-1--moneyBuy-box3"
|
|
2090
|
-
isSelected={false}
|
|
2091
2086
|
name="mship-1--moneyBuy3"
|
|
2092
2087
|
onClick={[Function]}
|
|
2093
2088
|
placeholder=""
|
|
@@ -2130,7 +2125,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2130
2125
|
aria-required={false}
|
|
2131
2126
|
className="c18"
|
|
2132
2127
|
id="mship-1--MoneyBuy-userInput"
|
|
2133
|
-
inputBorderColor={false}
|
|
2134
2128
|
max="25000"
|
|
2135
2129
|
min="1"
|
|
2136
2130
|
name="membership_amount"
|
|
@@ -2661,7 +2655,6 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
|
|
|
2661
2655
|
aria-required={false}
|
|
2662
2656
|
className="c18"
|
|
2663
2657
|
id="mship-1--MoneyBuy-userInput"
|
|
2664
|
-
inputBorderColor={false}
|
|
2665
2658
|
max="25000"
|
|
2666
2659
|
min="1"
|
|
2667
2660
|
name="membership_amount"
|
|
@@ -242,7 +242,7 @@ const Signup = ({
|
|
|
242
242
|
<MoneyBuys>
|
|
243
243
|
{givingData.moneybuys.map(({ value }, index) => (
|
|
244
244
|
<MoneyBuy
|
|
245
|
-
isSelected={amountDonate === value}
|
|
245
|
+
$isSelected={amountDonate === value}
|
|
246
246
|
amount={value.toString()}
|
|
247
247
|
description={`£${amountFormatter(value)}`}
|
|
248
248
|
setOtherAmount={() => setAmountDonate(value)}
|
|
@@ -262,7 +262,7 @@ const Signup = ({
|
|
|
262
262
|
step="0.01"
|
|
263
263
|
name="membership_amount"
|
|
264
264
|
type="string"
|
|
265
|
-
inputBorderColor={isAmountValid(amountDonate) === false}
|
|
265
|
+
$inputBorderColor={isAmountValid(amountDonate) === false}
|
|
266
266
|
prefix="£"
|
|
267
267
|
label={hideMoneyBuys ? 'Donation amount' : 'Other donation amount'}
|
|
268
268
|
errorMsg=""
|
|
@@ -28,7 +28,7 @@ const MoneyBuyButton = styled(Input)`
|
|
|
28
28
|
height: 3.4375rem;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
${({ isSelected }) => (isSelected
|
|
31
|
+
${({ $isSelected }) => ($isSelected
|
|
32
32
|
? css`
|
|
33
33
|
background-color: ${({ theme }) => theme.color('red')};
|
|
34
34
|
border: 1px solid ${({ theme }) => theme.color('red')};
|
|
@@ -658,7 +658,6 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
658
658
|
aria-required={false}
|
|
659
659
|
className="c24"
|
|
660
660
|
id="mbship-1--MoneyBuy-userInput"
|
|
661
|
-
inputBorderColor={false}
|
|
662
661
|
max="25000"
|
|
663
662
|
min="1"
|
|
664
663
|
name="membership_amount"
|
|
@@ -1294,7 +1293,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1294
1293
|
aria-required={false}
|
|
1295
1294
|
className="c16"
|
|
1296
1295
|
id="mbship-1--moneyBuy-box1"
|
|
1297
|
-
isSelected={false}
|
|
1298
1296
|
name="mbship-1--moneyBuy1"
|
|
1299
1297
|
onClick={[Function]}
|
|
1300
1298
|
placeholder=""
|
|
@@ -1327,7 +1325,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1327
1325
|
aria-required={false}
|
|
1328
1326
|
className="c16"
|
|
1329
1327
|
id="mbship-1--moneyBuy-box2"
|
|
1330
|
-
isSelected={true}
|
|
1331
1328
|
name="mbship-1--moneyBuy2"
|
|
1332
1329
|
onClick={[Function]}
|
|
1333
1330
|
placeholder=""
|
|
@@ -1360,7 +1357,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1360
1357
|
aria-required={false}
|
|
1361
1358
|
className="c16"
|
|
1362
1359
|
id="mbship-1--moneyBuy-box3"
|
|
1363
|
-
isSelected={false}
|
|
1364
1360
|
name="mbship-1--moneyBuy3"
|
|
1365
1361
|
onClick={[Function]}
|
|
1366
1362
|
placeholder=""
|
|
@@ -1407,7 +1403,6 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
1407
1403
|
aria-required={false}
|
|
1408
1404
|
className="c23"
|
|
1409
1405
|
id="mbship-1--MoneyBuy-userInput"
|
|
1410
|
-
inputBorderColor={false}
|
|
1411
1406
|
max="25000"
|
|
1412
1407
|
min="1"
|
|
1413
1408
|
name="membership_amount"
|
|
@@ -1915,7 +1910,6 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
|
|
|
1915
1910
|
aria-required={false}
|
|
1916
1911
|
className="c19"
|
|
1917
1912
|
id="mbship-1--MoneyBuy-userInput"
|
|
1918
|
-
inputBorderColor={false}
|
|
1919
1913
|
max="25000"
|
|
1920
1914
|
min="1"
|
|
1921
1915
|
name="membership_amount"
|
|
@@ -2687,7 +2681,6 @@ exports[`Text-only donate widget renders correctly 1`] = `
|
|
|
2687
2681
|
aria-required={false}
|
|
2688
2682
|
className="c26"
|
|
2689
2683
|
id="mbship-4--MoneyBuy-userInput"
|
|
2690
|
-
inputBorderColor={false}
|
|
2691
2684
|
max="25000"
|
|
2692
2685
|
min="1"
|
|
2693
2686
|
name="membership_amount"
|