@hyphen/hyphen-components 2.10.0 → 2.11.0

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.
@@ -805,7 +805,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
805
805
  display: "inline-flex",
806
806
  direction: "row",
807
807
  alignItems: "center",
808
- gap: "xs"
808
+ gap: "md"
809
809
  }, isLoading && React.createElement(Spinner, {
810
810
  className: styles$r['spinner-wrapper']
811
811
  }), iconPrefix && React.createElement(Icon, {
@@ -4020,7 +4020,7 @@ var useTheme = function useTheme() {
4020
4020
  return context;
4021
4021
  };
4022
4022
 
4023
- var styles = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4023
+ var styles = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4024
4024
 
4025
4025
  var getAnimationClass = function getAnimationClass(position, visible) {
4026
4026
  var verticalPosition = position.includes('top') ? 'top' : 'bottom';
@@ -4042,7 +4042,7 @@ var renderToastIcon = function renderToastIcon(toast) {
4042
4042
  }
4043
4043
  if (type === 'error') {
4044
4044
  iconName = 'c-warning';
4045
- iconColor = 'danger';
4045
+ iconColor = 'white';
4046
4046
  }
4047
4047
  var icon = type !== 'loading' ? React.createElement(Icon, {
4048
4048
  name: iconName,
@@ -4059,7 +4059,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
4059
4059
  // eslint-disable-next-line consistent-return
4060
4060
  return React.createElement(Box, {
4061
4061
  as: "button",
4062
- borderWidth: "0 0 0 sm",
4062
+ borderWidth: "0",
4063
4063
  className: styles['toast-dismiss'],
4064
4064
  padding: "0 0 0 sm",
4065
4065
  alignItems: "center",
@@ -4076,6 +4076,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
4076
4076
  };
4077
4077
  // eslint-disable-next-line import/prefer-default-export
4078
4078
  var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
4079
+ var _classNames;
4079
4080
  var toast = _ref2.toast,
4080
4081
  _ref2$position = _ref2.position,
4081
4082
  position = _ref2$position === void 0 ? 'top-center' : _ref2$position,
@@ -4090,9 +4091,9 @@ var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
4090
4091
  }
4091
4092
  }, toast.ariaProps), resolveValue(toast.message, toast));
4092
4093
  var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
4093
- var classes = classNames(toast.className, styles['toast-notification'], animationClass, {
4094
+ var classes = classNames(toast.className, styles['toast-notification'], animationClass, (_classNames = {
4094
4095
  'toast-notification--not-visible': !toast.visible
4095
- });
4096
+ }, _classNames[styles['toast-error']] = toast.type === 'error', _classNames));
4096
4097
  return React.createElement(Box, {
4097
4098
  alignItems: "center",
4098
4099
  maxWidth: "300px",