@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.
@@ -1,55 +1,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
- //}
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 = 'visit'
13
+ pillar ,
14
+ paddingTop,
15
+ paddingBottom,
16
+ level,
17
+ marginBottom,
18
+ marginTop
13
19
  } = props;
14
20
 
15
21
  return (
16
- <div className={`${styles.kpi} ${pillar ? pillar : ""}`}>
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?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
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
- .pillarIcon{
68
- position: absolute;
69
- top: 0;
70
- right: 0;
71
- bottom: 0;
66
+ }
72
67
 
73
- svg{
74
- height: 577px;
75
- width: 639px;
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
+ }
@@ -10,7 +10,7 @@
10
10
 
11
11
  .header {
12
12
  font-size: var(--font-size-h3);
13
- font-weight: var();
13
+ //font-weight: var();
14
14
  margin: 0 0 72px 0;
15
15
  }
16
16
  .cardsGrid {
@@ -4,7 +4,7 @@
4
4
  position: relative;
5
5
 
6
6
  &Inner {
7
- position: relative;
7
+ //position: relative;
8
8
  z-index: 1;
9
9
  }
10
10