@comicrelief/component-library 8.53.0 → 8.53.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.
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _Picture = _interopRequireDefault(require("../../../Atoms/Picture/Picture"));
10
+ var _Link = _interopRequireDefault(require("../../../Atoms/Link/Link"));
10
11
  var _ArrowIcon = _interopRequireDefault(require("./_ArrowIcon"));
11
12
  var _alt_cta_underline = _interopRequireDefault(require("../../../../theme/shared/assets/alt_cta_underline.svg"));
12
13
  var _CTACard = require("./CTACard.style");
@@ -40,7 +41,7 @@ const CTACard = _ref => {
40
41
  isFullWidth: effectiveIsFullWidth,
41
42
  columns: columns
42
43
  }, /*#__PURE__*/_react.default.createElement(_CTACard.CardLink, Object.assign({
43
- as: hasLink ? 'a' : 'div'
44
+ as: hasLink ? _Link.default : 'div'
44
45
  }, hasLink ? {
45
46
  href: link,
46
47
  target,
@@ -74,7 +74,7 @@ import variants from './_variants';
74
74
  imageLow={defaultData.heroBannerImage}
75
75
  imageAltText="Image alt text"
76
76
  variant={variants.FULL_HEIGHT}
77
- ctaText="Register to fundraise but longer"
77
+ ctaText="Register to fundraise but very very very very long oh it's a big link this one"
78
78
  ctaUrl="http://www.comicrelief.com/register"
79
79
  ctaNewTab
80
80
  copyLeft
@@ -133,7 +133,7 @@ const CopyOuterWrapper = exports.CopyOuterWrapper = _styledComponents.default.di
133
133
  const Copy = exports.Copy = _styledComponents.default.div.withConfig({
134
134
  displayName: "HeroBannerstyle__Copy",
135
135
  componentId: "sc-2ch4eo-4"
136
- })(["width:100%;", ";border-radius:1rem;padding:", ";color:", ";background-color:", ";", ";", ";@media ", "{width:", ";}"], (0, _zIndex.default)('low'), _ref17 => {
136
+ })(["width:100%;", ";border-radius:1rem;padding:", ";color:", ";box-shadow:rgba(0,0,0,0.15) 0px 0px 1.5rem;background-color:", ";", ";", ";@media ", "{width:", ";}"], (0, _zIndex.default)('low'), _ref17 => {
137
137
  let {
138
138
  variant
139
139
  } = _ref17;
@@ -186,7 +186,7 @@ const Copy = exports.Copy = _styledComponents.default.div.withConfig({
186
186
  const CopyInnerWrapper = exports.CopyInnerWrapper = _styledComponents.default.div.withConfig({
187
187
  displayName: "HeroBannerstyle__CopyInnerWrapper",
188
188
  componentId: "sc-2ch4eo-5"
189
- })(["width:100%;height:100%;display:flex;align-items:center;@media ", "{height:auto;", ";", ";justify-content:", ";}"], _ref24 => {
189
+ })(["width:100%;height:100%;display:flex;align-items:center;border-radius:1rem;@media ", "{height:auto;", ";", ";justify-content:", ";}"], _ref24 => {
190
190
  let {
191
191
  theme
192
192
  } = _ref24;
@@ -210,7 +210,7 @@ const CopyInnerWrapper = exports.CopyInnerWrapper = _styledComponents.default.di
210
210
  const CTAWrapper = exports.CTAWrapper = _styledComponents.default.div.withConfig({
211
211
  displayName: "HeroBannerstyle__CTAWrapper",
212
212
  componentId: "sc-2ch4eo-6"
213
- })(["width:100%;height:auto;position:relative;padding:0.5rem 0;margin-top:1.25rem;", ""], _ref28 => {
213
+ })(["width:100%;height:auto;position:relative;padding:0.5rem 2.5rem 0 0;margin-top:1.25rem;", ""], _ref28 => {
214
214
  let {
215
215
  variant
216
216
  } = _ref28;
@@ -236,7 +236,7 @@ const CtaTextUnderline = exports.CtaTextUnderline = _styledComponents.default.im
236
236
  const HeroBannerLink = exports.HeroBannerLink = _styledComponents.default.a.withConfig({
237
237
  displayName: "HeroBannerstyle__HeroBannerLink",
238
238
  componentId: "sc-2ch4eo-10"
239
- })(["text-decoration:none;width:100%;@media ", "{", " width:", ";> div{width:100%;}&:hover{img.cta-text-underline{opacity:1;}}}"], _ref30 => {
239
+ })(["text-decoration:none;width:100%;> div{transition:box-shadow 0.35s;box-shadow:rgba(0,0,0,0.15) 0px 0px 1.5rem;}&:hover{> div{box-shadow:rgba(0,0,0,0.25) 0px 0px 1.5rem;}}@media ", "{", " width:", ";> div{width:100%;}&:hover{img.cta-text-underline{opacity:1;}}}"], _ref30 => {
240
240
  let {
241
241
  theme
242
242
  } = _ref30;
@@ -116,6 +116,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
116
116
  border-radius: 1rem;
117
117
  padding: 1.5rem;
118
118
  color: #000000;
119
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
119
120
  background-color: #FFFFFF;
120
121
  }
121
122
 
@@ -130,6 +131,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
130
131
  -webkit-box-align: center;
131
132
  -ms-flex-align: center;
132
133
  align-items: center;
134
+ border-radius: 1rem;
133
135
  }
134
136
 
135
137
  @media (min-width:740px) {
@@ -435,6 +437,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
435
437
  border-radius: 1rem;
436
438
  padding: 1.5rem;
437
439
  color: #000000;
440
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
438
441
  background-color: #FFFFFF;
439
442
  }
440
443
 
@@ -449,6 +452,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
449
452
  -webkit-box-align: center;
450
453
  -ms-flex-align: center;
451
454
  align-items: center;
455
+ border-radius: 1rem;
452
456
  }
453
457
 
454
458
  @media (min-width:740px) {
@@ -736,6 +740,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
736
740
  border-radius: 1rem;
737
741
  padding: 3rem 1.5rem;
738
742
  color: #000000;
743
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1.5rem;
739
744
  background-color: #2C0230;
740
745
  text-align: center;
741
746
  }
@@ -751,6 +756,7 @@ exports[`renders "Text Banner" Hero Banner correctly 1`] = `
751
756
  -webkit-box-align: center;
752
757
  -ms-flex-align: center;
753
758
  align-items: center;
759
+ border-radius: 1rem;
754
760
  }
755
761
 
756
762
  @media (min-width:740px) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.53.0",
4
+ "version": "8.53.2",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -17,10 +17,12 @@ exports[`handles data structure correctly 1`] = `
17
17
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
18
18
  >
19
19
  <a
20
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
20
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
21
+ color="red"
21
22
  href="/test"
22
23
  rel={null}
23
- target="self"
24
+ target="_self"
25
+ type="standard"
24
26
  >
25
27
  <div
26
28
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -148,10 +150,12 @@ exports[`handles data structure correctly 1`] = `
148
150
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
149
151
  >
150
152
  <a
151
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
153
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
154
+ color="red"
152
155
  href="/test"
153
156
  rel={null}
154
- target="self"
157
+ target="_self"
158
+ type="standard"
155
159
  >
156
160
  <div
157
161
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -233,10 +237,12 @@ exports[`handles data structure correctly 1`] = `
233
237
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 iSFtcX"
234
238
  >
235
239
  <a
236
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
240
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
241
+ color="red"
237
242
  href="/test-no-image"
238
243
  rel={null}
239
- target="self"
244
+ target="_self"
245
+ type="standard"
240
246
  >
241
247
  <div
242
248
  className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
@@ -312,10 +318,12 @@ exports[`renders 2 columns layout correctly 1`] = `
312
318
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
313
319
  >
314
320
  <a
315
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
321
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
322
+ color="red"
316
323
  href="/test"
317
324
  rel={null}
318
- target="self"
325
+ target="_self"
326
+ type="standard"
319
327
  >
320
328
  <div
321
329
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -443,10 +451,12 @@ exports[`renders 2 columns layout correctly 1`] = `
443
451
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
444
452
  >
445
453
  <a
446
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
454
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
455
+ color="red"
447
456
  href="/test"
448
457
  rel={null}
449
- target="self"
458
+ target="_self"
459
+ type="standard"
450
460
  >
451
461
  <div
452
462
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -528,10 +538,12 @@ exports[`renders 2 columns layout correctly 1`] = `
528
538
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 gBbrVV"
529
539
  >
530
540
  <a
531
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
541
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
542
+ color="red"
532
543
  href="/test-no-image"
533
544
  rel={null}
534
- target="self"
545
+ target="_self"
546
+ type="standard"
535
547
  >
536
548
  <div
537
549
  className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
@@ -607,10 +619,12 @@ exports[`renders carousel mode correctly 1`] = `
607
619
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
608
620
  >
609
621
  <a
610
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
622
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
623
+ color="red"
611
624
  href="/test"
612
625
  rel={null}
613
- target="self"
626
+ target="_self"
627
+ type="standard"
614
628
  >
615
629
  <div
616
630
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -738,10 +752,12 @@ exports[`renders carousel mode correctly 1`] = `
738
752
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
739
753
  >
740
754
  <a
741
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
755
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
756
+ color="red"
742
757
  href="/test"
743
758
  rel={null}
744
- target="self"
759
+ target="_self"
760
+ type="standard"
745
761
  >
746
762
  <div
747
763
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -823,10 +839,12 @@ exports[`renders carousel mode correctly 1`] = `
823
839
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
824
840
  >
825
841
  <a
826
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
842
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
843
+ color="red"
827
844
  href="/test-no-image"
828
845
  rel={null}
829
- target="self"
846
+ target="_self"
847
+ type="standard"
830
848
  >
831
849
  <div
832
850
  className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"
@@ -902,10 +920,12 @@ exports[`renders correctly with data prop 1`] = `
902
920
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
903
921
  >
904
922
  <a
905
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
923
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
924
+ color="red"
906
925
  href="/test"
907
926
  rel={null}
908
- target="self"
927
+ target="_self"
928
+ type="standard"
909
929
  >
910
930
  <div
911
931
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -1033,10 +1053,12 @@ exports[`renders correctly with data prop 1`] = `
1033
1053
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
1034
1054
  >
1035
1055
  <a
1036
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
1056
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
1057
+ color="red"
1037
1058
  href="/test"
1038
1059
  rel={null}
1039
- target="self"
1060
+ target="_self"
1061
+ type="standard"
1040
1062
  >
1041
1063
  <div
1042
1064
  className="CTACardstyle__ImageWrapper-sc-si8xx1-0 etphrL"
@@ -1118,10 +1140,12 @@ exports[`renders correctly with data prop 1`] = `
1118
1140
  className="CTACardstyle__CardWrapper-sc-si8xx1-6 kNLFm"
1119
1141
  >
1120
1142
  <a
1121
- className="CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
1143
+ className="Linkstyle__StyledLink-sc-t360tr-1 iydhqO CTACardstyle__CardLink-sc-si8xx1-5 jlRIUG"
1144
+ color="red"
1122
1145
  href="/test-no-image"
1123
1146
  rel={null}
1124
- target="self"
1147
+ target="_self"
1148
+ type="standard"
1125
1149
  >
1126
1150
  <div
1127
1151
  className="CTACardstyle__CopyAndLinkSection-sc-si8xx1-7 cCIYkv"