@thecb/components 8.4.0-beta.6 → 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 +47 -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.esm.js
CHANGED
|
@@ -42830,7 +42830,8 @@ var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
|
42830
42830
|
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);
|
|
42831
42831
|
|
|
42832
42832
|
var background$3 = {
|
|
42833
|
-
"default": "".concat(WHITE)
|
|
42833
|
+
"default": "".concat(WHITE),
|
|
42834
|
+
hover: "".concat(CORNFLOWER_BLUE)
|
|
42834
42835
|
};
|
|
42835
42836
|
var color$b = {
|
|
42836
42837
|
"default": "".concat(ROYAL_BLUE_VIVID)
|
|
@@ -42856,9 +42857,8 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42856
42857
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
42857
42858
|
_ref$extraHoverStyles = _ref.extraHoverStyles,
|
|
42858
42859
|
extraHoverStyles = _ref$extraHoverStyles === void 0 ? "" : _ref$extraHoverStyles;
|
|
42859
|
-
var
|
|
42860
|
+
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);");
|
|
42860
42861
|
return /*#__PURE__*/React.createElement(Box, {
|
|
42861
|
-
background: LINK_WATER,
|
|
42862
42862
|
border: "1px solid ".concat(MOON_RAKER, ";"),
|
|
42863
42863
|
borderRadius: "8px",
|
|
42864
42864
|
dataQa: "link-card-".concat(title),
|
|
@@ -42867,24 +42867,30 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42867
42867
|
minWidth: "240px",
|
|
42868
42868
|
minHeight: "141px",
|
|
42869
42869
|
padding: "24px",
|
|
42870
|
-
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 "),
|
|
42871
|
-
hoverStyles:
|
|
42872
|
-
activeStyles:
|
|
42870
|
+
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 "),
|
|
42871
|
+
hoverStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraHoverStyles, "\n "),
|
|
42872
|
+
activeStyles: "".concat(activeAndHoverStyles, "\n ").concat(extraHoverStyles, "\n "),
|
|
42873
42873
|
onClick: onClick
|
|
42874
42874
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42875
42875
|
childGap: 0,
|
|
42876
42876
|
bottomItem: 3,
|
|
42877
|
+
justify: "space-between",
|
|
42878
|
+
style: {
|
|
42879
|
+
width: "100%"
|
|
42880
|
+
},
|
|
42877
42881
|
fullHeight: true
|
|
42878
42882
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
42879
|
-
padding: 0
|
|
42883
|
+
padding: 0,
|
|
42884
|
+
width: "100%"
|
|
42880
42885
|
}, /*#__PURE__*/React.createElement(Heading$1, {
|
|
42881
42886
|
variant: "h6",
|
|
42882
42887
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
42883
42888
|
color: themeValues.color,
|
|
42884
42889
|
margin: 0,
|
|
42885
|
-
extraStyles: "display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; align-self: stretch
|
|
42890
|
+
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 ")
|
|
42886
42891
|
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
42887
|
-
padding: "0 0 40px"
|
|
42892
|
+
padding: "0 0 40px",
|
|
42893
|
+
width: "100%"
|
|
42888
42894
|
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
42889
42895
|
variant: "pS",
|
|
42890
42896
|
color: themeValues.color,
|
|
@@ -42892,14 +42898,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42892
42898
|
}, subtitle)), /*#__PURE__*/React.createElement(Box, {
|
|
42893
42899
|
background: "transparent",
|
|
42894
42900
|
borderWidthOverride: "0 0 0 0",
|
|
42895
|
-
padding: "0"
|
|
42896
|
-
|
|
42897
|
-
direction: "row",
|
|
42898
|
-
justify: "space-between"
|
|
42901
|
+
padding: "0",
|
|
42902
|
+
width: "100%"
|
|
42899
42903
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42900
42904
|
direction: "row",
|
|
42901
|
-
childGap: "6px"
|
|
42902
|
-
|
|
42905
|
+
childGap: "6px",
|
|
42906
|
+
justify: "space-between",
|
|
42907
|
+
extraStyles: "width: 100%; justify-content: space-between"
|
|
42908
|
+
}, showLeft && leftContent, showRight && rightContent))));
|
|
42903
42909
|
};
|
|
42904
42910
|
|
|
42905
42911
|
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "default");
|