@alfalab/core-components-bottom-sheet 5.1.4 → 5.1.6

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.
Files changed (65) hide show
  1. package/{component-7e006bb6.d.ts → component-a5875835.d.ts} +0 -0
  2. package/{component-7e006bb6.js → component-a5875835.js} +6 -6
  3. package/component.js +6 -6
  4. package/components/backer/Component.js +2 -2
  5. package/components/backer/index.css +3 -3
  6. package/components/closer/Component.js +2 -2
  7. package/components/closer/index.css +3 -3
  8. package/components/footer/Component.js +1 -1
  9. package/components/footer/index.css +4 -4
  10. package/components/header/Component.js +6 -6
  11. package/components/header/index.css +17 -17
  12. package/components/swipeable-backdrop/Component.d.ts +1 -1
  13. package/components/swipeable-backdrop/Component.js +1 -1
  14. package/cssm/{component-486b5783.d.ts → component-c7f24e46.d.ts} +0 -0
  15. package/cssm/{component-486b5783.js → component-c7f24e46.js} +4 -4
  16. package/cssm/component.js +8 -8
  17. package/cssm/components/backer/Component.js +1 -1
  18. package/cssm/components/closer/Component.js +1 -1
  19. package/cssm/components/header/Component.js +8 -8
  20. package/cssm/components/swipeable-backdrop/Component.d.ts +1 -1
  21. package/cssm/components/swipeable-backdrop/Component.js +1 -1
  22. package/cssm/index.d.ts +1 -1
  23. package/cssm/index.js +8 -8
  24. package/cssm/{tslib.es6-ce870b46.d.ts → tslib.es6-9682e485.d.ts} +8 -4
  25. package/{tslib.es6-50b4cbed.js → cssm/tslib.es6-9682e485.js} +1 -1
  26. package/esm/{component-209bb9e7.d.ts → component-687f9255.d.ts} +0 -0
  27. package/esm/{component-209bb9e7.js → component-687f9255.js} +6 -6
  28. package/esm/component.js +6 -6
  29. package/esm/components/backer/Component.js +2 -2
  30. package/esm/components/backer/index.css +3 -3
  31. package/esm/components/closer/Component.js +2 -2
  32. package/esm/components/closer/index.css +3 -3
  33. package/esm/components/footer/Component.js +1 -1
  34. package/esm/components/footer/index.css +4 -4
  35. package/esm/components/header/Component.js +6 -6
  36. package/esm/components/header/index.css +17 -17
  37. package/esm/components/swipeable-backdrop/Component.d.ts +1 -1
  38. package/esm/components/swipeable-backdrop/Component.js +1 -1
  39. package/esm/index.css +15 -15
  40. package/esm/index.d.ts +1 -1
  41. package/esm/index.js +6 -6
  42. package/{tslib.es6-50b4cbed.d.ts → esm/tslib.es6-a3a105f6.d.ts} +8 -4
  43. package/esm/{tslib.es6-bc11f5aa.js → tslib.es6-a3a105f6.js} +1 -1
  44. package/index.css +15 -15
  45. package/index.d.ts +1 -1
  46. package/index.js +6 -6
  47. package/modern/{component-4ceb2e55.d.ts → component-0400c622.d.ts} +0 -0
  48. package/modern/{component-4ceb2e55.js → component-0400c622.js} +10 -10
  49. package/modern/component.js +5 -5
  50. package/modern/components/backer/Component.js +3 -5
  51. package/modern/components/backer/index.css +3 -3
  52. package/modern/components/closer/Component.js +2 -2
  53. package/modern/components/closer/index.css +3 -3
  54. package/modern/components/footer/Component.js +1 -1
  55. package/modern/components/footer/index.css +4 -4
  56. package/modern/components/header/Component.js +5 -5
  57. package/modern/components/header/index.css +17 -17
  58. package/modern/components/swipeable-backdrop/Component.d.ts +1 -1
  59. package/modern/components/swipeable-backdrop/Component.js +3 -3
  60. package/modern/index.css +15 -15
  61. package/modern/index.d.ts +1 -1
  62. package/modern/index.js +5 -5
  63. package/package.json +3 -3
  64. package/{esm/tslib.es6-bc11f5aa.d.ts → tslib.es6-167a5a85.d.ts} +8 -4
  65. package/{cssm/tslib.es6-ce870b46.js → tslib.es6-167a5a85.js} +1 -1
@@ -1,4 +1,4 @@
1
- /* hash: 15mnh */
1
+ /* hash: 1pvuu */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  --color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
@@ -14,7 +14,7 @@
14
14
  :root {
15
15
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
16
16
  }
17
- .bottom-sheet__backer_10oqv {
17
+ .bottom-sheet__backer_tbpva {
18
18
  width: 32px;
19
19
  height: 32px;
20
20
  display: flex;
@@ -23,7 +23,7 @@
23
23
  cursor: pointer;
24
24
  color: var(--color-light-graphic-primary);
25
25
  }
26
- .bottom-sheet__button_10oqv {
26
+ .bottom-sheet__button_tbpva {
27
27
  background: var(--bottom-sheet-backer-bg-color);
28
28
  -webkit-backdrop-filter: blur(10px);
29
29
  backdrop-filter: blur(10px);
@@ -1,11 +1,11 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-bc11f5aa.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-a3a105f6.js';
2
2
  import React, { useContext, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
5
  import { IconButton } from '@alfalab/core-components-icon-button/esm';
6
6
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
7
7
 
8
- var styles = {"closer":"bottom-sheet__closer_1sicd","button":"bottom-sheet__button_1sicd"};
8
+ var styles = {"closer":"bottom-sheet__closer_1jrd7","button":"bottom-sheet__button_1jrd7"};
9
9
  require('./index.css')
10
10
 
11
11
  var Closer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 4e6n5 */
1
+ /* hash: 1y2pf */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  --color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
@@ -14,7 +14,7 @@
14
14
  :root {
15
15
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
16
16
  }
17
- .bottom-sheet__closer_1sicd {
17
+ .bottom-sheet__closer_1jrd7 {
18
18
  width: 32px;
19
19
  height: 32px;
20
20
  display: flex;
@@ -23,7 +23,7 @@
23
23
  cursor: pointer;
24
24
  color: var(--color-light-graphic-primary);
25
25
  }
26
- .bottom-sheet__button_1sicd {
26
+ .bottom-sheet__button_1jrd7 {
27
27
  background: var(--bottom-sheet-closer-bg-color);
28
28
  -webkit-backdrop-filter: blur(10px);
29
29
  backdrop-filter: blur(10px);
@@ -2,7 +2,7 @@ import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
4
4
 
5
- var styles = {"footer":"bottom-sheet__footer_1by09","sticky":"bottom-sheet__sticky_1by09","highlighted":"bottom-sheet__highlighted_1by09"};
5
+ var styles = {"footer":"bottom-sheet__footer_1qv4z","sticky":"bottom-sheet__sticky_1qv4z","highlighted":"bottom-sheet__highlighted_1qv4z"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: b9f8y */
1
+ /* hash: vimlu */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -18,15 +18,15 @@
18
18
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-border-primary);
19
19
  --bottom-sheet-footer-background-color: var(--color-light-bg-primary);
20
20
  }
21
- .bottom-sheet__footer_1by09 {
21
+ .bottom-sheet__footer_1qv4z {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_1by09 {
25
+ .bottom-sheet__sticky_1qv4z {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_1by09 {
29
+ .bottom-sheet__highlighted_1qv4z {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -1,16 +1,16 @@
1
- import '../../tslib.es6-bc11f5aa.js';
1
+ import '../../tslib.es6-a3a105f6.js';
2
2
  import 'react';
3
- import 'classnames';
4
3
  import 'react-div-100vh';
5
4
  import 'react-swipeable';
5
+ import 'classnames';
6
6
  import '@alfalab/core-components-base-modal/esm';
7
+ export { a as Header } from '../../component-687f9255.js';
8
+ import '../footer/Component.js';
7
9
  import '@alfalab/core-components-typography/esm';
8
10
  import '@alfalab/core-components-icon-button/esm';
9
- import '@alfalab/icons-glyph/CrossMIcon';
10
- import '../closer/Component.js';
11
11
  import '@alfalab/icons-glyph/ArrowBackMIcon';
12
12
  import '../backer/Component.js';
13
- export { a as Header } from '../../component-209bb9e7.js';
14
- import '../footer/Component.js';
13
+ import '@alfalab/icons-glyph/CrossMIcon';
14
+ import '../closer/Component.js';
15
15
  import '@alfalab/core-components-backdrop/esm';
16
16
  import '../swipeable-backdrop/Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 8960c */
1
+ /* hash: 59767 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -30,7 +30,7 @@
30
30
  --bottom-sheet-title-font-family: var(--font-family-system);
31
31
  --bottom-sheet-title-margin-vertical: var(--gap-2xs);
32
32
  }
33
- .bottom-sheet__headerWrapper_1wr0u {
33
+ .bottom-sheet__headerWrapper_jk6f0 {
34
34
  padding: var(--gap-xs);
35
35
  padding-bottom: 0;
36
36
  background-color: var(--color-light-bg-primary);
@@ -38,38 +38,38 @@
38
38
  border-top-left-radius: var(--border-radius-xl);
39
39
  z-index: 1;
40
40
  }
41
- .bottom-sheet__header_1wr0u {
41
+ .bottom-sheet__header_jk6f0 {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_1wr0u {
44
+ .bottom-sheet__sticky_jk6f0 {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_1wr0u {
48
+ .bottom-sheet__highlighted_jk6f0 {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_1wr0u {
51
+ .bottom-sheet__justifyEnd_jk6f0 {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_1wr0u {
54
+ .bottom-sheet__addon_jk6f0 {
55
55
  display: flex;
56
56
  justify-content: center;
57
57
  align-items: center;
58
58
  min-width: 48px;
59
59
  height: 48px;
60
60
  }
61
- .bottom-sheet__addonFixed_1wr0u {
61
+ .bottom-sheet__addonFixed_jk6f0 {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_1wr0u {
64
+ .bottom-sheet__addonLeft_jk6f0 {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_1wr0u {
68
+ .bottom-sheet__addonRight_jk6f0 {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_1wr0u {
72
+ .bottom-sheet__title_jk6f0 {
73
73
  padding: var(--gap-xs) var(--gap-xs);
74
74
  margin: var(--bottom-sheet-title-margin-vertical) 0;
75
75
  width: 100%;
@@ -78,23 +78,23 @@
78
78
  line-height: var(--bottom-sheet-title-line-height);
79
79
  font-family: var(--bottom-sheet-title-font-family);
80
80
  }
81
- .bottom-sheet__titleCenter_1wr0u {
81
+ .bottom-sheet__titleCenter_jk6f0 {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_1wr0u {
84
+ .bottom-sheet__titleLeft_jk6f0 {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_1wr0u {
87
+ .bottom-sheet__trimTitle_jk6f0 {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_1wr0u {
92
+ .bottom-sheet__titleBigIndentHorizontal_jk6f0 {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_1wr0u {
95
+ .bottom-sheet__titleIndentRight_jk6f0 {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_1wr0u {
98
+ .bottom-sheet__titleIndentLeft_jk6f0 {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { BackdropProps } from "@alfalab/core-components-backdrop";
3
2
  import { SwipeableHandlers } from 'react-swipeable/types';
3
+ import { BackdropProps } from "@alfalab/core-components-backdrop";
4
4
  type SwipeableBackdropProps = BackdropProps & {
5
5
  /**
6
6
  * Прозрачность бэкдропа
@@ -1,4 +1,4 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-bc11f5aa.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-a3a105f6.js';
2
2
  import React from 'react';
3
3
  import { Backdrop } from '@alfalab/core-components-backdrop/esm';
4
4
 
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: nuk47 */
1
+ /* hash: ihyus */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-graphic-quaternary: #dbdee1;
@@ -24,14 +24,14 @@
24
24
  --bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
25
25
  --bottom-sheet-out-transition: 0.3s ease;
26
26
  }
27
- .bottom-sheet__modal_1rbog {
27
+ .bottom-sheet__modal_1ikpa {
28
28
  background-color: transparent;
29
29
  position: fixed;
30
30
  bottom: 0;
31
31
  width: 100%;
32
32
  max-width: 600px;
33
33
  }
34
- .bottom-sheet__component_1rbog {
34
+ .bottom-sheet__component_1ikpa {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
@@ -41,17 +41,17 @@
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_1rbog {
44
+ .bottom-sheet__withTransition_1ikpa {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__scrollableContainer_1rbog {
47
+ .bottom-sheet__scrollableContainer_1ikpa {
48
48
  overflow: auto;
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  position: relative;
52
52
  height: 100%;
53
53
  }
54
- .bottom-sheet__marker_1rbog {
54
+ .bottom-sheet__marker_1ikpa {
55
55
  position: fixed;
56
56
  top: var(--gap-2xs);
57
57
  left: 50%;
@@ -62,7 +62,7 @@
62
62
  background-color: var(--color-light-graphic-quaternary);
63
63
  z-index: 1000;
64
64
  }
65
- .bottom-sheet__content_1rbog {
65
+ .bottom-sheet__content_1ikpa {
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  flex: 1;
@@ -70,29 +70,29 @@
70
70
  color: var(--color-light-text-primary);
71
71
  background-color: var(--color-light-bg-primary);
72
72
  }
73
- .bottom-sheet__noHeader_1rbog {
73
+ .bottom-sheet__noHeader_1ikpa {
74
74
  padding-top: var(--gap-xl);
75
75
  }
76
- .bottom-sheet__noFooter_1rbog {
76
+ .bottom-sheet__noFooter_1ikpa {
77
77
  padding-bottom: var(--gap-m);
78
78
  }
79
- .bottom-sheet__scrollLocked_1rbog {
79
+ .bottom-sheet__scrollLocked_1ikpa {
80
80
  overflow: hidden;
81
81
  }
82
- .bottom-sheet__appear_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__enter_1rbog .bottom-sheet__component_1rbog {
82
+ .bottom-sheet__appear_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__enter_1ikpa .bottom-sheet__component_1ikpa {
83
83
  transition: none;
84
84
  }
85
- .bottom-sheet__appearActive_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__enterActive_1rbog .bottom-sheet__component_1rbog {
85
+ .bottom-sheet__appearActive_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__enterActive_1ikpa .bottom-sheet__component_1ikpa {
86
86
  transition: var(--bottom-sheet-in-transition);
87
87
  transform: translateY(0);
88
88
  }
89
- .bottom-sheet__enterDone_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__appearDone_1rbog .bottom-sheet__component_1rbog {
89
+ .bottom-sheet__enterDone_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__appearDone_1ikpa .bottom-sheet__component_1ikpa {
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__exit_1rbog .bottom-sheet__component_1rbog {
92
+ .bottom-sheet__exit_1ikpa .bottom-sheet__component_1ikpa {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exitActive_1rbog .bottom-sheet__component_1rbog {
95
+ .bottom-sheet__exitActive_1ikpa .bottom-sheet__component_1ikpa {
96
96
  transition: var(--bottom-sheet-out-transition);
97
97
  transform: translateY(100%);
98
98
  }
package/esm/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-209bb9e7";
1
+ export * from "./component-687f9255";
package/esm/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import './tslib.es6-bc11f5aa.js';
1
+ import './tslib.es6-a3a105f6.js';
2
2
  import 'react';
3
- import 'classnames';
4
3
  import 'react-div-100vh';
5
4
  import 'react-swipeable';
5
+ import 'classnames';
6
6
  import '@alfalab/core-components-base-modal/esm';
7
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-687f9255.js';
8
+ import './components/footer/Component.js';
7
9
  import '@alfalab/core-components-typography/esm';
8
10
  import '@alfalab/core-components-icon-button/esm';
9
- import '@alfalab/icons-glyph/CrossMIcon';
10
- import './components/closer/Component.js';
11
11
  import '@alfalab/icons-glyph/ArrowBackMIcon';
12
12
  import './components/backer/Component.js';
13
- export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-209bb9e7.js';
14
- import './components/footer/Component.js';
13
+ import '@alfalab/icons-glyph/CrossMIcon';
14
+ import './components/closer/Component.js';
15
15
  import '@alfalab/core-components-backdrop/esm';
16
16
  import './components/swipeable-backdrop/Component.js';
@@ -12,9 +12,12 @@ declare function __generator(thisArg: any, body: any): {
12
12
  declare function __exportStar(m: any, o: any): void;
13
13
  declare function __values(o: any): any;
14
14
  declare function __read(o: any, n: any): any;
15
+ /** @deprecated */
15
16
  declare function __spread(...args: any[]): any[];
17
+ /** @deprecated */
16
18
  declare function __spreadArrays(...args: any[]): any[];
17
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
18
21
  declare class __await {
19
22
  constructor(v: any);
20
23
  v: any;
@@ -25,8 +28,9 @@ declare function __asyncValues(o: any): any;
25
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
26
29
  declare function __importStar(mod: any): any;
27
30
  declare function __importDefault(mod: any): any;
28
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
29
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
30
34
  declare function __assign(...args: any[]): any;
31
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
32
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
36
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
@@ -1,4 +1,4 @@
1
- /*! *****************************************************************************
1
+ /******************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: nuk47 */
1
+ /* hash: ihyus */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-graphic-quaternary: #dbdee1;
@@ -24,14 +24,14 @@
24
24
  --bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
25
25
  --bottom-sheet-out-transition: 0.3s ease;
26
26
  }
27
- .bottom-sheet__modal_1rbog {
27
+ .bottom-sheet__modal_1ikpa {
28
28
  background-color: transparent;
29
29
  position: fixed;
30
30
  bottom: 0;
31
31
  width: 100%;
32
32
  max-width: 600px;
33
33
  }
34
- .bottom-sheet__component_1rbog {
34
+ .bottom-sheet__component_1ikpa {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
@@ -41,17 +41,17 @@
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_1rbog {
44
+ .bottom-sheet__withTransition_1ikpa {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__scrollableContainer_1rbog {
47
+ .bottom-sheet__scrollableContainer_1ikpa {
48
48
  overflow: auto;
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  position: relative;
52
52
  height: 100%;
53
53
  }
54
- .bottom-sheet__marker_1rbog {
54
+ .bottom-sheet__marker_1ikpa {
55
55
  position: fixed;
56
56
  top: var(--gap-2xs);
57
57
  left: 50%;
@@ -62,7 +62,7 @@
62
62
  background-color: var(--color-light-graphic-quaternary);
63
63
  z-index: 1000;
64
64
  }
65
- .bottom-sheet__content_1rbog {
65
+ .bottom-sheet__content_1ikpa {
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  flex: 1;
@@ -70,29 +70,29 @@
70
70
  color: var(--color-light-text-primary);
71
71
  background-color: var(--color-light-bg-primary);
72
72
  }
73
- .bottom-sheet__noHeader_1rbog {
73
+ .bottom-sheet__noHeader_1ikpa {
74
74
  padding-top: var(--gap-xl);
75
75
  }
76
- .bottom-sheet__noFooter_1rbog {
76
+ .bottom-sheet__noFooter_1ikpa {
77
77
  padding-bottom: var(--gap-m);
78
78
  }
79
- .bottom-sheet__scrollLocked_1rbog {
79
+ .bottom-sheet__scrollLocked_1ikpa {
80
80
  overflow: hidden;
81
81
  }
82
- .bottom-sheet__appear_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__enter_1rbog .bottom-sheet__component_1rbog {
82
+ .bottom-sheet__appear_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__enter_1ikpa .bottom-sheet__component_1ikpa {
83
83
  transition: none;
84
84
  }
85
- .bottom-sheet__appearActive_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__enterActive_1rbog .bottom-sheet__component_1rbog {
85
+ .bottom-sheet__appearActive_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__enterActive_1ikpa .bottom-sheet__component_1ikpa {
86
86
  transition: var(--bottom-sheet-in-transition);
87
87
  transform: translateY(0);
88
88
  }
89
- .bottom-sheet__enterDone_1rbog .bottom-sheet__component_1rbog, .bottom-sheet__appearDone_1rbog .bottom-sheet__component_1rbog {
89
+ .bottom-sheet__enterDone_1ikpa .bottom-sheet__component_1ikpa, .bottom-sheet__appearDone_1ikpa .bottom-sheet__component_1ikpa {
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__exit_1rbog .bottom-sheet__component_1rbog {
92
+ .bottom-sheet__exit_1ikpa .bottom-sheet__component_1ikpa {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exitActive_1rbog .bottom-sheet__component_1rbog {
95
+ .bottom-sheet__exitActive_1ikpa .bottom-sheet__component_1ikpa {
96
96
  transition: var(--bottom-sheet-out-transition);
97
97
  transform: translateY(100%);
98
98
  }
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-7e006bb6";
1
+ export * from "./component-a5875835";
package/index.js CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-50b4cbed.js');
5
+ require('./tslib.es6-167a5a85.js');
6
6
  require('react');
7
- require('classnames');
8
7
  require('react-div-100vh');
9
8
  require('react-swipeable');
9
+ require('classnames');
10
10
  require('@alfalab/core-components-base-modal');
11
+ var components_header_Component = require('./component-a5875835.js');
12
+ require('./components/footer/Component.js');
11
13
  require('@alfalab/core-components-typography');
12
14
  require('@alfalab/core-components-icon-button');
13
- require('@alfalab/icons-glyph/CrossMIcon');
14
- require('./components/closer/Component.js');
15
15
  require('@alfalab/icons-glyph/ArrowBackMIcon');
16
16
  require('./components/backer/Component.js');
17
- var components_header_Component = require('./component-7e006bb6.js');
18
- require('./components/footer/Component.js');
17
+ require('@alfalab/icons-glyph/CrossMIcon');
18
+ require('./components/closer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('./components/swipeable-backdrop/Component.js');
21
21
 
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useEffect, forwardRef, useState, useRef, useCallback } from 'react';
2
- import cn from 'classnames';
3
2
  import { use100vh } from 'react-div-100vh';
4
3
  import { useSwipeable } from 'react-swipeable';
4
+ import cn from 'classnames';
5
5
  import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/modern';
6
+ import { Footer } from './components/footer/Component.js';
6
7
  import { Typography } from '@alfalab/core-components-typography/modern';
7
- import { Closer } from './components/closer/Component.js';
8
8
  import { Backer } from './components/backer/Component.js';
9
- import { Footer } from './components/footer/Component.js';
9
+ import { Closer } from './components/closer/Component.js';
10
10
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
11
11
 
12
12
  const getDataTestId = (dataTestId, element) => {
@@ -14,7 +14,7 @@ const getDataTestId = (dataTestId, element) => {
14
14
  return dataTestId ? `${dataTestId}${elementPart}` : undefined;
15
15
  };
16
16
 
17
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1wr0u","header":"bottom-sheet__header_1wr0u","sticky":"bottom-sheet__sticky_1wr0u","highlighted":"bottom-sheet__highlighted_1wr0u","justifyEnd":"bottom-sheet__justifyEnd_1wr0u","addon":"bottom-sheet__addon_1wr0u","addonFixed":"bottom-sheet__addonFixed_1wr0u","addonLeft":"bottom-sheet__addonLeft_1wr0u","addonRight":"bottom-sheet__addonRight_1wr0u","title":"bottom-sheet__title_1wr0u","titleCenter":"bottom-sheet__titleCenter_1wr0u","titleLeft":"bottom-sheet__titleLeft_1wr0u","trimTitle":"bottom-sheet__trimTitle_1wr0u","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1wr0u","titleIndentRight":"bottom-sheet__titleIndentRight_1wr0u","titleIndentLeft":"bottom-sheet__titleIndentLeft_1wr0u"};
17
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_jk6f0","header":"bottom-sheet__header_jk6f0","sticky":"bottom-sheet__sticky_jk6f0","highlighted":"bottom-sheet__highlighted_jk6f0","justifyEnd":"bottom-sheet__justifyEnd_jk6f0","addon":"bottom-sheet__addon_jk6f0","addonFixed":"bottom-sheet__addonFixed_jk6f0","addonLeft":"bottom-sheet__addonLeft_jk6f0","addonRight":"bottom-sheet__addonRight_jk6f0","title":"bottom-sheet__title_jk6f0","titleCenter":"bottom-sheet__titleCenter_jk6f0","titleLeft":"bottom-sheet__titleLeft_jk6f0","trimTitle":"bottom-sheet__trimTitle_jk6f0","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_jk6f0","titleIndentRight":"bottom-sheet__titleIndentRight_jk6f0","titleIndentLeft":"bottom-sheet__titleIndentLeft_jk6f0"};
18
18
  require('./components/header/index.css')
19
19
 
20
20
  const Header = ({ title, headerClassName, addonClassName, closerClassName, backerClassName, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign, trimTitle, sticky, dataTestId, onBack, }) => {
@@ -61,7 +61,7 @@ const Header = ({ title, headerClassName, addonClassName, closerClassName, backe
61
61
  bottomAddons));
62
62
  };
63
63
 
64
- var styles$1 = {"modal":"bottom-sheet__modal_1rbog","component":"bottom-sheet__component_1rbog","withTransition":"bottom-sheet__withTransition_1rbog","scrollableContainer":"bottom-sheet__scrollableContainer_1rbog","marker":"bottom-sheet__marker_1rbog","content":"bottom-sheet__content_1rbog","noHeader":"bottom-sheet__noHeader_1rbog","noFooter":"bottom-sheet__noFooter_1rbog","scrollLocked":"bottom-sheet__scrollLocked_1rbog","appear":"bottom-sheet__appear_1rbog","enter":"bottom-sheet__enter_1rbog","appearActive":"bottom-sheet__appearActive_1rbog","enterActive":"bottom-sheet__enterActive_1rbog","enterDone":"bottom-sheet__enterDone_1rbog","appearDone":"bottom-sheet__appearDone_1rbog","exit":"bottom-sheet__exit_1rbog","exitActive":"bottom-sheet__exitActive_1rbog"};
64
+ var styles$1 = {"modal":"bottom-sheet__modal_1ikpa","component":"bottom-sheet__component_1ikpa","withTransition":"bottom-sheet__withTransition_1ikpa","scrollableContainer":"bottom-sheet__scrollableContainer_1ikpa","marker":"bottom-sheet__marker_1ikpa","content":"bottom-sheet__content_1ikpa","noHeader":"bottom-sheet__noHeader_1ikpa","noFooter":"bottom-sheet__noFooter_1ikpa","scrollLocked":"bottom-sheet__scrollLocked_1ikpa","appear":"bottom-sheet__appear_1ikpa","enter":"bottom-sheet__enter_1ikpa","appearActive":"bottom-sheet__appearActive_1ikpa","enterActive":"bottom-sheet__enterActive_1ikpa","enterDone":"bottom-sheet__enterDone_1ikpa","appearDone":"bottom-sheet__appearDone_1ikpa","exit":"bottom-sheet__exit_1ikpa","exitActive":"bottom-sheet__exitActive_1ikpa"};
65
65
  require('./index.css')
66
66
 
67
67
  const TIMEOUT = 300;
@@ -221,17 +221,17 @@ const BottomSheet = forwardRef(({ open, title, actionButton, contentClassName, c
221
221
  onEntered: handleEntered,
222
222
  } },
223
223
  React.createElement("div", { style: { ...getHeightStyles() } },
224
- React.createElement("div", Object.assign({ className: cn(styles$1.component, className, {
224
+ React.createElement("div", { className: cn(styles$1.component, className, {
225
225
  [styles$1.withTransition]: !sheetOffset,
226
226
  }), style: {
227
227
  ...getSwipeStyles(),
228
228
  ...getHeightStyles(),
229
- } }, sheetSwipeablehandlers),
230
- React.createElement("div", Object.assign({}, containerProps, { className: cn(styles$1.scrollableContainer, containerProps?.className, containerClassName, {
229
+ }, ...sheetSwipeablehandlers },
230
+ React.createElement("div", { ...containerProps, className: cn(styles$1.scrollableContainer, containerProps?.className, containerClassName, {
231
231
  [styles$1.scrollLocked]: scrollLocked,
232
- }), ref: scrollableContainer }),
232
+ }), ref: scrollableContainer },
233
233
  swipeable && React.createElement("div", { className: cn(styles$1.marker) }),
234
- !hideHeader && !emptyHeader && React.createElement(Header, Object.assign({}, headerProps)),
234
+ !hideHeader && !emptyHeader && React.createElement(Header, { ...headerProps }),
235
235
  React.createElement("div", { className: cn(styles$1.content, contentClassName, {
236
236
  [styles$1.noHeader]: hideHeader || emptyHeader,
237
237
  [styles$1.noFooter]: !actionButton,
@@ -1,15 +1,15 @@
1
1
  import 'react';
2
- import 'classnames';
3
2
  import 'react-div-100vh';
4
3
  import 'react-swipeable';
4
+ import 'classnames';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-0400c622.js';
7
+ import './components/footer/Component.js';
6
8
  import '@alfalab/core-components-typography/modern';
7
9
  import '@alfalab/core-components-icon-button/modern';
8
- import '@alfalab/icons-glyph/CrossMIcon';
9
- import './components/closer/Component.js';
10
10
  import '@alfalab/icons-glyph/ArrowBackMIcon';
11
11
  import './components/backer/Component.js';
12
- export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-4ceb2e55.js';
13
- import './components/footer/Component.js';
12
+ import '@alfalab/icons-glyph/CrossMIcon';
13
+ import './components/closer/Component.js';
14
14
  import '@alfalab/core-components-backdrop/modern';
15
15
  import './components/swipeable-backdrop/Component.js';
@@ -3,12 +3,10 @@ import cn from 'classnames';
3
3
  import { IconButton } from '@alfalab/core-components-icon-button/modern';
4
4
  import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
5
5
 
6
- var styles = {"backer":"bottom-sheet__backer_10oqv","button":"bottom-sheet__button_10oqv"};
6
+ var styles = {"backer":"bottom-sheet__backer_tbpva","button":"bottom-sheet__button_tbpva"};
7
7
  require('./index.css')
8
8
 
9
- const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, dataTestId, onClick, ...restProps }) => {
10
- return (React.createElement("div", { className: cn(styles.backer, className) },
11
- React.createElement(IconButton, Object.assign({ size: size, className: styles.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId }, restProps))));
12
- };
9
+ const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, dataTestId, onClick, ...restProps }) => (React.createElement("div", { className: cn(styles.backer, className) },
10
+ React.createElement(IconButton, { size: size, className: styles.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId, ...restProps })));
13
11
 
14
12
  export { Backer };
@@ -1,4 +1,4 @@
1
- /* hash: 15mnh */
1
+ /* hash: 1pvuu */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  --color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
@@ -14,7 +14,7 @@
14
14
  :root {
15
15
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
16
16
  }
17
- .bottom-sheet__backer_10oqv {
17
+ .bottom-sheet__backer_tbpva {
18
18
  width: 32px;
19
19
  height: 32px;
20
20
  display: flex;
@@ -23,7 +23,7 @@
23
23
  cursor: pointer;
24
24
  color: var(--color-light-graphic-primary);
25
25
  }
26
- .bottom-sheet__button_10oqv {
26
+ .bottom-sheet__button_tbpva {
27
27
  background: var(--bottom-sheet-backer-bg-color);
28
28
  -webkit-backdrop-filter: blur(10px);
29
29
  backdrop-filter: blur(10px);