@atlaskit/modal-dialog 14.3.13 → 14.4.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 +12 -0
- package/dist/cjs/internal/components/modal-dialog.js +1 -1
- package/dist/cjs/internal/components/modal-wrapper.js +2 -2
- package/dist/cjs/internal/components/positioner.compiled.css +1 -1
- package/dist/cjs/internal/components/positioner.js +3 -9
- package/dist/cjs/internal/components/scroll-container.compiled.css +1 -2
- package/dist/cjs/internal/components/scroll-container.js +2 -2
- 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.js +1 -1
- package/dist/es2019/internal/components/modal-wrapper.js +2 -2
- package/dist/es2019/internal/components/positioner.compiled.css +1 -1
- package/dist/es2019/internal/components/positioner.js +3 -9
- package/dist/es2019/internal/components/scroll-container.compiled.css +1 -2
- package/dist/es2019/internal/components/scroll-container.js +2 -2
- 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.js +1 -1
- package/dist/esm/internal/components/modal-wrapper.js +2 -2
- package/dist/esm/internal/components/positioner.compiled.css +1 -1
- package/dist/esm/internal/components/positioner.js +3 -9
- package/dist/esm/internal/components/scroll-container.compiled.css +1 -2
- package/dist/esm/internal/components/scroll-container.js +2 -2
- 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/offerings.json +37 -0
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 14.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`76a0ea5849a69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76a0ea5849a69) -
|
|
8
|
+
Increases the specificity on the top inset positioning the Modal Dialog to be !important to reduce
|
|
9
|
+
the impact of Compiled consumption issues in DC and Ecosystem.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 14.3.13
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -87,7 +87,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
|
|
|
87
87
|
action: 'closed',
|
|
88
88
|
componentName: 'modalDialog',
|
|
89
89
|
packageName: "@atlaskit/modal-dialog",
|
|
90
|
-
packageVersion: "
|
|
90
|
+
packageVersion: "0.0.0-development"
|
|
91
91
|
});
|
|
92
92
|
var onBlanketClicked = (0, _react.useCallback)(function (e) {
|
|
93
93
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
._t9ec1b95{transform:translateY(var(--modal-dialog-translate-y))}
|
|
14
14
|
._t9ecglyw{transform:none}
|
|
15
15
|
@media (prefers-reduced-motion:reduce){._1bumglyw{animation:none}._sedtglyw{transition:none}}
|
|
16
|
-
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}.
|
|
16
|
+
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}._we1i18uh{max-width:calc(100vw - 90pt)}._e8uozwhf{max-height:calc(100vh - 119px)}._y1k5stnw{position:absolute}._5ee41nf8{inset-block-start:60px!important}._1urridpf{inset-inline-end:0}._1juqidpf{inset-inline-start:0}._yakv1wug{margin-inline-end:auto}._4lht1wug{margin-inline-start:auto}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* positioner.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* positioner.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _curves = require("@atlaskit/motion/curves");
|
|
13
13
|
var _durations = require("@atlaskit/motion/durations");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
16
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); }
|
|
17
16
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
@@ -25,14 +24,9 @@ var stackStyles = {
|
|
|
25
24
|
// Hardcoded pixels are based off a 60px base gutter
|
|
26
25
|
var scrollStyles = {
|
|
27
26
|
viewport: "_4t3i1wug _kqswh2mm _1f6n1wqb _1eot1wug _eoawglyw",
|
|
28
|
-
body: "_we1i18uh _e8uozwhf _y1k5stnw
|
|
27
|
+
body: "_we1i18uh _e8uozwhf _y1k5stnw _5ee41nf8 _1urridpf _1juqidpf _yakv1wug _4lht1wug _eoawglyw",
|
|
29
28
|
fullScreen: ""
|
|
30
29
|
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* TODO: when tidying this feature gate, add `!important` to `scrollStyles.body`
|
|
34
|
-
*/
|
|
35
|
-
var importantBodyFeatureGateStyles = null;
|
|
36
30
|
function getScrollBehavior(_ref) {
|
|
37
31
|
var isFullScreen = _ref.isFullScreen,
|
|
38
32
|
shouldScrollInViewport = _ref.shouldScrollInViewport;
|
|
@@ -63,7 +57,7 @@ var Positioner = function Positioner(props) {
|
|
|
63
57
|
transitionTimingFunction: _curves.easeInOut
|
|
64
58
|
},
|
|
65
59
|
"data-testid": testId && "".concat(testId, "--positioner"),
|
|
66
|
-
className: (0, _runtime.ax)(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]
|
|
60
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]])
|
|
67
61
|
}, children);
|
|
68
62
|
};
|
|
69
63
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
._kkes1kw7{flex:inherit}
|
|
2
3
|
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
4
|
._mqm2187z{border-block-start:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
|
|
4
5
|
._16jlkb7n{flex-grow:1}
|
|
5
6
|
._18m91wug{overflow-y:auto}
|
|
6
7
|
._1e0c1kw7{display:inherit}
|
|
7
|
-
._1o9zkb7n{flex-shrink:1}
|
|
8
8
|
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
9
9
|
._1reo15vq{overflow-x:hidden}
|
|
10
10
|
._2lx21kw7{flex-direction:inherit}
|
|
11
11
|
._6rthze3t{margin-block-end:var(--ds-space-0,0)}
|
|
12
12
|
._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
|
|
13
|
-
._i0dl1kw7{flex-basis:inherit}
|
|
14
13
|
@media (min-width:30rem){._1jykn7od{height:unset}._wzg61wug{overflow-y:auto}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -21,7 +21,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
|
|
|
21
21
|
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); }
|
|
22
22
|
var keylineColor = "var(--ds-border, #091E4224)";
|
|
23
23
|
var styles = {
|
|
24
|
-
base: "
|
|
24
|
+
base: "_kkes1kw7 _1e0c1kw7 _2lx21kw7 _16jlkb7n _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _1reo15vq _18m91wug _1jykn7od _wzg61wug",
|
|
25
25
|
topKeyline: "_mqm2187z",
|
|
26
26
|
bottomKeyline: "_179r187z"
|
|
27
27
|
};
|
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,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-wrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -74,7 +74,7 @@ const InternalModalWrapper = props => {
|
|
|
74
74
|
action: 'closed',
|
|
75
75
|
componentName: 'modalDialog',
|
|
76
76
|
packageName: "@atlaskit/modal-dialog",
|
|
77
|
-
packageVersion: "
|
|
77
|
+
packageVersion: "0.0.0-development"
|
|
78
78
|
});
|
|
79
79
|
const onBlanketClicked = useCallback(e => {
|
|
80
80
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
._t9ec1b95{transform:translateY(var(--modal-dialog-translate-y))}
|
|
14
14
|
._t9ecglyw{transform:none}
|
|
15
15
|
@media (prefers-reduced-motion:reduce){._1bumglyw{animation:none}._sedtglyw{transition:none}}
|
|
16
|
-
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}.
|
|
16
|
+
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}._we1i18uh{max-width:calc(100vw - 90pt)}._e8uozwhf{max-height:calc(100vh - 119px)}._y1k5stnw{position:absolute}._5ee41nf8{inset-block-start:60px!important}._1urridpf{inset-inline-end:0}._1juqidpf{inset-inline-start:0}._yakv1wug{margin-inline-end:auto}._4lht1wug{margin-inline-start:auto}}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* positioner.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* positioner.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
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
6
|
import { durations } from '@atlaskit/motion/durations';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
8
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
10
9
|
const positionerStyles = null;
|
|
@@ -17,14 +16,9 @@ const stackStyles = {
|
|
|
17
16
|
// Hardcoded pixels are based off a 60px base gutter
|
|
18
17
|
const scrollStyles = {
|
|
19
18
|
viewport: "_4t3i1wug _kqswh2mm _1f6n1wqb _1eot1wug _eoawglyw",
|
|
20
|
-
body: "_we1i18uh _e8uozwhf _y1k5stnw
|
|
19
|
+
body: "_we1i18uh _e8uozwhf _y1k5stnw _5ee41nf8 _1urridpf _1juqidpf _yakv1wug _4lht1wug _eoawglyw",
|
|
21
20
|
fullScreen: ""
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* TODO: when tidying this feature gate, add `!important` to `scrollStyles.body`
|
|
26
|
-
*/
|
|
27
|
-
const importantBodyFeatureGateStyles = null;
|
|
28
22
|
function getScrollBehavior({
|
|
29
23
|
isFullScreen,
|
|
30
24
|
shouldScrollInViewport
|
|
@@ -58,7 +52,7 @@ const Positioner = props => {
|
|
|
58
52
|
transitionTimingFunction: easeInOut
|
|
59
53
|
},
|
|
60
54
|
"data-testid": testId && `${testId}--positioner`,
|
|
61
|
-
className: ax(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]
|
|
55
|
+
className: ax(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]])
|
|
62
56
|
}, children);
|
|
63
57
|
};
|
|
64
58
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
._kkes1kw7{flex:inherit}
|
|
2
3
|
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
4
|
._mqm2187z{border-block-start:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
|
|
4
5
|
._16jlkb7n{flex-grow:1}
|
|
5
6
|
._18m91wug{overflow-y:auto}
|
|
6
7
|
._1e0c1kw7{display:inherit}
|
|
7
|
-
._1o9zkb7n{flex-shrink:1}
|
|
8
8
|
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
9
9
|
._1reo15vq{overflow-x:hidden}
|
|
10
10
|
._2lx21kw7{flex-direction:inherit}
|
|
11
11
|
._6rthze3t{margin-block-end:var(--ds-space-0,0)}
|
|
12
12
|
._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
|
|
13
|
-
._i0dl1kw7{flex-basis:inherit}
|
|
14
13
|
@media (min-width:30rem){._1jykn7od{height:unset}._wzg61wug{overflow-y:auto}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
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';
|
|
@@ -11,7 +11,7 @@ import useLazyCallback from '@atlaskit/ds-lib/use-lazy-callback';
|
|
|
11
11
|
import { Focusable } from '@atlaskit/primitives/compiled';
|
|
12
12
|
const keylineColor = "var(--ds-border, #091E4224)";
|
|
13
13
|
const styles = {
|
|
14
|
-
base: "
|
|
14
|
+
base: "_kkes1kw7 _1e0c1kw7 _2lx21kw7 _16jlkb7n _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _1reo15vq _18m91wug _1jykn7od _wzg61wug",
|
|
15
15
|
topKeyline: "_mqm2187z",
|
|
16
16
|
bottomKeyline: "_179r187z"
|
|
17
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* modal-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./modal-wrapper.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -78,7 +78,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
|
|
|
78
78
|
action: 'closed',
|
|
79
79
|
componentName: 'modalDialog',
|
|
80
80
|
packageName: "@atlaskit/modal-dialog",
|
|
81
|
-
packageVersion: "
|
|
81
|
+
packageVersion: "0.0.0-development"
|
|
82
82
|
});
|
|
83
83
|
var onBlanketClicked = useCallback(function (e) {
|
|
84
84
|
if (shouldCloseOnOverlayClick) {
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
._t9ec1b95{transform:translateY(var(--modal-dialog-translate-y))}
|
|
14
14
|
._t9ecglyw{transform:none}
|
|
15
15
|
@media (prefers-reduced-motion:reduce){._1bumglyw{animation:none}._sedtglyw{transition:none}}
|
|
16
|
-
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}.
|
|
16
|
+
@media (min-width:30rem){._1f6n1wqb{margin-block:60px}._1eot1wug{margin-inline:auto}._eoawglyw{pointer-events:none}._we1i18uh{max-width:calc(100vw - 90pt)}._e8uozwhf{max-height:calc(100vh - 119px)}._y1k5stnw{position:absolute}._5ee41nf8{inset-block-start:60px!important}._1urridpf{inset-inline-end:0}._1juqidpf{inset-inline-start:0}._yakv1wug{margin-inline-end:auto}._4lht1wug{margin-inline-start:auto}}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* positioner.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* positioner.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
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
6
|
import { durations } from '@atlaskit/motion/durations';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
8
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
10
9
|
var positionerStyles = null;
|
|
@@ -17,14 +16,9 @@ var stackStyles = {
|
|
|
17
16
|
// Hardcoded pixels are based off a 60px base gutter
|
|
18
17
|
var scrollStyles = {
|
|
19
18
|
viewport: "_4t3i1wug _kqswh2mm _1f6n1wqb _1eot1wug _eoawglyw",
|
|
20
|
-
body: "_we1i18uh _e8uozwhf _y1k5stnw
|
|
19
|
+
body: "_we1i18uh _e8uozwhf _y1k5stnw _5ee41nf8 _1urridpf _1juqidpf _yakv1wug _4lht1wug _eoawglyw",
|
|
21
20
|
fullScreen: ""
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* TODO: when tidying this feature gate, add `!important` to `scrollStyles.body`
|
|
26
|
-
*/
|
|
27
|
-
var importantBodyFeatureGateStyles = null;
|
|
28
22
|
function getScrollBehavior(_ref) {
|
|
29
23
|
var isFullScreen = _ref.isFullScreen,
|
|
30
24
|
shouldScrollInViewport = _ref.shouldScrollInViewport;
|
|
@@ -55,7 +49,7 @@ var Positioner = function Positioner(props) {
|
|
|
55
49
|
transitionTimingFunction: easeInOut
|
|
56
50
|
},
|
|
57
51
|
"data-testid": testId && "".concat(testId, "--positioner"),
|
|
58
|
-
className: ax(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]
|
|
52
|
+
className: ax(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", stackStyles.stackTransition, stackIndex > 0 ? stackStyles.stackTransform : stackStyles.stackIdle, scrollStyles[scrollBehavior]])
|
|
59
53
|
}, children);
|
|
60
54
|
};
|
|
61
55
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
._kkes1kw7{flex:inherit}
|
|
2
3
|
._179r187z{border-block-end:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}
|
|
3
4
|
._mqm2187z{border-block-start:var(--ds-border-width-selected,2px) solid var(--ds-border,#091e4224)}._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
|
|
4
5
|
._16jlkb7n{flex-grow:1}
|
|
5
6
|
._18m91wug{overflow-y:auto}
|
|
6
7
|
._1e0c1kw7{display:inherit}
|
|
7
|
-
._1o9zkb7n{flex-shrink:1}
|
|
8
8
|
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
9
9
|
._1reo15vq{overflow-x:hidden}
|
|
10
10
|
._2lx21kw7{flex-direction:inherit}
|
|
11
11
|
._6rthze3t{margin-block-end:var(--ds-space-0,0)}
|
|
12
12
|
._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
|
|
13
|
-
._i0dl1kw7{flex-basis:inherit}
|
|
14
13
|
@media (min-width:30rem){._1jykn7od{height:unset}._wzg61wug{overflow-y:auto}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* scroll-container.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
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";
|
|
@@ -12,7 +12,7 @@ import useLazyCallback from '@atlaskit/ds-lib/use-lazy-callback';
|
|
|
12
12
|
import { Focusable } from '@atlaskit/primitives/compiled';
|
|
13
13
|
var keylineColor = "var(--ds-border, #091E4224)";
|
|
14
14
|
var styles = {
|
|
15
|
-
base: "
|
|
15
|
+
base: "_kkes1kw7 _1e0c1kw7 _2lx21kw7 _16jlkb7n _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _1reo15vq _18m91wug _1jykn7od _wzg61wug",
|
|
16
16
|
topKeyline: "_mqm2187z",
|
|
17
17
|
bottomKeyline: "_179r187z"
|
|
18
18
|
};
|
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/offerings.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Modal",
|
|
4
|
+
"package": "@atlaskit/modal-dialog",
|
|
5
|
+
"import": {
|
|
6
|
+
"name": "Modal",
|
|
7
|
+
"package": "@atlaskit/modal-dialog",
|
|
8
|
+
"type": "default"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["modal", "dialog", "popup", "overlay", "focused", "interaction", "layer"],
|
|
11
|
+
"categories": ["overlay"],
|
|
12
|
+
"shortDescription": "A modal dialog component for important content.",
|
|
13
|
+
"status": "general-availability",
|
|
14
|
+
"accessibilityGuidelines": [
|
|
15
|
+
"Ensure modal content is announced by screen readers",
|
|
16
|
+
"Provide appropriate focus management",
|
|
17
|
+
"Use clear, descriptive modal titles",
|
|
18
|
+
"Ensure keyboard navigation and escape key support",
|
|
19
|
+
"Maintain focus within modal when open"
|
|
20
|
+
],
|
|
21
|
+
"usageGuidelines": [
|
|
22
|
+
"Use for important content that requires user attention",
|
|
23
|
+
"Keep modal content focused on a single task",
|
|
24
|
+
"Provide clear action buttons",
|
|
25
|
+
"Use appropriate modal sizes for content",
|
|
26
|
+
"Consider mobile responsiveness"
|
|
27
|
+
],
|
|
28
|
+
"contentGuidelines": [
|
|
29
|
+
"Use clear, descriptive titles",
|
|
30
|
+
"Keep content focused on a single task or message",
|
|
31
|
+
"Include clear action buttons",
|
|
32
|
+
"Use sentence case for all text",
|
|
33
|
+
"Provide clear next steps"
|
|
34
|
+
],
|
|
35
|
+
"examples": ["./examples/constellation/modal-default.tsx"]
|
|
36
|
+
}
|
|
37
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/modal-dialog",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.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/"
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@atlaskit/blanket": "^15.0.0",
|
|
32
32
|
"@atlaskit/button": "^23.4.0",
|
|
33
33
|
"@atlaskit/css": "^0.14.0",
|
|
34
|
-
"@atlaskit/ds-lib": "^5.
|
|
34
|
+
"@atlaskit/ds-lib": "^5.1.0",
|
|
35
35
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
36
|
-
"@atlaskit/icon": "^28.
|
|
36
|
+
"@atlaskit/icon": "^28.3.0",
|
|
37
37
|
"@atlaskit/layering": "^3.0.0",
|
|
38
38
|
"@atlaskit/motion": "^5.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/portal": "^5.1.0",
|
|
41
41
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
42
|
-
"@atlaskit/primitives": "^14.
|
|
42
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
43
43
|
"@atlaskit/theme": "^21.0.0",
|
|
44
44
|
"@atlaskit/tokens": "^6.3.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"@atlaskit/checkbox": "^17.1.0",
|
|
64
64
|
"@atlaskit/code": "^17.2.0",
|
|
65
65
|
"@atlaskit/datetime-picker": "^17.0.0",
|
|
66
|
-
"@atlaskit/docs": "^11.
|
|
66
|
+
"@atlaskit/docs": "^11.1.0",
|
|
67
67
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
68
68
|
"@atlaskit/flag": "^17.4.0",
|
|
69
|
-
"@atlaskit/form": "^
|
|
69
|
+
"@atlaskit/form": "^14.1.0",
|
|
70
70
|
"@atlaskit/heading": "^5.2.0",
|
|
71
71
|
"@atlaskit/link": "^3.2.0",
|
|
72
|
-
"@atlaskit/popup": "^4.
|
|
72
|
+
"@atlaskit/popup": "^4.4.0",
|
|
73
73
|
"@atlaskit/radio": "^8.3.0",
|
|
74
74
|
"@atlaskit/section-message": "^8.7.0",
|
|
75
|
-
"@atlaskit/select": "^21.
|
|
75
|
+
"@atlaskit/select": "^21.3.0",
|
|
76
76
|
"@atlaskit/ssr": "workspace:^",
|
|
77
77
|
"@atlaskit/textfield": "^8.0.0",
|
|
78
78
|
"@atlaskit/tooltip": "^20.4.0",
|
|
@@ -127,9 +127,6 @@
|
|
|
127
127
|
},
|
|
128
128
|
"platform_ads_explicit_font_styles": {
|
|
129
129
|
"type": "boolean"
|
|
130
|
-
},
|
|
131
|
-
"platform_dst_modal_dialog_AFBH_1489": {
|
|
132
|
-
"type": "boolean"
|
|
133
130
|
}
|
|
134
131
|
},
|
|
135
132
|
"homepage": "https://atlassian.design/components/modal-dialog/"
|