@thecb/components 9.2.0-beta.2 → 9.2.0-beta.3

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
@@ -5051,7 +5051,8 @@ var FANTASY_RED = "#FCF4F4";
5051
5051
  var COSMOS_RED = "#FFD0D3";
5052
5052
  var BLUSH_RED = "#FFF0F5"; // Second level color constants
5053
5053
 
5054
- var ERROR_COLOR = RAZZMATAZZ_RED; // These colors are sequestered so that the alert component can reference them // by type of alert
5054
+ var ERROR_COLOR = RAZZMATAZZ_RED;
5055
+ var ERROR_BACKGROUND_COLOR = "#FFF4F8"; // These colors are sequestered so that the alert component can reference them // by type of alert
5055
5056
 
5056
5057
  var ALERT_COLORS = {
5057
5058
  warn: {
@@ -5182,7 +5183,8 @@ var colors = /*#__PURE__*/Object.freeze({
5182
5183
  RASPBERRY: RASPBERRY,
5183
5184
  ALERT_COLORS: ALERT_COLORS,
5184
5185
  PILL_COLORS: PILL_COLORS,
5185
- ERROR_COLOR: ERROR_COLOR
5186
+ ERROR_COLOR: ERROR_COLOR,
5187
+ ERROR_BACKGROUND_COLOR: ERROR_BACKGROUND_COLOR
5186
5188
  });
5187
5189
 
5188
5190
  var TextSpan = styled__default.span.withConfig({
@@ -50290,10 +50292,6 @@ var Timeout = function Timeout(_ref) {
50290
50292
 
50291
50293
  var Timeout$1 = withWindowSize(Timeout);
50292
50294
 
50293
- var CloseIconWrapper = styled__default.div.withConfig({
50294
- displayName: "ToastNotification__CloseIconWrapper",
50295
- componentId: "sc-116yflm-0"
50296
- })(["min-height:24px;min-width:24px;display:flex;margin:16px;justify-content:center;align-items:center;cursor:pointer;"]);
50297
50295
  var VARIANTS = {
50298
50296
  SUCCESS: "success",
50299
50297
  ERROR: "error"
@@ -50309,6 +50307,8 @@ var ToastNotification = function ToastNotification(_ref) {
50309
50307
  maxWidth = _ref$maxWidth === void 0 ? "350px" : _ref$maxWidth,
50310
50308
  _ref$height = _ref.height,
50311
50309
  height = _ref$height === void 0 ? "56px" : _ref$height,
50310
+ _ref$childGap = _ref.childGap,
50311
+ childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
50312
50312
  closeToastNotification = _ref.closeToastNotification,
50313
50313
  toastOpen = _ref.toastOpen,
50314
50314
  _ref$variant = _ref.variant,
@@ -50316,25 +50316,25 @@ var ToastNotification = function ToastNotification(_ref) {
50316
50316
  backgroundColor = _ref.backgroundColor;
50317
50317
  return /*#__PURE__*/React__default.createElement(Box, {
50318
50318
  onClick: closeToastNotification,
50319
- background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_COLOR : WHITE,
50319
+ background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_BACKGROUND_COLOR : WHITE,
50320
50320
  minWidth: minWidth,
50321
50321
  minHeight: height && parseInt(height) < 100 ? height : "100px",
50322
50322
  height: height ? height : "auto",
50323
50323
  tabIndex: toastOpen ? "-1" : "0",
50324
- padding: "0",
50324
+ padding: "0rem 1rem",
50325
50325
  borderRadius: "4px",
50326
50326
  boxShadow: "0px 4px 4px rgba(41, 42, 51, 0.15), 0px 1px 7px rgba(41, 42, 51, 0.2), 0px 7px 12px rgba(41, 42, 51, 0.15)",
50327
50327
  extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n ")
50328
50328
  }, /*#__PURE__*/React__default.createElement(Cluster, {
50329
50329
  align: "center",
50330
- childGap: "0"
50331
- }, variant === "success" && /*#__PURE__*/React__default.createElement(SuccessfulIconSmall, null), variant === "error" && /*#__PURE__*/React__default.createElement(ErroredIcon, null), /*#__PURE__*/React__default.createElement(Box, {
50330
+ childGap: childGap
50331
+ }, variant === "success" && /*#__PURE__*/React__default.createElement(SuccessfulIconMedium, null), variant === "error" && /*#__PURE__*/React__default.createElement(ErroredIcon, null), /*#__PURE__*/React__default.createElement(Box, {
50332
50332
  padding: "1rem 0",
50333
50333
  maxWidth: maxWidth
50334
50334
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
50335
50335
  weight: FONT_WEIGHT_SEMIBOLD,
50336
50336
  extraStyles: "word-break: break-word;"
50337
- }, message)), /*#__PURE__*/React__default.createElement(CloseIconWrapper, null, /*#__PURE__*/React__default.createElement(IconQuitLarge, null))));
50337
+ }, message)), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
50338
50338
  };
50339
50339
 
50340
50340
  var fontWeight$9 = "600";