@hellobetterdigitalnz/selwynui 0.0.1-85 → 0.0.1-87

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-85",
3
+ "version": "0.0.1-87",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -21,8 +21,8 @@ const ContentBlockTemplate: Story = {
21
21
  render: () => {
22
22
  return (
23
23
  <>
24
- <ElementHolder paddingTop={'lg'} paddingBottom={"lg"} pillar="visit" level="light">
25
- <ContentBlock spacingTop={"lg"}>
24
+ <ElementHolder paddingTop={'lg'} paddingBottom={"lg"} pillar="taste" level="light">
25
+ <ContentBlock spacingTop={"lg"} pillar="taste" level="light">
26
26
  <h3>Privacy policy</h3>
27
27
  <h5>Lorem ipsum dolor sit amet, consectetur adipiscing elit</h5>
28
28
  <p>
@@ -7,12 +7,14 @@ import cslx from "clsx";
7
7
  const ContentBlock = (props: ContentBlockProps) => {
8
8
  const {
9
9
  children,
10
- pillar = 'visit',
10
+ pillar,
11
+ level,
11
12
  spacingTop = 'none',
13
+
12
14
  } = props;
13
15
 
14
16
  const className = cslx(
15
- styles.contentBlock ,
17
+ styles.contentBlock,
16
18
  `${pillar}`,
17
19
  {
18
20
  [styles[`contentBlock--pt-${spacingTop}`]]: spacingTop,
@@ -20,14 +22,15 @@ const ContentBlock = (props: ContentBlockProps) => {
20
22
  );
21
23
 
22
24
  return (
23
- <div className={className}>
25
+ <div className={`${className} ${pillar === "taste" && level === "light" ? styles.contentTasteLight : ""
26
+ }`}>
24
27
  <Container>
25
- <div className={`typography ${styles.contentBlockWrapper}` }>
28
+ <div className={`typography ${styles.contentBlockWrapper} `}>
26
29
  {children}
27
30
  </div>
28
31
  </Container>
29
32
  <div className={styles.heroSvg}>
30
- <LargeHeroIcon/>
33
+ <LargeHeroIcon />
31
34
  </div>
32
35
  </div>
33
36
  );
@@ -3,6 +3,7 @@ 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';
6
7
  watermark?: boolean;
7
8
  spacingTop?: "none" | "xsm" |"sm" | "md" | "lg" ;
8
9
  spacingBottom?: "none" | "xsm" |"sm" | "md" | "lg" | "xl";
@@ -1,5 +1,6 @@
1
1
  .contentBlock {
2
2
  position: relative;
3
+ // color: var(--pathway-card-hover-text);
3
4
 
4
5
  &Inner {
5
6
  //position: relative;
@@ -61,6 +62,10 @@
61
62
 
62
63
  }
63
64
 
65
+ .contentTasteLight {
66
+ color: var(--color-visit);
67
+ }
68
+
64
69
  .heroSvg {
65
70
  position: absolute;
66
71
  z-index: 5;
@@ -20,8 +20,8 @@
20
20
 
21
21
  &.solid{
22
22
  &:hover:enabled , &:hover{
23
- background: var(--color-text-btn);
24
- color: var(--color-bg-btn);
23
+ background: var(--color-bg-btn-hover);
24
+ color: var(--color-text-btn-hover);
25
25
  }
26
26
  }
27
27