@alfalab/core-components-base-modal 5.0.0 → 5.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/Component.js CHANGED
@@ -48,7 +48,7 @@ var __assign = function () {
48
48
  return __assign.apply(this, arguments);
49
49
  };
50
50
 
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"};
51
+ var styles = {"component":"base-modal__component_bbdns","wrapper":"base-modal__wrapper_bbdns","content":"base-modal__content_bbdns","hidden":"base-modal__hidden_bbdns","backdrop":"base-modal__backdrop_bbdns","appear":"base-modal__appear_bbdns","enter":"base-modal__enter_bbdns","appearActive":"base-modal__appearActive_bbdns","enterActive":"base-modal__enterActive_bbdns","exit":"base-modal__exit_bbdns","exitActive":"base-modal__exitActive_bbdns","exitDone":"base-modal__exitDone_bbdns"};
52
52
  require('./index.css')
53
53
 
54
54
  var BaseModalContext = React__default['default'].createContext({
package/esm/Component.js CHANGED
@@ -37,7 +37,7 @@ var __assign = function () {
37
37
  return __assign.apply(this, arguments);
38
38
  };
39
39
 
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"};
40
+ var styles = {"component":"base-modal__component_bbdns","wrapper":"base-modal__wrapper_bbdns","content":"base-modal__content_bbdns","hidden":"base-modal__hidden_bbdns","backdrop":"base-modal__backdrop_bbdns","appear":"base-modal__appear_bbdns","enter":"base-modal__enter_bbdns","appearActive":"base-modal__appearActive_bbdns","enterActive":"base-modal__enterActive_bbdns","exit":"base-modal__exit_bbdns","exitActive":"base-modal__exitActive_bbdns","exitDone":"base-modal__exitDone_bbdns"};
41
41
  require('./index.css')
42
42
 
43
43
  var BaseModalContext = React.createContext({
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iqz52 */
1
+ /* hash: 1rjew */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -10,14 +10,14 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .base-modal__component_1v9uq {
13
+ .base-modal__component_bbdns {
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-modal__wrapper_1v9uq {
20
+ .base-modal__wrapper_bbdns {
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-modal__content_1v9uq {
33
+ .base-modal__content_bbdns {
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-modal__hidden_1v9uq {
40
+ .base-modal__hidden_bbdns {
41
41
  display: none;
42
42
  }
43
- .base-modal__backdrop_1v9uq {
43
+ .base-modal__backdrop_bbdns {
44
44
  z-index: 0;
45
45
  }
46
- .base-modal__appear_1v9uq,
47
- .base-modal__enter_1v9uq {
46
+ .base-modal__appear_bbdns,
47
+ .base-modal__enter_bbdns {
48
48
  opacity: 0;
49
49
  }
50
- .base-modal__appearActive_1v9uq,
51
- .base-modal__enterActive_1v9uq {
50
+ .base-modal__appearActive_bbdns,
51
+ .base-modal__enterActive_bbdns {
52
52
  opacity: 1;
53
53
  transition: opacity 200ms ease-in;
54
54
  }
55
- .base-modal__exit_1v9uq {
55
+ .base-modal__exit_bbdns {
56
56
  opacity: 1;
57
57
  }
58
- .base-modal__exitActive_1v9uq,
59
- .base-modal__exitDone_1v9uq {
58
+ .base-modal__exitActive_bbdns,
59
+ .base-modal__exitDone_bbdns {
60
60
  opacity: 0;
61
61
  transition: opacity 200ms ease-out;
62
62
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iqz52 */
1
+ /* hash: 1rjew */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -10,14 +10,14 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .base-modal__component_1v9uq {
13
+ .base-modal__component_bbdns {
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-modal__wrapper_1v9uq {
20
+ .base-modal__wrapper_bbdns {
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-modal__content_1v9uq {
33
+ .base-modal__content_bbdns {
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-modal__hidden_1v9uq {
40
+ .base-modal__hidden_bbdns {
41
41
  display: none;
42
42
  }
43
- .base-modal__backdrop_1v9uq {
43
+ .base-modal__backdrop_bbdns {
44
44
  z-index: 0;
45
45
  }
46
- .base-modal__appear_1v9uq,
47
- .base-modal__enter_1v9uq {
46
+ .base-modal__appear_bbdns,
47
+ .base-modal__enter_bbdns {
48
48
  opacity: 0;
49
49
  }
50
- .base-modal__appearActive_1v9uq,
51
- .base-modal__enterActive_1v9uq {
50
+ .base-modal__appearActive_bbdns,
51
+ .base-modal__enterActive_bbdns {
52
52
  opacity: 1;
53
53
  transition: opacity 200ms ease-in;
54
54
  }
55
- .base-modal__exit_1v9uq {
55
+ .base-modal__exit_bbdns {
56
56
  opacity: 1;
57
57
  }
58
- .base-modal__exitActive_1v9uq,
59
- .base-modal__exitDone_1v9uq {
58
+ .base-modal__exitActive_bbdns,
59
+ .base-modal__exitDone_bbdns {
60
60
  opacity: 0;
61
61
  transition: opacity 200ms ease-out;
62
62
  }
@@ -10,7 +10,7 @@ import { stackingOrder, Stack } from '@alfalab/core-components-stack/modern';
10
10
  import '@alfalab/core-components-global-store/modern';
11
11
  import { isScrolledToTop, isScrolledToBottom, handleContainer, restoreContainerStyles, hasScrollbar, getScrollbarSize } from './utils.js';
12
12
 
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"};
13
+ var styles = {"component":"base-modal__component_bbdns","wrapper":"base-modal__wrapper_bbdns","content":"base-modal__content_bbdns","hidden":"base-modal__hidden_bbdns","backdrop":"base-modal__backdrop_bbdns","appear":"base-modal__appear_bbdns","enter":"base-modal__enter_bbdns","appearActive":"base-modal__appearActive_bbdns","enterActive":"base-modal__enterActive_bbdns","exit":"base-modal__exit_bbdns","exitActive":"base-modal__exitActive_bbdns","exitDone":"base-modal__exitDone_bbdns"};
14
14
  require('./index.css')
15
15
 
16
16
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iqz52 */
1
+ /* hash: 1rjew */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -10,14 +10,14 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .base-modal__component_1v9uq {
13
+ .base-modal__component_bbdns {
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-modal__wrapper_1v9uq {
20
+ .base-modal__wrapper_bbdns {
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-modal__content_1v9uq {
33
+ .base-modal__content_bbdns {
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-modal__hidden_1v9uq {
40
+ .base-modal__hidden_bbdns {
41
41
  display: none;
42
42
  }
43
- .base-modal__backdrop_1v9uq {
43
+ .base-modal__backdrop_bbdns {
44
44
  z-index: 0;
45
45
  }
46
- .base-modal__appear_1v9uq,
47
- .base-modal__enter_1v9uq {
46
+ .base-modal__appear_bbdns,
47
+ .base-modal__enter_bbdns {
48
48
  opacity: 0;
49
49
  }
50
- .base-modal__appearActive_1v9uq,
51
- .base-modal__enterActive_1v9uq {
50
+ .base-modal__appearActive_bbdns,
51
+ .base-modal__enterActive_bbdns {
52
52
  opacity: 1;
53
53
  transition: opacity 200ms ease-in;
54
54
  }
55
- .base-modal__exit_1v9uq {
55
+ .base-modal__exit_bbdns {
56
56
  opacity: 1;
57
57
  }
58
- .base-modal__exitActive_1v9uq,
59
- .base-modal__exitDone_1v9uq {
58
+ .base-modal__exitActive_bbdns,
59
+ .base-modal__exitDone_bbdns {
60
60
  opacity: 0;
61
61
  transition: opacity 200ms ease-out;
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-base-modal",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "BaseModal component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "directory": "dist"
14
14
  },
15
15
  "dependencies": {
16
- "@alfalab/core-components-backdrop": "^3.0.0",
17
- "@alfalab/core-components-global-store": "^2.0.0",
18
- "@alfalab/core-components-portal": "^3.0.0",
19
- "@alfalab/core-components-stack": "^4.0.0",
16
+ "@alfalab/core-components-backdrop": "^3.0.1",
17
+ "@alfalab/core-components-global-store": "^2.0.1",
18
+ "@alfalab/core-components-portal": "^3.0.1",
19
+ "@alfalab/core-components-stack": "^4.0.1",
20
20
  "@juggle/resize-observer": "^3.3.1",
21
21
  "classnames": "^2.3.1",
22
22
  "react-focus-lock": "^2.5.0",