@alfalab/core-components-drawer 5.0.0 → 5.0.2
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/cssm/index.module.css +2 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +33 -32
- package/index.css +33 -32
- package/modern/Component.js +1 -1
- package/modern/index.css +33 -32
- package/package.json +3 -2
- package/src/index.module.css +4 -1
package/Component.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"drawer__component_1f4eb","customScrollbar":"drawer__customScrollbar_1f4eb","rightPlacement":"drawer__rightPlacement_1f4eb","leftPlacement":"drawer__leftPlacement_1f4eb","content":"drawer__content_1f4eb","enterRight":"drawer__enterRight_1f4eb","enterLeft":"drawer__enterLeft_1f4eb","contentEnter":"drawer__contentEnter_1f4eb","backdropEnter":"drawer__backdropEnter_1f4eb","enterActive":"drawer__enterActive_1f4eb","backdropEnterActive":"drawer__backdropEnterActive_1f4eb","backdropEnterDone":"drawer__backdropEnterDone_1f4eb","contentEnterActive":"drawer__contentEnterActive_1f4eb","exit":"drawer__exit_1f4eb","backdropExit":"drawer__backdropExit_1f4eb","contentExit":"drawer__contentExit_1f4eb","exitActiveRight":"drawer__exitActiveRight_1f4eb","exitActiveLeft":"drawer__exitActiveLeft_1f4eb","backdropExitActive":"drawer__backdropExitActive_1f4eb","backdropExitDone":"drawer__backdropExitDone_1f4eb","contentExitActive":"drawer__contentExitActive_1f4eb"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var ANIMATION_DURATION = 600;
|
package/cssm/index.module.css
CHANGED
|
@@ -23,13 +23,14 @@
|
|
|
23
23
|
} :root {
|
|
24
24
|
--drawer-width: 500px;
|
|
25
25
|
} .component {
|
|
26
|
-
position: fixed;
|
|
27
26
|
top: 0;
|
|
28
27
|
height: 100%;
|
|
29
28
|
width: var(--drawer-width);
|
|
30
29
|
flex: 1;
|
|
31
30
|
overflow: auto;
|
|
32
31
|
will-change: transform;
|
|
32
|
+
} .component.component {
|
|
33
|
+
position: fixed;
|
|
33
34
|
} .customScrollbar {
|
|
34
35
|
overflow: auto;
|
|
35
36
|
overflow: overlay;
|
package/esm/Component.js
CHANGED
|
@@ -4,7 +4,7 @@ import { CSSTransition } from 'react-transition-group';
|
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { BaseModal, BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"drawer__component_1f4eb","customScrollbar":"drawer__customScrollbar_1f4eb","rightPlacement":"drawer__rightPlacement_1f4eb","leftPlacement":"drawer__leftPlacement_1f4eb","content":"drawer__content_1f4eb","enterRight":"drawer__enterRight_1f4eb","enterLeft":"drawer__enterLeft_1f4eb","contentEnter":"drawer__contentEnter_1f4eb","backdropEnter":"drawer__backdropEnter_1f4eb","enterActive":"drawer__enterActive_1f4eb","backdropEnterActive":"drawer__backdropEnterActive_1f4eb","backdropEnterDone":"drawer__backdropEnterDone_1f4eb","contentEnterActive":"drawer__contentEnterActive_1f4eb","exit":"drawer__exit_1f4eb","backdropExit":"drawer__backdropExit_1f4eb","contentExit":"drawer__contentExit_1f4eb","exitActiveRight":"drawer__exitActiveRight_1f4eb","exitActiveLeft":"drawer__exitActiveLeft_1f4eb","backdropExitActive":"drawer__backdropExitActive_1f4eb","backdropExitDone":"drawer__backdropExitDone_1f4eb","contentExitActive":"drawer__contentExitActive_1f4eb"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var ANIMATION_DURATION = 600;
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hm6mh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -23,25 +23,26 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
27
|
-
position: fixed;
|
|
26
|
+
} .drawer__component_1f4eb {
|
|
28
27
|
top: 0;
|
|
29
28
|
height: 100%;
|
|
30
29
|
width: var(--drawer-width);
|
|
31
30
|
flex: 1;
|
|
32
31
|
overflow: auto;
|
|
33
32
|
will-change: transform;
|
|
34
|
-
} .
|
|
33
|
+
} .drawer__component_1f4eb.drawer__component_1f4eb {
|
|
34
|
+
position: fixed;
|
|
35
|
+
} .drawer__customScrollbar_1f4eb {
|
|
35
36
|
overflow: auto;
|
|
36
37
|
overflow: overlay;
|
|
37
38
|
cursor: auto;
|
|
38
|
-
} .
|
|
39
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar {
|
|
39
40
|
width: 12px;
|
|
40
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track {
|
|
41
42
|
background-color: transparent;
|
|
42
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track-piece {
|
|
43
44
|
background-color: transparent;
|
|
44
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb {
|
|
45
46
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
46
47
|
border-radius: var(--border-radius-circle) / 6px;
|
|
47
48
|
border-color: transparent;
|
|
@@ -49,63 +50,63 @@
|
|
|
49
50
|
border-width: 4px;
|
|
50
51
|
background-clip: padding-box;
|
|
51
52
|
min-height: 40px;
|
|
52
|
-
} .
|
|
53
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:hover {
|
|
53
54
|
border-radius: var(--border-radius-circle) / 7px;
|
|
54
55
|
border-width: 4px 3px;
|
|
55
|
-
} .
|
|
56
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:active {
|
|
56
57
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
57
|
-
} .
|
|
58
|
+
} .drawer__customScrollbar_1f4eb::-webkit-resizer {
|
|
58
59
|
background: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="%2386868a" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.64645 0.646447C8.84171 0.841709 8.84171 1.15829 8.64645 1.35355L1.35355 8.64645C1.15829 8.84171 0.841709 8.84171 0.646447 8.64645C0.451184 8.45118 0.451184 8.1346 0.646447 7.93934L7.93934 0.646447C8.1346 0.451184 8.45118 0.451184 8.64645 0.646447ZM8.64645 3.64645C8.84171 3.84171 8.84171 4.15829 8.64645 4.35355L4.35355 8.64645C4.15829 8.84171 3.84171 8.84171 3.64645 8.64645C3.45118 8.45118 3.45118 8.1346 3.64645 7.93934L7.93934 3.64645C8.1346 3.45118 8.45118 3.45118 8.64645 3.64645Z" /></svg>')
|
|
59
60
|
no-repeat right bottom;
|
|
60
|
-
} .
|
|
61
|
-
.
|
|
61
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-button,
|
|
62
|
+
.drawer__customScrollbar_1f4eb::-webkit-scrollbar-corner {
|
|
62
63
|
display: none;
|
|
63
|
-
} .
|
|
64
|
+
} .drawer__rightPlacement_1f4eb {
|
|
64
65
|
right: 0;
|
|
65
66
|
align-self: flex-end;
|
|
66
|
-
} .
|
|
67
|
+
} .drawer__leftPlacement_1f4eb {
|
|
67
68
|
left: 0;
|
|
68
69
|
align-self: flex-start;
|
|
69
|
-
} .
|
|
70
|
+
} .drawer__content_1f4eb {
|
|
70
71
|
width: 100%;
|
|
71
72
|
display: flex;
|
|
72
73
|
flex-direction: column;
|
|
73
74
|
flex: 1;
|
|
74
|
-
} /* enter */ .
|
|
75
|
+
} /* enter */ .drawer__enterRight_1f4eb {
|
|
75
76
|
transform: translateX(100%);
|
|
76
|
-
} .
|
|
77
|
+
} .drawer__enterLeft_1f4eb {
|
|
77
78
|
transform: translateX(-100%);
|
|
78
|
-
} .
|
|
79
|
+
} .drawer__contentEnter_1f4eb {
|
|
79
80
|
opacity: 0;
|
|
80
|
-
} .
|
|
81
|
+
} .drawer__backdropEnter_1f4eb {
|
|
81
82
|
background-color: var(--backdrop-hidden-background);
|
|
82
|
-
} .
|
|
83
|
+
} .drawer__enterActive_1f4eb {
|
|
83
84
|
transition: transform 0.3s ease-in-out;
|
|
84
85
|
transform: translateX(0);
|
|
85
|
-
} .
|
|
86
|
-
.
|
|
86
|
+
} .drawer__backdropEnterActive_1f4eb,
|
|
87
|
+
.drawer__backdropEnterDone_1f4eb {
|
|
87
88
|
transition: background 0.3s ease-in-out;
|
|
88
89
|
background-color: var(--backdrop-visible-background);
|
|
89
|
-
} .
|
|
90
|
+
} .drawer__contentEnterActive_1f4eb {
|
|
90
91
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
91
92
|
opacity: 1;
|
|
92
|
-
} /* exit */ .
|
|
93
|
+
} /* exit */ .drawer__exit_1f4eb {
|
|
93
94
|
transform: translateX(0);
|
|
94
|
-
} .
|
|
95
|
+
} .drawer__backdropExit_1f4eb {
|
|
95
96
|
background-color: var(--backdrop-visible-background);
|
|
96
|
-
} .
|
|
97
|
+
} .drawer__contentExit_1f4eb {
|
|
97
98
|
opacity: 1;
|
|
98
|
-
} .
|
|
99
|
+
} .drawer__exitActiveRight_1f4eb {
|
|
99
100
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
100
101
|
transform: translateX(100%);
|
|
101
|
-
} .
|
|
102
|
+
} .drawer__exitActiveLeft_1f4eb {
|
|
102
103
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
103
104
|
transform: translateX(-100%);
|
|
104
|
-
} .
|
|
105
|
-
.
|
|
105
|
+
} .drawer__backdropExitActive_1f4eb,
|
|
106
|
+
.drawer__backdropExitDone_1f4eb {
|
|
106
107
|
transition: background 0.25s ease-in-out 0.1s;
|
|
107
108
|
background-color: var(--backdrop-hidden-background);
|
|
108
|
-
} .
|
|
109
|
+
} .drawer__contentExitActive_1f4eb {
|
|
109
110
|
opacity: 0;
|
|
110
111
|
transition: opacity 0.12s ease-in-out;
|
|
111
112
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hm6mh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -23,25 +23,26 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
27
|
-
position: fixed;
|
|
26
|
+
} .drawer__component_1f4eb {
|
|
28
27
|
top: 0;
|
|
29
28
|
height: 100%;
|
|
30
29
|
width: var(--drawer-width);
|
|
31
30
|
flex: 1;
|
|
32
31
|
overflow: auto;
|
|
33
32
|
will-change: transform;
|
|
34
|
-
} .
|
|
33
|
+
} .drawer__component_1f4eb.drawer__component_1f4eb {
|
|
34
|
+
position: fixed;
|
|
35
|
+
} .drawer__customScrollbar_1f4eb {
|
|
35
36
|
overflow: auto;
|
|
36
37
|
overflow: overlay;
|
|
37
38
|
cursor: auto;
|
|
38
|
-
} .
|
|
39
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar {
|
|
39
40
|
width: 12px;
|
|
40
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track {
|
|
41
42
|
background-color: transparent;
|
|
42
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track-piece {
|
|
43
44
|
background-color: transparent;
|
|
44
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb {
|
|
45
46
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
46
47
|
border-radius: var(--border-radius-circle) / 6px;
|
|
47
48
|
border-color: transparent;
|
|
@@ -49,63 +50,63 @@
|
|
|
49
50
|
border-width: 4px;
|
|
50
51
|
background-clip: padding-box;
|
|
51
52
|
min-height: 40px;
|
|
52
|
-
} .
|
|
53
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:hover {
|
|
53
54
|
border-radius: var(--border-radius-circle) / 7px;
|
|
54
55
|
border-width: 4px 3px;
|
|
55
|
-
} .
|
|
56
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:active {
|
|
56
57
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
57
|
-
} .
|
|
58
|
+
} .drawer__customScrollbar_1f4eb::-webkit-resizer {
|
|
58
59
|
background: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="%2386868a" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.64645 0.646447C8.84171 0.841709 8.84171 1.15829 8.64645 1.35355L1.35355 8.64645C1.15829 8.84171 0.841709 8.84171 0.646447 8.64645C0.451184 8.45118 0.451184 8.1346 0.646447 7.93934L7.93934 0.646447C8.1346 0.451184 8.45118 0.451184 8.64645 0.646447ZM8.64645 3.64645C8.84171 3.84171 8.84171 4.15829 8.64645 4.35355L4.35355 8.64645C4.15829 8.84171 3.84171 8.84171 3.64645 8.64645C3.45118 8.45118 3.45118 8.1346 3.64645 7.93934L7.93934 3.64645C8.1346 3.45118 8.45118 3.45118 8.64645 3.64645Z" /></svg>')
|
|
59
60
|
no-repeat right bottom;
|
|
60
|
-
} .
|
|
61
|
-
.
|
|
61
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-button,
|
|
62
|
+
.drawer__customScrollbar_1f4eb::-webkit-scrollbar-corner {
|
|
62
63
|
display: none;
|
|
63
|
-
} .
|
|
64
|
+
} .drawer__rightPlacement_1f4eb {
|
|
64
65
|
right: 0;
|
|
65
66
|
align-self: flex-end;
|
|
66
|
-
} .
|
|
67
|
+
} .drawer__leftPlacement_1f4eb {
|
|
67
68
|
left: 0;
|
|
68
69
|
align-self: flex-start;
|
|
69
|
-
} .
|
|
70
|
+
} .drawer__content_1f4eb {
|
|
70
71
|
width: 100%;
|
|
71
72
|
display: flex;
|
|
72
73
|
flex-direction: column;
|
|
73
74
|
flex: 1;
|
|
74
|
-
} /* enter */ .
|
|
75
|
+
} /* enter */ .drawer__enterRight_1f4eb {
|
|
75
76
|
transform: translateX(100%);
|
|
76
|
-
} .
|
|
77
|
+
} .drawer__enterLeft_1f4eb {
|
|
77
78
|
transform: translateX(-100%);
|
|
78
|
-
} .
|
|
79
|
+
} .drawer__contentEnter_1f4eb {
|
|
79
80
|
opacity: 0;
|
|
80
|
-
} .
|
|
81
|
+
} .drawer__backdropEnter_1f4eb {
|
|
81
82
|
background-color: var(--backdrop-hidden-background);
|
|
82
|
-
} .
|
|
83
|
+
} .drawer__enterActive_1f4eb {
|
|
83
84
|
transition: transform 0.3s ease-in-out;
|
|
84
85
|
transform: translateX(0);
|
|
85
|
-
} .
|
|
86
|
-
.
|
|
86
|
+
} .drawer__backdropEnterActive_1f4eb,
|
|
87
|
+
.drawer__backdropEnterDone_1f4eb {
|
|
87
88
|
transition: background 0.3s ease-in-out;
|
|
88
89
|
background-color: var(--backdrop-visible-background);
|
|
89
|
-
} .
|
|
90
|
+
} .drawer__contentEnterActive_1f4eb {
|
|
90
91
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
91
92
|
opacity: 1;
|
|
92
|
-
} /* exit */ .
|
|
93
|
+
} /* exit */ .drawer__exit_1f4eb {
|
|
93
94
|
transform: translateX(0);
|
|
94
|
-
} .
|
|
95
|
+
} .drawer__backdropExit_1f4eb {
|
|
95
96
|
background-color: var(--backdrop-visible-background);
|
|
96
|
-
} .
|
|
97
|
+
} .drawer__contentExit_1f4eb {
|
|
97
98
|
opacity: 1;
|
|
98
|
-
} .
|
|
99
|
+
} .drawer__exitActiveRight_1f4eb {
|
|
99
100
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
100
101
|
transform: translateX(100%);
|
|
101
|
-
} .
|
|
102
|
+
} .drawer__exitActiveLeft_1f4eb {
|
|
102
103
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
103
104
|
transform: translateX(-100%);
|
|
104
|
-
} .
|
|
105
|
-
.
|
|
105
|
+
} .drawer__backdropExitActive_1f4eb,
|
|
106
|
+
.drawer__backdropExitDone_1f4eb {
|
|
106
107
|
transition: background 0.25s ease-in-out 0.1s;
|
|
107
108
|
background-color: var(--backdrop-hidden-background);
|
|
108
|
-
} .
|
|
109
|
+
} .drawer__contentExitActive_1f4eb {
|
|
109
110
|
opacity: 0;
|
|
110
111
|
transition: opacity 0.12s ease-in-out;
|
|
111
112
|
}
|
package/modern/Component.js
CHANGED
|
@@ -3,7 +3,7 @@ import { CSSTransition } from 'react-transition-group';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal, BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"
|
|
6
|
+
const styles = {"component":"drawer__component_1f4eb","customScrollbar":"drawer__customScrollbar_1f4eb","rightPlacement":"drawer__rightPlacement_1f4eb","leftPlacement":"drawer__leftPlacement_1f4eb","content":"drawer__content_1f4eb","enterRight":"drawer__enterRight_1f4eb","enterLeft":"drawer__enterLeft_1f4eb","contentEnter":"drawer__contentEnter_1f4eb","backdropEnter":"drawer__backdropEnter_1f4eb","enterActive":"drawer__enterActive_1f4eb","backdropEnterActive":"drawer__backdropEnterActive_1f4eb","backdropEnterDone":"drawer__backdropEnterDone_1f4eb","contentEnterActive":"drawer__contentEnterActive_1f4eb","exit":"drawer__exit_1f4eb","backdropExit":"drawer__backdropExit_1f4eb","contentExit":"drawer__contentExit_1f4eb","exitActiveRight":"drawer__exitActiveRight_1f4eb","exitActiveLeft":"drawer__exitActiveLeft_1f4eb","backdropExitActive":"drawer__backdropExitActive_1f4eb","backdropExitDone":"drawer__backdropExitDone_1f4eb","contentExitActive":"drawer__contentExitActive_1f4eb"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const ANIMATION_DURATION = 600;
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hm6mh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-overlay: rgba(0, 0, 0, 0.6); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -23,25 +23,26 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
27
|
-
position: fixed;
|
|
26
|
+
} .drawer__component_1f4eb {
|
|
28
27
|
top: 0;
|
|
29
28
|
height: 100%;
|
|
30
29
|
width: var(--drawer-width);
|
|
31
30
|
flex: 1;
|
|
32
31
|
overflow: auto;
|
|
33
32
|
will-change: transform;
|
|
34
|
-
} .
|
|
33
|
+
} .drawer__component_1f4eb.drawer__component_1f4eb {
|
|
34
|
+
position: fixed;
|
|
35
|
+
} .drawer__customScrollbar_1f4eb {
|
|
35
36
|
overflow: auto;
|
|
36
37
|
overflow: overlay;
|
|
37
38
|
cursor: auto;
|
|
38
|
-
} .
|
|
39
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar {
|
|
39
40
|
width: 12px;
|
|
40
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track {
|
|
41
42
|
background-color: transparent;
|
|
42
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-track-piece {
|
|
43
44
|
background-color: transparent;
|
|
44
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb {
|
|
45
46
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
46
47
|
border-radius: var(--border-radius-circle) / 6px;
|
|
47
48
|
border-color: transparent;
|
|
@@ -49,63 +50,63 @@
|
|
|
49
50
|
border-width: 4px;
|
|
50
51
|
background-clip: padding-box;
|
|
51
52
|
min-height: 40px;
|
|
52
|
-
} .
|
|
53
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:hover {
|
|
53
54
|
border-radius: var(--border-radius-circle) / 7px;
|
|
54
55
|
border-width: 4px 3px;
|
|
55
|
-
} .
|
|
56
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-thumb:active {
|
|
56
57
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
57
|
-
} .
|
|
58
|
+
} .drawer__customScrollbar_1f4eb::-webkit-resizer {
|
|
58
59
|
background: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="%2386868a" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.64645 0.646447C8.84171 0.841709 8.84171 1.15829 8.64645 1.35355L1.35355 8.64645C1.15829 8.84171 0.841709 8.84171 0.646447 8.64645C0.451184 8.45118 0.451184 8.1346 0.646447 7.93934L7.93934 0.646447C8.1346 0.451184 8.45118 0.451184 8.64645 0.646447ZM8.64645 3.64645C8.84171 3.84171 8.84171 4.15829 8.64645 4.35355L4.35355 8.64645C4.15829 8.84171 3.84171 8.84171 3.64645 8.64645C3.45118 8.45118 3.45118 8.1346 3.64645 7.93934L7.93934 3.64645C8.1346 3.45118 8.45118 3.45118 8.64645 3.64645Z" /></svg>')
|
|
59
60
|
no-repeat right bottom;
|
|
60
|
-
} .
|
|
61
|
-
.
|
|
61
|
+
} .drawer__customScrollbar_1f4eb::-webkit-scrollbar-button,
|
|
62
|
+
.drawer__customScrollbar_1f4eb::-webkit-scrollbar-corner {
|
|
62
63
|
display: none;
|
|
63
|
-
} .
|
|
64
|
+
} .drawer__rightPlacement_1f4eb {
|
|
64
65
|
right: 0;
|
|
65
66
|
align-self: flex-end;
|
|
66
|
-
} .
|
|
67
|
+
} .drawer__leftPlacement_1f4eb {
|
|
67
68
|
left: 0;
|
|
68
69
|
align-self: flex-start;
|
|
69
|
-
} .
|
|
70
|
+
} .drawer__content_1f4eb {
|
|
70
71
|
width: 100%;
|
|
71
72
|
display: flex;
|
|
72
73
|
flex-direction: column;
|
|
73
74
|
flex: 1;
|
|
74
|
-
} /* enter */ .
|
|
75
|
+
} /* enter */ .drawer__enterRight_1f4eb {
|
|
75
76
|
transform: translateX(100%);
|
|
76
|
-
} .
|
|
77
|
+
} .drawer__enterLeft_1f4eb {
|
|
77
78
|
transform: translateX(-100%);
|
|
78
|
-
} .
|
|
79
|
+
} .drawer__contentEnter_1f4eb {
|
|
79
80
|
opacity: 0;
|
|
80
|
-
} .
|
|
81
|
+
} .drawer__backdropEnter_1f4eb {
|
|
81
82
|
background-color: var(--backdrop-hidden-background);
|
|
82
|
-
} .
|
|
83
|
+
} .drawer__enterActive_1f4eb {
|
|
83
84
|
transition: transform 0.3s ease-in-out;
|
|
84
85
|
transform: translateX(0);
|
|
85
|
-
} .
|
|
86
|
-
.
|
|
86
|
+
} .drawer__backdropEnterActive_1f4eb,
|
|
87
|
+
.drawer__backdropEnterDone_1f4eb {
|
|
87
88
|
transition: background 0.3s ease-in-out;
|
|
88
89
|
background-color: var(--backdrop-visible-background);
|
|
89
|
-
} .
|
|
90
|
+
} .drawer__contentEnterActive_1f4eb {
|
|
90
91
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
91
92
|
opacity: 1;
|
|
92
|
-
} /* exit */ .
|
|
93
|
+
} /* exit */ .drawer__exit_1f4eb {
|
|
93
94
|
transform: translateX(0);
|
|
94
|
-
} .
|
|
95
|
+
} .drawer__backdropExit_1f4eb {
|
|
95
96
|
background-color: var(--backdrop-visible-background);
|
|
96
|
-
} .
|
|
97
|
+
} .drawer__contentExit_1f4eb {
|
|
97
98
|
opacity: 1;
|
|
98
|
-
} .
|
|
99
|
+
} .drawer__exitActiveRight_1f4eb {
|
|
99
100
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
100
101
|
transform: translateX(100%);
|
|
101
|
-
} .
|
|
102
|
+
} .drawer__exitActiveLeft_1f4eb {
|
|
102
103
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
103
104
|
transform: translateX(-100%);
|
|
104
|
-
} .
|
|
105
|
-
.
|
|
105
|
+
} .drawer__backdropExitActive_1f4eb,
|
|
106
|
+
.drawer__backdropExitDone_1f4eb {
|
|
106
107
|
transition: background 0.25s ease-in-out 0.1s;
|
|
107
108
|
background-color: var(--backdrop-hidden-background);
|
|
108
|
-
} .
|
|
109
|
+
} .drawer__contentExitActive_1f4eb {
|
|
109
110
|
opacity: 0;
|
|
110
111
|
transition: opacity 0.12s ease-in-out;
|
|
111
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-drawer",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Drawer component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-base-modal": "^5.
|
|
18
|
+
"@alfalab/core-components-base-modal": "^5.4.0",
|
|
19
19
|
"classnames": "^2.3.1",
|
|
20
|
+
"react-transition-group": "^4.4.5",
|
|
20
21
|
"tslib": "^2.4.0"
|
|
21
22
|
}
|
|
22
23
|
}
|
package/src/index.module.css
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.component {
|
|
9
|
-
position: fixed;
|
|
10
9
|
top: 0;
|
|
11
10
|
height: 100%;
|
|
12
11
|
width: var(--drawer-width);
|
|
@@ -15,6 +14,10 @@
|
|
|
15
14
|
will-change: transform;
|
|
16
15
|
}
|
|
17
16
|
|
|
17
|
+
.component.component {
|
|
18
|
+
position: fixed;
|
|
19
|
+
}
|
|
20
|
+
|
|
18
21
|
.customScrollbar {
|
|
19
22
|
@mixin custom-scrollbar;
|
|
20
23
|
}
|