@comicrelief/component-library 8.26.0 → 8.28.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 (79) hide show
  1. package/dist/components/Atoms/Button/Button.test.js +62 -1
  2. package/dist/components/Atoms/ButtonWithStates/ButtonWithStates.js +4 -1
  3. package/dist/components/Atoms/Checkbox/Checkbox.js +1 -1
  4. package/dist/components/Atoms/Checkbox/Checkbox.test.js +160 -1
  5. package/dist/components/Atoms/Icons/Arrow.js +1 -1
  6. package/dist/components/Atoms/Icons/Chevron.js +1 -1
  7. package/dist/components/Atoms/Input/Input.js +3 -3
  8. package/dist/components/Atoms/Input/input.test.js +238 -2
  9. package/dist/components/Atoms/Label/Label.js +9 -1
  10. package/dist/components/Atoms/Link/Link.test.js +219 -4
  11. package/dist/components/Atoms/Logo/Logo.test.js +36 -1
  12. package/dist/components/Atoms/Pagination/Item/Item.js +1 -1
  13. package/dist/components/Atoms/Pagination/List/List.js +1 -1
  14. package/dist/components/Atoms/Pagination/Pagination.js +1 -1
  15. package/dist/components/Atoms/Pagination/Pagination.test.js +14 -14
  16. package/dist/components/Atoms/Picture/Picture.js +9 -2
  17. package/dist/components/Atoms/Picture/Picture.md +2 -1
  18. package/dist/components/Atoms/Picture/Picture.test.js +90 -2
  19. package/dist/components/Atoms/RadioButton/RadioButton.test.js +178 -1
  20. package/dist/components/Atoms/RichText/RichText.test.js +14 -1
  21. package/dist/components/Atoms/SocialIcons/Icon/Icon.js +2 -2
  22. package/dist/components/Atoms/SocialIcons/Utils/Links.js +3 -3
  23. package/dist/components/Atoms/Text/Text.js +3 -3
  24. package/dist/components/Atoms/TextArea/TextArea.test.js +90 -1
  25. package/dist/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +3 -3
  26. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +1 -1
  27. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +479 -2
  28. package/dist/components/Molecules/Card/Card.style.js +1 -1
  29. package/dist/components/Molecules/Chip/Chip.test.js +104 -1
  30. package/dist/components/Molecules/Descriptor/Descriptor.js +1 -1
  31. package/dist/components/Molecules/Descriptor/Descriptor.test.js +216 -1
  32. package/dist/components/Molecules/DoubleCopy/DoubleCopy.test.js +55 -1
  33. package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +148 -1
  34. package/dist/components/Molecules/Promo/_ProgressRing.js +5 -5
  35. package/dist/components/Molecules/SchoolLookup/SchoolLookup.js +1 -1
  36. package/dist/components/Molecules/SearchInput/SearchInput.test.js +190 -1
  37. package/dist/components/Molecules/SearchResult/SearchResult.js +1 -1
  38. package/dist/components/Molecules/ShareButton/ShareButton.js +3 -3
  39. package/dist/components/Molecules/ShareButton/ShareButton.test.js +112 -1
  40. package/dist/components/Molecules/SimpleSchoolLookup/SimpleSchoolLookup.js +1 -1
  41. package/dist/components/Molecules/SingleMessage/SingleMessage.js +4 -4
  42. package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +2 -2
  43. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.js +1 -1
  44. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +8 -8
  45. package/dist/components/Molecules/VideoBanner/VideoBanner.test.js +18 -1
  46. package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +181 -1
  47. package/dist/components/Organisms/Donate/Donate.js +1 -1
  48. package/dist/components/Organisms/Donate/Donate.style.js +3 -1
  49. package/dist/components/Organisms/Donate/Form/Form.js +8 -8
  50. package/dist/components/Organisms/Donate/GivingSelector/GivingSelector.js +4 -4
  51. package/dist/components/Organisms/Donate/MoneyBuy/MoneyBuy.js +1 -1
  52. package/dist/components/Organisms/Footer/Footer.js +1 -1
  53. package/dist/components/Organisms/Footer/Nav/Nav.js +1 -1
  54. package/dist/components/Organisms/Header/HeaderNav/HeaderNav.js +2 -2
  55. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
  56. package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +5 -5
  57. package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +1 -1
  58. package/dist/components/Organisms/ImpactSlider/_ImpactMoneybuys.js +1 -1
  59. package/dist/components/Organisms/ImpactSlider/_utils.js +2 -2
  60. package/dist/components/Organisms/MarketingPreferencesDS/_MarketingPreferencesDS.js +5 -5
  61. package/dist/components/Organisms/MarketingPreferencesDS/_OptInCheckbox.js +3 -3
  62. package/dist/components/Organisms/Membership/Form/Form.js +5 -5
  63. package/dist/components/Organisms/Membership/Membership.style.js +1 -1
  64. package/dist/components/Organisms/Membership/Membership.test.js +633 -1
  65. package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
  66. package/dist/components/Organisms/RichtextCarousel/RichtextCarousel.test.js +208 -1
  67. package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.test.js +341 -1
  68. package/dist/components/Organisms/WYMDCarousel/_utils.js +1 -1
  69. package/dist/theme/crTheme/colors.js +0 -8
  70. package/dist/theme/crTheme/linkStyles.js +4 -4
  71. package/dist/theme/shared/allBreakpoints.js +1 -1
  72. package/dist/theme/shared/fontFamilies.js +1 -1
  73. package/dist/utils/Membership.js +2 -2
  74. package/dist/utils/ShareButton/sharePopUpHelper.js +1 -1
  75. package/dist/utils/ShareButton/shareUrlHelper.js +2 -2
  76. package/dist/utils/internalLinkHelper.js +1 -1
  77. package/package.json +1 -1
  78. package/src/components/Atoms/Picture/Picture.md +2 -1
  79. package/src/theme/crTheme/colors.js +0 -8
@@ -14,5 +14,220 @@ it('renders article teaser correctly', () => {
14
14
  tags: tags,
15
15
  categories: categories
16
16
  }, "Description go here...", /*#__PURE__*/_react.default.createElement("br", null), "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.")).toJSON();
17
- expect(tree).toMatchInlineSnapshot("\n .c3 {\n color: #222222;\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c7 {\n font-size: 2rem;\n line-height: 2rem;\n text-transform: uppercase;\n font-weight: normal;\n line-height: 2rem;\n font-family: 'Anton',Impact,sans-serif;\n -webkit-letter-spacing: 0.03rem;\n -moz-letter-spacing: 0.03rem;\n -ms-letter-spacing: 0.03rem;\n letter-spacing: 0.03rem;\n }\n\n .c10 {\n color: #222222;\n font-size: 0.75rem;\n line-height: 0.75rem;\n text-transform: inherit;\n font-weight: normal;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c0 {\n position: relative;\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n background-color: #FFFFFF;\n border-radius: 1rem;\n box-shadow: 0px 0px 20px rgba(0,0,0,0.15);\n }\n\n .c1 {\n padding: 2rem;\n height: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n }\n\n .c2 {\n display: block;\n }\n\n .c4 {\n display: inline-block;\n margin-bottom: 1rem;\n }\n\n .c5 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n margin-right: 2rem;\n margin-top: 1.5rem;\n }\n\n .c5 img:not(:last-child) {\n margin-right: 8px;\n }\n\n .c6 {\n object-fit: cover;\n width: 24px;\n height: 24px;\n }\n\n .c8 {\n margin: 0 0 1.5rem;\n }\n\n .c9 {\n margin: 0 0 1rem 0;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n }\n\n .c9 span:not(:first-child) {\n margin-left: 1rem;\n }\n\n .c9 span:not(:first-child)::before {\n content: '';\n position: absolute;\n left: -9px;\n bottom: 5px;\n width: 3px;\n height: 3px;\n background-color: currentColor;\n border-radius: 50%;\n }\n\n .c11 {\n position: relative;\n text-transform: uppercase;\n }\n\n .c12 {\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n <article\n className=\"c0\"\n >\n <div\n className=\"c1\"\n >\n <div\n className=\"c2\"\n >\n <span\n className=\"c3 c4\"\n color=\"grey_dark\"\n size=\"s\"\n >\n 15/06/2020\n </span>\n <div\n className=\"c5\"\n >\n <img\n alt=\"How we fund icon\"\n className=\"c6\"\n src=\"mock.asset\"\n />\n <img\n alt=\"Social Tech icon\"\n className=\"c6\"\n src=\"mock.asset\"\n />\n <img\n alt=\"Sport for Change icon\"\n className=\"c6\"\n src=\"mock.asset\"\n />\n </div>\n </div>\n <h3\n className=\"c7 c8\"\n color=\"inherit\"\n height=\"2rem\"\n size=\"xl\"\n >\n Title\n </h3>\n <div\n className=\"c9\"\n >\n <span\n className=\"c10 c11\"\n color=\"grey_dark\"\n size=\"xs\"\n >\n tag1\n </span>\n <span\n className=\"c10 c11\"\n color=\"grey_dark\"\n size=\"xs\"\n >\n tag2\n </span>\n <span\n className=\"c10 c11\"\n color=\"grey_dark\"\n size=\"xs\"\n >\n tag3\n </span>\n <span\n className=\"c10 c11\"\n color=\"grey_dark\"\n size=\"xs\"\n >\n tag4\n </span>\n </div>\n <div\n className=\"c12\"\n >\n Description go here...\n <br />\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n </div>\n </div>\n </article>\n ");
17
+ expect(tree).toMatchInlineSnapshot(`
18
+ .c3 {
19
+ color: #222222;
20
+ font-size: 1rem;
21
+ line-height: 1rem;
22
+ text-transform: inherit;
23
+ font-weight: bold;
24
+ line-height: normal;
25
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
26
+ }
27
+
28
+ .c7 {
29
+ font-size: 2rem;
30
+ line-height: 2rem;
31
+ text-transform: uppercase;
32
+ font-weight: normal;
33
+ line-height: 2rem;
34
+ font-family: 'Anton',Impact,sans-serif;
35
+ -webkit-letter-spacing: 0.03rem;
36
+ -moz-letter-spacing: 0.03rem;
37
+ -ms-letter-spacing: 0.03rem;
38
+ letter-spacing: 0.03rem;
39
+ }
40
+
41
+ .c10 {
42
+ color: #222222;
43
+ font-size: 0.75rem;
44
+ line-height: 0.75rem;
45
+ text-transform: inherit;
46
+ font-weight: normal;
47
+ line-height: normal;
48
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
49
+ }
50
+
51
+ .c0 {
52
+ position: relative;
53
+ width: 100%;
54
+ height: 100%;
55
+ display: -webkit-box;
56
+ display: -webkit-flex;
57
+ display: -ms-flexbox;
58
+ display: flex;
59
+ background-color: #FFFFFF;
60
+ border-radius: 1rem;
61
+ box-shadow: 0px 0px 20px rgba(0,0,0,0.15);
62
+ }
63
+
64
+ .c1 {
65
+ padding: 2rem;
66
+ height: 100%;
67
+ display: -webkit-box;
68
+ display: -webkit-flex;
69
+ display: -ms-flexbox;
70
+ display: flex;
71
+ -webkit-flex-direction: column;
72
+ -ms-flex-direction: column;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ }
76
+
77
+ .c2 {
78
+ display: block;
79
+ }
80
+
81
+ .c4 {
82
+ display: inline-block;
83
+ margin-bottom: 1rem;
84
+ }
85
+
86
+ .c5 {
87
+ display: -webkit-box;
88
+ display: -webkit-flex;
89
+ display: -ms-flexbox;
90
+ display: flex;
91
+ position: absolute;
92
+ top: 0;
93
+ right: 0;
94
+ margin-right: 2rem;
95
+ margin-top: 1.5rem;
96
+ }
97
+
98
+ .c5 img:not(:last-child) {
99
+ margin-right: 8px;
100
+ }
101
+
102
+ .c6 {
103
+ object-fit: cover;
104
+ width: 24px;
105
+ height: 24px;
106
+ }
107
+
108
+ .c8 {
109
+ margin: 0 0 1.5rem;
110
+ }
111
+
112
+ .c9 {
113
+ margin: 0 0 1rem 0;
114
+ display: -webkit-box;
115
+ display: -webkit-flex;
116
+ display: -ms-flexbox;
117
+ display: flex;
118
+ -webkit-flex-wrap: wrap;
119
+ -ms-flex-wrap: wrap;
120
+ flex-wrap: wrap;
121
+ }
122
+
123
+ .c9 span:not(:first-child) {
124
+ margin-left: 1rem;
125
+ }
126
+
127
+ .c9 span:not(:first-child)::before {
128
+ content: '';
129
+ position: absolute;
130
+ left: -9px;
131
+ bottom: 5px;
132
+ width: 3px;
133
+ height: 3px;
134
+ background-color: currentColor;
135
+ border-radius: 50%;
136
+ }
137
+
138
+ .c11 {
139
+ position: relative;
140
+ text-transform: uppercase;
141
+ }
142
+
143
+ .c12 {
144
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
145
+ }
146
+
147
+ <article
148
+ className="c0"
149
+ >
150
+ <div
151
+ className="c1"
152
+ >
153
+ <div
154
+ className="c2"
155
+ >
156
+ <span
157
+ className="c3 c4"
158
+ color="grey_dark"
159
+ size="s"
160
+ >
161
+ 15/06/2020
162
+ </span>
163
+ <div
164
+ className="c5"
165
+ >
166
+ <img
167
+ alt="How we fund icon"
168
+ className="c6"
169
+ src="mock.asset"
170
+ />
171
+ <img
172
+ alt="Social Tech icon"
173
+ className="c6"
174
+ src="mock.asset"
175
+ />
176
+ <img
177
+ alt="Sport for Change icon"
178
+ className="c6"
179
+ src="mock.asset"
180
+ />
181
+ </div>
182
+ </div>
183
+ <h3
184
+ className="c7 c8"
185
+ color="inherit"
186
+ height="2rem"
187
+ size="xl"
188
+ >
189
+ Title
190
+ </h3>
191
+ <div
192
+ className="c9"
193
+ >
194
+ <span
195
+ className="c10 c11"
196
+ color="grey_dark"
197
+ size="xs"
198
+ >
199
+ tag1
200
+ </span>
201
+ <span
202
+ className="c10 c11"
203
+ color="grey_dark"
204
+ size="xs"
205
+ >
206
+ tag2
207
+ </span>
208
+ <span
209
+ className="c10 c11"
210
+ color="grey_dark"
211
+ size="xs"
212
+ >
213
+ tag3
214
+ </span>
215
+ <span
216
+ className="c10 c11"
217
+ color="grey_dark"
218
+ size="xs"
219
+ >
220
+ tag4
221
+ </span>
222
+ </div>
223
+ <div
224
+ className="c12"
225
+ >
226
+ Description go here...
227
+ <br />
228
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
229
+ </div>
230
+ </div>
231
+ </article>
232
+ `);
18
233
  });
@@ -16,5 +16,59 @@ it('renders correctly', () => {
16
16
  markup: content
17
17
  })
18
18
  })).toJSON();
19
- expect(tree).toMatchInlineSnapshot("\n .c2 {\n text-align: left;\n }\n\n .c0 {\n width: 100%;\n }\n\n .c1 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n padding: 4rem;\n }\n\n @media (min-width:740px) {\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n }\n }\n\n <section\n className=\"c0\"\n >\n <div\n className=\"c1\"\n >\n <div\n className=\"c2\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"<h1> Left Copy</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\",\n }\n }\n />\n </div>\n <div\n className=\"c1\"\n >\n <div\n className=\"c2\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"<h1> Left Copy</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\",\n }\n }\n />\n </div>\n </section>\n ");
19
+ expect(tree).toMatchInlineSnapshot(`
20
+ .c2 {
21
+ text-align: left;
22
+ }
23
+
24
+ .c0 {
25
+ width: 100%;
26
+ }
27
+
28
+ .c1 {
29
+ display: -webkit-box;
30
+ display: -webkit-flex;
31
+ display: -ms-flexbox;
32
+ display: flex;
33
+ padding: 4rem;
34
+ }
35
+
36
+ @media (min-width:740px) {
37
+ .c0 {
38
+ display: -webkit-box;
39
+ display: -webkit-flex;
40
+ display: -ms-flexbox;
41
+ display: flex;
42
+ }
43
+ }
44
+
45
+ <section
46
+ className="c0"
47
+ >
48
+ <div
49
+ className="c1"
50
+ >
51
+ <div
52
+ className="c2"
53
+ dangerouslySetInnerHTML={
54
+ Object {
55
+ "__html": "<h1> Left Copy</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>",
56
+ }
57
+ }
58
+ />
59
+ </div>
60
+ <div
61
+ className="c1"
62
+ >
63
+ <div
64
+ className="c2"
65
+ dangerouslySetInnerHTML={
66
+ Object {
67
+ "__html": "<h1> Left Copy</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>",
68
+ }
69
+ }
70
+ />
71
+ </div>
72
+ </section>
73
+ `);
20
74
  });
@@ -15,5 +15,152 @@ it('renders correctly', () => {
15
15
  imageLow: _data.defaultData.imageLow,
16
16
  images: _data.defaultData.images
17
17
  }))).toJSON();
18
- expect(tree).toMatchInlineSnapshot("\n .c4 {\n color: #FFFFFF;\n font-size: 0.6875rem;\n line-height: 0.6875rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c2 {\n display: block;\n width: 100%;\n height: auto;\n position: relative;\n }\n\n .c3 {\n width: 100%;\n height: auto;\n display: block;\n object-fit: none;\n }\n\n .c0 {\n position: relative;\n -webkit-text-decoration: none;\n text-decoration: none;\n display: inline;\n line-height: 1.5rem;\n color: #000000;\n border-bottom: 2px solid #000000;\n font-weight: normal;\n }\n\n .c0:hover {\n color: #000000;\n border-bottom: 2px solid #000000;\n }\n\n .c6 {\n border: 0;\n -webkit-clip: rect(0 0 0 0);\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n height: auto;\n }\n\n .c1 {\n display: block;\n position: relative;\n padding: 0;\n border: none;\n }\n\n .c1:hover,\n .c1:focus {\n border: none;\n }\n\n .c1:hover .c5,\n .c1:focus .c5 {\n overflow: inherit;\n -webkit-clip-path: none;\n clip-path: none;\n margin: 0;\n text-align: center;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n -webkit-clip: auto;\n clip: auto;\n top: 50%;\n left: 0;\n width: 100%;\n z-index: 2;\n }\n\n .c1:hover::after,\n .c1:focus::after {\n content: '';\n position: absolute;\n display: block;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #E52630;\n }\n\n @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {\n .c2 {\n background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);\n background-size: cover;\n background-position: center;\n }\n }\n\n @media (min-width:740px) {\n .c6 {\n font-size: 1rem;\n }\n }\n\n <a\n className=\"c0 c1\"\n color=\"red\"\n href=\"https://www.comicrelief.com\"\n target=\"_self\"\n type=\"standard\"\n >\n <div\n className=\"c2 lazyload\"\n height=\"auto\"\n width=\"100%\"\n >\n <img\n alt=\"test Image\"\n className=\"c3 lazyload\"\n data-lowsrc=\"http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=100&h=50&q=100\"\n data-sizes=\"auto\"\n data-src={null}\n data-srcset=\"//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w\"\n height=\"auto\"\n src={null}\n srcSet=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\n width=\"100%\"\n />\n </div>\n <span\n className=\"c4 c5 c6\"\n color=\"white\"\n size=\"xxs\"\n >\n Find out more\n </span>\n </a>\n ");
18
+ expect(tree).toMatchInlineSnapshot(`
19
+ .c4 {
20
+ color: #FFFFFF;
21
+ font-size: 0.6875rem;
22
+ line-height: 0.6875rem;
23
+ text-transform: inherit;
24
+ line-height: normal;
25
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
26
+ }
27
+
28
+ .c2 {
29
+ display: block;
30
+ width: 100%;
31
+ height: auto;
32
+ position: relative;
33
+ }
34
+
35
+ .c3 {
36
+ width: 100%;
37
+ height: auto;
38
+ display: block;
39
+ object-fit: none;
40
+ }
41
+
42
+ .c0 {
43
+ position: relative;
44
+ -webkit-text-decoration: none;
45
+ text-decoration: none;
46
+ display: inline;
47
+ line-height: 1.5rem;
48
+ color: #000000;
49
+ border-bottom: 2px solid #000000;
50
+ font-weight: normal;
51
+ }
52
+
53
+ .c0:hover {
54
+ color: #000000;
55
+ border-bottom: 2px solid #000000;
56
+ }
57
+
58
+ .c6 {
59
+ border: 0;
60
+ -webkit-clip: rect(0 0 0 0);
61
+ clip: rect(0 0 0 0);
62
+ -webkit-clip-path: inset(50%);
63
+ clip-path: inset(50%);
64
+ height: 1px;
65
+ margin: -1px;
66
+ overflow: hidden;
67
+ padding: 0;
68
+ position: absolute;
69
+ white-space: nowrap;
70
+ width: 1px;
71
+ height: auto;
72
+ }
73
+
74
+ .c1 {
75
+ display: block;
76
+ position: relative;
77
+ padding: 0;
78
+ border: none;
79
+ }
80
+
81
+ .c1:hover,
82
+ .c1:focus {
83
+ border: none;
84
+ }
85
+
86
+ .c1:hover .c5,
87
+ .c1:focus .c5 {
88
+ overflow: inherit;
89
+ -webkit-clip-path: none;
90
+ clip-path: none;
91
+ margin: 0;
92
+ text-align: center;
93
+ -webkit-transform: translateY(-50%);
94
+ -ms-transform: translateY(-50%);
95
+ transform: translateY(-50%);
96
+ -webkit-clip: auto;
97
+ clip: auto;
98
+ top: 50%;
99
+ left: 0;
100
+ width: 100%;
101
+ z-index: 2;
102
+ }
103
+
104
+ .c1:hover::after,
105
+ .c1:focus::after {
106
+ content: '';
107
+ position: absolute;
108
+ display: block;
109
+ top: 0;
110
+ right: 0;
111
+ bottom: 0;
112
+ left: 0;
113
+ width: 100%;
114
+ height: 100%;
115
+ background-color: #E52630;
116
+ }
117
+
118
+ @supports not ((object-fit:cover) or (object-fit:none) or (object-fit:contain)) {
119
+ .c2 {
120
+ background-image: url(//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg);
121
+ background-size: cover;
122
+ background-position: center;
123
+ }
124
+ }
125
+
126
+ @media (min-width:740px) {
127
+ .c6 {
128
+ font-size: 1rem;
129
+ }
130
+ }
131
+
132
+ <a
133
+ className="c0 c1"
134
+ color="red"
135
+ href="https://www.comicrelief.com"
136
+ target="_self"
137
+ type="standard"
138
+ >
139
+ <div
140
+ className="c2 lazyload"
141
+ height="auto"
142
+ width="100%"
143
+ >
144
+ <img
145
+ alt="test Image"
146
+ className="c3 lazyload"
147
+ data-lowsrc="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=100&h=50&q=100"
148
+ data-sizes="auto"
149
+ data-src={null}
150
+ data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
151
+ height="auto"
152
+ src={null}
153
+ srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
154
+ width="100%"
155
+ />
156
+ </div>
157
+ <span
158
+ className="c4 c5 c6"
159
+ color="white"
160
+ size="xxs"
161
+ >
162
+ Find out more
163
+ </span>
164
+ </a>
165
+ `);
19
166
  });
@@ -27,12 +27,12 @@ const ProgressRing = _ref => {
27
27
  height: thisRadius * 2,
28
28
  width: thisRadius * 2
29
29
  }, /*#__PURE__*/_react.default.createElement(_PromoVideoButton.ProgressRingCircle, Object.assign({
30
- strokeDasharray: "".concat(thisCircumference, " ").concat(thisCircumference),
30
+ strokeDasharray: `${thisCircumference} ${thisCircumference}`,
31
31
  strokeDashOffsetStyle: thisDashOffset,
32
- strokeWidth: "".concat(thisStroke),
33
- r: "".concat(initNormRadius),
34
- cx: "".concat(thisRadius),
35
- cy: "".concat(thisRadius)
32
+ strokeWidth: `${thisStroke}`,
33
+ r: `${initNormRadius}`,
34
+ cx: `${thisRadius}`,
35
+ cy: `${thisRadius}`
36
36
  }, rest))));
37
37
  };
38
38
  var _default = exports.default = ProgressRing;
@@ -17,7 +17,7 @@ const optionFetcher = async query => {
17
17
  });
18
18
  return response.data.data.schools;
19
19
  };
20
- const optionParser = school => "".concat(school.name, ", ").concat(school.post_code);
20
+ const optionParser = school => `${school.name}, ${school.post_code}`;
21
21
  const SchoolLookup = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
22
22
  let {
23
23
  label = 'Enter the name or postcode of your school or nursery',
@@ -13,5 +13,194 @@ it('renders correctly', () => {
13
13
  },
14
14
  value: ""
15
15
  })).toJSON();
16
- expect(tree).toMatchInlineSnapshot("\n .c6 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c4 {\n width: 100%;\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-flex-direction: column;\n -ms-flex-direction: column;\n flex-direction: column;\n color: #5C5C5E;\n }\n\n .c7 {\n border: 0;\n -webkit-clip: rect(0 0 0 0);\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n\n .c8 {\n position: relative;\n font-size: 1.25rem;\n }\n\n .c9 {\n position: relative;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: end;\n -webkit-justify-content: flex-end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .c10 {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: 48px;\n padding: 1rem 2.4rem 1rem 1.5rem;\n background-color: #F4F3F5;\n border: 1px solid;\n border-color: #E1E2E3;\n box-shadow: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: #000000;\n border-radius: 0.5rem;\n font-size: inherit;\n z-index: 2;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c10:focus {\n border: 1px solid #666;\n }\n\n .c0 {\n width: 100%;\n max-width: 1440px;\n margin: auto;\n }\n\n .c1 {\n margin: 1rem auto;\n padding: 0 calc((4 * 0.25rem));\n }\n\n .c2 {\n margin: 4rem auto;\n width: 100%;\n border-bottom: 4px solid #E52630;\n overflow: hidden;\n }\n\n .c3 {\n width: 100%;\n padding: 0 0.5rem;\n }\n\n .c5 input {\n padding: 13px 0;\n margin: 0;\n max-width: 100%;\n border: 0;\n outline: #E52630;\n background: none;\n }\n\n .c5 input:focus {\n border: 0;\n }\n\n @media (min-width:740px) {\n\n }\n\n @media (min-width:1024px) {\n\n }\n\n @media (min-width:740px) {\n .c5 input {\n height: 100px;\n font-size: 3rem;\n }\n }\n\n <div\n className=\"c0\"\n >\n <div\n className=\"c1\"\n >\n <div\n className=\"c2\"\n role=\"search\"\n >\n <div\n className=\"c3\"\n >\n <label\n className=\"c4 c5\"\n htmlFor=\"search\"\n >\n <span\n className=\"c6 c7\"\n color=\"inherit\"\n dangerouslySetInnerHTML={\n Object {\n \"__html\": \"Search\",\n }\n }\n size=\"s\"\n />\n <div\n className=\"c8\"\n >\n \n <div\n className=\"c9\"\n >\n <input\n aria-describedby=\"search\"\n className=\"c10\"\n id=\"search\"\n name=\"search\"\n onChange={[Function]}\n placeholder=\"\"\n required={false}\n role=\"searchbox\"\n type=\"text\"\n value=\"\"\n />\n \n </div>\n </div>\n \n </label>\n </div>\n </div>\n </div>\n </div>\n ");
16
+ expect(tree).toMatchInlineSnapshot(`
17
+ .c6 {
18
+ font-size: 1rem;
19
+ line-height: 1rem;
20
+ text-transform: inherit;
21
+ line-height: normal;
22
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
23
+ }
24
+
25
+ .c4 {
26
+ width: 100%;
27
+ position: relative;
28
+ display: -webkit-box;
29
+ display: -webkit-flex;
30
+ display: -ms-flexbox;
31
+ display: flex;
32
+ -webkit-flex-direction: column;
33
+ -ms-flex-direction: column;
34
+ flex-direction: column;
35
+ color: #5C5C5E;
36
+ }
37
+
38
+ .c7 {
39
+ border: 0;
40
+ -webkit-clip: rect(0 0 0 0);
41
+ clip: rect(0 0 0 0);
42
+ -webkit-clip-path: inset(50%);
43
+ clip-path: inset(50%);
44
+ height: 1px;
45
+ margin: -1px;
46
+ overflow: hidden;
47
+ padding: 0;
48
+ position: absolute;
49
+ white-space: nowrap;
50
+ width: 1px;
51
+ }
52
+
53
+ .c8 {
54
+ position: relative;
55
+ font-size: 1.25rem;
56
+ }
57
+
58
+ .c9 {
59
+ position: relative;
60
+ width: 100%;
61
+ display: -webkit-box;
62
+ display: -webkit-flex;
63
+ display: -ms-flexbox;
64
+ display: flex;
65
+ -webkit-box-pack: end;
66
+ -webkit-justify-content: flex-end;
67
+ -ms-flex-pack: end;
68
+ justify-content: flex-end;
69
+ -webkit-align-items: center;
70
+ -webkit-box-align: center;
71
+ -ms-flex-align: center;
72
+ align-items: center;
73
+ }
74
+
75
+ .c10 {
76
+ position: relative;
77
+ box-sizing: border-box;
78
+ width: 100%;
79
+ height: 48px;
80
+ padding: 1rem 2.4rem 1rem 1.5rem;
81
+ background-color: #F4F3F5;
82
+ border: 1px solid;
83
+ border-color: #E1E2E3;
84
+ box-shadow: none;
85
+ -webkit-appearance: none;
86
+ -moz-appearance: none;
87
+ appearance: none;
88
+ color: #000000;
89
+ border-radius: 0.5rem;
90
+ font-size: inherit;
91
+ z-index: 2;
92
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
93
+ }
94
+
95
+ .c10:focus {
96
+ border: 1px solid #666;
97
+ }
98
+
99
+ .c0 {
100
+ width: 100%;
101
+ max-width: 1440px;
102
+ margin: auto;
103
+ }
104
+
105
+ .c1 {
106
+ margin: 1rem auto;
107
+ padding: 0 calc((4 * 0.25rem));
108
+ }
109
+
110
+ .c2 {
111
+ margin: 4rem auto;
112
+ width: 100%;
113
+ border-bottom: 4px solid #E52630;
114
+ overflow: hidden;
115
+ }
116
+
117
+ .c3 {
118
+ width: 100%;
119
+ padding: 0 0.5rem;
120
+ }
121
+
122
+ .c5 input {
123
+ padding: 13px 0;
124
+ margin: 0;
125
+ max-width: 100%;
126
+ border: 0;
127
+ outline: #E52630;
128
+ background: none;
129
+ }
130
+
131
+ .c5 input:focus {
132
+ border: 0;
133
+ }
134
+
135
+ @media (min-width:740px) {
136
+
137
+ }
138
+
139
+ @media (min-width:1024px) {
140
+
141
+ }
142
+
143
+ @media (min-width:740px) {
144
+ .c5 input {
145
+ height: 100px;
146
+ font-size: 3rem;
147
+ }
148
+ }
149
+
150
+ <div
151
+ className="c0"
152
+ >
153
+ <div
154
+ className="c1"
155
+ >
156
+ <div
157
+ className="c2"
158
+ role="search"
159
+ >
160
+ <div
161
+ className="c3"
162
+ >
163
+ <label
164
+ className="c4 c5"
165
+ htmlFor="search"
166
+ >
167
+ <span
168
+ className="c6 c7"
169
+ color="inherit"
170
+ dangerouslySetInnerHTML={
171
+ Object {
172
+ "__html": "Search",
173
+ }
174
+ }
175
+ size="s"
176
+ />
177
+ <div
178
+ className="c8"
179
+ >
180
+
181
+ <div
182
+ className="c9"
183
+ >
184
+ <input
185
+ aria-describedby="search"
186
+ className="c10"
187
+ id="search"
188
+ name="search"
189
+ onChange={[Function]}
190
+ placeholder=""
191
+ required={false}
192
+ role="searchbox"
193
+ type="text"
194
+ value=""
195
+ />
196
+
197
+ </div>
198
+ </div>
199
+
200
+ </label>
201
+ </div>
202
+ </div>
203
+ </div>
204
+ </div>
205
+ `);
17
206
  });
@@ -95,7 +95,7 @@ const SearchResult = _ref7 => {
95
95
  })), /*#__PURE__*/_react.default.createElement(CopyWrapper, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
96
96
  size: "xs",
97
97
  uppercase: true
98
- }, "".concat(type ? " ".concat(type, " |") : '', " ").concat(date)), /*#__PURE__*/_react.default.createElement(Title, {
98
+ }, `${type ? ` ${type} |` : ''} ${date}`), /*#__PURE__*/_react.default.createElement(Title, {
99
99
  size: "xl",
100
100
  tag: "h3",
101
101
  uppercase: true