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

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
@@ -4818,25 +4818,34 @@ var AQUA_HAZE_WHITE = "#F7F9FA";
4818
4818
  var BLEACH_WHITE = "#FEF4d7";
4819
4819
  var CATSKILL_WHITE = "#EAF2F6"; // GREY
4820
4820
 
4821
- var ATHENS_GREY = "#F6F6F9";
4821
+ var ATHENS_GREY = "#F6F6F9"; // CBS-100
4822
+
4822
4823
  var ALTO_GREY = "#d1d1d1";
4823
4824
  var SILVER_GREY = "#cdcdcd";
4824
4825
  var PEWTER_GREY = "#DFE1E4";
4825
4826
  var ASH_GREY = "#979797";
4826
4827
  var IRON_GREY = "#d5d8dc";
4827
- var GHOST_GREY = "#CACED8";
4828
+ var GHOST_GREY = "#CACED8"; // CBS-300
4829
+
4828
4830
  var DUSTY_GREY = "#9B9B9B";
4829
4831
  var REGENT_GREY = "#959EA7";
4830
- var STORM_GREY = "#6D717E";
4832
+ var STORM_GREY = "#6D717E"; // CBS-700
4833
+
4831
4834
  var TROUT_GREY = "#515660";
4832
4835
  var MINESHAFT_GREY = "#333333";
4833
4836
  var SOOT_GREY = "#999999";
4834
4837
  var FIREFLY_GREY = "#091325";
4835
- var BRIGHT_GREY = "#3B414D";
4836
- var CHARADE_GREY = "#292A33";
4837
- var GRECIAN_GREY = "#E5E7EC";
4838
+ var BRIGHT_GREY = "#3B414D"; // CBS-800
4839
+
4840
+ var CHARADE_GREY = "#292A33"; // CBS-900
4841
+
4842
+ var GRECIAN_GREY = "#E5E7EC"; // CBS-200
4843
+
4838
4844
  var BLACK_SQUEEZE = "#EAF2F7";
4839
- var GREY_CHATEAU = "#959CA8"; // BLUE
4845
+ var GREY_CHATEAU = "#959CA8"; // CBS-500
4846
+
4847
+ var COOL_GREY_05 = "#fbfcfd"; // CBS-050
4848
+ // BLUE
4840
4849
 
4841
4850
  var CLOUDBURST_BLUE = "#26395c";
4842
4851
  var ZODIAC_BLUE = "#14284b";
@@ -4940,6 +4949,7 @@ var colors = /*#__PURE__*/Object.freeze({
4940
4949
  BRIGHT_GREY: BRIGHT_GREY,
4941
4950
  CHARADE_GREY: CHARADE_GREY,
4942
4951
  GRECIAN_GREY: GRECIAN_GREY,
4952
+ COOL_GREY_05: COOL_GREY_05,
4943
4953
  BLACK_SQUEEZE: BLACK_SQUEEZE,
4944
4954
  GREY_CHATEAU: GREY_CHATEAU,
4945
4955
  CLOUDBURST_BLUE: CLOUDBURST_BLUE,
@@ -6211,13 +6221,12 @@ var BoxWrapper = styled(function (_ref) {
6211
6221
  }).withConfig({
6212
6222
  displayName: "Boxstyled__BoxWrapper",
6213
6223
  componentId: "sc-1f9ij0d-0"
6214
- })(["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) {
6224
+ })(["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) {
6215
6225
  var padding = _ref2.padding;
6216
6226
  return padding;
6217
6227
  }, function (_ref3) {
6218
- var borderSize = _ref3.borderSize,
6219
- borderColor = _ref3.borderColor;
6220
- return "".concat(borderSize, " solid ").concat(borderColor);
6228
+ var border = _ref3.border;
6229
+ return border;
6221
6230
  }, function (_ref4) {
6222
6231
  var boxShadow = _ref4.boxShadow;
6223
6232
  return boxShadow;
@@ -6229,7 +6238,7 @@ var BoxWrapper = styled(function (_ref) {
6229
6238
  return minHeight ? minHeight : "auto";
6230
6239
  }, function (_ref7) {
6231
6240
  var width = _ref7.width;
6232
- return width && "width: ".concat(width, ";");
6241
+ return width;
6233
6242
  }, function (_ref8) {
6234
6243
  var minWidth = _ref8.minWidth;
6235
6244
  return minWidth ? minWidth : "auto";
@@ -6243,38 +6252,34 @@ var BoxWrapper = styled(function (_ref) {
6243
6252
  var borderRadius = _ref11.borderRadius;
6244
6253
  return borderRadius;
6245
6254
  }, function (_ref12) {
6246
- var borderWidthOverride = _ref12.borderWidthOverride,
6247
- borderSize = _ref12.borderSize;
6248
- return borderWidthOverride ? borderWidthOverride : borderSize;
6255
+ var borderWidthOverride = _ref12.borderWidthOverride;
6256
+ return borderWidthOverride;
6249
6257
  }, function (_ref13) {
6250
- var border = _ref13.border;
6251
- return border;
6252
- }, function (_ref14) {
6253
- var textAlign = _ref14.textAlign;
6258
+ var textAlign = _ref13.textAlign;
6254
6259
  return textAlign;
6255
- }, function (_ref15) {
6256
- var hoverStyles = _ref15.hoverStyles,
6257
- as = _ref15.as;
6260
+ }, function (_ref14) {
6261
+ var hoverStyles = _ref14.hoverStyles,
6262
+ as = _ref14.as;
6258
6263
  return css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6259
- }, function (_ref16) {
6260
- var as = _ref16.as;
6264
+ }, function (_ref15) {
6265
+ var as = _ref15.as;
6261
6266
  return css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
6267
+ }, function (_ref16) {
6268
+ var activeStyles = _ref16.activeStyles,
6269
+ as = _ref16.as;
6270
+ return css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6262
6271
  }, function (_ref17) {
6263
- var activeStyles = _ref17.activeStyles,
6272
+ var disabledStyles = _ref17.disabledStyles,
6264
6273
  as = _ref17.as;
6265
- return css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6266
- }, function (_ref18) {
6267
- var disabledStyles = _ref18.disabledStyles,
6268
- as = _ref18.as;
6269
6274
  return css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6270
- }, function (_ref19) {
6271
- var color = _ref19.color;
6275
+ }, function (_ref18) {
6276
+ var color = _ref18.color;
6272
6277
  return color;
6273
- }, function (_ref20) {
6274
- var hiddenStyles = _ref20.hiddenStyles;
6278
+ }, function (_ref19) {
6279
+ var hiddenStyles = _ref19.hiddenStyles;
6275
6280
  return hiddenStyles && css(["display:none;"]);
6276
- }, function (_ref21) {
6277
- var extraStyles = _ref21.extraStyles;
6281
+ }, function (_ref20) {
6282
+ var extraStyles = _ref20.extraStyles;
6278
6283
  return css(["", ""], extraStyles);
6279
6284
  });
6280
6285
  /* eslint-enable no-unused-vars */
@@ -40579,8 +40584,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40579
40584
  isPaymentPlan: isPaymentPlan,
40580
40585
  nextAutopayDate: nextAutopayDate
40581
40586
  })), !isMobile && /*#__PURE__*/React.createElement(Box, {
40582
- padding: isMobile ? "0 0 0 8px" : "0",
40583
- extraStyles: isMobile && "flex-grow: 1;"
40587
+ padding: "0"
40584
40588
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
40585
40589
  isLoading: isLoading,
40586
40590
  action: function action() {
@@ -40588,8 +40592,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40588
40592
  },
40589
40593
  text: "Pay Now",
40590
40594
  variant: isMobile ? "smallSecondary" : "secondary",
40591
- dataQa: "Pay Now",
40592
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40595
+ dataQa: "Pay Now"
40593
40596
  }))), isMobile && /*#__PURE__*/React.createElement(Box, {
40594
40597
  padding: "8px 0 0",
40595
40598
  width: "100%"
@@ -40601,7 +40604,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40601
40604
  text: "Pay Now",
40602
40605
  variant: isMobile ? "smallSecondary" : "secondary",
40603
40606
  dataQa: "Pay Now",
40604
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40607
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
40605
40608
  }))));
40606
40609
  };
40607
40610
 
@@ -40633,7 +40636,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40633
40636
  border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
40634
40637
  borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
40635
40638
  }, /*#__PURE__*/React.createElement(Cluster, {
40636
- childGap: "8px",
40639
+ childGap: autopayEnabled ? "8px" : "0",
40637
40640
  nowrap: true
40638
40641
  }, autoPayEnabled && /*#__PURE__*/React.createElement(Box, {
40639
40642
  padding: "0",
@@ -40659,7 +40662,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40659
40662
  text: "Remove",
40660
40663
  action: handleRemoveAccount,
40661
40664
  dataQa: "Remove Account",
40662
- extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "flex-grow: 1;"
40665
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
40663
40666
  }))));
40664
40667
  };
40665
40668
 
@@ -40728,13 +40731,15 @@ var Obligation = function Obligation(_ref) {
40728
40731
  */
40729
40732
  var firstObligation = obligations[0];
40730
40733
  var customAttributes = (_firstObligation$cust = firstObligation === null || firstObligation === void 0 ? void 0 : firstObligation.customAttributes) !== null && _firstObligation$cust !== void 0 ? _firstObligation$cust : {};
40731
- var boxShadowValue = "0px 4px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40734
+ var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40732
40735
  var activeObligation = /*#__PURE__*/React.createElement(Box, {
40733
40736
  padding: "0",
40734
40737
  borderRadius: "4px",
40735
40738
  boxShadow: boxShadowValue,
40736
40739
  as: "section",
40737
- "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)
40740
+ "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),
40741
+ border: "1px solid ".concat(GRECIAN_GREY),
40742
+ borderWidthOverride: "1px 0 0 0"
40738
40743
  }, /*#__PURE__*/React.createElement(Box, {
40739
40744
  background: WHITE,
40740
40745
  padding: "24px 16px"
@@ -42882,7 +42887,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
42882
42887
  }, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
42883
42888
  };
42884
42889
 
42885
- var pageBackground = "#F6F6F9";
42890
+ var pageBackground = "#FBFCFD";
42886
42891
  var fallbackValues$H = {
42887
42892
  pageBackground: pageBackground
42888
42893
  };
@@ -42906,7 +42911,7 @@ var CenterSingle = function CenterSingle(_ref) {
42906
42911
  return /*#__PURE__*/React.createElement(Box, {
42907
42912
  padding: "0",
42908
42913
  minWidth: "100%",
42909
- background: themeValues.pageBackground,
42914
+ background: COOL_GREY_05,
42910
42915
  extraStyles: "flex-grow: 1;"
42911
42916
  }, /*#__PURE__*/React.createElement(Cover, {
42912
42917
  centerOverride: isMobile && !centeredMobileContent
@@ -42951,7 +42956,7 @@ var CenterStack = function CenterStack(_ref) {
42951
42956
  return /*#__PURE__*/React.createElement(Box, {
42952
42957
  padding: "0",
42953
42958
  minWidth: "100%",
42954
- background: themeValues.pageBackground,
42959
+ background: COOL_GREY_05,
42955
42960
  extraStyles: "flex-grow: 1;"
42956
42961
  }, /*#__PURE__*/React.createElement(Cover, null, header ? header : /*#__PURE__*/React.createElement(Box, {
42957
42962
  padding: "0"
@@ -42991,7 +42996,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
42991
42996
  return /*#__PURE__*/React.createElement(Box, {
42992
42997
  padding: "0",
42993
42998
  minWidth: "100%",
42994
- background: themeValues.pageBackground,
42999
+ background: COOL_GREY_05,
42995
43000
  extraStyles: "flex-grow: 1;"
42996
43001
  }, /*#__PURE__*/React.createElement(Cover, {
42997
43002
  childGap: "0",
@@ -43042,7 +43047,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
43042
43047
  return /*#__PURE__*/React.createElement(Box, {
43043
43048
  padding: "0",
43044
43049
  minWidth: "100%",
43045
- background: themeValues.pageBackground,
43050
+ background: COOL_GREY_05,
43046
43051
  extraStyles: "flex-grow: 1;"
43047
43052
  }, /*#__PURE__*/React.createElement(Cover, {
43048
43053
  centerOverride: !sidebarVerticalCenter
@@ -43098,7 +43103,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
43098
43103
  return /*#__PURE__*/React.createElement(Box, {
43099
43104
  padding: "0",
43100
43105
  minWidth: "100%",
43101
- background: themeValues.pageBackground,
43106
+ background: COOL_GREY_05,
43102
43107
  key: "page-bg",
43103
43108
  extraStyles: "flex-grow: 1;"
43104
43109
  }, /*#__PURE__*/React.createElement(Cover, {