@thecb/components 8.4.0-beta.1 → 8.4.0-beta.3
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 +65 -74
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +65 -74
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/link-card/LinkCard.js +57 -70
- package/src/components/molecules/link-card/LinkCard.stories.js +30 -8
- package/src/components/molecules/link-card/index.d.ts +7 -3
package/dist/index.esm.js
CHANGED
|
@@ -42837,84 +42837,75 @@ var fallbackValues$I = {
|
|
|
42837
42837
|
color: color$b
|
|
42838
42838
|
};
|
|
42839
42839
|
|
|
42840
|
+
// import ArrowRightIcon from "../../atoms/icons/ArrowRightIcon";
|
|
42841
|
+
|
|
42840
42842
|
var LinkCard = function LinkCard(_ref) {
|
|
42841
42843
|
var _ref$variant = _ref.variant,
|
|
42842
|
-
_ref$
|
|
42843
|
-
|
|
42844
|
-
_ref$
|
|
42845
|
-
|
|
42846
|
-
_ref$workflowActionNa = _ref.workflowActionName,
|
|
42847
|
-
workflowActionName = _ref$workflowActionNa === void 0 ? "Link an account" : _ref$workflowActionNa,
|
|
42844
|
+
_ref$title = _ref.title,
|
|
42845
|
+
title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
|
|
42846
|
+
_ref$subtitle = _ref.subtitle,
|
|
42847
|
+
subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
|
|
42848
42848
|
themeValues = _ref.themeValues,
|
|
42849
|
-
|
|
42850
|
-
|
|
42851
|
-
|
|
42852
|
-
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
|
|
42856
|
-
|
|
42857
|
-
|
|
42858
|
-
|
|
42859
|
-
|
|
42860
|
-
|
|
42861
|
-
|
|
42862
|
-
|
|
42863
|
-
|
|
42849
|
+
path = _ref.path,
|
|
42850
|
+
showLeft = _ref.showLeft,
|
|
42851
|
+
leftContent = _ref.leftContent,
|
|
42852
|
+
showRight = _ref.showRight,
|
|
42853
|
+
rightContent = _ref.rightContent,
|
|
42854
|
+
_ref$onClick = _ref.onClick,
|
|
42855
|
+
onClick = _ref$onClick === void 0 ? function () {
|
|
42856
|
+
return navigate(path);
|
|
42857
|
+
} : _ref$onClick;
|
|
42858
|
+
return function () {
|
|
42859
|
+
var navigate = useNavigate();
|
|
42860
|
+
var activeHoverStyles = "\n border-radius: 8px;\n cursor: pointer;\n border: 1px solid ".concat(themeValues.color, ";\n background: var(--primary-color-primary-10, #EBEFFB);\n /* Primitives/New Shadow/3-Pressed-New */\n box-shadow: 0px 0px 0px 0px rgba(41, 42, 51, 0.10), 0px 5px 11px 0px rgba(41, 42, 51, 0.10), 0px 4px 19px 0px rgba(41, 42, 51, 0.09), 0px 27px 26px 0px rgba(41, 42, 51, 0.05), 0px 56px 31px 0px rgba(41, 42, 51, 0.01), 0px 80px 33px 0px rgba(41, 42, 51, 0.00);\n .show-on-hover {color: ").concat(themeValues.color, ";}\n ");
|
|
42861
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
42862
|
+
background: "#FEFEFE" // --grays-cool-gray-00
|
|
42863
|
+
,
|
|
42864
|
+
border: "1px solid #C4CEF4;" // --primary-color-primary-30
|
|
42865
|
+
,
|
|
42866
|
+
borderRadius: "8px",
|
|
42867
|
+
dataQa: "link-card-".concat(title),
|
|
42868
|
+
width: "100%",
|
|
42869
|
+
maxWidth: "288px",
|
|
42870
|
+
minWidth: "240px",
|
|
42871
|
+
minHeight: "141px",
|
|
42872
|
+
padding: "16px 24px",
|
|
42873
|
+
extraStyles: " display: flex; flex-direction: column; align-items: flex-start; gap: 40px; flex-shrink: 0; align-self: stretch;",
|
|
42874
|
+
hoverStyles: activeHoverStyles,
|
|
42875
|
+
activeStyles: activeHoverStyles,
|
|
42876
|
+
onClick: onClick
|
|
42877
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42878
|
+
childGap: 0,
|
|
42879
|
+
bottomItem: 3,
|
|
42880
|
+
fullHeight: true
|
|
42881
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
42882
|
+
padding: "1rem 1rem 0 1rem"
|
|
42883
|
+
}, /*#__PURE__*/React.createElement(Heading$1, {
|
|
42884
|
+
variant: "h6",
|
|
42885
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
42886
|
+
color: themeValues.color,
|
|
42887
|
+
margin: 0,
|
|
42888
|
+
extraStyles: "display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch; overflow: hidden; text-overflow: ellipsis; font-family: Public Sans; font-size: 16px; font-style: normal; font-weight: 600; line-height: 150%;"
|
|
42889
|
+
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
42890
|
+
padding: "0 1rem 40px"
|
|
42891
|
+
/* minHeight={"4.25rem"}*/
|
|
42864
42892
|
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42877
|
-
|
|
42878
|
-
|
|
42879
|
-
|
|
42880
|
-
|
|
42881
|
-
minHeight: "4.25rem"
|
|
42882
|
-
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
42883
|
-
variant: "pS",
|
|
42884
|
-
color: themeValues.color,
|
|
42885
|
-
extraStyles: "overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch; /* CB Standard/Desktop/D - P Small - Regular */ font-family: Public Sans; font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; /* 21px */ letter-spacing: 0.14px;"
|
|
42886
|
-
}, workflowDescription)), /*#__PURE__*/React.createElement(Box, {
|
|
42887
|
-
background: "transparent",
|
|
42888
|
-
borderWidthOverride: "0 0 0 0",
|
|
42889
|
-
padding: "0 1rem 1rem 1rem"
|
|
42890
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42891
|
-
direction: "row",
|
|
42892
|
-
justify: "space-between"
|
|
42893
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
42894
|
-
background: "transparent",
|
|
42895
|
-
borderWidthOverride: "0 0 0 0",
|
|
42896
|
-
padding: "0"
|
|
42897
|
-
}, /*#__PURE__*/React.createElement(Badge$1, {
|
|
42898
|
-
label: "Autopay Available",
|
|
42899
|
-
Icon: AutopayIcon
|
|
42900
|
-
})), /*#__PURE__*/React.createElement(Stack, {
|
|
42901
|
-
direction: "row",
|
|
42902
|
-
childGap: "6px"
|
|
42903
|
-
}, workflowActionName === "Link an account" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text$1, {
|
|
42904
|
-
variant: "pS",
|
|
42905
|
-
color: themeValues.color,
|
|
42906
|
-
extraStyles: "text-align: right; color: transparent;",
|
|
42907
|
-
className: "show-on-hover"
|
|
42908
|
-
}, "Find"), /*#__PURE__*/React.createElement(PlusCircleIcon, {
|
|
42909
|
-
color: themeValues.color
|
|
42910
|
-
})), workflowActionName === "Pay now" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text$1, {
|
|
42911
|
-
variant: "pS",
|
|
42912
|
-
color: themeValues.color,
|
|
42913
|
-
extraStyles: "text-align: right; color: transparent;",
|
|
42914
|
-
className: "show-on-hover"
|
|
42915
|
-
}, "Pay"), /*#__PURE__*/React.createElement(ArrowRightIcon, {
|
|
42916
|
-
color: themeValues.color
|
|
42917
|
-
})))))));
|
|
42893
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
42894
|
+
variant: "pS",
|
|
42895
|
+
color: themeValues.color,
|
|
42896
|
+
extraStyles: "overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch; /* CB Standard/Desktop/D - P Small - Regular */ font-family: Public Sans; font-size: 14px; font-style: normal; font-weight: 400; line-height: 150%; /* 21px */ letter-spacing: 0.14px;"
|
|
42897
|
+
}, subtitle)), /*#__PURE__*/React.createElement(Box, {
|
|
42898
|
+
background: "transparent",
|
|
42899
|
+
borderWidthOverride: "0 0 0 0",
|
|
42900
|
+
padding: "0 1rem 1rem 1rem"
|
|
42901
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42902
|
+
direction: "row",
|
|
42903
|
+
justify: "space-between"
|
|
42904
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42905
|
+
direction: "row",
|
|
42906
|
+
childGap: "6px"
|
|
42907
|
+
}, showLeft && leftContent, showRight && rightContent)))));
|
|
42908
|
+
}();
|
|
42918
42909
|
};
|
|
42919
42910
|
|
|
42920
42911
|
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");
|