@thecb/components 5.8.2-beta.6 → 5.8.2-beta.9

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,14 @@ 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:", ";", " 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,
6236
+ var border = _ref3.border,
6237
+ borderSize = _ref3.borderSize,
6227
6238
  borderColor = _ref3.borderColor;
6228
- return "".concat(borderSize, " solid ").concat(borderColor);
6239
+ return border ? border : "".concat(borderSize, " solid ").concat(borderColor);
6229
6240
  }, function (_ref4) {
6230
6241
  var boxShadow = _ref4.boxShadow;
6231
6242
  return boxShadow;
@@ -6251,38 +6262,34 @@ var BoxWrapper = styled__default(function (_ref) {
6251
6262
  var borderRadius = _ref11.borderRadius;
6252
6263
  return borderRadius;
6253
6264
  }, function (_ref12) {
6254
- var borderWidthOverride = _ref12.borderWidthOverride,
6255
- borderSize = _ref12.borderSize;
6256
- return borderWidthOverride ? borderWidthOverride : borderSize;
6265
+ var borderWidthOverride = _ref12.borderWidthOverride;
6266
+ return borderWidthOverride;
6257
6267
  }, function (_ref13) {
6258
- var border = _ref13.border;
6259
- return border;
6260
- }, function (_ref14) {
6261
- var textAlign = _ref14.textAlign;
6268
+ var textAlign = _ref13.textAlign;
6262
6269
  return textAlign;
6263
- }, function (_ref15) {
6264
- var hoverStyles = _ref15.hoverStyles,
6265
- as = _ref15.as;
6270
+ }, function (_ref14) {
6271
+ var hoverStyles = _ref14.hoverStyles,
6272
+ as = _ref14.as;
6266
6273
  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;
6274
+ }, function (_ref15) {
6275
+ var as = _ref15.as;
6269
6276
  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 }");
6277
+ }, function (_ref16) {
6278
+ var activeStyles = _ref16.activeStyles,
6279
+ as = _ref16.as;
6280
+ return styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6270
6281
  }, function (_ref17) {
6271
- var activeStyles = _ref17.activeStyles,
6282
+ var disabledStyles = _ref17.disabledStyles,
6272
6283
  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
6284
  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;
6285
+ }, function (_ref18) {
6286
+ var color = _ref18.color;
6280
6287
  return color;
6281
- }, function (_ref20) {
6282
- var hiddenStyles = _ref20.hiddenStyles;
6288
+ }, function (_ref19) {
6289
+ var hiddenStyles = _ref19.hiddenStyles;
6283
6290
  return hiddenStyles && styled.css(["display:none;"]);
6284
- }, function (_ref21) {
6285
- var extraStyles = _ref21.extraStyles;
6291
+ }, function (_ref20) {
6292
+ var extraStyles = _ref20.extraStyles;
6286
6293
  return styled.css(["", ""], extraStyles);
6287
6294
  });
6288
6295
  /* eslint-enable no-unused-vars */
@@ -40587,8 +40594,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40587
40594
  isPaymentPlan: isPaymentPlan,
40588
40595
  nextAutopayDate: nextAutopayDate
40589
40596
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
40590
- padding: isMobile ? "0 0 0 8px" : "0",
40591
- extraStyles: isMobile && "flex-grow: 1;"
40597
+ padding: "0"
40592
40598
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40593
40599
  isLoading: isLoading,
40594
40600
  action: function action() {
@@ -40596,8 +40602,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40596
40602
  },
40597
40603
  text: "Pay Now",
40598
40604
  variant: isMobile ? "smallSecondary" : "secondary",
40599
- dataQa: "Pay Now",
40600
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40605
+ dataQa: "Pay Now"
40601
40606
  }))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
40602
40607
  padding: "8px 0 0",
40603
40608
  width: "100%"
@@ -40609,7 +40614,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40609
40614
  text: "Pay Now",
40610
40615
  variant: isMobile ? "smallSecondary" : "secondary",
40611
40616
  dataQa: "Pay Now",
40612
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40617
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
40613
40618
  }))));
40614
40619
  };
40615
40620
 
@@ -40641,7 +40646,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40641
40646
  border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
40642
40647
  borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
40643
40648
  }, /*#__PURE__*/React__default.createElement(Cluster, {
40644
- childGap: "8px",
40649
+ childGap: autoPayEnabled ? "8px" : "0",
40645
40650
  nowrap: true
40646
40651
  }, autoPayEnabled && /*#__PURE__*/React__default.createElement(Box, {
40647
40652
  padding: "0",
@@ -40667,7 +40672,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40667
40672
  text: "Remove",
40668
40673
  action: handleRemoveAccount,
40669
40674
  dataQa: "Remove Account",
40670
- extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "flex-grow: 1;"
40675
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
40671
40676
  }))));
40672
40677
  };
40673
40678
 
@@ -40736,13 +40741,15 @@ var Obligation = function Obligation(_ref) {
40736
40741
  */
40737
40742
  var firstObligation = obligations[0];
40738
40743
  var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
40739
- var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40744
+ var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40740
40745
  var activeObligation = /*#__PURE__*/React__default.createElement(Box, {
40741
40746
  padding: "0",
40742
40747
  borderRadius: "4px",
40743
40748
  boxShadow: boxShadowValue,
40744
40749
  as: "section",
40745
- "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)
40750
+ "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),
40751
+ border: "1px solid ".concat(GRECIAN_GREY),
40752
+ borderWidthOverride: "1px 0 0 0"
40746
40753
  }, /*#__PURE__*/React__default.createElement(Box, {
40747
40754
  background: WHITE,
40748
40755
  padding: "24px 16px"
@@ -42890,7 +42897,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
42890
42897
  }, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
42891
42898
  };
42892
42899
 
42893
- var pageBackground = "#F6F6F9";
42900
+ var pageBackground = "#FBFCFD";
42894
42901
  var fallbackValues$H = {
42895
42902
  pageBackground: pageBackground
42896
42903
  };
@@ -42914,7 +42921,7 @@ var CenterSingle = function CenterSingle(_ref) {
42914
42921
  return /*#__PURE__*/React__default.createElement(Box, {
42915
42922
  padding: "0",
42916
42923
  minWidth: "100%",
42917
- background: themeValues.pageBackground,
42924
+ background: COOL_GREY_05,
42918
42925
  extraStyles: "flex-grow: 1;"
42919
42926
  }, /*#__PURE__*/React__default.createElement(Cover, {
42920
42927
  centerOverride: isMobile && !centeredMobileContent
@@ -42959,7 +42966,7 @@ var CenterStack = function CenterStack(_ref) {
42959
42966
  return /*#__PURE__*/React__default.createElement(Box, {
42960
42967
  padding: "0",
42961
42968
  minWidth: "100%",
42962
- background: themeValues.pageBackground,
42969
+ background: COOL_GREY_05,
42963
42970
  extraStyles: "flex-grow: 1;"
42964
42971
  }, /*#__PURE__*/React__default.createElement(Cover, null, header ? header : /*#__PURE__*/React__default.createElement(Box, {
42965
42972
  padding: "0"
@@ -42999,7 +43006,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
42999
43006
  return /*#__PURE__*/React__default.createElement(Box, {
43000
43007
  padding: "0",
43001
43008
  minWidth: "100%",
43002
- background: themeValues.pageBackground,
43009
+ background: COOL_GREY_05,
43003
43010
  extraStyles: "flex-grow: 1;"
43004
43011
  }, /*#__PURE__*/React__default.createElement(Cover, {
43005
43012
  childGap: "0",
@@ -43050,7 +43057,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
43050
43057
  return /*#__PURE__*/React__default.createElement(Box, {
43051
43058
  padding: "0",
43052
43059
  minWidth: "100%",
43053
- background: themeValues.pageBackground,
43060
+ background: COOL_GREY_05,
43054
43061
  extraStyles: "flex-grow: 1;"
43055
43062
  }, /*#__PURE__*/React__default.createElement(Cover, {
43056
43063
  centerOverride: !sidebarVerticalCenter
@@ -43106,7 +43113,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
43106
43113
  return /*#__PURE__*/React__default.createElement(Box, {
43107
43114
  padding: "0",
43108
43115
  minWidth: "100%",
43109
- background: themeValues.pageBackground,
43116
+ background: COOL_GREY_05,
43110
43117
  key: "page-bg",
43111
43118
  extraStyles: "flex-grow: 1;"
43112
43119
  }, /*#__PURE__*/React__default.createElement(Cover, {