@hellobetterdigitalnz/selwynui 0.0.1-89 → 0.0.1-92
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/package.json +1 -1
- package/src/Components/DataDisplay/ContentBlock/ContentBlock.stories.tsx +1 -1
- package/src/Components/DataDisplay/ContentBlock/ContentBlock.tsx +5 -8
- package/src/Components/DataDisplay/ContentBlock/ContentBlockProps.tsx +0 -1
- package/src/Components/DataDisplay/ContentBlock/contentBlock.module.scss +1 -5
- package/src/Components/Form/Button/Button.stories.tsx +1 -1
- package/src/Components/Form/Button/button.module.scss +9 -1
- package/src/Components/Layout/Footer/footer.module.scss +0 -1
- package/src/Components/Shared/Container/Container.tsx +1 -0
- package/src/Components/Shared/Container/ContainerProps.tsx +1 -1
- package/src/Components/Shared/Container/container.module.scss +7 -0
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ const ContentBlockTemplate: Story = {
|
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
24
|
<ElementHolder paddingTop={'lg'} paddingBottom={"lg"} pillar="taste" level="light">
|
|
25
|
-
<ContentBlock spacingTop={"lg"}
|
|
25
|
+
<ContentBlock spacingTop={"lg"}>
|
|
26
26
|
<h3>Privacy policy</h3>
|
|
27
27
|
<h5>Lorem ipsum dolor sit amet, consectetur adipiscing elit</h5>
|
|
28
28
|
<p>
|
|
@@ -8,13 +8,11 @@ const ContentBlock = (props: ContentBlockProps) => {
|
|
|
8
8
|
const {
|
|
9
9
|
children,
|
|
10
10
|
pillar,
|
|
11
|
-
level,
|
|
12
11
|
spacingTop = 'none',
|
|
13
|
-
|
|
14
12
|
} = props;
|
|
15
13
|
|
|
16
14
|
const className = cslx(
|
|
17
|
-
styles.contentBlock,
|
|
15
|
+
styles.contentBlock ,
|
|
18
16
|
`${pillar}`,
|
|
19
17
|
{
|
|
20
18
|
[styles[`contentBlock--pt-${spacingTop}`]]: spacingTop,
|
|
@@ -22,15 +20,14 @@ const ContentBlock = (props: ContentBlockProps) => {
|
|
|
22
20
|
);
|
|
23
21
|
|
|
24
22
|
return (
|
|
25
|
-
<div className={
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<div className={`typography ${styles.contentBlockWrapper} `}>
|
|
23
|
+
<div className={className}>
|
|
24
|
+
<Container type="contentBlock">
|
|
25
|
+
<div className={`typography ${styles.contentBlockWrapper}` }>
|
|
29
26
|
{children}
|
|
30
27
|
</div>
|
|
31
28
|
</Container>
|
|
32
29
|
<div className={styles.heroSvg}>
|
|
33
|
-
<LargeHeroIcon
|
|
30
|
+
<LargeHeroIcon/>
|
|
34
31
|
</div>
|
|
35
32
|
</div>
|
|
36
33
|
);
|
|
@@ -3,7 +3,6 @@ import {ReactNode} from "react";
|
|
|
3
3
|
interface ContentBlockProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
6
|
-
level?: 'primary' | 'secondary' | 'light';
|
|
7
6
|
watermark?: boolean;
|
|
8
7
|
spacingTop?: "none" | "xsm" |"sm" | "md" | "lg" ;
|
|
9
8
|
spacingBottom?: "none" | "xsm" |"sm" | "md" | "lg" | "xl";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.contentBlock {
|
|
2
2
|
position: relative;
|
|
3
|
-
|
|
3
|
+
color: var(--content-text);
|
|
4
4
|
|
|
5
5
|
&Inner {
|
|
6
6
|
//position: relative;
|
|
@@ -62,10 +62,6 @@
|
|
|
62
62
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.contentTasteLight {
|
|
66
|
-
color: var(--color-visit);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
.heroSvg {
|
|
70
66
|
position: absolute;
|
|
71
67
|
z-index: 5;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&.solid{
|
|
22
|
+
text-transform: uppercase;
|
|
22
23
|
&:hover:enabled , &:hover{
|
|
23
24
|
background: var(--color-bg-btn-hover);
|
|
24
25
|
color: var(--color-text-btn-hover);
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
background: transparent;
|
|
30
31
|
border:1px solid var(--color-bg-btn);
|
|
31
32
|
color: var(--color-text-btn);
|
|
33
|
+
text-transform: uppercase;
|
|
32
34
|
|
|
33
35
|
&:hover:enabled , &:hover{
|
|
34
36
|
background: var(--color-bg-btn);
|
|
@@ -89,4 +91,10 @@
|
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
&.btn-solid,
|
|
95
|
+
&.btn-hollow {
|
|
96
|
+
text-transform: uppercase;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -10,6 +10,7 @@ const Container = (props: ContainerProps) => {
|
|
|
10
10
|
[styles.default]: type === "default",
|
|
11
11
|
[styles.simpleForm]: type === "simpleForm",
|
|
12
12
|
[styles.footer]: type === "footer",
|
|
13
|
+
[styles.contentBlock]: type === "contentBlock",
|
|
13
14
|
[styles.hasBorder]: border,
|
|
14
15
|
[styles[`space-${spaceTop}`]]: spaceTop,
|
|
15
16
|
[styles[`space-${spaceBottom}`]]: spaceBottom,
|
|
@@ -4,7 +4,7 @@ type SpacingOption = "none" | "xsm" |"sm" | "md" | "lg" | "xl"
|
|
|
4
4
|
|
|
5
5
|
interface ContainerProps {
|
|
6
6
|
children?: ReactNode
|
|
7
|
-
type?: "default" | "simpleForm" | "footer"
|
|
7
|
+
type?: "default" | "simpleForm" | "footer" | "contentBlock"
|
|
8
8
|
border?:boolean;
|
|
9
9
|
spaceTop?: SpacingOption
|
|
10
10
|
spaceBottom?: SpacingOption
|