@thecb/components 7.12.2-beta.6 → 7.12.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.esm.js CHANGED
@@ -17789,7 +17789,8 @@ var rgbToRgba = function rgbToRgba() {
17789
17789
  return "".concat(rgbValue.slice(0, 3), "a").concat(rgbValue.slice(3, -1), ", ").concat(opacity).concat(rgbValue.slice(-1));
17790
17790
  };
17791
17791
 
17792
- var generateShadows = function generateShadows(baseColorRGB) {
17792
+ var generateShadows = function generateShadows() {
17793
+ var baseColorRGB = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(41, 42, 51)";
17793
17794
  var colorTen = rgbToRgba(baseColorRGB, "0.1") || "rgba(41, 42, 51, 0.1)";
17794
17795
  var colorTwenty = rgbToRgba(baseColorRGB, "0.2") || "rgba(41, 42, 51, 0.2)";
17795
17796
  var colorTwentyFive = rgbToRgba(baseColorRGB, "0.25") || "rgba(41, 42, 51, 0.25)";
@@ -17835,7 +17836,9 @@ var Alert = function Alert(_ref) {
17835
17836
  _ref$noBorder = _ref.noBorder,
17836
17837
  noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder,
17837
17838
  _ref$enableBoxShadow = _ref.enableBoxShadow,
17838
- enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow;
17839
+ enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow,
17840
+ _ref$enableSmallText = _ref.enableSmallText,
17841
+ enableSmallText = _ref$enableSmallText === void 0 ? false : _ref$enableSmallText;
17839
17842
  var Icon = AlertIcons[variant];
17840
17843
  var content = /*#__PURE__*/React.createElement(Sidebar, {
17841
17844
  width: "24px",
@@ -17865,7 +17868,7 @@ var Alert = function Alert(_ref) {
17865
17868
  fullHeight: true,
17866
17869
  childGap: "0.25rem"
17867
17870
  }, /*#__PURE__*/React.createElement(Text$1, {
17868
- variant: "p",
17871
+ variant: enableSmallText ? "pS" : "p",
17869
17872
  color: themeValues.text,
17870
17873
  weight: "600"
17871
17874
  }, heading), /*#__PURE__*/React.createElement(Text$1, {
@@ -47082,9 +47085,12 @@ var ErrorDetails = function ErrorDetails() {
47082
47085
  heading: "Error Loading Payment",
47083
47086
  text: "Please go back and try again.",
47084
47087
  showQuitLink: false,
47085
- height: "67px",
47088
+ maxContentWidth: "350px",
47089
+ padding: "0",
47086
47090
  noBorder: true,
47087
- enableBoxShadow: true
47091
+ enableBoxShadow: true,
47092
+ extraStyles: "min-height: 67px; height: 67px;",
47093
+ enableSmallText: true
47088
47094
  }));
47089
47095
  };
47090
47096