@nuskin/foundation-ui-components 1.30.0 → 1.30.2
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/common/card/CardButton.tsx +8 -10
- package/src/common/card/NsAwardCard.tsx +27 -29
- package/src/common/card/NsBrandWrapper.tsx +16 -18
- package/src/common/card/NsCheckoutCard.tsx +46 -48
- package/src/common/card/NsHeroCardLevel2.tsx +44 -46
- package/src/common/card/NsIconText.tsx +32 -34
- package/src/common/card/NsPost.tsx +53 -49
- package/src/common/card/NsSmallFullCard.tsx +47 -49
- package/src/common/card/NsXLargeCard.tsx +43 -45
- package/src/common/image/BynderMedia.tsx +14 -13
- package/src/common/input/InputFieldWrapper.tsx +1 -1
- package/src/common/progress/NsProgress.styled.tsx +22 -23
- package/src/common/search-bar/NsSearchBar.tsx +8 -8
package/package.json
CHANGED
|
@@ -6,16 +6,14 @@ import { styled } from '@nuskin/foundation-theme';
|
|
|
6
6
|
import { NsButton, NsIcon } from '../';
|
|
7
7
|
import { NsCardButton } from './types';
|
|
8
8
|
|
|
9
|
-
const ButtonTextVariant = styled(Button)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
});
|
|
9
|
+
const ButtonTextVariant = styled(Button)`
|
|
10
|
+
padding: 0;
|
|
11
|
+
border-bottom: 1px solid black;
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
text-transform: none;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
`;
|
|
19
17
|
|
|
20
18
|
const CardButton = ({
|
|
21
19
|
url,
|
|
@@ -15,35 +15,33 @@ type NsAwardCardProps = {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const CardContainer = styled(Box)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
});
|
|
18
|
+
const CardContainer = styled(Box)`
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
position: relative;
|
|
22
|
+
align-items: center;
|
|
23
|
+
width: 160px;
|
|
24
|
+
height: auto;
|
|
25
|
+
.image {
|
|
26
|
+
width: 160px;
|
|
27
|
+
height: auto;
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
}
|
|
30
|
+
.content {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
text-align: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
margin-top: 25px;
|
|
36
|
+
}
|
|
37
|
+
.content-text: {
|
|
38
|
+
margin-top: 20px;
|
|
39
|
+
}
|
|
40
|
+
.action-link {
|
|
41
|
+
margin-top: 10px;
|
|
42
|
+
align-self: start;
|
|
43
|
+
},
|
|
44
|
+
`;
|
|
47
45
|
|
|
48
46
|
export default function NsAwardCard({
|
|
49
47
|
title,
|
|
@@ -3,24 +3,22 @@ import { PropsWithChildren, ReactElement } from 'react';
|
|
|
3
3
|
import Box from '@mui/material/Box';
|
|
4
4
|
import { styled } from '@nuskin/foundation-theme';
|
|
5
5
|
|
|
6
|
-
const Wrapper = styled(Box)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
});
|
|
6
|
+
const Wrapper = styled(Box)`
|
|
7
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
z-index: 100;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
&:hover {
|
|
16
|
+
background-color: rgba(0, 0, 0, 0);
|
|
17
|
+
& img {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
24
22
|
|
|
25
23
|
export default function NsBrandWrapper({ children }: PropsWithChildren): ReactElement {
|
|
26
24
|
return <Wrapper className="logo-wrapper">{children}</Wrapper>;
|
|
@@ -13,54 +13,52 @@ type NsCheckoutCardProps = {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const CardContainer = styled(Box)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
|
|
16
|
+
const CardContainer = styled(Box)`
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
display: flex;
|
|
19
|
+
max-width: 345px;
|
|
20
|
+
height: auto;
|
|
21
|
+
border: 2px solid #B2B2B2;
|
|
22
|
+
border-radius: 2px;
|
|
23
|
+
.left-bar {
|
|
24
|
+
width: 4px;
|
|
25
|
+
height: auto;
|
|
26
|
+
background-color: #22D55C;
|
|
27
|
+
}
|
|
28
|
+
.content {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
margin: 10px;
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
.text-content {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
.title {
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
}
|
|
42
|
+
.address {
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
}
|
|
46
|
+
.action-link {
|
|
47
|
+
color: #7123D9;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
letter-spacing: 0.7;
|
|
51
|
+
}
|
|
52
|
+
.icon-right {
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
}
|
|
55
|
+
.icon {
|
|
56
|
+
&:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
|
|
64
62
|
export default function NsCheckoutCard({ title, icon, linkText, url, className }: NsCheckoutCardProps): ReactElement {
|
|
65
63
|
const [dropdownIcon, setDropdownIcon] = useState(false);
|
|
66
64
|
const handleClick = () => {
|
|
@@ -17,52 +17,50 @@ type NsHeroCardLevel2Props = {
|
|
|
17
17
|
className?: string;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const CardContainer = styled(Box)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
});
|
|
20
|
+
const CardContainer = styled(Box)`
|
|
21
|
+
background-clip: border-box;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
word-wrap: break-word;
|
|
25
|
+
position: relative;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
height: 236px;
|
|
28
|
+
max-width: 536px;
|
|
29
|
+
.content {
|
|
30
|
+
height: 100%;
|
|
31
|
+
padding: 50px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
}
|
|
39
|
+
.bg-image {
|
|
40
|
+
object-fit: cover;
|
|
41
|
+
}
|
|
42
|
+
.brand-container {
|
|
43
|
+
background-color: #fff;
|
|
44
|
+
width: fit-content;
|
|
45
|
+
padding-left: 10px;
|
|
46
|
+
padding-right: 10px;
|
|
47
|
+
}
|
|
48
|
+
.body-title {
|
|
49
|
+
font-size: 26px;
|
|
50
|
+
line-height: 44px;
|
|
51
|
+
margin-bottom: 5px;
|
|
52
|
+
}
|
|
53
|
+
.body-text {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
margin-bottom: 5px;
|
|
57
|
+
}
|
|
58
|
+
@media (max-width:768px) {
|
|
59
|
+
.content {
|
|
60
|
+
padding: 5%;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`
|
|
66
64
|
|
|
67
65
|
const NsHeroCardLevel2 = ({
|
|
68
66
|
brandName,
|
|
@@ -9,40 +9,38 @@ type NsIconTextProps = {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const CardContainer = styled(Box)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
});
|
|
12
|
+
const CardContainer = styled(Box)`
|
|
13
|
+
background-clip: border-box;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
word-wrap: break-word;
|
|
17
|
+
position: relative;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
height: auto;
|
|
20
|
+
max-width: 222px;
|
|
21
|
+
background-color: #F5F5F5;
|
|
22
|
+
padding: 20px;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: 30px;
|
|
25
|
+
.icon {
|
|
26
|
+
display: flex;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.divider {
|
|
30
|
+
width: 182px;
|
|
31
|
+
height: 1px;
|
|
32
|
+
background: #B2B2B2;
|
|
33
|
+
}
|
|
34
|
+
.title {
|
|
35
|
+
font-size: 26px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
margin-top: -10px;
|
|
38
|
+
}
|
|
39
|
+
.text {
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
46
44
|
|
|
47
45
|
const Icon = (): ReactElement => {
|
|
48
46
|
return (
|
|
@@ -13,60 +13,64 @@ type NsPostProps = {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const CardContainer = styled(Box)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
16
|
+
const CardContainer = styled(Box)`
|
|
17
|
+
background-clip: border-box;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
word-wrap: break-word;
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
max-width: 165px;
|
|
24
|
+
height: 272px;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
.image {
|
|
27
|
+
height: 180px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
object-fit: contain
|
|
30
|
+
}
|
|
31
|
+
.content {
|
|
32
|
+
padding: 20px;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
min-height: 92px;
|
|
36
|
+
max-height: 92px;
|
|
37
|
+
justify-content: space-around
|
|
38
|
+
}
|
|
39
|
+
.body-title {
|
|
40
|
+
font-size: 18px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
display: -webkit-box;
|
|
43
|
+
-webkit-box-orient: vertical;
|
|
44
|
+
-webkit-line-clamp: 1;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
margin: 0
|
|
48
|
+
}
|
|
49
|
+
.body-text {
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
display: -webkit-box;
|
|
53
|
+
-webkit-box-orient: vertical;
|
|
54
|
+
-webkit-line-clamp: 1;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
color: #8C8C8C;
|
|
58
|
+
margin: 0
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
61
|
|
|
62
62
|
const NsPost = ({ text, body, backgroundImageDetail, className }: NsPostProps): ReactElement => {
|
|
63
63
|
return (
|
|
64
64
|
<CardContainer className={className} data-testid="post-card">
|
|
65
65
|
<BynderMedia className="image" imageDetail={backgroundImageDetail} />
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
<article className="content">
|
|
67
|
+
<h2 className="body-title" title={text}>
|
|
68
|
+
{text}
|
|
69
|
+
</h2>
|
|
70
|
+
<p className="body-text" title={body?.substring(0, 80)}>
|
|
71
|
+
{body}
|
|
72
|
+
</p>
|
|
73
|
+
</article>
|
|
70
74
|
</CardContainer>
|
|
71
75
|
);
|
|
72
76
|
};
|
|
@@ -16,55 +16,53 @@ type NsSmallFullCardProps = {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const CardContainer = styled(Box)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
67
|
-
});
|
|
19
|
+
const CardContainer = styled(Box)`
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
display: flex;
|
|
22
|
+
max-height: 320px;
|
|
23
|
+
max-width: 375px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
position: relative;
|
|
26
|
+
.image {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
object-fit: cover
|
|
30
|
+
}
|
|
31
|
+
.gradientOverlay {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
|
|
38
|
+
}
|
|
39
|
+
.content {
|
|
40
|
+
position: absolute;
|
|
41
|
+
height: 100%;
|
|
42
|
+
width: 100%;
|
|
43
|
+
padding: 40px 40px 25px 30px;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column
|
|
46
|
+
}
|
|
47
|
+
.subtitle {
|
|
48
|
+
color: #fff;
|
|
49
|
+
font-size: 11px;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
margin-top: auto
|
|
52
|
+
}
|
|
53
|
+
.title {
|
|
54
|
+
color: #fff;
|
|
55
|
+
font-size: 26px;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
margin-top: 20px
|
|
58
|
+
}
|
|
59
|
+
.cta {
|
|
60
|
+
margin-top: 20px;
|
|
61
|
+
max-width: 208px;
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
overflow: hidden
|
|
64
|
+
}
|
|
65
|
+
`
|
|
68
66
|
|
|
69
67
|
export default function NsSmallFullCard({
|
|
70
68
|
title,
|
|
@@ -16,51 +16,49 @@ type NsXLargeCardProps = {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
const CardContainer = styled(Box)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
});
|
|
19
|
+
const CardContainer = styled(Box)`
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
display: flex;
|
|
22
|
+
height: 620px;
|
|
23
|
+
width: 450px;
|
|
24
|
+
position: relative;
|
|
25
|
+
.image {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
}
|
|
30
|
+
.gradientOverlay {
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
|
|
37
|
+
}
|
|
38
|
+
.content {
|
|
39
|
+
position: absolute;
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 100%;
|
|
42
|
+
padding: 40px 40px 25px 30px;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
.subtitle {
|
|
47
|
+
color: #fff;
|
|
48
|
+
font-size: 11px;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
margin-top: auto;
|
|
51
|
+
}
|
|
52
|
+
.title {
|
|
53
|
+
color: #fff;
|
|
54
|
+
font-size: 26px;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
margin-top: 20px;
|
|
57
|
+
}
|
|
58
|
+
.cta {
|
|
59
|
+
margin-top: 20px;
|
|
60
|
+
}
|
|
61
|
+
`
|
|
64
62
|
|
|
65
63
|
export default function NsXLargeCard({
|
|
66
64
|
title,
|
|
@@ -20,19 +20,20 @@ export const BynderMedia = ({ imageDetail, suffix, className, testId, liveTag }:
|
|
|
20
20
|
let transformedMediaUrl = getUrlBasedOnDerivative(mediaUrl, imageDerivativeType, suffix ?? '');
|
|
21
21
|
if (type === 'VIDEO') {
|
|
22
22
|
return (
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
<div {...liveTag}>
|
|
24
|
+
<video
|
|
25
|
+
loop
|
|
26
|
+
autoPlay
|
|
27
|
+
muted
|
|
28
|
+
width="100%"
|
|
29
|
+
style={{ backgroundColor: bgColor, objectFit: fit, objectPosition: position }}
|
|
30
|
+
className={`${className || ''} bynder-image`}
|
|
31
|
+
data-testid={testId || 'test-bynder-video'}
|
|
32
|
+
>
|
|
33
|
+
<source src={transformedMediaUrl} type="video/mp4" />
|
|
34
|
+
<source src={transformedMediaUrl} type="video/ogg" />
|
|
35
|
+
</video>
|
|
36
|
+
</div>
|
|
36
37
|
);
|
|
37
38
|
}
|
|
38
39
|
return (
|
|
@@ -5,7 +5,7 @@ const { color, paletteColor } = ColorUtils;
|
|
|
5
5
|
const InputFieldWrapper = styled(Stack)(({ theme }: any) => {
|
|
6
6
|
return {
|
|
7
7
|
display: 'flex',
|
|
8
|
-
flexDirection: 'column',
|
|
8
|
+
flexDirection: 'column' as 'column',
|
|
9
9
|
gap: '7px',
|
|
10
10
|
'.MuiFormHelperText-root': {
|
|
11
11
|
fontSize: '11px',
|
|
@@ -32,26 +32,25 @@ export const StyledLinearProgress = styled(LinearProgress)<Omit<NsProgressProps,
|
|
|
32
32
|
},
|
|
33
33
|
})
|
|
34
34
|
);
|
|
35
|
-
export const StyledProgress = styled('div')
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
35
|
+
export const StyledProgress = styled('div')`
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-rows: 30px 30px;
|
|
38
|
+
.progress-info {
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
.progress-bar {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
.MuiSvgIcon-root {
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
height: 100%;
|
|
50
|
+
position: relative;
|
|
51
|
+
left: -4px;
|
|
52
|
+
scale: 1.3
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
|
|
@@ -12,14 +12,14 @@ const Search = styled('div')`
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
)`;
|
|
14
14
|
|
|
15
|
-
const SearchIconWrapper = styled('div')
|
|
16
|
-
height:
|
|
17
|
-
position:
|
|
18
|
-
|
|
19
|
-
display:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
const SearchIconWrapper = styled('div')`
|
|
16
|
+
height: 100%;
|
|
17
|
+
position: absolute;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
`;
|
|
23
23
|
|
|
24
24
|
const StyledInputBase = styled(InputBase)(() => ({
|
|
25
25
|
color: 'inherit',
|