@hellobetterdigitalnz/selwynui 0.0.1-33 → 0.0.1-35
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/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +3 -2
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +875 -813
- package/dist/index.es.js.map +1 -1
- package/dist/selwynui.css +1 -1
- package/package.json +1 -1
- package/src/Components/DataDisplay/ChatItenaryBlock/chatItenaryBlock.module.scss +720 -720
- package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +55 -55
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +1 -2
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +20 -7
- package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +4 -2
- package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +12 -11
- package/src/Components/DataDisplay/PathwayBlock/pathwayBlock.module.scss +1 -1
- package/src/Components/Shared/ElementHolder/elementHolder.module.scss +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
.introBlock {
|
|
2
|
+
.introBlockWrapper {
|
|
3
|
+
.introBlockLeft {
|
|
4
|
+
padding: 0 0 48px 0;
|
|
5
|
+
h1 {
|
|
6
|
+
font-size: var(--font-size-h5);
|
|
7
|
+
font-weight: var(--font-weight-h3);
|
|
8
|
+
line-height: var(--line-height-h5);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.introBlockRight {
|
|
13
|
+
h1 {
|
|
14
|
+
font-size: var(--font-size-regular);
|
|
15
|
+
font-weight: var(--font-weight-body-regular);
|
|
16
|
+
line-height: var(--line-height-label);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media screen and (min-width: 992px) {
|
|
22
|
+
.introBlockWrapper {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
margin: 0 -72px;
|
|
26
|
+
|
|
27
|
+
.introBlockLeft {
|
|
28
|
+
width: 50%;
|
|
29
|
+
padding: 0 72px;
|
|
30
|
+
|
|
31
|
+
h1 {
|
|
32
|
+
font-size: var(--font-size-h4);
|
|
33
|
+
line-height: var(--line-height-h4);
|
|
34
|
+
font-weight: var(--font-weight-h4);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.introBlockRight {
|
|
39
|
+
width: 50%;
|
|
40
|
+
padding: 0 72px;
|
|
41
|
+
|
|
42
|
+
h1 {
|
|
43
|
+
font-size: var(--font-size-small);
|
|
44
|
+
line-height: var(--line-height-label);
|
|
45
|
+
font-weight: var(--font-weight-body-regular);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.introBlockVerticalLine {
|
|
50
|
+
background: var(--color-text);
|
|
51
|
+
width: 1px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -21,8 +21,8 @@ const KPIBlockTemplate: Story = {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
|
-
<ElementHolder paddingTop="sm" paddingBottom="sm" pillar="business" level="secondary">
|
|
25
24
|
<KPIBlock
|
|
25
|
+
pillar="live"
|
|
26
26
|
title={'Insights lorem ipsum dolor sit amet'}
|
|
27
27
|
description={'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.'}
|
|
28
28
|
stats={[
|
|
@@ -44,7 +44,6 @@ const KPIBlockTemplate: Story = {
|
|
|
44
44
|
},
|
|
45
45
|
]}
|
|
46
46
|
/>
|
|
47
|
-
</ElementHolder>
|
|
48
47
|
</>
|
|
49
48
|
)
|
|
50
49
|
}
|
|
@@ -2,6 +2,7 @@ import KPIBlockProps from "./KPIBlockProps.tsx";
|
|
|
2
2
|
import styles from './kpiBlock.module.scss';
|
|
3
3
|
import Container from "../../Shared/Container/Container.tsx";
|
|
4
4
|
import PillarIcon from "../../Shared/PillarIcon/PillarIcon.tsx";
|
|
5
|
+
import ElementHolder from "../../Shared/ElementHolder/ElementHolder.tsx";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
const KPIBlock = (props: KPIBlockProps) => {
|
|
@@ -9,12 +10,24 @@ const KPIBlock = (props: KPIBlockProps) => {
|
|
|
9
10
|
title,
|
|
10
11
|
description,
|
|
11
12
|
stats = [],
|
|
12
|
-
pillar
|
|
13
|
+
pillar ,
|
|
14
|
+
paddingTop,
|
|
15
|
+
paddingBottom,
|
|
16
|
+
level,
|
|
17
|
+
marginBottom,
|
|
18
|
+
marginTop
|
|
13
19
|
} = props;
|
|
14
20
|
|
|
15
21
|
return (
|
|
16
|
-
<
|
|
17
|
-
|
|
22
|
+
<ElementHolder
|
|
23
|
+
paddingTop={paddingTop}
|
|
24
|
+
paddingBottom={paddingBottom}
|
|
25
|
+
pillar={pillar}
|
|
26
|
+
level={level}
|
|
27
|
+
marginBottom={marginBottom}
|
|
28
|
+
marginTop={marginTop}
|
|
29
|
+
>
|
|
30
|
+
<div className={`${styles.kpi}`}>
|
|
18
31
|
<Container>
|
|
19
32
|
<div className={styles.kpiWrapper}>
|
|
20
33
|
<div className={styles.header}>
|
|
@@ -29,13 +42,13 @@ const KPIBlock = (props: KPIBlockProps) => {
|
|
|
29
42
|
</div>
|
|
30
43
|
))}
|
|
31
44
|
</div>
|
|
32
|
-
<div className={styles.pillarIcon}>
|
|
33
|
-
<PillarIcon pillar={'business'}/>
|
|
34
|
-
</div>
|
|
35
45
|
</div>
|
|
36
46
|
</Container>
|
|
37
|
-
|
|
38
47
|
</div>
|
|
48
|
+
<div className={styles.pillarIcon}>
|
|
49
|
+
<PillarIcon pillar={pillar}/>
|
|
50
|
+
</div>
|
|
51
|
+
</ElementHolder>
|
|
39
52
|
);
|
|
40
53
|
};
|
|
41
54
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import {ElementHolderProps} from "../../Shared";
|
|
2
|
+
|
|
1
3
|
interface KPIItem {
|
|
2
4
|
value: string;
|
|
3
5
|
description: string;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
|
-
interface KPIBlockProps {
|
|
8
|
+
interface KPIBlockProps extends ElementHolderProps{
|
|
7
9
|
title?: string;
|
|
8
10
|
description?: string;
|
|
9
11
|
stats?: KPIItem[];
|
|
10
|
-
pillar
|
|
12
|
+
pillar: 'main' | 'visit' | 'live' | 'business' | 'participate' | 'taste'
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export default KPIBlockProps;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.kpi {
|
|
2
|
-
position: relative;
|
|
3
2
|
|
|
4
3
|
.kpiWrapper {
|
|
5
4
|
display: flex;
|
|
@@ -64,15 +63,17 @@
|
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
|
-
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 0;
|
|
70
|
-
right: 0;
|
|
71
|
-
bottom: 0;
|
|
66
|
+
}
|
|
72
67
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
.pillarIcon{
|
|
69
|
+
position: absolute;
|
|
70
|
+
//top: 0;
|
|
71
|
+
right: 0;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
|
|
75
|
+
svg{
|
|
76
|
+
height: 577px;
|
|
77
|
+
width: 639px;
|
|
77
78
|
}
|
|
78
|
-
}
|
|
79
|
+
}
|