@alfalab/core-components-drawer 3.2.8 → 3.3.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/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
+ # [3.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-drawer@3.2.8...@alfalab/core-components-drawer@3.3.0) (2022-08-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * react 18 support ([#159](https://github.com/core-ds/core-components/issues/159)) ([2e6693c](https://github.com/core-ds/core-components/commit/2e6693c62f534e333aadb7d3fff4ffd78ac84c63))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.2.8](https://github.com/core-ds/core-components/compare/@alfalab/core-components-drawer@3.2.7...@alfalab/core-components-drawer@3.2.8) (2022-07-25)
7
18
 
8
19
  **Note:** Version bump only for package @alfalab/core-components-drawer
package/Component.js CHANGED
@@ -51,7 +51,7 @@ function __rest(s, e) {
51
51
  return t;
52
52
  }
53
53
 
54
- var styles = {"component":"drawer__component_162fh","content":"drawer__content_162fh","enter":"drawer__enter_162fh","contentEnter":"drawer__contentEnter_162fh","backdropEnter":"drawer__backdropEnter_162fh","enterActive":"drawer__enterActive_162fh","backdropEnterActive":"drawer__backdropEnterActive_162fh","backdropEnterDone":"drawer__backdropEnterDone_162fh","contentEnterActive":"drawer__contentEnterActive_162fh","exit":"drawer__exit_162fh","backdropExit":"drawer__backdropExit_162fh","contentExit":"drawer__contentExit_162fh","exitActive":"drawer__exitActive_162fh","backdropExitActive":"drawer__backdropExitActive_162fh","backdropExitDone":"drawer__backdropExitDone_162fh","contentExitActive":"drawer__contentExitActive_162fh"};
54
+ var styles = {"component":"drawer__component_icr5m","content":"drawer__content_icr5m","enter":"drawer__enter_icr5m","contentEnter":"drawer__contentEnter_icr5m","backdropEnter":"drawer__backdropEnter_icr5m","enterActive":"drawer__enterActive_icr5m","backdropEnterActive":"drawer__backdropEnterActive_icr5m","backdropEnterDone":"drawer__backdropEnterDone_icr5m","contentEnterActive":"drawer__contentEnterActive_icr5m","exit":"drawer__exit_icr5m","backdropExit":"drawer__backdropExit_icr5m","contentExit":"drawer__contentExit_icr5m","exitActive":"drawer__exitActive_icr5m","backdropExitActive":"drawer__backdropExitActive_icr5m","backdropExitDone":"drawer__backdropExitDone_icr5m","contentExitActive":"drawer__contentExitActive_icr5m"};
55
55
  require('./index.css')
56
56
 
57
57
  var ANIMATION_DURATION = 600;
package/esm/Component.js CHANGED
@@ -42,7 +42,7 @@ function __rest(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var styles = {"component":"drawer__component_162fh","content":"drawer__content_162fh","enter":"drawer__enter_162fh","contentEnter":"drawer__contentEnter_162fh","backdropEnter":"drawer__backdropEnter_162fh","enterActive":"drawer__enterActive_162fh","backdropEnterActive":"drawer__backdropEnterActive_162fh","backdropEnterDone":"drawer__backdropEnterDone_162fh","contentEnterActive":"drawer__contentEnterActive_162fh","exit":"drawer__exit_162fh","backdropExit":"drawer__backdropExit_162fh","contentExit":"drawer__contentExit_162fh","exitActive":"drawer__exitActive_162fh","backdropExitActive":"drawer__backdropExitActive_162fh","backdropExitDone":"drawer__backdropExitDone_162fh","contentExitActive":"drawer__contentExitActive_162fh"};
45
+ var styles = {"component":"drawer__component_icr5m","content":"drawer__content_icr5m","enter":"drawer__enter_icr5m","contentEnter":"drawer__contentEnter_icr5m","backdropEnter":"drawer__backdropEnter_icr5m","enterActive":"drawer__enterActive_icr5m","backdropEnterActive":"drawer__backdropEnterActive_icr5m","backdropEnterDone":"drawer__backdropEnterDone_icr5m","contentEnterActive":"drawer__contentEnterActive_icr5m","exit":"drawer__exit_icr5m","backdropExit":"drawer__backdropExit_icr5m","contentExit":"drawer__contentExit_icr5m","exitActive":"drawer__exitActive_icr5m","backdropExitActive":"drawer__backdropExitActive_icr5m","backdropExitDone":"drawer__backdropExitDone_icr5m","contentExitActive":"drawer__contentExitActive_icr5m"};
46
46
  require('./index.css')
47
47
 
48
48
  var ANIMATION_DURATION = 600;
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 19ruw */
1
+ /* hash: 1ynnx */
2
2
  :root {
3
3
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6);
4
4
  }
@@ -17,7 +17,7 @@
17
17
  :root {
18
18
  --drawer-width: 500px;
19
19
  }
20
- .drawer__component_162fh {
20
+ .drawer__component_icr5m {
21
21
  position: fixed;
22
22
  top: 0;
23
23
  right: 0;
@@ -28,55 +28,55 @@
28
28
  overflow: auto;
29
29
  will-change: transform;
30
30
  }
31
- .drawer__content_162fh {
31
+ .drawer__content_icr5m {
32
32
  width: 100%;
33
33
  display: flex;
34
34
  flex-direction: column;
35
35
  flex: 1;
36
36
  }
37
37
  /* enter */
38
- .drawer__enter_162fh {
38
+ .drawer__enter_icr5m {
39
39
  transform: translateX(100%);
40
40
  }
41
- .drawer__contentEnter_162fh {
41
+ .drawer__contentEnter_icr5m {
42
42
  opacity: 0;
43
43
  }
44
- .drawer__backdropEnter_162fh {
44
+ .drawer__backdropEnter_icr5m {
45
45
  background-color: var(--backdrop-hidden-background);
46
46
  }
47
- .drawer__enterActive_162fh {
47
+ .drawer__enterActive_icr5m {
48
48
  transition: transform 0.3s ease-in-out;
49
49
  transform: translateX(0);
50
50
  }
51
- .drawer__backdropEnterActive_162fh,
52
- .drawer__backdropEnterDone_162fh {
51
+ .drawer__backdropEnterActive_icr5m,
52
+ .drawer__backdropEnterDone_icr5m {
53
53
  transition: background 0.3s ease-in-out;
54
54
  background-color: var(--backdrop-visible-background);
55
55
  }
56
- .drawer__contentEnterActive_162fh {
56
+ .drawer__contentEnterActive_icr5m {
57
57
  transition: opacity 0.2s ease-in-out 0.3s;
58
58
  opacity: 1;
59
59
  }
60
60
  /* exit */
61
- .drawer__exit_162fh {
61
+ .drawer__exit_icr5m {
62
62
  transform: translateX(0);
63
63
  }
64
- .drawer__backdropExit_162fh {
64
+ .drawer__backdropExit_icr5m {
65
65
  background-color: var(--backdrop-visible-background);
66
66
  }
67
- .drawer__contentExit_162fh {
67
+ .drawer__contentExit_icr5m {
68
68
  opacity: 1;
69
69
  }
70
- .drawer__exitActive_162fh {
70
+ .drawer__exitActive_icr5m {
71
71
  transition: transform 0.25s ease-in-out 0.1s;
72
72
  transform: translateX(100%);
73
73
  }
74
- .drawer__backdropExitActive_162fh,
75
- .drawer__backdropExitDone_162fh {
74
+ .drawer__backdropExitActive_icr5m,
75
+ .drawer__backdropExitDone_icr5m {
76
76
  transition: background 0.25s ease-in-out 0.1s;
77
77
  background-color: var(--backdrop-hidden-background);
78
78
  }
79
- .drawer__contentExitActive_162fh {
79
+ .drawer__contentExitActive_icr5m {
80
80
  opacity: 0;
81
81
  transition: opacity 0.12s ease-in-out;
82
82
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 19ruw */
1
+ /* hash: 1ynnx */
2
2
  :root {
3
3
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6);
4
4
  }
@@ -17,7 +17,7 @@
17
17
  :root {
18
18
  --drawer-width: 500px;
19
19
  }
20
- .drawer__component_162fh {
20
+ .drawer__component_icr5m {
21
21
  position: fixed;
22
22
  top: 0;
23
23
  right: 0;
@@ -28,55 +28,55 @@
28
28
  overflow: auto;
29
29
  will-change: transform;
30
30
  }
31
- .drawer__content_162fh {
31
+ .drawer__content_icr5m {
32
32
  width: 100%;
33
33
  display: flex;
34
34
  flex-direction: column;
35
35
  flex: 1;
36
36
  }
37
37
  /* enter */
38
- .drawer__enter_162fh {
38
+ .drawer__enter_icr5m {
39
39
  transform: translateX(100%);
40
40
  }
41
- .drawer__contentEnter_162fh {
41
+ .drawer__contentEnter_icr5m {
42
42
  opacity: 0;
43
43
  }
44
- .drawer__backdropEnter_162fh {
44
+ .drawer__backdropEnter_icr5m {
45
45
  background-color: var(--backdrop-hidden-background);
46
46
  }
47
- .drawer__enterActive_162fh {
47
+ .drawer__enterActive_icr5m {
48
48
  transition: transform 0.3s ease-in-out;
49
49
  transform: translateX(0);
50
50
  }
51
- .drawer__backdropEnterActive_162fh,
52
- .drawer__backdropEnterDone_162fh {
51
+ .drawer__backdropEnterActive_icr5m,
52
+ .drawer__backdropEnterDone_icr5m {
53
53
  transition: background 0.3s ease-in-out;
54
54
  background-color: var(--backdrop-visible-background);
55
55
  }
56
- .drawer__contentEnterActive_162fh {
56
+ .drawer__contentEnterActive_icr5m {
57
57
  transition: opacity 0.2s ease-in-out 0.3s;
58
58
  opacity: 1;
59
59
  }
60
60
  /* exit */
61
- .drawer__exit_162fh {
61
+ .drawer__exit_icr5m {
62
62
  transform: translateX(0);
63
63
  }
64
- .drawer__backdropExit_162fh {
64
+ .drawer__backdropExit_icr5m {
65
65
  background-color: var(--backdrop-visible-background);
66
66
  }
67
- .drawer__contentExit_162fh {
67
+ .drawer__contentExit_icr5m {
68
68
  opacity: 1;
69
69
  }
70
- .drawer__exitActive_162fh {
70
+ .drawer__exitActive_icr5m {
71
71
  transition: transform 0.25s ease-in-out 0.1s;
72
72
  transform: translateX(100%);
73
73
  }
74
- .drawer__backdropExitActive_162fh,
75
- .drawer__backdropExitDone_162fh {
74
+ .drawer__backdropExitActive_icr5m,
75
+ .drawer__backdropExitDone_icr5m {
76
76
  transition: background 0.25s ease-in-out 0.1s;
77
77
  background-color: var(--backdrop-hidden-background);
78
78
  }
79
- .drawer__contentExitActive_162fh {
79
+ .drawer__contentExitActive_icr5m {
80
80
  opacity: 0;
81
81
  transition: opacity 0.12s ease-in-out;
82
82
  }
@@ -3,7 +3,7 @@ import { CSSTransition } from 'react-transition-group';
3
3
  import cn from 'classnames';
4
4
  import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/modern';
5
5
 
6
- var styles = {"component":"drawer__component_162fh","content":"drawer__content_162fh","enter":"drawer__enter_162fh","contentEnter":"drawer__contentEnter_162fh","backdropEnter":"drawer__backdropEnter_162fh","enterActive":"drawer__enterActive_162fh","backdropEnterActive":"drawer__backdropEnterActive_162fh","backdropEnterDone":"drawer__backdropEnterDone_162fh","contentEnterActive":"drawer__contentEnterActive_162fh","exit":"drawer__exit_162fh","backdropExit":"drawer__backdropExit_162fh","contentExit":"drawer__contentExit_162fh","exitActive":"drawer__exitActive_162fh","backdropExitActive":"drawer__backdropExitActive_162fh","backdropExitDone":"drawer__backdropExitDone_162fh","contentExitActive":"drawer__contentExitActive_162fh"};
6
+ var styles = {"component":"drawer__component_icr5m","content":"drawer__content_icr5m","enter":"drawer__enter_icr5m","contentEnter":"drawer__contentEnter_icr5m","backdropEnter":"drawer__backdropEnter_icr5m","enterActive":"drawer__enterActive_icr5m","backdropEnterActive":"drawer__backdropEnterActive_icr5m","backdropEnterDone":"drawer__backdropEnterDone_icr5m","contentEnterActive":"drawer__contentEnterActive_icr5m","exit":"drawer__exit_icr5m","backdropExit":"drawer__backdropExit_icr5m","contentExit":"drawer__contentExit_icr5m","exitActive":"drawer__exitActive_icr5m","backdropExitActive":"drawer__backdropExitActive_icr5m","backdropExitDone":"drawer__backdropExitDone_icr5m","contentExitActive":"drawer__contentExitActive_icr5m"};
7
7
  require('./index.css')
8
8
 
9
9
  const ANIMATION_DURATION = 600;
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 19ruw */
1
+ /* hash: 1ynnx */
2
2
  :root {
3
3
  --color-light-bg-overlay: rgba(0, 0, 0, 0.6);
4
4
  }
@@ -17,7 +17,7 @@
17
17
  :root {
18
18
  --drawer-width: 500px;
19
19
  }
20
- .drawer__component_162fh {
20
+ .drawer__component_icr5m {
21
21
  position: fixed;
22
22
  top: 0;
23
23
  right: 0;
@@ -28,55 +28,55 @@
28
28
  overflow: auto;
29
29
  will-change: transform;
30
30
  }
31
- .drawer__content_162fh {
31
+ .drawer__content_icr5m {
32
32
  width: 100%;
33
33
  display: flex;
34
34
  flex-direction: column;
35
35
  flex: 1;
36
36
  }
37
37
  /* enter */
38
- .drawer__enter_162fh {
38
+ .drawer__enter_icr5m {
39
39
  transform: translateX(100%);
40
40
  }
41
- .drawer__contentEnter_162fh {
41
+ .drawer__contentEnter_icr5m {
42
42
  opacity: 0;
43
43
  }
44
- .drawer__backdropEnter_162fh {
44
+ .drawer__backdropEnter_icr5m {
45
45
  background-color: var(--backdrop-hidden-background);
46
46
  }
47
- .drawer__enterActive_162fh {
47
+ .drawer__enterActive_icr5m {
48
48
  transition: transform 0.3s ease-in-out;
49
49
  transform: translateX(0);
50
50
  }
51
- .drawer__backdropEnterActive_162fh,
52
- .drawer__backdropEnterDone_162fh {
51
+ .drawer__backdropEnterActive_icr5m,
52
+ .drawer__backdropEnterDone_icr5m {
53
53
  transition: background 0.3s ease-in-out;
54
54
  background-color: var(--backdrop-visible-background);
55
55
  }
56
- .drawer__contentEnterActive_162fh {
56
+ .drawer__contentEnterActive_icr5m {
57
57
  transition: opacity 0.2s ease-in-out 0.3s;
58
58
  opacity: 1;
59
59
  }
60
60
  /* exit */
61
- .drawer__exit_162fh {
61
+ .drawer__exit_icr5m {
62
62
  transform: translateX(0);
63
63
  }
64
- .drawer__backdropExit_162fh {
64
+ .drawer__backdropExit_icr5m {
65
65
  background-color: var(--backdrop-visible-background);
66
66
  }
67
- .drawer__contentExit_162fh {
67
+ .drawer__contentExit_icr5m {
68
68
  opacity: 1;
69
69
  }
70
- .drawer__exitActive_162fh {
70
+ .drawer__exitActive_icr5m {
71
71
  transition: transform 0.25s ease-in-out 0.1s;
72
72
  transform: translateX(100%);
73
73
  }
74
- .drawer__backdropExitActive_162fh,
75
- .drawer__backdropExitDone_162fh {
74
+ .drawer__backdropExitActive_icr5m,
75
+ .drawer__backdropExitDone_icr5m {
76
76
  transition: background 0.25s ease-in-out 0.1s;
77
77
  background-color: var(--backdrop-hidden-background);
78
78
  }
79
- .drawer__contentExitActive_162fh {
79
+ .drawer__contentExitActive_icr5m {
80
80
  opacity: 0;
81
81
  transition: opacity 0.12s ease-in-out;
82
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-drawer",
3
- "version": "3.2.8",
3
+ "version": "3.3.0",
4
4
  "description": "Drawer component",
5
5
  "gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
6
6
  "keywords": [],
@@ -15,11 +15,11 @@
15
15
  "directory": "dist"
16
16
  },
17
17
  "peerDependencies": {
18
- "react": "^16.9.0 || ^17.0.1",
19
- "react-dom": "^16.9.0 || ^17.0.1"
18
+ "react": "^16.9.0 || ^17.0.1 || ^18.0.0",
19
+ "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
20
20
  },
21
21
  "dependencies": {
22
- "@alfalab/core-components-base-modal": "^4.2.2",
23
- "classnames": "^2.2.6"
22
+ "@alfalab/core-components-base-modal": "^4.3.0",
23
+ "classnames": "^2.3.1"
24
24
  }
25
25
  }