@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellobetterdigitalnz/selwynui",
3
- "version": "0.0.1-89",
3
+ "version": "0.0.1-92",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -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"} pillar="taste" level="light">
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={`${className} ${pillar === "taste" && level === "light" ? styles.contentTasteLight : ""
26
- }`}>
27
- <Container>
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
- // color: var(--pathway-card-hover-text);
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;
@@ -24,7 +24,7 @@ export const Primary: Story = {
24
24
 
25
25
  export const Secondary: Story = {
26
26
  args: {
27
- label: "BUTTON TEXT",
27
+ label: "Button",
28
28
  size: "default",
29
29
  level: "secondary"
30
30
  }
@@ -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
+
@@ -218,7 +218,6 @@
218
218
 
219
219
  h1 {
220
220
  font-size: var(--font-size-h3);
221
- font-weight: var(--font-weight-h1);
222
221
  line-height: var(--line-height-h3);
223
222
  }
224
223
 
@@ -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
@@ -28,6 +28,13 @@
28
28
  display: none;
29
29
  }
30
30
 
31
+ &.contentBlock {
32
+ max-width: 1520px;
33
+ .border {
34
+ background: var(--content-text);
35
+ }
36
+ }
37
+
31
38
  &.hasBorder {
32
39
  display: flex;
33
40