@alfalab/core-components-drawer 5.1.2 → 5.1.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/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 +4 -4
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_1tusy","customScrollbar":"drawer__customScrollbar_1tusy","rightPlacement":"drawer__rightPlacement_1tusy","leftPlacement":"drawer__leftPlacement_1tusy","content":"drawer__content_1tusy","enterRight":"drawer__enterRight_1tusy","enterLeft":"drawer__enterLeft_1tusy","contentEnter":"drawer__contentEnter_1tusy","backdropEnter":"drawer__backdropEnter_1tusy","enterActive":"drawer__enterActive_1tusy","backdropEnterActive":"drawer__backdropEnterActive_1tusy","backdropEnterDone":"drawer__backdropEnterDone_1tusy","contentEnterActive":"drawer__contentEnterActive_1tusy","exit":"drawer__exit_1tusy","backdropExit":"drawer__backdropExit_1tusy","contentExit":"drawer__contentExit_1tusy","exitActiveRight":"drawer__exitActiveRight_1tusy","exitActiveLeft":"drawer__exitActiveLeft_1tusy","backdropExitActive":"drawer__backdropExitActive_1tusy","backdropExitDone":"drawer__backdropExitDone_1tusy","contentExitActive":"drawer__contentExitActive_1tusy"};
|
|
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_1tusy","customScrollbar":"drawer__customScrollbar_1tusy","rightPlacement":"drawer__rightPlacement_1tusy","leftPlacement":"drawer__leftPlacement_1tusy","content":"drawer__content_1tusy","enterRight":"drawer__enterRight_1tusy","enterLeft":"drawer__enterLeft_1tusy","contentEnter":"drawer__contentEnter_1tusy","backdropEnter":"drawer__backdropEnter_1tusy","enterActive":"drawer__enterActive_1tusy","backdropEnterActive":"drawer__backdropEnterActive_1tusy","backdropEnterDone":"drawer__backdropEnterDone_1tusy","contentEnterActive":"drawer__contentEnterActive_1tusy","exit":"drawer__exit_1tusy","backdropExit":"drawer__backdropExit_1tusy","contentExit":"drawer__contentExit_1tusy","exitActiveRight":"drawer__exitActiveRight_1tusy","exitActiveLeft":"drawer__exitActiveLeft_1tusy","backdropExitActive":"drawer__backdropExitActive_1tusy","backdropExitDone":"drawer__backdropExitDone_1tusy","contentExitActive":"drawer__contentExitActive_1tusy"};
|
|
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: 1h37c */
|
|
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);
|
|
@@ -29,97 +29,97 @@
|
|
|
29
29
|
--backdrop-hidden-background: transparent;
|
|
30
30
|
} :root {
|
|
31
31
|
--drawer-width: 500px;
|
|
32
|
-
} .
|
|
32
|
+
} .drawer__component_1tusy {
|
|
33
33
|
top: var(--gap-0);
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: var(--drawer-width);
|
|
36
36
|
flex: 1;
|
|
37
37
|
overflow: auto;
|
|
38
38
|
will-change: transform;
|
|
39
|
-
} .
|
|
39
|
+
} .drawer__component_1tusy.drawer__component_1tusy {
|
|
40
40
|
position: fixed;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1tusy {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
cursor: auto;
|
|
44
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar {
|
|
45
45
|
width: 12px;
|
|
46
46
|
height: 12px;
|
|
47
|
-
} .
|
|
47
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track {
|
|
48
48
|
background-color: transparent;
|
|
49
|
-
} .
|
|
49
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track-piece {
|
|
50
50
|
background-color: transparent;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb {
|
|
52
52
|
background-color: var(--color-light-neutral-translucent-500);
|
|
53
53
|
border-color: transparent;
|
|
54
54
|
border-style: solid;
|
|
55
55
|
border-width: 4px;
|
|
56
56
|
background-clip: padding-box;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical {
|
|
58
58
|
border-radius: var(--border-radius-circle) / var(--border-radius-6);
|
|
59
59
|
min-height: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical:hover {
|
|
61
61
|
border-radius: var(--border-radius-circle) / 7px;
|
|
62
62
|
border-width: 4px 3px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal {
|
|
64
64
|
border-radius: var(--border-radius-6) / var(--border-radius-circle);
|
|
65
65
|
min-width: 40px;
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal:hover {
|
|
67
67
|
border-radius: 7px / var(--border-radius-circle);
|
|
68
68
|
border-width: 3px 4px;
|
|
69
|
-
} .
|
|
69
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:active {
|
|
70
70
|
background-color: var(--color-light-text-secondary);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__customScrollbar_1tusy::-webkit-resizer {
|
|
72
72
|
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>')
|
|
73
73
|
no-repeat right bottom;
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-button,
|
|
75
|
+
.drawer__customScrollbar_1tusy::-webkit-scrollbar-corner {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__rightPlacement_1tusy {
|
|
78
78
|
right: var(--gap-0);
|
|
79
79
|
align-self: flex-end;
|
|
80
|
-
} .
|
|
80
|
+
} .drawer__leftPlacement_1tusy {
|
|
81
81
|
left: var(--gap-0);
|
|
82
82
|
align-self: flex-start;
|
|
83
|
-
} .
|
|
83
|
+
} .drawer__content_1tusy {
|
|
84
84
|
width: 100%;
|
|
85
85
|
display: flex;
|
|
86
86
|
flex-direction: column;
|
|
87
87
|
flex: 1;
|
|
88
|
-
} /* enter */ .
|
|
88
|
+
} /* enter */ .drawer__enterRight_1tusy {
|
|
89
89
|
transform: translateX(100%);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterLeft_1tusy {
|
|
91
91
|
transform: translateX(-100%);
|
|
92
|
-
} .
|
|
92
|
+
} .drawer__contentEnter_1tusy {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
} .
|
|
94
|
+
} .drawer__backdropEnter_1tusy {
|
|
95
95
|
background-color: var(--backdrop-hidden-background);
|
|
96
|
-
} .
|
|
96
|
+
} .drawer__enterActive_1tusy {
|
|
97
97
|
transition: transform 0.3s ease-in-out;
|
|
98
98
|
transform: translateX(0);
|
|
99
|
-
} .
|
|
100
|
-
.
|
|
99
|
+
} .drawer__backdropEnterActive_1tusy,
|
|
100
|
+
.drawer__backdropEnterDone_1tusy {
|
|
101
101
|
transition: background 0.3s ease-in-out;
|
|
102
102
|
background-color: var(--backdrop-visible-background);
|
|
103
|
-
} .
|
|
103
|
+
} .drawer__contentEnterActive_1tusy {
|
|
104
104
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} /* exit */ .
|
|
106
|
+
} /* exit */ .drawer__exit_1tusy {
|
|
107
107
|
transform: translateX(0);
|
|
108
|
-
} .
|
|
108
|
+
} .drawer__backdropExit_1tusy {
|
|
109
109
|
background-color: var(--backdrop-visible-background);
|
|
110
|
-
} .
|
|
110
|
+
} .drawer__contentExit_1tusy {
|
|
111
111
|
opacity: 1;
|
|
112
|
-
} .
|
|
112
|
+
} .drawer__exitActiveRight_1tusy {
|
|
113
113
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
114
114
|
transform: translateX(100%);
|
|
115
|
-
} .
|
|
115
|
+
} .drawer__exitActiveLeft_1tusy {
|
|
116
116
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
117
117
|
transform: translateX(-100%);
|
|
118
|
-
} .
|
|
119
|
-
.
|
|
118
|
+
} .drawer__backdropExitActive_1tusy,
|
|
119
|
+
.drawer__backdropExitDone_1tusy {
|
|
120
120
|
transition: background 0.25s ease-in-out 0.1s;
|
|
121
121
|
background-color: var(--backdrop-hidden-background);
|
|
122
|
-
} .
|
|
122
|
+
} .drawer__contentExitActive_1tusy {
|
|
123
123
|
opacity: 0;
|
|
124
124
|
transition: opacity 0.12s ease-in-out;
|
|
125
125
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1h37c */
|
|
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);
|
|
@@ -29,97 +29,97 @@
|
|
|
29
29
|
--backdrop-hidden-background: transparent;
|
|
30
30
|
} :root {
|
|
31
31
|
--drawer-width: 500px;
|
|
32
|
-
} .
|
|
32
|
+
} .drawer__component_1tusy {
|
|
33
33
|
top: var(--gap-0);
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: var(--drawer-width);
|
|
36
36
|
flex: 1;
|
|
37
37
|
overflow: auto;
|
|
38
38
|
will-change: transform;
|
|
39
|
-
} .
|
|
39
|
+
} .drawer__component_1tusy.drawer__component_1tusy {
|
|
40
40
|
position: fixed;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1tusy {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
cursor: auto;
|
|
44
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar {
|
|
45
45
|
width: 12px;
|
|
46
46
|
height: 12px;
|
|
47
|
-
} .
|
|
47
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track {
|
|
48
48
|
background-color: transparent;
|
|
49
|
-
} .
|
|
49
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track-piece {
|
|
50
50
|
background-color: transparent;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb {
|
|
52
52
|
background-color: var(--color-light-neutral-translucent-500);
|
|
53
53
|
border-color: transparent;
|
|
54
54
|
border-style: solid;
|
|
55
55
|
border-width: 4px;
|
|
56
56
|
background-clip: padding-box;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical {
|
|
58
58
|
border-radius: var(--border-radius-circle) / var(--border-radius-6);
|
|
59
59
|
min-height: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical:hover {
|
|
61
61
|
border-radius: var(--border-radius-circle) / 7px;
|
|
62
62
|
border-width: 4px 3px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal {
|
|
64
64
|
border-radius: var(--border-radius-6) / var(--border-radius-circle);
|
|
65
65
|
min-width: 40px;
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal:hover {
|
|
67
67
|
border-radius: 7px / var(--border-radius-circle);
|
|
68
68
|
border-width: 3px 4px;
|
|
69
|
-
} .
|
|
69
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:active {
|
|
70
70
|
background-color: var(--color-light-text-secondary);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__customScrollbar_1tusy::-webkit-resizer {
|
|
72
72
|
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>')
|
|
73
73
|
no-repeat right bottom;
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-button,
|
|
75
|
+
.drawer__customScrollbar_1tusy::-webkit-scrollbar-corner {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__rightPlacement_1tusy {
|
|
78
78
|
right: var(--gap-0);
|
|
79
79
|
align-self: flex-end;
|
|
80
|
-
} .
|
|
80
|
+
} .drawer__leftPlacement_1tusy {
|
|
81
81
|
left: var(--gap-0);
|
|
82
82
|
align-self: flex-start;
|
|
83
|
-
} .
|
|
83
|
+
} .drawer__content_1tusy {
|
|
84
84
|
width: 100%;
|
|
85
85
|
display: flex;
|
|
86
86
|
flex-direction: column;
|
|
87
87
|
flex: 1;
|
|
88
|
-
} /* enter */ .
|
|
88
|
+
} /* enter */ .drawer__enterRight_1tusy {
|
|
89
89
|
transform: translateX(100%);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterLeft_1tusy {
|
|
91
91
|
transform: translateX(-100%);
|
|
92
|
-
} .
|
|
92
|
+
} .drawer__contentEnter_1tusy {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
} .
|
|
94
|
+
} .drawer__backdropEnter_1tusy {
|
|
95
95
|
background-color: var(--backdrop-hidden-background);
|
|
96
|
-
} .
|
|
96
|
+
} .drawer__enterActive_1tusy {
|
|
97
97
|
transition: transform 0.3s ease-in-out;
|
|
98
98
|
transform: translateX(0);
|
|
99
|
-
} .
|
|
100
|
-
.
|
|
99
|
+
} .drawer__backdropEnterActive_1tusy,
|
|
100
|
+
.drawer__backdropEnterDone_1tusy {
|
|
101
101
|
transition: background 0.3s ease-in-out;
|
|
102
102
|
background-color: var(--backdrop-visible-background);
|
|
103
|
-
} .
|
|
103
|
+
} .drawer__contentEnterActive_1tusy {
|
|
104
104
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} /* exit */ .
|
|
106
|
+
} /* exit */ .drawer__exit_1tusy {
|
|
107
107
|
transform: translateX(0);
|
|
108
|
-
} .
|
|
108
|
+
} .drawer__backdropExit_1tusy {
|
|
109
109
|
background-color: var(--backdrop-visible-background);
|
|
110
|
-
} .
|
|
110
|
+
} .drawer__contentExit_1tusy {
|
|
111
111
|
opacity: 1;
|
|
112
|
-
} .
|
|
112
|
+
} .drawer__exitActiveRight_1tusy {
|
|
113
113
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
114
114
|
transform: translateX(100%);
|
|
115
|
-
} .
|
|
115
|
+
} .drawer__exitActiveLeft_1tusy {
|
|
116
116
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
117
117
|
transform: translateX(-100%);
|
|
118
|
-
} .
|
|
119
|
-
.
|
|
118
|
+
} .drawer__backdropExitActive_1tusy,
|
|
119
|
+
.drawer__backdropExitDone_1tusy {
|
|
120
120
|
transition: background 0.25s ease-in-out 0.1s;
|
|
121
121
|
background-color: var(--backdrop-hidden-background);
|
|
122
|
-
} .
|
|
122
|
+
} .drawer__contentExitActive_1tusy {
|
|
123
123
|
opacity: 0;
|
|
124
124
|
transition: opacity 0.12s ease-in-out;
|
|
125
125
|
}
|
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_1tusy","customScrollbar":"drawer__customScrollbar_1tusy","rightPlacement":"drawer__rightPlacement_1tusy","leftPlacement":"drawer__leftPlacement_1tusy","content":"drawer__content_1tusy","enterRight":"drawer__enterRight_1tusy","enterLeft":"drawer__enterLeft_1tusy","contentEnter":"drawer__contentEnter_1tusy","backdropEnter":"drawer__backdropEnter_1tusy","enterActive":"drawer__enterActive_1tusy","backdropEnterActive":"drawer__backdropEnterActive_1tusy","backdropEnterDone":"drawer__backdropEnterDone_1tusy","contentEnterActive":"drawer__contentEnterActive_1tusy","exit":"drawer__exit_1tusy","backdropExit":"drawer__backdropExit_1tusy","contentExit":"drawer__contentExit_1tusy","exitActiveRight":"drawer__exitActiveRight_1tusy","exitActiveLeft":"drawer__exitActiveLeft_1tusy","backdropExitActive":"drawer__backdropExitActive_1tusy","backdropExitDone":"drawer__backdropExitDone_1tusy","contentExitActive":"drawer__contentExitActive_1tusy"};
|
|
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: 1h37c */
|
|
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);
|
|
@@ -29,97 +29,97 @@
|
|
|
29
29
|
--backdrop-hidden-background: transparent;
|
|
30
30
|
} :root {
|
|
31
31
|
--drawer-width: 500px;
|
|
32
|
-
} .
|
|
32
|
+
} .drawer__component_1tusy {
|
|
33
33
|
top: var(--gap-0);
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: var(--drawer-width);
|
|
36
36
|
flex: 1;
|
|
37
37
|
overflow: auto;
|
|
38
38
|
will-change: transform;
|
|
39
|
-
} .
|
|
39
|
+
} .drawer__component_1tusy.drawer__component_1tusy {
|
|
40
40
|
position: fixed;
|
|
41
|
-
} .
|
|
41
|
+
} .drawer__customScrollbar_1tusy {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
cursor: auto;
|
|
44
|
-
} .
|
|
44
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar {
|
|
45
45
|
width: 12px;
|
|
46
46
|
height: 12px;
|
|
47
|
-
} .
|
|
47
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track {
|
|
48
48
|
background-color: transparent;
|
|
49
|
-
} .
|
|
49
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-track-piece {
|
|
50
50
|
background-color: transparent;
|
|
51
|
-
} .
|
|
51
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb {
|
|
52
52
|
background-color: var(--color-light-neutral-translucent-500);
|
|
53
53
|
border-color: transparent;
|
|
54
54
|
border-style: solid;
|
|
55
55
|
border-width: 4px;
|
|
56
56
|
background-clip: padding-box;
|
|
57
|
-
} .
|
|
57
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical {
|
|
58
58
|
border-radius: var(--border-radius-circle) / var(--border-radius-6);
|
|
59
59
|
min-height: 40px;
|
|
60
|
-
} .
|
|
60
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:vertical:hover {
|
|
61
61
|
border-radius: var(--border-radius-circle) / 7px;
|
|
62
62
|
border-width: 4px 3px;
|
|
63
|
-
} .
|
|
63
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal {
|
|
64
64
|
border-radius: var(--border-radius-6) / var(--border-radius-circle);
|
|
65
65
|
min-width: 40px;
|
|
66
|
-
} .
|
|
66
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:horizontal:hover {
|
|
67
67
|
border-radius: 7px / var(--border-radius-circle);
|
|
68
68
|
border-width: 3px 4px;
|
|
69
|
-
} .
|
|
69
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-thumb:active {
|
|
70
70
|
background-color: var(--color-light-text-secondary);
|
|
71
|
-
} .
|
|
71
|
+
} .drawer__customScrollbar_1tusy::-webkit-resizer {
|
|
72
72
|
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>')
|
|
73
73
|
no-repeat right bottom;
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .drawer__customScrollbar_1tusy::-webkit-scrollbar-button,
|
|
75
|
+
.drawer__customScrollbar_1tusy::-webkit-scrollbar-corner {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
77
|
+
} .drawer__rightPlacement_1tusy {
|
|
78
78
|
right: var(--gap-0);
|
|
79
79
|
align-self: flex-end;
|
|
80
|
-
} .
|
|
80
|
+
} .drawer__leftPlacement_1tusy {
|
|
81
81
|
left: var(--gap-0);
|
|
82
82
|
align-self: flex-start;
|
|
83
|
-
} .
|
|
83
|
+
} .drawer__content_1tusy {
|
|
84
84
|
width: 100%;
|
|
85
85
|
display: flex;
|
|
86
86
|
flex-direction: column;
|
|
87
87
|
flex: 1;
|
|
88
|
-
} /* enter */ .
|
|
88
|
+
} /* enter */ .drawer__enterRight_1tusy {
|
|
89
89
|
transform: translateX(100%);
|
|
90
|
-
} .
|
|
90
|
+
} .drawer__enterLeft_1tusy {
|
|
91
91
|
transform: translateX(-100%);
|
|
92
|
-
} .
|
|
92
|
+
} .drawer__contentEnter_1tusy {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
} .
|
|
94
|
+
} .drawer__backdropEnter_1tusy {
|
|
95
95
|
background-color: var(--backdrop-hidden-background);
|
|
96
|
-
} .
|
|
96
|
+
} .drawer__enterActive_1tusy {
|
|
97
97
|
transition: transform 0.3s ease-in-out;
|
|
98
98
|
transform: translateX(0);
|
|
99
|
-
} .
|
|
100
|
-
.
|
|
99
|
+
} .drawer__backdropEnterActive_1tusy,
|
|
100
|
+
.drawer__backdropEnterDone_1tusy {
|
|
101
101
|
transition: background 0.3s ease-in-out;
|
|
102
102
|
background-color: var(--backdrop-visible-background);
|
|
103
|
-
} .
|
|
103
|
+
} .drawer__contentEnterActive_1tusy {
|
|
104
104
|
transition: opacity 0.2s ease-in-out 0.3s;
|
|
105
105
|
opacity: 1;
|
|
106
|
-
} /* exit */ .
|
|
106
|
+
} /* exit */ .drawer__exit_1tusy {
|
|
107
107
|
transform: translateX(0);
|
|
108
|
-
} .
|
|
108
|
+
} .drawer__backdropExit_1tusy {
|
|
109
109
|
background-color: var(--backdrop-visible-background);
|
|
110
|
-
} .
|
|
110
|
+
} .drawer__contentExit_1tusy {
|
|
111
111
|
opacity: 1;
|
|
112
|
-
} .
|
|
112
|
+
} .drawer__exitActiveRight_1tusy {
|
|
113
113
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
114
114
|
transform: translateX(100%);
|
|
115
|
-
} .
|
|
115
|
+
} .drawer__exitActiveLeft_1tusy {
|
|
116
116
|
transition: transform 0.25s ease-in-out 0.1s;
|
|
117
117
|
transform: translateX(-100%);
|
|
118
|
-
} .
|
|
119
|
-
.
|
|
118
|
+
} .drawer__backdropExitActive_1tusy,
|
|
119
|
+
.drawer__backdropExitDone_1tusy {
|
|
120
120
|
transition: background 0.25s ease-in-out 0.1s;
|
|
121
121
|
background-color: var(--backdrop-hidden-background);
|
|
122
|
-
} .
|
|
122
|
+
} .drawer__contentExitActive_1tusy {
|
|
123
123
|
opacity: 0;
|
|
124
124
|
transition: opacity 0.12s ease-in-out;
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-drawer",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Drawer component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,11 @@
|
|
|
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.8.
|
|
18
|
+
"@alfalab/core-components-base-modal": "^5.8.3",
|
|
19
19
|
"classnames": "^2.3.1",
|
|
20
20
|
"react-transition-group": "^4.4.5",
|
|
21
21
|
"tslib": "^2.4.0"
|
|
22
22
|
},
|
|
23
|
-
"themesVersion": "13.
|
|
24
|
-
"varsVersion": "9.
|
|
23
|
+
"themesVersion": "13.5.0",
|
|
24
|
+
"varsVersion": "9.15.0"
|
|
25
25
|
}
|