@comicrelief/component-library 8.51.5 → 8.51.7

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.
@@ -39,9 +39,23 @@ const cardsWithRenderedBody = exampleData.cards.map(card => ({
39
39
  external: null
40
40
  }));
41
41
 
42
+ const cardsFour = [
43
+ ...cardsWithRenderedBody,
44
+ {
45
+ ...cardsWithRenderedBody[0],
46
+ id: 'example-4th-card',
47
+ title: 'Fourth card',
48
+ body: (
49
+ <Text tag="p">
50
+ Fourth card (added for layout testing)
51
+ </Text>
52
+ )
53
+ }
54
+ ];
55
+
42
56
  const data = {
43
57
  ...exampleData,
44
- cards: cardsWithRenderedBody,
58
+ cards: cardsFour,
45
59
  layout: "3 columns",
46
60
  carouselOfCards: true,
47
61
  backgroundColour: "grey_medium",
@@ -56,7 +70,7 @@ const data = {
56
70
 
57
71
  ### CTAMultiCard: Desktop Grid View (2 columns) with large padding
58
72
 
59
- **NB: One card contains a lot of lorem ipsum text to demonstrate that all cards will match the height of the tallest sibling card. In mobile view, this example displays as a vertical stack (non-carousel). This example also demonstrates larger vertical padding via `paddingAbove` / `paddingBelow` set to `4rem`, so it will appear with more space above and below the cards.**
73
+ **NB: One card contains a lot of lorem ipsum text to demonstrate that all cards will match the height of the tallest sibling card. In mobile view, this example displays as a carousel. This example also demonstrates larger vertical padding via `paddingAbove` / `paddingBelow` set to `4rem`, so it will appear with more space above and below the cards.**
60
74
 
61
75
  ```js
62
76
  import CTAMultiCard from './CTAMultiCard';
@@ -96,7 +110,7 @@ const cardsWithRenderedBody = exampleData.cards.map((card, index) => ({
96
110
  const dataWithLongText = {
97
111
  ...exampleData,
98
112
  layout: "2 columns",
99
- carouselOfCards: false,
113
+ carouselOfCards: true,
100
114
  backgroundColour: "Transparent",
101
115
  cards: cardsWithRenderedBody,
102
116
  paddingAbove: '4rem',
@@ -108,7 +122,7 @@ const dataWithLongText = {
108
122
  </div>;
109
123
  ```
110
124
 
111
- ### CTAMultiCard: Wrap behaviour (3 columns, non-carousel)
125
+ ### CTAMultiCard: Wrap behaviour (3 columns)
112
126
 
113
127
  ```js
114
128
  import CTAMultiCard from './CTAMultiCard';
@@ -133,12 +147,36 @@ const cardsWithRenderedBody = exampleData.cards.map((card, index) => ({
133
147
  external: null
134
148
  }));
135
149
 
150
+ const cardsFive = [
151
+ ...cardsWithRenderedBody,
152
+ {
153
+ ...cardsWithRenderedBody[0],
154
+ id: 'wrap-example-3',
155
+ title: 'Fourth card',
156
+ body: (
157
+ <Text tag="p">
158
+ Short body text (4)
159
+ </Text>
160
+ )
161
+ },
162
+ {
163
+ ...cardsWithRenderedBody[1],
164
+ id: 'wrap-example-4',
165
+ title: 'Fifth card',
166
+ body: (
167
+ <Text tag="p">
168
+ Short body text (5)
169
+ </Text>
170
+ )
171
+ }
172
+ ];
173
+
136
174
  const dataWrapExample = {
137
175
  ...exampleData,
138
176
  layout: "3 columns",
139
- carouselOfCards: false,
177
+ carouselOfCards: true,
140
178
  backgroundColour: "rnd_26_light_pink",
141
- cards: cardsWithRenderedBody,
179
+ cards: cardsFive,
142
180
  paddingAbove: '2rem',
143
181
  paddingBelow: '2rem'
144
182
  };
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
@@ -8,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
8
7
  exports.default = exports.CardsSection = exports.CardsQueryWrapper = exports.CardsInner = void 0;
9
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
9
  var _allBreakpoints = require("../../../../theme/shared/allBreakpoints");
11
- var _spacing = _interopRequireDefault(require("../../../../theme/shared/spacing"));
12
10
  const CardsQueryWrapper = exports.CardsQueryWrapper = _styledComponents.default.div.withConfig({
13
11
  displayName: "CTAMultiCardstyle__CardsQueryWrapper",
14
12
  componentId: "sc-gsdqzv-0"
@@ -36,44 +34,55 @@ const CardsSection = exports.CardsSection = _styledComponents.default.div.withCo
36
34
  const CardsInner = exports.CardsInner = _styledComponents.default.div.withConfig({
37
35
  displayName: "CTAMultiCardstyle__CardsInner",
38
36
  componentId: "sc-gsdqzv-2"
39
- })(["width:100%;max-width:1152px;margin:0 auto;", ""], _ref4 => {
37
+ })(["width:100%;max-width:1152px;margin:0 auto;", " ", ""], _ref4 => {
40
38
  let {
41
39
  isCarousel
42
40
  } = _ref4;
43
- return !isCarousel && (0, _styledComponents.css)(["@media (max-width:", "px){padding-left:", ";padding-right:", ";}"], _allBreakpoints.breakpointValues.M - 1, (0, _spacing.default)('md'), (0, _spacing.default)('md'));
41
+ return !isCarousel && (0, _styledComponents.css)(["padding-inline:1rem;@media ", "{padding-inline:2rem;}"], _ref5 => {
42
+ let {
43
+ theme
44
+ } = _ref5;
45
+ return theme.allBreakpoints('M');
46
+ });
47
+ }, _ref6 => {
48
+ let {
49
+ isCarousel
50
+ } = _ref6;
51
+ return isCarousel && (0, _styledComponents.css)(["@media ", "{padding-inline:2rem;}@media (min-width:", "px){padding-inline:0;}"], _ref7 => {
52
+ let {
53
+ theme
54
+ } = _ref7;
55
+ return theme.allBreakpoints('M');
56
+ }, _allBreakpoints.breakpointValues.XL);
44
57
  });
45
58
  const CardsContainer = _styledComponents.default.div.withConfig({
46
59
  displayName: "CTAMultiCardstyle__CardsContainer",
47
60
  componentId: "sc-gsdqzv-3"
48
- })(["display:flex;flex-direction:column;width:100%;gap:1rem;@media ", "{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:stretch;width:fit-content;max-width:100%;margin:0 auto;}@media ", "{column-gap:2rem;}", " @media ", "{", "}"], _ref5 => {
61
+ })(["display:flex;flex-direction:column;width:100%;gap:1rem;@media ", "{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:stretch;width:100%;max-width:100%;margin:0 auto;}@media ", "{column-gap:2rem;}", " ", ""], _ref8 => {
49
62
  let {
50
63
  theme
51
- } = _ref5;
64
+ } = _ref8;
52
65
  return theme.allBreakpoints('M');
53
- }, _ref6 => {
66
+ }, _ref9 => {
54
67
  let {
55
68
  theme
56
- } = _ref6;
69
+ } = _ref9;
57
70
  return theme.allBreakpoints('L');
58
- }, _ref7 => {
71
+ }, _ref10 => {
72
+ let {
73
+ columns,
74
+ useSplideCarousel
75
+ } = _ref10;
76
+ return !useSplideCarousel && columns === 2 && (0, _styledComponents.css)(["@media (min-width:", "px){display:grid;grid-template-columns:repeat(2,minmax(443px,560px));justify-content:center;align-items:stretch;column-gap:2rem;row-gap:2rem;width:100%;max-width:100%;margin:0;& > *:last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:min(100%,560px);}}"], _allBreakpoints.breakpointValues.L);
77
+ }, _ref11 => {
59
78
  let {
60
79
  isCarousel
61
- } = _ref7;
62
- return isCarousel && (0, _styledComponents.css)(["@media (max-width:", "px){", "}"], _allBreakpoints.breakpointValues.L - 1, _ref8 => {
80
+ } = _ref11;
81
+ return isCarousel && (0, _styledComponents.css)(["@media (max-width:", "px){", "}"], _allBreakpoints.breakpointValues.L - 1, _ref12 => {
63
82
  let {
64
83
  useSplideCarousel
65
- } = _ref8;
66
- return useSplideCarousel ? (0, _styledComponents.css)(["display:block;cursor:grab;width:100%;margin:0;max-width:100%;padding:0.75rem 1rem;gap:0;.splide__list{align-items:stretch;}.splide__slide{display:flex;height:auto;}"]) : (0, _styledComponents.css)(["flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;width:100%;margin:0;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;padding:0.75rem 1rem;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"]);
84
+ } = _ref12;
85
+ return useSplideCarousel ? (0, _styledComponents.css)(["display:block;cursor:grab;width:100%;margin:0;max-width:100%;padding:0.75rem 1rem;gap:0;.splide,.splide__track{overflow:visible}.splide__list{align-items:stretch;}.splide__slide{display:flex;height:auto;}"]) : (0, _styledComponents.css)(["flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;width:100%;margin:0;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;padding:0.75rem 1rem;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"]);
67
86
  });
68
- }, _ref9 => {
69
- let {
70
- theme
71
- } = _ref9;
72
- return theme.allBreakpoints('XL');
73
- }, _ref10 => {
74
- let {
75
- columns
76
- } = _ref10;
77
- return columns === 3 && (0, _styledComponents.css)(["display:grid;justify-content:center;align-items:stretch;grid-template-columns:repeat(3,minmax(0,363px));width:100%;margin:0 auto;max-width:100%;"]);
78
87
  });
79
88
  var _default = exports.default = CardsContainer;
@@ -8,16 +8,16 @@ exports[`handles data structure correctly 1`] = `
8
8
  className="CTAMultiCardstyle__CardsSection-sc-gsdqzv-1 ehBqzi"
9
9
  >
10
10
  <div
11
- className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 bvGqKF"
11
+ className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 jdzsUU"
12
12
  >
13
13
  <div
14
- className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 dneGvf"
14
+ className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 icRtAH"
15
15
  >
16
16
  <div
17
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
17
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 jZEwGJ"
18
18
  >
19
19
  <a
20
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
20
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
21
21
  href="/test"
22
22
  rel={null}
23
23
  target="self"
@@ -95,7 +95,7 @@ exports[`handles data structure correctly 1`] = `
95
95
  </a>
96
96
  </div>
97
97
  <div
98
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
98
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 jZEwGJ"
99
99
  >
100
100
  <div
101
101
  className="CTACardstyle__CardLink-sc-si8xx1-4 lbrljd"
@@ -141,10 +141,10 @@ exports[`handles data structure correctly 1`] = `
141
141
  </div>
142
142
  </div>
143
143
  <div
144
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
144
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 jZEwGJ"
145
145
  >
146
146
  <a
147
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
147
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
148
148
  href="/test"
149
149
  rel={null}
150
150
  target="self"
@@ -222,10 +222,10 @@ exports[`handles data structure correctly 1`] = `
222
222
  </a>
223
223
  </div>
224
224
  <div
225
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
225
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 jZEwGJ"
226
226
  >
227
227
  <a
228
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
228
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
229
229
  href="/test-no-image"
230
230
  rel={null}
231
231
  target="self"
@@ -291,16 +291,16 @@ exports[`renders 2 columns layout correctly 1`] = `
291
291
  className="CTAMultiCardstyle__CardsSection-sc-gsdqzv-1 eznbgX"
292
292
  >
293
293
  <div
294
- className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 bvGqKF"
294
+ className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 kjrrbi"
295
295
  >
296
296
  <div
297
- className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 jZvayd"
297
+ className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 bWeGAp"
298
298
  >
299
299
  <div
300
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iBfhjM"
300
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 xdzCi"
301
301
  >
302
302
  <a
303
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
303
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
304
304
  href="/test"
305
305
  rel={null}
306
306
  target="self"
@@ -378,7 +378,7 @@ exports[`renders 2 columns layout correctly 1`] = `
378
378
  </a>
379
379
  </div>
380
380
  <div
381
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iBfhjM"
381
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 xdzCi"
382
382
  >
383
383
  <div
384
384
  className="CTACardstyle__CardLink-sc-si8xx1-4 lbrljd"
@@ -424,10 +424,10 @@ exports[`renders 2 columns layout correctly 1`] = `
424
424
  </div>
425
425
  </div>
426
426
  <div
427
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iBfhjM"
427
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 xdzCi"
428
428
  >
429
429
  <a
430
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
430
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
431
431
  href="/test"
432
432
  rel={null}
433
433
  target="self"
@@ -505,10 +505,10 @@ exports[`renders 2 columns layout correctly 1`] = `
505
505
  </a>
506
506
  </div>
507
507
  <div
508
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iBfhjM"
508
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 xdzCi"
509
509
  >
510
510
  <a
511
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
511
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
512
512
  href="/test-no-image"
513
513
  rel={null}
514
514
  target="self"
@@ -574,16 +574,16 @@ exports[`renders carousel mode correctly 1`] = `
574
574
  className="CTAMultiCardstyle__CardsSection-sc-gsdqzv-1 eznbgX"
575
575
  >
576
576
  <div
577
- className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 bDNuWh"
577
+ className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 kjrrbi"
578
578
  >
579
579
  <div
580
- className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 gPXAnw"
580
+ className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 eomXiE"
581
581
  >
582
582
  <div
583
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 hIVGPb"
583
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
584
584
  >
585
585
  <a
586
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
586
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
587
587
  href="/test"
588
588
  rel={null}
589
589
  target="self"
@@ -661,7 +661,7 @@ exports[`renders carousel mode correctly 1`] = `
661
661
  </a>
662
662
  </div>
663
663
  <div
664
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 hIVGPb"
664
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
665
665
  >
666
666
  <div
667
667
  className="CTACardstyle__CardLink-sc-si8xx1-4 lbrljd"
@@ -707,10 +707,10 @@ exports[`renders carousel mode correctly 1`] = `
707
707
  </div>
708
708
  </div>
709
709
  <div
710
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 hIVGPb"
710
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
711
711
  >
712
712
  <a
713
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
713
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
714
714
  href="/test"
715
715
  rel={null}
716
716
  target="self"
@@ -788,10 +788,10 @@ exports[`renders carousel mode correctly 1`] = `
788
788
  </a>
789
789
  </div>
790
790
  <div
791
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 hIVGPb"
791
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
792
792
  >
793
793
  <a
794
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
794
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
795
795
  href="/test-no-image"
796
796
  rel={null}
797
797
  target="self"
@@ -857,16 +857,16 @@ exports[`renders correctly with data prop 1`] = `
857
857
  className="CTAMultiCardstyle__CardsSection-sc-gsdqzv-1 eznbgX"
858
858
  >
859
859
  <div
860
- className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 bvGqKF"
860
+ className="CTAMultiCardstyle__CardsInner-sc-gsdqzv-2 kjrrbi"
861
861
  >
862
862
  <div
863
- className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 dneGvf"
863
+ className="CTAMultiCardstyle__CardsContainer-sc-gsdqzv-3 eomXiE"
864
864
  >
865
865
  <div
866
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
866
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
867
867
  >
868
868
  <a
869
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
869
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
870
870
  href="/test"
871
871
  rel={null}
872
872
  target="self"
@@ -944,7 +944,7 @@ exports[`renders correctly with data prop 1`] = `
944
944
  </a>
945
945
  </div>
946
946
  <div
947
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
947
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
948
948
  >
949
949
  <div
950
950
  className="CTACardstyle__CardLink-sc-si8xx1-4 lbrljd"
@@ -990,10 +990,10 @@ exports[`renders correctly with data prop 1`] = `
990
990
  </div>
991
991
  </div>
992
992
  <div
993
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
993
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
994
994
  >
995
995
  <a
996
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
996
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
997
997
  href="/test"
998
998
  rel={null}
999
999
  target="self"
@@ -1071,10 +1071,10 @@ exports[`renders correctly with data prop 1`] = `
1071
1071
  </a>
1072
1072
  </div>
1073
1073
  <div
1074
- className="CTACardstyle__CardWrapper-sc-si8xx1-5 iHfpaV"
1074
+ className="CTACardstyle__CardWrapper-sc-si8xx1-5 eieQSs"
1075
1075
  >
1076
1076
  <a
1077
- className="CTACardstyle__CardLink-sc-si8xx1-4 cQAxla"
1077
+ className="CTACardstyle__CardLink-sc-si8xx1-4 eIrLL"
1078
1078
  href="/test-no-image"
1079
1079
  rel={null}
1080
1080
  target="self"
@@ -5,7 +5,7 @@
5
5
  "layout": "3 columns",
6
6
  "columnsOnMd": false,
7
7
  "paddingOptions": "Both Off",
8
- "carouselOfCards": false,
8
+ "carouselOfCards": true,
9
9
  "cards": [
10
10
  {
11
11
  "id": "fd8ef3fc-7d0d-531b-b2d2-9ac5f40d3d14",
@@ -47,7 +47,7 @@ const exampleCard = {
47
47
  external: null
48
48
  };
49
49
 
50
- <div style={{ padding: '2rem', background: '#E1E2E3' }}>
50
+ <div style={{ background: '#E1E2E3' }}>
51
51
  <CTASingleCard data={{ card: exampleCard, backgroundColour: 'Transparent', paddingAbove: '1rem', paddingBelow: '2rem' }} />
52
52
  </div>;
53
53
  ```
@@ -63,7 +63,7 @@ const exampleCard = {
63
63
  label: 'Example Label',
64
64
  body: (
65
65
  <Text tag="p">
66
- Single card with background colour set on the full-width section
66
+ Single card
67
67
  </Text>
68
68
  ),
69
69
  link: "/test",
@@ -76,7 +76,7 @@ const exampleCard = {
76
76
  external: null
77
77
  };
78
78
 
79
- <div style={{ padding: '2rem', background: '#E1E2E3' }}>
79
+ <div style={{ background: '#E1E2E3' }}>
80
80
  <CTASingleCard data={{ card: exampleCard, backgroundColour: 'grey_medium', paddingAbove: '1rem', paddingBelow: '2rem' }} />
81
81
  </div>;
82
82
  ```
@@ -95,7 +95,7 @@ const exampleCardWithLongText = {
95
95
  body: (
96
96
  <>
97
97
  <Text tag="p">
98
- 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. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
98
+ Single card with background colour set on the full-width section
99
99
  </Text>
100
100
  <Text tag="p">
101
101
  Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
@@ -9,7 +9,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
  const SingleCardSection = exports.SingleCardSection = _styledComponents.default.div.withConfig({
10
10
  displayName: "CTASingleCardstyle__SingleCardSection",
11
11
  componentId: "sc-15wjhr6-0"
12
- })(["padding-top:", ";padding-bottom:", ";width:100%;background:", ";"], _ref => {
12
+ })(["padding-top:", ";padding-bottom:", ";padding-inline:1rem;@media ", "{padding-inline:2rem;}@media ", "{padding-inline:4rem;}width:100%;background:", ";"], _ref => {
13
13
  let {
14
14
  paddingAbove
15
15
  } = _ref;
@@ -20,10 +20,20 @@ const SingleCardSection = exports.SingleCardSection = _styledComponents.default.
20
20
  } = _ref2;
21
21
  return paddingBelow;
22
22
  }, _ref3 => {
23
+ let {
24
+ theme
25
+ } = _ref3;
26
+ return theme.breakpoints2026('M');
27
+ }, _ref4 => {
28
+ let {
29
+ theme
30
+ } = _ref4;
31
+ return theme.breakpoints2026('L');
32
+ }, _ref5 => {
23
33
  let {
24
34
  theme,
25
35
  backgroundColor
26
- } = _ref3;
36
+ } = _ref5;
27
37
  return theme.color(backgroundColor);
28
38
  });
29
39
  const SingleCardInner = exports.SingleCardInner = _styledComponents.default.div.withConfig({
@@ -131,13 +131,13 @@ exports[`renders correctly with data prop 1`] = `
131
131
  }
132
132
 
133
133
  .c3 img {
134
- -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.22,1,0.36,1);
135
- -webkit-transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
136
- transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
134
+ -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
135
+ -webkit-transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
136
+ transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
137
137
  }
138
138
 
139
139
  .c2 {
140
- width: 100%;
140
+ width: auto;
141
141
  -webkit-flex-shrink: 0;
142
142
  -ms-flex-negative: 0;
143
143
  flex-shrink: 0;
@@ -191,7 +191,6 @@ exports[`renders correctly with data prop 1`] = `
191
191
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
192
192
  font-size: 14px;
193
193
  color: #969598;
194
- margin-bottom: 1rem;
195
194
  }
196
195
 
197
196
  .c12 {
@@ -218,6 +217,7 @@ exports[`renders correctly with data prop 1`] = `
218
217
  .c0 {
219
218
  padding-top: 1rem;
220
219
  padding-bottom: 2rem;
220
+ padding-inline: 1rem;
221
221
  width: 100%;
222
222
  background: transparent;
223
223
  }
@@ -337,6 +337,9 @@ exports[`renders correctly with data prop 1`] = `
337
337
  -webkit-transform-origin: center;
338
338
  -ms-transform-origin: center;
339
339
  transform-origin: center;
340
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
341
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
342
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
340
343
  }
341
344
 
342
345
  .c3:hover,
@@ -351,9 +354,9 @@ exports[`renders correctly with data prop 1`] = `
351
354
  }
352
355
 
353
356
  .c3:hover .c4 img {
354
- -webkit-transform: scale(1.11);
355
- -ms-transform: scale(1.11);
356
- transform: scale(1.11);
357
+ -webkit-transform: scale(1.06);
358
+ -ms-transform: scale(1.06);
359
+ transform: scale(1.06);
357
360
  }
358
361
 
359
362
  .c3:hover .c13 {
@@ -411,6 +414,18 @@ exports[`renders correctly with data prop 1`] = `
411
414
  }
412
415
  }
413
416
 
417
+ @media (min-width:740px) {
418
+ .c0 {
419
+ padding-inline: 2rem;
420
+ }
421
+ }
422
+
423
+ @media (min-width:1024px) {
424
+ .c0 {
425
+ padding-inline: 4rem;
426
+ }
427
+ }
428
+
414
429
  <div
415
430
  className="c0"
416
431
  >
@@ -607,13 +622,13 @@ exports[`renders correctly without image 1`] = `
607
622
  }
608
623
 
609
624
  .c3 img {
610
- -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.22,1,0.36,1);
611
- -webkit-transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
612
- transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
625
+ -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
626
+ -webkit-transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
627
+ transition: transform 0.3s cubic-bezier(0.65,-0.19,0.37,1.16);
613
628
  }
614
629
 
615
630
  .c2 {
616
- width: 100%;
631
+ width: auto;
617
632
  -webkit-flex-shrink: 0;
618
633
  -ms-flex-negative: 0;
619
634
  flex-shrink: 0;
@@ -667,7 +682,6 @@ exports[`renders correctly without image 1`] = `
667
682
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
668
683
  font-size: 14px;
669
684
  color: #969598;
670
- margin-bottom: 1rem;
671
685
  }
672
686
 
673
687
  .c8 {
@@ -694,6 +708,7 @@ exports[`renders correctly without image 1`] = `
694
708
  .c0 {
695
709
  padding-top: 1rem;
696
710
  padding-bottom: 2rem;
711
+ padding-inline: 1rem;
697
712
  width: 100%;
698
713
  background: transparent;
699
714
  }
@@ -775,6 +790,9 @@ exports[`renders correctly without image 1`] = `
775
790
  -webkit-transform-origin: center;
776
791
  -ms-transform-origin: center;
777
792
  transform-origin: center;
793
+ -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
794
+ -webkit-transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
795
+ transition: transform 0.4s cubic-bezier(0.68,-1.15,0.265,2.35);
778
796
  }
779
797
 
780
798
  .c3:hover,
@@ -843,6 +861,18 @@ exports[`renders correctly without image 1`] = `
843
861
  }
844
862
  }
845
863
 
864
+ @media (min-width:740px) {
865
+ .c0 {
866
+ padding-inline: 2rem;
867
+ }
868
+ }
869
+
870
+ @media (min-width:1024px) {
871
+ .c0 {
872
+ padding-inline: 4rem;
873
+ }
874
+ }
875
+
846
876
  <div
847
877
  className="c0"
848
878
  >