@alfalab/core-components-base-modal 4.3.0 → 4.3.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 +11 -0
- package/{Component.d.ts → dist/Component.d.ts} +0 -0
- package/{Component.js → dist/Component.js} +1 -1
- package/{cssm → dist/cssm}/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.js +4 -4
- package/{cssm → dist/cssm}/index.d.ts +0 -0
- package/{cssm → dist/cssm}/index.js +4 -4
- package/{cssm → dist/cssm}/index.module.css +0 -0
- package/{cssm → dist/cssm}/utils.d.ts +0 -0
- package/{cssm → dist/cssm}/utils.js +1 -1
- package/{esm → dist/esm}/Component.d.ts +0 -0
- package/{esm → dist/esm}/Component.js +5 -5
- package/{modern → dist/esm}/index.css +12 -12
- package/{esm → dist/esm}/index.d.ts +0 -0
- package/{esm → dist/esm}/index.js +4 -4
- package/{esm → dist/esm}/utils.d.ts +0 -0
- package/{esm → dist/esm}/utils.js +1 -1
- package/{esm → dist}/index.css +12 -12
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{modern → dist/modern}/Component.d.ts +0 -0
- package/{modern → dist/modern}/Component.js +5 -5
- package/{index.css → dist/modern/index.css} +12 -12
- package/{modern → dist/modern}/index.d.ts +0 -0
- package/{modern → dist/modern}/index.js +4 -4
- package/{modern → dist/modern}/utils.d.ts +0 -0
- package/{modern → dist/modern}/utils.js +1 -1
- package/{send-stats.js → dist/send-stats.js} +0 -0
- package/{utils.d.ts → dist/utils.d.ts} +0 -0
- package/{utils.js → dist/utils.js} +0 -0
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.3.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-base-modal@4.3.0...@alfalab/core-components-base-modal@4.3.1) (2022-08-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* returned dist directory ([#199](https://github.com/core-ds/core-components/issues/199)) ([fabc15e](https://github.com/core-ds/core-components/commit/fabc15effa1457ca65ec7238206f1b1fc2a2a613))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [4.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-base-modal@4.2.2...@alfalab/core-components-base-modal@4.3.0) (2022-08-04)
|
|
7
18
|
|
|
8
19
|
|
|
File without changes
|
|
@@ -48,7 +48,7 @@ var __assign = function () {
|
|
|
48
48
|
return __assign.apply(this, arguments);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
var styles = {"component":"base-
|
|
51
|
+
var styles = {"component":"base-modal__component_1v9uq","wrapper":"base-modal__wrapper_1v9uq","content":"base-modal__content_1v9uq","hidden":"base-modal__hidden_1v9uq","backdrop":"base-modal__backdrop_1v9uq","appear":"base-modal__appear_1v9uq","enter":"base-modal__enter_1v9uq","appearActive":"base-modal__appearActive_1v9uq","enterActive":"base-modal__enterActive_1v9uq","exit":"base-modal__exit_1v9uq","exitActive":"base-modal__exitActive_1v9uq","exitDone":"base-modal__exitDone_1v9uq"};
|
|
52
52
|
require('./index.css')
|
|
53
53
|
|
|
54
54
|
var BaseModalContext = React__default['default'].createContext({
|
|
File without changes
|
|
@@ -8,10 +8,10 @@ var mergeRefs = require('react-merge-refs');
|
|
|
8
8
|
var resizeObserver = require('@juggle/resize-observer');
|
|
9
9
|
var reactTransitionGroup = require('react-transition-group');
|
|
10
10
|
var FocusLock = require('react-focus-lock');
|
|
11
|
-
var coreComponentsPortal = require('@alfalab/core-components-portal/cssm');
|
|
12
|
-
var coreComponentsBackdrop = require('@alfalab/core-components-backdrop/cssm');
|
|
13
|
-
var coreComponentsStack = require('@alfalab/core-components-stack/cssm');
|
|
14
|
-
require('@alfalab/core-components-global-store/cssm');
|
|
11
|
+
var coreComponentsPortal = require('@alfalab/core-components-portal/dist/cssm');
|
|
12
|
+
var coreComponentsBackdrop = require('@alfalab/core-components-backdrop/dist/cssm');
|
|
13
|
+
var coreComponentsStack = require('@alfalab/core-components-stack/dist/cssm');
|
|
14
|
+
require('@alfalab/core-components-global-store/dist/cssm');
|
|
15
15
|
var utils = require('./utils.js');
|
|
16
16
|
var styles = require('./index.module.css');
|
|
17
17
|
|
|
File without changes
|
|
@@ -9,10 +9,10 @@ require('react-merge-refs');
|
|
|
9
9
|
require('@juggle/resize-observer');
|
|
10
10
|
require('react-transition-group');
|
|
11
11
|
require('react-focus-lock');
|
|
12
|
-
require('@alfalab/core-components-portal/cssm');
|
|
13
|
-
require('@alfalab/core-components-backdrop/cssm');
|
|
14
|
-
require('@alfalab/core-components-stack/cssm');
|
|
15
|
-
require('@alfalab/core-components-global-store/cssm');
|
|
12
|
+
require('@alfalab/core-components-portal/dist/cssm');
|
|
13
|
+
require('@alfalab/core-components-backdrop/dist/cssm');
|
|
14
|
+
require('@alfalab/core-components-stack/dist/cssm');
|
|
15
|
+
require('@alfalab/core-components-global-store/dist/cssm');
|
|
16
16
|
var utils = require('./utils.js');
|
|
17
17
|
require('./index.module.css');
|
|
18
18
|
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var coreComponentsGlobalStore = require('@alfalab/core-components-global-store/cssm');
|
|
5
|
+
var coreComponentsGlobalStore = require('@alfalab/core-components-global-store/dist/cssm');
|
|
6
6
|
|
|
7
7
|
function isScrolledToTop(target) {
|
|
8
8
|
return target.scrollTop <= 0;
|
|
File without changes
|
|
@@ -4,10 +4,10 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
5
5
|
import { CSSTransition } from 'react-transition-group';
|
|
6
6
|
import FocusLock from 'react-focus-lock';
|
|
7
|
-
import { Portal } from '@alfalab/core-components-portal/esm';
|
|
8
|
-
import { Backdrop } from '@alfalab/core-components-backdrop/esm';
|
|
9
|
-
import { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';
|
|
10
|
-
import '@alfalab/core-components-global-store/esm';
|
|
7
|
+
import { Portal } from '@alfalab/core-components-portal/dist/esm';
|
|
8
|
+
import { Backdrop } from '@alfalab/core-components-backdrop/dist/esm';
|
|
9
|
+
import { stackingOrder, Stack } from '@alfalab/core-components-stack/dist/esm';
|
|
10
|
+
import '@alfalab/core-components-global-store/dist/esm';
|
|
11
11
|
import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar, getScrollbarSize } from './utils.js';
|
|
12
12
|
|
|
13
13
|
/*! *****************************************************************************
|
|
@@ -37,7 +37,7 @@ var __assign = function () {
|
|
|
37
37
|
return __assign.apply(this, arguments);
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
var styles = {"component":"base-
|
|
40
|
+
var styles = {"component":"base-modal__component_1v9uq","wrapper":"base-modal__wrapper_1v9uq","content":"base-modal__content_1v9uq","hidden":"base-modal__hidden_1v9uq","backdrop":"base-modal__backdrop_1v9uq","appear":"base-modal__appear_1v9uq","enter":"base-modal__enter_1v9uq","appearActive":"base-modal__appearActive_1v9uq","enterActive":"base-modal__enterActive_1v9uq","exit":"base-modal__exit_1v9uq","exitActive":"base-modal__exitActive_1v9uq","exitDone":"base-modal__exitDone_1v9uq"};
|
|
41
41
|
require('./index.css')
|
|
42
42
|
|
|
43
43
|
var BaseModalContext = React.createContext({
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.base-
|
|
13
|
+
.base-modal__component_1v9uq {
|
|
14
14
|
position: relative;
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
background: var(--color-light-bg-primary);
|
|
17
17
|
margin: auto;
|
|
18
18
|
flex-shrink: 0;
|
|
19
19
|
}
|
|
20
|
-
.base-
|
|
20
|
+
.base-modal__wrapper_1v9uq {
|
|
21
21
|
position: fixed;
|
|
22
22
|
top: 0;
|
|
23
23
|
left: 0;
|
|
@@ -30,33 +30,33 @@
|
|
|
30
30
|
align-items: center;
|
|
31
31
|
outline: 0;
|
|
32
32
|
}
|
|
33
|
-
.base-
|
|
33
|
+
.base-modal__content_1v9uq {
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
flex: 1;
|
|
39
39
|
}
|
|
40
|
-
.base-
|
|
40
|
+
.base-modal__hidden_1v9uq {
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
|
-
.base-
|
|
43
|
+
.base-modal__backdrop_1v9uq {
|
|
44
44
|
z-index: 0;
|
|
45
45
|
}
|
|
46
|
-
.base-
|
|
47
|
-
.base-
|
|
46
|
+
.base-modal__appear_1v9uq,
|
|
47
|
+
.base-modal__enter_1v9uq {
|
|
48
48
|
opacity: 0;
|
|
49
49
|
}
|
|
50
|
-
.base-
|
|
51
|
-
.base-
|
|
50
|
+
.base-modal__appearActive_1v9uq,
|
|
51
|
+
.base-modal__enterActive_1v9uq {
|
|
52
52
|
opacity: 1;
|
|
53
53
|
transition: opacity 200ms ease-in;
|
|
54
54
|
}
|
|
55
|
-
.base-
|
|
55
|
+
.base-modal__exit_1v9uq {
|
|
56
56
|
opacity: 1;
|
|
57
57
|
}
|
|
58
|
-
.base-
|
|
59
|
-
.base-
|
|
58
|
+
.base-modal__exitActive_1v9uq,
|
|
59
|
+
.base-modal__exitDone_1v9uq {
|
|
60
60
|
opacity: 0;
|
|
61
61
|
transition: opacity 200ms ease-out;
|
|
62
62
|
}
|
|
File without changes
|
|
@@ -5,8 +5,8 @@ import 'react-merge-refs';
|
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
import 'react-transition-group';
|
|
7
7
|
import 'react-focus-lock';
|
|
8
|
-
import '@alfalab/core-components-portal/esm';
|
|
9
|
-
import '@alfalab/core-components-backdrop/esm';
|
|
10
|
-
import '@alfalab/core-components-stack/esm';
|
|
11
|
-
import '@alfalab/core-components-global-store/esm';
|
|
8
|
+
import '@alfalab/core-components-portal/dist/esm';
|
|
9
|
+
import '@alfalab/core-components-backdrop/dist/esm';
|
|
10
|
+
import '@alfalab/core-components-stack/dist/esm';
|
|
11
|
+
import '@alfalab/core-components-global-store/dist/esm';
|
|
12
12
|
export { getScrollbarSize, handleContainer, hasScrollbar, isScrolledToBottom, isScrolledToTop, restoreContainerStyles } from './utils.js';
|
|
File without changes
|
package/{esm → dist}/index.css
RENAMED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.base-
|
|
13
|
+
.base-modal__component_1v9uq {
|
|
14
14
|
position: relative;
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
background: var(--color-light-bg-primary);
|
|
17
17
|
margin: auto;
|
|
18
18
|
flex-shrink: 0;
|
|
19
19
|
}
|
|
20
|
-
.base-
|
|
20
|
+
.base-modal__wrapper_1v9uq {
|
|
21
21
|
position: fixed;
|
|
22
22
|
top: 0;
|
|
23
23
|
left: 0;
|
|
@@ -30,33 +30,33 @@
|
|
|
30
30
|
align-items: center;
|
|
31
31
|
outline: 0;
|
|
32
32
|
}
|
|
33
|
-
.base-
|
|
33
|
+
.base-modal__content_1v9uq {
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
flex: 1;
|
|
39
39
|
}
|
|
40
|
-
.base-
|
|
40
|
+
.base-modal__hidden_1v9uq {
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
|
-
.base-
|
|
43
|
+
.base-modal__backdrop_1v9uq {
|
|
44
44
|
z-index: 0;
|
|
45
45
|
}
|
|
46
|
-
.base-
|
|
47
|
-
.base-
|
|
46
|
+
.base-modal__appear_1v9uq,
|
|
47
|
+
.base-modal__enter_1v9uq {
|
|
48
48
|
opacity: 0;
|
|
49
49
|
}
|
|
50
|
-
.base-
|
|
51
|
-
.base-
|
|
50
|
+
.base-modal__appearActive_1v9uq,
|
|
51
|
+
.base-modal__enterActive_1v9uq {
|
|
52
52
|
opacity: 1;
|
|
53
53
|
transition: opacity 200ms ease-in;
|
|
54
54
|
}
|
|
55
|
-
.base-
|
|
55
|
+
.base-modal__exit_1v9uq {
|
|
56
56
|
opacity: 1;
|
|
57
57
|
}
|
|
58
|
-
.base-
|
|
59
|
-
.base-
|
|
58
|
+
.base-modal__exitActive_1v9uq,
|
|
59
|
+
.base-modal__exitDone_1v9uq {
|
|
60
60
|
opacity: 0;
|
|
61
61
|
transition: opacity 200ms ease-out;
|
|
62
62
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,13 +4,13 @@ import mergeRefs from 'react-merge-refs';
|
|
|
4
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
5
5
|
import { CSSTransition } from 'react-transition-group';
|
|
6
6
|
import FocusLock from 'react-focus-lock';
|
|
7
|
-
import { Portal } from '@alfalab/core-components-portal/modern';
|
|
8
|
-
import { Backdrop } from '@alfalab/core-components-backdrop/modern';
|
|
9
|
-
import { stackingOrder, Stack } from '@alfalab/core-components-stack/modern';
|
|
10
|
-
import '@alfalab/core-components-global-store/modern';
|
|
7
|
+
import { Portal } from '@alfalab/core-components-portal/dist/modern';
|
|
8
|
+
import { Backdrop } from '@alfalab/core-components-backdrop/dist/modern';
|
|
9
|
+
import { stackingOrder, Stack } from '@alfalab/core-components-stack/dist/modern';
|
|
10
|
+
import '@alfalab/core-components-global-store/dist/modern';
|
|
11
11
|
import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar, getScrollbarSize } from './utils.js';
|
|
12
12
|
|
|
13
|
-
var styles = {"component":"base-
|
|
13
|
+
var styles = {"component":"base-modal__component_1v9uq","wrapper":"base-modal__wrapper_1v9uq","content":"base-modal__content_1v9uq","hidden":"base-modal__hidden_1v9uq","backdrop":"base-modal__backdrop_1v9uq","appear":"base-modal__appear_1v9uq","enter":"base-modal__enter_1v9uq","appearActive":"base-modal__appearActive_1v9uq","enterActive":"base-modal__enterActive_1v9uq","exit":"base-modal__exit_1v9uq","exitActive":"base-modal__exitActive_1v9uq","exitDone":"base-modal__exitDone_1v9uq"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.base-
|
|
13
|
+
.base-modal__component_1v9uq {
|
|
14
14
|
position: relative;
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
background: var(--color-light-bg-primary);
|
|
17
17
|
margin: auto;
|
|
18
18
|
flex-shrink: 0;
|
|
19
19
|
}
|
|
20
|
-
.base-
|
|
20
|
+
.base-modal__wrapper_1v9uq {
|
|
21
21
|
position: fixed;
|
|
22
22
|
top: 0;
|
|
23
23
|
left: 0;
|
|
@@ -30,33 +30,33 @@
|
|
|
30
30
|
align-items: center;
|
|
31
31
|
outline: 0;
|
|
32
32
|
}
|
|
33
|
-
.base-
|
|
33
|
+
.base-modal__content_1v9uq {
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
flex: 1;
|
|
39
39
|
}
|
|
40
|
-
.base-
|
|
40
|
+
.base-modal__hidden_1v9uq {
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
|
-
.base-
|
|
43
|
+
.base-modal__backdrop_1v9uq {
|
|
44
44
|
z-index: 0;
|
|
45
45
|
}
|
|
46
|
-
.base-
|
|
47
|
-
.base-
|
|
46
|
+
.base-modal__appear_1v9uq,
|
|
47
|
+
.base-modal__enter_1v9uq {
|
|
48
48
|
opacity: 0;
|
|
49
49
|
}
|
|
50
|
-
.base-
|
|
51
|
-
.base-
|
|
50
|
+
.base-modal__appearActive_1v9uq,
|
|
51
|
+
.base-modal__enterActive_1v9uq {
|
|
52
52
|
opacity: 1;
|
|
53
53
|
transition: opacity 200ms ease-in;
|
|
54
54
|
}
|
|
55
|
-
.base-
|
|
55
|
+
.base-modal__exit_1v9uq {
|
|
56
56
|
opacity: 1;
|
|
57
57
|
}
|
|
58
|
-
.base-
|
|
59
|
-
.base-
|
|
58
|
+
.base-modal__exitActive_1v9uq,
|
|
59
|
+
.base-modal__exitDone_1v9uq {
|
|
60
60
|
opacity: 0;
|
|
61
61
|
transition: opacity 200ms ease-out;
|
|
62
62
|
}
|
|
File without changes
|
|
@@ -4,9 +4,9 @@ import 'react-merge-refs';
|
|
|
4
4
|
import '@juggle/resize-observer';
|
|
5
5
|
import 'react-transition-group';
|
|
6
6
|
import 'react-focus-lock';
|
|
7
|
-
import '@alfalab/core-components-portal/modern';
|
|
8
|
-
import '@alfalab/core-components-backdrop/modern';
|
|
9
|
-
import '@alfalab/core-components-stack/modern';
|
|
10
|
-
import '@alfalab/core-components-global-store/modern';
|
|
7
|
+
import '@alfalab/core-components-portal/dist/modern';
|
|
8
|
+
import '@alfalab/core-components-backdrop/dist/modern';
|
|
9
|
+
import '@alfalab/core-components-stack/dist/modern';
|
|
10
|
+
import '@alfalab/core-components-global-store/dist/modern';
|
|
11
11
|
export { getScrollbarSize, handleContainer, hasScrollbar, isScrolledToBottom, isScrolledToTop, restoreContainerStyles } from './utils.js';
|
|
12
12
|
export { BaseModal, BaseModalContext } from './Component.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-base-modal",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "BaseModal component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "index.js",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
8
11
|
"scripts": {
|
|
9
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
12
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./dist/send-stats.js')){require('./dist/send-stats.js')} \""
|
|
10
13
|
},
|
|
11
14
|
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
"directory": "dist"
|
|
15
|
+
"access": "public"
|
|
14
16
|
},
|
|
15
17
|
"dependencies": {
|
|
16
|
-
"@alfalab/core-components-backdrop": "^2.2.
|
|
17
|
-
"@alfalab/core-components-global-store": "^1.1.
|
|
18
|
-
"@alfalab/core-components-portal": "^2.1.
|
|
19
|
-
"@alfalab/core-components-stack": "^3.1.
|
|
18
|
+
"@alfalab/core-components-backdrop": "^2.2.1",
|
|
19
|
+
"@alfalab/core-components-global-store": "^1.1.3",
|
|
20
|
+
"@alfalab/core-components-portal": "^2.1.1",
|
|
21
|
+
"@alfalab/core-components-stack": "^3.1.1",
|
|
20
22
|
"@juggle/resize-observer": "^3.3.1",
|
|
21
23
|
"classnames": "^2.3.1",
|
|
22
24
|
"react-focus-lock": "^2.5.0",
|
|
@@ -28,5 +30,6 @@
|
|
|
28
30
|
},
|
|
29
31
|
"peerDependencies": {
|
|
30
32
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
31
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
|
|
32
35
|
}
|