@thecb/components 3.5.8 → 3.5.9

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 CHANGED
@@ -37860,7 +37860,10 @@ var Timeout$1 = withWindowSize(Timeout);
37860
37860
  var WorkflowTile = function WorkflowTile(_ref) {
37861
37861
  var _ref$workflowName = _ref.workflowName,
37862
37862
  workflowName = _ref$workflowName === void 0 ? "Test Workflow" : _ref$workflowName,
37863
- workflowDescription = _ref.workflowDescription,
37863
+ _ref$workflowDescript = _ref.workflowDescription,
37864
+ workflowDescription = _ref$workflowDescript === void 0 ? "Link your benefit plan" : _ref$workflowDescript,
37865
+ _ref$workflowActionNa = _ref.workflowActionName,
37866
+ workflowActionName = _ref$workflowActionNa === void 0 ? "Search" : _ref$workflowActionNa,
37864
37867
  slug = _ref.slug;
37865
37868
  return /*#__PURE__*/React__default.createElement(Box, {
37866
37869
  background: WHITE,
@@ -37883,7 +37886,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
37883
37886
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
37884
37887
  variant: "pS",
37885
37888
  color: STORM_GREY
37886
- }, workflowDescription || "Link your benefit plan")), /*#__PURE__*/React__default.createElement(Box, {
37889
+ }, workflowDescription)), /*#__PURE__*/React__default.createElement(Box, {
37887
37890
  padding: "1.5rem 1rem",
37888
37891
  background: GRECIAN_GREY
37889
37892
  }, /*#__PURE__*/React__default.createElement(ButtonWithLink, {
@@ -37892,7 +37895,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
37892
37895
  fontWeight: FONT_WEIGHT_SEMIBOLD,
37893
37896
  fontSize: "1.125rem",
37894
37897
  borderRadius: "0px",
37895
- text: "Link Benefits",
37898
+ text: workflowActionName,
37896
37899
  minWidth: "100%",
37897
37900
  url: "/service/".concat(slug),
37898
37901
  extraStyles: "width: 100%;"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "3.5.8",
3
+ "version": "3.5.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -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%;`}