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