@thecb/components 10.2.4-beta.10 → 10.2.4-beta.11
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 +18 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -12
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/link-card/LinkCard.js +1 -1
- package/src/components/molecules/link-card/LinkCard.stories.js +3 -3
- package/src/components/molecules/link-card/LinkCard.styled.js +11 -4
- package/src/components/molecules/link-card/LinkCard.theme.js +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -42465,11 +42465,11 @@ var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(
|
|
|
42465
42465
|
|
|
42466
42466
|
var activeBackgroundColor$1 = {
|
|
42467
42467
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
42468
|
-
disabled: "".concat(
|
|
42468
|
+
disabled: "".concat(TRANSPARENT)
|
|
42469
42469
|
};
|
|
42470
42470
|
var backgroundColor$9 = {
|
|
42471
42471
|
primary: "".concat(LINK_WATER),
|
|
42472
|
-
disabled: "".concat(
|
|
42472
|
+
disabled: "".concat(TRANSPARENT)
|
|
42473
42473
|
};
|
|
42474
42474
|
var borderColor$5 = {
|
|
42475
42475
|
primary: "".concat(MOON_RAKER),
|
|
@@ -42489,28 +42489,34 @@ var fallbackValues$I = {
|
|
|
42489
42489
|
var Container = styled(Box).withConfig({
|
|
42490
42490
|
displayName: "LinkCardstyled__Container",
|
|
42491
42491
|
componentId: "sc-l5q1h2-0"
|
|
42492
|
-
})(["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:
|
|
42492
|
+
})(["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:", ";box-shadow:", ";}&:hover:not(:active){", "}&:active{", "}"], function (_ref) {
|
|
42493
42493
|
var theme = _ref.theme;
|
|
42494
|
-
return "\n background-color: ".concat(theme.backgroundColor, ";\n border: 1px solid ").concat(theme.
|
|
42494
|
+
return "\n background-color: ".concat(theme.backgroundColor, ";\n border: 1px solid ").concat(theme.color, ";\n ");
|
|
42495
42495
|
}, function (_ref2) {
|
|
42496
|
-
var
|
|
42497
|
-
return
|
|
42496
|
+
var disabled = _ref2.disabled;
|
|
42497
|
+
return disabled ? "default" : "pointer";
|
|
42498
42498
|
}, function (_ref3) {
|
|
42499
|
-
var
|
|
42499
|
+
var disabled = _ref3.disabled;
|
|
42500
|
+
return "\n ".concat(disabled ? "none" : "0px 0px 0px 0px rgba(41, 42, 51, 0.1),\n 0px 5px 11px 0px rgba(41, 42, 51, 0.1),\n 0px 4px 19px 0px rgba(41, 42, 51, 0.09),\n 0px 27px 26px 0px rgba(41, 42, 51, 0.05),\n 0px 56px 31px 0px rgba(41, 42, 51, 0.01),\n 0px 80px 33px 0px rgba(41, 42, 51, 0);", "\n ");
|
|
42501
|
+
}, function (_ref4) {
|
|
42502
|
+
var theme = _ref4.theme;
|
|
42503
|
+
return "border: 1px solid ".concat(theme.borderColor, ";");
|
|
42504
|
+
}, function (_ref5) {
|
|
42505
|
+
var theme = _ref5.theme;
|
|
42500
42506
|
return "\n background-color: ".concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.color, ";\n ;");
|
|
42501
42507
|
});
|
|
42502
42508
|
var Title$2 = styled(Heading$1).withConfig({
|
|
42503
42509
|
displayName: "LinkCardstyled__Title",
|
|
42504
42510
|
componentId: "sc-l5q1h2-1"
|
|
42505
|
-
})(["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 (
|
|
42506
|
-
var theme =
|
|
42511
|
+
})(["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 (_ref6) {
|
|
42512
|
+
var theme = _ref6.theme;
|
|
42507
42513
|
return "color: ".concat(theme.color, ";");
|
|
42508
42514
|
});
|
|
42509
42515
|
var Subtitle = styled(Paragraph$1).withConfig({
|
|
42510
42516
|
displayName: "LinkCardstyled__Subtitle",
|
|
42511
42517
|
componentId: "sc-l5q1h2-2"
|
|
42512
|
-
})(["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 (
|
|
42513
|
-
var theme =
|
|
42518
|
+
})(["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 (_ref7) {
|
|
42519
|
+
var theme = _ref7.theme;
|
|
42514
42520
|
return "color: ".concat(theme.color, ";");
|
|
42515
42521
|
});
|
|
42516
42522
|
var Footer = styled(Stack).withConfig({
|
|
@@ -42557,7 +42563,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42557
42563
|
hoverStyles: extraHoverStyles,
|
|
42558
42564
|
activeStyles: extraActiveStyles,
|
|
42559
42565
|
onClick: disabled ? noop : onClick,
|
|
42560
|
-
|
|
42566
|
+
disabled: disabled
|
|
42561
42567
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42562
42568
|
childGap: 0,
|
|
42563
42569
|
bottomItem: 3,
|