@alfalab/core-components-base-modal 5.0.8 → 5.0.10
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/Component.js +4 -30
- package/cssm/Component.js +3 -29
- package/cssm/index.js +1 -0
- package/esm/Component.js +2 -28
- package/esm/index.css +13 -13
- package/esm/index.js +1 -0
- package/index.css +13 -13
- package/index.js +1 -0
- package/modern/Component.js +1 -1
- package/modern/index.css +13 -13
- package/package.json +7 -6
package/Component.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib = require('tslib');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var FocusLock = require('react-focus-lock');
|
|
5
6
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -20,34 +21,7 @@ var FocusLock__default = /*#__PURE__*/_interopDefaultCompat(FocusLock);
|
|
|
20
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
21
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
Copyright (c) Microsoft Corporation.
|
|
25
|
-
|
|
26
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
27
|
-
purpose with or without fee is hereby granted.
|
|
28
|
-
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
30
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
31
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
32
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
33
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
34
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
35
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
36
|
-
***************************************************************************** */
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var styles = {"component":"base-modal__component_7hxkw","wrapper":"base-modal__wrapper_7hxkw","content":"base-modal__content_7hxkw","hidden":"base-modal__hidden_7hxkw","backdrop":"base-modal__backdrop_7hxkw","appear":"base-modal__appear_7hxkw","enter":"base-modal__enter_7hxkw","appearActive":"base-modal__appearActive_7hxkw","enterActive":"base-modal__enterActive_7hxkw","exit":"base-modal__exit_7hxkw","exitActive":"base-modal__exitActive_7hxkw","exitDone":"base-modal__exitDone_7hxkw"};
|
|
24
|
+
var styles = {"component":"base-modal__component_1tgx5","wrapper":"base-modal__wrapper_1tgx5","content":"base-modal__content_1tgx5","hidden":"base-modal__hidden_1tgx5","backdrop":"base-modal__backdrop_1tgx5","appear":"base-modal__appear_1tgx5","enter":"base-modal__enter_1tgx5","appearActive":"base-modal__appearActive_1tgx5","enterActive":"base-modal__enterActive_1tgx5","exit":"base-modal__exit_1tgx5","exitActive":"base-modal__exitActive_1tgx5","exitDone":"base-modal__exitDone_1tgx5"};
|
|
51
25
|
require('./index.css')
|
|
52
26
|
|
|
53
27
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
@@ -260,7 +234,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
|
|
|
260
234
|
return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container, immediateMount: true },
|
|
261
235
|
React__default.default.createElement(BaseModalContext.Provider, { value: contextValue },
|
|
262
236
|
React__default.default.createElement(FocusLock__default.default, { autoFocus: !disableAutoFocus, disabled: disableFocusLock || !open, returnFocus: !disableRestoreFocus },
|
|
263
|
-
Backdrop && (React__default.default.createElement(Backdrop, __assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles.backdrop), open: open, style: {
|
|
237
|
+
Backdrop && (React__default.default.createElement(Backdrop, tslib.__assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles.backdrop), open: open, style: {
|
|
264
238
|
zIndex: computedZIndex,
|
|
265
239
|
} }))),
|
|
266
240
|
React__default.default.createElement("div", { role: 'dialog', className: cn__default.default(styles.wrapper, wrapperClassName, (_a = {},
|
|
@@ -270,7 +244,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
|
|
|
270
244
|
tabIndex: 0, "data-test-id": dataTestId, style: {
|
|
271
245
|
zIndex: computedZIndex,
|
|
272
246
|
} },
|
|
273
|
-
React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ appear: true, timeout: 200, classNames: styles }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
|
|
247
|
+
React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ appear: true, timeout: 200, classNames: styles }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
|
|
274
248
|
React__default.default.createElement("div", { className: cn__default.default(styles.component, className), ref: mergeRefs__default.default([componentRef, componentNodeRef]) },
|
|
275
249
|
React__default.default.createElement("div", { className: cn__default.default(styles.content, contentClassName) }, children))))))));
|
|
276
250
|
}));
|
package/cssm/Component.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var tslib = require('tslib');
|
|
3
4
|
var React = require('react');
|
|
4
5
|
var FocusLock = require('react-focus-lock');
|
|
5
6
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -22,33 +23,6 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
22
23
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
24
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
24
25
|
|
|
25
|
-
/******************************************************************************
|
|
26
|
-
Copyright (c) Microsoft Corporation.
|
|
27
|
-
|
|
28
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
29
|
-
purpose with or without fee is hereby granted.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
32
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
33
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
34
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
35
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
***************************************************************************** */
|
|
39
|
-
var __assign = function () {
|
|
40
|
-
__assign = Object.assign || function __assign(t) {
|
|
41
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
42
|
-
s = arguments[i];
|
|
43
|
-
for (var p in s)
|
|
44
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
45
|
-
t[p] = s[p];
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
};
|
|
49
|
-
return __assign.apply(this, arguments);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
26
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
53
27
|
var BaseModalContext = React__default.default.createContext({
|
|
54
28
|
hasFooter: false,
|
|
@@ -259,7 +233,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
|
|
|
259
233
|
return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container, immediateMount: true },
|
|
260
234
|
React__default.default.createElement(BaseModalContext.Provider, { value: contextValue },
|
|
261
235
|
React__default.default.createElement(FocusLock__default.default, { autoFocus: !disableAutoFocus, disabled: disableFocusLock || !open, returnFocus: !disableRestoreFocus },
|
|
262
|
-
Backdrop && (React__default.default.createElement(Backdrop, __assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles__default.default.backdrop), open: open, style: {
|
|
236
|
+
Backdrop && (React__default.default.createElement(Backdrop, tslib.__assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles__default.default.backdrop), open: open, style: {
|
|
263
237
|
zIndex: computedZIndex,
|
|
264
238
|
} }))),
|
|
265
239
|
React__default.default.createElement("div", { role: 'dialog', className: cn__default.default(styles__default.default.wrapper, wrapperClassName, (_a = {},
|
|
@@ -269,7 +243,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
|
|
|
269
243
|
tabIndex: 0, "data-test-id": dataTestId, style: {
|
|
270
244
|
zIndex: computedZIndex,
|
|
271
245
|
} },
|
|
272
|
-
React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ appear: true, timeout: 200, classNames: styles__default.default }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
|
|
246
|
+
React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ appear: true, timeout: 200, classNames: styles__default.default }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
|
|
273
247
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className), ref: mergeRefs__default.default([componentRef, componentNodeRef]) },
|
|
274
248
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.content, contentClassName) }, children))))))));
|
|
275
249
|
}));
|
package/cssm/index.js
CHANGED
package/esm/Component.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
1
2
|
import React, { forwardRef, useState, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
2
3
|
import FocusLock from 'react-focus-lock';
|
|
3
4
|
import mergeRefs from 'react-merge-refs';
|
|
@@ -11,34 +12,7 @@ import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerS
|
|
|
11
12
|
import './matches-polyfill.js';
|
|
12
13
|
import '@alfalab/core-components-global-store/esm';
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
var __assign = function () {
|
|
29
|
-
__assign = Object.assign || function __assign(t) {
|
|
30
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31
|
-
s = arguments[i];
|
|
32
|
-
for (var p in s)
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
-
t[p] = s[p];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
return __assign.apply(this, arguments);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
var styles = {"component":"base-modal__component_7hxkw","wrapper":"base-modal__wrapper_7hxkw","content":"base-modal__content_7hxkw","hidden":"base-modal__hidden_7hxkw","backdrop":"base-modal__backdrop_7hxkw","appear":"base-modal__appear_7hxkw","enter":"base-modal__enter_7hxkw","appearActive":"base-modal__appearActive_7hxkw","enterActive":"base-modal__enterActive_7hxkw","exit":"base-modal__exit_7hxkw","exitActive":"base-modal__exitActive_7hxkw","exitDone":"base-modal__exitDone_7hxkw"};
|
|
15
|
+
var styles = {"component":"base-modal__component_1tgx5","wrapper":"base-modal__wrapper_1tgx5","content":"base-modal__content_1tgx5","hidden":"base-modal__hidden_1tgx5","backdrop":"base-modal__backdrop_1tgx5","appear":"base-modal__appear_1tgx5","enter":"base-modal__enter_1tgx5","appearActive":"base-modal__appearActive_1tgx5","enterActive":"base-modal__enterActive_1tgx5","exit":"base-modal__exit_1tgx5","exitActive":"base-modal__exitActive_1tgx5","exitDone":"base-modal__exitDone_1tgx5"};
|
|
42
16
|
require('./index.css')
|
|
43
17
|
|
|
44
18
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b946 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .base-
|
|
18
|
+
} .base-modal__component_1tgx5 {
|
|
19
19
|
position: relative;
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
background: var(--color-light-bg-primary);
|
|
22
22
|
margin: auto;
|
|
23
23
|
flex-shrink: 0;
|
|
24
|
-
} .base-
|
|
24
|
+
} .base-modal__wrapper_1tgx5 {
|
|
25
25
|
position: fixed;
|
|
26
26
|
top: 0;
|
|
27
27
|
left: 0;
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
align-items: center;
|
|
35
35
|
outline: 0;
|
|
36
|
-
} .base-
|
|
36
|
+
} .base-modal__content_1tgx5 {
|
|
37
37
|
width: 100%;
|
|
38
38
|
height: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .base-
|
|
42
|
+
} .base-modal__hidden_1tgx5 {
|
|
43
43
|
display: none;
|
|
44
|
-
} .base-
|
|
44
|
+
} .base-modal__backdrop_1tgx5 {
|
|
45
45
|
z-index: 0;
|
|
46
|
-
} .base-
|
|
47
|
-
.base-
|
|
46
|
+
} .base-modal__appear_1tgx5,
|
|
47
|
+
.base-modal__enter_1tgx5 {
|
|
48
48
|
opacity: 0;
|
|
49
|
-
} .base-
|
|
50
|
-
.base-
|
|
49
|
+
} .base-modal__appearActive_1tgx5,
|
|
50
|
+
.base-modal__enterActive_1tgx5 {
|
|
51
51
|
opacity: 1;
|
|
52
52
|
transition: opacity 200ms ease-in;
|
|
53
|
-
} .base-
|
|
53
|
+
} .base-modal__exit_1tgx5 {
|
|
54
54
|
opacity: 1;
|
|
55
|
-
} .base-
|
|
56
|
-
.base-
|
|
55
|
+
} .base-modal__exitActive_1tgx5,
|
|
56
|
+
.base-modal__exitDone_1tgx5 {
|
|
57
57
|
opacity: 0;
|
|
58
58
|
transition: opacity 200ms ease-out;
|
|
59
59
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { BaseModal, BaseModalContext } from './Component.js';
|
|
2
2
|
export { getScrollbarSize, handleContainer, hasScrollbar, isScrolledToBottom, isScrolledToTop, restoreContainerStyles } from './utils.js';
|
|
3
|
+
import 'tslib';
|
|
3
4
|
import 'react';
|
|
4
5
|
import 'react-focus-lock';
|
|
5
6
|
import 'react-merge-refs';
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b946 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .base-
|
|
18
|
+
} .base-modal__component_1tgx5 {
|
|
19
19
|
position: relative;
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
background: var(--color-light-bg-primary);
|
|
22
22
|
margin: auto;
|
|
23
23
|
flex-shrink: 0;
|
|
24
|
-
} .base-
|
|
24
|
+
} .base-modal__wrapper_1tgx5 {
|
|
25
25
|
position: fixed;
|
|
26
26
|
top: 0;
|
|
27
27
|
left: 0;
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
align-items: center;
|
|
35
35
|
outline: 0;
|
|
36
|
-
} .base-
|
|
36
|
+
} .base-modal__content_1tgx5 {
|
|
37
37
|
width: 100%;
|
|
38
38
|
height: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .base-
|
|
42
|
+
} .base-modal__hidden_1tgx5 {
|
|
43
43
|
display: none;
|
|
44
|
-
} .base-
|
|
44
|
+
} .base-modal__backdrop_1tgx5 {
|
|
45
45
|
z-index: 0;
|
|
46
|
-
} .base-
|
|
47
|
-
.base-
|
|
46
|
+
} .base-modal__appear_1tgx5,
|
|
47
|
+
.base-modal__enter_1tgx5 {
|
|
48
48
|
opacity: 0;
|
|
49
|
-
} .base-
|
|
50
|
-
.base-
|
|
49
|
+
} .base-modal__appearActive_1tgx5,
|
|
50
|
+
.base-modal__enterActive_1tgx5 {
|
|
51
51
|
opacity: 1;
|
|
52
52
|
transition: opacity 200ms ease-in;
|
|
53
|
-
} .base-
|
|
53
|
+
} .base-modal__exit_1tgx5 {
|
|
54
54
|
opacity: 1;
|
|
55
|
-
} .base-
|
|
56
|
-
.base-
|
|
55
|
+
} .base-modal__exitActive_1tgx5,
|
|
56
|
+
.base-modal__exitDone_1tgx5 {
|
|
57
57
|
opacity: 0;
|
|
58
58
|
transition: opacity 200ms ease-out;
|
|
59
59
|
}
|
package/index.js
CHANGED
package/modern/Component.js
CHANGED
|
@@ -11,7 +11,7 @@ import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerS
|
|
|
11
11
|
import './matches-polyfill.js';
|
|
12
12
|
import '@alfalab/core-components-global-store/modern';
|
|
13
13
|
|
|
14
|
-
const styles = {"component":"base-
|
|
14
|
+
const styles = {"component":"base-modal__component_1tgx5","wrapper":"base-modal__wrapper_1tgx5","content":"base-modal__content_1tgx5","hidden":"base-modal__hidden_1tgx5","backdrop":"base-modal__backdrop_1tgx5","appear":"base-modal__appear_1tgx5","enter":"base-modal__enter_1tgx5","appearActive":"base-modal__appearActive_1tgx5","enterActive":"base-modal__enterActive_1tgx5","exit":"base-modal__exit_1tgx5","exitActive":"base-modal__exitActive_1tgx5","exitDone":"base-modal__exitDone_1tgx5"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b946 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .base-
|
|
18
|
+
} .base-modal__component_1tgx5 {
|
|
19
19
|
position: relative;
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
background: var(--color-light-bg-primary);
|
|
22
22
|
margin: auto;
|
|
23
23
|
flex-shrink: 0;
|
|
24
|
-
} .base-
|
|
24
|
+
} .base-modal__wrapper_1tgx5 {
|
|
25
25
|
position: fixed;
|
|
26
26
|
top: 0;
|
|
27
27
|
left: 0;
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
align-items: center;
|
|
35
35
|
outline: 0;
|
|
36
|
-
} .base-
|
|
36
|
+
} .base-modal__content_1tgx5 {
|
|
37
37
|
width: 100%;
|
|
38
38
|
height: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .base-
|
|
42
|
+
} .base-modal__hidden_1tgx5 {
|
|
43
43
|
display: none;
|
|
44
|
-
} .base-
|
|
44
|
+
} .base-modal__backdrop_1tgx5 {
|
|
45
45
|
z-index: 0;
|
|
46
|
-
} .base-
|
|
47
|
-
.base-
|
|
46
|
+
} .base-modal__appear_1tgx5,
|
|
47
|
+
.base-modal__enter_1tgx5 {
|
|
48
48
|
opacity: 0;
|
|
49
|
-
} .base-
|
|
50
|
-
.base-
|
|
49
|
+
} .base-modal__appearActive_1tgx5,
|
|
50
|
+
.base-modal__enterActive_1tgx5 {
|
|
51
51
|
opacity: 1;
|
|
52
52
|
transition: opacity 200ms ease-in;
|
|
53
|
-
} .base-
|
|
53
|
+
} .base-modal__exit_1tgx5 {
|
|
54
54
|
opacity: 1;
|
|
55
|
-
} .base-
|
|
56
|
-
.base-
|
|
55
|
+
} .base-modal__exitActive_1tgx5,
|
|
56
|
+
.base-modal__exitDone_1tgx5 {
|
|
57
57
|
opacity: 0;
|
|
58
58
|
transition: opacity 200ms ease-out;
|
|
59
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-base-modal",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "BaseModal component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
"directory": "dist"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@alfalab/core-components-backdrop": "^3.0.
|
|
16
|
+
"@alfalab/core-components-backdrop": "^3.0.4",
|
|
17
17
|
"@alfalab/core-components-global-store": "^2.0.3",
|
|
18
|
-
"@alfalab/core-components-portal": "^3.1.
|
|
19
|
-
"@alfalab/core-components-stack": "^4.0.
|
|
18
|
+
"@alfalab/core-components-portal": "^3.1.3",
|
|
19
|
+
"@alfalab/core-components-stack": "^4.0.3",
|
|
20
20
|
"@juggle/resize-observer": "^3.3.1",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
22
|
-
"react-focus-lock": "^2.9.
|
|
22
|
+
"react-focus-lock": "^2.9.3",
|
|
23
23
|
"react-merge-refs": "^1.1.0",
|
|
24
|
-
"react-transition-group": "^4.4.5"
|
|
24
|
+
"react-transition-group": "^4.4.5",
|
|
25
|
+
"tslib": "^2.4.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@types/react-transition-group": "^4.4.5"
|