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