@hellobetterdigitalnz/selwynui 0.0.1-1 → 0.0.1-10

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.
Files changed (89) hide show
  1. package/dist/Components/DataDisplay/Accordion/Accordion.d.ts +3 -0
  2. package/dist/Components/DataDisplay/Accordion/AccordionContext.d.ts +3 -0
  3. package/dist/Components/DataDisplay/Accordion/AccordionContextInterface.d.ts +7 -0
  4. package/dist/Components/DataDisplay/Accordion/AccordionItem.d.ts +3 -0
  5. package/dist/Components/DataDisplay/Accordion/AccordionItemProps.d.ts +18 -0
  6. package/dist/Components/DataDisplay/Accordion/AccordionProps.d.ts +11 -0
  7. package/dist/Components/DataDisplay/Accordion/AccordionProvider.d.ts +3 -0
  8. package/dist/Components/DataDisplay/Accordion/AccordionProviderInterface.d.ts +7 -0
  9. package/dist/Components/DataDisplay/Accordion/accordion-bg-design.d.ts +2 -0
  10. package/dist/Components/DataDisplay/DetailsCard/DetailsCardProps.d.ts +7 -1
  11. package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +4 -4
  12. package/dist/Components/DataDisplay/Pathway/PathwayProps.d.ts +13 -4
  13. package/dist/Components/DataDisplay/PathwayBlock/PathwayBlock.d.ts +3 -0
  14. package/dist/Components/DataDisplay/PathwayBlock/PathwayBlockProps.d.ts +11 -0
  15. package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.d.ts +9 -9
  16. package/dist/Components/DataDisplay/PromoBannerBlock/brand-piller.d.ts +3 -0
  17. package/dist/Components/DataDisplay/TestimonyCard/TestimonyCard.d.ts +3 -0
  18. package/dist/Components/DataDisplay/TestimonyCard/TestimonyCardProps.d.ts +10 -0
  19. package/dist/Components/DataDisplay/index.d.ts +2 -0
  20. package/dist/Components/Form/Button/Button.d.ts +3 -0
  21. package/dist/Components/Form/Button/ButtonProps.d.ts +16 -5
  22. package/dist/Components/Layout/Header/MegaMenu/MegaMenu.d.ts +2 -1
  23. package/dist/Components/Layout/Header/MegaMenu/MegaMenuProps.d.ts +15 -1
  24. package/dist/Components/Layout/Header/MobileNavigation/MobileNavigation.d.ts +3 -0
  25. package/dist/Components/Layout/Header/MobileNavigation/MobileNavigationItem.d.ts +3 -0
  26. package/dist/Components/Layout/Header/MobileNavigation/MobileNavigationItemProps.d.ts +4 -0
  27. package/dist/Components/Layout/Header/MobileNavigation/MobileNavigationProps.d.ts +6 -0
  28. package/dist/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.d.ts +3 -0
  29. package/dist/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem.d.ts +3 -0
  30. package/dist/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItemProps.d.ts +4 -0
  31. package/dist/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationProps.d.ts +7 -0
  32. package/dist/Components/Layout/Header/MobileNavigation/MobileWhatuOverlay.d.ts +2 -0
  33. package/dist/Components/Layout/HeroBanner/HeroBannerProps.d.ts +1 -1
  34. package/dist/Components/Layout/index.d.ts +3 -1
  35. package/dist/Components/Shared/Hook/useScrollFadeIn/useScrollFadeIn.d.ts +6 -0
  36. package/dist/Components/Shared/PillarIcon/PillarIcon.d.ts +3 -0
  37. package/dist/Components/Shared/PillarIcon/PillarIconsProps.d.ts +4 -0
  38. package/dist/Components/Shared/PillarLogo/PillarLogo.d.ts +6 -0
  39. package/dist/Components/Shared/ScrollFadeIn/ScrollFadeIn.d.ts +12 -0
  40. package/dist/Components/index.d.ts +5 -0
  41. package/dist/img/accordion-image.svg +9 -0
  42. package/dist/index.cjs.js +10 -10
  43. package/dist/index.cjs.js.map +1 -1
  44. package/dist/index.d.ts +1 -5
  45. package/dist/index.es.js +1304 -677
  46. package/dist/index.es.js.map +1 -1
  47. package/dist/selwynui.css +1 -1
  48. package/package.json +2 -1
  49. package/src/Components/DataDisplay/Accordion/Accordion.tsx +15 -17
  50. package/src/Components/DataDisplay/DetailsCard/DetailsCard.stories.tsx +7 -3
  51. package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +11 -39
  52. package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +7 -1
  53. package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +10 -10
  54. package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +48 -2
  55. package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +65 -18
  56. package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +2 -1
  57. package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +140 -46
  58. package/src/Components/DataDisplay/Pathway/Pathway.stories.tsx +50 -13
  59. package/src/Components/DataDisplay/Pathway/Pathway.tsx +15 -4
  60. package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +13 -4
  61. package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +0 -2
  62. package/src/Components/DataDisplay/index.ts +5 -1
  63. package/src/Components/DataDisplay/slider.scss +2 -0
  64. package/src/Components/Form/Button/ButtonProps.tsx +1 -1
  65. package/src/Components/Form/Button/button.module.scss +0 -1
  66. package/src/Components/Layout/Footer/Footer.stories.tsx +1 -1
  67. package/src/Components/Layout/Header/Header.stories.tsx +34 -7
  68. package/src/Components/Layout/Header/HeaderRightItem.tsx +2 -2
  69. package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +1 -6
  70. package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +2 -2
  71. package/src/Components/Layout/Header/MobileNavigation/MobileNavigation.tsx +25 -0
  72. package/src/Components/Layout/Header/MobileNavigation/MobileNavigationItem.tsx +17 -0
  73. package/src/Components/Layout/Header/MobileNavigation/MobileNavigationItemProps.tsx +5 -0
  74. package/src/Components/Layout/Header/MobileNavigation/MobileNavigationProps.tsx +8 -0
  75. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx +21 -0
  76. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItem.tsx +17 -0
  77. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationItemProps.tsx +5 -0
  78. package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigationProps.tsx +9 -0
  79. package/src/Components/Layout/Header/MobileNavigation/MobileWhatuOverlay.tsx +18 -0
  80. package/src/Components/Layout/Header/MobileNavigation/mobileNavigation.module.scss +62 -0
  81. package/src/Components/Layout/Header/header.module.scss +16 -2
  82. package/src/Components/Layout/Header/header.scss +15 -0
  83. package/src/Components/Layout/HeroBanner/HeroBanner.tsx +10 -0
  84. package/src/Components/Layout/HeroBanner/HeroBannerProps.tsx +1 -1
  85. package/src/Components/Layout/HeroBanner/heroBanner.module.scss +92 -18
  86. package/src/Components/Layout/index.ts +1 -2
  87. package/src/Components/Shared/Container/container.module.scss +3 -3
  88. package/src/Components/index.ts +5 -0
  89. package/dist/index.es.d.ts +0 -2
@@ -0,0 +1,9 @@
1
+ import {ReactNode} from "react";
2
+
3
+ interface MobileSubNavigationProps {
4
+ children?:ReactNode;
5
+ extraClass?:string;
6
+ pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste'
7
+ }
8
+
9
+ export default MobileSubNavigationProps;
@@ -0,0 +1,18 @@
1
+ const MobileWhatuOverlay = () =>{
2
+ return <svg xmlns="http://www.w3.org/2000/svg" width="741" height="340" viewBox="0 0 741 340" fill="none">
3
+ <g opacity="0.1">
4
+ <path opacity="0.5" d="M0 113.209C68.1991 113.209 123.5 163.901 123.5 226.417H0V113.209Z" fill="currentColor"/>
5
+ <path opacity="0.25" d="M247 113.209C178.801 113.209 123.5 163.901 123.5 226.417H247V113.209Z" fill="currentColor"/>
6
+ <path opacity="0.5" d="M741 226.417C672.801 226.417 617.5 175.725 617.5 113.209H741V226.417Z" fill="currentColor"/>
7
+ <path opacity="0.75" d="M123.5 226.416C191.699 226.416 247 277.109 247 339.624H123.5V226.416Z" fill="currentColor"/>
8
+ <path opacity="0.5" d="M247 339.624C315.199 339.624 370.5 288.932 370.5 226.416H247V339.624Z" fill="currentColor"/>
9
+ <path opacity="0.25" d="M494 339.625C425.801 339.625 370.5 288.932 370.5 226.417H494V339.625Z" fill="currentColor"/>
10
+ <path opacity="0.75" d="M617.5 226.417C549.301 226.417 494 277.109 494 339.625H617.5V226.417Z" fill="currentColor"/>
11
+ <path opacity="0.25" d="M494 0.000656128C562.199 0.000656128 617.5 50.6932 617.5 113.209H494V0.000656128Z" fill="currentColor"/>
12
+ <path opacity="0.5" d="M370.5 226.417C438.699 226.417 494 175.725 494 113.209H370.5V226.417Z" fill="currentColor"/>
13
+ <path opacity="0.75" d="M247 113.208C315.199 113.208 370.5 62.5158 370.5 0H247V113.208Z" fill="currentColor"/>
14
+ </g>
15
+ </svg>
16
+ }
17
+
18
+ export default MobileWhatuOverlay
@@ -0,0 +1,62 @@
1
+ .mobileNavigation{
2
+ position: absolute;
3
+ top: 61px;
4
+ right: 0;
5
+ left: 0;
6
+ height: calc(100vh - 59px);
7
+ background: var(--header-bg);
8
+ border-radius: 0 0 200px 0;
9
+ overflow-x: hidden;
10
+
11
+ .mobileNavigationWrapper{
12
+ padding-top: 48px;
13
+ list-style: none;
14
+ }
15
+
16
+ .mobileNavItemWrapper{
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: space-between;
20
+ cursor: pointer;
21
+ color: var(--header-color);
22
+ transition: all 0.3s ease-in-out;
23
+
24
+ svg {
25
+ margin-left: 16px;
26
+ transition: transform 0.3s ease-in-out;
27
+ }
28
+
29
+ &:hover {
30
+ svg {
31
+ animation: wiggle 0.6s ease-in-out infinite;
32
+ }
33
+ }
34
+
35
+ h6{
36
+ font-size: var(--font-size-h6);
37
+ line-height: var(--line-height-h6);
38
+ font-weight: var(--font-weight-h6);
39
+ }
40
+
41
+ }
42
+
43
+ }
44
+
45
+ .svg{
46
+ position: absolute;
47
+ left: 0;
48
+ bottom: 0;
49
+ right: 0;
50
+ color: var(--header-color);
51
+
52
+ svg{
53
+ width: 100%;
54
+ }
55
+
56
+ }
57
+
58
+ @keyframes wiggle {
59
+ 0%, 100% { transform: translateX(0); }
60
+ 25% { transform: translateX(-4px); }
61
+ 75% { transform: translateX(4px); }
62
+ }
@@ -1,11 +1,13 @@
1
1
  .header{
2
2
  background: var(--header-bg);
3
+ backdrop-filter: blur(10px);
4
+ border-bottom: 1px solid var(--color-taste);
3
5
 
4
6
  .headerWrapper{
5
7
  display: flex;
6
8
  align-items: flex-end;
7
9
  justify-content: space-between;
8
- min-height: 96px;
10
+ min-height: 60px;
9
11
  }
10
12
 
11
13
  .headerLogo{
@@ -32,7 +34,7 @@
32
34
  }
33
35
 
34
36
  .headerBottomItemHolder{
35
- padding: 0 12px 30px 12px;
37
+ padding: 0 12px 12px 12px;
36
38
  transition: all 0.3s ease-in;
37
39
 
38
40
  a{
@@ -90,6 +92,7 @@
90
92
 
91
93
 
92
94
  @media screen and (min-width: 1648px) {
95
+
93
96
  .headerRightWrapper{
94
97
  display: flex;
95
98
  align-items: center;
@@ -103,6 +106,11 @@
103
106
 
104
107
 
105
108
  @media screen and (min-width: 992px) {
109
+
110
+ .headerWrapper{
111
+ min-height: 96px;
112
+ }
113
+
106
114
  .logo {
107
115
  display: block;
108
116
  }
@@ -110,6 +118,12 @@
110
118
  .logoSmall {
111
119
  display: none;
112
120
  }
121
+
122
+
123
+ .headerBottomItemHolder {
124
+ padding-bottom:30px ;
125
+ }
126
+
113
127
  }
114
128
 
115
129
  }
@@ -0,0 +1,15 @@
1
+ .desktop-item{
2
+ display: none !important;
3
+
4
+ @media screen and (min-width: 992px) {
5
+ display: flex !important;
6
+ }
7
+ }
8
+
9
+ .mobileNavigation{
10
+ .mobileNavigationWrapper{
11
+ li{
12
+ padding: 16px;
13
+ }
14
+ }
15
+ }
@@ -24,6 +24,11 @@ const HeroBanner = (props : HeroBannerProps) => {
24
24
  </div>
25
25
  <div className={styles.heroImg}>
26
26
  <img src={backgroundImg} alt="hero banner" />
27
+ <div className={styles.clipPath}>
28
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 911 725" fill="none">
29
+ <path d="M911 0C470.407 -4.11029e-07 102.958 311.255 18.3389 725H0V0H911Z" fill="currentColor"/>
30
+ </svg>
31
+ </div>
27
32
  </div>
28
33
  </div>
29
34
  </Container>
@@ -46,6 +51,11 @@ const HeroBanner = (props : HeroBannerProps) => {
46
51
  </div>
47
52
  <div className={styles.heroImg}>
48
53
  <img src={backgroundImg} alt="hero banner" />
54
+ <div className={styles.clipPath}>
55
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 911 600" fill="none">
56
+ <path d="M911 0C516.03 -3.68467e-07 179.841 250.132 53.4912 600H0V0H911Z" fill="currentColor"/>
57
+ </svg>
58
+ </div>
49
59
  </div>
50
60
  </div>
51
61
  </Container>
@@ -4,7 +4,7 @@ interface HeroBannerProps {
4
4
  boldTitle?:string
5
5
  description?:string
6
6
  backgroundImg?:string
7
- pillar?: 'visit' | 'live' | 'business' | 'participate'
7
+ pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste'
8
8
  }
9
9
 
10
10
  export default HeroBannerProps;
@@ -59,6 +59,7 @@
59
59
 
60
60
  &Medium{
61
61
  position: relative;
62
+ overflow-x: hidden;
62
63
 
63
64
  .heroWrapper{
64
65
  display: flex;
@@ -69,8 +70,8 @@
69
70
  display: flex;
70
71
  flex-direction: column;
71
72
  justify-content: center;
72
- width: 50%;
73
- padding:120px 0;
73
+ width: 100%;
74
+ padding: 20px 0 20px 0;
74
75
  color: var(--color-text);
75
76
 
76
77
  h1{
@@ -89,31 +90,47 @@
89
90
  font-size: 24px;
90
91
  line-height: 1.3;
91
92
  font-weight: 400;
92
- margin-top: 90px;
93
+ margin-top: 72px;
93
94
  max-width: 604px;
94
95
  }
95
96
 
96
97
  }
97
98
 
98
- .heroImg{
99
- position: absolute;
100
- right: 0;
101
- width: 50%;
102
- height: 100%;
103
- border-radius: 500px 0 0 0;
99
+ .heroImg {
104
100
  overflow: hidden;
101
+ width: calc(100% + 32px);
102
+ margin-left: -16px;
103
+ margin-right: -16px;
104
+ position: relative;
105
105
 
106
- img{
107
- width: 100%;
106
+ img {
108
107
  height: 100%;
108
+ width: 100%;
109
109
  object-fit: cover;
110
110
  object-position: center;
111
+ min-height: 360px;
112
+ display: block;
111
113
  }
112
114
 
115
+ .clipPath {
116
+ position: absolute;
117
+ top: 0;
118
+ left: 0;
119
+ bottom: 0;
120
+ //width: 100%;
121
+ height: 100%;
122
+ color: var(--color-block-bg);
123
+ pointer-events: none;
113
124
 
125
+ svg{
126
+ height: 100%;
127
+ }
128
+
129
+ }
114
130
  }
115
131
 
116
132
 
133
+
117
134
  }
118
135
  }
119
136
 
@@ -122,14 +139,14 @@
122
139
 
123
140
  .heroWrapper{
124
141
  display: flex;
125
- min-height: 50vh;
142
+ min-height: 600px;
126
143
  flex-wrap: wrap;
127
144
 
128
145
  .content{
129
146
  display: flex;
130
147
  flex-direction: column;
131
148
  justify-content: center;
132
- width: 50%;
149
+ width: 100%;
133
150
  color: var(--color-text);
134
151
  padding: 100px 0;
135
152
 
@@ -156,12 +173,11 @@
156
173
  }
157
174
 
158
175
  .heroImg{
159
- position: absolute;
160
- right: 0;
161
- width: 50%;
162
- height: 100%;
163
- border-radius: 500px 0 0 0;
164
176
  overflow: hidden;
177
+ width: calc(100% + 32px);
178
+ margin-left: -16px;
179
+ margin-right: -16px;
180
+ position: relative;
165
181
 
166
182
  img{
167
183
  width: 100%;
@@ -170,10 +186,68 @@
170
186
  object-position: center;
171
187
  }
172
188
 
189
+ .clipPath {
190
+ position: absolute;
191
+ top: 0;
192
+ left: 0;
193
+ bottom: 0;
194
+ width: 100%;
195
+ //height: 100%;
196
+ color: var(--color-block-bg);
197
+ pointer-events: none;
198
+
199
+ svg{
200
+ height: 100%;
201
+ }
202
+
203
+ }
204
+
205
+
206
+ }
207
+
208
+ }
209
+ }
210
+
211
+ @media screen and (min-width: 992px) {
212
+
213
+ &Medium{
214
+ .heroWrapper{
215
+
216
+ .content {
217
+ width: 50%;
218
+ padding: 60px 0;
219
+
220
+ p{
221
+ margin-top: 90px;
222
+ }
223
+
224
+ }
225
+
226
+ .heroImg{
227
+ margin-right: calc((100vw - 100%) / -1);
228
+ width: 50vw;
229
+ margin-left: 0;
230
+ }
173
231
 
174
232
  }
233
+ }
234
+
235
+ &Small{
236
+ .heroWrapper {
175
237
 
238
+ .content{
239
+ width: 50%;
240
+ padding: 10px 0;
241
+ }
242
+
243
+ .heroImg {
244
+ margin-right: calc((100vw - 100%) / -1);
245
+ width: 50vw;
246
+ margin-left: 0;
247
+ }
248
+ }
176
249
  }
250
+
177
251
  }
178
252
 
179
253
  }
@@ -9,7 +9,7 @@ export { default as FooterBottom } from './Footer/FooterBottom';
9
9
  export type { default as FooterBottomProps } from './Footer/FooterBottomProps';
10
10
  export { default as FooterBottomLeft } from './Footer/FooterBottomLeft';
11
11
  export type { default as FooterBottomLeftProps } from './Footer/FooterBottomLeftProps';
12
- export { default as FooerBottomRight } from './Footer/FooterBottomRight';
12
+ export { default as FooterBottomRight } from './Footer/FooterBottomRight';
13
13
  export type { default as FooterBottomRightProps } from './Footer/FooterBottomRightProps';
14
14
  export { default as FooterItem } from './Footer/FooterItem';
15
15
  export type {default as FooterItemProps } from './Footer/FooterItemProps';
@@ -27,6 +27,5 @@ export { default as HeroBanner } from './HeroBanner/HeroBanner';
27
27
  export type { default as HeroBannerProps } from './HeroBanner/HeroBannerProps';
28
28
 
29
29
  // Megamenu
30
-
31
30
  export { default as MegaMenu} from './Header/MegaMenu/MegaMenu.tsx'
32
31
  export type { default as MegaMenuProps } from './Header/MegaMenu/MegaMenuProps.tsx'
@@ -1,13 +1,13 @@
1
1
  .container {
2
- padding: 0px 14px 0 14px;
2
+ padding: 0px 16px 0 16px;
3
3
  margin: 0px auto;
4
4
 
5
5
  &.default{
6
- max-width: 1428px;
6
+ max-width: 1432px;
7
7
  }
8
8
 
9
9
  @media screen and (min-width: 1748px) {
10
- padding: 0px 14px 0 14px;
10
+ padding: 0px 16px 0 16px;
11
11
  }
12
12
 
13
13
  }
@@ -0,0 +1,5 @@
1
+ export * from './DataDisplay'
2
+ export * from './Form'
3
+ export * from './Icons'
4
+ export * from './Layout'
5
+ export * from './Shared'
@@ -1,2 +0,0 @@
1
- export * from './index'
2
- export {}