@thecb/components 8.4.5-beta.2 → 8.4.5-beta.3
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,15 +1,14 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
|
-
import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
|
|
3
2
|
import { Box, Stack } from "../../atoms/layouts";
|
|
4
|
-
import { themeComponent } from "../../../util/themeUtils";
|
|
5
|
-
import { fallbackValues } from "./LinkCard.theme";
|
|
3
|
+
// import { themeComponent } from "../../../util/themeUtils";
|
|
4
|
+
// import { fallbackValues } from "./LinkCard.theme";
|
|
6
5
|
import { ThemeContext } from "styled-components";
|
|
7
6
|
import * as Styled from "./LinkCard.styled";
|
|
8
7
|
|
|
9
8
|
const LinkCard = ({
|
|
10
9
|
title = "Test Workflow",
|
|
11
10
|
subtitle = "Link your benefit plan",
|
|
12
|
-
|
|
11
|
+
parentThemeValues,
|
|
13
12
|
showLeft,
|
|
14
13
|
leftContent,
|
|
15
14
|
showRight,
|
|
@@ -34,7 +33,7 @@ const LinkCard = ({
|
|
|
34
33
|
minWidth={isMobile ? "240px" : "288px"}
|
|
35
34
|
minHeight="141px"
|
|
36
35
|
padding="24px"
|
|
37
|
-
themeValues={
|
|
36
|
+
themeValues={parentThemeValues}
|
|
38
37
|
extraStyles={extraStyles}
|
|
39
38
|
hoverStyles={extraHoverStyles}
|
|
40
39
|
activeStyles={extraActiveStyles}
|
|
@@ -50,14 +49,14 @@ const LinkCard = ({
|
|
|
50
49
|
<Box padding={0} width="100%">
|
|
51
50
|
<Styled.Title
|
|
52
51
|
variant={titleVariant}
|
|
53
|
-
themeValues={
|
|
52
|
+
themeValues={parentThemeValues}
|
|
54
53
|
margin={0}
|
|
55
54
|
>
|
|
56
55
|
{title}
|
|
57
56
|
</Styled.Title>
|
|
58
57
|
</Box>
|
|
59
58
|
<Box padding={"0 0 40px"} width="100%">
|
|
60
|
-
<Styled.Subtitle variant="pS" themeValues={
|
|
59
|
+
<Styled.Subtitle variant="pS" themeValues={parentThemeValues}>
|
|
61
60
|
{subtitle}
|
|
62
61
|
</Styled.Subtitle>
|
|
63
62
|
</Box>
|
|
@@ -68,7 +67,7 @@ const LinkCard = ({
|
|
|
68
67
|
width="100%"
|
|
69
68
|
>
|
|
70
69
|
<Styled.Footer
|
|
71
|
-
themeValues={
|
|
70
|
+
themeValues={parentThemeValues}
|
|
72
71
|
direction="row"
|
|
73
72
|
childGap="6px"
|
|
74
73
|
justify="space-between"
|
|
@@ -84,4 +83,5 @@ const LinkCard = ({
|
|
|
84
83
|
);
|
|
85
84
|
};
|
|
86
85
|
|
|
87
|
-
export default themeComponent(LinkCard, "LinkCard", fallbackValues, "default");
|
|
86
|
+
// export default themeComponent(LinkCard, "LinkCard", fallbackValues, "default");
|
|
87
|
+
export default LinkCard;
|
|
@@ -4,6 +4,7 @@ import Paragraph from "../../atoms/paragraph";
|
|
|
4
4
|
import Stack from "../../atoms/layouts/Stack";
|
|
5
5
|
import { Box } from "../../atoms/layouts";
|
|
6
6
|
import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
|
|
7
|
+
|
|
7
8
|
export const Container = styled(Box)`
|
|
8
9
|
display: flex;
|
|
9
10
|
flex-direction: column;
|
|
@@ -14,8 +15,8 @@ export const Container = styled(Box)`
|
|
|
14
15
|
align-self: stretch;
|
|
15
16
|
border-radius: 8px;
|
|
16
17
|
${({ themeValues }) => `
|
|
17
|
-
background-color: ${themeValues.
|
|
18
|
-
border: 1px solid ${themeValues.
|
|
18
|
+
background-color: ${themeValues.cardBackgroundColor};
|
|
19
|
+
border: 1px solid ${themeValues.cardBorderColor};
|
|
19
20
|
`}
|
|
20
21
|
transition: all .2s ease-in-out;
|
|
21
22
|
|
|
@@ -31,13 +32,13 @@ export const Container = styled(Box)`
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
&:hover:not(:active) {
|
|
34
|
-
${({ themeValues }) => `border: 1px solid ${themeValues.
|
|
35
|
+
${({ themeValues }) => `border: 1px solid ${themeValues.cardBorderColor};`}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
&:active {
|
|
38
39
|
${({ themeValues }) => `
|
|
39
|
-
background-color: ${themeValues.
|
|
40
|
-
border: 1px solid ${themeValues.
|
|
40
|
+
background-color: ${themeValues.cardActiveBackgroundColor};
|
|
41
|
+
border: 1px solid ${themeValues.cardColor};
|
|
41
42
|
;`}
|
|
42
43
|
}
|
|
43
44
|
`;
|
|
@@ -53,7 +54,7 @@ export const Title = styled(Heading)`
|
|
|
53
54
|
line-height: 150%;
|
|
54
55
|
background-color: transparent;
|
|
55
56
|
font-weight: ${FONT_WEIGHT_SEMIBOLD};
|
|
56
|
-
${({ themeValues }) => `color: ${themeValues.
|
|
57
|
+
${({ themeValues }) => `color: ${themeValues.cardColor};`};
|
|
57
58
|
`;
|
|
58
59
|
|
|
59
60
|
export const Subtitle = styled(Paragraph)`
|
|
@@ -67,7 +68,7 @@ export const Subtitle = styled(Paragraph)`
|
|
|
67
68
|
line-height: 150 %;
|
|
68
69
|
letter-spacing: 0.14px;
|
|
69
70
|
font-weight: ${FONT_WEIGHT_SEMIBOLD};
|
|
70
|
-
${({ themeValues }) => `color: ${themeValues.
|
|
71
|
+
${({ themeValues }) => `color: ${themeValues.cardColor};`};
|
|
71
72
|
`;
|
|
72
73
|
|
|
73
74
|
export const Footer = styled(Stack)`
|