@thecb/components 8.4.0-beta.4 → 8.4.0-beta.6
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/index.cjs.js +5 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/link-card/LinkCard.js +4 -14
- package/src/components/molecules/link-card/index.d.ts +0 -1
- package/src/constants/colors.js +1 -1
package/package.json
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { useNavigate } from "react-router-dom";
|
|
3
2
|
import Heading from "../../atoms/heading";
|
|
4
3
|
import Paragraph from "../../atoms/paragraph";
|
|
5
|
-
// import { Text } from "../../atoms/text";
|
|
6
|
-
// import { ROYAL_BLUE_VIVID } from "../../../constants/colors";
|
|
7
4
|
import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
|
|
8
5
|
import { Box, Stack } from "../../atoms/layouts";
|
|
9
6
|
import { themeComponent } from "../../../util/themeUtils";
|
|
10
7
|
import { fallbackValues } from "./LinkCard.theme";
|
|
11
8
|
import { LINK_WATER, MOON_RAKER } from "../../../constants/colors";
|
|
12
|
-
// import PlusCircleIcon from "../../atoms/icons/PlusCircleIcon";
|
|
13
|
-
// import ArrowRightIcon from "../../atoms/icons/ArrowRightIcon";
|
|
14
9
|
|
|
15
10
|
const LinkCard = ({
|
|
16
11
|
variant = "default",
|
|
17
12
|
title = "Test Workflow",
|
|
18
13
|
subtitle = "Link your benefit plan",
|
|
19
14
|
themeValues,
|
|
20
|
-
path,
|
|
21
15
|
showLeft,
|
|
22
16
|
leftContent,
|
|
23
17
|
showRight,
|
|
@@ -38,7 +32,7 @@ const LinkCard = ({
|
|
|
38
32
|
|
|
39
33
|
return (
|
|
40
34
|
<Box
|
|
41
|
-
background={
|
|
35
|
+
background={LINK_WATER}
|
|
42
36
|
border={`1px solid ${MOON_RAKER};`}
|
|
43
37
|
borderRadius="8px"
|
|
44
38
|
dataQa={`link-card-${title}`}
|
|
@@ -46,7 +40,7 @@ const LinkCard = ({
|
|
|
46
40
|
maxWidth="288px"
|
|
47
41
|
minWidth="240px"
|
|
48
42
|
minHeight="141px"
|
|
49
|
-
padding="
|
|
43
|
+
padding="24px"
|
|
50
44
|
extraStyles={`
|
|
51
45
|
display: flex;
|
|
52
46
|
flex-direction: column;
|
|
@@ -61,7 +55,7 @@ const LinkCard = ({
|
|
|
61
55
|
onClick={onClick}
|
|
62
56
|
>
|
|
63
57
|
<Stack childGap={0} bottomItem={3} fullHeight>
|
|
64
|
-
<Box padding={
|
|
58
|
+
<Box padding={0}>
|
|
65
59
|
<Heading
|
|
66
60
|
variant="h6"
|
|
67
61
|
weight={FONT_WEIGHT_SEMIBOLD}
|
|
@@ -94,11 +88,7 @@ const LinkCard = ({
|
|
|
94
88
|
{subtitle}
|
|
95
89
|
</Paragraph>
|
|
96
90
|
</Box>
|
|
97
|
-
<Box
|
|
98
|
-
background="transparent"
|
|
99
|
-
borderWidthOverride="0 0 0 0"
|
|
100
|
-
padding="0 1rem 1rem 1rem"
|
|
101
|
-
>
|
|
91
|
+
<Box background="transparent" borderWidthOverride="0 0 0 0" padding="0">
|
|
102
92
|
<Stack direction="row" justify="space-between">
|
|
103
93
|
<Stack direction="row" childGap="6px">
|
|
104
94
|
{showLeft && leftContent}
|
|
@@ -5,7 +5,6 @@ export interface LinkCardProps {
|
|
|
5
5
|
variant?: string; // "default" is only one
|
|
6
6
|
title?: string; // title
|
|
7
7
|
subtitle?: string; // beneath title
|
|
8
|
-
slug: string; // path segment of button on click (/service/${slug})
|
|
9
8
|
themeValues?: any;
|
|
10
9
|
showLeft?: boolean;
|
|
11
10
|
leftContent?: JSX.Element;
|
package/src/constants/colors.js
CHANGED
|
@@ -6,7 +6,7 @@ to the one generated by name-that-color.
|
|
|
6
6
|
*/
|
|
7
7
|
const BLACK = "#000000";
|
|
8
8
|
const TRANSPARENT = "transparent";
|
|
9
|
-
const LINK_WATER = "#
|
|
9
|
+
const LINK_WATER = "#FEFEFE";
|
|
10
10
|
const WHITE = "#FFFFFF";
|
|
11
11
|
const SOLITUDE_WHITE = "#EBEDF1";
|
|
12
12
|
const SEASHELL_WHITE = "#F1F1F1";
|