@thecb/components 3.5.7 → 3.5.10

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": "3.5.7",
3
+ "version": "3.5.10",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -5,7 +5,7 @@ import { themeComponent } from "../../../util/themeUtils";
5
5
  import Heading from "../../atoms/heading";
6
6
  import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
7
7
  import { Box, Cluster, Stack, Motion } from "../../atoms/layouts";
8
- import { IconChevron } from "../../../deprecated/icons";
8
+ import { ChevronIcon } from "../../atoms/icons";
9
9
  import { noop } from "../../../util/general";
10
10
 
11
11
  const CollapsibleSection = ({
@@ -95,7 +95,7 @@ const CollapsibleSection = ({
95
95
  variants={icon}
96
96
  style={{ display: "flex", alignItems: "center" }}
97
97
  >
98
- <IconChevron />
98
+ <ChevronIcon />
99
99
  </Motion>
100
100
  </Cluster>
101
101
  </Box>
@@ -1,5 +1,12 @@
1
- const backgroundColor = "#3b414d";
2
- const shadowColor = "#292A33";
1
+ const backgroundColor = {
2
+ profile: "#3b414d",
3
+ cms: "#3b414d"
4
+ };
5
+
6
+ const shadowColor = {
7
+ profile: "#292A33",
8
+ cms: "#292A33"
9
+ };
3
10
 
4
11
  export const fallbackValues = {
5
12
  backgroundColor,
@@ -36,4 +36,9 @@ const NavMenuDesktop = ({
36
36
  );
37
37
  };
38
38
 
39
- export default themeComponent(NavMenuDesktop, "NavMenu", fallbackValues);
39
+ export default themeComponent(
40
+ NavMenuDesktop,
41
+ "NavMenu",
42
+ fallbackValues,
43
+ "profile"
44
+ );
@@ -60,4 +60,9 @@ const NavMenuMobile = ({ menuContent = [], visible = false, themeValues }) => {
60
60
  );
61
61
  };
62
62
 
63
- export default themeComponent(NavMenuMobile, "NavMenu", fallbackValues);
63
+ export default themeComponent(
64
+ NavMenuMobile,
65
+ "NavMenu",
66
+ fallbackValues,
67
+ "profile"
68
+ );
@@ -14,7 +14,8 @@ import ButtonWithLink from "../../atoms/button-with-link";
14
14
  import { Box, Stack } from "../../atoms/layouts";
15
15
  const WorkflowTile = ({
16
16
  workflowName = "Test Workflow",
17
- workflowDescription,
17
+ workflowDescription = "Link your benefit plan",
18
+ workflowActionName = "Search",
18
19
  slug
19
20
  }) => (
20
21
  <Box
@@ -35,7 +36,7 @@ const WorkflowTile = ({
35
36
  </Box>
36
37
  <Box padding={"0 1rem 1rem 1rem"} minHeight={"4.25rem"}>
37
38
  <Paragraph variant="pS" color={STORM_GREY}>
38
- {workflowDescription || `Link your benefit plan`}
39
+ {workflowDescription}
39
40
  </Paragraph>
40
41
  </Box>
41
42
  <Box padding={"1.5rem 1rem"} background={GRECIAN_GREY}>
@@ -45,7 +46,7 @@ const WorkflowTile = ({
45
46
  fontWeight={FONT_WEIGHT_SEMIBOLD}
46
47
  fontSize={"1.125rem"}
47
48
  borderRadius={"0px"}
48
- text={"Link Benefits"}
49
+ text={workflowActionName}
49
50
  minWidth={"100%"}
50
51
  url={`/service/${slug}`}
51
52
  extraStyles={`width: 100%;`}
@@ -11,7 +11,7 @@ export const AlertSuccessIcon = () => (
11
11
  <defs>
12
12
  <path
13
13
  d="M12,24 C18.627417,24 24,18.627417 24,12 C24,5.372583 18.627417,0 12,0 C5.372583,0 0,5.372583 0,12 C0,18.627417 5.372583,24 12,24 Z M16.9497475,7.46446609 L18.363961,8.87867966 L9.87867966,17.363961 L5.63603897,13.1213203 L7.05025253,11.7071068 L9.87803897,14.5354661 L16.9497475,7.46446609 Z"
14
- id="path-1"
14
+ id="alertSuccess"
15
15
  ></path>
16
16
  </defs>
17
17
  <g
@@ -27,13 +27,13 @@ export const AlertSuccessIcon = () => (
27
27
  transform="translate(24.000000, 34.000000)"
28
28
  >
29
29
  <mask id="mask-2" fill="white">
30
- <use xlinkHref="#path-1"></use>
30
+ <use xlinkHref="#alertSuccess"></use>
31
31
  </mask>
32
32
  <use
33
33
  id="background-2"
34
34
  fill="#47B872"
35
35
  fillRule="nonzero"
36
- xlinkHref="#path-1"
36
+ xlinkHref="#alertSuccess"
37
37
  ></use>
38
38
  </g>
39
39
  </g>