@atlaskit/modal-dialog 17.2.2 → 17.2.4
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 +13 -0
- package/dist/cjs/internal/components/modal-dialog.compiled.css +3 -0
- package/dist/cjs/internal/components/modal-dialog.js +4 -3
- package/dist/cjs/internal/components/modal-wrapper.compiled.css +4 -0
- package/dist/cjs/internal/components/modal-wrapper.js +4 -3
- package/dist/cjs/internal/components/positioner.js +1 -1
- package/dist/cjs/internal/components/scroll-container.js +1 -1
- package/dist/cjs/modal-body.js +1 -1
- package/dist/cjs/modal-footer.js +1 -1
- package/dist/cjs/modal-header.js +1 -1
- package/dist/cjs/modal-title.js +1 -1
- package/dist/es2019/internal/components/modal-dialog.compiled.css +3 -0
- package/dist/es2019/internal/components/modal-dialog.js +4 -3
- package/dist/es2019/internal/components/modal-wrapper.compiled.css +4 -0
- package/dist/es2019/internal/components/modal-wrapper.js +4 -3
- package/dist/es2019/internal/components/positioner.js +1 -1
- package/dist/es2019/internal/components/scroll-container.js +1 -1
- package/dist/es2019/modal-body.js +1 -1
- package/dist/es2019/modal-footer.js +1 -1
- package/dist/es2019/modal-header.js +1 -1
- package/dist/es2019/modal-title.js +1 -1
- package/dist/esm/internal/components/modal-dialog.compiled.css +3 -0
- package/dist/esm/internal/components/modal-dialog.js +4 -3
- package/dist/esm/internal/components/modal-wrapper.compiled.css +4 -0
- package/dist/esm/internal/components/modal-wrapper.js +4 -3
- package/dist/esm/internal/components/positioner.js +1 -1
- package/dist/esm/internal/components/scroll-container.js +1 -1
- package/dist/esm/modal-body.js +1 -1
- package/dist/esm/modal-footer.js +1 -1
- package/dist/esm/modal-header.js +1 -1
- package/dist/esm/modal-title.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 17.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3827588cae5e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3827588cae5e1) -
|
|
14
|
+
Preserve form-wrapped modal scrolling when fixed-position status announcements are enabled.
|
|
15
|
+
|
|
3
16
|
## 17.2.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
._16jlidpf{flex-grow:0}
|
|
2
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
2
3
|
._1bsb1osq{width:100%}
|
|
3
4
|
._1dg11kw7>form:only-child{flex-direction:inherit}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
6
|
+
._1m0h1kw7>form{display:inherit}
|
|
5
7
|
._1mq81kw7>form:only-child{display:inherit}
|
|
6
8
|
._1o9zkb7n{flex-shrink:1}
|
|
7
9
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
8
10
|
._1tke1kxc{min-height:100vh}
|
|
9
11
|
._1tkeidpf{min-height:0}
|
|
12
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
10
13
|
._2lx21bp4{flex-direction:column}
|
|
11
14
|
._4t3i1osq{height:100%}
|
|
12
15
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -42,6 +42,7 @@ var dialogStyles = {
|
|
|
42
42
|
rootMotion: "_yakv1wug _4lht1wug",
|
|
43
43
|
fullscreen: "_1jyk1osq"
|
|
44
44
|
};
|
|
45
|
+
var formWithStatusAnnouncementStyles = null;
|
|
45
46
|
var viewportScrollStyles = null;
|
|
46
47
|
var bodyScrollStyles = null;
|
|
47
48
|
var ModalDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -143,7 +144,7 @@ var ModalDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
143
144
|
tabIndex: -1,
|
|
144
145
|
"aria-modal": true,
|
|
145
146
|
"data-ds--level": currentLevel,
|
|
146
|
-
className: (0, _runtime.ax)([dialogStyles.root, dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
147
|
+
className: (0, _runtime.ax)([dialogStyles.root, (0, _fg.fg)('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
147
148
|
}, children)) : /*#__PURE__*/React.createElement(_fadeIn.default
|
|
148
149
|
/**
|
|
149
150
|
* We don't want a 'slide in' for the full screen modals.
|
|
@@ -161,7 +162,7 @@ var ModalDialog = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
161
162
|
'--modal-dialog-height': (0, _dialogHeight.dialogHeight)(height)
|
|
162
163
|
},
|
|
163
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
164
|
-
className: (0, _runtime.ax)([dialogStyles.root, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
165
|
+
className: (0, _runtime.ax)([dialogStyles.root, (0, _fg.fg)('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
165
166
|
role: "dialog",
|
|
166
167
|
"aria-labelledby": label ? undefined : titleId,
|
|
167
168
|
"data-testid": defaultTestId,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._2rkoidpf{border-radius:0}
|
|
2
2
|
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
3
4
|
._18m91wug{overflow-y:auto}
|
|
4
5
|
._18m9ewfl{overflow-y:visible}
|
|
5
6
|
._18u0idpf{margin-left:0}
|
|
@@ -9,9 +10,11 @@
|
|
|
9
10
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
10
11
|
._1e0c11p5{display:grid}
|
|
11
12
|
._1e0c1txw{display:flex}
|
|
13
|
+
._1m0h1kw7>form{display:inherit}
|
|
12
14
|
._1mq81kw7>form:only-child{display:inherit}
|
|
13
15
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
14
16
|
._1reoewfl{overflow-x:visible}
|
|
17
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
15
18
|
._2hwxidpf{margin-right:0}
|
|
16
19
|
._2lx21bp4{flex-direction:column}
|
|
17
20
|
._2z05i47z{grid-template-rows:minmax(0,1fr)}
|
|
@@ -20,6 +23,7 @@
|
|
|
20
23
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
21
24
|
._ds62idpf>form:only-child{min-height:0}
|
|
22
25
|
._kqsw1n9t{position:fixed}
|
|
26
|
+
._kzbqidpf>form{min-height:0}
|
|
23
27
|
._lcxv1wug{pointer-events:auto}
|
|
24
28
|
._lcxvglyw{pointer-events:none}
|
|
25
29
|
._ln19p27b{scrollbar-gutter:stable}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -68,6 +68,7 @@ var surfaceStyles = {
|
|
|
68
68
|
root: "_1e0c1txw _2lx21bp4 _bfhk1bhr _1q1l1bhr _lcxv1wug _1mq81kw7 _m01u1kw7 _ds62idpf _1dg11kw7 _mizu1v1w _1ah3dkaa _ra3xnqa1 _128mdkaa _zg7p130s",
|
|
69
69
|
borderRadius: "_2rkoidpf _epkxpb1k"
|
|
70
70
|
};
|
|
71
|
+
var formWithStatusAnnouncementStyles = null;
|
|
71
72
|
var topLayerScrollModeStyles = {
|
|
72
73
|
'full-screen': "_1bsbauwl _4t3i1kxc _kqsw1n9t _152tze3t _1e02ze3t _18m91wug _8am5i4x0",
|
|
73
74
|
'viewport-scroll': "_4t3i1kxc _1sg41wqb _maxs1wug _1jvh1wqb _1uca1wug _1mpv184x _1jyk17ks _g7116m9r _we1i18uh",
|
|
@@ -105,7 +106,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
105
106
|
action: 'closed',
|
|
106
107
|
componentName: 'modalDialog',
|
|
107
108
|
packageName: "@atlaskit/modal-dialog",
|
|
108
|
-
packageVersion: "17.2.
|
|
109
|
+
packageVersion: "17.2.4"
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
function getScrollMode(_ref) {
|
|
@@ -368,7 +369,7 @@ function ModalWrapperTopLayer(props) {
|
|
|
368
369
|
'--modal-dialog-height': getTopLayerSurfaceHeight(height),
|
|
369
370
|
'--modal-dialog-width': getTopLayerSurfaceWidth(width)
|
|
370
371
|
},
|
|
371
|
-
className: (0, _runtime.ax)([surfaceStyles.root, !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
372
|
+
className: (0, _runtime.ax)([surfaceStyles.root, (0, _fg.fg)('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _kzbqidpf _1vgv1kw7 _185i1kw7", !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
372
373
|
}, /*#__PURE__*/React.createElement(_context.ModalContext.Provider, {
|
|
373
374
|
value: modalDialogContext
|
|
374
375
|
}, /*#__PURE__*/React.createElement(_scrollContext.ScrollContext.Provider, {
|
package/dist/cjs/modal-body.js
CHANGED
package/dist/cjs/modal-footer.js
CHANGED
package/dist/cjs/modal-header.js
CHANGED
package/dist/cjs/modal-title.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
._16jlidpf{flex-grow:0}
|
|
2
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
2
3
|
._1bsb1osq{width:100%}
|
|
3
4
|
._1dg11kw7>form:only-child{flex-direction:inherit}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
6
|
+
._1m0h1kw7>form{display:inherit}
|
|
5
7
|
._1mq81kw7>form:only-child{display:inherit}
|
|
6
8
|
._1o9zkb7n{flex-shrink:1}
|
|
7
9
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
8
10
|
._1tke1kxc{min-height:100vh}
|
|
9
11
|
._1tkeidpf{min-height:0}
|
|
12
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
10
13
|
._2lx21bp4{flex-direction:column}
|
|
11
14
|
._4t3i1osq{height:100%}
|
|
12
15
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-dialog.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -31,6 +31,7 @@ const dialogStyles = {
|
|
|
31
31
|
rootMotion: "_yakv1wug _4lht1wug",
|
|
32
32
|
fullscreen: "_1jyk1osq"
|
|
33
33
|
};
|
|
34
|
+
const formWithStatusAnnouncementStyles = null;
|
|
34
35
|
const viewportScrollStyles = null;
|
|
35
36
|
const bodyScrollStyles = null;
|
|
36
37
|
const ModalDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -122,7 +123,7 @@ const ModalDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
122
123
|
tabIndex: -1,
|
|
123
124
|
"aria-modal": true,
|
|
124
125
|
"data-ds--level": currentLevel,
|
|
125
|
-
className: ax([dialogStyles.root, dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
126
|
+
className: ax([dialogStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
126
127
|
}, children)) : /*#__PURE__*/React.createElement(FadeIn
|
|
127
128
|
/**
|
|
128
129
|
* We don't want a 'slide in' for the full screen modals.
|
|
@@ -139,7 +140,7 @@ const ModalDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
139
140
|
'--modal-dialog-height': dialogHeight(height)
|
|
140
141
|
},
|
|
141
142
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
142
|
-
className: ax([dialogStyles.root, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
143
|
+
className: ax([dialogStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
143
144
|
role: "dialog",
|
|
144
145
|
"aria-labelledby": label ? undefined : titleId,
|
|
145
146
|
"data-testid": defaultTestId,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._2rkoidpf{border-radius:0}
|
|
2
2
|
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
3
4
|
._18m91wug{overflow-y:auto}
|
|
4
5
|
._18m9ewfl{overflow-y:visible}
|
|
5
6
|
._18u0idpf{margin-left:0}
|
|
@@ -9,9 +10,11 @@
|
|
|
9
10
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
10
11
|
._1e0c11p5{display:grid}
|
|
11
12
|
._1e0c1txw{display:flex}
|
|
13
|
+
._1m0h1kw7>form{display:inherit}
|
|
12
14
|
._1mq81kw7>form:only-child{display:inherit}
|
|
13
15
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
14
16
|
._1reoewfl{overflow-x:visible}
|
|
17
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
15
18
|
._2hwxidpf{margin-right:0}
|
|
16
19
|
._2lx21bp4{flex-direction:column}
|
|
17
20
|
._2z05i47z{grid-template-rows:minmax(0,1fr)}
|
|
@@ -20,6 +23,7 @@
|
|
|
20
23
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
21
24
|
._ds62idpf>form:only-child{min-height:0}
|
|
22
25
|
._kqsw1n9t{position:fixed}
|
|
26
|
+
._kzbqidpf>form{min-height:0}
|
|
23
27
|
._lcxv1wug{pointer-events:auto}
|
|
24
28
|
._lcxvglyw{pointer-events:none}
|
|
25
29
|
._ln19p27b{scrollbar-gutter:stable}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-wrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -58,6 +58,7 @@ const surfaceStyles = {
|
|
|
58
58
|
root: "_1e0c1txw _2lx21bp4 _bfhk1bhr _1q1l1bhr _lcxv1wug _1mq81kw7 _m01u1kw7 _ds62idpf _1dg11kw7 _mizu1v1w _1ah3dkaa _ra3xnqa1 _128mdkaa _zg7p130s",
|
|
59
59
|
borderRadius: "_2rkoidpf _epkxpb1k"
|
|
60
60
|
};
|
|
61
|
+
const formWithStatusAnnouncementStyles = null;
|
|
61
62
|
const topLayerScrollModeStyles = {
|
|
62
63
|
'full-screen': "_1bsbauwl _4t3i1kxc _kqsw1n9t _152tze3t _1e02ze3t _18m91wug _8am5i4x0",
|
|
63
64
|
'viewport-scroll': "_4t3i1kxc _1sg41wqb _maxs1wug _1jvh1wqb _1uca1wug _1mpv184x _1jyk17ks _g7116m9r _we1i18uh",
|
|
@@ -95,7 +96,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
95
96
|
action: 'closed',
|
|
96
97
|
componentName: 'modalDialog',
|
|
97
98
|
packageName: "@atlaskit/modal-dialog",
|
|
98
|
-
packageVersion: "17.2.
|
|
99
|
+
packageVersion: "17.2.4"
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
function getScrollMode({
|
|
@@ -356,7 +357,7 @@ function ModalWrapperTopLayer(props) {
|
|
|
356
357
|
'--modal-dialog-height': getTopLayerSurfaceHeight(height),
|
|
357
358
|
'--modal-dialog-width': getTopLayerSurfaceWidth(width)
|
|
358
359
|
},
|
|
359
|
-
className: ax([surfaceStyles.root, !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
360
|
+
className: ax([surfaceStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _kzbqidpf _1vgv1kw7 _185i1kw7", !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
360
361
|
}, /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
361
362
|
value: modalDialogContext
|
|
362
363
|
}, /*#__PURE__*/React.createElement(ScrollContext.Provider, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./scroll-container.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
._16jlidpf{flex-grow:0}
|
|
2
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
2
3
|
._1bsb1osq{width:100%}
|
|
3
4
|
._1dg11kw7>form:only-child{flex-direction:inherit}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
6
|
+
._1m0h1kw7>form{display:inherit}
|
|
5
7
|
._1mq81kw7>form:only-child{display:inherit}
|
|
6
8
|
._1o9zkb7n{flex-shrink:1}
|
|
7
9
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
8
10
|
._1tke1kxc{min-height:100vh}
|
|
9
11
|
._1tkeidpf{min-height:0}
|
|
12
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
10
13
|
._2lx21bp4{flex-direction:column}
|
|
11
14
|
._4t3i1osq{height:100%}
|
|
12
15
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
@@ -33,6 +33,7 @@ var dialogStyles = {
|
|
|
33
33
|
rootMotion: "_yakv1wug _4lht1wug",
|
|
34
34
|
fullscreen: "_1jyk1osq"
|
|
35
35
|
};
|
|
36
|
+
var formWithStatusAnnouncementStyles = null;
|
|
36
37
|
var viewportScrollStyles = null;
|
|
37
38
|
var bodyScrollStyles = null;
|
|
38
39
|
var ModalDialog = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -134,7 +135,7 @@ var ModalDialog = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
134
135
|
tabIndex: -1,
|
|
135
136
|
"aria-modal": true,
|
|
136
137
|
"data-ds--level": currentLevel,
|
|
137
|
-
className: ax([dialogStyles.root, dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
138
|
+
className: ax([dialogStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", dialogStyles.rootMotion, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7"])
|
|
138
139
|
}, children)) : /*#__PURE__*/React.createElement(FadeIn
|
|
139
140
|
/**
|
|
140
141
|
* We don't want a 'slide in' for the full screen modals.
|
|
@@ -152,7 +153,7 @@ var ModalDialog = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
152
153
|
'--modal-dialog-height': dialogHeight(height)
|
|
153
154
|
},
|
|
154
155
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
155
|
-
className: ax([dialogStyles.root, !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
156
|
+
className: ax([dialogStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _1vgv1kw7 _185i1kw7", !isFullScreen && dialogStyles.borderRadius, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _8kn617ks" : "_cbiz17ks _bolh1kw7", bottomFadeInProps.className]),
|
|
156
157
|
role: "dialog",
|
|
157
158
|
"aria-labelledby": label ? undefined : titleId,
|
|
158
159
|
"data-testid": defaultTestId,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._2rkoidpf{border-radius:0}
|
|
2
2
|
._152tze3t{inset-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._185i1kw7>form{flex-direction:inherit}
|
|
3
4
|
._18m91wug{overflow-y:auto}
|
|
4
5
|
._18m9ewfl{overflow-y:visible}
|
|
5
6
|
._18u0idpf{margin-left:0}
|
|
@@ -9,9 +10,11 @@
|
|
|
9
10
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
10
11
|
._1e0c11p5{display:grid}
|
|
11
12
|
._1e0c1txw{display:flex}
|
|
13
|
+
._1m0h1kw7>form{display:inherit}
|
|
12
14
|
._1mq81kw7>form:only-child{display:inherit}
|
|
13
15
|
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
14
16
|
._1reoewfl{overflow-x:visible}
|
|
17
|
+
._1vgv1kw7>form{max-height:inherit}
|
|
15
18
|
._2hwxidpf{margin-right:0}
|
|
16
19
|
._2lx21bp4{flex-direction:column}
|
|
17
20
|
._2z05i47z{grid-template-rows:minmax(0,1fr)}
|
|
@@ -20,6 +23,7 @@
|
|
|
20
23
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
21
24
|
._ds62idpf>form:only-child{min-height:0}
|
|
22
25
|
._kqsw1n9t{position:fixed}
|
|
26
|
+
._kzbqidpf>form{min-height:0}
|
|
23
27
|
._lcxv1wug{pointer-events:auto}
|
|
24
28
|
._lcxvglyw{pointer-events:none}
|
|
25
29
|
._ln19p27b{scrollbar-gutter:stable}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import "./modal-wrapper.compiled.css";
|
|
@@ -59,6 +59,7 @@ var surfaceStyles = {
|
|
|
59
59
|
root: "_1e0c1txw _2lx21bp4 _bfhk1bhr _1q1l1bhr _lcxv1wug _1mq81kw7 _m01u1kw7 _ds62idpf _1dg11kw7 _mizu1v1w _1ah3dkaa _ra3xnqa1 _128mdkaa _zg7p130s",
|
|
60
60
|
borderRadius: "_2rkoidpf _epkxpb1k"
|
|
61
61
|
};
|
|
62
|
+
var formWithStatusAnnouncementStyles = null;
|
|
62
63
|
var topLayerScrollModeStyles = {
|
|
63
64
|
'full-screen': "_1bsbauwl _4t3i1kxc _kqsw1n9t _152tze3t _1e02ze3t _18m91wug _8am5i4x0",
|
|
64
65
|
'viewport-scroll': "_4t3i1kxc _1sg41wqb _maxs1wug _1jvh1wqb _1uca1wug _1mpv184x _1jyk17ks _g7116m9r _we1i18uh",
|
|
@@ -96,7 +97,7 @@ function useModalCloseHandler(providedOnClose) {
|
|
|
96
97
|
action: 'closed',
|
|
97
98
|
componentName: 'modalDialog',
|
|
98
99
|
packageName: "@atlaskit/modal-dialog",
|
|
99
|
-
packageVersion: "17.2.
|
|
100
|
+
packageVersion: "17.2.4"
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
103
|
function getScrollMode(_ref) {
|
|
@@ -359,7 +360,7 @@ function ModalWrapperTopLayer(props) {
|
|
|
359
360
|
'--modal-dialog-height': getTopLayerSurfaceHeight(height),
|
|
360
361
|
'--modal-dialog-width': getTopLayerSurfaceWidth(width)
|
|
361
362
|
},
|
|
362
|
-
className: ax([surfaceStyles.root, !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
363
|
+
className: ax([surfaceStyles.root, fg('dst_platform-global_ep_status_announcement') && "_1m0h1kw7 _kzbqidpf _1vgv1kw7 _185i1kw7", !isFullScreen && surfaceStyles.borderRadius, topLayerScrollModeStyles[scrollMode]])
|
|
363
364
|
}, /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
364
365
|
value: modalDialogContext
|
|
365
366
|
}, /*#__PURE__*/React.createElement(ScrollContext.Provider, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./scroll-container.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
package/dist/esm/modal-body.js
CHANGED
package/dist/esm/modal-footer.js
CHANGED
package/dist/esm/modal-header.js
CHANGED
package/dist/esm/modal-title.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.4",
|
|
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/"
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
45
45
|
"@atlaskit/icon": "^38.0.0",
|
|
46
46
|
"@atlaskit/layering": "^6.1.0",
|
|
47
|
-
"@atlaskit/motion": "^
|
|
47
|
+
"@atlaskit/motion": "^10.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
49
49
|
"@atlaskit/portal": "^7.1.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
51
51
|
"@atlaskit/primitives": "^22.7.0",
|
|
52
52
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
53
53
|
"@atlaskit/theme": "^28.2.0",
|
|
54
|
-
"@atlaskit/tokens": "^20.
|
|
54
|
+
"@atlaskit/tokens": "^20.11.0",
|
|
55
55
|
"@atlaskit/top-layer": "^7.1.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@compiled/react": "^1.0.2",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@atlaskit/codemod-utils": "^5.2.0",
|
|
77
77
|
"@atlaskit/datetime-picker": "^19.4.0",
|
|
78
78
|
"@atlaskit/docs": "^12.3.0",
|
|
79
|
-
"@atlaskit/dropdown-menu": "^21.
|
|
79
|
+
"@atlaskit/dropdown-menu": "^21.3.0",
|
|
80
80
|
"@atlaskit/flag": "^19.0.0",
|
|
81
81
|
"@atlaskit/form": "^18.3.0",
|
|
82
82
|
"@atlaskit/heading": "^8.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/popup": "^10.2.0",
|
|
85
85
|
"@atlaskit/radio": "^10.2.0",
|
|
86
86
|
"@atlaskit/section-message": "^10.2.0",
|
|
87
|
-
"@atlaskit/select": "^23.
|
|
87
|
+
"@atlaskit/select": "^23.2.0",
|
|
88
88
|
"@atlaskit/spotlight": "^4.2.0",
|
|
89
89
|
"@atlaskit/textfield": "^10.3.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|