@thecb/components 10.4.0-beta.7 → 10.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.esm.js CHANGED
@@ -42640,23 +42640,31 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
42640
42640
  var MISC_BILL_ICON = "MISC_SINGLE_BILL";
42641
42641
  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));
42642
42642
 
42643
+ var disabledBackgroundColor$1 = {
42644
+ primary: TRANSPARENT
42645
+ };
42646
+ var disabledBorderColor$1 = {
42647
+ primary: GHOST_GREY
42648
+ };
42649
+ var disabledColor$1 = {
42650
+ primary: MANATEE_GREY
42651
+ };
42643
42652
  var activeBackgroundColor$1 = {
42644
- primary: "".concat(CORNFLOWER_BLUE),
42645
- disabled: "".concat(TRANSPARENT)
42653
+ primary: CORNFLOWER_BLUE
42646
42654
  };
42647
42655
  var backgroundColor$9 = {
42648
- primary: "".concat(LINK_WATER),
42649
- disabled: "".concat(TRANSPARENT)
42656
+ primary: LINK_WATER
42650
42657
  };
42651
42658
  var borderColor$5 = {
42652
- primary: "".concat(MOON_RAKER),
42653
- disabled: "".concat(GHOST_GREY)
42659
+ primary: MOON_RAKER
42654
42660
  };
42655
42661
  var color$b = {
42656
- primary: "".concat(ROYAL_BLUE_VIVID),
42657
- disabled: "".concat(MANATEE_GREY)
42662
+ primary: ROYAL_BLUE_VIVID
42658
42663
  };
42659
42664
  var fallbackValues$I = {
42665
+ disabledBackgroundColor: disabledBackgroundColor$1,
42666
+ disabledBorderColor: disabledBorderColor$1,
42667
+ disabledColor: disabledColor$1,
42660
42668
  activeBackgroundColor: activeBackgroundColor$1,
42661
42669
  backgroundColor: backgroundColor$9,
42662
42670
  borderColor: borderColor$5,
@@ -42666,35 +42674,30 @@ var fallbackValues$I = {
42666
42674
  var Container = styled(Box).withConfig({
42667
42675
  displayName: "LinkCardstyled__Container",
42668
42676
  componentId: "sc-l5q1h2-0"
42669
- })(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out;&:hover,&:active{cursor:", ";box-shadow:", ";}&:hover:not(:active){", "}&:active{", "}"], function (_ref) {
42670
- var theme = _ref.theme;
42671
- return "\n background-color: ".concat(theme.backgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ");
42677
+ })(["display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:40px;flex-shrink:0;align-self:stretch;border-radius:8px;", " transition:all .2s ease-in-out;", ""], function (_ref) {
42678
+ var isDisabled = _ref.isDisabled,
42679
+ theme = _ref.theme;
42680
+ return "\n background-color: ".concat(isDisabled ? theme.disabledBackgroundColor : theme.backgroundColor, ";\n border: 1px solid ").concat(isDisabled ? theme.disabledBorderColor : theme.borderColor, ";\n ");
42672
42681
  }, function (_ref2) {
42673
- var disabled = _ref2.disabled;
42674
- return disabled ? "default" : "pointer";
42675
- }, function (_ref3) {
42676
- var disabled = _ref3.disabled;
42677
- return "\n ".concat(disabled ? "none" : "0px 0px 0px 0px rgba(41, 42, 51, 0.1),\n 0px 5px 11px 0px rgba(41, 42, 51, 0.1),\n 0px 4px 19px 0px rgba(41, 42, 51, 0.09),\n 0px 27px 26px 0px rgba(41, 42, 51, 0.05),\n 0px 56px 31px 0px rgba(41, 42, 51, 0.01),\n 0px 80px 33px 0px rgba(41, 42, 51, 0);", "\n ");
42678
- }, function (_ref4) {
42679
- var theme = _ref4.theme;
42680
- return "border: 1px solid ".concat(theme.borderColor, ";");
42681
- }, function (_ref5) {
42682
- var theme = _ref5.theme;
42683
- return "\n background-color: ".concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n ;");
42682
+ var isDisabled = _ref2.isDisabled,
42683
+ theme = _ref2.theme;
42684
+ return isDisabled ? "\n &:hover,\n &:active {\n cursor: default;\n box-shadow: none;\n border: 1px solid ".concat(theme.disabledBorderColor, ";\n }\n ") : "\n &:hover,\n &:active {\n cursor: pointer;\n box-shadow: 0px 0px 0px 0px rgba(41, 42, 51, 0.1),\n 0px 5px 11px 0px rgba(41, 42, 51, 0.1),\n 0px 4px 19px 0px rgba(41, 42, 51, 0.09),\n 0px 27px 26px 0px rgba(41, 42, 51, 0.05),\n 0px 56px 31px 0px rgba(41, 42, 51, 0.01),\n 0px 80px 33px 0px rgba(41, 42, 51, 0);\n }\n\n &:hover:not(:active) {\n border: 1px solid ".concat(theme.borderColor, ";\n }\n\n &:active {\n background-color: ").concat(theme.activeBackgroundColor, ";\n border: 1px solid ").concat(theme.borderColor, ";\n }\n ");
42684
42685
  });
42685
42686
  var Title$2 = styled(Heading$1).withConfig({
42686
42687
  displayName: "LinkCardstyled__Title",
42687
42688
  componentId: "sc-l5q1h2-1"
42688
- })(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref6) {
42689
- var theme = _ref6.theme;
42690
- return "color: ".concat(theme.color, ";");
42689
+ })(["display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:150%;background-color:transparent;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref3) {
42690
+ var isDisabled = _ref3.isDisabled,
42691
+ theme = _ref3.theme;
42692
+ return "color: ".concat(isDisabled ? theme.disabledColor : theme.color, ";");
42691
42693
  });
42692
42694
  var Subtitle = styled(Paragraph$1).withConfig({
42693
42695
  displayName: "LinkCardstyled__Subtitle",
42694
42696
  componentId: "sc-l5q1h2-2"
42695
- })(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150 %;letter-spacing:0.14px;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref7) {
42696
- var theme = _ref7.theme;
42697
- return "color: ".concat(theme.color, ";");
42697
+ })(["overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;font-size:14px;line-height:150%;letter-spacing:0.14px;font-weight:", ";", ";"], FONT_WEIGHT_SEMIBOLD, function (_ref4) {
42698
+ var isDisabled = _ref4.isDisabled,
42699
+ theme = _ref4.theme;
42700
+ return "color: ".concat(isDisabled ? theme.disabledColor : theme.color, ";");
42698
42701
  });
42699
42702
  var Footer = styled(Stack).withConfig({
42700
42703
  displayName: "LinkCardstyled__Footer",
@@ -42702,8 +42705,7 @@ var Footer = styled(Stack).withConfig({
42702
42705
  })(["align-items:center;width:100%;"]);
42703
42706
 
42704
42707
  var LinkCard = function LinkCard(_ref) {
42705
- var _ref$variant = _ref.variant,
42706
- _ref$title = _ref.title,
42708
+ var _ref$title = _ref.title,
42707
42709
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
42708
42710
  _ref$subtitle = _ref.subtitle,
42709
42711
  subtitle = _ref$subtitle === void 0 ? "Link your benefit plan" : _ref$subtitle,
@@ -42740,7 +42742,8 @@ var LinkCard = function LinkCard(_ref) {
42740
42742
  hoverStyles: extraHoverStyles,
42741
42743
  activeStyles: extraActiveStyles,
42742
42744
  onClick: disabled ? noop$1 : onClick,
42743
- "aria-disabled": disabled
42745
+ "aria-disabled": disabled,
42746
+ isDisabled: disabled
42744
42747
  }, /*#__PURE__*/React.createElement(Stack, {
42745
42748
  childGap: 0,
42746
42749
  bottomItem: 3,
@@ -42755,13 +42758,15 @@ var LinkCard = function LinkCard(_ref) {
42755
42758
  }, /*#__PURE__*/React.createElement(Title$2, {
42756
42759
  variant: titleVariant,
42757
42760
  theme: themeValues,
42758
- margin: 0
42761
+ margin: 0,
42762
+ isDisabled: disabled
42759
42763
  }, title)), /*#__PURE__*/React.createElement(Box, {
42760
42764
  padding: "0 0 40px",
42761
42765
  width: "100%"
42762
42766
  }, /*#__PURE__*/React.createElement(Subtitle, {
42763
42767
  variant: "pS",
42764
- theme: themeValues
42768
+ theme: themeValues,
42769
+ isDisabled: disabled
42765
42770
  }, subtitle)), /*#__PURE__*/React.createElement(Box, {
42766
42771
  background: "transparent",
42767
42772
  borderWidthOverride: "0 0 0 0",