@alfalab/core-components-base-modal 5.0.9 → 5.1.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/Component.d.ts CHANGED
@@ -119,6 +119,7 @@ type BaseModalProps = {
119
119
  componentRef?: MutableRefObject<HTMLDivElement | null>;
120
120
  };
121
121
  type BaseModalContext = {
122
+ parentRef: React.RefObject<HTMLDivElement>;
122
123
  hasFooter?: boolean;
123
124
  hasHeader?: boolean;
124
125
  hasScroll?: boolean;
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,38 +21,12 @@ 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_6hw5o","wrapper":"base-modal__wrapper_6hw5o","content":"base-modal__content_6hw5o","hidden":"base-modal__hidden_6hw5o","backdrop":"base-modal__backdrop_6hw5o","appear":"base-modal__appear_6hw5o","enter":"base-modal__enter_6hw5o","appearActive":"base-modal__appearActive_6hw5o","enterActive":"base-modal__enterActive_6hw5o","exit":"base-modal__exit_6hw5o","exitActive":"base-modal__exitActive_6hw5o","exitDone":"base-modal__exitDone_6hw5o"};
24
+ var styles = {"component":"base-modal__component_11i04","wrapper":"base-modal__wrapper_11i04","content":"base-modal__content_11i04","hidden":"base-modal__hidden_11i04","backdrop":"base-modal__backdrop_11i04","appear":"base-modal__appear_11i04","enter":"base-modal__enter_11i04","appearActive":"base-modal__appearActive_11i04","enterActive":"base-modal__enterActive_11i04","exit":"base-modal__exit_11i04","exitActive":"base-modal__exitActive_11i04","exitDone":"base-modal__exitDone_11i04"};
51
25
  require('./index.css')
52
26
 
53
27
  // eslint-disable-next-line @typescript-eslint/no-redeclare
54
28
  var BaseModalContext = React__default.default.createContext({
29
+ parentRef: { current: null },
55
30
  hasFooter: false,
56
31
  hasHeader: false,
57
32
  hasScroll: false,
@@ -231,6 +206,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
231
206
  };
232
207
  }, []);
233
208
  var contextValue = React.useMemo(function () { return ({
209
+ parentRef: wrapperRef,
234
210
  hasHeader: hasHeader,
235
211
  hasFooter: hasFooter,
236
212
  hasScroll: hasScroll,
@@ -260,7 +236,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
260
236
  return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container, immediateMount: true },
261
237
  React__default.default.createElement(BaseModalContext.Provider, { value: contextValue },
262
238
  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: {
239
+ Backdrop && (React__default.default.createElement(Backdrop, tslib.__assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles.backdrop), open: open, style: {
264
240
  zIndex: computedZIndex,
265
241
  } }))),
266
242
  React__default.default.createElement("div", { role: 'dialog', className: cn__default.default(styles.wrapper, wrapperClassName, (_a = {},
@@ -270,7 +246,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
270
246
  tabIndex: 0, "data-test-id": dataTestId, style: {
271
247
  zIndex: computedZIndex,
272
248
  } },
273
- React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ appear: true, timeout: 200, classNames: styles }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
249
+ React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ appear: true, timeout: 200, classNames: styles }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
274
250
  React__default.default.createElement("div", { className: cn__default.default(styles.component, className), ref: mergeRefs__default.default([componentRef, componentNodeRef]) },
275
251
  React__default.default.createElement("div", { className: cn__default.default(styles.content, contentClassName) }, children))))))));
276
252
  }));
@@ -119,6 +119,7 @@ type BaseModalProps = {
119
119
  componentRef?: MutableRefObject<HTMLDivElement | null>;
120
120
  };
121
121
  type BaseModalContext = {
122
+ parentRef: React.RefObject<HTMLDivElement>;
122
123
  hasFooter?: boolean;
123
124
  hasHeader?: boolean;
124
125
  hasScroll?: boolean;
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,35 +23,9 @@ 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({
28
+ parentRef: { current: null },
54
29
  hasFooter: false,
55
30
  hasHeader: false,
56
31
  hasScroll: false,
@@ -230,6 +205,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
230
205
  };
231
206
  }, []);
232
207
  var contextValue = React.useMemo(function () { return ({
208
+ parentRef: wrapperRef,
233
209
  hasHeader: hasHeader,
234
210
  hasFooter: hasFooter,
235
211
  hasScroll: hasScroll,
@@ -259,7 +235,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
259
235
  return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container, immediateMount: true },
260
236
  React__default.default.createElement(BaseModalContext.Provider, { value: contextValue },
261
237
  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: {
238
+ Backdrop && (React__default.default.createElement(Backdrop, tslib.__assign({}, backdropProps, { className: cn__default.default(backdropProps.className, styles__default.default.backdrop), open: open, style: {
263
239
  zIndex: computedZIndex,
264
240
  } }))),
265
241
  React__default.default.createElement("div", { role: 'dialog', className: cn__default.default(styles__default.default.wrapper, wrapperClassName, (_a = {},
@@ -269,7 +245,7 @@ var BaseModal = React.forwardRef(function (_a, ref) {
269
245
  tabIndex: 0, "data-test-id": dataTestId, style: {
270
246
  zIndex: computedZIndex,
271
247
  } },
272
- React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ appear: true, timeout: 200, classNames: styles__default.default }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
248
+ React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ appear: true, timeout: 200, classNames: styles__default.default }, transitionProps, { in: open, onEntered: handleEntered, onExited: handleExited }),
273
249
  React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className), ref: mergeRefs__default.default([componentRef, componentNodeRef]) },
274
250
  React__default.default.createElement("div", { className: cn__default.default(styles__default.default.content, contentClassName) }, children))))))));
275
251
  }));
package/cssm/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var Component = require('./Component.js');
4
4
  var utils = require('./utils.js');
5
+ require('tslib');
5
6
  require('react');
6
7
  require('react-focus-lock');
7
8
  require('react-merge-refs');
@@ -119,6 +119,7 @@ type BaseModalProps = {
119
119
  componentRef?: MutableRefObject<HTMLDivElement | null>;
120
120
  };
121
121
  type BaseModalContext = {
122
+ parentRef: React.RefObject<HTMLDivElement>;
122
123
  hasFooter?: boolean;
123
124
  hasHeader?: boolean;
124
125
  hasScroll?: boolean;
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,38 +12,12 @@ 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_6hw5o","wrapper":"base-modal__wrapper_6hw5o","content":"base-modal__content_6hw5o","hidden":"base-modal__hidden_6hw5o","backdrop":"base-modal__backdrop_6hw5o","appear":"base-modal__appear_6hw5o","enter":"base-modal__enter_6hw5o","appearActive":"base-modal__appearActive_6hw5o","enterActive":"base-modal__enterActive_6hw5o","exit":"base-modal__exit_6hw5o","exitActive":"base-modal__exitActive_6hw5o","exitDone":"base-modal__exitDone_6hw5o"};
15
+ var styles = {"component":"base-modal__component_11i04","wrapper":"base-modal__wrapper_11i04","content":"base-modal__content_11i04","hidden":"base-modal__hidden_11i04","backdrop":"base-modal__backdrop_11i04","appear":"base-modal__appear_11i04","enter":"base-modal__enter_11i04","appearActive":"base-modal__appearActive_11i04","enterActive":"base-modal__enterActive_11i04","exit":"base-modal__exit_11i04","exitActive":"base-modal__exitActive_11i04","exitDone":"base-modal__exitDone_11i04"};
42
16
  require('./index.css')
43
17
 
44
18
  // eslint-disable-next-line @typescript-eslint/no-redeclare
45
19
  var BaseModalContext = React.createContext({
20
+ parentRef: { current: null },
46
21
  hasFooter: false,
47
22
  hasHeader: false,
48
23
  hasScroll: false,
@@ -222,6 +197,7 @@ var BaseModal = forwardRef(function (_a, ref) {
222
197
  };
223
198
  }, []);
224
199
  var contextValue = useMemo(function () { return ({
200
+ parentRef: wrapperRef,
225
201
  hasHeader: hasHeader,
226
202
  hasFooter: hasFooter,
227
203
  hasScroll: hasScroll,
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gcy7v */
1
+ /* hash: n3prj */
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-modal__component_6hw5o {
18
+ } .base-modal__component_11i04 {
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-modal__wrapper_6hw5o {
24
+ } .base-modal__wrapper_11i04 {
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-modal__content_6hw5o {
36
+ } .base-modal__content_11i04 {
37
37
  width: 100%;
38
38
  height: 100%;
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  flex: 1;
42
- } .base-modal__hidden_6hw5o {
42
+ } .base-modal__hidden_11i04 {
43
43
  display: none;
44
- } .base-modal__backdrop_6hw5o {
44
+ } .base-modal__backdrop_11i04 {
45
45
  z-index: 0;
46
- } .base-modal__appear_6hw5o,
47
- .base-modal__enter_6hw5o {
46
+ } .base-modal__appear_11i04,
47
+ .base-modal__enter_11i04 {
48
48
  opacity: 0;
49
- } .base-modal__appearActive_6hw5o,
50
- .base-modal__enterActive_6hw5o {
49
+ } .base-modal__appearActive_11i04,
50
+ .base-modal__enterActive_11i04 {
51
51
  opacity: 1;
52
52
  transition: opacity 200ms ease-in;
53
- } .base-modal__exit_6hw5o {
53
+ } .base-modal__exit_11i04 {
54
54
  opacity: 1;
55
- } .base-modal__exitActive_6hw5o,
56
- .base-modal__exitDone_6hw5o {
55
+ } .base-modal__exitActive_11i04,
56
+ .base-modal__exitDone_11i04 {
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: gcy7v */
1
+ /* hash: n3prj */
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-modal__component_6hw5o {
18
+ } .base-modal__component_11i04 {
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-modal__wrapper_6hw5o {
24
+ } .base-modal__wrapper_11i04 {
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-modal__content_6hw5o {
36
+ } .base-modal__content_11i04 {
37
37
  width: 100%;
38
38
  height: 100%;
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  flex: 1;
42
- } .base-modal__hidden_6hw5o {
42
+ } .base-modal__hidden_11i04 {
43
43
  display: none;
44
- } .base-modal__backdrop_6hw5o {
44
+ } .base-modal__backdrop_11i04 {
45
45
  z-index: 0;
46
- } .base-modal__appear_6hw5o,
47
- .base-modal__enter_6hw5o {
46
+ } .base-modal__appear_11i04,
47
+ .base-modal__enter_11i04 {
48
48
  opacity: 0;
49
- } .base-modal__appearActive_6hw5o,
50
- .base-modal__enterActive_6hw5o {
49
+ } .base-modal__appearActive_11i04,
50
+ .base-modal__enterActive_11i04 {
51
51
  opacity: 1;
52
52
  transition: opacity 200ms ease-in;
53
- } .base-modal__exit_6hw5o {
53
+ } .base-modal__exit_11i04 {
54
54
  opacity: 1;
55
- } .base-modal__exitActive_6hw5o,
56
- .base-modal__exitDone_6hw5o {
55
+ } .base-modal__exitActive_11i04,
56
+ .base-modal__exitDone_11i04 {
57
57
  opacity: 0;
58
58
  transition: opacity 200ms ease-out;
59
59
  }
package/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var Component = require('./Component.js');
4
4
  var utils = require('./utils.js');
5
+ require('tslib');
5
6
  require('react');
6
7
  require('react-focus-lock');
7
8
  require('react-merge-refs');
@@ -119,6 +119,7 @@ type BaseModalProps = {
119
119
  componentRef?: MutableRefObject<HTMLDivElement | null>;
120
120
  };
121
121
  type BaseModalContext = {
122
+ parentRef: React.RefObject<HTMLDivElement>;
122
123
  hasFooter?: boolean;
123
124
  hasHeader?: boolean;
124
125
  hasScroll?: boolean;
@@ -11,12 +11,13 @@ 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-modal__component_6hw5o","wrapper":"base-modal__wrapper_6hw5o","content":"base-modal__content_6hw5o","hidden":"base-modal__hidden_6hw5o","backdrop":"base-modal__backdrop_6hw5o","appear":"base-modal__appear_6hw5o","enter":"base-modal__enter_6hw5o","appearActive":"base-modal__appearActive_6hw5o","enterActive":"base-modal__enterActive_6hw5o","exit":"base-modal__exit_6hw5o","exitActive":"base-modal__exitActive_6hw5o","exitDone":"base-modal__exitDone_6hw5o"};
14
+ const styles = {"component":"base-modal__component_11i04","wrapper":"base-modal__wrapper_11i04","content":"base-modal__content_11i04","hidden":"base-modal__hidden_11i04","backdrop":"base-modal__backdrop_11i04","appear":"base-modal__appear_11i04","enter":"base-modal__enter_11i04","appearActive":"base-modal__appearActive_11i04","enterActive":"base-modal__enterActive_11i04","exit":"base-modal__exit_11i04","exitActive":"base-modal__exitActive_11i04","exitDone":"base-modal__exitDone_11i04"};
15
15
  require('./index.css')
16
16
 
17
17
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
18
18
  // eslint-disable-next-line @typescript-eslint/no-redeclare
19
19
  const BaseModalContext = React.createContext({
20
+ parentRef: { current: null },
20
21
  hasFooter: false,
21
22
  hasHeader: false,
22
23
  hasScroll: false,
@@ -194,6 +195,7 @@ const BaseModal = forwardRef(({ open, container, children, scrollHandler = 'wrap
194
195
  };
195
196
  }, []);
196
197
  const contextValue = useMemo(() => ({
198
+ parentRef: wrapperRef,
197
199
  hasHeader,
198
200
  hasFooter,
199
201
  hasScroll,
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gcy7v */
1
+ /* hash: n3prj */
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-modal__component_6hw5o {
18
+ } .base-modal__component_11i04 {
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-modal__wrapper_6hw5o {
24
+ } .base-modal__wrapper_11i04 {
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-modal__content_6hw5o {
36
+ } .base-modal__content_11i04 {
37
37
  width: 100%;
38
38
  height: 100%;
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  flex: 1;
42
- } .base-modal__hidden_6hw5o {
42
+ } .base-modal__hidden_11i04 {
43
43
  display: none;
44
- } .base-modal__backdrop_6hw5o {
44
+ } .base-modal__backdrop_11i04 {
45
45
  z-index: 0;
46
- } .base-modal__appear_6hw5o,
47
- .base-modal__enter_6hw5o {
46
+ } .base-modal__appear_11i04,
47
+ .base-modal__enter_11i04 {
48
48
  opacity: 0;
49
- } .base-modal__appearActive_6hw5o,
50
- .base-modal__enterActive_6hw5o {
49
+ } .base-modal__appearActive_11i04,
50
+ .base-modal__enterActive_11i04 {
51
51
  opacity: 1;
52
52
  transition: opacity 200ms ease-in;
53
- } .base-modal__exit_6hw5o {
53
+ } .base-modal__exit_11i04 {
54
54
  opacity: 1;
55
- } .base-modal__exitActive_6hw5o,
56
- .base-modal__exitDone_6hw5o {
55
+ } .base-modal__exitActive_11i04,
56
+ .base-modal__exitDone_11i04 {
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.9",
3
+ "version": "5.1.0",
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.3",
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.2",
19
- "@alfalab/core-components-stack": "^4.0.2",
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
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"