@thecb/components 8.4.0-beta.5 → 8.4.0-beta.7
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 +21 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +21 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/link-card/LinkCard.js +43 -39
- package/src/components/molecules/link-card/LinkCard.stories.js +4 -1
- package/src/components/molecules/link-card/LinkCard.theme.js +6 -2
package/dist/index.cjs.js
CHANGED
|
@@ -42838,7 +42838,8 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
|
42838
42838
|
var iconsMap = (_iconsMap = {}, _defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), _defineProperty(_iconsMap, ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), _defineProperty(_iconsMap, ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), _defineProperty(_iconsMap, ACCOUNTS_DENTAL_ICON, AccountDentalIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), _defineProperty(_iconsMap, PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), _defineProperty(_iconsMap, PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), _defineProperty(_iconsMap, PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), _defineProperty(_iconsMap, PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), _defineProperty(_iconsMap, PROPERTIES_LAND_ICON, PropertyLandIcon), _defineProperty(_iconsMap, PROPERTIES_CAR_ICON, PropertyCarIcon), _defineProperty(_iconsMap, PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), _defineProperty(_iconsMap, PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), _defineProperty(_iconsMap, MISC_BILL_ICON, AccountBillIcon), _iconsMap);
|
|
42839
42839
|
|
|
42840
42840
|
var background$3 = {
|
|
42841
|
-
"default": "".concat(WHITE)
|
|
42841
|
+
"default": "".concat(WHITE),
|
|
42842
|
+
hover: "".concat(CORNFLOWER_BLUE)
|
|
42842
42843
|
};
|
|
42843
42844
|
var color$b = {
|
|
42844
42845
|
"default": "".concat(ROYAL_BLUE_VIVID)
|
|
@@ -42864,9 +42865,8 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42864
42865
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
42865
42866
|
_ref$extraHoverStyles = _ref.extraHoverStyles,
|
|
42866
42867
|
extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles;
|
|
42867
|
-
var
|
|
42868
|
+
var activeAndHoverStyles = "cursor: pointer;\n border-radius: 8px;\n border: 1px solid ".concat(themeValues.color, ";\n background-color: ").concat(CORNFLOWER_BLUE, ";\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);");
|
|
42868
42869
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
42869
|
-
background: LINK_WATER,
|
|
42870
42870
|
border: "1px solid ".concat(MOON_RAKER, ";"),
|
|
42871
42871
|
borderRadius: "8px",
|
|
42872
42872
|
dataQa: "link-card-".concat(title),
|
|
@@ -42875,24 +42875,30 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42875
42875
|
minWidth: "240px",
|
|
42876
42876
|
minHeight: "141px",
|
|
42877
42877
|
padding: "24px",
|
|
42878
|
-
extraStyles: "\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 40px;\n flex-shrink: 0;\n align-self: stretch;\n ".concat(extraStyles, "\n "),
|
|
42879
|
-
hoverStyles:
|
|
42880
|
-
activeStyles:
|
|
42878
|
+
extraStyles: "\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n gap: 40px;\n flex-shrink: 0;\n align-self: stretch;\n ".concat(extraStyles, "\n "),
|
|
42879
|
+
hoverStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraHoverStyles, "\n "),
|
|
42880
|
+
activeStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraHoverStyles, "\n "),
|
|
42881
42881
|
onClick: onClick
|
|
42882
42882
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42883
42883
|
childGap: 0,
|
|
42884
42884
|
bottomItem: 3,
|
|
42885
|
+
justify: "space-between",
|
|
42886
|
+
style: {
|
|
42887
|
+
width: "100%"
|
|
42888
|
+
},
|
|
42885
42889
|
fullHeight: true
|
|
42886
42890
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
42887
|
-
padding: 0
|
|
42891
|
+
padding: 0,
|
|
42892
|
+
width: "100%"
|
|
42888
42893
|
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
42889
42894
|
variant: "h6",
|
|
42890
42895
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
42891
42896
|
color: themeValues.color,
|
|
42892
42897
|
margin: 0,
|
|
42893
|
-
extraStyles: "display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch
|
|
42898
|
+
extraStyles: "display: -webkit-box; \n -webkit-box-orient: vertical; \n -webkit-line-clamp: 2; \n align-self: stretch;\n overflow: hidden; \n text-overflow: ellipsis; \n font-family: Public Sans; \n font-size: 16px; \n font-style: normal; \n font-weight: 600; \n line-height: 150%;\n ".concat(extraStyles, "\n ")
|
|
42894
42899
|
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
42895
|
-
padding: "0 0 40px"
|
|
42900
|
+
padding: "0 0 40px",
|
|
42901
|
+
width: "100%"
|
|
42896
42902
|
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
42897
42903
|
variant: "pS",
|
|
42898
42904
|
color: themeValues.color,
|
|
@@ -42900,14 +42906,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42900
42906
|
}, subtitle)), /*#__PURE__*/React__default.createElement(Box, {
|
|
42901
42907
|
background: "transparent",
|
|
42902
42908
|
borderWidthOverride: "0 0 0 0",
|
|
42903
|
-
padding: "0
|
|
42904
|
-
|
|
42905
|
-
direction: "row",
|
|
42906
|
-
justify: "space-between"
|
|
42909
|
+
padding: "0",
|
|
42910
|
+
width: "100%"
|
|
42907
42911
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42908
42912
|
direction: "row",
|
|
42909
|
-
childGap: "6px"
|
|
42910
|
-
|
|
42913
|
+
childGap: "6px",
|
|
42914
|
+
justify: "space-between",
|
|
42915
|
+
extraStyles: "width: 100%; justify-content: space-between"
|
|
42916
|
+
}, showLeft && leftContent, showRight && rightContent))));
|
|
42911
42917
|
};
|
|
42912
42918
|
|
|
42913
42919
|
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");
|