@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.cjs.js CHANGED
@@ -17797,7 +17797,8 @@ var rgbToRgba = function rgbToRgba() {
17797
17797
  return "".concat(rgbValue.slice(0, 3), "a").concat(rgbValue.slice(3, -1), ", ").concat(opacity).concat(rgbValue.slice(-1));
17798
17798
  };
17799
17799
 
17800
- var generateShadows = function generateShadows(baseColorRGB) {
17800
+ var generateShadows = function generateShadows() {
17801
+ var baseColorRGB = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(41, 42, 51)";
17801
17802
  var colorTen = rgbToRgba(baseColorRGB, "0.1") || "rgba(41, 42, 51, 0.1)";
17802
17803
  var colorTwenty = rgbToRgba(baseColorRGB, "0.2") || "rgba(41, 42, 51, 0.2)";
17803
17804
  var colorTwentyFive = rgbToRgba(baseColorRGB, "0.25") || "rgba(41, 42, 51, 0.25)";
@@ -17843,7 +17844,9 @@ var Alert = function Alert(_ref) {
17843
17844
  _ref$noBorder = _ref.noBorder,
17844
17845
  noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder,
17845
17846
  _ref$enableBoxShadow = _ref.enableBoxShadow,
17846
- enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow;
17847
+ enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow,
17848
+ _ref$enableSmallText = _ref.enableSmallText,
17849
+ enableSmallText = _ref$enableSmallText === void 0 ? false : _ref$enableSmallText;
17847
17850
  var Icon = AlertIcons[variant];
17848
17851
  var content = /*#__PURE__*/React__default.createElement(Sidebar, {
17849
17852
  width: "24px",
@@ -17873,7 +17876,7 @@ var Alert = function Alert(_ref) {
17873
17876
  fullHeight: true,
17874
17877
  childGap: "0.25rem"
17875
17878
  }, /*#__PURE__*/React__default.createElement(Text$1, {
17876
- variant: "p",
17879
+ variant: enableSmallText ? "pS" : "p",
17877
17880
  color: themeValues.text,
17878
17881
  weight: "600"
17879
17882
  }, heading), /*#__PURE__*/React__default.createElement(Text$1, {
@@ -47090,9 +47093,12 @@ var ErrorDetails = function ErrorDetails() {
47090
47093
  heading: "Error Loading Payment",
47091
47094
  text: "Please go back and try again.",
47092
47095
  showQuitLink: false,
47093
- height: "67px",
47096
+ maxContentWidth: "350px",
47097
+ padding: "0",
47094
47098
  noBorder: true,
47095
- enableBoxShadow: true
47099
+ enableBoxShadow: true,
47100
+ extraStyles: "min-height: 67px; height: 67px;",
47101
+ enableSmallText: true
47096
47102
  }));
47097
47103
  };
47098
47104