@alfalab/core-components-drawer 4.2.5 → 4.2.6
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 +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +22 -22
- package/index.css +22 -22
- package/modern/Component.js +1 -1
- package/modern/index.css +22 -22
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"
|
|
15
|
+
var styles = {"component":"drawer__component_1tzhg","rightPlacement":"drawer__rightPlacement_1tzhg","leftPlacement":"drawer__leftPlacement_1tzhg","content":"drawer__content_1tzhg","simplebar":"drawer__simplebar_1tzhg","enterRight":"drawer__enterRight_1tzhg","enterLeft":"drawer__enterLeft_1tzhg","contentEnter":"drawer__contentEnter_1tzhg","backdropEnter":"drawer__backdropEnter_1tzhg","enterActive":"drawer__enterActive_1tzhg","backdropEnterActive":"drawer__backdropEnterActive_1tzhg","backdropEnterDone":"drawer__backdropEnterDone_1tzhg","contentEnterActive":"drawer__contentEnterActive_1tzhg","exit":"drawer__exit_1tzhg","backdropExit":"drawer__backdropExit_1tzhg","contentExit":"drawer__contentExit_1tzhg","exitActiveRight":"drawer__exitActiveRight_1tzhg","exitActiveLeft":"drawer__exitActiveLeft_1tzhg","backdropExitActive":"drawer__backdropExitActive_1tzhg","backdropExitDone":"drawer__backdropExitDone_1tzhg","contentExitActive":"drawer__contentExitActive_1tzhg"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var ANIMATION_DURATION = 600;
|
package/esm/Component.js
CHANGED
|
@@ -5,7 +5,7 @@ import cn from 'classnames';
|
|
|
5
5
|
import { BaseModal, BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
import { Scrollbar } from '@alfalab/core-components-scrollbar/esm';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"drawer__component_1tzhg","rightPlacement":"drawer__rightPlacement_1tzhg","leftPlacement":"drawer__leftPlacement_1tzhg","content":"drawer__content_1tzhg","simplebar":"drawer__simplebar_1tzhg","enterRight":"drawer__enterRight_1tzhg","enterLeft":"drawer__enterLeft_1tzhg","contentEnter":"drawer__contentEnter_1tzhg","backdropEnter":"drawer__backdropEnter_1tzhg","enterActive":"drawer__enterActive_1tzhg","backdropEnterActive":"drawer__backdropEnterActive_1tzhg","backdropEnterDone":"drawer__backdropEnterDone_1tzhg","contentEnterActive":"drawer__contentEnterActive_1tzhg","exit":"drawer__exit_1tzhg","backdropExit":"drawer__backdropExit_1tzhg","contentExit":"drawer__contentExit_1tzhg","exitActiveRight":"drawer__exitActiveRight_1tzhg","exitActiveLeft":"drawer__exitActiveLeft_1tzhg","backdropExitActive":"drawer__backdropExitActive_1tzhg","backdropExitDone":"drawer__backdropExitDone_1tzhg","contentExitActive":"drawer__contentExitActive_1tzhg"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var ANIMATION_DURATION = 600;
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ewymh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--backdrop-hidden-background: transparent;
|
|
21
21
|
} :root {
|
|
22
22
|
--drawer-width: 500px;
|
|
23
|
-
} .
|
|
23
|
+
} .drawer__component_1tzhg {
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
height: 100%;
|
|
@@ -28,54 +28,54 @@
|
|
|
28
28
|
flex: 1;
|
|
29
29
|
overflow: auto;
|
|
30
30
|
will-change: transform;
|
|
31
|
-
} .
|
|
31
|
+
} .drawer__rightPlacement_1tzhg {
|
|
32
32
|
right: 0;
|
|
33
33
|
align-self: flex-end;
|
|
34
|
-
} .
|
|
34
|
+
} .drawer__leftPlacement_1tzhg {
|
|
35
35
|
left: 0;
|
|
36
36
|
align-self: flex-start;
|
|
37
|
-
} .
|
|
37
|
+
} .drawer__content_1tzhg {
|
|
38
38
|
width: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .
|
|
42
|
+
} .drawer__simplebar_1tzhg {
|
|
43
43
|
height: 100vh;
|
|
44
|
-
} /* enter */ .
|
|
44
|
+
} /* enter */ .drawer__enterRight_1tzhg {
|
|
45
45
|
transform: translateX(100%);
|
|
46
|
-
} .
|
|
46
|
+
} .drawer__enterLeft_1tzhg {
|
|
47
47
|
transform: translateX(-100%);
|
|
48
|
-
} .
|
|
48
|
+
} .drawer__contentEnter_1tzhg {
|
|
49
49
|
opacity: 0;
|
|
50
|
-
} .
|
|
50
|
+
} .drawer__backdropEnter_1tzhg {
|
|
51
51
|
background-color: var(--backdrop-hidden-background);
|
|
52
|
-
} .
|
|
52
|
+
} .drawer__enterActive_1tzhg {
|
|
53
53
|
transition: transform 0.3s ease-in-out;
|
|
54
54
|
transform: translateX(0);
|
|
55
|
-
} .
|
|
56
|
-
.
|
|
55
|
+
} .drawer__backdropEnterActive_1tzhg,
|
|
56
|
+
.drawer__backdropEnterDone_1tzhg {
|
|
57
57
|
transition: background 0.3s ease-in-out;
|
|
58
58
|
background-color: var(--backdrop-visible-background);
|
|
59
|
-
} .
|
|
59
|
+
} .drawer__contentEnterActive_1tzhg {
|
|
60
60
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
61
61
|
opacity: 1;
|
|
62
|
-
} /* exit */ .
|
|
62
|
+
} /* exit */ .drawer__exit_1tzhg {
|
|
63
63
|
transform: translateX(0);
|
|
64
|
-
} .
|
|
64
|
+
} .drawer__backdropExit_1tzhg {
|
|
65
65
|
background-color: var(--backdrop-visible-background);
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__contentExit_1tzhg {
|
|
67
67
|
opacity: 1;
|
|
68
|
-
} .
|
|
68
|
+
} .drawer__exitActiveRight_1tzhg {
|
|
69
69
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
70
70
|
transform: translateX(100%);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__exitActiveLeft_1tzhg {
|
|
72
72
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
73
73
|
transform: translateX(-100%);
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__backdropExitActive_1tzhg,
|
|
75
|
+
.drawer__backdropExitDone_1tzhg {
|
|
76
76
|
transition: background 0.25s ease-in-out 0.1s;
|
|
77
77
|
background-color: var(--backdrop-hidden-background);
|
|
78
|
-
} .
|
|
78
|
+
} .drawer__contentExitActive_1tzhg {
|
|
79
79
|
opacity: 0;
|
|
80
80
|
transition: opacity 0.12s ease-in-out;
|
|
81
81
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ewymh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--backdrop-hidden-background: transparent;
|
|
21
21
|
} :root {
|
|
22
22
|
--drawer-width: 500px;
|
|
23
|
-
} .
|
|
23
|
+
} .drawer__component_1tzhg {
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
height: 100%;
|
|
@@ -28,54 +28,54 @@
|
|
|
28
28
|
flex: 1;
|
|
29
29
|
overflow: auto;
|
|
30
30
|
will-change: transform;
|
|
31
|
-
} .
|
|
31
|
+
} .drawer__rightPlacement_1tzhg {
|
|
32
32
|
right: 0;
|
|
33
33
|
align-self: flex-end;
|
|
34
|
-
} .
|
|
34
|
+
} .drawer__leftPlacement_1tzhg {
|
|
35
35
|
left: 0;
|
|
36
36
|
align-self: flex-start;
|
|
37
|
-
} .
|
|
37
|
+
} .drawer__content_1tzhg {
|
|
38
38
|
width: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .
|
|
42
|
+
} .drawer__simplebar_1tzhg {
|
|
43
43
|
height: 100vh;
|
|
44
|
-
} /* enter */ .
|
|
44
|
+
} /* enter */ .drawer__enterRight_1tzhg {
|
|
45
45
|
transform: translateX(100%);
|
|
46
|
-
} .
|
|
46
|
+
} .drawer__enterLeft_1tzhg {
|
|
47
47
|
transform: translateX(-100%);
|
|
48
|
-
} .
|
|
48
|
+
} .drawer__contentEnter_1tzhg {
|
|
49
49
|
opacity: 0;
|
|
50
|
-
} .
|
|
50
|
+
} .drawer__backdropEnter_1tzhg {
|
|
51
51
|
background-color: var(--backdrop-hidden-background);
|
|
52
|
-
} .
|
|
52
|
+
} .drawer__enterActive_1tzhg {
|
|
53
53
|
transition: transform 0.3s ease-in-out;
|
|
54
54
|
transform: translateX(0);
|
|
55
|
-
} .
|
|
56
|
-
.
|
|
55
|
+
} .drawer__backdropEnterActive_1tzhg,
|
|
56
|
+
.drawer__backdropEnterDone_1tzhg {
|
|
57
57
|
transition: background 0.3s ease-in-out;
|
|
58
58
|
background-color: var(--backdrop-visible-background);
|
|
59
|
-
} .
|
|
59
|
+
} .drawer__contentEnterActive_1tzhg {
|
|
60
60
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
61
61
|
opacity: 1;
|
|
62
|
-
} /* exit */ .
|
|
62
|
+
} /* exit */ .drawer__exit_1tzhg {
|
|
63
63
|
transform: translateX(0);
|
|
64
|
-
} .
|
|
64
|
+
} .drawer__backdropExit_1tzhg {
|
|
65
65
|
background-color: var(--backdrop-visible-background);
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__contentExit_1tzhg {
|
|
67
67
|
opacity: 1;
|
|
68
|
-
} .
|
|
68
|
+
} .drawer__exitActiveRight_1tzhg {
|
|
69
69
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
70
70
|
transform: translateX(100%);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__exitActiveLeft_1tzhg {
|
|
72
72
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
73
73
|
transform: translateX(-100%);
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__backdropExitActive_1tzhg,
|
|
75
|
+
.drawer__backdropExitDone_1tzhg {
|
|
76
76
|
transition: background 0.25s ease-in-out 0.1s;
|
|
77
77
|
background-color: var(--backdrop-hidden-background);
|
|
78
|
-
} .
|
|
78
|
+
} .drawer__contentExitActive_1tzhg {
|
|
79
79
|
opacity: 0;
|
|
80
80
|
transition: opacity 0.12s ease-in-out;
|
|
81
81
|
}
|
package/modern/Component.js
CHANGED
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { BaseModal, BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
import { Scrollbar } from '@alfalab/core-components-scrollbar/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"
|
|
7
|
+
const styles = {"component":"drawer__component_1tzhg","rightPlacement":"drawer__rightPlacement_1tzhg","leftPlacement":"drawer__leftPlacement_1tzhg","content":"drawer__content_1tzhg","simplebar":"drawer__simplebar_1tzhg","enterRight":"drawer__enterRight_1tzhg","enterLeft":"drawer__enterLeft_1tzhg","contentEnter":"drawer__contentEnter_1tzhg","backdropEnter":"drawer__backdropEnter_1tzhg","enterActive":"drawer__enterActive_1tzhg","backdropEnterActive":"drawer__backdropEnterActive_1tzhg","backdropEnterDone":"drawer__backdropEnterDone_1tzhg","contentEnterActive":"drawer__contentEnterActive_1tzhg","exit":"drawer__exit_1tzhg","backdropExit":"drawer__backdropExit_1tzhg","contentExit":"drawer__contentExit_1tzhg","exitActiveRight":"drawer__exitActiveRight_1tzhg","exitActiveLeft":"drawer__exitActiveLeft_1tzhg","backdropExitActive":"drawer__backdropExitActive_1tzhg","backdropExitDone":"drawer__backdropExitDone_1tzhg","contentExitActive":"drawer__contentExitActive_1tzhg"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const ANIMATION_DURATION = 600;
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ewymh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--backdrop-hidden-background: transparent;
|
|
21
21
|
} :root {
|
|
22
22
|
--drawer-width: 500px;
|
|
23
|
-
} .
|
|
23
|
+
} .drawer__component_1tzhg {
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
height: 100%;
|
|
@@ -28,54 +28,54 @@
|
|
|
28
28
|
flex: 1;
|
|
29
29
|
overflow: auto;
|
|
30
30
|
will-change: transform;
|
|
31
|
-
} .
|
|
31
|
+
} .drawer__rightPlacement_1tzhg {
|
|
32
32
|
right: 0;
|
|
33
33
|
align-self: flex-end;
|
|
34
|
-
} .
|
|
34
|
+
} .drawer__leftPlacement_1tzhg {
|
|
35
35
|
left: 0;
|
|
36
36
|
align-self: flex-start;
|
|
37
|
-
} .
|
|
37
|
+
} .drawer__content_1tzhg {
|
|
38
38
|
width: 100%;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
flex: 1;
|
|
42
|
-
} .
|
|
42
|
+
} .drawer__simplebar_1tzhg {
|
|
43
43
|
height: 100vh;
|
|
44
|
-
} /* enter */ .
|
|
44
|
+
} /* enter */ .drawer__enterRight_1tzhg {
|
|
45
45
|
transform: translateX(100%);
|
|
46
|
-
} .
|
|
46
|
+
} .drawer__enterLeft_1tzhg {
|
|
47
47
|
transform: translateX(-100%);
|
|
48
|
-
} .
|
|
48
|
+
} .drawer__contentEnter_1tzhg {
|
|
49
49
|
opacity: 0;
|
|
50
|
-
} .
|
|
50
|
+
} .drawer__backdropEnter_1tzhg {
|
|
51
51
|
background-color: var(--backdrop-hidden-background);
|
|
52
|
-
} .
|
|
52
|
+
} .drawer__enterActive_1tzhg {
|
|
53
53
|
transition: transform 0.3s ease-in-out;
|
|
54
54
|
transform: translateX(0);
|
|
55
|
-
} .
|
|
56
|
-
.
|
|
55
|
+
} .drawer__backdropEnterActive_1tzhg,
|
|
56
|
+
.drawer__backdropEnterDone_1tzhg {
|
|
57
57
|
transition: background 0.3s ease-in-out;
|
|
58
58
|
background-color: var(--backdrop-visible-background);
|
|
59
|
-
} .
|
|
59
|
+
} .drawer__contentEnterActive_1tzhg {
|
|
60
60
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
61
61
|
opacity: 1;
|
|
62
|
-
} /* exit */ .
|
|
62
|
+
} /* exit */ .drawer__exit_1tzhg {
|
|
63
63
|
transform: translateX(0);
|
|
64
|
-
} .
|
|
64
|
+
} .drawer__backdropExit_1tzhg {
|
|
65
65
|
background-color: var(--backdrop-visible-background);
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__contentExit_1tzhg {
|
|
67
67
|
opacity: 1;
|
|
68
|
-
} .
|
|
68
|
+
} .drawer__exitActiveRight_1tzhg {
|
|
69
69
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
70
70
|
transform: translateX(100%);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__exitActiveLeft_1tzhg {
|
|
72
72
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
73
73
|
transform: translateX(-100%);
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__backdropExitActive_1tzhg,
|
|
75
|
+
.drawer__backdropExitDone_1tzhg {
|
|
76
76
|
transition: background 0.25s ease-in-out 0.1s;
|
|
77
77
|
background-color: var(--backdrop-hidden-background);
|
|
78
|
-
} .
|
|
78
|
+
} .drawer__contentExitActive_1tzhg {
|
|
79
79
|
opacity: 0;
|
|
80
80
|
transition: opacity 0.12s ease-in-out;
|
|
81
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-drawer",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.6",
|
|
4
4
|
"description": "Drawer component",
|
|
5
5
|
"gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
|
|
6
6
|
"keywords": [],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@alfalab/core-components-base-modal": "^5.0
|
|
22
|
+
"@alfalab/core-components-base-modal": "^5.1.0",
|
|
23
23
|
"@alfalab/core-components-scrollbar": "^2.1.3",
|
|
24
24
|
"classnames": "^2.3.1",
|
|
25
25
|
"tslib": "^2.4.0"
|