@nuskin/foundation-ui-components 1.19.3 → 1.19.4

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": "@nuskin/foundation-ui-components",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "It is a foundation library written in react, that provides common components to all UI pages",
5
5
  "main": "src/common/index.ts",
6
6
  "repository": {
@@ -15,7 +15,7 @@ const CardContainer = styled(Box)(() => {
15
15
  return {
16
16
  backgroundColor: '#fff',
17
17
  display: 'flex',
18
- width: '345px',
18
+ maxWidth: '345px',
19
19
  height: 'auto',
20
20
  border: '2px solid #B2B2B2',
21
21
  borderRadius: '2px',
@@ -23,8 +23,8 @@ const CardContainer = styled((props: any) => <Box {...props} />)(({ imagePositio
23
23
  wordWrap: 'break-word' as 'break-word',
24
24
  position: 'relative',
25
25
  overflow: 'hidden',
26
- width: '100%',
27
- height: '500px',
26
+ maxWidth: '820px',
27
+ height: '532px',
28
28
  flexDirection: 'row',
29
29
  '.content': {
30
30
  width: '50%',
@@ -22,8 +22,8 @@ const CardContainer = styled(Box)(() => {
22
22
  wordWrap: 'break-word' as 'break-word',
23
23
  position: 'relative',
24
24
  overflow: 'hidden',
25
- height: '250px',
26
- width: '100%',
25
+ height: '236px',
26
+ maxWidth: '536px',
27
27
  '.content': {
28
28
  height: '100%',
29
29
  padding: '50px',
@@ -16,7 +16,7 @@ const CardContainer = styled(Box)(() => {
16
16
  position: 'relative',
17
17
  overflow: 'hidden',
18
18
  height: 'auto',
19
- width: '222px',
19
+ maxWidth: '222px',
20
20
  backgroundColor: '#F5F5F5',
21
21
  padding: '20px',
22
22
  justifyContent: 'center',
@@ -18,8 +18,8 @@ const CardContainer = styled(Box)(() => {
18
18
  wordWrap: 'break-word' as 'break-word',
19
19
  position: 'relative',
20
20
  overflow: 'hidden',
21
- height: '350px',
22
- width: '210px',
21
+ height: 'auto',
22
+ maxWidth: '165px',
23
23
  backgroundColor: '#fff',
24
24
  '.content': {
25
25
  paddingTop: '10px',
@@ -27,6 +27,7 @@ const CardContainer = styled(Box)(() => {
27
27
  flexDirection: 'column',
28
28
  minHeight: '80px',
29
29
  justifyContent: 'space-between',
30
+ padding: '20px',
30
31
  },
31
32
  '.body-title': {
32
33
  marginBottom: '5px',
@@ -35,10 +36,18 @@ const CardContainer = styled(Box)(() => {
35
36
  '-webkit-line-clamp': '3',
36
37
  overflow: 'hidden',
37
38
  textOverflow: 'ellipsis',
39
+ fontSize: '18px',
40
+ fontWeight: 600,
41
+ lineHeight: '22px',
42
+ fontFamily: 'Inter',
38
43
  },
39
44
  '.body-text': {
40
45
  color: '#8C8C8C',
41
- marginBottom: '5px',
46
+ margin: '0px',
47
+ fontSize: '16px',
48
+ fontWeight: 600,
49
+ lineHeight: '16px',
50
+ fontFamily: 'Inter',
42
51
  },
43
52
  };
44
53
  });
@@ -50,8 +59,12 @@ const NsPost = ({ text, body, backgroundImageUrl, backgroundImageAlt, className
50
59
  <NsImage height="auto" width="100%" alt={backgroundImageAlt} src={backgroundImageUrl} />
51
60
  </div>
52
61
  <div className="content">
53
- <NsTypography weight='normal' className="body-title" variant='h5'>{text}</NsTypography>
54
- <NsTypography className="body-text" variant='body-l'>{body}</NsTypography>
62
+ <NsTypography weight="normal" className="body-title" variant="h5">
63
+ {text}
64
+ </NsTypography>
65
+ <NsTypography className="body-text" variant="body-l">
66
+ {body}
67
+ </NsTypography>
55
68
  </div>
56
69
  </CardContainer>
57
70
  );