@alfalab/core-components-popup-sheet 1.0.12 → 1.0.13

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.d.ts CHANGED
@@ -8,7 +8,7 @@ type PaddingType = number | string | {
8
8
  bottom?: number;
9
9
  left?: number;
10
10
  };
11
- type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
11
+ type PopupSheetProps = Omit<BaseModalProps, 'onClose' | 'dataTestId'> & {
12
12
  /**
13
13
  * Наличие кнопки закрытия
14
14
  */
@@ -25,8 +25,13 @@ type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
25
25
  * Обработчик закрытия
26
26
  */
27
27
  onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void;
28
+ /**
29
+ * Идентификатор для систем автоматизированного тестирования.
30
+ * Для кнопки закрытия используется модификатор -closer
31
+ */
32
+ dataTestId?: string;
28
33
  };
29
- declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose"> & {
34
+ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose" | "dataTestId"> & {
30
35
  /**
31
36
  * Наличие кнопки закрытия
32
37
  */
@@ -43,5 +48,10 @@ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "
43
48
  * Обработчик закрытия
44
49
  */
45
50
  onClose?: ((event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void) | undefined;
51
+ /**
52
+ * Идентификатор для систем автоматизированного тестирования.
53
+ * Для кнопки закрытия используется модификатор -closer
54
+ */
55
+ dataTestId?: string | undefined;
46
56
  } & React.RefAttributes<HTMLDivElement>>;
47
57
  export { PopupSheetProps, PopupSheet };
package/Component.js CHANGED
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"component":"popup-sheet__component_16o71","closer":"popup-sheet__closer_16o71","content":"popup-sheet__content_16o71","appear":"popup-sheet__appear_16o71","enter":"popup-sheet__enter_16o71","appearActive":"popup-sheet__appearActive_16o71","enterActive":"popup-sheet__enterActive_16o71","exit":"popup-sheet__exit_16o71","exitBySwipe":"popup-sheet__exitBySwipe_16o71","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_16o71","exitActive":"popup-sheet__exitActive_16o71","exitDone":"popup-sheet__exitDone_16o71"};
20
+ var styles = {"component":"popup-sheet__component_y0tu7","closer":"popup-sheet__closer_y0tu7","content":"popup-sheet__content_y0tu7","appear":"popup-sheet__appear_y0tu7","enter":"popup-sheet__enter_y0tu7","appearActive":"popup-sheet__appearActive_y0tu7","enterActive":"popup-sheet__enterActive_y0tu7","exit":"popup-sheet__exit_y0tu7","exitBySwipe":"popup-sheet__exitBySwipe_y0tu7","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_y0tu7","exitActive":"popup-sheet__exitActive_y0tu7","exitDone":"popup-sheet__exitDone_y0tu7"};
21
21
  require('./index.css')
22
22
 
23
23
  var SWIPE_VELOCITY = 0.3;
@@ -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_1t6vo","enter":"popup-sheet__enter_1t6vo","appearActive":"popup-sheet__appearActive_1t6vo","enterActive":"popup-sheet__enterActive_1t6vo","appearDone":"popup-sheet__appearDone_1t6vo","enterDone":"popup-sheet__enterDone_1t6vo","exit":"popup-sheet__exit_1t6vo","exitActive":"popup-sheet__exitActive_1t6vo","exitDone":"popup-sheet__exitDone_1t6vo"};
13
+ var styles = {"appear":"popup-sheet__appear_stoax","enter":"popup-sheet__enter_stoax","appearActive":"popup-sheet__appearActive_stoax","enterActive":"popup-sheet__enterActive_stoax","appearDone":"popup-sheet__appearDone_stoax","enterDone":"popup-sheet__enterDone_stoax","exit":"popup-sheet__exit_stoax","exitActive":"popup-sheet__exitActive_stoax","exitDone":"popup-sheet__exitDone_stoax"};
14
14
  require('./index.css')
15
15
 
16
16
  var PopupBackdrop = function (_a) {
@@ -1,7 +1,7 @@
1
- /* hash: 14rgg */
1
+ /* hash: 89m6x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-bg-overlay: rgba(0, 0, 0, 0.65); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --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 */
5
5
  } :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 */
6
6
  } :root {
7
7
  } :root {
@@ -16,21 +16,21 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- --backdrop-visible-background: var(--color-light-bg-overlay);
19
+ --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_1t6vo,
22
- .popup-sheet__enter_1t6vo {
21
+ } .popup-sheet__appear_stoax,
22
+ .popup-sheet__enter_stoax {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_1t6vo,
25
- .popup-sheet__enterActive_1t6vo,
26
- .popup-sheet__appearDone_1t6vo,
27
- .popup-sheet__enterDone_1t6vo {
24
+ } .popup-sheet__appearActive_stoax,
25
+ .popup-sheet__enterActive_stoax,
26
+ .popup-sheet__appearDone_stoax,
27
+ .popup-sheet__enterDone_stoax {
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_1t6vo {
30
+ } .popup-sheet__exit_stoax {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_1t6vo,
33
- .popup-sheet__exitDone_1t6vo {
32
+ } .popup-sheet__exitActive_stoax,
33
+ .popup-sheet__exitDone_stoax {
34
34
  background-color: var(--backdrop-hidden-background);
35
35
  transition: background-color 300ms cubic-bezier(0.65, 0, 0.35, 1);
36
36
  }
@@ -8,7 +8,7 @@ type PaddingType = number | string | {
8
8
  bottom?: number;
9
9
  left?: number;
10
10
  };
11
- type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
11
+ type PopupSheetProps = Omit<BaseModalProps, 'onClose' | 'dataTestId'> & {
12
12
  /**
13
13
  * Наличие кнопки закрытия
14
14
  */
@@ -25,8 +25,13 @@ type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
25
25
  * Обработчик закрытия
26
26
  */
27
27
  onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void;
28
+ /**
29
+ * Идентификатор для систем автоматизированного тестирования.
30
+ * Для кнопки закрытия используется модификатор -closer
31
+ */
32
+ dataTestId?: string;
28
33
  };
29
- declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose"> & {
34
+ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose" | "dataTestId"> & {
30
35
  /**
31
36
  * Наличие кнопки закрытия
32
37
  */
@@ -43,5 +48,10 @@ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "
43
48
  * Обработчик закрытия
44
49
  */
45
50
  onClose?: ((event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void) | undefined;
51
+ /**
52
+ * Идентификатор для систем автоматизированного тестирования.
53
+ * Для кнопки закрытия используется модификатор -closer
54
+ */
55
+ dataTestId?: string | undefined;
46
56
  } & React.RefAttributes<HTMLDivElement>>;
47
57
  export { PopupSheetProps, PopupSheet };
@@ -1,6 +1,6 @@
1
1
  :root {
2
2
  } /* deprecated */ :root {
3
- --color-light-bg-overlay: rgba(0, 0, 0, 0.65); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --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 */
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 */
5
5
  } :root {
6
6
  } :root {
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- --backdrop-visible-background: var(--color-light-bg-overlay);
18
+ --backdrop-visible-background: var(--color-light-overlay-default);
19
19
  --backdrop-hidden-background: transparent;
20
20
  } .appear,
21
21
  .enter {
@@ -8,7 +8,7 @@ type PaddingType = number | string | {
8
8
  bottom?: number;
9
9
  left?: number;
10
10
  };
11
- type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
11
+ type PopupSheetProps = Omit<BaseModalProps, 'onClose' | 'dataTestId'> & {
12
12
  /**
13
13
  * Наличие кнопки закрытия
14
14
  */
@@ -25,8 +25,13 @@ type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
25
25
  * Обработчик закрытия
26
26
  */
27
27
  onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void;
28
+ /**
29
+ * Идентификатор для систем автоматизированного тестирования.
30
+ * Для кнопки закрытия используется модификатор -closer
31
+ */
32
+ dataTestId?: string;
28
33
  };
29
- declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose"> & {
34
+ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose" | "dataTestId"> & {
30
35
  /**
31
36
  * Наличие кнопки закрытия
32
37
  */
@@ -43,5 +48,10 @@ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "
43
48
  * Обработчик закрытия
44
49
  */
45
50
  onClose?: ((event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void) | undefined;
51
+ /**
52
+ * Идентификатор для систем автоматизированного тестирования.
53
+ * Для кнопки закрытия используется модификатор -closer
54
+ */
55
+ dataTestId?: string | undefined;
46
56
  } & React.RefAttributes<HTMLDivElement>>;
47
57
  export { PopupSheetProps, PopupSheet };
package/esm/Component.js CHANGED
@@ -8,7 +8,7 @@ import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-comp
8
8
  import { PopupBackdrop } from './components/backdrop/Component.js';
9
9
  import '@alfalab/core-components-backdrop/esm';
10
10
 
11
- var styles = {"component":"popup-sheet__component_16o71","closer":"popup-sheet__closer_16o71","content":"popup-sheet__content_16o71","appear":"popup-sheet__appear_16o71","enter":"popup-sheet__enter_16o71","appearActive":"popup-sheet__appearActive_16o71","enterActive":"popup-sheet__enterActive_16o71","exit":"popup-sheet__exit_16o71","exitBySwipe":"popup-sheet__exitBySwipe_16o71","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_16o71","exitActive":"popup-sheet__exitActive_16o71","exitDone":"popup-sheet__exitDone_16o71"};
11
+ var styles = {"component":"popup-sheet__component_y0tu7","closer":"popup-sheet__closer_y0tu7","content":"popup-sheet__content_y0tu7","appear":"popup-sheet__appear_y0tu7","enter":"popup-sheet__enter_y0tu7","appearActive":"popup-sheet__appearActive_y0tu7","enterActive":"popup-sheet__enterActive_y0tu7","exit":"popup-sheet__exit_y0tu7","exitBySwipe":"popup-sheet__exitBySwipe_y0tu7","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_y0tu7","exitActive":"popup-sheet__exitActive_y0tu7","exitDone":"popup-sheet__exitDone_y0tu7"};
12
12
  require('./index.css')
13
13
 
14
14
  var SWIPE_VELOCITY = 0.3;
@@ -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_1t6vo","enter":"popup-sheet__enter_1t6vo","appearActive":"popup-sheet__appearActive_1t6vo","enterActive":"popup-sheet__enterActive_1t6vo","appearDone":"popup-sheet__appearDone_1t6vo","enterDone":"popup-sheet__enterDone_1t6vo","exit":"popup-sheet__exit_1t6vo","exitActive":"popup-sheet__exitActive_1t6vo","exitDone":"popup-sheet__exitDone_1t6vo"};
5
+ var styles = {"appear":"popup-sheet__appear_stoax","enter":"popup-sheet__enter_stoax","appearActive":"popup-sheet__appearActive_stoax","enterActive":"popup-sheet__enterActive_stoax","appearDone":"popup-sheet__appearDone_stoax","enterDone":"popup-sheet__enterDone_stoax","exit":"popup-sheet__exit_stoax","exitActive":"popup-sheet__exitActive_stoax","exitDone":"popup-sheet__exitDone_stoax"};
6
6
  require('./index.css')
7
7
 
8
8
  var PopupBackdrop = function (_a) {
@@ -1,7 +1,7 @@
1
- /* hash: 14rgg */
1
+ /* hash: 89m6x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-bg-overlay: rgba(0, 0, 0, 0.65); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --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 */
5
5
  } :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 */
6
6
  } :root {
7
7
  } :root {
@@ -16,21 +16,21 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- --backdrop-visible-background: var(--color-light-bg-overlay);
19
+ --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_1t6vo,
22
- .popup-sheet__enter_1t6vo {
21
+ } .popup-sheet__appear_stoax,
22
+ .popup-sheet__enter_stoax {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_1t6vo,
25
- .popup-sheet__enterActive_1t6vo,
26
- .popup-sheet__appearDone_1t6vo,
27
- .popup-sheet__enterDone_1t6vo {
24
+ } .popup-sheet__appearActive_stoax,
25
+ .popup-sheet__enterActive_stoax,
26
+ .popup-sheet__appearDone_stoax,
27
+ .popup-sheet__enterDone_stoax {
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_1t6vo {
30
+ } .popup-sheet__exit_stoax {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_1t6vo,
33
- .popup-sheet__exitDone_1t6vo {
32
+ } .popup-sheet__exitActive_stoax,
33
+ .popup-sheet__exitDone_stoax {
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: hekdn */
1
+ /* hash: 1p18n */
2
2
  :root {
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_16o71 {
18
+ } .popup-sheet__component_y0tu7 {
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_16o71 {
26
+ } .popup-sheet__closer_y0tu7 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_16o71 > button {
30
+ } .popup-sheet__closer_y0tu7 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_16o71 {
33
+ } .popup-sheet__content_y0tu7 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_16o71,
36
- .popup-sheet__enter_16o71 {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_y0tu7,
36
+ .popup-sheet__enter_y0tu7 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_16o71,
39
- .popup-sheet__enterActive_16o71 {
38
+ } .popup-sheet__appearActive_y0tu7,
39
+ .popup-sheet__enterActive_y0tu7 {
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_16o71 {
43
+ } .popup-sheet__exit_y0tu7 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_16o71 {
45
+ } .popup-sheet__exitBySwipe_y0tu7 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_16o71 {
47
+ } .popup-sheet__exitActiveBySwipe_y0tu7 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_16o71,
50
- .popup-sheet__exitDone_16o71 {
49
+ } .popup-sheet__exitActive_y0tu7,
50
+ .popup-sheet__exitDone_y0tu7 {
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: hekdn */
1
+ /* hash: 1p18n */
2
2
  :root {
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_16o71 {
18
+ } .popup-sheet__component_y0tu7 {
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_16o71 {
26
+ } .popup-sheet__closer_y0tu7 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_16o71 > button {
30
+ } .popup-sheet__closer_y0tu7 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_16o71 {
33
+ } .popup-sheet__content_y0tu7 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_16o71,
36
- .popup-sheet__enter_16o71 {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_y0tu7,
36
+ .popup-sheet__enter_y0tu7 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_16o71,
39
- .popup-sheet__enterActive_16o71 {
38
+ } .popup-sheet__appearActive_y0tu7,
39
+ .popup-sheet__enterActive_y0tu7 {
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_16o71 {
43
+ } .popup-sheet__exit_y0tu7 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_16o71 {
45
+ } .popup-sheet__exitBySwipe_y0tu7 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_16o71 {
47
+ } .popup-sheet__exitActiveBySwipe_y0tu7 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_16o71,
50
- .popup-sheet__exitDone_16o71 {
49
+ } .popup-sheet__exitActive_y0tu7,
50
+ .popup-sheet__exitDone_y0tu7 {
51
51
  transform: translateY(calc(100% + 100px));
52
52
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
53
53
  }
@@ -8,7 +8,7 @@ type PaddingType = number | string | {
8
8
  bottom?: number;
9
9
  left?: number;
10
10
  };
11
- type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
11
+ type PopupSheetProps = Omit<BaseModalProps, 'onClose' | 'dataTestId'> & {
12
12
  /**
13
13
  * Наличие кнопки закрытия
14
14
  */
@@ -25,8 +25,13 @@ type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
25
25
  * Обработчик закрытия
26
26
  */
27
27
  onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void;
28
+ /**
29
+ * Идентификатор для систем автоматизированного тестирования.
30
+ * Для кнопки закрытия используется модификатор -closer
31
+ */
32
+ dataTestId?: string;
28
33
  };
29
- declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose"> & {
34
+ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "onClose" | "dataTestId"> & {
30
35
  /**
31
36
  * Наличие кнопки закрытия
32
37
  */
@@ -43,5 +48,10 @@ declare const PopupSheet: React.ForwardRefExoticComponent<Omit<BaseModalProps, "
43
48
  * Обработчик закрытия
44
49
  */
45
50
  onClose?: ((event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe') => void) | undefined;
51
+ /**
52
+ * Идентификатор для систем автоматизированного тестирования.
53
+ * Для кнопки закрытия используется модификатор -closer
54
+ */
55
+ dataTestId?: string | undefined;
46
56
  } & React.RefAttributes<HTMLDivElement>>;
47
57
  export { PopupSheetProps, PopupSheet };
@@ -7,7 +7,7 @@ import { createPaddingStyle, getDataTestId, easingFns } from '@alfalab/core-comp
7
7
  import { PopupBackdrop } from './components/backdrop/Component.js';
8
8
  import '@alfalab/core-components-backdrop/modern';
9
9
 
10
- const styles = {"component":"popup-sheet__component_16o71","closer":"popup-sheet__closer_16o71","content":"popup-sheet__content_16o71","appear":"popup-sheet__appear_16o71","enter":"popup-sheet__enter_16o71","appearActive":"popup-sheet__appearActive_16o71","enterActive":"popup-sheet__enterActive_16o71","exit":"popup-sheet__exit_16o71","exitBySwipe":"popup-sheet__exitBySwipe_16o71","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_16o71","exitActive":"popup-sheet__exitActive_16o71","exitDone":"popup-sheet__exitDone_16o71"};
10
+ const styles = {"component":"popup-sheet__component_y0tu7","closer":"popup-sheet__closer_y0tu7","content":"popup-sheet__content_y0tu7","appear":"popup-sheet__appear_y0tu7","enter":"popup-sheet__enter_y0tu7","appearActive":"popup-sheet__appearActive_y0tu7","enterActive":"popup-sheet__enterActive_y0tu7","exit":"popup-sheet__exit_y0tu7","exitBySwipe":"popup-sheet__exitBySwipe_y0tu7","exitActiveBySwipe":"popup-sheet__exitActiveBySwipe_y0tu7","exitActive":"popup-sheet__exitActive_y0tu7","exitDone":"popup-sheet__exitDone_y0tu7"};
11
11
  require('./index.css')
12
12
 
13
13
  const SWIPE_VELOCITY = 0.3;
@@ -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_1t6vo","enter":"popup-sheet__enter_1t6vo","appearActive":"popup-sheet__appearActive_1t6vo","enterActive":"popup-sheet__enterActive_1t6vo","appearDone":"popup-sheet__appearDone_1t6vo","enterDone":"popup-sheet__enterDone_1t6vo","exit":"popup-sheet__exit_1t6vo","exitActive":"popup-sheet__exitActive_1t6vo","exitDone":"popup-sheet__exitDone_1t6vo"};
4
+ const styles = {"appear":"popup-sheet__appear_stoax","enter":"popup-sheet__enter_stoax","appearActive":"popup-sheet__appearActive_stoax","enterActive":"popup-sheet__enterActive_stoax","appearDone":"popup-sheet__appearDone_stoax","enterDone":"popup-sheet__enterDone_stoax","exit":"popup-sheet__exit_stoax","exitActive":"popup-sheet__exitActive_stoax","exitDone":"popup-sheet__exitDone_stoax"};
5
5
  require('./index.css')
6
6
 
7
7
  const PopupBackdrop = ({ opacity, opacityTimeout, style, ...backdropProps }) => (React.createElement("div", { style: {
@@ -1,7 +1,7 @@
1
- /* hash: 14rgg */
1
+ /* hash: 89m6x */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-bg-overlay: rgba(0, 0, 0, 0.65); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --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 */
5
5
  } :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 */
6
6
  } :root {
7
7
  } :root {
@@ -16,21 +16,21 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- --backdrop-visible-background: var(--color-light-bg-overlay);
19
+ --backdrop-visible-background: var(--color-light-overlay-default);
20
20
  --backdrop-hidden-background: transparent;
21
- } .popup-sheet__appear_1t6vo,
22
- .popup-sheet__enter_1t6vo {
21
+ } .popup-sheet__appear_stoax,
22
+ .popup-sheet__enter_stoax {
23
23
  background-color: var(--backdrop-hidden-background);
24
- } .popup-sheet__appearActive_1t6vo,
25
- .popup-sheet__enterActive_1t6vo,
26
- .popup-sheet__appearDone_1t6vo,
27
- .popup-sheet__enterDone_1t6vo {
24
+ } .popup-sheet__appearActive_stoax,
25
+ .popup-sheet__enterActive_stoax,
26
+ .popup-sheet__appearDone_stoax,
27
+ .popup-sheet__enterDone_stoax {
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_1t6vo {
30
+ } .popup-sheet__exit_stoax {
31
31
  background-color: var(--backdrop-visible-background);
32
- } .popup-sheet__exitActive_1t6vo,
33
- .popup-sheet__exitDone_1t6vo {
32
+ } .popup-sheet__exitActive_stoax,
33
+ .popup-sheet__exitDone_stoax {
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: hekdn */
1
+ /* hash: 1p18n */
2
2
  :root {
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_16o71 {
18
+ } .popup-sheet__component_y0tu7 {
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_16o71 {
26
+ } .popup-sheet__closer_y0tu7 {
27
27
  position: absolute;
28
28
  top: 8px;
29
29
  right: 8px
30
- } .popup-sheet__closer_16o71 > button {
30
+ } .popup-sheet__closer_y0tu7 > button {
31
31
  -webkit-backdrop-filter: none;
32
32
  backdrop-filter: none;
33
- } .popup-sheet__content_16o71 {
33
+ } .popup-sheet__content_y0tu7 {
34
34
  box-sizing: border-box;
35
- } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_16o71,
36
- .popup-sheet__enter_16o71 {
35
+ } /* 100px нужны для того, чтобы фон успевал немного затемниться перед тем, как начнет выезжать шторка */ .popup-sheet__appear_y0tu7,
36
+ .popup-sheet__enter_y0tu7 {
37
37
  transform: translateY(calc(100% + 100px));
38
- } .popup-sheet__appearActive_16o71,
39
- .popup-sheet__enterActive_16o71 {
38
+ } .popup-sheet__appearActive_y0tu7,
39
+ .popup-sheet__enterActive_y0tu7 {
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_16o71 {
43
+ } .popup-sheet__exit_y0tu7 {
44
44
  transform: translateY(0);
45
- } .popup-sheet__exitBySwipe_16o71 {
45
+ } .popup-sheet__exitBySwipe_y0tu7 {
46
46
  transform: translateY(calc(100% + 100px));
47
- } .popup-sheet__exitActiveBySwipe_16o71 {
47
+ } .popup-sheet__exitActiveBySwipe_y0tu7 {
48
48
  transition: none;
49
- } .popup-sheet__exitActive_16o71,
50
- .popup-sheet__exitDone_16o71 {
49
+ } .popup-sheet__exitActive_y0tu7,
50
+ .popup-sheet__exitDone_y0tu7 {
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.0.12",
3
+ "version": "1.0.13",
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.6.0",
19
- "@alfalab/core-components-backdrop": "^3.1.0",
18
+ "@alfalab/core-components-base-modal": "^5.7.0",
19
+ "@alfalab/core-components-backdrop": "^3.2.0",
20
20
  "@alfalab/core-components-shared": "^0.8.0",
21
- "@alfalab/core-components-navigation-bar": "^0.6.0",
21
+ "@alfalab/core-components-navigation-bar": "^0.7.0",
22
22
  "react-swipeable": "^7.0.0",
23
23
  "classnames": "^2.3.1",
24
24
  "tslib": "^2.4.0"
package/src/Component.tsx CHANGED
@@ -23,7 +23,7 @@ const SWIPE_VELOCITY = 0.3;
23
23
  const CLOSE_OFFSET = 0.3;
24
24
  const ANIMATION_DURATION = 350;
25
25
 
26
- export type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
26
+ export type PopupSheetProps = Omit<BaseModalProps, 'onClose' | 'dataTestId'> & {
27
27
  /**
28
28
  * Наличие кнопки закрытия
29
29
  */
@@ -46,6 +46,12 @@ export type PopupSheetProps = Omit<BaseModalProps, 'onClose'> & {
46
46
  event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>,
47
47
  reason?: 'backdropClick' | 'escapeKeyDown' | 'closerClick' | 'swipe',
48
48
  ) => void;
49
+
50
+ /**
51
+ * Идентификатор для систем автоматизированного тестирования.
52
+ * Для кнопки закрытия используется модификатор -closer
53
+ */
54
+ dataTestId?: string;
49
55
  };
50
56
 
51
57
  const DEFAULT_PADDING = 32;