@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.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,14 @@ 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:", ";", " 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,
6228
+ var border = _ref3.border,
6229
+ borderSize = _ref3.borderSize,
6219
6230
  borderColor = _ref3.borderColor;
6220
- return "".concat(borderSize, " solid ").concat(borderColor);
6231
+ return border ? border : "".concat(borderSize, " solid ").concat(borderColor);
6221
6232
  }, function (_ref4) {
6222
6233
  var boxShadow = _ref4.boxShadow;
6223
6234
  return boxShadow;
@@ -6243,38 +6254,34 @@ var BoxWrapper = styled(function (_ref) {
6243
6254
  var borderRadius = _ref11.borderRadius;
6244
6255
  return borderRadius;
6245
6256
  }, function (_ref12) {
6246
- var borderWidthOverride = _ref12.borderWidthOverride,
6247
- borderSize = _ref12.borderSize;
6248
- return borderWidthOverride ? borderWidthOverride : borderSize;
6257
+ var borderWidthOverride = _ref12.borderWidthOverride;
6258
+ return borderWidthOverride;
6249
6259
  }, function (_ref13) {
6250
- var border = _ref13.border;
6251
- return border;
6252
- }, function (_ref14) {
6253
- var textAlign = _ref14.textAlign;
6260
+ var textAlign = _ref13.textAlign;
6254
6261
  return textAlign;
6255
- }, function (_ref15) {
6256
- var hoverStyles = _ref15.hoverStyles,
6257
- as = _ref15.as;
6262
+ }, function (_ref14) {
6263
+ var hoverStyles = _ref14.hoverStyles,
6264
+ as = _ref14.as;
6258
6265
  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;
6266
+ }, function (_ref15) {
6267
+ var as = _ref15.as;
6261
6268
  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 }");
6269
+ }, function (_ref16) {
6270
+ var activeStyles = _ref16.activeStyles,
6271
+ as = _ref16.as;
6272
+ return css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6262
6273
  }, function (_ref17) {
6263
- var activeStyles = _ref17.activeStyles,
6274
+ var disabledStyles = _ref17.disabledStyles,
6264
6275
  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
6276
  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;
6277
+ }, function (_ref18) {
6278
+ var color = _ref18.color;
6272
6279
  return color;
6273
- }, function (_ref20) {
6274
- var hiddenStyles = _ref20.hiddenStyles;
6280
+ }, function (_ref19) {
6281
+ var hiddenStyles = _ref19.hiddenStyles;
6275
6282
  return hiddenStyles && css(["display:none;"]);
6276
- }, function (_ref21) {
6277
- var extraStyles = _ref21.extraStyles;
6283
+ }, function (_ref20) {
6284
+ var extraStyles = _ref20.extraStyles;
6278
6285
  return css(["", ""], extraStyles);
6279
6286
  });
6280
6287
  /* eslint-enable no-unused-vars */
@@ -40579,8 +40586,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40579
40586
  isPaymentPlan: isPaymentPlan,
40580
40587
  nextAutopayDate: nextAutopayDate
40581
40588
  })), !isMobile && /*#__PURE__*/React.createElement(Box, {
40582
- padding: isMobile ? "0 0 0 8px" : "0",
40583
- extraStyles: isMobile && "flex-grow: 1;"
40589
+ padding: "0"
40584
40590
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
40585
40591
  isLoading: isLoading,
40586
40592
  action: function action() {
@@ -40588,8 +40594,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40588
40594
  },
40589
40595
  text: "Pay Now",
40590
40596
  variant: isMobile ? "smallSecondary" : "secondary",
40591
- dataQa: "Pay Now",
40592
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40597
+ dataQa: "Pay Now"
40593
40598
  }))), isMobile && /*#__PURE__*/React.createElement(Box, {
40594
40599
  padding: "8px 0 0",
40595
40600
  width: "100%"
@@ -40601,7 +40606,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
40601
40606
  text: "Pay Now",
40602
40607
  variant: isMobile ? "smallSecondary" : "secondary",
40603
40608
  dataQa: "Pay Now",
40604
- extraStyles: isMobile && "flex-grow: 1; width: 100%;"
40609
+ extraStyles: isMobile && "flex-grow: 1; width: 100%; margin: 0;"
40605
40610
  }))));
40606
40611
  };
40607
40612
 
@@ -40633,7 +40638,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40633
40638
  border: isMobile ? "1px solid ".concat(GHOST_GREY) : "0px",
40634
40639
  borderWidthOverride: isMobile ? "1px 0 0 0" : "0px"
40635
40640
  }, /*#__PURE__*/React.createElement(Cluster, {
40636
- childGap: "8px",
40641
+ childGap: autoPayEnabled ? "8px" : "0",
40637
40642
  nowrap: true
40638
40643
  }, autoPayEnabled && /*#__PURE__*/React.createElement(Box, {
40639
40644
  padding: "0",
@@ -40659,7 +40664,7 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
40659
40664
  text: "Remove",
40660
40665
  action: handleRemoveAccount,
40661
40666
  dataQa: "Remove Account",
40662
- extraStyles: isMobile ? "flex-grow: 1; width: 100%;" : "flex-grow: 1;"
40667
+ extraStyles: isMobile ? "flex-grow: 1; width: 100%; margin: 0;" : "flex-grow: 1;"
40663
40668
  }))));
40664
40669
  };
40665
40670
 
@@ -40728,13 +40733,15 @@ var Obligation = function Obligation(_ref) {
40728
40733
  */
40729
40734
  var firstObligation = obligations[0];
40730
40735
  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);";
40736
+ var boxShadowValue = "0px 2px 4px rgba(41, 42, 51, 0.1), 0px 1px 1px 2px rgba(41, 42, 51, 0.1);";
40732
40737
  var activeObligation = /*#__PURE__*/React.createElement(Box, {
40733
40738
  padding: "0",
40734
40739
  borderRadius: "4px",
40735
40740
  boxShadow: boxShadowValue,
40736
40741
  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)
40742
+ "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),
40743
+ border: "1px solid ".concat(GRECIAN_GREY),
40744
+ borderWidthOverride: "1px 0 0 0"
40738
40745
  }, /*#__PURE__*/React.createElement(Box, {
40739
40746
  background: WHITE,
40740
40747
  padding: "24px 16px"
@@ -42882,7 +42889,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
42882
42889
  }, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
42883
42890
  };
42884
42891
 
42885
- var pageBackground = "#F6F6F9";
42892
+ var pageBackground = "#FBFCFD";
42886
42893
  var fallbackValues$H = {
42887
42894
  pageBackground: pageBackground
42888
42895
  };
@@ -42906,7 +42913,7 @@ var CenterSingle = function CenterSingle(_ref) {
42906
42913
  return /*#__PURE__*/React.createElement(Box, {
42907
42914
  padding: "0",
42908
42915
  minWidth: "100%",
42909
- background: themeValues.pageBackground,
42916
+ background: COOL_GREY_05,
42910
42917
  extraStyles: "flex-grow: 1;"
42911
42918
  }, /*#__PURE__*/React.createElement(Cover, {
42912
42919
  centerOverride: isMobile && !centeredMobileContent
@@ -42951,7 +42958,7 @@ var CenterStack = function CenterStack(_ref) {
42951
42958
  return /*#__PURE__*/React.createElement(Box, {
42952
42959
  padding: "0",
42953
42960
  minWidth: "100%",
42954
- background: themeValues.pageBackground,
42961
+ background: COOL_GREY_05,
42955
42962
  extraStyles: "flex-grow: 1;"
42956
42963
  }, /*#__PURE__*/React.createElement(Cover, null, header ? header : /*#__PURE__*/React.createElement(Box, {
42957
42964
  padding: "0"
@@ -42991,7 +42998,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
42991
42998
  return /*#__PURE__*/React.createElement(Box, {
42992
42999
  padding: "0",
42993
43000
  minWidth: "100%",
42994
- background: themeValues.pageBackground,
43001
+ background: COOL_GREY_05,
42995
43002
  extraStyles: "flex-grow: 1;"
42996
43003
  }, /*#__PURE__*/React.createElement(Cover, {
42997
43004
  childGap: "0",
@@ -43042,7 +43049,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
43042
43049
  return /*#__PURE__*/React.createElement(Box, {
43043
43050
  padding: "0",
43044
43051
  minWidth: "100%",
43045
- background: themeValues.pageBackground,
43052
+ background: COOL_GREY_05,
43046
43053
  extraStyles: "flex-grow: 1;"
43047
43054
  }, /*#__PURE__*/React.createElement(Cover, {
43048
43055
  centerOverride: !sidebarVerticalCenter
@@ -43098,7 +43105,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
43098
43105
  return /*#__PURE__*/React.createElement(Box, {
43099
43106
  padding: "0",
43100
43107
  minWidth: "100%",
43101
- background: themeValues.pageBackground,
43108
+ background: COOL_GREY_05,
43102
43109
  key: "page-bg",
43103
43110
  extraStyles: "flex-grow: 1;"
43104
43111
  }, /*#__PURE__*/React.createElement(Cover, {