@react-types/dialog 3.5.8-nightly.4427 → 3.5.8-nightly.4430
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/package.json +4 -4
- package/src/index.d.ts +14 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/dialog",
|
|
3
|
-
"version": "3.5.8-nightly.
|
|
3
|
+
"version": "3.5.8-nightly.4430+d766af60c",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/overlays": "3.8.5-nightly.
|
|
13
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/overlays": "3.8.5-nightly.4430+d766af60c",
|
|
13
|
+
"@react-types/shared": "3.0.0-nightly.2718+d766af60c"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "d766af60ce5252ecd95c62645ae881c7fb9174ab"
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -35,7 +35,13 @@ export interface SpectrumDialogTriggerProps extends OverlayTriggerProps, Positio
|
|
|
35
35
|
/** Whether a modal type Dialog should be dismissable. */
|
|
36
36
|
isDismissable?: boolean,
|
|
37
37
|
/** Whether pressing the escape key to close the dialog should be disabled. */
|
|
38
|
-
isKeyboardDismissDisabled?: boolean
|
|
38
|
+
isKeyboardDismissDisabled?: boolean,
|
|
39
|
+
/**
|
|
40
|
+
* The container element in which the dialogs' overlay portal will be placed. This may have unknown behavior depending on where it is portal-ed to.
|
|
41
|
+
* Make sure to test in mobile and desktop environments.
|
|
42
|
+
* @default document.body
|
|
43
|
+
*/
|
|
44
|
+
UNSTABLE_portalContainer?: Element
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
export interface SpectrumDialogContainerProps {
|
|
@@ -51,7 +57,13 @@ export interface SpectrumDialogContainerProps {
|
|
|
51
57
|
/** Whether the Dialog is dismissable. See the [Dialog docs](Dialog.html#dismissable-dialogs) for more details. */
|
|
52
58
|
isDismissable?: boolean,
|
|
53
59
|
/** Whether pressing the escape key to close the dialog should be disabled. */
|
|
54
|
-
isKeyboardDismissDisabled?: boolean
|
|
60
|
+
isKeyboardDismissDisabled?: boolean,
|
|
61
|
+
/**
|
|
62
|
+
* The container element in which the dialogs' overlay portal will be placed. This may have unknown behavior depending on where it is portal-ed to.
|
|
63
|
+
* Make sure to test in mobile and desktop environments.
|
|
64
|
+
* @default document.body
|
|
65
|
+
*/
|
|
66
|
+
UNSTABLE_portalContainer?: Element
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
export interface AriaDialogProps extends DOMProps, AriaLabelingProps {
|