@thecb/components 10.2.4-beta.10 → 10.2.4-beta.12
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.cjs.js
CHANGED
|
@@ -42473,11 +42473,11 @@ var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(
|
|
|
42473
42473
|
|
|
42474
42474
|
var activeBackgroundColor$1 = {
|
|
42475
42475
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
42476
|
-
disabled: "".concat(
|
|
42476
|
+
disabled: "".concat(TRANSPARENT)
|
|
42477
42477
|
};
|
|
42478
42478
|
var backgroundColor$9 = {
|
|
42479
42479
|
primary: "".concat(LINK_WATER),
|
|
42480
|
-
disabled: "".concat(
|
|
42480
|
+
disabled: "".concat(TRANSPARENT)
|
|
42481
42481
|
};
|
|
42482
42482
|
var borderColor$5 = {
|
|
42483
42483
|
primary: "".concat(MOON_RAKER),
|
|
@@ -42497,28 +42497,34 @@ var fallbackValues$I = {
|
|
|
42497
42497
|
var Container = styled__default(Box).withConfig({
|
|
42498
42498
|
displayName: "LinkCardstyled__Container",
|
|
42499
42499
|
componentId: "sc-l5q1h2-0"
|
|
42500
|
-
})(["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:
|
|
42500
|
+
})(["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) {
|
|
42501
42501
|
var theme = _ref.theme;
|
|
42502
42502
|
return "\n background-color: ".concat(theme.backgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ");
|
|
42503
42503
|
}, function (_ref2) {
|
|
42504
|
-
var
|
|
42505
|
-
return
|
|
42504
|
+
var disabled = _ref2.disabled;
|
|
42505
|
+
return disabled ? "default" : "pointer";
|
|
42506
42506
|
}, function (_ref3) {
|
|
42507
|
-
var
|
|
42508
|
-
return "\n
|
|
42507
|
+
var disabled = _ref3.disabled;
|
|
42508
|
+
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 ");
|
|
42509
|
+
}, function (_ref4) {
|
|
42510
|
+
var theme = _ref4.theme;
|
|
42511
|
+
return "border: 1px solid ".concat(theme.borderColor, ";");
|
|
42512
|
+
}, function (_ref5) {
|
|
42513
|
+
var theme = _ref5.theme;
|
|
42514
|
+
return "\n background-color: ".concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ;");
|
|
42509
42515
|
});
|
|
42510
42516
|
var Title$2 = styled__default(Heading$1).withConfig({
|
|
42511
42517
|
displayName: "LinkCardstyled__Title",
|
|
42512
42518
|
componentId: "sc-l5q1h2-1"
|
|
42513
|
-
})(["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 (
|
|
42514
|
-
var theme =
|
|
42519
|
+
})(["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) {
|
|
42520
|
+
var theme = _ref6.theme;
|
|
42515
42521
|
return "color: ".concat(theme.color, ";");
|
|
42516
42522
|
});
|
|
42517
42523
|
var Subtitle = styled__default(Paragraph$1).withConfig({
|
|
42518
42524
|
displayName: "LinkCardstyled__Subtitle",
|
|
42519
42525
|
componentId: "sc-l5q1h2-2"
|
|
42520
|
-
})(["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 (
|
|
42521
|
-
var theme =
|
|
42526
|
+
})(["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) {
|
|
42527
|
+
var theme = _ref7.theme;
|
|
42522
42528
|
return "color: ".concat(theme.color, ";");
|
|
42523
42529
|
});
|
|
42524
42530
|
var Footer = styled__default(Stack).withConfig({
|
|
@@ -42565,7 +42571,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42565
42571
|
hoverStyles: extraHoverStyles,
|
|
42566
42572
|
activeStyles: extraActiveStyles,
|
|
42567
42573
|
onClick: disabled ? noop : onClick,
|
|
42568
|
-
|
|
42574
|
+
disabled: disabled
|
|
42569
42575
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42570
42576
|
childGap: 0,
|
|
42571
42577
|
bottomItem: 3,
|