@alfalab/core-components-drawer 5.0.2 → 5.0.3
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 +0 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +32 -33
- package/index.css +32 -33
- package/modern/Component.js +1 -1
- package/modern/index.css +32 -33
- package/package.json +2 -2
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_1kbwp","customScrollbar":"drawer__customScrollbar_1kbwp","rightPlacement":"drawer__rightPlacement_1kbwp","leftPlacement":"drawer__leftPlacement_1kbwp","content":"drawer__content_1kbwp","enterRight":"drawer__enterRight_1kbwp","enterLeft":"drawer__enterLeft_1kbwp","contentEnter":"drawer__contentEnter_1kbwp","backdropEnter":"drawer__backdropEnter_1kbwp","enterActive":"drawer__enterActive_1kbwp","backdropEnterActive":"drawer__backdropEnterActive_1kbwp","backdropEnterDone":"drawer__backdropEnterDone_1kbwp","contentEnterActive":"drawer__contentEnterActive_1kbwp","exit":"drawer__exit_1kbwp","backdropExit":"drawer__backdropExit_1kbwp","contentExit":"drawer__contentExit_1kbwp","exitActiveRight":"drawer__exitActiveRight_1kbwp","exitActiveLeft":"drawer__exitActiveLeft_1kbwp","backdropExitActive":"drawer__backdropExitActive_1kbwp","backdropExitDone":"drawer__backdropExitDone_1kbwp","contentExitActive":"drawer__contentExitActive_1kbwp"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var ANIMATION_DURATION = 600;
|
package/cssm/index.module.css
CHANGED
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_1kbwp","customScrollbar":"drawer__customScrollbar_1kbwp","rightPlacement":"drawer__rightPlacement_1kbwp","leftPlacement":"drawer__leftPlacement_1kbwp","content":"drawer__content_1kbwp","enterRight":"drawer__enterRight_1kbwp","enterLeft":"drawer__enterLeft_1kbwp","contentEnter":"drawer__contentEnter_1kbwp","backdropEnter":"drawer__backdropEnter_1kbwp","enterActive":"drawer__enterActive_1kbwp","backdropEnterActive":"drawer__backdropEnterActive_1kbwp","backdropEnterDone":"drawer__backdropEnterDone_1kbwp","contentEnterActive":"drawer__contentEnterActive_1kbwp","exit":"drawer__exit_1kbwp","backdropExit":"drawer__backdropExit_1kbwp","contentExit":"drawer__contentExit_1kbwp","exitActiveRight":"drawer__exitActiveRight_1kbwp","exitActiveLeft":"drawer__exitActiveLeft_1kbwp","backdropExitActive":"drawer__backdropExitActive_1kbwp","backdropExitDone":"drawer__backdropExitDone_1kbwp","contentExitActive":"drawer__contentExitActive_1kbwp"};
|
|
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: 1oblo */
|
|
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,26 +23,25 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_1kbwp {
|
|
27
27
|
top: 0;
|
|
28
28
|
height: 100%;
|
|
29
29
|
width: var(--drawer-width);
|
|
30
30
|
flex: 1;
|
|
31
31
|
overflow: auto;
|
|
32
32
|
will-change: transform;
|
|
33
|
-
} .
|
|
33
|
+
} .drawer__component_1kbwp.drawer__component_1kbwp {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_1kbwp {
|
|
36
36
|
overflow: auto;
|
|
37
|
-
overflow: overlay;
|
|
38
37
|
cursor: auto;
|
|
39
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar {
|
|
40
39
|
width: 12px;
|
|
41
|
-
} .
|
|
40
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track {
|
|
42
41
|
background-color: transparent;
|
|
43
|
-
} .
|
|
42
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track-piece {
|
|
44
43
|
background-color: transparent;
|
|
45
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb {
|
|
46
45
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
47
46
|
border-radius: var(--border-radius-circle) / 6px;
|
|
48
47
|
border-color: transparent;
|
|
@@ -50,63 +49,63 @@
|
|
|
50
49
|
border-width: 4px;
|
|
51
50
|
background-clip: padding-box;
|
|
52
51
|
min-height: 40px;
|
|
53
|
-
} .
|
|
52
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:hover {
|
|
54
53
|
border-radius: var(--border-radius-circle) / 7px;
|
|
55
54
|
border-width: 4px 3px;
|
|
56
|
-
} .
|
|
55
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:active {
|
|
57
56
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
58
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1kbwp::-webkit-resizer {
|
|
59
58
|
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>')
|
|
60
59
|
no-repeat right bottom;
|
|
61
|
-
} .
|
|
62
|
-
.
|
|
60
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-button,
|
|
61
|
+
.drawer__customScrollbar_1kbwp::-webkit-scrollbar-corner {
|
|
63
62
|
display: none;
|
|
64
|
-
} .
|
|
63
|
+
} .drawer__rightPlacement_1kbwp {
|
|
65
64
|
right: 0;
|
|
66
65
|
align-self: flex-end;
|
|
67
|
-
} .
|
|
66
|
+
} .drawer__leftPlacement_1kbwp {
|
|
68
67
|
left: 0;
|
|
69
68
|
align-self: flex-start;
|
|
70
|
-
} .
|
|
69
|
+
} .drawer__content_1kbwp {
|
|
71
70
|
width: 100%;
|
|
72
71
|
display: flex;
|
|
73
72
|
flex-direction: column;
|
|
74
73
|
flex: 1;
|
|
75
|
-
} /* enter */ .
|
|
74
|
+
} /* enter */ .drawer__enterRight_1kbwp {
|
|
76
75
|
transform: translateX(100%);
|
|
77
|
-
} .
|
|
76
|
+
} .drawer__enterLeft_1kbwp {
|
|
78
77
|
transform: translateX(-100%);
|
|
79
|
-
} .
|
|
78
|
+
} .drawer__contentEnter_1kbwp {
|
|
80
79
|
opacity: 0;
|
|
81
|
-
} .
|
|
80
|
+
} .drawer__backdropEnter_1kbwp {
|
|
82
81
|
background-color: var(--backdrop-hidden-background);
|
|
83
|
-
} .
|
|
82
|
+
} .drawer__enterActive_1kbwp {
|
|
84
83
|
transition: transform 0.3s ease-in-out;
|
|
85
84
|
transform: translateX(0);
|
|
86
|
-
} .
|
|
87
|
-
.
|
|
85
|
+
} .drawer__backdropEnterActive_1kbwp,
|
|
86
|
+
.drawer__backdropEnterDone_1kbwp {
|
|
88
87
|
transition: background 0.3s ease-in-out;
|
|
89
88
|
background-color: var(--backdrop-visible-background);
|
|
90
|
-
} .
|
|
89
|
+
} .drawer__contentEnterActive_1kbwp {
|
|
91
90
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
92
91
|
opacity: 1;
|
|
93
|
-
} /* exit */ .
|
|
92
|
+
} /* exit */ .drawer__exit_1kbwp {
|
|
94
93
|
transform: translateX(0);
|
|
95
|
-
} .
|
|
94
|
+
} .drawer__backdropExit_1kbwp {
|
|
96
95
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
96
|
+
} .drawer__contentExit_1kbwp {
|
|
98
97
|
opacity: 1;
|
|
99
|
-
} .
|
|
98
|
+
} .drawer__exitActiveRight_1kbwp {
|
|
100
99
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
101
100
|
transform: translateX(100%);
|
|
102
|
-
} .
|
|
101
|
+
} .drawer__exitActiveLeft_1kbwp {
|
|
103
102
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
104
103
|
transform: translateX(-100%);
|
|
105
|
-
} .
|
|
106
|
-
.
|
|
104
|
+
} .drawer__backdropExitActive_1kbwp,
|
|
105
|
+
.drawer__backdropExitDone_1kbwp {
|
|
107
106
|
transition: background 0.25s ease-in-out 0.1s;
|
|
108
107
|
background-color: var(--backdrop-hidden-background);
|
|
109
|
-
} .
|
|
108
|
+
} .drawer__contentExitActive_1kbwp {
|
|
110
109
|
opacity: 0;
|
|
111
110
|
transition: opacity 0.12s ease-in-out;
|
|
112
111
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1oblo */
|
|
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,26 +23,25 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_1kbwp {
|
|
27
27
|
top: 0;
|
|
28
28
|
height: 100%;
|
|
29
29
|
width: var(--drawer-width);
|
|
30
30
|
flex: 1;
|
|
31
31
|
overflow: auto;
|
|
32
32
|
will-change: transform;
|
|
33
|
-
} .
|
|
33
|
+
} .drawer__component_1kbwp.drawer__component_1kbwp {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_1kbwp {
|
|
36
36
|
overflow: auto;
|
|
37
|
-
overflow: overlay;
|
|
38
37
|
cursor: auto;
|
|
39
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar {
|
|
40
39
|
width: 12px;
|
|
41
|
-
} .
|
|
40
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track {
|
|
42
41
|
background-color: transparent;
|
|
43
|
-
} .
|
|
42
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track-piece {
|
|
44
43
|
background-color: transparent;
|
|
45
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb {
|
|
46
45
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
47
46
|
border-radius: var(--border-radius-circle) / 6px;
|
|
48
47
|
border-color: transparent;
|
|
@@ -50,63 +49,63 @@
|
|
|
50
49
|
border-width: 4px;
|
|
51
50
|
background-clip: padding-box;
|
|
52
51
|
min-height: 40px;
|
|
53
|
-
} .
|
|
52
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:hover {
|
|
54
53
|
border-radius: var(--border-radius-circle) / 7px;
|
|
55
54
|
border-width: 4px 3px;
|
|
56
|
-
} .
|
|
55
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:active {
|
|
57
56
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
58
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1kbwp::-webkit-resizer {
|
|
59
58
|
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>')
|
|
60
59
|
no-repeat right bottom;
|
|
61
|
-
} .
|
|
62
|
-
.
|
|
60
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-button,
|
|
61
|
+
.drawer__customScrollbar_1kbwp::-webkit-scrollbar-corner {
|
|
63
62
|
display: none;
|
|
64
|
-
} .
|
|
63
|
+
} .drawer__rightPlacement_1kbwp {
|
|
65
64
|
right: 0;
|
|
66
65
|
align-self: flex-end;
|
|
67
|
-
} .
|
|
66
|
+
} .drawer__leftPlacement_1kbwp {
|
|
68
67
|
left: 0;
|
|
69
68
|
align-self: flex-start;
|
|
70
|
-
} .
|
|
69
|
+
} .drawer__content_1kbwp {
|
|
71
70
|
width: 100%;
|
|
72
71
|
display: flex;
|
|
73
72
|
flex-direction: column;
|
|
74
73
|
flex: 1;
|
|
75
|
-
} /* enter */ .
|
|
74
|
+
} /* enter */ .drawer__enterRight_1kbwp {
|
|
76
75
|
transform: translateX(100%);
|
|
77
|
-
} .
|
|
76
|
+
} .drawer__enterLeft_1kbwp {
|
|
78
77
|
transform: translateX(-100%);
|
|
79
|
-
} .
|
|
78
|
+
} .drawer__contentEnter_1kbwp {
|
|
80
79
|
opacity: 0;
|
|
81
|
-
} .
|
|
80
|
+
} .drawer__backdropEnter_1kbwp {
|
|
82
81
|
background-color: var(--backdrop-hidden-background);
|
|
83
|
-
} .
|
|
82
|
+
} .drawer__enterActive_1kbwp {
|
|
84
83
|
transition: transform 0.3s ease-in-out;
|
|
85
84
|
transform: translateX(0);
|
|
86
|
-
} .
|
|
87
|
-
.
|
|
85
|
+
} .drawer__backdropEnterActive_1kbwp,
|
|
86
|
+
.drawer__backdropEnterDone_1kbwp {
|
|
88
87
|
transition: background 0.3s ease-in-out;
|
|
89
88
|
background-color: var(--backdrop-visible-background);
|
|
90
|
-
} .
|
|
89
|
+
} .drawer__contentEnterActive_1kbwp {
|
|
91
90
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
92
91
|
opacity: 1;
|
|
93
|
-
} /* exit */ .
|
|
92
|
+
} /* exit */ .drawer__exit_1kbwp {
|
|
94
93
|
transform: translateX(0);
|
|
95
|
-
} .
|
|
94
|
+
} .drawer__backdropExit_1kbwp {
|
|
96
95
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
96
|
+
} .drawer__contentExit_1kbwp {
|
|
98
97
|
opacity: 1;
|
|
99
|
-
} .
|
|
98
|
+
} .drawer__exitActiveRight_1kbwp {
|
|
100
99
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
101
100
|
transform: translateX(100%);
|
|
102
|
-
} .
|
|
101
|
+
} .drawer__exitActiveLeft_1kbwp {
|
|
103
102
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
104
103
|
transform: translateX(-100%);
|
|
105
|
-
} .
|
|
106
|
-
.
|
|
104
|
+
} .drawer__backdropExitActive_1kbwp,
|
|
105
|
+
.drawer__backdropExitDone_1kbwp {
|
|
107
106
|
transition: background 0.25s ease-in-out 0.1s;
|
|
108
107
|
background-color: var(--backdrop-hidden-background);
|
|
109
|
-
} .
|
|
108
|
+
} .drawer__contentExitActive_1kbwp {
|
|
110
109
|
opacity: 0;
|
|
111
110
|
transition: opacity 0.12s ease-in-out;
|
|
112
111
|
}
|
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_1kbwp","customScrollbar":"drawer__customScrollbar_1kbwp","rightPlacement":"drawer__rightPlacement_1kbwp","leftPlacement":"drawer__leftPlacement_1kbwp","content":"drawer__content_1kbwp","enterRight":"drawer__enterRight_1kbwp","enterLeft":"drawer__enterLeft_1kbwp","contentEnter":"drawer__contentEnter_1kbwp","backdropEnter":"drawer__backdropEnter_1kbwp","enterActive":"drawer__enterActive_1kbwp","backdropEnterActive":"drawer__backdropEnterActive_1kbwp","backdropEnterDone":"drawer__backdropEnterDone_1kbwp","contentEnterActive":"drawer__contentEnterActive_1kbwp","exit":"drawer__exit_1kbwp","backdropExit":"drawer__backdropExit_1kbwp","contentExit":"drawer__contentExit_1kbwp","exitActiveRight":"drawer__exitActiveRight_1kbwp","exitActiveLeft":"drawer__exitActiveLeft_1kbwp","backdropExitActive":"drawer__backdropExitActive_1kbwp","backdropExitDone":"drawer__backdropExitDone_1kbwp","contentExitActive":"drawer__contentExitActive_1kbwp"};
|
|
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: 1oblo */
|
|
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,26 +23,25 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_1kbwp {
|
|
27
27
|
top: 0;
|
|
28
28
|
height: 100%;
|
|
29
29
|
width: var(--drawer-width);
|
|
30
30
|
flex: 1;
|
|
31
31
|
overflow: auto;
|
|
32
32
|
will-change: transform;
|
|
33
|
-
} .
|
|
33
|
+
} .drawer__component_1kbwp.drawer__component_1kbwp {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_1kbwp {
|
|
36
36
|
overflow: auto;
|
|
37
|
-
overflow: overlay;
|
|
38
37
|
cursor: auto;
|
|
39
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar {
|
|
40
39
|
width: 12px;
|
|
41
|
-
} .
|
|
40
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track {
|
|
42
41
|
background-color: transparent;
|
|
43
|
-
} .
|
|
42
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-track-piece {
|
|
44
43
|
background-color: transparent;
|
|
45
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb {
|
|
46
45
|
background-color: var(--color-light-graphic-primary-alpha-30);
|
|
47
46
|
border-radius: var(--border-radius-circle) / 6px;
|
|
48
47
|
border-color: transparent;
|
|
@@ -50,63 +49,63 @@
|
|
|
50
49
|
border-width: 4px;
|
|
51
50
|
background-clip: padding-box;
|
|
52
51
|
min-height: 40px;
|
|
53
|
-
} .
|
|
52
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:hover {
|
|
54
53
|
border-radius: var(--border-radius-circle) / 7px;
|
|
55
54
|
border-width: 4px 3px;
|
|
56
|
-
} .
|
|
55
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-thumb:active {
|
|
57
56
|
background-color: var(--color-light-graphic-primary-alpha-60);
|
|
58
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1kbwp::-webkit-resizer {
|
|
59
58
|
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>')
|
|
60
59
|
no-repeat right bottom;
|
|
61
|
-
} .
|
|
62
|
-
.
|
|
60
|
+
} .drawer__customScrollbar_1kbwp::-webkit-scrollbar-button,
|
|
61
|
+
.drawer__customScrollbar_1kbwp::-webkit-scrollbar-corner {
|
|
63
62
|
display: none;
|
|
64
|
-
} .
|
|
63
|
+
} .drawer__rightPlacement_1kbwp {
|
|
65
64
|
right: 0;
|
|
66
65
|
align-self: flex-end;
|
|
67
|
-
} .
|
|
66
|
+
} .drawer__leftPlacement_1kbwp {
|
|
68
67
|
left: 0;
|
|
69
68
|
align-self: flex-start;
|
|
70
|
-
} .
|
|
69
|
+
} .drawer__content_1kbwp {
|
|
71
70
|
width: 100%;
|
|
72
71
|
display: flex;
|
|
73
72
|
flex-direction: column;
|
|
74
73
|
flex: 1;
|
|
75
|
-
} /* enter */ .
|
|
74
|
+
} /* enter */ .drawer__enterRight_1kbwp {
|
|
76
75
|
transform: translateX(100%);
|
|
77
|
-
} .
|
|
76
|
+
} .drawer__enterLeft_1kbwp {
|
|
78
77
|
transform: translateX(-100%);
|
|
79
|
-
} .
|
|
78
|
+
} .drawer__contentEnter_1kbwp {
|
|
80
79
|
opacity: 0;
|
|
81
|
-
} .
|
|
80
|
+
} .drawer__backdropEnter_1kbwp {
|
|
82
81
|
background-color: var(--backdrop-hidden-background);
|
|
83
|
-
} .
|
|
82
|
+
} .drawer__enterActive_1kbwp {
|
|
84
83
|
transition: transform 0.3s ease-in-out;
|
|
85
84
|
transform: translateX(0);
|
|
86
|
-
} .
|
|
87
|
-
.
|
|
85
|
+
} .drawer__backdropEnterActive_1kbwp,
|
|
86
|
+
.drawer__backdropEnterDone_1kbwp {
|
|
88
87
|
transition: background 0.3s ease-in-out;
|
|
89
88
|
background-color: var(--backdrop-visible-background);
|
|
90
|
-
} .
|
|
89
|
+
} .drawer__contentEnterActive_1kbwp {
|
|
91
90
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
92
91
|
opacity: 1;
|
|
93
|
-
} /* exit */ .
|
|
92
|
+
} /* exit */ .drawer__exit_1kbwp {
|
|
94
93
|
transform: translateX(0);
|
|
95
|
-
} .
|
|
94
|
+
} .drawer__backdropExit_1kbwp {
|
|
96
95
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
96
|
+
} .drawer__contentExit_1kbwp {
|
|
98
97
|
opacity: 1;
|
|
99
|
-
} .
|
|
98
|
+
} .drawer__exitActiveRight_1kbwp {
|
|
100
99
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
101
100
|
transform: translateX(100%);
|
|
102
|
-
} .
|
|
101
|
+
} .drawer__exitActiveLeft_1kbwp {
|
|
103
102
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
104
103
|
transform: translateX(-100%);
|
|
105
|
-
} .
|
|
106
|
-
.
|
|
104
|
+
} .drawer__backdropExitActive_1kbwp,
|
|
105
|
+
.drawer__backdropExitDone_1kbwp {
|
|
107
106
|
transition: background 0.25s ease-in-out 0.1s;
|
|
108
107
|
background-color: var(--backdrop-hidden-background);
|
|
109
|
-
} .
|
|
108
|
+
} .drawer__contentExitActive_1kbwp {
|
|
110
109
|
opacity: 0;
|
|
111
110
|
transition: opacity 0.12s ease-in-out;
|
|
112
111
|
}
|
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.3",
|
|
4
4
|
"description": "Drawer component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
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.4.
|
|
18
|
+
"@alfalab/core-components-base-modal": "^5.4.1",
|
|
19
19
|
"classnames": "^2.3.1",
|
|
20
20
|
"react-transition-group": "^4.4.5",
|
|
21
21
|
"tslib": "^2.4.0"
|