@alfalab/core-components-drawer 5.0.13 → 5.0.14
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 +35 -35
- package/index.css +35 -35
- package/modern/Component.js +1 -1
- package/modern/index.css +35 -35
- 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_y564x","customScrollbar":"drawer__customScrollbar_y564x","rightPlacement":"drawer__rightPlacement_y564x","leftPlacement":"drawer__leftPlacement_y564x","content":"drawer__content_y564x","enterRight":"drawer__enterRight_y564x","enterLeft":"drawer__enterLeft_y564x","contentEnter":"drawer__contentEnter_y564x","backdropEnter":"drawer__backdropEnter_y564x","enterActive":"drawer__enterActive_y564x","backdropEnterActive":"drawer__backdropEnterActive_y564x","backdropEnterDone":"drawer__backdropEnterDone_y564x","contentEnterActive":"drawer__contentEnterActive_y564x","exit":"drawer__exit_y564x","backdropExit":"drawer__backdropExit_y564x","contentExit":"drawer__contentExit_y564x","exitActiveRight":"drawer__exitActiveRight_y564x","exitActiveLeft":"drawer__exitActiveLeft_y564x","backdropExitActive":"drawer__backdropExitActive_y564x","backdropExitDone":"drawer__backdropExitDone_y564x","contentExitActive":"drawer__contentExitActive_y564x"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var ANIMATION_DURATION = 600;
|
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_y564x","customScrollbar":"drawer__customScrollbar_y564x","rightPlacement":"drawer__rightPlacement_y564x","leftPlacement":"drawer__leftPlacement_y564x","content":"drawer__content_y564x","enterRight":"drawer__enterRight_y564x","enterLeft":"drawer__enterLeft_y564x","contentEnter":"drawer__contentEnter_y564x","backdropEnter":"drawer__backdropEnter_y564x","enterActive":"drawer__enterActive_y564x","backdropEnterActive":"drawer__backdropEnterActive_y564x","backdropEnterDone":"drawer__backdropEnterDone_y564x","contentEnterActive":"drawer__contentEnterActive_y564x","exit":"drawer__exit_y564x","backdropExit":"drawer__backdropExit_y564x","contentExit":"drawer__contentExit_y564x","exitActiveRight":"drawer__exitActiveRight_y564x","exitActiveLeft":"drawer__exitActiveLeft_y564x","backdropExitActive":"drawer__backdropExitActive_y564x","backdropExitDone":"drawer__backdropExitDone_y564x","contentExitActive":"drawer__contentExitActive_y564x"};
|
|
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: 1ln75 */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
@@ -23,97 +23,97 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_y564x {
|
|
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_y564x.drawer__component_y564x {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_y564x {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
cursor: auto;
|
|
38
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar {
|
|
39
39
|
width: 12px;
|
|
40
40
|
height: 12px;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track {
|
|
42
42
|
background-color: transparent;
|
|
43
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track-piece {
|
|
44
44
|
background-color: transparent;
|
|
45
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb {
|
|
46
46
|
background-color: var(--color-light-neutral-translucent-500);
|
|
47
47
|
border-color: transparent;
|
|
48
48
|
border-style: solid;
|
|
49
49
|
border-width: 4px;
|
|
50
50
|
background-clip: padding-box;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical {
|
|
52
52
|
border-radius: var(--border-radius-circle) / 6px;
|
|
53
53
|
min-height: 40px;
|
|
54
|
-
} .
|
|
54
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical:hover {
|
|
55
55
|
border-radius: var(--border-radius-circle) / 7px;
|
|
56
56
|
border-width: 4px 3px;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal {
|
|
58
58
|
border-radius: 6px / var(--border-radius-circle);
|
|
59
59
|
min-width: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal:hover {
|
|
61
61
|
border-radius: 7px / var(--border-radius-circle);
|
|
62
62
|
border-width: 3px 4px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:active {
|
|
64
64
|
background-color: var(--color-light-text-secondary);
|
|
65
|
-
} .
|
|
65
|
+
} .drawer__customScrollbar_y564x::-webkit-resizer {
|
|
66
66
|
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>')
|
|
67
67
|
no-repeat right bottom;
|
|
68
|
-
} .
|
|
69
|
-
.
|
|
68
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-button,
|
|
69
|
+
.drawer__customScrollbar_y564x::-webkit-scrollbar-corner {
|
|
70
70
|
display: none;
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__rightPlacement_y564x {
|
|
72
72
|
right: 0;
|
|
73
73
|
align-self: flex-end;
|
|
74
|
-
} .
|
|
74
|
+
} .drawer__leftPlacement_y564x {
|
|
75
75
|
left: 0;
|
|
76
76
|
align-self: flex-start;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__content_y564x {
|
|
78
78
|
width: 100%;
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
flex: 1;
|
|
82
|
-
} /* enter */ .
|
|
82
|
+
} /* enter */ .drawer__enterRight_y564x {
|
|
83
83
|
transform: translateX(100%);
|
|
84
|
-
} .
|
|
84
|
+
} .drawer__enterLeft_y564x {
|
|
85
85
|
transform: translateX(-100%);
|
|
86
|
-
} .
|
|
86
|
+
} .drawer__contentEnter_y564x {
|
|
87
87
|
opacity: 0;
|
|
88
|
-
} .
|
|
88
|
+
} .drawer__backdropEnter_y564x {
|
|
89
89
|
background-color: var(--backdrop-hidden-background);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterActive_y564x {
|
|
91
91
|
transition: transform 0.3s ease-in-out;
|
|
92
92
|
transform: translateX(0);
|
|
93
|
-
} .
|
|
94
|
-
.
|
|
93
|
+
} .drawer__backdropEnterActive_y564x,
|
|
94
|
+
.drawer__backdropEnterDone_y564x {
|
|
95
95
|
transition: background 0.3s ease-in-out;
|
|
96
96
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
97
|
+
} .drawer__contentEnterActive_y564x {
|
|
98
98
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
99
99
|
opacity: 1;
|
|
100
|
-
} /* exit */ .
|
|
100
|
+
} /* exit */ .drawer__exit_y564x {
|
|
101
101
|
transform: translateX(0);
|
|
102
|
-
} .
|
|
102
|
+
} .drawer__backdropExit_y564x {
|
|
103
103
|
background-color: var(--backdrop-visible-background);
|
|
104
|
-
} .
|
|
104
|
+
} .drawer__contentExit_y564x {
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} .
|
|
106
|
+
} .drawer__exitActiveRight_y564x {
|
|
107
107
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
108
108
|
transform: translateX(100%);
|
|
109
|
-
} .
|
|
109
|
+
} .drawer__exitActiveLeft_y564x {
|
|
110
110
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
111
111
|
transform: translateX(-100%);
|
|
112
|
-
} .
|
|
113
|
-
.
|
|
112
|
+
} .drawer__backdropExitActive_y564x,
|
|
113
|
+
.drawer__backdropExitDone_y564x {
|
|
114
114
|
transition: background 0.25s ease-in-out 0.1s;
|
|
115
115
|
background-color: var(--backdrop-hidden-background);
|
|
116
|
-
} .
|
|
116
|
+
} .drawer__contentExitActive_y564x {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
transition: opacity 0.12s ease-in-out;
|
|
119
119
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ln75 */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
@@ -23,97 +23,97 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_y564x {
|
|
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_y564x.drawer__component_y564x {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_y564x {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
cursor: auto;
|
|
38
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar {
|
|
39
39
|
width: 12px;
|
|
40
40
|
height: 12px;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track {
|
|
42
42
|
background-color: transparent;
|
|
43
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track-piece {
|
|
44
44
|
background-color: transparent;
|
|
45
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb {
|
|
46
46
|
background-color: var(--color-light-neutral-translucent-500);
|
|
47
47
|
border-color: transparent;
|
|
48
48
|
border-style: solid;
|
|
49
49
|
border-width: 4px;
|
|
50
50
|
background-clip: padding-box;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical {
|
|
52
52
|
border-radius: var(--border-radius-circle) / 6px;
|
|
53
53
|
min-height: 40px;
|
|
54
|
-
} .
|
|
54
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical:hover {
|
|
55
55
|
border-radius: var(--border-radius-circle) / 7px;
|
|
56
56
|
border-width: 4px 3px;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal {
|
|
58
58
|
border-radius: 6px / var(--border-radius-circle);
|
|
59
59
|
min-width: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal:hover {
|
|
61
61
|
border-radius: 7px / var(--border-radius-circle);
|
|
62
62
|
border-width: 3px 4px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:active {
|
|
64
64
|
background-color: var(--color-light-text-secondary);
|
|
65
|
-
} .
|
|
65
|
+
} .drawer__customScrollbar_y564x::-webkit-resizer {
|
|
66
66
|
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>')
|
|
67
67
|
no-repeat right bottom;
|
|
68
|
-
} .
|
|
69
|
-
.
|
|
68
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-button,
|
|
69
|
+
.drawer__customScrollbar_y564x::-webkit-scrollbar-corner {
|
|
70
70
|
display: none;
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__rightPlacement_y564x {
|
|
72
72
|
right: 0;
|
|
73
73
|
align-self: flex-end;
|
|
74
|
-
} .
|
|
74
|
+
} .drawer__leftPlacement_y564x {
|
|
75
75
|
left: 0;
|
|
76
76
|
align-self: flex-start;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__content_y564x {
|
|
78
78
|
width: 100%;
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
flex: 1;
|
|
82
|
-
} /* enter */ .
|
|
82
|
+
} /* enter */ .drawer__enterRight_y564x {
|
|
83
83
|
transform: translateX(100%);
|
|
84
|
-
} .
|
|
84
|
+
} .drawer__enterLeft_y564x {
|
|
85
85
|
transform: translateX(-100%);
|
|
86
|
-
} .
|
|
86
|
+
} .drawer__contentEnter_y564x {
|
|
87
87
|
opacity: 0;
|
|
88
|
-
} .
|
|
88
|
+
} .drawer__backdropEnter_y564x {
|
|
89
89
|
background-color: var(--backdrop-hidden-background);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterActive_y564x {
|
|
91
91
|
transition: transform 0.3s ease-in-out;
|
|
92
92
|
transform: translateX(0);
|
|
93
|
-
} .
|
|
94
|
-
.
|
|
93
|
+
} .drawer__backdropEnterActive_y564x,
|
|
94
|
+
.drawer__backdropEnterDone_y564x {
|
|
95
95
|
transition: background 0.3s ease-in-out;
|
|
96
96
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
97
|
+
} .drawer__contentEnterActive_y564x {
|
|
98
98
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
99
99
|
opacity: 1;
|
|
100
|
-
} /* exit */ .
|
|
100
|
+
} /* exit */ .drawer__exit_y564x {
|
|
101
101
|
transform: translateX(0);
|
|
102
|
-
} .
|
|
102
|
+
} .drawer__backdropExit_y564x {
|
|
103
103
|
background-color: var(--backdrop-visible-background);
|
|
104
|
-
} .
|
|
104
|
+
} .drawer__contentExit_y564x {
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} .
|
|
106
|
+
} .drawer__exitActiveRight_y564x {
|
|
107
107
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
108
108
|
transform: translateX(100%);
|
|
109
|
-
} .
|
|
109
|
+
} .drawer__exitActiveLeft_y564x {
|
|
110
110
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
111
111
|
transform: translateX(-100%);
|
|
112
|
-
} .
|
|
113
|
-
.
|
|
112
|
+
} .drawer__backdropExitActive_y564x,
|
|
113
|
+
.drawer__backdropExitDone_y564x {
|
|
114
114
|
transition: background 0.25s ease-in-out 0.1s;
|
|
115
115
|
background-color: var(--backdrop-hidden-background);
|
|
116
|
-
} .
|
|
116
|
+
} .drawer__contentExitActive_y564x {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
transition: opacity 0.12s ease-in-out;
|
|
119
119
|
}
|
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_y564x","customScrollbar":"drawer__customScrollbar_y564x","rightPlacement":"drawer__rightPlacement_y564x","leftPlacement":"drawer__leftPlacement_y564x","content":"drawer__content_y564x","enterRight":"drawer__enterRight_y564x","enterLeft":"drawer__enterLeft_y564x","contentEnter":"drawer__contentEnter_y564x","backdropEnter":"drawer__backdropEnter_y564x","enterActive":"drawer__enterActive_y564x","backdropEnterActive":"drawer__backdropEnterActive_y564x","backdropEnterDone":"drawer__backdropEnterDone_y564x","contentEnterActive":"drawer__contentEnterActive_y564x","exit":"drawer__exit_y564x","backdropExit":"drawer__backdropExit_y564x","contentExit":"drawer__contentExit_y564x","exitActiveRight":"drawer__exitActiveRight_y564x","exitActiveLeft":"drawer__exitActiveLeft_y564x","backdropExitActive":"drawer__backdropExitActive_y564x","backdropExitDone":"drawer__backdropExitDone_y564x","contentExitActive":"drawer__contentExitActive_y564x"};
|
|
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: 1ln75 */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
@@ -23,97 +23,97 @@
|
|
|
23
23
|
--backdrop-hidden-background: transparent;
|
|
24
24
|
} :root {
|
|
25
25
|
--drawer-width: 500px;
|
|
26
|
-
} .
|
|
26
|
+
} .drawer__component_y564x {
|
|
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_y564x.drawer__component_y564x {
|
|
34
34
|
position: fixed;
|
|
35
|
-
} .
|
|
35
|
+
} .drawer__customScrollbar_y564x {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
cursor: auto;
|
|
38
|
-
} .
|
|
38
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar {
|
|
39
39
|
width: 12px;
|
|
40
40
|
height: 12px;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track {
|
|
42
42
|
background-color: transparent;
|
|
43
|
-
} .
|
|
43
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-track-piece {
|
|
44
44
|
background-color: transparent;
|
|
45
|
-
} .
|
|
45
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb {
|
|
46
46
|
background-color: var(--color-light-neutral-translucent-500);
|
|
47
47
|
border-color: transparent;
|
|
48
48
|
border-style: solid;
|
|
49
49
|
border-width: 4px;
|
|
50
50
|
background-clip: padding-box;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical {
|
|
52
52
|
border-radius: var(--border-radius-circle) / 6px;
|
|
53
53
|
min-height: 40px;
|
|
54
|
-
} .
|
|
54
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:vertical:hover {
|
|
55
55
|
border-radius: var(--border-radius-circle) / 7px;
|
|
56
56
|
border-width: 4px 3px;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal {
|
|
58
58
|
border-radius: 6px / var(--border-radius-circle);
|
|
59
59
|
min-width: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:horizontal:hover {
|
|
61
61
|
border-radius: 7px / var(--border-radius-circle);
|
|
62
62
|
border-width: 3px 4px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-thumb:active {
|
|
64
64
|
background-color: var(--color-light-text-secondary);
|
|
65
|
-
} .
|
|
65
|
+
} .drawer__customScrollbar_y564x::-webkit-resizer {
|
|
66
66
|
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>')
|
|
67
67
|
no-repeat right bottom;
|
|
68
|
-
} .
|
|
69
|
-
.
|
|
68
|
+
} .drawer__customScrollbar_y564x::-webkit-scrollbar-button,
|
|
69
|
+
.drawer__customScrollbar_y564x::-webkit-scrollbar-corner {
|
|
70
70
|
display: none;
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__rightPlacement_y564x {
|
|
72
72
|
right: 0;
|
|
73
73
|
align-self: flex-end;
|
|
74
|
-
} .
|
|
74
|
+
} .drawer__leftPlacement_y564x {
|
|
75
75
|
left: 0;
|
|
76
76
|
align-self: flex-start;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__content_y564x {
|
|
78
78
|
width: 100%;
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
flex: 1;
|
|
82
|
-
} /* enter */ .
|
|
82
|
+
} /* enter */ .drawer__enterRight_y564x {
|
|
83
83
|
transform: translateX(100%);
|
|
84
|
-
} .
|
|
84
|
+
} .drawer__enterLeft_y564x {
|
|
85
85
|
transform: translateX(-100%);
|
|
86
|
-
} .
|
|
86
|
+
} .drawer__contentEnter_y564x {
|
|
87
87
|
opacity: 0;
|
|
88
|
-
} .
|
|
88
|
+
} .drawer__backdropEnter_y564x {
|
|
89
89
|
background-color: var(--backdrop-hidden-background);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterActive_y564x {
|
|
91
91
|
transition: transform 0.3s ease-in-out;
|
|
92
92
|
transform: translateX(0);
|
|
93
|
-
} .
|
|
94
|
-
.
|
|
93
|
+
} .drawer__backdropEnterActive_y564x,
|
|
94
|
+
.drawer__backdropEnterDone_y564x {
|
|
95
95
|
transition: background 0.3s ease-in-out;
|
|
96
96
|
background-color: var(--backdrop-visible-background);
|
|
97
|
-
} .
|
|
97
|
+
} .drawer__contentEnterActive_y564x {
|
|
98
98
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
99
99
|
opacity: 1;
|
|
100
|
-
} /* exit */ .
|
|
100
|
+
} /* exit */ .drawer__exit_y564x {
|
|
101
101
|
transform: translateX(0);
|
|
102
|
-
} .
|
|
102
|
+
} .drawer__backdropExit_y564x {
|
|
103
103
|
background-color: var(--backdrop-visible-background);
|
|
104
|
-
} .
|
|
104
|
+
} .drawer__contentExit_y564x {
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} .
|
|
106
|
+
} .drawer__exitActiveRight_y564x {
|
|
107
107
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
108
108
|
transform: translateX(100%);
|
|
109
|
-
} .
|
|
109
|
+
} .drawer__exitActiveLeft_y564x {
|
|
110
110
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
111
111
|
transform: translateX(-100%);
|
|
112
|
-
} .
|
|
113
|
-
.
|
|
112
|
+
} .drawer__backdropExitActive_y564x,
|
|
113
|
+
.drawer__backdropExitDone_y564x {
|
|
114
114
|
transition: background 0.25s ease-in-out 0.1s;
|
|
115
115
|
background-color: var(--backdrop-hidden-background);
|
|
116
|
-
} .
|
|
116
|
+
} .drawer__contentExitActive_y564x {
|
|
117
117
|
opacity: 0;
|
|
118
118
|
transition: opacity 0.12s ease-in-out;
|
|
119
119
|
}
|
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.14",
|
|
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.7.
|
|
18
|
+
"@alfalab/core-components-base-modal": "^5.7.8",
|
|
19
19
|
"classnames": "^2.3.1",
|
|
20
20
|
"react-transition-group": "^4.4.5",
|
|
21
21
|
"tslib": "^2.4.0"
|