@thecb/components 5.8.2-beta.5 → 5.8.2-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 CHANGED
@@ -4826,25 +4826,34 @@ var AQUA_HAZE_WHITE = "#F7F9FA";
4826
4826
  var BLEACH_WHITE = "#FEF4d7";
4827
4827
  var CATSKILL_WHITE = "#EAF2F6"; // GREY
4828
4828
 
4829
- var ATHENS_GREY = "#F6F6F9";
4829
+ var ATHENS_GREY = "#F6F6F9"; // CBS-100
4830
+
4830
4831
  var ALTO_GREY = "#d1d1d1";
4831
4832
  var SILVER_GREY = "#cdcdcd";
4832
4833
  var PEWTER_GREY = "#DFE1E4";
4833
4834
  var ASH_GREY = "#979797";
4834
4835
  var IRON_GREY = "#d5d8dc";
4835
- var GHOST_GREY = "#CACED8";
4836
+ var GHOST_GREY = "#CACED8"; // CBS-300
4837
+
4836
4838
  var DUSTY_GREY = "#9B9B9B";
4837
4839
  var REGENT_GREY = "#959EA7";
4838
- var STORM_GREY = "#6D717E";
4840
+ var STORM_GREY = "#6D717E"; // CBS-700
4841
+
4839
4842
  var TROUT_GREY = "#515660";
4840
4843
  var MINESHAFT_GREY = "#333333";
4841
4844
  var SOOT_GREY = "#999999";
4842
4845
  var FIREFLY_GREY = "#091325";
4843
- var BRIGHT_GREY = "#3B414D";
4844
- var CHARADE_GREY = "#292A33";
4845
- var GRECIAN_GREY = "#E5E7EC";
4846
+ var BRIGHT_GREY = "#3B414D"; // CBS-800
4847
+
4848
+ var CHARADE_GREY = "#292A33"; // CBS-900
4849
+
4850
+ var GRECIAN_GREY = "#E5E7EC"; // CBS-200
4851
+
4846
4852
  var BLACK_SQUEEZE = "#EAF2F7";
4847
- var GREY_CHATEAU = "#959CA8"; // BLUE
4853
+ var GREY_CHATEAU = "#959CA8"; // CBS-500
4854
+
4855
+ var COOL_GREY_05 = "#fbfcfd"; // CBS-050
4856
+ // BLUE
4848
4857
 
4849
4858
  var CLOUDBURST_BLUE = "#26395c";
4850
4859
  var ZODIAC_BLUE = "#14284b";
@@ -4948,6 +4957,7 @@ var colors = /*#__PURE__*/Object.freeze({
4948
4957
  BRIGHT_GREY: BRIGHT_GREY,
4949
4958
  CHARADE_GREY: CHARADE_GREY,
4950
4959
  GRECIAN_GREY: GRECIAN_GREY,
4960
+ COOL_GREY_05: COOL_GREY_05,
4951
4961
  BLACK_SQUEEZE: BLACK_SQUEEZE,
4952
4962
  GREY_CHATEAU: GREY_CHATEAU,
4953
4963
  CLOUDBURST_BLUE: CLOUDBURST_BLUE,
@@ -6219,13 +6229,12 @@ var BoxWrapper = styled__default(function (_ref) {
6219
6229
  }).withConfig({
6220
6230
  displayName: "Boxstyled__BoxWrapper",
6221
6231
  componentId: "sc-1f9ij0d-0"
6222
- })(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";border:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
6232
+ })(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";width:", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
6223
6233
  var padding = _ref2.padding;
6224
6234
  return padding;
6225
6235
  }, function (_ref3) {
6226
- var borderSize = _ref3.borderSize,
6227
- borderColor = _ref3.borderColor;
6228
- return "".concat(borderSize, " solid ").concat(borderColor);
6236
+ var border = _ref3.border;
6237
+ return border;
6229
6238
  }, function (_ref4) {
6230
6239
  var boxShadow = _ref4.boxShadow;
6231
6240
  return boxShadow;
@@ -6237,7 +6246,7 @@ var BoxWrapper = styled__default(function (_ref) {
6237
6246
  return minHeight ? minHeight : "auto";
6238
6247
  }, function (_ref7) {
6239
6248
  var width = _ref7.width;
6240
- return width && "width: ".concat(width, ";");
6249
+ return width;
6241
6250
  }, function (_ref8) {
6242
6251
  var minWidth = _ref8.minWidth;
6243
6252
  return minWidth ? minWidth : "auto";
@@ -6251,38 +6260,34 @@ var BoxWrapper = styled__default(function (_ref) {
6251
6260
  var borderRadius = _ref11.borderRadius;
6252
6261
  return borderRadius;
6253
6262
  }, function (_ref12) {
6254
- var borderWidthOverride = _ref12.borderWidthOverride,
6255
- borderSize = _ref12.borderSize;
6256
- return borderWidthOverride ? borderWidthOverride : borderSize;
6263
+ var borderWidthOverride = _ref12.borderWidthOverride;
6264
+ return borderWidthOverride;
6257
6265
  }, function (_ref13) {
6258
- var border = _ref13.border;
6259
- return border;
6260
- }, function (_ref14) {
6261
- var textAlign = _ref14.textAlign;
6266
+ var textAlign = _ref13.textAlign;
6262
6267
  return textAlign;
6263
- }, function (_ref15) {
6264
- var hoverStyles = _ref15.hoverStyles,
6265
- as = _ref15.as;
6268
+ }, function (_ref14) {
6269
+ var hoverStyles = _ref14.hoverStyles,
6270
+ as = _ref14.as;
6266
6271
  return styled.css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6267
- }, function (_ref16) {
6268
- var as = _ref16.as;
6272
+ }, function (_ref15) {
6273
+ var as = _ref15.as;
6269
6274
  return styled.css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
6275
+ }, function (_ref16) {
6276
+ var activeStyles = _ref16.activeStyles,
6277
+ as = _ref16.as;
6278
+ return styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6270
6279
  }, function (_ref17) {
6271
- var activeStyles = _ref17.activeStyles,
6280
+ var disabledStyles = _ref17.disabledStyles,
6272
6281
  as = _ref17.as;
6273
- return styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6274
- }, function (_ref18) {
6275
- var disabledStyles = _ref18.disabledStyles,
6276
- as = _ref18.as;
6277
6282
  return styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6278
- }, function (_ref19) {
6279
- var color = _ref19.color;
6283
+ }, function (_ref18) {
6284
+ var color = _ref18.color;
6280
6285
  return color;
6281
- }, function (_ref20) {
6282
- var hiddenStyles = _ref20.hiddenStyles;
6286
+ }, function (_ref19) {
6287
+ var hiddenStyles = _ref19.hiddenStyles;
6283
6288
  return hiddenStyles && styled.css(["display:none;"]);
6284
- }, function (_ref21) {
6285
- var extraStyles = _ref21.extraStyles;
6289
+ }, function (_ref20) {
6290
+ var extraStyles = _ref20.extraStyles;
6286
6291
  return styled.css(["", ""], extraStyles);
6287
6292
  });
6288
6293
  /* eslint-enable no-unused-vars */
@@ -13789,8 +13794,7 @@ var TimeoutImage = function TimeoutImage() {
13789
13794
  })))));
13790
13795
  };
13791
13796
 
13792
- var AutopayOnIcon = function AutopayOnIcon(_ref) {
13793
- var themeValues = _ref.themeValues;
13797
+ var AutopayOnIcon = function AutopayOnIcon() {
13794
13798
  return /*#__PURE__*/React__default.createElement("svg", {
13795
13799
  xmlns: "http://www.w3.org/2000/svg",
13796
13800
  width: "12",
@@ -13803,14 +13807,12 @@ var AutopayOnIcon = function AutopayOnIcon(_ref) {
13803
13807
  strokeWidth: "1"
13804
13808
  }, /*#__PURE__*/React__default.createElement("path", {
13805
13809
  className: "autopayIcon",
13806
- fill: themeValues.primaryColor,
13810
+ fill: SEA_GREEN,
13807
13811
  fillRule: "nonzero",
13808
13812
  d: "M1.898 5.75c.079 0 .141-.02.188-.059a.281.281 0 00.094-.152 3.825 3.825 0 011.394-2.144A3.838 3.838 0 016 2.563c.5 0 .98.09 1.441.27.461.179.88.44 1.254.784l-.984.985A.542.542 0 007.547 5c0 .156.055.29.164.398.11.11.242.165.398.165h3.141c.156 0 .289-.055.398-.165A.542.542 0 0011.812 5V1.86a.542.542 0 00-.164-.399.542.542 0 00-.398-.164.542.542 0 00-.398.164l-.844.844A5.699 5.699 0 006 .688c-.938 0-1.809.207-2.613.62-.805.415-1.48.981-2.028 1.7A5.726 5.726 0 00.281 5.422a.265.265 0 00.059.223c.055.07.129.105.222.105h1.336zM6 12.312c.937 0 1.809-.207 2.613-.62a5.919 5.919 0 002.028-1.7 5.726 5.726 0 001.078-2.414.265.265 0 00-.059-.223.267.267 0 00-.223-.105h-1.335c-.079 0-.141.02-.188.059a.281.281 0 00-.094.152 3.825 3.825 0 01-1.394 2.144c-.711.555-1.52.833-2.426.833-.5 0-.98-.09-1.441-.27a3.985 3.985 0 01-1.254-.785l.984-.985A.542.542 0 004.453 8a.542.542 0 00-.164-.398.542.542 0 00-.398-.164H.75a.542.542 0 00-.398.164A.542.542 0 00.187 8v3.14c0 .157.055.29.165.4.109.108.242.163.398.163.156 0 .29-.055.398-.164l.844-.844A5.699 5.699 0 006 12.312z"
13809
13813
  })));
13810
13814
  };
13811
13815
 
13812
- var AutopayOnIcon$1 = themeComponent(AutopayOnIcon, "Icons", fallbackValues$2, "primary");
13813
-
13814
13816
  var NotFoundIcon = function NotFoundIcon() {
13815
13817
  return /*#__PURE__*/React__default.createElement("svg", {
13816
13818
  width: "548px",
@@ -40405,7 +40407,7 @@ var AutopayModal = function AutopayModal(_ref) {
40405
40407
  }, /*#__PURE__*/React__default.createElement(Cluster, {
40406
40408
  justify: isMobile ? "flex-start" : "flex-end",
40407
40409
  align: "center"
40408
- }, /*#__PURE__*/React__default.createElement(AutopayOnIcon$1, null), /*#__PURE__*/React__default.createElement(Text$1, {
40410
+ }, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
40409
40411
  variant: "pS",
40410
40412
  onClick: function onClick() {
40411
40413
  return toggleModal(true);
@@ -40590,8 +40592,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40590
40592
  isPaymentPlan: isPaymentPlan,
40591
40593
  nextAutopayDate: nextAutopayDate
40592
40594
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
40593
- padding: isMobile ? "0 0 0 8px" : "0",
40594
- extraStyles: isMobile && "flex-grow: 1;"
40595
+ padding: "0"
40595
40596
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40596
40597
  isLoading: isLoading,
40597
40598
  action: function action() {
@@ -40599,8 +40600,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40599
40600
  },
40600
40601
  text: "Pay Now",
40601
40602
  variant: isMobile ? "smallSecondary" : "secondary",
40602
- dataQa: "Pay Now",
40603
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40603
+ dataQa: "Pay Now"
40604
40604
  }))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
40605
40605
  padding: "8px 0 0",
40606
40606
  width: "100%"
@@ -40612,7 +40612,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40612
40612
  text: "Pay Now",
40613
40613
  variant: isMobile ? "smallSecondary" : "secondary",
40614
40614
  dataQa: "Pay Now",
40615
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40615
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
40616
40616
  }))));
40617
40617
  };
40618
40618
 
@@ -40644,7 +40644,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40644
40644
  border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
40645
40645
  borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
40646
40646
  }, /*#__PURE__*/React__default.createElement(Cluster, {
40647
- childGap: "8px",
40647
+ childGap: autoPayEnabled ? "8px" : "0",
40648
40648
  nowrap: true
40649
40649
  }, autoPayEnabled && /*#__PURE__*/React__default.createElement(Box, {
40650
40650
  padding: "0",
@@ -40670,7 +40670,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40670
40670
  text: "Remove",
40671
40671
  action: handleRemoveAccount,
40672
40672
  dataQa: "Remove Account",
40673
- extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "flex-grow: 1;"
40673
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
40674
40674
  }))));
40675
40675
  };
40676
40676
 
@@ -40739,13 +40739,15 @@ var Obligation = function Obligation(_ref) {
40739
40739
  */
40740
40740
  var firstObligation = obligations[0];
40741
40741
  var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
40742
- var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40742
+ var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40743
40743
  var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
40744
40744
  padding: "0",
40745
40745
  borderRadius: "4px",
40746
40746
  boxShadow: boxShadowValue,
40747
40747
  as: "section",
40748
- "aria-label": "".concat((_firstObligation$desc = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description) !== null && _firstObligation$desc !== void 0 ? _firstObligation$desc : "account", " ").concat((_firstObligation$subD = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription) !== null && _firstObligation$subD !== void 0 ? _firstObligation$subD : obligationAssocID)
40748
+ "aria-label": "".concat((_firstObligation$desc = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.description) !== null && _firstObligation$desc !== void 0 ? _firstObligation$desc : "account", " ").concat((_firstObligation$subD = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.subDescription) !== null && _firstObligation$subD !== void 0 ? _firstObligation$subD : obligationAssocID),
40749
+ border: "1px solid ".concat(GRECIAN_GREY),
40750
+ borderWidthOverride: "1px 0 0 0"
40749
40751
  }, /*#__PURE__*/React__default.createElement(Box, {
40750
40752
  background: WHITE,
40751
40753
  padding: "24px 16px"
@@ -42893,7 +42895,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
42893
42895
  }, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
42894
42896
  };
42895
42897
 
42896
- var pageBackground = "#F6F6F9";
42898
+ var pageBackground = "#FBFCFD";
42897
42899
  var fallbackValues$H = {
42898
42900
  pageBackground: pageBackground
42899
42901
  };
@@ -42917,7 +42919,7 @@ var CenterSingle = function CenterSingle(_ref) {
42917
42919
  return /*#__PURE__*/React__default.createElement(Box, {
42918
42920
  padding: "0",
42919
42921
  minWidth: "100%",
42920
- background: themeValues.pageBackground,
42922
+ background: COOL_GREY_05,
42921
42923
  extraStyles: "flex-grow: 1;"
42922
42924
  }, /*#__PURE__*/React__default.createElement(Cover, {
42923
42925
  centerOverride: isMobile && !centeredMobileContent
@@ -42962,7 +42964,7 @@ var CenterStack = function CenterStack(_ref) {
42962
42964
  return /*#__PURE__*/React__default.createElement(Box, {
42963
42965
  padding: "0",
42964
42966
  minWidth: "100%",
42965
- background: themeValues.pageBackground,
42967
+ background: COOL_GREY_05,
42966
42968
  extraStyles: "flex-grow: 1;"
42967
42969
  }, /*#__PURE__*/React__default.createElement(Cover, null, header ? header : /*#__PURE__*/React__default.createElement(Box, {
42968
42970
  padding: "0"
@@ -43002,7 +43004,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
43002
43004
  return /*#__PURE__*/React__default.createElement(Box, {
43003
43005
  padding: "0",
43004
43006
  minWidth: "100%",
43005
- background: themeValues.pageBackground,
43007
+ background: COOL_GREY_05,
43006
43008
  extraStyles: "flex-grow: 1;"
43007
43009
  }, /*#__PURE__*/React__default.createElement(Cover, {
43008
43010
  childGap: "0",
@@ -43053,7 +43055,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
43053
43055
  return /*#__PURE__*/React__default.createElement(Box, {
43054
43056
  padding: "0",
43055
43057
  minWidth: "100%",
43056
- background: themeValues.pageBackground,
43058
+ background: COOL_GREY_05,
43057
43059
  extraStyles: "flex-grow: 1;"
43058
43060
  }, /*#__PURE__*/React__default.createElement(Cover, {
43059
43061
  centerOverride: !sidebarVerticalCenter
@@ -43109,7 +43111,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
43109
43111
  return /*#__PURE__*/React__default.createElement(Box, {
43110
43112
  padding: "0",
43111
43113
  minWidth: "100%",
43112
- background: themeValues.pageBackground,
43114
+ background: COOL_GREY_05,
43113
43115
  key: "page-bg",
43114
43116
  extraStyles: "flex-grow: 1;"
43115
43117
  }, /*#__PURE__*/React__default.createElement(Cover, {
@@ -43177,7 +43179,7 @@ exports.AddressForm = AddressForm;
43177
43179
  exports.Alert = Alert$1;
43178
43180
  exports.AllocatedIcon = AllocatedIcon;
43179
43181
  exports.AmountCallout = AmountCallout$1;
43180
- exports.AutopayOnIcon = AutopayOnIcon$1;
43182
+ exports.AutopayOnIcon = AutopayOnIcon;
43181
43183
  exports.BankIcon = BankIcon;
43182
43184
  exports.Box = Box;
43183
43185
  exports.BoxWithShadow = BoxWithShadow$1;