@hellobetterdigitalnz/selwynui 0.0.1-50 → 0.0.1-53
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/dist/Components/DataDisplay/Accordion/AccordionProps.d.ts +1 -0
- package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +3 -0
- package/dist/Components/DataDisplay/Media/Media.d.ts +1 -1
- package/dist/Components/DataDisplay/Media/MediaProps.d.ts +1 -0
- package/dist/Components/Shared/Container/ContainerProps.d.ts +4 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2143 -2148
- package/dist/index.es.js.map +1 -1
- package/dist/selwynui.css +1 -1
- package/package.json +1 -1
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +7 -19
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +7 -4
- package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +2 -2
- package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +2 -1
- package/src/Components/DataDisplay/Accordion/accordion-bg-design.tsx +5 -5
- package/src/Components/DataDisplay/Accordion/accordion.module.scss +42 -23
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.tsx +1 -1
- package/src/Components/DataDisplay/ContactsBlock/ContactsBlock.stories.tsx +1 -1
- package/src/Components/DataDisplay/ContactsBlock/contactsBlock.module.scss +6 -1
- package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +3 -1
- package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +2 -0
- package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +6 -4
- package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +4 -0
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +1 -1
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +1 -16
- package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +2 -0
- package/src/Components/DataDisplay/Media/Media.stories.tsx +2 -8
- package/src/Components/DataDisplay/Media/Media.tsx +66 -31
- package/src/Components/DataDisplay/Media/MediaProps.tsx +1 -0
- package/src/Components/DataDisplay/Media/media.module.scss +16 -0
- package/src/Components/DataDisplay/Media/{media.scss → mediaVideo.scss} +6 -0
- package/src/Components/Layout/Footer/Footer.tsx +1 -1
- package/src/Components/Layout/Footer/FooterBottom.tsx +7 -7
- package/src/Components/Layout/Footer/FooterTop.tsx +1 -1
- package/src/Components/Layout/Header/Header.stories.tsx +3 -3
- package/src/Components/Layout/Header/Header.tsx +1 -1
- package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +1 -1
- package/src/Components/Layout/Header/MobileNavigation/MobileNavigation.tsx +1 -1
- package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx +1 -1
- package/src/Components/Layout/Header/header.module.scss +11 -18
- package/src/Components/Layout/HeroBanner/HeroBanner.tsx +3 -3
- package/src/Components/Shared/Container/Container.tsx +15 -8
- package/src/Components/Shared/Container/ContainerProps.tsx +6 -1
- package/src/Components/Shared/Container/container.module.scss +22 -0
- package/src/Components/Shared/ElementHolder/elementHolder.module.scss +9 -5
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
.video-container{
|
|
2
4
|
.vjs-big-play-button{
|
|
3
5
|
background: var(--color-block-bg) !important;
|
|
6
|
+
color: var(--color-block-text);
|
|
4
7
|
height: 114px;
|
|
5
8
|
width: 114px;
|
|
6
9
|
border-radius: 100%;
|
|
7
10
|
border: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
.vjs_video_4320-dimensions.vjs-fluid:not(.vjs-audio-only-mode) {
|
|
@@ -15,7 +15,7 @@ const Footer = (props: FooterProps) => {
|
|
|
15
15
|
<footer className={`${styles.footer} ${extraClass}`}>
|
|
16
16
|
{footerTop}
|
|
17
17
|
{footerMiddle && <div className={styles.footerMiddle}>
|
|
18
|
-
<Container>
|
|
18
|
+
<Container border={false}>
|
|
19
19
|
<div className={styles.footerMiddleWrapper}>
|
|
20
20
|
<div className={styles.footerLogoContainer}>
|
|
21
21
|
<img src={logo} alt="" />
|
|
@@ -8,13 +8,13 @@ const FooterBottom = (props: FooterBottomProps) => {
|
|
|
8
8
|
} = props
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
<div className={styles.footerBottom}>
|
|
12
|
+
<Container border={false}>
|
|
13
|
+
<div className={styles.footerBottomWrapper}>
|
|
14
|
+
{children}
|
|
15
|
+
</div>
|
|
16
|
+
</Container>
|
|
17
|
+
</div>
|
|
18
18
|
)
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -61,9 +61,9 @@ const HeaderTemplate: Story = {
|
|
|
61
61
|
<HeaderRightItem extraClass={'desktop-item'}>
|
|
62
62
|
<MagnifyingGlass/>
|
|
63
63
|
</HeaderRightItem>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
{/*<HeaderRightItem extraClass={'mobile-item'}>*/}
|
|
65
|
+
{/* <List/>*/}
|
|
66
|
+
{/*</HeaderRightItem>*/}
|
|
67
67
|
</HeaderRight>
|
|
68
68
|
{/*<MobileNavigation>*/}
|
|
69
69
|
{/* <li>*/}
|
|
@@ -6,7 +6,7 @@ const Header = (props : HeaderProps) => {
|
|
|
6
6
|
const { children, logoSmall, logo, active } = props
|
|
7
7
|
|
|
8
8
|
return <header className={`${styles.header} ${active ? styles.active : ''}`}>
|
|
9
|
-
<Container>
|
|
9
|
+
<Container border={false}>
|
|
10
10
|
<div className={styles.headerWrapper}>
|
|
11
11
|
<div className={styles.headerLogo}>
|
|
12
12
|
<div className={`${styles.logo} HeaderLogo`}>
|
|
@@ -37,7 +37,7 @@ const MegaMenu = (props: MegaMenuProps) => {
|
|
|
37
37
|
return (
|
|
38
38
|
<div className={`${styles.megaMenu} megaMenu ${pillar}`}>
|
|
39
39
|
<div className={`${styles.megaMenuHolder} megaMenuHolder`}>
|
|
40
|
-
<Container>
|
|
40
|
+
<Container border={false}>
|
|
41
41
|
<div className={`${styles.megaMenuWrapper} megaMenuWrapper`}>
|
|
42
42
|
{/* LEFT */}
|
|
43
43
|
<div className={`${styles.left} left`}>
|
|
@@ -12,7 +12,7 @@ const MobileNavigation = (props : MobileNavigationProps) => {
|
|
|
12
12
|
} = props
|
|
13
13
|
|
|
14
14
|
return <div className={`${styles.mobileNavigation} ${pillar} ${extraClass} mobileNavigation`}>
|
|
15
|
-
<Container>
|
|
15
|
+
<Container border={false}>
|
|
16
16
|
<ul className={`${styles.mobileNavigationWrapper} mobileNavigationWrapper`}>
|
|
17
17
|
{children}
|
|
18
18
|
</ul>
|
package/src/Components/Layout/Header/MobileNavigation/MobileSubNavigation/MobileSubNavigation.tsx
CHANGED
|
@@ -10,7 +10,7 @@ const MobileSubNavigation = (props : MobileSubNavigationProps) => {
|
|
|
10
10
|
} = props
|
|
11
11
|
|
|
12
12
|
return <div className={`${styles.MobileSubNavigation} ${extraClass} MobileSubNavigation`}>
|
|
13
|
-
<Container>
|
|
13
|
+
<Container border={false}>
|
|
14
14
|
<ul className={`${styles.MobileSubNavigationWrapper} MobileSubNavigationWrapper`}>
|
|
15
15
|
{children}
|
|
16
16
|
</ul>
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
align-items: flex-end;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
min-height: 60px;
|
|
14
|
+
width: 100%;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.headerLogo{
|
|
@@ -33,11 +34,9 @@
|
|
|
33
34
|
.headerRightWrapper{
|
|
34
35
|
display: flex;
|
|
35
36
|
align-items: center;
|
|
36
|
-
margin: 0 -12px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.headerBottomItemHolder{
|
|
40
|
-
padding: 0 12px 12px 12px;
|
|
41
40
|
transition: all 0.3s ease-in;
|
|
42
41
|
|
|
43
42
|
a{
|
|
@@ -48,6 +47,7 @@
|
|
|
48
47
|
font-weight: 400;
|
|
49
48
|
line-height: 1.5;
|
|
50
49
|
cursor: pointer;
|
|
50
|
+
letter-spacing: -0.96px;
|
|
51
51
|
|
|
52
52
|
.icon{
|
|
53
53
|
display: flex;
|
|
@@ -96,19 +96,6 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
@media screen and (min-width: 1648px) {
|
|
100
|
-
|
|
101
|
-
.headerRightWrapper{
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
margin: 0 -28px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.headerBottomItemHolder {
|
|
108
|
-
padding: 0 28px 30px 28px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
99
|
|
|
113
100
|
@media screen and (min-width: 992px) {
|
|
114
101
|
|
|
@@ -125,9 +112,15 @@
|
|
|
125
112
|
}
|
|
126
113
|
|
|
127
114
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
115
|
+
.headerRightWrapper{
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.headerBottomItemHolder {
|
|
121
|
+
padding-bottom: 30px;
|
|
122
|
+
padding-left: 60px;
|
|
123
|
+
}
|
|
131
124
|
|
|
132
125
|
}
|
|
133
126
|
|
|
@@ -16,7 +16,7 @@ const HeroBanner = (props : HeroBannerProps) => {
|
|
|
16
16
|
${pillar ? `${pillar}` : ""}
|
|
17
17
|
`}
|
|
18
18
|
>
|
|
19
|
-
<Container>
|
|
19
|
+
<Container border={false}>
|
|
20
20
|
<div className={styles.heroWrapper}>
|
|
21
21
|
<div className={styles.content}>
|
|
22
22
|
<h1>{title} <span>{boldTitle}</span></h1>
|
|
@@ -43,7 +43,7 @@ const HeroBanner = (props : HeroBannerProps) => {
|
|
|
43
43
|
${pillar ? `${pillar}` : ""}
|
|
44
44
|
`}
|
|
45
45
|
>
|
|
46
|
-
<Container>
|
|
46
|
+
<Container border={false}>
|
|
47
47
|
<div className={styles.heroWrapper}>
|
|
48
48
|
<div className={styles.content}>
|
|
49
49
|
<h1>{title} <span>{boldTitle}</span></h1>
|
|
@@ -75,7 +75,7 @@ const HeroBanner = (props : HeroBannerProps) => {
|
|
|
75
75
|
<LargeHeroIcon/>
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
|
78
|
-
<Container>
|
|
78
|
+
<Container border={false}>
|
|
79
79
|
<div className={styles.heroWrapper}>
|
|
80
80
|
<h1>{title} <span>{boldTitle}</span></h1>
|
|
81
81
|
{description && <p>{description}</p>}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import styles from "./container.module.scss";
|
|
2
2
|
import ContainerProps from "./ContainerProps.tsx";
|
|
3
3
|
import cslx from "clsx";
|
|
4
|
-
const Container = (props : ContainerProps) =>{
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
const Container = (props: ContainerProps) => {
|
|
6
|
+
const { children, type = "default", border = true, spaceTop, spaceBottom } = props;
|
|
7
7
|
|
|
8
8
|
const className = cslx(
|
|
9
9
|
styles.container,
|
|
10
10
|
{
|
|
11
11
|
[styles.default]: type === "default",
|
|
12
|
-
|
|
12
|
+
[styles.hasBorder]: border,
|
|
13
|
+
[styles[`space-${spaceTop}`]]: spaceTop,
|
|
14
|
+
[styles[`space-${spaceBottom}`]]: spaceBottom,
|
|
15
|
+
}
|
|
16
|
+
);
|
|
13
17
|
|
|
14
|
-
return
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
+
return (
|
|
19
|
+
<div className={className}>
|
|
20
|
+
{border && <div className={styles.border}></div>}
|
|
21
|
+
{children}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
18
25
|
|
|
19
|
-
export default Container
|
|
26
|
+
export default Container;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import {ReactNode} from "react";
|
|
2
2
|
|
|
3
|
+
type SpacingOption = "none" | "xsm" |"sm" | "md" | "lg" | "xl"
|
|
4
|
+
|
|
3
5
|
interface ContainerProps {
|
|
4
6
|
children?: ReactNode
|
|
5
7
|
type?: "default"
|
|
8
|
+
border?:boolean;
|
|
9
|
+
spaceTop?: SpacingOption
|
|
10
|
+
spaceBottom?: SpacingOption
|
|
6
11
|
}
|
|
7
12
|
|
|
8
|
-
export default ContainerProps
|
|
13
|
+
export default ContainerProps;
|
|
@@ -6,6 +6,28 @@
|
|
|
6
6
|
max-width: 1520px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.border{
|
|
10
|
+
width: 1px;
|
|
11
|
+
background: var(--color-block-text);
|
|
12
|
+
//height: 100%;
|
|
13
|
+
margin-right: 32px;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
margin-top: -150px;
|
|
16
|
+
margin-bottom: -150px;
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.hasBorder{
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media screen and (min-width: 992px) {
|
|
25
|
+
.border{
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
9
31
|
@media screen and (min-width: 1748px) {
|
|
10
32
|
padding: 0px 16px 0 16px;
|
|
11
33
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
background-color: var(--color-block-bg);
|
|
3
3
|
color: var(--color-block-text);
|
|
4
4
|
position: relative;
|
|
5
|
-
overflow
|
|
5
|
+
overflow: hidden;
|
|
6
6
|
|
|
7
7
|
&Inner {
|
|
8
8
|
//position: relative;
|
|
@@ -15,19 +15,23 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&--pt-xsm {
|
|
18
|
-
padding-top:
|
|
18
|
+
padding-top: 40px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&--pt-sm {
|
|
22
|
-
padding-top:
|
|
22
|
+
padding-top: 48px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&--pt-md {
|
|
26
|
-
padding-top:
|
|
26
|
+
padding-top: 90px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&--pt-lg {
|
|
30
|
-
padding-top:
|
|
30
|
+
padding-top: 120px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--pt-xl {
|
|
34
|
+
padding-bottom: 144px;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
// Padding Bottom
|