@hellobetterdigitalnz/selwynui 0.0.1-53 → 0.0.1-55
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +452 -451
- package/dist/index.es.js.map +1 -1
- package/dist/selwynui.css +1 -1
- package/package.json +1 -1
- package/src/Components/DataDisplay/CarouselBlock/CarouselBlock.tsx +38 -36
- package/src/Components/DataDisplay/CarouselBlock/carouselBlock.module.scss +42 -36
- package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +1 -1
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +0 -1
- package/src/Components/DataDisplay/slider.scss +0 -1
|
@@ -25,44 +25,46 @@ const CarouselBlock = (props : CarouselBlockProps) =>{
|
|
|
25
25
|
|
|
26
26
|
return <div className={`${styles.carousel} carouselBlock`}>
|
|
27
27
|
<Container>
|
|
28
|
-
<div className={styles.
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
<div className={styles.carouselWrapper}>
|
|
29
|
+
<div className={styles.carouselTitle}>
|
|
30
|
+
<h3>{title}</h3>
|
|
31
|
+
<div className={styles.actions}>
|
|
32
|
+
<button
|
|
33
|
+
className="custom-arrow prev"
|
|
34
|
+
onClick={() => sliderRef.current?.slickPrev()}
|
|
35
|
+
aria-label="Previous"
|
|
36
|
+
>
|
|
37
|
+
<CaretLeft type="thin" />
|
|
38
|
+
</button>
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<Slider ref={sliderRef} {...settings}>
|
|
49
|
-
{cards.map((card, index) => (
|
|
50
|
-
<div className={styles.card}>
|
|
51
|
-
<DetailsCard
|
|
52
|
-
key={index}
|
|
53
|
-
title={card.title}
|
|
54
|
-
date={card.date}
|
|
55
|
-
description={card.description}
|
|
56
|
-
image={card.image}
|
|
57
|
-
link={card.link}
|
|
58
|
-
pillar={card.pillar}
|
|
59
|
-
variation={'long'}
|
|
60
|
-
/>
|
|
40
|
+
<button
|
|
41
|
+
className="custom-arrow next"
|
|
42
|
+
onClick={() => sliderRef.current?.slickNext()}
|
|
43
|
+
aria-label="Next"
|
|
44
|
+
>
|
|
45
|
+
<CaretRight type="thin" />
|
|
46
|
+
</button>
|
|
61
47
|
</div>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
</div>
|
|
49
|
+
<Slider ref={sliderRef} {...settings}>
|
|
50
|
+
{cards.map((card, index) => (
|
|
51
|
+
<div className={styles.card}>
|
|
52
|
+
<DetailsCard
|
|
53
|
+
key={index}
|
|
54
|
+
title={card.title}
|
|
55
|
+
date={card.date}
|
|
56
|
+
description={card.description}
|
|
57
|
+
image={card.image}
|
|
58
|
+
link={card.link}
|
|
59
|
+
pillar={card.pillar}
|
|
60
|
+
variation={'long'}
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
))}
|
|
64
|
+
</Slider>
|
|
65
|
+
<div className={styles.btn}>
|
|
66
|
+
{action}
|
|
67
|
+
</div>
|
|
66
68
|
</div>
|
|
67
69
|
</Container>
|
|
68
70
|
</div>
|
|
@@ -1,54 +1,60 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
h3{
|
|
10
|
-
font-size: 36px;
|
|
11
|
-
line-height: 1;
|
|
12
|
-
font-weight: 700;
|
|
13
|
-
padding: 12px;
|
|
1
|
+
.carousel{
|
|
2
|
+
.carouselWrapper{
|
|
3
|
+
width: 100%;
|
|
14
4
|
}
|
|
15
5
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
.carouselTitle{
|
|
7
|
+
margin: -12px;
|
|
8
|
+
margin-bottom: 70px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
23
13
|
|
|
24
14
|
h3{
|
|
25
|
-
font-size:
|
|
15
|
+
font-size: 36px;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
padding: 12px;
|
|
26
19
|
}
|
|
27
20
|
|
|
28
|
-
|
|
21
|
+
.actions{
|
|
22
|
+
padding: 12px;
|
|
23
|
+
}
|
|
29
24
|
|
|
30
|
-
}
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
margin-right: 16px;
|
|
35
|
-
}
|
|
26
|
+
@media screen and (min-width: 992px) {
|
|
27
|
+
margin-bottom: 84px;
|
|
36
28
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
29
|
+
h3{
|
|
30
|
+
font-size: var(--font-size-h3);
|
|
31
|
+
}
|
|
41
32
|
|
|
42
|
-
|
|
33
|
+
}
|
|
43
34
|
|
|
44
|
-
.card {
|
|
45
|
-
width: 456px !important;
|
|
46
|
-
margin-right: 24px;
|
|
47
35
|
}
|
|
48
36
|
|
|
37
|
+
.card{
|
|
38
|
+
width: 312px !important;
|
|
39
|
+
margin-right: 16px;
|
|
40
|
+
}
|
|
49
41
|
|
|
50
42
|
.btn{
|
|
51
|
-
margin-top:
|
|
43
|
+
margin-top: 36px;
|
|
44
|
+
display: flex;
|
|
52
45
|
}
|
|
53
46
|
|
|
47
|
+
@media screen and (min-width: 992px) {
|
|
48
|
+
|
|
49
|
+
.card {
|
|
50
|
+
width: 456px !important;
|
|
51
|
+
margin-right: 24px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
.btn{
|
|
56
|
+
margin-top: 72px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
54
60
|
}
|