@deque/cauldron-react 6.4.1-canary.dc549db8 → 6.4.1-canary.fead02fc

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.
@@ -7,8 +7,8 @@ export interface DialogProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  dialogRef?: React.Ref<HTMLDivElement>;
8
8
  onClose?: () => void;
9
9
  forceAction?: boolean;
10
- heading: React.ReactElement<any> | {
11
- text: React.ReactElement<any>;
10
+ heading: string | React.ReactElement<any> | {
11
+ text: React.ReactElement<any> | string;
12
12
  level: number | undefined;
13
13
  };
14
14
  closeButtonText?: string;
package/lib/index.js CHANGED
@@ -1437,6 +1437,7 @@ var Dialog = /** @class */ (function (_super) {
1437
1437
  ? heading.level
1438
1438
  : 2);
1439
1439
  var Dialog = (React__default["default"].createElement(FocusTrap__default["default"], { focusTrapOptions: {
1440
+ allowOutsideClick: true,
1440
1441
  onDeactivate: this.close,
1441
1442
  escapeDeactivates: !forceAction,
1442
1443
  fallbackFocus: '.Dialog__heading'
package/lib/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactFragment, ReactPortal } from 'react';
1
+ import type { ReactElement, ReactPortal } from 'react';
2
2
  export declare namespace Cauldron {
3
3
  type LabelProps = {
4
4
  'aria-label': string;
@@ -10,4 +10,4 @@ export declare namespace Cauldron {
10
10
  * This type is meant to ensure that a prop can actually be rendered as content.
11
11
  * Explicit equivalent of Exclude<ReactNode, boolean | null | undefined>
12
12
  */
13
- export type ContentNode = string | number | ReactFragment | ReactPortal | ReactElement;
13
+ export type ContentNode = string | number | ReactPortal | ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.4.1-canary.dc549db8",
3
+ "version": "6.4.1-canary.fead02fc",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",