@atlaskit/modal-dialog 13.4.0 → 14.0.1
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 +26 -0
- package/dist/cjs/internal/components/modal-dialog.compiled.css +25 -0
- package/dist/cjs/internal/components/modal-dialog.js +22 -60
- package/dist/cjs/internal/components/positioner.compiled.css +16 -0
- package/dist/cjs/internal/components/positioner.js +27 -67
- package/dist/cjs/internal/components/scroll-container.compiled.css +14 -0
- package/dist/cjs/internal/components/scroll-container.js +13 -33
- package/dist/cjs/modal-body.compiled.css +6 -0
- package/dist/cjs/modal-body.js +14 -29
- package/dist/cjs/modal-footer.compiled.css +9 -0
- package/dist/cjs/modal-footer.js +14 -22
- package/dist/cjs/modal-header.compiled.css +8 -0
- package/dist/cjs/modal-header.js +14 -25
- package/dist/cjs/modal-title.compiled.css +24 -0
- package/dist/cjs/modal-title.js +26 -65
- package/dist/cjs/modal-wrapper.compiled.css +7 -0
- package/dist/cjs/modal-wrapper.js +17 -28
- package/dist/es2019/internal/components/modal-dialog.compiled.css +25 -0
- package/dist/es2019/internal/components/modal-dialog.js +18 -70
- package/dist/es2019/internal/components/positioner.compiled.css +16 -0
- package/dist/es2019/internal/components/positioner.js +17 -66
- package/dist/es2019/internal/components/scroll-container.compiled.css +14 -0
- package/dist/es2019/internal/components/scroll-container.js +10 -33
- package/dist/es2019/modal-body.compiled.css +6 -0
- package/dist/es2019/modal-body.js +14 -29
- package/dist/es2019/modal-footer.compiled.css +9 -0
- package/dist/es2019/modal-footer.js +8 -21
- package/dist/es2019/modal-header.compiled.css +8 -0
- package/dist/es2019/modal-header.js +11 -24
- package/dist/es2019/modal-title.compiled.css +24 -0
- package/dist/es2019/modal-title.js +23 -64
- package/dist/es2019/modal-wrapper.compiled.css +7 -0
- package/dist/es2019/modal-wrapper.js +15 -26
- package/dist/esm/internal/components/modal-dialog.compiled.css +25 -0
- package/dist/esm/internal/components/modal-dialog.js +18 -59
- package/dist/esm/internal/components/positioner.compiled.css +16 -0
- package/dist/esm/internal/components/positioner.js +24 -66
- package/dist/esm/internal/components/scroll-container.compiled.css +14 -0
- package/dist/esm/internal/components/scroll-container.js +13 -33
- package/dist/esm/modal-body.compiled.css +6 -0
- package/dist/esm/modal-body.js +14 -29
- package/dist/esm/modal-footer.compiled.css +9 -0
- package/dist/esm/modal-footer.js +11 -21
- package/dist/esm/modal-header.compiled.css +8 -0
- package/dist/esm/modal-header.js +14 -24
- package/dist/esm/modal-title.compiled.css +24 -0
- package/dist/esm/modal-title.js +23 -64
- package/dist/esm/modal-wrapper.compiled.css +7 -0
- package/dist/esm/modal-wrapper.js +16 -27
- package/dist/types/internal/components/modal-dialog.d.ts +2 -2
- package/dist/types/internal/components/positioner.d.ts +1 -2
- package/dist/types/modal-body.d.ts +1 -2
- package/dist/types/modal-footer.d.ts +1 -2
- package/dist/types/modal-header.d.ts +1 -2
- package/dist/types/modal-title.d.ts +1 -2
- package/dist/types/modal-wrapper.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/modal-dialog.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/positioner.d.ts +1 -2
- package/dist/types-ts4.5/modal-body.d.ts +1 -2
- package/dist/types-ts4.5/modal-footer.d.ts +1 -2
- package/dist/types-ts4.5/modal-header.d.ts +1 -2
- package/dist/types-ts4.5/modal-title.d.ts +1 -2
- package/dist/types-ts4.5/modal-wrapper.d.ts +2 -2
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/modal-dialog
|
|
2
2
|
|
|
3
|
+
## 14.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 14.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#128593](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128593)
|
|
14
|
+
[`19d6172ffdfe9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19d6172ffdfe9) -
|
|
15
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
16
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR. Please note, in order to
|
|
17
|
+
use this version of `@atlaskit/modal-dialog`, you will need to ensure that your bundler is
|
|
18
|
+
configured to handle `.css` imports correctly.
|
|
19
|
+
|
|
20
|
+
Most bundlers come with built-in support for `.css` imports, so you may not need to do anything.
|
|
21
|
+
If you are using a different bundler, please refer to the documentation for that bundler to
|
|
22
|
+
understandhow to handle `.css` imports. For more information on the migration, please refer to
|
|
23
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 13.4.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
._16jlidpf{flex-grow:0}
|
|
3
|
+
._1bsb1osq{width:100%}
|
|
4
|
+
._1dg11kw7>form:only-child{flex-direction:inherit}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._1mq81kw7>form:only-child{display:inherit}
|
|
7
|
+
._1o9zkb7n{flex-shrink:1}
|
|
8
|
+
._1q1l1bhr{--ds-elevation-surface-current:var(--ds-surface-overlay,#fff)}
|
|
9
|
+
._1tke1kxc{min-height:100vh}
|
|
10
|
+
._1tkeidpf{min-height:0}
|
|
11
|
+
._2lx21bp4{flex-direction:column}
|
|
12
|
+
._4t3i1osq{height:100%}
|
|
13
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
14
|
+
._c71l1kxc{max-height:100vh}
|
|
15
|
+
._c71lglyw{max-height:none}
|
|
16
|
+
._i0dl1wug{flex-basis:auto}
|
|
17
|
+
._lcxv1wug{pointer-events:auto}
|
|
18
|
+
._m01u1kw7>form:only-child{max-height:inherit}
|
|
19
|
+
._p12fauwl{max-width:100vw}
|
|
20
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}._128m1bk5:focus-visible{outline-width:var(--ds-border-width-outline,2px)}
|
|
21
|
+
._1ah31bk5:focus-visible{outline-offset:var(--ds-border-width-outline,2px)}
|
|
22
|
+
._mizu1p6i:focus-visible{outline-color:var(--ds-border-focused,#388bff)}
|
|
23
|
+
._ra3xnqa1:focus-visible{outline-style:solid}
|
|
24
|
+
@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){._1cvmnqa1:focus-visible{outline-style:solid}._4davt94y:focus-visible{outline-width:1px}}
|
|
25
|
+
@media (min-width:30rem){._1jyk17ks{height:var(--modal-dialog-height)}._e8uo1kw7{max-height:inherit}._1mpv17ks{min-height:var(--modal-dialog-height)}._epkx1sit{border-radius:var(--ds-border-radius,3px)}._g7116m9r{width:var(--modal-dialog-width)}._we1i1kw7{max-width:inherit}._zg7p1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}._yakv1kw7{margin-inline-end:inherit}._4lht1kw7{margin-inline-start:inherit}}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
+
/* modal-dialog.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./modal-dialog.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
16
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
-
var _react2 = require("@emotion/react");
|
|
14
17
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
15
18
|
var _useAutoFocus = _interopRequireDefault(require("@atlaskit/ds-lib/use-auto-focus"));
|
|
16
19
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
17
|
-
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
18
20
|
var _layering = require("@atlaskit/layering");
|
|
19
21
|
var _fadeIn = _interopRequireDefault(require("@atlaskit/motion/fade-in"));
|
|
20
22
|
var _combine = require("@atlaskit/pragmatic-drag-and-drop/combine");
|
|
21
|
-
var _primitives = require("@atlaskit/primitives");
|
|
22
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
23
|
-
var _tokens = require("@atlaskit/tokens");
|
|
24
23
|
var _context = require("../context");
|
|
25
24
|
var _useOnMotionFinish3 = _interopRequireDefault(require("../hooks/use-on-motion-finish"));
|
|
26
25
|
var _element = require("../pragmatic-drag-and-drop/disable-dragging-to-cross-origin-iframes/element");
|
|
@@ -28,51 +27,14 @@ var _external = require("../pragmatic-drag-and-drop/disable-dragging-to-cross-or
|
|
|
28
27
|
var _textSelection = require("../pragmatic-drag-and-drop/disable-dragging-to-cross-origin-iframes/text-selection");
|
|
29
28
|
var _utils = require("../utils");
|
|
30
29
|
var _positioner = _interopRequireDefault(require("./positioner"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
maxWidth: '100vw',
|
|
40
|
-
height: '100%',
|
|
41
|
-
minHeight: 0,
|
|
42
|
-
maxHeight: '100vh',
|
|
43
|
-
// Flex-grow set to 0 to prevent this element from filling its parent flexbox container
|
|
44
|
-
flex: '0 1 auto',
|
|
45
|
-
flexDirection: 'column',
|
|
46
|
-
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
-
color: "var(--ds-text, ".concat(_colors.N900, ")")
|
|
49
|
-
}, _tokens.CURRENT_SURFACE_CSS_VAR, "var(--ds-surface-overlay, ".concat(_colors.N0, ")")), "pointerEvents", 'auto'), _primitives.media.above.xs, {
|
|
50
|
-
width: 'var(--modal-dialog-width)',
|
|
51
|
-
maxWidth: 'inherit',
|
|
52
|
-
borderRadius: "var(--ds-border-radius, 3px)",
|
|
53
|
-
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N30A, ", 0 2px 1px ").concat(_colors.N30A, ", 0 0 20px -6px ").concat(_colors.N60A), ")"),
|
|
54
|
-
marginInlineEnd: 'inherit',
|
|
55
|
-
marginInlineStart: 'inherit'
|
|
56
|
-
}), '& > form:only-child', {
|
|
57
|
-
display: 'inherit',
|
|
58
|
-
maxHeight: 'inherit',
|
|
59
|
-
flexDirection: 'inherit'
|
|
60
|
-
}));
|
|
61
|
-
var viewportScrollStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
62
|
-
/**
|
|
63
|
-
* This ensures that the element fills the viewport on mobile
|
|
64
|
-
* while also allowing it to overflow if its height is larger than
|
|
65
|
-
* the viewport.
|
|
66
|
-
*/
|
|
67
|
-
minHeight: '100vh',
|
|
68
|
-
maxHeight: 'none'
|
|
69
|
-
}, _primitives.media.above.xs, {
|
|
70
|
-
minHeight: 'var(--modal-dialog-height)'
|
|
71
|
-
}));
|
|
72
|
-
var bodyScrollStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _primitives.media.above.xs, {
|
|
73
|
-
height: 'var(--modal-dialog-height)',
|
|
74
|
-
maxHeight: 'inherit'
|
|
75
|
-
}));
|
|
30
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
31
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
32
|
+
var LOCAL_CURRENT_SURFACE_CSS_VAR = '--ds-elevation-surface-current';
|
|
33
|
+
var dialogStyles = {
|
|
34
|
+
root: "_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _1bsb1osq _p12fauwl _4t3i1osq _1tkeidpf _c71l1kxc _2lx21bp4 _bfhk1bhr _syaz1fxt _1q1l1bhr _lcxv1wug _1mq81kw7 _m01u1kw7 _1dg11kw7 _mizu1p6i _1ah31bk5 _ra3xnqa1 _128m1bk5 _1cvmnqa1 _4davt94y _epkx1sit _g7116m9r _we1i1kw7 _zg7p1cd0 _yakv1kw7 _4lht1kw7"
|
|
35
|
+
};
|
|
36
|
+
var viewportScrollStyles = null;
|
|
37
|
+
var bodyScrollStyles = null;
|
|
76
38
|
var ModalDialog = function ModalDialog(props) {
|
|
77
39
|
var _props$width = props.width,
|
|
78
40
|
width = _props$width === void 0 ? 'medium' : _props$width,
|
|
@@ -126,19 +88,19 @@ var ModalDialog = function ModalDialog(props) {
|
|
|
126
88
|
});
|
|
127
89
|
var _useLayering = (0, _layering.useLayering)(),
|
|
128
90
|
currentLevel = _useLayering.currentLevel;
|
|
129
|
-
return
|
|
91
|
+
return /*#__PURE__*/React.createElement(_positioner.default, {
|
|
130
92
|
stackIndex: stackIndex,
|
|
131
93
|
shouldScrollInViewport: shouldScrollInViewport,
|
|
132
94
|
testId: testId
|
|
133
|
-
},
|
|
95
|
+
}, /*#__PURE__*/React.createElement(_context.ModalContext.Provider, {
|
|
134
96
|
value: modalDialogContext
|
|
135
|
-
},
|
|
97
|
+
}, /*#__PURE__*/React.createElement(_context.ScrollContext.Provider, {
|
|
136
98
|
value: shouldScrollInViewport
|
|
137
|
-
},
|
|
99
|
+
}, /*#__PURE__*/React.createElement(_fadeIn.default, {
|
|
138
100
|
entranceDirection: "bottom",
|
|
139
101
|
onFinish: onMotionFinish
|
|
140
102
|
}, function (bottomFadeInProps) {
|
|
141
|
-
return
|
|
103
|
+
return /*#__PURE__*/React.createElement("section", (0, _extends2.default)({}, bottomFadeInProps, {
|
|
142
104
|
"aria-label": label,
|
|
143
105
|
ref: (0, _mergeRefs.default)([bottomFadeInProps.ref, motionRef])
|
|
144
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -148,9 +110,9 @@ var ModalDialog = function ModalDialog(props) {
|
|
|
148
110
|
'--modal-dialog-width': (0, _utils.dialogWidth)(width),
|
|
149
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
150
112
|
'--modal-dialog-height': (0, _utils.dialogHeight)(height)
|
|
151
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
152
113
|
},
|
|
153
|
-
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
115
|
+
className: (0, _runtime.ax)([dialogStyles.root, shouldScrollInViewport ? "_1tke1kxc _c71lglyw _1mpv17ks" : "_1jyk17ks _e8uo1kw7", bottomFadeInProps.className]),
|
|
154
116
|
role: "dialog",
|
|
155
117
|
"aria-labelledby": label ? undefined : titleId,
|
|
156
118
|
"data-testid": testId,
|
|
@@ -158,7 +120,7 @@ var ModalDialog = function ModalDialog(props) {
|
|
|
158
120
|
tabIndex: -1,
|
|
159
121
|
"aria-modal": true,
|
|
160
122
|
"data-ds--level": currentLevel
|
|
161
|
-
}), children)
|
|
123
|
+
}), children);
|
|
162
124
|
}))));
|
|
163
125
|
};
|
|
164
126
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
._152tidpf{inset-block-start:0}
|
|
2
|
+
._1bsb1osq{width:100%}
|
|
3
|
+
._1e02idpf{inset-inline-start:0}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._1pby16oo{z-index:510}
|
|
6
|
+
._2lx21bp4{flex-direction:column}
|
|
7
|
+
._4t3i1osq{height:100%}
|
|
8
|
+
._4t3i1wug{height:auto}
|
|
9
|
+
._k8m01e03{transition-property:transform}
|
|
10
|
+
._kqsw1n9t{position:fixed}
|
|
11
|
+
._kqswh2mm{position:relative}
|
|
12
|
+
._p12f1osq{max-width:100%}
|
|
13
|
+
._t9ec1b95{transform:translateY(var(--modal-dialog-translate-y))}
|
|
14
|
+
._t9ecglyw{transform:none}
|
|
15
|
+
@media (prefers-reduced-motion:reduce){._1bumglyw{animation:none}._sedtglyw{transition:none}}
|
|
16
|
+
@media (min-width:30rem){._1leth4k2{margin:var(--_wekiuq)}._eoawglyw{pointer-events:none}._we1i18uh{max-width:calc(100vw - 90pt)}._e8uozwhf{max-height:calc(100vh - 119px)}._y1k5stnw{position:absolute}._5ee4up15{inset-block-start:var(--_1v97vzp)}._1urridpf{inset-inline-end:0}._1juqidpf{inset-inline-start:0}._yakv1wug{margin-inline-end:auto}._4lht1wug{margin-inline-start:auto}}
|
|
@@ -1,93 +1,53 @@
|
|
|
1
|
+
/* positioner.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./positioner.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
14
|
var _curves = require("@atlaskit/motion/curves");
|
|
11
15
|
var _durations = require("@atlaskit/motion/durations");
|
|
12
|
-
var _primitives = require("@atlaskit/primitives");
|
|
13
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
-
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var gutter = 60;
|
|
22
22
|
var maxWidthDimensions = "calc(100vw - ".concat(gutter * 2, "px)");
|
|
23
23
|
var maxHeightDimensions = "calc(100vh - ".concat(gutter * 2 - 1, "px)");
|
|
24
24
|
|
|
25
25
|
// Flex and min-content are set to constrain the height of the body and support multi-column scrolling experiences
|
|
26
|
-
var positionerStyles =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
zIndex: _constants.layers.modal(),
|
|
33
|
-
flexDirection: 'column',
|
|
34
|
-
insetBlockStart: 0,
|
|
35
|
-
insetInlineStart: 0
|
|
36
|
-
});
|
|
37
|
-
var viewportScrollStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
38
|
-
height: 'auto',
|
|
39
|
-
position: 'relative'
|
|
40
|
-
}, _primitives.media.above.xs, {
|
|
41
|
-
margin: "".concat(gutter, "px auto"),
|
|
42
|
-
pointerEvents: 'none'
|
|
43
|
-
}));
|
|
44
|
-
var bodyScrollStyles = (0, _react.css)((0, _defineProperty2.default)({}, _primitives.media.above.xs, {
|
|
45
|
-
maxWidth: maxWidthDimensions,
|
|
46
|
-
maxHeight: maxHeightDimensions,
|
|
47
|
-
position: 'absolute',
|
|
48
|
-
insetBlockStart: "".concat(gutter, "px"),
|
|
49
|
-
insetInlineEnd: 0,
|
|
50
|
-
insetInlineStart: 0,
|
|
51
|
-
marginInlineEnd: 'auto',
|
|
52
|
-
marginInlineStart: 'auto',
|
|
53
|
-
pointerEvents: 'none'
|
|
54
|
-
}));
|
|
55
|
-
var stackTransitionStyles = (0, _react.css)({
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
57
|
-
transitionDuration: "".concat(_durations.durations.medium, "ms"),
|
|
58
|
-
transitionProperty: 'transform',
|
|
59
|
-
transitionTimingFunction: _curves.easeInOut,
|
|
60
|
-
/**
|
|
61
|
-
* Duplicated from @atlaskit/motion/accessibility
|
|
62
|
-
* because @repo/internal/styles/consistent-style-ordering
|
|
63
|
-
* doesn't work well with object spreading.
|
|
64
|
-
*/
|
|
65
|
-
'@media (prefers-reduced-motion: reduce)': {
|
|
66
|
-
animation: 'none',
|
|
67
|
-
transition: 'none'
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
var stackTransformStyles = (0, _react.css)({
|
|
71
|
-
transform: 'translateY(var(--modal-dialog-translate-y))'
|
|
72
|
-
});
|
|
73
|
-
var stackIdleStyles = (0, _react.css)({
|
|
74
|
-
transform: 'none'
|
|
75
|
-
});
|
|
26
|
+
var positionerStyles = null;
|
|
27
|
+
var viewportScrollStyles = null;
|
|
28
|
+
var bodyScrollStyles = null;
|
|
29
|
+
var stackTransitionStyles = null;
|
|
30
|
+
var stackTransformStyles = null;
|
|
31
|
+
var stackIdleStyles = null;
|
|
76
32
|
var Positioner = function Positioner(props) {
|
|
77
33
|
var children = props.children,
|
|
78
34
|
stackIndex = props.stackIndex,
|
|
79
35
|
shouldScrollInViewport = props.shouldScrollInViewport,
|
|
80
36
|
testId = props.testId;
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
"data-testid": testId && "".concat(testId, "--positioner"),
|
|
39
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bsb1osq _p12f1osq _4t3i1osq _kqsw1n9t _1pby16oo _2lx21bp4 _152tidpf _1e02idpf", "_k8m01e03 _1bumglyw _sedtglyw", stackIndex > 0 ? "_t9ec1b95" : "_t9ecglyw", shouldScrollInViewport ? "_4t3i1wug _kqswh2mm _1leth4k2 _eoawglyw" : "_we1i18uh _e8uozwhf _y1k5stnw _5ee4up15 _1urridpf _1juqidpf _yakv1wug _4lht1wug _eoawglyw"]),
|
|
40
|
+
style: _objectSpread(_objectSpread({}, {
|
|
84
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
|
-
'--modal-dialog-translate-y': "calc(".concat(stackIndex, "px * ", "var(--ds-space-100, 8px)", ")")
|
|
42
|
+
'--modal-dialog-translate-y': "calc(".concat(stackIndex, "px * ", "var(--ds-space-100, 8px)", ")"),
|
|
86
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
44
|
+
transitionDuration: "".concat(_durations.durations.medium, "ms"),
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
46
|
+
transitionTimingFunction: _curves.easeInOut
|
|
47
|
+
}), {}, {
|
|
48
|
+
"--_wekiuq": (0, _runtime.ix)("".concat(gutter, "px auto")),
|
|
49
|
+
"--_1v97vzp": (0, _runtime.ix)("".concat(gutter, "px"))
|
|
50
|
+
})
|
|
91
51
|
}, children);
|
|
92
52
|
};
|
|
93
53
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
._179r1h1c{border-block-end:var(--_1veqrdx)}
|
|
3
|
+
._mqm21h1c{border-block-start:var(--_1veqrdx)}._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
|
|
4
|
+
._16jlkb7n{flex-grow:1}
|
|
5
|
+
._18m91wug{overflow-y:auto}
|
|
6
|
+
._1e0c1kw7{display:inherit}
|
|
7
|
+
._1o9zkb7n{flex-shrink:1}
|
|
8
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
9
|
+
._1reo15vq{overflow-x:hidden}
|
|
10
|
+
._2lx21kw7{flex-direction:inherit}
|
|
11
|
+
._6rthze3t{margin-block-end:var(--ds-space-0,0)}
|
|
12
|
+
._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
|
|
13
|
+
._i0dl1kw7{flex-basis:inherit}
|
|
14
|
+
@media (min-width:30rem){._1jykn7od{height:unset}._wzg61wug{overflow-y:auto}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* scroll-container.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,47 +7,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.default = void 0;
|
|
10
|
+
require("./scroll-container.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _react2 = require("@emotion/react");
|
|
13
14
|
var _bindEventListener = require("bind-event-listener");
|
|
14
15
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
15
16
|
var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
|
|
16
17
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
17
18
|
var _useLazyCallback = _interopRequireDefault(require("@atlaskit/ds-lib/use-lazy-callback"));
|
|
18
19
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
19
|
-
var _primitives = require("@atlaskit/primitives");
|
|
20
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
21
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* @jsx jsx
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
|
-
|
|
30
|
-
var keylineColor = "var(--ds-border, ".concat(_colors.N30, ")");
|
|
31
|
-
var baseStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
32
|
-
display: 'inherit',
|
|
33
|
-
margin: "var(--ds-space-0, 0px)",
|
|
34
|
-
flex: 'inherit',
|
|
35
|
-
flexDirection: 'inherit',
|
|
36
|
-
flexGrow: 1,
|
|
37
|
-
overflowX: 'hidden',
|
|
38
|
-
overflowY: 'auto'
|
|
39
|
-
}, _primitives.media.above.xs, {
|
|
40
|
-
height: 'unset',
|
|
41
|
-
overflowY: 'auto'
|
|
42
|
-
}));
|
|
22
|
+
var keylineColor = "var(--ds-border, #091E4224)";
|
|
23
|
+
var baseStyles = null;
|
|
43
24
|
var keylineHeight = 2;
|
|
44
|
-
var topKeylineStyles =
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
var bottomKeylineStyles = (0, _react2.css)({
|
|
48
|
-
borderBlockEnd: "var(--ds-border-width-outline, 2px)".concat(" solid ", keylineColor)
|
|
49
|
-
});
|
|
25
|
+
var topKeylineStyles = null;
|
|
26
|
+
var bottomKeylineStyles = null;
|
|
50
27
|
/**
|
|
51
28
|
* A container that shows top and bottom keylines when the
|
|
52
29
|
* content overflows into the scrollable element.
|
|
@@ -108,9 +85,9 @@ var ScrollContainer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
108
85
|
unbindTargetEvent();
|
|
109
86
|
};
|
|
110
87
|
}, [setLazyKeylines]);
|
|
111
|
-
return
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_focusRing.default, {
|
|
112
89
|
isInset: true
|
|
113
|
-
},
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
114
91
|
// tabindex is allowed here so that keyboard users can scroll content
|
|
115
92
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
116
93
|
tabIndex: showContentFocus ? 0 : undefined,
|
|
@@ -118,7 +95,10 @@ var ScrollContainer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
118
95
|
"aria-label": showContentFocus ? 'Scrollable content' : undefined,
|
|
119
96
|
"data-testid": testId && "".concat(testId, "--scrollable"),
|
|
120
97
|
ref: (0, _mergeRefs.default)([ref, scrollableRef]),
|
|
121
|
-
|
|
98
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1kw7 _1e0c1kw7 _2lx21kw7 _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _1reo15vq _18m91wug _1jykn7od _wzg61wug", showTopKeyline && "_mqm21h1c", showBottomKeyline && "_179r1h1c"]),
|
|
99
|
+
style: {
|
|
100
|
+
"--_1veqrdx": (0, _runtime.ix)("var(--ds-border-width-outline, 2px)".concat(" solid ", keylineColor))
|
|
101
|
+
}
|
|
122
102
|
}, children));
|
|
123
103
|
});
|
|
124
104
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zr1ejb{padding-inline:var(--ds-space-300,24px)}
|
|
3
|
+
._1rjc1bk5{padding-block:var(--ds-border-width-outline,2px)}
|
|
4
|
+
._16jlkb7n{flex-grow:1}
|
|
5
|
+
._1o9zkb7n{flex-shrink:1}
|
|
6
|
+
._i0dl1wug{flex-basis:auto}
|
package/dist/cjs/modal-body.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* modal-body.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,45 +6,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
require("./modal-body.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
11
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
12
|
var _reactScrolllock = require("react-scrolllock");
|
|
11
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
14
|
var _hooks = require("./hooks");
|
|
13
15
|
var _scrollContainer = _interopRequireDefault(require("./internal/components/scroll-container"));
|
|
14
16
|
var _useScroll = _interopRequireDefault(require("./internal/hooks/use-scroll"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @jsx jsx
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
|
-
|
|
22
|
-
var bodyStyles = (0, _react2.css)({
|
|
23
|
-
/* This ensures the body fills the whole space between header and footer. */
|
|
24
|
-
flex: '1 1 auto'
|
|
25
|
-
});
|
|
26
|
-
var fontStyles = (0, _react2.css)({
|
|
27
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
28
|
-
});
|
|
17
|
+
var bodyStyles = null;
|
|
18
|
+
var fontStyles = null;
|
|
29
19
|
|
|
30
20
|
/**
|
|
31
21
|
* Adding the padding here avoids cropping the keyline on its sides.
|
|
32
22
|
* The combined vertical spacing is maintained by subtracting the
|
|
33
23
|
* keyline height from header and footer using negative margins.
|
|
34
24
|
*/
|
|
35
|
-
var bodyScrollStyles =
|
|
36
|
-
paddingBlock: "var(--ds-border-width-outline, 2px)",
|
|
37
|
-
paddingInline: "var(--ds-space-300, 24px)"
|
|
38
|
-
});
|
|
25
|
+
var bodyScrollStyles = null;
|
|
39
26
|
|
|
40
27
|
/**
|
|
41
28
|
* Keylines will not be shown if scrolling in viewport so we do
|
|
42
29
|
* not account for them in this case.
|
|
43
30
|
*/
|
|
44
|
-
var viewportScrollStyles =
|
|
45
|
-
paddingInline: "var(--ds-space-300, 24px)"
|
|
46
|
-
});
|
|
31
|
+
var viewportScrollStyles = null;
|
|
47
32
|
/**
|
|
48
33
|
* __Modal body__
|
|
49
34
|
*
|
|
@@ -60,14 +45,14 @@ var ModalBody = function ModalBody(props) {
|
|
|
60
45
|
modalTestId = _useModal.testId;
|
|
61
46
|
var shouldScrollInViewport = (0, _useScroll.default)();
|
|
62
47
|
var testId = userDefinedTestId || modalTestId && "".concat(modalTestId, "--body");
|
|
63
|
-
return shouldScrollInViewport ?
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
}, children) :
|
|
48
|
+
return shouldScrollInViewport ? /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
"data-testid": testId,
|
|
50
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug", "_18zr1ejb", (0, _platformFeatureFlags.fg)('platform_ads_explicit_font_styles') && "_11c82smr"])
|
|
51
|
+
}, children) : /*#__PURE__*/_react.default.createElement(_reactScrolllock.TouchScrollable, null, /*#__PURE__*/_react.default.createElement(_scrollContainer.default, {
|
|
67
52
|
testId: userDefinedTestId || modalTestId
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
"
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
+
"data-testid": testId,
|
|
55
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug", "_1rjc1bk5 _18zr1ejb", (0, _platformFeatureFlags.fg)('platform_ads_explicit_font_styles') && "_11c82smr"])
|
|
71
56
|
}, children)));
|
|
72
57
|
};
|
|
73
58
|
var _default = exports.default = ModalBody;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._18zr1ejb{padding-inline:var(--ds-space-300,24px)}
|
|
3
|
+
._1bahesu3{justify-content:flex-end}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._1pfhmufe{margin-block-start:var(--_t7lu6v)}
|
|
6
|
+
._1q51pxbi{padding-block-start:var(--ds-space-200,1pc)}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._85i51ejb{padding-block-end:var(--ds-space-300,24px)}
|
|
9
|
+
._kqswh2mm{position:relative}
|
package/dist/cjs/modal-footer.js
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
|
+
/* modal-footer.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
9
|
+
require("./modal-footer.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
12
|
var _hooks = require("./hooks");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
var footerStyles = (0, _react.css)({
|
|
17
|
-
display: 'flex',
|
|
18
|
-
position: 'relative',
|
|
19
|
-
alignItems: 'center',
|
|
20
|
-
justifyContent: 'flex-end',
|
|
21
|
-
gap: "var(--ds-space-100, 8px)",
|
|
22
|
-
marginBlockStart: "calc(-1 * ".concat("var(--ds-border-width-outline, 2px)", ")"),
|
|
23
|
-
paddingBlockEnd: "var(--ds-space-300, 24px)",
|
|
24
|
-
paddingBlockStart: "var(--ds-space-200, 16px)",
|
|
25
|
-
paddingInline: "var(--ds-space-300, 24px)"
|
|
26
|
-
});
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var footerStyles = null;
|
|
27
16
|
/**
|
|
28
17
|
* __Modal footer__
|
|
29
18
|
*
|
|
@@ -39,9 +28,12 @@ var ModalFooter = function ModalFooter(props) {
|
|
|
39
28
|
var _useModal = (0, _hooks.useModal)(),
|
|
40
29
|
modalTestId = _useModal.testId;
|
|
41
30
|
var testId = userDefinedTestId || modalTestId && "".concat(modalTestId, "--footer");
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
"
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
"data-testid": testId,
|
|
33
|
+
className: (0, _runtime.ax)(["_zulpu2gc _18zr1ejb _1e0c1txw _kqswh2mm _4cvr1h6o _1bahesu3 _1pfhmufe _85i51ejb _1q51pxbi"]),
|
|
34
|
+
style: {
|
|
35
|
+
"--_t7lu6v": (0, _runtime.ix)("calc(-1 * ".concat("var(--ds-border-width-outline, 2px)", ")"))
|
|
36
|
+
}
|
|
45
37
|
}, children);
|
|
46
38
|
};
|
|
47
39
|
var _default = exports.default = ModalFooter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._18zr1ejb{padding-inline:var(--ds-space-300,24px)}
|
|
2
|
+
._1bah1yb4{justify-content:space-between}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._6rthmufe{margin-block-end:var(--_t7lu6v)}
|
|
7
|
+
._85i5pxbi{padding-block-end:var(--ds-space-200,1pc)}
|
|
8
|
+
._kqswh2mm{position:relative}
|