@alfalab/core-components-drawer 5.1.2 → 5.1.4

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 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":"drawer__component_1bj8x","customScrollbar":"drawer__customScrollbar_1bj8x","rightPlacement":"drawer__rightPlacement_1bj8x","leftPlacement":"drawer__leftPlacement_1bj8x","content":"drawer__content_1bj8x","enterRight":"drawer__enterRight_1bj8x","enterLeft":"drawer__enterLeft_1bj8x","contentEnter":"drawer__contentEnter_1bj8x","backdropEnter":"drawer__backdropEnter_1bj8x","enterActive":"drawer__enterActive_1bj8x","backdropEnterActive":"drawer__backdropEnterActive_1bj8x","backdropEnterDone":"drawer__backdropEnterDone_1bj8x","contentEnterActive":"drawer__contentEnterActive_1bj8x","exit":"drawer__exit_1bj8x","backdropExit":"drawer__backdropExit_1bj8x","contentExit":"drawer__contentExit_1bj8x","exitActiveRight":"drawer__exitActiveRight_1bj8x","exitActiveLeft":"drawer__exitActiveLeft_1bj8x","backdropExitActive":"drawer__backdropExitActive_1bj8x","backdropExitDone":"drawer__backdropExitDone_1bj8x","contentExitActive":"drawer__contentExitActive_1bj8x"};
16
+ var styles = {"component":"drawer__component_1dc3j","customScrollbar":"drawer__customScrollbar_1dc3j","rightPlacement":"drawer__rightPlacement_1dc3j","leftPlacement":"drawer__leftPlacement_1dc3j","content":"drawer__content_1dc3j","enterRight":"drawer__enterRight_1dc3j","enterLeft":"drawer__enterLeft_1dc3j","contentEnter":"drawer__contentEnter_1dc3j","backdropEnter":"drawer__backdropEnter_1dc3j","enterActive":"drawer__enterActive_1dc3j","backdropEnterActive":"drawer__backdropEnterActive_1dc3j","backdropEnterDone":"drawer__backdropEnterDone_1dc3j","contentEnterActive":"drawer__contentEnterActive_1dc3j","exit":"drawer__exit_1dc3j","backdropExit":"drawer__backdropExit_1dc3j","contentExit":"drawer__contentExit_1dc3j","exitActiveRight":"drawer__exitActiveRight_1dc3j","exitActiveLeft":"drawer__exitActiveLeft_1dc3j","backdropExitActive":"drawer__backdropExitActive_1dc3j","backdropExitDone":"drawer__backdropExitDone_1dc3j","contentExitActive":"drawer__contentExitActive_1dc3j"};
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":"drawer__component_1bj8x","customScrollbar":"drawer__customScrollbar_1bj8x","rightPlacement":"drawer__rightPlacement_1bj8x","leftPlacement":"drawer__leftPlacement_1bj8x","content":"drawer__content_1bj8x","enterRight":"drawer__enterRight_1bj8x","enterLeft":"drawer__enterLeft_1bj8x","contentEnter":"drawer__contentEnter_1bj8x","backdropEnter":"drawer__backdropEnter_1bj8x","enterActive":"drawer__enterActive_1bj8x","backdropEnterActive":"drawer__backdropEnterActive_1bj8x","backdropEnterDone":"drawer__backdropEnterDone_1bj8x","contentEnterActive":"drawer__contentEnterActive_1bj8x","exit":"drawer__exit_1bj8x","backdropExit":"drawer__backdropExit_1bj8x","contentExit":"drawer__contentExit_1bj8x","exitActiveRight":"drawer__exitActiveRight_1bj8x","exitActiveLeft":"drawer__exitActiveLeft_1bj8x","backdropExitActive":"drawer__backdropExitActive_1bj8x","backdropExitDone":"drawer__backdropExitDone_1bj8x","contentExitActive":"drawer__contentExitActive_1bj8x"};
7
+ var styles = {"component":"drawer__component_1dc3j","customScrollbar":"drawer__customScrollbar_1dc3j","rightPlacement":"drawer__rightPlacement_1dc3j","leftPlacement":"drawer__leftPlacement_1dc3j","content":"drawer__content_1dc3j","enterRight":"drawer__enterRight_1dc3j","enterLeft":"drawer__enterLeft_1dc3j","contentEnter":"drawer__contentEnter_1dc3j","backdropEnter":"drawer__backdropEnter_1dc3j","enterActive":"drawer__enterActive_1dc3j","backdropEnterActive":"drawer__backdropEnterActive_1dc3j","backdropEnterDone":"drawer__backdropEnterDone_1dc3j","contentEnterActive":"drawer__contentEnterActive_1dc3j","exit":"drawer__exit_1dc3j","backdropExit":"drawer__backdropExit_1dc3j","contentExit":"drawer__contentExit_1dc3j","exitActiveRight":"drawer__exitActiveRight_1dc3j","exitActiveLeft":"drawer__exitActiveLeft_1dc3j","backdropExitActive":"drawer__backdropExitActive_1dc3j","backdropExitDone":"drawer__backdropExitDone_1dc3j","contentExitActive":"drawer__contentExitActive_1dc3j"};
8
8
  require('./index.css')
9
9
 
10
10
  var ANIMATION_DURATION = 600;
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: oukzc */
1
+ /* hash: 1gb7u */
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
- } .drawer__component_1bj8x {
32
+ } .drawer__component_1dc3j {
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
- } .drawer__component_1bj8x.drawer__component_1bj8x {
39
+ } .drawer__component_1dc3j.drawer__component_1dc3j {
40
40
  position: fixed;
41
- } .drawer__customScrollbar_1bj8x {
41
+ } .drawer__customScrollbar_1dc3j {
42
42
  overflow: auto;
43
43
  cursor: auto;
44
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar {
44
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar {
45
45
  width: 12px;
46
46
  height: 12px;
47
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track {
47
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track {
48
48
  background-color: transparent;
49
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track-piece {
49
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track-piece {
50
50
  background-color: transparent;
51
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb {
51
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical {
57
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical {
58
58
  border-radius: var(--border-radius-circle) / var(--border-radius-6);
59
59
  min-height: 40px;
60
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical:hover {
60
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical:hover {
61
61
  border-radius: var(--border-radius-circle) / 7px;
62
62
  border-width: 4px 3px;
63
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal {
63
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal {
64
64
  border-radius: var(--border-radius-6) / var(--border-radius-circle);
65
65
  min-width: 40px;
66
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal:hover {
66
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal:hover {
67
67
  border-radius: 7px / var(--border-radius-circle);
68
68
  border-width: 3px 4px;
69
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:active {
69
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:active {
70
70
  background-color: var(--color-light-text-secondary);
71
- } .drawer__customScrollbar_1bj8x::-webkit-resizer {
71
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-button,
75
- .drawer__customScrollbar_1bj8x::-webkit-scrollbar-corner {
74
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-button,
75
+ .drawer__customScrollbar_1dc3j::-webkit-scrollbar-corner {
76
76
  display: none;
77
- } .drawer__rightPlacement_1bj8x {
77
+ } .drawer__rightPlacement_1dc3j {
78
78
  right: var(--gap-0);
79
79
  align-self: flex-end;
80
- } .drawer__leftPlacement_1bj8x {
80
+ } .drawer__leftPlacement_1dc3j {
81
81
  left: var(--gap-0);
82
82
  align-self: flex-start;
83
- } .drawer__content_1bj8x {
83
+ } .drawer__content_1dc3j {
84
84
  width: 100%;
85
85
  display: flex;
86
86
  flex-direction: column;
87
87
  flex: 1;
88
- } /* enter */ .drawer__enterRight_1bj8x {
88
+ } /* enter */ .drawer__enterRight_1dc3j {
89
89
  transform: translateX(100%);
90
- } .drawer__enterLeft_1bj8x {
90
+ } .drawer__enterLeft_1dc3j {
91
91
  transform: translateX(-100%);
92
- } .drawer__contentEnter_1bj8x {
92
+ } .drawer__contentEnter_1dc3j {
93
93
  opacity: 0;
94
- } .drawer__backdropEnter_1bj8x {
94
+ } .drawer__backdropEnter_1dc3j {
95
95
  background-color: var(--backdrop-hidden-background);
96
- } .drawer__enterActive_1bj8x {
96
+ } .drawer__enterActive_1dc3j {
97
97
  transition: transform 0.3s ease-in-out;
98
98
  transform: translateX(0);
99
- } .drawer__backdropEnterActive_1bj8x,
100
- .drawer__backdropEnterDone_1bj8x {
99
+ } .drawer__backdropEnterActive_1dc3j,
100
+ .drawer__backdropEnterDone_1dc3j {
101
101
  transition: background 0.3s ease-in-out;
102
102
  background-color: var(--backdrop-visible-background);
103
- } .drawer__contentEnterActive_1bj8x {
103
+ } .drawer__contentEnterActive_1dc3j {
104
104
  transition: opacity 0.2s ease-in-out 0.3s;
105
105
  opacity: 1;
106
- } /* exit */ .drawer__exit_1bj8x {
106
+ } /* exit */ .drawer__exit_1dc3j {
107
107
  transform: translateX(0);
108
- } .drawer__backdropExit_1bj8x {
108
+ } .drawer__backdropExit_1dc3j {
109
109
  background-color: var(--backdrop-visible-background);
110
- } .drawer__contentExit_1bj8x {
110
+ } .drawer__contentExit_1dc3j {
111
111
  opacity: 1;
112
- } .drawer__exitActiveRight_1bj8x {
112
+ } .drawer__exitActiveRight_1dc3j {
113
113
  transition: transform 0.25s ease-in-out 0.1s;
114
114
  transform: translateX(100%);
115
- } .drawer__exitActiveLeft_1bj8x {
115
+ } .drawer__exitActiveLeft_1dc3j {
116
116
  transition: transform 0.25s ease-in-out 0.1s;
117
117
  transform: translateX(-100%);
118
- } .drawer__backdropExitActive_1bj8x,
119
- .drawer__backdropExitDone_1bj8x {
118
+ } .drawer__backdropExitActive_1dc3j,
119
+ .drawer__backdropExitDone_1dc3j {
120
120
  transition: background 0.25s ease-in-out 0.1s;
121
121
  background-color: var(--backdrop-hidden-background);
122
- } .drawer__contentExitActive_1bj8x {
122
+ } .drawer__contentExitActive_1dc3j {
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: oukzc */
1
+ /* hash: 1gb7u */
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
- } .drawer__component_1bj8x {
32
+ } .drawer__component_1dc3j {
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
- } .drawer__component_1bj8x.drawer__component_1bj8x {
39
+ } .drawer__component_1dc3j.drawer__component_1dc3j {
40
40
  position: fixed;
41
- } .drawer__customScrollbar_1bj8x {
41
+ } .drawer__customScrollbar_1dc3j {
42
42
  overflow: auto;
43
43
  cursor: auto;
44
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar {
44
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar {
45
45
  width: 12px;
46
46
  height: 12px;
47
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track {
47
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track {
48
48
  background-color: transparent;
49
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track-piece {
49
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track-piece {
50
50
  background-color: transparent;
51
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb {
51
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical {
57
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical {
58
58
  border-radius: var(--border-radius-circle) / var(--border-radius-6);
59
59
  min-height: 40px;
60
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical:hover {
60
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical:hover {
61
61
  border-radius: var(--border-radius-circle) / 7px;
62
62
  border-width: 4px 3px;
63
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal {
63
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal {
64
64
  border-radius: var(--border-radius-6) / var(--border-radius-circle);
65
65
  min-width: 40px;
66
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal:hover {
66
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal:hover {
67
67
  border-radius: 7px / var(--border-radius-circle);
68
68
  border-width: 3px 4px;
69
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:active {
69
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:active {
70
70
  background-color: var(--color-light-text-secondary);
71
- } .drawer__customScrollbar_1bj8x::-webkit-resizer {
71
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-button,
75
- .drawer__customScrollbar_1bj8x::-webkit-scrollbar-corner {
74
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-button,
75
+ .drawer__customScrollbar_1dc3j::-webkit-scrollbar-corner {
76
76
  display: none;
77
- } .drawer__rightPlacement_1bj8x {
77
+ } .drawer__rightPlacement_1dc3j {
78
78
  right: var(--gap-0);
79
79
  align-self: flex-end;
80
- } .drawer__leftPlacement_1bj8x {
80
+ } .drawer__leftPlacement_1dc3j {
81
81
  left: var(--gap-0);
82
82
  align-self: flex-start;
83
- } .drawer__content_1bj8x {
83
+ } .drawer__content_1dc3j {
84
84
  width: 100%;
85
85
  display: flex;
86
86
  flex-direction: column;
87
87
  flex: 1;
88
- } /* enter */ .drawer__enterRight_1bj8x {
88
+ } /* enter */ .drawer__enterRight_1dc3j {
89
89
  transform: translateX(100%);
90
- } .drawer__enterLeft_1bj8x {
90
+ } .drawer__enterLeft_1dc3j {
91
91
  transform: translateX(-100%);
92
- } .drawer__contentEnter_1bj8x {
92
+ } .drawer__contentEnter_1dc3j {
93
93
  opacity: 0;
94
- } .drawer__backdropEnter_1bj8x {
94
+ } .drawer__backdropEnter_1dc3j {
95
95
  background-color: var(--backdrop-hidden-background);
96
- } .drawer__enterActive_1bj8x {
96
+ } .drawer__enterActive_1dc3j {
97
97
  transition: transform 0.3s ease-in-out;
98
98
  transform: translateX(0);
99
- } .drawer__backdropEnterActive_1bj8x,
100
- .drawer__backdropEnterDone_1bj8x {
99
+ } .drawer__backdropEnterActive_1dc3j,
100
+ .drawer__backdropEnterDone_1dc3j {
101
101
  transition: background 0.3s ease-in-out;
102
102
  background-color: var(--backdrop-visible-background);
103
- } .drawer__contentEnterActive_1bj8x {
103
+ } .drawer__contentEnterActive_1dc3j {
104
104
  transition: opacity 0.2s ease-in-out 0.3s;
105
105
  opacity: 1;
106
- } /* exit */ .drawer__exit_1bj8x {
106
+ } /* exit */ .drawer__exit_1dc3j {
107
107
  transform: translateX(0);
108
- } .drawer__backdropExit_1bj8x {
108
+ } .drawer__backdropExit_1dc3j {
109
109
  background-color: var(--backdrop-visible-background);
110
- } .drawer__contentExit_1bj8x {
110
+ } .drawer__contentExit_1dc3j {
111
111
  opacity: 1;
112
- } .drawer__exitActiveRight_1bj8x {
112
+ } .drawer__exitActiveRight_1dc3j {
113
113
  transition: transform 0.25s ease-in-out 0.1s;
114
114
  transform: translateX(100%);
115
- } .drawer__exitActiveLeft_1bj8x {
115
+ } .drawer__exitActiveLeft_1dc3j {
116
116
  transition: transform 0.25s ease-in-out 0.1s;
117
117
  transform: translateX(-100%);
118
- } .drawer__backdropExitActive_1bj8x,
119
- .drawer__backdropExitDone_1bj8x {
118
+ } .drawer__backdropExitActive_1dc3j,
119
+ .drawer__backdropExitDone_1dc3j {
120
120
  transition: background 0.25s ease-in-out 0.1s;
121
121
  background-color: var(--backdrop-hidden-background);
122
- } .drawer__contentExitActive_1bj8x {
122
+ } .drawer__contentExitActive_1dc3j {
123
123
  opacity: 0;
124
124
  transition: opacity 0.12s ease-in-out;
125
125
  }
@@ -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":"drawer__component_1bj8x","customScrollbar":"drawer__customScrollbar_1bj8x","rightPlacement":"drawer__rightPlacement_1bj8x","leftPlacement":"drawer__leftPlacement_1bj8x","content":"drawer__content_1bj8x","enterRight":"drawer__enterRight_1bj8x","enterLeft":"drawer__enterLeft_1bj8x","contentEnter":"drawer__contentEnter_1bj8x","backdropEnter":"drawer__backdropEnter_1bj8x","enterActive":"drawer__enterActive_1bj8x","backdropEnterActive":"drawer__backdropEnterActive_1bj8x","backdropEnterDone":"drawer__backdropEnterDone_1bj8x","contentEnterActive":"drawer__contentEnterActive_1bj8x","exit":"drawer__exit_1bj8x","backdropExit":"drawer__backdropExit_1bj8x","contentExit":"drawer__contentExit_1bj8x","exitActiveRight":"drawer__exitActiveRight_1bj8x","exitActiveLeft":"drawer__exitActiveLeft_1bj8x","backdropExitActive":"drawer__backdropExitActive_1bj8x","backdropExitDone":"drawer__backdropExitDone_1bj8x","contentExitActive":"drawer__contentExitActive_1bj8x"};
6
+ const styles = {"component":"drawer__component_1dc3j","customScrollbar":"drawer__customScrollbar_1dc3j","rightPlacement":"drawer__rightPlacement_1dc3j","leftPlacement":"drawer__leftPlacement_1dc3j","content":"drawer__content_1dc3j","enterRight":"drawer__enterRight_1dc3j","enterLeft":"drawer__enterLeft_1dc3j","contentEnter":"drawer__contentEnter_1dc3j","backdropEnter":"drawer__backdropEnter_1dc3j","enterActive":"drawer__enterActive_1dc3j","backdropEnterActive":"drawer__backdropEnterActive_1dc3j","backdropEnterDone":"drawer__backdropEnterDone_1dc3j","contentEnterActive":"drawer__contentEnterActive_1dc3j","exit":"drawer__exit_1dc3j","backdropExit":"drawer__backdropExit_1dc3j","contentExit":"drawer__contentExit_1dc3j","exitActiveRight":"drawer__exitActiveRight_1dc3j","exitActiveLeft":"drawer__exitActiveLeft_1dc3j","backdropExitActive":"drawer__backdropExitActive_1dc3j","backdropExitDone":"drawer__backdropExitDone_1dc3j","contentExitActive":"drawer__contentExitActive_1dc3j"};
7
7
  require('./index.css')
8
8
 
9
9
  const ANIMATION_DURATION = 600;
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: oukzc */
1
+ /* hash: 1gb7u */
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
- } .drawer__component_1bj8x {
32
+ } .drawer__component_1dc3j {
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
- } .drawer__component_1bj8x.drawer__component_1bj8x {
39
+ } .drawer__component_1dc3j.drawer__component_1dc3j {
40
40
  position: fixed;
41
- } .drawer__customScrollbar_1bj8x {
41
+ } .drawer__customScrollbar_1dc3j {
42
42
  overflow: auto;
43
43
  cursor: auto;
44
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar {
44
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar {
45
45
  width: 12px;
46
46
  height: 12px;
47
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track {
47
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track {
48
48
  background-color: transparent;
49
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-track-piece {
49
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-track-piece {
50
50
  background-color: transparent;
51
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb {
51
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical {
57
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical {
58
58
  border-radius: var(--border-radius-circle) / var(--border-radius-6);
59
59
  min-height: 40px;
60
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:vertical:hover {
60
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:vertical:hover {
61
61
  border-radius: var(--border-radius-circle) / 7px;
62
62
  border-width: 4px 3px;
63
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal {
63
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal {
64
64
  border-radius: var(--border-radius-6) / var(--border-radius-circle);
65
65
  min-width: 40px;
66
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:horizontal:hover {
66
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:horizontal:hover {
67
67
  border-radius: 7px / var(--border-radius-circle);
68
68
  border-width: 3px 4px;
69
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-thumb:active {
69
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-thumb:active {
70
70
  background-color: var(--color-light-text-secondary);
71
- } .drawer__customScrollbar_1bj8x::-webkit-resizer {
71
+ } .drawer__customScrollbar_1dc3j::-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
- } .drawer__customScrollbar_1bj8x::-webkit-scrollbar-button,
75
- .drawer__customScrollbar_1bj8x::-webkit-scrollbar-corner {
74
+ } .drawer__customScrollbar_1dc3j::-webkit-scrollbar-button,
75
+ .drawer__customScrollbar_1dc3j::-webkit-scrollbar-corner {
76
76
  display: none;
77
- } .drawer__rightPlacement_1bj8x {
77
+ } .drawer__rightPlacement_1dc3j {
78
78
  right: var(--gap-0);
79
79
  align-self: flex-end;
80
- } .drawer__leftPlacement_1bj8x {
80
+ } .drawer__leftPlacement_1dc3j {
81
81
  left: var(--gap-0);
82
82
  align-self: flex-start;
83
- } .drawer__content_1bj8x {
83
+ } .drawer__content_1dc3j {
84
84
  width: 100%;
85
85
  display: flex;
86
86
  flex-direction: column;
87
87
  flex: 1;
88
- } /* enter */ .drawer__enterRight_1bj8x {
88
+ } /* enter */ .drawer__enterRight_1dc3j {
89
89
  transform: translateX(100%);
90
- } .drawer__enterLeft_1bj8x {
90
+ } .drawer__enterLeft_1dc3j {
91
91
  transform: translateX(-100%);
92
- } .drawer__contentEnter_1bj8x {
92
+ } .drawer__contentEnter_1dc3j {
93
93
  opacity: 0;
94
- } .drawer__backdropEnter_1bj8x {
94
+ } .drawer__backdropEnter_1dc3j {
95
95
  background-color: var(--backdrop-hidden-background);
96
- } .drawer__enterActive_1bj8x {
96
+ } .drawer__enterActive_1dc3j {
97
97
  transition: transform 0.3s ease-in-out;
98
98
  transform: translateX(0);
99
- } .drawer__backdropEnterActive_1bj8x,
100
- .drawer__backdropEnterDone_1bj8x {
99
+ } .drawer__backdropEnterActive_1dc3j,
100
+ .drawer__backdropEnterDone_1dc3j {
101
101
  transition: background 0.3s ease-in-out;
102
102
  background-color: var(--backdrop-visible-background);
103
- } .drawer__contentEnterActive_1bj8x {
103
+ } .drawer__contentEnterActive_1dc3j {
104
104
  transition: opacity 0.2s ease-in-out 0.3s;
105
105
  opacity: 1;
106
- } /* exit */ .drawer__exit_1bj8x {
106
+ } /* exit */ .drawer__exit_1dc3j {
107
107
  transform: translateX(0);
108
- } .drawer__backdropExit_1bj8x {
108
+ } .drawer__backdropExit_1dc3j {
109
109
  background-color: var(--backdrop-visible-background);
110
- } .drawer__contentExit_1bj8x {
110
+ } .drawer__contentExit_1dc3j {
111
111
  opacity: 1;
112
- } .drawer__exitActiveRight_1bj8x {
112
+ } .drawer__exitActiveRight_1dc3j {
113
113
  transition: transform 0.25s ease-in-out 0.1s;
114
114
  transform: translateX(100%);
115
- } .drawer__exitActiveLeft_1bj8x {
115
+ } .drawer__exitActiveLeft_1dc3j {
116
116
  transition: transform 0.25s ease-in-out 0.1s;
117
117
  transform: translateX(-100%);
118
- } .drawer__backdropExitActive_1bj8x,
119
- .drawer__backdropExitDone_1bj8x {
118
+ } .drawer__backdropExitActive_1dc3j,
119
+ .drawer__backdropExitDone_1dc3j {
120
120
  transition: background 0.25s ease-in-out 0.1s;
121
121
  background-color: var(--backdrop-hidden-background);
122
- } .drawer__contentExitActive_1bj8x {
122
+ } .drawer__contentExitActive_1dc3j {
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.2",
3
+ "version": "5.1.4",
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.2",
18
+ "@alfalab/core-components-base-modal": "^5.8.4",
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.4.0",
24
- "varsVersion": "9.13.1"
23
+ "themesVersion": "13.5.0",
24
+ "varsVersion": "9.15.0"
25
25
  }