@thecb/components 10.2.4-beta.4 → 10.2.4-beta.5
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 +31 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/badge/Badge.stories.js +2 -1
- package/src/components/atoms/badge/Badge.theme.js +8 -4
- package/src/components/molecules/link-card/LinkCard.js +8 -22
- package/src/components/molecules/link-card/LinkCard.stories.js +74 -38
- package/src/components/molecules/link-card/LinkCard.theme.js +24 -9
package/dist/index.cjs.js
CHANGED
|
@@ -18987,13 +18987,15 @@ var background$1 = {
|
|
|
18987
18987
|
info: "".concat(INFO_BLUE),
|
|
18988
18988
|
warn: "".concat(HALF_COLONIAL_WHITE),
|
|
18989
18989
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
18990
|
-
success: "".concat(HINT_GREEN)
|
|
18990
|
+
success: "".concat(HINT_GREEN),
|
|
18991
|
+
disabled: "".concat(ATHENS_GREY)
|
|
18991
18992
|
};
|
|
18992
18993
|
var color$4 = {
|
|
18993
18994
|
info: "".concat(MATISSE_BLUE),
|
|
18994
18995
|
warn: "".concat(ZEST_ORANGE),
|
|
18995
18996
|
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
18996
|
-
success: "".concat(SEA_GREEN)
|
|
18997
|
+
success: "".concat(SEA_GREEN),
|
|
18998
|
+
disabled: "".concat(GHOST_GREY)
|
|
18997
18999
|
};
|
|
18998
19000
|
var fallbackValues$7 = {
|
|
18999
19001
|
background: background$1,
|
|
@@ -42465,10 +42467,22 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
|
|
|
42465
42467
|
var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
42466
42468
|
var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), ACCOUNTS_DENTAL_ICON, AccountDentalIcon), ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), PROPERTIES_LAND_ICON, PropertyLandIcon), PROPERTIES_CAR_ICON, PropertyCarIcon), PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), MISC_BILL_ICON, AccountBillIcon));
|
|
42467
42469
|
|
|
42468
|
-
var activeBackgroundColor$1 =
|
|
42469
|
-
|
|
42470
|
-
|
|
42471
|
-
|
|
42470
|
+
var activeBackgroundColor$1 = {
|
|
42471
|
+
primary: "".concat(CORNFLOWER_BLUE),
|
|
42472
|
+
disabled: "".concat(GHOST_GREY)
|
|
42473
|
+
};
|
|
42474
|
+
var backgroundColor$9 = {
|
|
42475
|
+
primary: "".concat(LINK_WATER),
|
|
42476
|
+
disabled: "".concat(ATHENS_GREY)
|
|
42477
|
+
};
|
|
42478
|
+
var borderColor$5 = {
|
|
42479
|
+
primary: "".concat(MOON_RAKER),
|
|
42480
|
+
disabled: "".concat(STORM_GREY)
|
|
42481
|
+
};
|
|
42482
|
+
var color$b = {
|
|
42483
|
+
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
42484
|
+
disabled: "".concat(GHOST_GREY)
|
|
42485
|
+
};
|
|
42472
42486
|
var fallbackValues$I = {
|
|
42473
42487
|
activeBackgroundColor: activeBackgroundColor$1,
|
|
42474
42488
|
backgroundColor: backgroundColor$9,
|
|
@@ -42509,7 +42523,9 @@ var Footer = styled__default(Stack).withConfig({
|
|
|
42509
42523
|
})(["align-items:center;width:100%;"]);
|
|
42510
42524
|
|
|
42511
42525
|
var LinkCard = function LinkCard(_ref) {
|
|
42512
|
-
var _ref$
|
|
42526
|
+
var _ref$variant = _ref.variant,
|
|
42527
|
+
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
42528
|
+
_ref$title = _ref.title,
|
|
42513
42529
|
title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
|
|
42514
42530
|
_ref$subtitle = _ref.subtitle,
|
|
42515
42531
|
subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
|
|
@@ -42542,10 +42558,10 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42542
42558
|
minHeight: "141px",
|
|
42543
42559
|
padding: "24px",
|
|
42544
42560
|
theme: themeValues,
|
|
42545
|
-
extraStyles:
|
|
42546
|
-
hoverStyles:
|
|
42547
|
-
activeStyles:
|
|
42548
|
-
onClick: disabled ? noop : onClick,
|
|
42561
|
+
extraStyles: extraStyles,
|
|
42562
|
+
hoverStyles: extraHoverStyles,
|
|
42563
|
+
activeStyles: extraActiveStyles,
|
|
42564
|
+
onClick: variant === "disabled" || disabled ? noop : onClick,
|
|
42549
42565
|
"aria-disabled": disabled
|
|
42550
42566
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42551
42567
|
childGap: 0,
|
|
@@ -42557,16 +42573,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42557
42573
|
fullHeight: true
|
|
42558
42574
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
42559
42575
|
padding: 0,
|
|
42560
|
-
width: "100%"
|
|
42561
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42576
|
+
width: "100%"
|
|
42562
42577
|
}, /*#__PURE__*/React__default.createElement(Title$2, {
|
|
42563
42578
|
variant: titleVariant,
|
|
42564
42579
|
theme: themeValues,
|
|
42565
42580
|
margin: 0
|
|
42566
42581
|
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
42567
42582
|
padding: "0 0 40px",
|
|
42568
|
-
width: "100%"
|
|
42569
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42583
|
+
width: "100%"
|
|
42570
42584
|
}, /*#__PURE__*/React__default.createElement(Subtitle, {
|
|
42571
42585
|
variant: "pS",
|
|
42572
42586
|
theme: themeValues
|
|
@@ -42574,15 +42588,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42574
42588
|
background: "transparent",
|
|
42575
42589
|
borderWidthOverride: "0 0 0 0",
|
|
42576
42590
|
padding: "0",
|
|
42577
|
-
width: "100%"
|
|
42578
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42591
|
+
width: "100%"
|
|
42579
42592
|
}, /*#__PURE__*/React__default.createElement(Footer, {
|
|
42580
42593
|
direction: "row",
|
|
42581
42594
|
childGap: "6px",
|
|
42582
42595
|
justify: "space-between"
|
|
42583
42596
|
}, showLeft && !leftContent && /*#__PURE__*/React__default.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
|
|
42584
42597
|
};
|
|
42585
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
42598
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "primary");
|
|
42586
42599
|
|
|
42587
42600
|
var LoginForm = function LoginForm(_ref) {
|
|
42588
42601
|
var clearOnDismount = _ref.clearOnDismount,
|