@atlaskit/modal-dialog 16.5.3 → 16.6.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.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/internal/components/modal-dialog.js +2 -2
- package/dist/cjs/internal/components/modal-wrapper.js +3 -3
- package/dist/cjs/internal/components/positioner.js +1 -1
- package/dist/es2019/internal/components/modal-dialog.js +1 -1
- package/dist/es2019/internal/components/modal-wrapper.js +2 -2
- package/dist/es2019/internal/components/positioner.js +1 -1
- package/dist/esm/internal/components/modal-dialog.js +1 -1
- package/dist/esm/internal/components/modal-wrapper.js +2 -2
- package/dist/esm/internal/components/positioner.js +1 -1
- package/dist/types/internal/hooks/use-on-motion-finish.d.ts +1 -1
- package/package.json +35 -36
- package/report.api.md +0 -142
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 16.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 16.5.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`4406362492342`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4406362492342) -
|
|
19
|
+
Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is
|
|
20
|
+
partial.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 16.5.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@ var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-fo
|
|
|
20
20
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
21
21
|
var _useCloseOnEscapePress = require("@atlaskit/layering/use-close-on-escape-press");
|
|
22
22
|
var _useLayering2 = require("@atlaskit/layering/use-layering");
|
|
23
|
-
var _motion = require("@atlaskit/motion");
|
|
23
|
+
var _motion = _interopRequireDefault(require("@atlaskit/motion/entering/motion"));
|
|
24
24
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
25
25
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
26
26
|
var _combine = require("@atlaskit/pragmatic-drag-and-drop/utils/combine");
|
|
@@ -113,7 +113,7 @@ var ModalDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
113
113
|
value: modalDialogContext
|
|
114
114
|
}, /*#__PURE__*/React.createElement(_scrollContext.ScrollContext.Provider, {
|
|
115
115
|
value: shouldScrollInViewport
|
|
116
|
-
}, !UNSAFE_shouldDisableMotionUplift && (0, _fg.fg)('platform-dst-motion-uplift-modal') ? /*#__PURE__*/React.createElement(_motion.
|
|
116
|
+
}, !UNSAFE_shouldDisableMotionUplift && (0, _fg.fg)('platform-dst-motion-uplift-modal') ? /*#__PURE__*/React.createElement(_motion.default, {
|
|
117
117
|
enteringAnimation: "var(--ds-modal-enter, 250ms cubic-bezier(0.4, 0, 0, 1) ScaleIn95to100)",
|
|
118
118
|
exitingAnimation: "var(--ds-modal-exit, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) ScaleOut100to95)",
|
|
119
119
|
onFinish: onMotionFinish,
|
|
@@ -23,7 +23,7 @@ var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-fo
|
|
|
23
23
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
24
24
|
var _layering = require("@atlaskit/layering/layering");
|
|
25
25
|
var _useNotifyOpenLayerObserver = require("@atlaskit/layering/use-notify-open-layer-observer");
|
|
26
|
-
var _motion = require("@atlaskit/motion");
|
|
26
|
+
var _motion = _interopRequireDefault(require("@atlaskit/motion/entering/motion"));
|
|
27
27
|
var _useExitingPersistence = require("@atlaskit/motion/exiting-persistence/use-exiting-persistence");
|
|
28
28
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
29
29
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
@@ -93,7 +93,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
93
93
|
action: 'closed',
|
|
94
94
|
componentName: 'modalDialog',
|
|
95
95
|
packageName: "@atlaskit/modal-dialog",
|
|
96
|
-
packageVersion: "16.5.
|
|
96
|
+
packageVersion: "16.5.4"
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
function getScrollMode(_ref) {
|
|
@@ -454,7 +454,7 @@ var ModalWrapperLegacy = /*#__PURE__*/(0, _react.forwardRef)(function (props, re
|
|
|
454
454
|
isDisabled: false
|
|
455
455
|
}, /*#__PURE__*/React.createElement(_portal.default, {
|
|
456
456
|
zIndex: _constants.layers.modal()
|
|
457
|
-
}, !UNSAFE_shouldDisableMotionUplift && (0, _fg.fg)('platform-dst-motion-uplift-modal') ? /*#__PURE__*/React.createElement(_motion.
|
|
457
|
+
}, !UNSAFE_shouldDisableMotionUplift && (0, _fg.fg)('platform-dst-motion-uplift-modal') ? /*#__PURE__*/React.createElement(_motion.default, {
|
|
458
458
|
enteringAnimation: "var(--ds-blanket-enter, 250ms cubic-bezier(0.4, 0, 0, 1) FadeIn0to100)",
|
|
459
459
|
exitingAnimation: "var(--ds-blanket-exit, 200ms cubic-bezier(0.6, 0, 0.8, 0.6) FadeOut100to0)"
|
|
460
460
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -10,7 +10,7 @@ require("./positioner.compiled.css");
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _curves = require("@atlaskit/motion/curves");
|
|
13
|
-
var _durations = require("@atlaskit/motion/durations");
|
|
13
|
+
var _durations = require("@atlaskit/motion/utils/durations");
|
|
14
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
@@ -10,7 +10,7 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
10
10
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
11
11
|
import { useCloseOnEscapePress } from '@atlaskit/layering/use-close-on-escape-press';
|
|
12
12
|
import { useLayering } from '@atlaskit/layering/use-layering';
|
|
13
|
-
import
|
|
13
|
+
import Motion from '@atlaskit/motion/entering/motion';
|
|
14
14
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
@@ -14,7 +14,7 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
14
14
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
15
15
|
import { Layering } from '@atlaskit/layering/layering';
|
|
16
16
|
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/use-notify-open-layer-observer';
|
|
17
|
-
import
|
|
17
|
+
import Motion from '@atlaskit/motion/entering/motion';
|
|
18
18
|
import { useExitingPersistence } from '@atlaskit/motion/exiting-persistence/use-exiting-persistence';
|
|
19
19
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -83,7 +83,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
83
83
|
action: 'closed',
|
|
84
84
|
componentName: 'modalDialog',
|
|
85
85
|
packageName: "@atlaskit/modal-dialog",
|
|
86
|
-
packageVersion: "16.5.
|
|
86
|
+
packageVersion: "16.5.4"
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
function getScrollMode({
|
|
@@ -3,7 +3,7 @@ import "./positioner.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { easeInOut } from '@atlaskit/motion/curves';
|
|
6
|
-
import { durations } from '@atlaskit/motion/durations';
|
|
6
|
+
import { durations } from '@atlaskit/motion/utils/durations';
|
|
7
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
8
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
9
9
|
const positionerStyles = null;
|
|
@@ -12,7 +12,7 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
12
12
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
13
13
|
import { useCloseOnEscapePress } from '@atlaskit/layering/use-close-on-escape-press';
|
|
14
14
|
import { useLayering } from '@atlaskit/layering/use-layering';
|
|
15
|
-
import
|
|
15
|
+
import Motion from '@atlaskit/motion/entering/motion';
|
|
16
16
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
@@ -15,7 +15,7 @@ import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
|
|
|
15
15
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
16
16
|
import { Layering } from '@atlaskit/layering/layering';
|
|
17
17
|
import { useNotifyOpenLayerObserver } from '@atlaskit/layering/use-notify-open-layer-observer';
|
|
18
|
-
import
|
|
18
|
+
import Motion from '@atlaskit/motion/entering/motion';
|
|
19
19
|
import { useExitingPersistence } from '@atlaskit/motion/exiting-persistence/use-exiting-persistence';
|
|
20
20
|
import FadeIn from '@atlaskit/motion/fade-in';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -84,7 +84,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
84
84
|
action: 'closed',
|
|
85
85
|
componentName: 'modalDialog',
|
|
86
86
|
packageName: "@atlaskit/modal-dialog",
|
|
87
|
-
packageVersion: "16.5.
|
|
87
|
+
packageVersion: "16.5.4"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
function getScrollMode(_ref) {
|
|
@@ -3,7 +3,7 @@ import "./positioner.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { easeInOut } from '@atlaskit/motion/curves';
|
|
6
|
-
import { durations } from '@atlaskit/motion/durations';
|
|
6
|
+
import { durations } from '@atlaskit/motion/utils/durations';
|
|
7
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
8
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
9
9
|
var positionerStyles = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
import type { Transition } from '@atlaskit/motion/types';
|
|
2
|
+
import type { Transition } from '@atlaskit/motion/entering/types';
|
|
3
3
|
import { type ModalDialogProps } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* This will run the respective passed in callback functions when modal is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.6.0",
|
|
4
4
|
"description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"watch": "tsc --watch --noEmit --project './tsconfig.json'"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/analytics-next": "^12.
|
|
38
|
-
"@atlaskit/blanket": "^16.
|
|
39
|
-
"@atlaskit/button": "^25.
|
|
40
|
-
"@atlaskit/css": "^1.
|
|
37
|
+
"@atlaskit/analytics-next": "^12.5.0",
|
|
38
|
+
"@atlaskit/blanket": "^16.4.0",
|
|
39
|
+
"@atlaskit/button": "^25.3.0",
|
|
40
|
+
"@atlaskit/css": "^1.1.0",
|
|
41
41
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
42
|
-
"@atlaskit/icon": "^37.
|
|
43
|
-
"@atlaskit/layering": "^5.
|
|
44
|
-
"@atlaskit/motion": "^8.
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
46
|
-
"@atlaskit/portal": "^6.
|
|
47
|
-
"@atlaskit/pragmatic-drag-and-drop": "^3.
|
|
48
|
-
"@atlaskit/primitives": "^22.
|
|
42
|
+
"@atlaskit/icon": "^37.6.0",
|
|
43
|
+
"@atlaskit/layering": "^5.2.0",
|
|
44
|
+
"@atlaskit/motion": "^8.6.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
|
+
"@atlaskit/portal": "^6.4.0",
|
|
47
|
+
"@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
|
|
48
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
49
49
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
50
|
-
"@atlaskit/theme": "^28.
|
|
51
|
-
"@atlaskit/tokens": "^16.
|
|
50
|
+
"@atlaskit/theme": "^28.2.0",
|
|
51
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
52
52
|
"@atlaskit/top-layer": "^4.4.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^1.0.2",
|
|
@@ -58,42 +58,41 @@
|
|
|
58
58
|
"react-scrolllock": "^5.0.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"react": "^18.2.0"
|
|
61
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@af/accessibility-testing": "workspace:^",
|
|
65
65
|
"@af/integration-testing": "workspace:^",
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
|
-
"@atlaskit/avatar": "^27.
|
|
68
|
-
"@atlaskit/avatar-group": "^14.
|
|
69
|
-
"@atlaskit/banner": "^15.
|
|
70
|
-
"@atlaskit/breadcrumbs": "^17.
|
|
71
|
-
"@atlaskit/checkbox": "^19.
|
|
72
|
-
"@atlaskit/code": "^19.
|
|
73
|
-
"@atlaskit/datetime-picker": "^18.
|
|
67
|
+
"@atlaskit/avatar": "^27.3.0",
|
|
68
|
+
"@atlaskit/avatar-group": "^14.3.0",
|
|
69
|
+
"@atlaskit/banner": "^15.3.0",
|
|
70
|
+
"@atlaskit/breadcrumbs": "^17.7.0",
|
|
71
|
+
"@atlaskit/checkbox": "^19.2.0",
|
|
72
|
+
"@atlaskit/code": "^19.2.0",
|
|
73
|
+
"@atlaskit/datetime-picker": "^18.5.0",
|
|
74
74
|
"@atlaskit/docs": "^12.2.0",
|
|
75
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
76
|
-
"@atlaskit/flag": "^18.
|
|
77
|
-
"@atlaskit/form": "^17.
|
|
78
|
-
"@atlaskit/heading": "^7.
|
|
75
|
+
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
76
|
+
"@atlaskit/flag": "^18.5.0",
|
|
77
|
+
"@atlaskit/form": "^17.2.0",
|
|
78
|
+
"@atlaskit/heading": "^7.2.0",
|
|
79
79
|
"@atlaskit/link": "^5.1.0",
|
|
80
|
-
"@atlaskit/popup": "^6.
|
|
81
|
-
"@atlaskit/radio": "^10.
|
|
82
|
-
"@atlaskit/section-message": "^10.
|
|
83
|
-
"@atlaskit/select": "^22.
|
|
80
|
+
"@atlaskit/popup": "^6.3.0",
|
|
81
|
+
"@atlaskit/radio": "^10.2.0",
|
|
82
|
+
"@atlaskit/section-message": "^10.2.0",
|
|
83
|
+
"@atlaskit/select": "^22.11.0",
|
|
84
84
|
"@atlaskit/spotlight": "^4.2.0",
|
|
85
|
-
"@atlaskit/textfield": "^10.
|
|
86
|
-
"@atlaskit/tooltip": "^24.
|
|
87
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
85
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
86
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
87
|
+
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
88
88
|
"@atlassian/ssr-tests": "workspace:^",
|
|
89
89
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
90
90
|
"@atlassian/testing-library": "^0.11.0",
|
|
91
91
|
"@testing-library/dom": "^10.1.0",
|
|
92
92
|
"@types/raf-schd": "^4.0.1",
|
|
93
93
|
"jscodeshift": "^17.0.0",
|
|
94
|
-
"react": "^
|
|
95
|
-
"react-dom": "^
|
|
96
|
-
"react-lorem-component": "^0.13.0",
|
|
94
|
+
"react": "^19.0.0",
|
|
95
|
+
"react-dom": "^19.0.0",
|
|
97
96
|
"react-sweet-state": "^2.6.5",
|
|
98
97
|
"tiny-invariant": "^1.2.0",
|
|
99
98
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
package/report.api.md
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/modal-dialog"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
/// <reference types="react" />
|
|
20
|
-
|
|
21
|
-
import { ExitingPersistenceProps } from '@atlaskit/motion/exiting-persistence';
|
|
22
|
-
import { jsx } from '@emotion/react';
|
|
23
|
-
import { default as React_2 } from 'react';
|
|
24
|
-
import { ReactNode } from 'react';
|
|
25
|
-
import { RefObject } from 'react';
|
|
26
|
-
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
27
|
-
|
|
28
|
-
// @public (undocumented)
|
|
29
|
-
export type Appearance = 'danger' | 'warning';
|
|
30
|
-
|
|
31
|
-
// @public (undocumented)
|
|
32
|
-
export type KeyboardOrMouseEvent =
|
|
33
|
-
| KeyboardEvent
|
|
34
|
-
| React_2.KeyboardEvent<any>
|
|
35
|
-
| React_2.MouseEvent<any>;
|
|
36
|
-
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
export type ModalAttributes = {
|
|
39
|
-
testId?: ModalDialogProps['testId'];
|
|
40
|
-
titleId: string;
|
|
41
|
-
onClose?: OnCloseHandler;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// @public
|
|
45
|
-
export const ModalBody: (props: ModalBodyProps) => jsx.JSX.Element;
|
|
46
|
-
|
|
47
|
-
// @public (undocumented)
|
|
48
|
-
export interface ModalBodyProps {
|
|
49
|
-
children: React_2.ReactNode;
|
|
50
|
-
testId?: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// @public (undocumented)
|
|
54
|
-
export interface ModalDialogProps {
|
|
55
|
-
autoFocus?: RefObject<HTMLElement | null | undefined> | boolean;
|
|
56
|
-
children?: React_2.ReactNode;
|
|
57
|
-
height?: number | string;
|
|
58
|
-
isBlanketHidden?: boolean;
|
|
59
|
-
label?: string;
|
|
60
|
-
onClose?: OnCloseHandler;
|
|
61
|
-
onCloseComplete?: OnCloseCompleteHandler;
|
|
62
|
-
onOpenComplete?: OnOpenCompleteHandler;
|
|
63
|
-
onStackChange?: OnStackChangeHandler;
|
|
64
|
-
shouldCloseOnEscapePress?: boolean;
|
|
65
|
-
shouldCloseOnOverlayClick?: boolean;
|
|
66
|
-
shouldReturnFocus?: RefObject<HTMLElement> | boolean;
|
|
67
|
-
shouldScrollInViewport?: boolean;
|
|
68
|
-
stackIndex?: number;
|
|
69
|
-
testId?: string;
|
|
70
|
-
width?: WidthNames | number | string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// @public
|
|
74
|
-
export const ModalFooter: (props: ModalFooterProps) => jsx.JSX.Element;
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
export interface ModalFooterProps {
|
|
78
|
-
children?: ReactNode;
|
|
79
|
-
testId?: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// @public
|
|
83
|
-
export const ModalHeader: (props: ModalHeaderProps) => jsx.JSX.Element;
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export interface ModalHeaderProps {
|
|
87
|
-
children?: React_2.ReactNode;
|
|
88
|
-
testId?: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// @public
|
|
92
|
-
export const ModalTitle: (props: ModalTitleProps) => jsx.JSX.Element;
|
|
93
|
-
|
|
94
|
-
// @public (undocumented)
|
|
95
|
-
export interface ModalTitleProps {
|
|
96
|
-
appearance?: Appearance;
|
|
97
|
-
children?: ReactNode;
|
|
98
|
-
isMultiline?: boolean;
|
|
99
|
-
testId?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public
|
|
103
|
-
export const ModalTransition: (props: Pick<ExitingPersistenceProps, 'children'>) => JSX.Element;
|
|
104
|
-
|
|
105
|
-
// @public
|
|
106
|
-
const ModalWrapper: (props: ModalDialogProps) => jsx.JSX.Element;
|
|
107
|
-
export default ModalWrapper;
|
|
108
|
-
|
|
109
|
-
// @public (undocumented)
|
|
110
|
-
export type OnCloseCompleteHandler = (element: HTMLElement) => void;
|
|
111
|
-
|
|
112
|
-
// @public (undocumented)
|
|
113
|
-
export type OnCloseHandler = (e: KeyboardOrMouseEvent, analyticEvent: UIAnalyticsEvent) => void;
|
|
114
|
-
|
|
115
|
-
// @public (undocumented)
|
|
116
|
-
export type OnOpenCompleteHandler = (node: HTMLElement, isAppearing: boolean) => void;
|
|
117
|
-
|
|
118
|
-
// @public (undocumented)
|
|
119
|
-
export type OnStackChangeHandler = (stackIndex: number) => void;
|
|
120
|
-
|
|
121
|
-
// @public (undocumented)
|
|
122
|
-
export const useModal: () => ModalAttributes;
|
|
123
|
-
|
|
124
|
-
// @public (undocumented)
|
|
125
|
-
type WidthNames = 'large' | 'medium' | 'small' | 'x-large';
|
|
126
|
-
|
|
127
|
-
// (No @packageDocumentation comment for this package)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
<!--SECTION END: Main Entry Types-->
|
|
131
|
-
|
|
132
|
-
### Peer Dependencies
|
|
133
|
-
|
|
134
|
-
<!--SECTION START: Peer Dependencies-->
|
|
135
|
-
|
|
136
|
-
```json
|
|
137
|
-
{
|
|
138
|
-
"react": "^16.8.0"
|
|
139
|
-
}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
<!--SECTION END: Peer Dependencies-->
|