@alfalab/core-components-popup-sheet 1.2.1 → 1.2.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 CHANGED
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
16
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
18
 
19
- var styles = {"component":"popup-sheet__component_1a6cd","closer":"popup-sheet__closer_1a6cd","content":"popup-sheet__content_1a6cd","appear":"popup-sheet__appear_1a6cd","enter":"popup-sheet__enter_1a6cd","appearActive":"popup-sheet__appearActive_1a6cd","enterActive":"popup-sheet__enterActive_1a6cd","exit":"popup-sheet__exit_1a6cd","exitBySwipe":"popup-sheet__exitBySwipe_1a6cd","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1a6cd","exitActive":"popup-sheet__exitActive_1a6cd","exitDone":"popup-sheet__exitDone_1a6cd"};
19
+ var styles = {"component":"popup-sheet__component_1iixg","closer":"popup-sheet__closer_1iixg","content":"popup-sheet__content_1iixg","appear":"popup-sheet__appear_1iixg","enter":"popup-sheet__enter_1iixg","appearActive":"popup-sheet__appearActive_1iixg","enterActive":"popup-sheet__enterActive_1iixg","exit":"popup-sheet__exit_1iixg","exitBySwipe":"popup-sheet__exitBySwipe_1iixg","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1iixg","exitActive":"popup-sheet__exitActive_1iixg","exitDone":"popup-sheet__exitDone_1iixg"};
20
20
  require('./index.css')
21
21
 
22
22
  var SWIPE_VELOCITY = 0.3;
@@ -134,5 +134,6 @@ var PopupSheet = React.forwardRef(function (_a, ref) {
134
134
  hasCloser && (React__default.default.createElement(shared.Closer, { view: 'mobile', className: styles.closer, onClick: onClose, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer') })),
135
135
  children));
136
136
  });
137
+ PopupSheet.displayName = 'PopupSheet';
137
138
 
138
139
  exports.PopupSheet = PopupSheet;
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
 
13
- var styles = {"appear":"popup-sheet__appear_p5au4","enter":"popup-sheet__enter_p5au4","appearActive":"popup-sheet__appearActive_p5au4","enterActive":"popup-sheet__enterActive_p5au4","appearDone":"popup-sheet__appearDone_p5au4","enterDone":"popup-sheet__enterDone_p5au4","exit":"popup-sheet__exit_p5au4","exitActive":"popup-sheet__exitActive_p5au4","exitDone":"popup-sheet__exitDone_p5au4"};
13
+ var styles = {"appear":"popup-sheet__appear_1ap8n","enter":"popup-sheet__enter_1ap8n","appearActive":"popup-sheet__appearActive_1ap8n","enterActive":"popup-sheet__enterActive_1ap8n","appearDone":"popup-sheet__appearDone_1ap8n","enterDone":"popup-sheet__enterDone_1ap8n","exit":"popup-sheet__exit_1ap8n","exitActive":"popup-sheet__exitActive_1ap8n","exitDone":"popup-sheet__exitDone_1ap8n"};
14
14
  require('./index.css')
15
15
 
16
16
  var PopupBackdrop = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: dnb3v */
1
+ /* hash: xm54m */
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-overlay-default: 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 */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_p5au4,
22
- .popup-sheet__enter_p5au4 {
21
+ } .popup-sheet__appear_1ap8n,
22
+ .popup-sheet__enter_1ap8n {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_p5au4,
25
- .popup-sheet__enterActive_p5au4,
26
- .popup-sheet__appearDone_p5au4,
27
- .popup-sheet__enterDone_p5au4 {
24
+ } .popup-sheet__appearActive_1ap8n,
25
+ .popup-sheet__enterActive_1ap8n,
26
+ .popup-sheet__appearDone_1ap8n,
27
+ .popup-sheet__enterDone_1ap8n {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_p5au4 {
30
+ } .popup-sheet__exit_1ap8n {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_p5au4,
33
- .popup-sheet__exitDone_p5au4 {
32
+ } .popup-sheet__exitActive_1ap8n,
33
+ .popup-sheet__exitDone_1ap8n {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/cssm/Component.js CHANGED
@@ -133,5 +133,6 @@ var PopupSheet = React.forwardRef(function (_a, ref) {
133
133
  hasCloser && (React__default.default.createElement(shared.Closer, { view: 'mobile', className: styles__default.default.closer, onClick: onClose, dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'closer') })),
134
134
  children));
135
135
  });
136
+ PopupSheet.displayName = 'PopupSheet';
136
137
 
137
138
  exports.PopupSheet = PopupSheet;
package/esm/Component.js CHANGED
@@ -7,7 +7,7 @@ import { Closer } from '@alfalab/core-components-navigation-bar-private/esm/shar
7
7
  import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-components-shared/esm';
8
8
  import { PopupBackdrop } from './components/backdrop/Component.js';
9
9
 
10
- var styles = {"component":"popup-sheet__component_1a6cd","closer":"popup-sheet__closer_1a6cd","content":"popup-sheet__content_1a6cd","appear":"popup-sheet__appear_1a6cd","enter":"popup-sheet__enter_1a6cd","appearActive":"popup-sheet__appearActive_1a6cd","enterActive":"popup-sheet__enterActive_1a6cd","exit":"popup-sheet__exit_1a6cd","exitBySwipe":"popup-sheet__exitBySwipe_1a6cd","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1a6cd","exitActive":"popup-sheet__exitActive_1a6cd","exitDone":"popup-sheet__exitDone_1a6cd"};
10
+ var styles = {"component":"popup-sheet__component_1iixg","closer":"popup-sheet__closer_1iixg","content":"popup-sheet__content_1iixg","appear":"popup-sheet__appear_1iixg","enter":"popup-sheet__enter_1iixg","appearActive":"popup-sheet__appearActive_1iixg","enterActive":"popup-sheet__enterActive_1iixg","exit":"popup-sheet__exit_1iixg","exitBySwipe":"popup-sheet__exitBySwipe_1iixg","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1iixg","exitActive":"popup-sheet__exitActive_1iixg","exitDone":"popup-sheet__exitDone_1iixg"};
11
11
  require('./index.css')
12
12
 
13
13
  var SWIPE_VELOCITY = 0.3;
@@ -125,5 +125,6 @@ var PopupSheet = forwardRef(function (_a, ref) {
125
125
  hasCloser && (React.createElement(Closer, { view: 'mobile', className: styles.closer, onClick: onClose, dataTestId: getDataTestId(dataTestId, 'closer') })),
126
126
  children));
127
127
  });
128
+ PopupSheet.displayName = 'PopupSheet';
128
129
 
129
130
  export { PopupSheet };
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { Backdrop } from '@alfalab/core-components-backdrop/esm';
4
4
 
5
- var styles = {"appear":"popup-sheet__appear_p5au4","enter":"popup-sheet__enter_p5au4","appearActive":"popup-sheet__appearActive_p5au4","enterActive":"popup-sheet__enterActive_p5au4","appearDone":"popup-sheet__appearDone_p5au4","enterDone":"popup-sheet__enterDone_p5au4","exit":"popup-sheet__exit_p5au4","exitActive":"popup-sheet__exitActive_p5au4","exitDone":"popup-sheet__exitDone_p5au4"};
5
+ var styles = {"appear":"popup-sheet__appear_1ap8n","enter":"popup-sheet__enter_1ap8n","appearActive":"popup-sheet__appearActive_1ap8n","enterActive":"popup-sheet__enterActive_1ap8n","appearDone":"popup-sheet__appearDone_1ap8n","enterDone":"popup-sheet__enterDone_1ap8n","exit":"popup-sheet__exit_1ap8n","exitActive":"popup-sheet__exitActive_1ap8n","exitDone":"popup-sheet__exitDone_1ap8n"};
6
6
  require('./index.css')
7
7
 
8
8
  var PopupBackdrop = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: dnb3v */
1
+ /* hash: xm54m */
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-overlay-default: 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 */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_p5au4,
22
- .popup-sheet__enter_p5au4 {
21
+ } .popup-sheet__appear_1ap8n,
22
+ .popup-sheet__enter_1ap8n {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_p5au4,
25
- .popup-sheet__enterActive_p5au4,
26
- .popup-sheet__appearDone_p5au4,
27
- .popup-sheet__enterDone_p5au4 {
24
+ } .popup-sheet__appearActive_1ap8n,
25
+ .popup-sheet__enterActive_1ap8n,
26
+ .popup-sheet__appearDone_1ap8n,
27
+ .popup-sheet__enterDone_1ap8n {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_p5au4 {
30
+ } .popup-sheet__exit_1ap8n {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_p5au4,
33
- .popup-sheet__exitDone_p5au4 {
32
+ } .popup-sheet__exitActive_1ap8n,
33
+ .popup-sheet__exitDone_1ap8n {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5466s */
1
+ /* hash: 1p9ui */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_1a6cd {
18
+ } .popup-sheet__component_1iixg {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_1a6cd {
26
+ } .popup-sheet__closer_1iixg {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_1a6cd > button {
30
+ } .popup-sheet__closer_1iixg > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_1a6cd {
33
+ } .popup-sheet__content_1iixg {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1a6cd,
36
- .popup-sheet__enter_1a6cd {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1iixg,
36
+ .popup-sheet__enter_1iixg {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_1a6cd,
39
- .popup-sheet__enterActive_1a6cd {
38
+ } .popup-sheet__appearActive_1iixg,
39
+ .popup-sheet__enterActive_1iixg {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_1a6cd {
43
+ } .popup-sheet__exit_1iixg {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_1a6cd {
45
+ } .popup-sheet__exitBySwipe_1iixg {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_1a6cd {
47
+ } .popup-sheet__exitActiveBySwipe_1iixg {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_1a6cd,
50
- .popup-sheet__exitDone_1a6cd {
49
+ } .popup-sheet__exitActive_1iixg,
50
+ .popup-sheet__exitDone_1iixg {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5466s */
1
+ /* hash: 1p9ui */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_1a6cd {
18
+ } .popup-sheet__component_1iixg {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_1a6cd {
26
+ } .popup-sheet__closer_1iixg {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_1a6cd > button {
30
+ } .popup-sheet__closer_1iixg > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_1a6cd {
33
+ } .popup-sheet__content_1iixg {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1a6cd,
36
- .popup-sheet__enter_1a6cd {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1iixg,
36
+ .popup-sheet__enter_1iixg {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_1a6cd,
39
- .popup-sheet__enterActive_1a6cd {
38
+ } .popup-sheet__appearActive_1iixg,
39
+ .popup-sheet__enterActive_1iixg {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_1a6cd {
43
+ } .popup-sheet__exit_1iixg {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_1a6cd {
45
+ } .popup-sheet__exitBySwipe_1iixg {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_1a6cd {
47
+ } .popup-sheet__exitActiveBySwipe_1iixg {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_1a6cd,
50
- .popup-sheet__exitDone_1a6cd {
49
+ } .popup-sheet__exitActive_1iixg,
50
+ .popup-sheet__exitDone_1iixg {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
@@ -6,7 +6,7 @@ import { Closer } from '@alfalab/core-components-navigation-bar-private/modern/s
6
6
  import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-components-shared/modern';
7
7
  import { PopupBackdrop } from './components/backdrop/Component.js';
8
8
 
9
- const styles = {"component":"popup-sheet__component_1a6cd","closer":"popup-sheet__closer_1a6cd","content":"popup-sheet__content_1a6cd","appear":"popup-sheet__appear_1a6cd","enter":"popup-sheet__enter_1a6cd","appearActive":"popup-sheet__appearActive_1a6cd","enterActive":"popup-sheet__enterActive_1a6cd","exit":"popup-sheet__exit_1a6cd","exitBySwipe":"popup-sheet__exitBySwipe_1a6cd","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1a6cd","exitActive":"popup-sheet__exitActive_1a6cd","exitDone":"popup-sheet__exitDone_1a6cd"};
9
+ const styles = {"component":"popup-sheet__component_1iixg","closer":"popup-sheet__closer_1iixg","content":"popup-sheet__content_1iixg","appear":"popup-sheet__appear_1iixg","enter":"popup-sheet__enter_1iixg","appearActive":"popup-sheet__appearActive_1iixg","enterActive":"popup-sheet__enterActive_1iixg","exit":"popup-sheet__exit_1iixg","exitBySwipe":"popup-sheet__exitBySwipe_1iixg","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_1iixg","exitActive":"popup-sheet__exitActive_1iixg","exitDone":"popup-sheet__exitDone_1iixg"};
10
10
  require('./index.css')
11
11
 
12
12
  const SWIPE_VELOCITY = 0.3;
@@ -131,5 +131,6 @@ const PopupSheet = forwardRef(({ children, hasCloser, className, onClose, transi
131
131
  hasCloser && (React.createElement(Closer, { view: 'mobile', className: styles.closer, onClick: onClose, dataTestId: getDataTestId(dataTestId, 'closer') })),
132
132
  children));
133
133
  });
134
+ PopupSheet.displayName = 'PopupSheet';
134
135
 
135
136
  export { PopupSheet };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Backdrop } from '@alfalab/core-components-backdrop/modern';
3
3
 
4
- const styles = {"appear":"popup-sheet__appear_p5au4","enter":"popup-sheet__enter_p5au4","appearActive":"popup-sheet__appearActive_p5au4","enterActive":"popup-sheet__enterActive_p5au4","appearDone":"popup-sheet__appearDone_p5au4","enterDone":"popup-sheet__enterDone_p5au4","exit":"popup-sheet__exit_p5au4","exitActive":"popup-sheet__exitActive_p5au4","exitDone":"popup-sheet__exitDone_p5au4"};
4
+ const styles = {"appear":"popup-sheet__appear_1ap8n","enter":"popup-sheet__enter_1ap8n","appearActive":"popup-sheet__appearActive_1ap8n","enterActive":"popup-sheet__enterActive_1ap8n","appearDone":"popup-sheet__appearDone_1ap8n","enterDone":"popup-sheet__enterDone_1ap8n","exit":"popup-sheet__exit_1ap8n","exitActive":"popup-sheet__exitActive_1ap8n","exitDone":"popup-sheet__exitDone_1ap8n"};
5
5
  require('./index.css')
6
6
 
7
7
  const PopupBackdrop = ({ opacity, opacityTimeout, style, ...backdropProps }) => (React.createElement("div", { style: {
@@ -1,4 +1,4 @@
1
- /* hash: dnb3v */
1
+ /* hash: xm54m */
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-overlay-default: 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 */
@@ -18,19 +18,19 @@
18
18
  } :root {
19
19
  --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_p5au4,
22
- .popup-sheet__enter_p5au4 {
21
+ } .popup-sheet__appear_1ap8n,
22
+ .popup-sheet__enter_1ap8n {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_p5au4,
25
- .popup-sheet__enterActive_p5au4,
26
- .popup-sheet__appearDone_p5au4,
27
- .popup-sheet__enterDone_p5au4 {
24
+ } .popup-sheet__appearActive_1ap8n,
25
+ .popup-sheet__enterActive_1ap8n,
26
+ .popup-sheet__appearDone_1ap8n,
27
+ .popup-sheet__enterDone_1ap8n {
28
28
  background-color: var(--backdrop-visible-background);
29
29
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
30
- } .popup-sheet__exit_p5au4 {
30
+ } .popup-sheet__exit_1ap8n {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_p5au4,
33
- .popup-sheet__exitDone_p5au4 {
32
+ } .popup-sheet__exitActive_1ap8n,
33
+ .popup-sheet__exitDone_1ap8n {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 5466s */
1
+ /* hash: 1p9ui */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -15,7 +15,7 @@
15
15
  --gap-xs: 8px;
16
16
  } :root {
17
17
  } :root {
18
- } .popup-sheet__component_1a6cd {
18
+ } .popup-sheet__component_1iixg {
19
19
  position: fixed;
20
20
  bottom: 0;
21
21
  margin: auto var(--gap-xs) var(--gap-xs);
@@ -23,31 +23,31 @@
23
23
  max-width: 600px;
24
24
  border-radius: 36px;
25
25
  overflow: hidden;
26
- } .popup-sheet__closer_1a6cd {
26
+ } .popup-sheet__closer_1iixg {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_1a6cd > button {
30
+ } .popup-sheet__closer_1iixg > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_1a6cd {
33
+ } .popup-sheet__content_1iixg {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1a6cd,
36
- .popup-sheet__enter_1a6cd {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_1iixg,
36
+ .popup-sheet__enter_1iixg {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_1a6cd,
39
- .popup-sheet__enterActive_1a6cd {
38
+ } .popup-sheet__appearActive_1iixg,
39
+ .popup-sheet__enterActive_1iixg {
40
40
  transform: translateY(0);
41
41
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
42
42
  transition-delay: 50ms;
43
- } .popup-sheet__exit_1a6cd {
43
+ } .popup-sheet__exit_1iixg {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_1a6cd {
45
+ } .popup-sheet__exitBySwipe_1iixg {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_1a6cd {
47
+ } .popup-sheet__exitActiveBySwipe_1iixg {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_1a6cd,
50
- .popup-sheet__exitDone_1a6cd {
49
+ } .popup-sheet__exitActive_1iixg,
50
+ .popup-sheet__exitDone_1iixg {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-popup-sheet",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Popup sheet mobile component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,10 +15,10 @@
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.5",
18
+ "@alfalab/core-components-base-modal": "^5.7.6",
19
19
  "@alfalab/core-components-backdrop": "^3.2.0",
20
20
  "@alfalab/core-components-shared": "^0.10.0",
21
- "@alfalab/core-components-navigation-bar-private": "^0.1.1",
21
+ "@alfalab/core-components-navigation-bar-private": "^0.1.3",
22
22
  "react-swipeable": "^7.0.0",
23
23
  "classnames": "^2.3.1",
24
24
  "tslib": "^2.4.0"
package/src/Component.tsx CHANGED
@@ -233,3 +233,5 @@ export const PopupSheet = forwardRef<HTMLDivElement, PopupSheetProps>(
233
233
  );
234
234
  },
235
235
  );
236
+
237
+ PopupSheet.displayName = 'PopupSheet';