@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.4.0-beta.4",
3
+ "version": "8.4.0-beta.6",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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={`${LINK_WATER}`}
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="16px 24px"
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={"1rem 0 0 0"}>
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;
@@ -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 = "#EBEFFB";
9
+ const LINK_WATER = "#FEFEFE";
10
10
  const WHITE = "#FFFFFF";
11
11
  const SOLITUDE_WHITE = "#EBEDF1";
12
12
  const SEASHELL_WHITE = "#F1F1F1";