@deque/cauldron-react 6.3.2-canary.53e4b833 → 6.3.2-canary.8ee7748b

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import AriaIsolate from '../../utils/aria-isolate';
3
- export interface ToastProps {
3
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  type: 'confirmation' | 'caution' | 'error' | 'action-needed' | 'info';
5
5
  onDismiss: () => void;
6
6
  dismissText?: string;
package/lib/index.js CHANGED
@@ -1932,11 +1932,11 @@ var Toast = /** @class */ (function (_super) {
1932
1932
  var _a = this.props, type = _a.type, children = _a.children;
1933
1933
  // prevent `onDismiss` from being passed-through to DOM
1934
1934
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1935
- _a.onDismiss; var dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, dismissible = _a.dismissible, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show", "dismissible"]);
1935
+ _a.onDismiss; var dismissText = _a.dismissText, toastRef = _a.toastRef, focus = _a.focus, show = _a.show, dismissible = _a.dismissible, className = _a.className, otherProps = tslib.__rest(_a, ["type", "children", "onDismiss", "dismissText", "toastRef", "focus", "show", "dismissible", "className"]);
1936
1936
  var scrim = type === 'action-needed' && show ? (React__default["default"].createElement("div", { className: "Scrim--light Scrim--show Scrim--fade-in" })) : null;
1937
1937
  var defaultProps = {
1938
1938
  tabIndex: -1,
1939
- className: classNames__default["default"]('Toast', "Toast--".concat(typeMap[type].className), animationClass, { 'Toast--non-dismissible': !dismissible })
1939
+ className: classNames__default["default"]('Toast', "Toast--".concat(typeMap[type].className), animationClass, { 'Toast--non-dismissible': !dismissible }, className)
1940
1940
  };
1941
1941
  if (!focus) {
1942
1942
  defaultProps.role = 'alert';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.3.2-canary.53e4b833",
3
+ "version": "6.3.2-canary.8ee7748b",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",