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

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.d.ts CHANGED
@@ -99,6 +99,7 @@ declare const COSMOS_RED: Color;
99
99
  declare const BLUSH_RED: Color;
100
100
 
101
101
  declare const ERROR_COLOR: Color;
102
+ declare const ERROR_BACKGROUND_COLOR: Color;
102
103
 
103
104
  declare const ALERT_COLORS: {
104
105
  warn: ColorSet;
@@ -203,6 +204,7 @@ declare const colors_d_FANTASY_RED: typeof FANTASY_RED;
203
204
  declare const colors_d_COSMOS_RED: typeof COSMOS_RED;
204
205
  declare const colors_d_BLUSH_RED: typeof BLUSH_RED;
205
206
  declare const colors_d_ERROR_COLOR: typeof ERROR_COLOR;
207
+ declare const colors_d_ERROR_BACKGROUND_COLOR: typeof ERROR_BACKGROUND_COLOR;
206
208
  declare const colors_d_ALERT_COLORS: typeof ALERT_COLORS;
207
209
  declare const colors_d_PILL_COLORS: typeof PILL_COLORS;
208
210
  declare namespace colors_d {
@@ -282,6 +284,7 @@ declare namespace colors_d {
282
284
  colors_d_COSMOS_RED as COSMOS_RED,
283
285
  colors_d_BLUSH_RED as BLUSH_RED,
284
286
  colors_d_ERROR_COLOR as ERROR_COLOR,
287
+ colors_d_ERROR_BACKGROUND_COLOR as ERROR_BACKGROUND_COLOR,
285
288
  colors_d_ALERT_COLORS as ALERT_COLORS,
286
289
  colors_d_PILL_COLORS as PILL_COLORS,
287
290
  };
package/dist/index.esm.js CHANGED
@@ -5043,7 +5043,8 @@ var FANTASY_RED = "#FCF4F4";
5043
5043
  var COSMOS_RED = "#FFD0D3";
5044
5044
  var BLUSH_RED = "#FFF0F5"; // Second level color constants
5045
5045
 
5046
- var ERROR_COLOR = RAZZMATAZZ_RED; // These colors are sequestered so that the alert component can reference them // by type of alert
5046
+ var ERROR_COLOR = RAZZMATAZZ_RED;
5047
+ var ERROR_BACKGROUND_COLOR = "#FFF4F8"; // These colors are sequestered so that the alert component can reference them // by type of alert
5047
5048
 
5048
5049
  var ALERT_COLORS = {
5049
5050
  warn: {
@@ -5174,7 +5175,8 @@ var colors = /*#__PURE__*/Object.freeze({
5174
5175
  RASPBERRY: RASPBERRY,
5175
5176
  ALERT_COLORS: ALERT_COLORS,
5176
5177
  PILL_COLORS: PILL_COLORS,
5177
- ERROR_COLOR: ERROR_COLOR
5178
+ ERROR_COLOR: ERROR_COLOR,
5179
+ ERROR_BACKGROUND_COLOR: ERROR_BACKGROUND_COLOR
5178
5180
  });
5179
5181
 
5180
5182
  var TextSpan = styled.span.withConfig({
@@ -50282,10 +50284,6 @@ var Timeout = function Timeout(_ref) {
50282
50284
 
50283
50285
  var Timeout$1 = withWindowSize(Timeout);
50284
50286
 
50285
- var CloseIconWrapper = styled.div.withConfig({
50286
- displayName: "ToastNotification__CloseIconWrapper",
50287
- componentId: "sc-116yflm-0"
50288
- })(["min-height:24px;min-width:24px;display:flex;margin:16px;justify-content:center;align-items:center;cursor:pointer;"]);
50289
50287
  var VARIANTS = {
50290
50288
  SUCCESS: "success",
50291
50289
  ERROR: "error"
@@ -50301,6 +50299,8 @@ var ToastNotification = function ToastNotification(_ref) {
50301
50299
  maxWidth = _ref$maxWidth === void 0 ? "350px" : _ref$maxWidth,
50302
50300
  _ref$height = _ref.height,
50303
50301
  height = _ref$height === void 0 ? "56px" : _ref$height,
50302
+ _ref$childGap = _ref.childGap,
50303
+ childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
50304
50304
  closeToastNotification = _ref.closeToastNotification,
50305
50305
  toastOpen = _ref.toastOpen,
50306
50306
  _ref$variant = _ref.variant,
@@ -50308,25 +50308,25 @@ var ToastNotification = function ToastNotification(_ref) {
50308
50308
  backgroundColor = _ref.backgroundColor;
50309
50309
  return /*#__PURE__*/React.createElement(Box, {
50310
50310
  onClick: closeToastNotification,
50311
- background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_COLOR : WHITE,
50311
+ background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_BACKGROUND_COLOR : WHITE,
50312
50312
  minWidth: minWidth,
50313
50313
  minHeight: height && parseInt(height) < 100 ? height : "100px",
50314
50314
  height: height ? height : "auto",
50315
50315
  tabIndex: toastOpen ? "-1" : "0",
50316
- padding: "0",
50316
+ padding: "0rem 1rem",
50317
50317
  borderRadius: "4px",
50318
50318
  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)",
50319
- extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n ")
50319
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
50320
50320
  }, /*#__PURE__*/React.createElement(Cluster, {
50321
50321
  align: "center",
50322
- childGap: "0"
50323
- }, variant === "success" && /*#__PURE__*/React.createElement(SuccessfulIconSmall, null), variant === "error" && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
50322
+ childGap: childGap
50323
+ }, variant === "success" && /*#__PURE__*/React.createElement(SuccessfulIconMedium, null), variant === "error" && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
50324
50324
  padding: "1rem 0",
50325
50325
  maxWidth: maxWidth
50326
50326
  }, /*#__PURE__*/React.createElement(Paragraph$1, {
50327
50327
  weight: FONT_WEIGHT_SEMIBOLD,
50328
50328
  extraStyles: "word-break: break-word;"
50329
- }, message)), /*#__PURE__*/React.createElement(CloseIconWrapper, null, /*#__PURE__*/React.createElement(IconQuitLarge, null))));
50329
+ }, message)), /*#__PURE__*/React.createElement(IconQuitLarge, null)));
50330
50330
  };
50331
50331
 
50332
50332
  var fontWeight$9 = "600";