@thecb/components 9.2.0-beta.11 → 9.2.0-beta.13

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
@@ -410,7 +410,7 @@ interface ErrorMessageDictionary {
410
410
 
411
411
  enum ToastVariants {
412
412
  ERROR = "error",
413
- SUCCESS = "success",
413
+ SUCCESS = "success"
414
414
  }
415
415
 
416
416
  interface UseToastOptions {
@@ -423,7 +423,7 @@ interface UseToastResult {
423
423
  toastMessage: string;
424
424
  showToast: ({
425
425
  message,
426
- variant,
426
+ variant
427
427
  }: {
428
428
  message: string;
429
429
  variant: ToastVariants;
package/dist/index.esm.js CHANGED
@@ -27291,7 +27291,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27291
27291
  var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$u);
27292
27292
 
27293
27293
  var activeColor$6 = "".concat(MATISSE_BLUE);
27294
- var inactiveColor = "".concat(GREY_CHATEAU);
27294
+ var inactiveColor = "".concat(STORM_GREY);
27295
27295
  var fallbackValues$v = {
27296
27296
  activeColor: activeColor$6,
27297
27297
  inactiveColor: inactiveColor
@@ -27324,19 +27324,21 @@ var RadioButton$1 = function RadioButton(_ref2) {
27324
27324
  var buttonBorder = {
27325
27325
  onFocused: {
27326
27326
  borderColor: themeValues.activeColor,
27327
- boxShadow: "0px 0px 4px 0px ".concat(themeValues.activeColor)
27327
+ outline: "3px solid ".concat(themeValues.activeColor),
27328
+ outlineOffset: "2px"
27328
27329
  },
27329
27330
  offFocused: {
27330
27331
  borderColor: themeValues.activeColor,
27331
- boxShadow: "0px 0px 4px 0px ".concat(themeValues.activeColor)
27332
+ outline: "3px solid ".concat(themeValues.activeColor),
27333
+ outlineOffset: "2px"
27332
27334
  },
27333
27335
  on: {
27334
27336
  borderColor: themeValues.activeColor,
27335
- boxShadow: "0px 0px 0px 0px #FFFFFF"
27337
+ outline: "0"
27336
27338
  },
27337
27339
  off: {
27338
27340
  borderColor: themeValues.inactiveColor,
27339
- boxShadow: "0px 0px 0px 0px #FFFFFF"
27341
+ outline: "0"
27340
27342
  }
27341
27343
  };
27342
27344
  var buttonCenter = {
@@ -27385,7 +27387,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27385
27387
  borderWidth: "1px",
27386
27388
  borderStyle: "solid",
27387
27389
  borderRadius: "12px",
27388
- margin: "4px 14px 4px 4px",
27390
+ margin: "6px 14px 6px 6px",
27389
27391
  height: "24px",
27390
27392
  width: "24px",
27391
27393
  variants: buttonBorder,
@@ -50333,19 +50335,19 @@ var ToastNotification = function ToastNotification(_ref) {
50333
50335
  backgroundColor = _ref.backgroundColor;
50334
50336
  return /*#__PURE__*/React.createElement(Box, {
50335
50337
  onClick: closeToastNotification,
50336
- background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_BACKGROUND_COLOR : WHITE,
50338
+ background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
50337
50339
  minWidth: minWidth,
50338
50340
  minHeight: height && parseInt(height) < 100 ? height : "100px",
50339
50341
  height: height ? height : "auto",
50340
50342
  tabIndex: toastOpen ? "-1" : "0",
50341
50343
  padding: "0rem 1rem",
50342
50344
  borderRadius: "4px",
50343
- 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)",
50345
+ boxShadow: generateShadows().standard.base,
50344
50346
  extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
50345
50347
  }, /*#__PURE__*/React.createElement(Cluster, {
50346
50348
  align: "center",
50347
50349
  childGap: childGap
50348
- }, variant === "success" && /*#__PURE__*/React.createElement(SuccessfulIconMedium, null), variant === "error" && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
50350
+ }, variant === VARIANTS.SUCCESS && /*#__PURE__*/React.createElement(SuccessfulIconMedium, null), variant === VARIANTS.ERROR && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
50349
50351
  padding: "1rem 0",
50350
50352
  maxWidth: maxWidth
50351
50353
  }, /*#__PURE__*/React.createElement(Paragraph$1, {