@thecb/components 10.2.4-beta.3 → 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 +29 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +29 -10
- 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 +7 -3
- package/src/components/molecules/link-card/LinkCard.stories.js +74 -36
- 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,
|
|
@@ -42526,7 +42542,9 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42526
42542
|
extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
|
|
42527
42543
|
themeValues = _ref.themeValues,
|
|
42528
42544
|
_ref$titleVariant = _ref.titleVariant,
|
|
42529
|
-
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant
|
|
42545
|
+
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant,
|
|
42546
|
+
_ref$disabled = _ref.disabled,
|
|
42547
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
42530
42548
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
42531
42549
|
isMobile = _useContext.isMobile;
|
|
42532
42550
|
var regex = /\W/g;
|
|
@@ -42543,7 +42561,8 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42543
42561
|
extraStyles: extraStyles,
|
|
42544
42562
|
hoverStyles: extraHoverStyles,
|
|
42545
42563
|
activeStyles: extraActiveStyles,
|
|
42546
|
-
onClick: onClick
|
|
42564
|
+
onClick: variant === "disabled" || disabled ? noop : onClick,
|
|
42565
|
+
"aria-disabled": disabled
|
|
42547
42566
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42548
42567
|
childGap: 0,
|
|
42549
42568
|
bottomItem: 3,
|
|
@@ -42576,7 +42595,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42576
42595
|
justify: "space-between"
|
|
42577
42596
|
}, showLeft && !leftContent && /*#__PURE__*/React__default.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
|
|
42578
42597
|
};
|
|
42579
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
42598
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "primary");
|
|
42580
42599
|
|
|
42581
42600
|
var LoginForm = function LoginForm(_ref) {
|
|
42582
42601
|
var clearOnDismount = _ref.clearOnDismount,
|