@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.esm.js
CHANGED
|
@@ -18979,13 +18979,15 @@ var background$1 = {
|
|
|
18979
18979
|
info: "".concat(INFO_BLUE),
|
|
18980
18980
|
warn: "".concat(HALF_COLONIAL_WHITE),
|
|
18981
18981
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
18982
|
-
success: "".concat(HINT_GREEN)
|
|
18982
|
+
success: "".concat(HINT_GREEN),
|
|
18983
|
+
disabled: "".concat(ATHENS_GREY)
|
|
18983
18984
|
};
|
|
18984
18985
|
var color$4 = {
|
|
18985
18986
|
info: "".concat(MATISSE_BLUE),
|
|
18986
18987
|
warn: "".concat(ZEST_ORANGE),
|
|
18987
18988
|
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
18988
|
-
success: "".concat(SEA_GREEN)
|
|
18989
|
+
success: "".concat(SEA_GREEN),
|
|
18990
|
+
disabled: "".concat(GHOST_GREY)
|
|
18989
18991
|
};
|
|
18990
18992
|
var fallbackValues$7 = {
|
|
18991
18993
|
background: background$1,
|
|
@@ -42457,10 +42459,22 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
|
|
|
42457
42459
|
var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
42458
42460
|
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));
|
|
42459
42461
|
|
|
42460
|
-
var activeBackgroundColor$1 =
|
|
42461
|
-
|
|
42462
|
-
|
|
42463
|
-
|
|
42462
|
+
var activeBackgroundColor$1 = {
|
|
42463
|
+
primary: "".concat(CORNFLOWER_BLUE),
|
|
42464
|
+
disabled: "".concat(GHOST_GREY)
|
|
42465
|
+
};
|
|
42466
|
+
var backgroundColor$9 = {
|
|
42467
|
+
primary: "".concat(LINK_WATER),
|
|
42468
|
+
disabled: "".concat(ATHENS_GREY)
|
|
42469
|
+
};
|
|
42470
|
+
var borderColor$5 = {
|
|
42471
|
+
primary: "".concat(MOON_RAKER),
|
|
42472
|
+
disabled: "".concat(STORM_GREY)
|
|
42473
|
+
};
|
|
42474
|
+
var color$b = {
|
|
42475
|
+
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
42476
|
+
disabled: "".concat(GHOST_GREY)
|
|
42477
|
+
};
|
|
42464
42478
|
var fallbackValues$I = {
|
|
42465
42479
|
activeBackgroundColor: activeBackgroundColor$1,
|
|
42466
42480
|
backgroundColor: backgroundColor$9,
|
|
@@ -42501,7 +42515,9 @@ var Footer = styled(Stack).withConfig({
|
|
|
42501
42515
|
})(["align-items:center;width:100%;"]);
|
|
42502
42516
|
|
|
42503
42517
|
var LinkCard = function LinkCard(_ref) {
|
|
42504
|
-
var _ref$
|
|
42518
|
+
var _ref$variant = _ref.variant,
|
|
42519
|
+
variant = _ref$variant === void 0 ? "primary" : _ref$variant,
|
|
42520
|
+
_ref$title = _ref.title,
|
|
42505
42521
|
title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
|
|
42506
42522
|
_ref$subtitle = _ref.subtitle,
|
|
42507
42523
|
subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
|
|
@@ -42534,10 +42550,10 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42534
42550
|
minHeight: "141px",
|
|
42535
42551
|
padding: "24px",
|
|
42536
42552
|
theme: themeValues,
|
|
42537
|
-
extraStyles:
|
|
42538
|
-
hoverStyles:
|
|
42539
|
-
activeStyles:
|
|
42540
|
-
onClick: disabled ? noop : onClick,
|
|
42553
|
+
extraStyles: extraStyles,
|
|
42554
|
+
hoverStyles: extraHoverStyles,
|
|
42555
|
+
activeStyles: extraActiveStyles,
|
|
42556
|
+
onClick: variant === "disabled" || disabled ? noop : onClick,
|
|
42541
42557
|
"aria-disabled": disabled
|
|
42542
42558
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
42543
42559
|
childGap: 0,
|
|
@@ -42549,16 +42565,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42549
42565
|
fullHeight: true
|
|
42550
42566
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
42551
42567
|
padding: 0,
|
|
42552
|
-
width: "100%"
|
|
42553
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42568
|
+
width: "100%"
|
|
42554
42569
|
}, /*#__PURE__*/React.createElement(Title$2, {
|
|
42555
42570
|
variant: titleVariant,
|
|
42556
42571
|
theme: themeValues,
|
|
42557
42572
|
margin: 0
|
|
42558
42573
|
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
42559
42574
|
padding: "0 0 40px",
|
|
42560
|
-
width: "100%"
|
|
42561
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42575
|
+
width: "100%"
|
|
42562
42576
|
}, /*#__PURE__*/React.createElement(Subtitle, {
|
|
42563
42577
|
variant: "pS",
|
|
42564
42578
|
theme: themeValues
|
|
@@ -42566,15 +42580,14 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42566
42580
|
background: "transparent",
|
|
42567
42581
|
borderWidthOverride: "0 0 0 0",
|
|
42568
42582
|
padding: "0",
|
|
42569
|
-
width: "100%"
|
|
42570
|
-
extraStyles: disabled ? "opacity: 0.5;" : ""
|
|
42583
|
+
width: "100%"
|
|
42571
42584
|
}, /*#__PURE__*/React.createElement(Footer, {
|
|
42572
42585
|
direction: "row",
|
|
42573
42586
|
childGap: "6px",
|
|
42574
42587
|
justify: "space-between"
|
|
42575
42588
|
}, showLeft && !leftContent && /*#__PURE__*/React.createElement(Box, null), showLeft && leftContent, showRight && rightContent))));
|
|
42576
42589
|
};
|
|
42577
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I);
|
|
42590
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$I, "primary");
|
|
42578
42591
|
|
|
42579
42592
|
var LoginForm = function LoginForm(_ref) {
|
|
42580
42593
|
var clearOnDismount = _ref.clearOnDismount,
|