@thecb/components 8.4.5-beta.7 → 8.4.5
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 +14 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/link-card/LinkCard.js +4 -15
- package/src/components/molecules/link-card/LinkCard.stories.js +5 -5
- package/src/components/molecules/link-card/LinkCard.styled.js +9 -9
package/dist/index.esm.js
CHANGED
|
@@ -42958,28 +42958,28 @@ var Container = styled(Box).withConfig({
|
|
|
42958
42958
|
displayName: "LinkCardstyled__Container",
|
|
42959
42959
|
componentId: "sc-l5q1h2-0"
|
|
42960
42960
|
})(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out;&:hover,&:active{cursor:pointer;box-shadow:0px 0px 0px 0px rgba(41,42,51,0.1),0px 5px 11px 0px rgba(41,42,51,0.1),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);}&:hover:not(:active){", "}&:active{", "}"], function (_ref) {
|
|
42961
|
-
var
|
|
42962
|
-
return "\n background-color: ".concat(
|
|
42961
|
+
var theme = _ref.theme;
|
|
42962
|
+
return "\n background-color: ".concat(theme.backgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ");
|
|
42963
42963
|
}, function (_ref2) {
|
|
42964
|
-
var
|
|
42965
|
-
return "border: 1px solid ".concat(
|
|
42964
|
+
var theme = _ref2.theme;
|
|
42965
|
+
return "border: 1px solid ".concat(theme.borderColor, ";");
|
|
42966
42966
|
}, function (_ref3) {
|
|
42967
|
-
var
|
|
42968
|
-
return "\n background-color: ".concat(
|
|
42967
|
+
var theme = _ref3.theme;
|
|
42968
|
+
return "\n background-color: ".concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.color, ";\n ;");
|
|
42969
42969
|
});
|
|
42970
42970
|
var Title$2 = styled(Heading$1).withConfig({
|
|
42971
42971
|
displayName: "LinkCardstyled__Title",
|
|
42972
42972
|
componentId: "sc-l5q1h2-1"
|
|
42973
42973
|
})(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref4) {
|
|
42974
|
-
var
|
|
42975
|
-
return "color: ".concat(
|
|
42974
|
+
var theme = _ref4.theme;
|
|
42975
|
+
return "color: ".concat(theme.color, ";");
|
|
42976
42976
|
});
|
|
42977
42977
|
var Subtitle = styled(Paragraph$1).withConfig({
|
|
42978
42978
|
displayName: "LinkCardstyled__Subtitle",
|
|
42979
42979
|
componentId: "sc-l5q1h2-2"
|
|
42980
42980
|
})(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150 %;letter-spacing:0.14px;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref5) {
|
|
42981
|
-
var
|
|
42982
|
-
return "color: ".concat(
|
|
42981
|
+
var theme = _ref5.theme;
|
|
42982
|
+
return "color: ".concat(theme.color, ";");
|
|
42983
42983
|
});
|
|
42984
42984
|
var Footer = styled(Stack).withConfig({
|
|
42985
42985
|
displayName: "LinkCardstyled__Footer",
|
|
@@ -43005,7 +43005,6 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
43005
43005
|
themeValues = _ref.themeValues,
|
|
43006
43006
|
_ref$titleVariant = _ref.titleVariant,
|
|
43007
43007
|
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant;
|
|
43008
|
-
console.log("LinkCard themeValues", themeValues);
|
|
43009
43008
|
|
|
43010
43009
|
var _useContext = useContext(ThemeContext),
|
|
43011
43010
|
isMobile = _useContext.isMobile;
|
|
@@ -43020,7 +43019,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
43020
43019
|
minWidth: isMobile ? "240px" : "288px",
|
|
43021
43020
|
minHeight: "141px",
|
|
43022
43021
|
padding: "24px",
|
|
43023
|
-
|
|
43022
|
+
theme: themeValues,
|
|
43024
43023
|
extraStyles: extraStyles,
|
|
43025
43024
|
hoverStyles: extraHoverStyles,
|
|
43026
43025
|
activeStyles: extraActiveStyles,
|
|
@@ -43038,28 +43037,27 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
43038
43037
|
width: "100%"
|
|
43039
43038
|
}, /*#__PURE__*/React.createElement(Title$2, {
|
|
43040
43039
|
variant: titleVariant,
|
|
43041
|
-
|
|
43040
|
+
theme: themeValues,
|
|
43042
43041
|
margin: 0
|
|
43043
43042
|
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
43044
43043
|
padding: "0 0 40px",
|
|
43045
43044
|
width: "100%"
|
|
43046
43045
|
}, /*#__PURE__*/React.createElement(Subtitle, {
|
|
43047
43046
|
variant: "pS",
|
|
43048
|
-
|
|
43047
|
+
theme: themeValues
|
|
43049
43048
|
}, subtitle)), /*#__PURE__*/React.createElement(Box, {
|
|
43050
43049
|
background: "transparent",
|
|
43051
43050
|
borderWidthOverride: "0 0 0 0",
|
|
43052
43051
|
padding: "0",
|
|
43053
43052
|
width: "100%"
|
|
43054
43053
|
}, /*#__PURE__*/React.createElement(Footer, {
|
|
43055
|
-
themeValues: themeValues,
|
|
43056
43054
|
direction: "row",
|
|
43057
43055
|
childGap: "6px",
|
|
43058
43056
|
justify: "space-between"
|
|
43059
43057
|
}, showLeft && !leftContent && /*#__PURE__*/React.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
|
|
43060
43058
|
};
|
|
43061
43059
|
|
|
43062
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
43060
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
43063
43061
|
|
|
43064
43062
|
var LoginForm = function LoginForm(_ref) {
|
|
43065
43063
|
var _emailErrorMessages;
|