@deque/cauldron-react 6.4.1-canary.c2d1d8a2 → 6.4.1-canary.c98a2e4b
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/lib/components/Dialog/index.d.ts +2 -2
- package/lib/index.js +1 -0
- package/package.json +1 -4
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.4.1-canary.
|
|
3
|
+
"version": "6.4.1-canary.c98a2e4b",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@testing-library/react": "^12",
|
|
48
48
|
"@testing-library/user-event": "^14.5.2",
|
|
49
49
|
"@types/classnames": "^2.2.10",
|
|
50
|
-
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
51
50
|
"@types/jest": "^29.5.11",
|
|
52
51
|
"@types/jest-axe": "^3.5.4",
|
|
53
52
|
"@types/node": "^17.0.42",
|
|
@@ -59,8 +58,6 @@
|
|
|
59
58
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
60
59
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
|
61
60
|
"concurrently": "^5.3.0",
|
|
62
|
-
"enzyme": "^3.11.0",
|
|
63
|
-
"enzyme-adapter-react-16": "^1.15.2",
|
|
64
61
|
"jest": "^29.7.0",
|
|
65
62
|
"jest-axe": "^8.0.0",
|
|
66
63
|
"jest-environment-jsdom": "^29.7.0",
|