@alfalab/core-components-bottom-sheet 4.6.2 → 4.7.0

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 (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{component-640abf82.d.ts → component-a50a831b.d.ts} +0 -0
  3. package/{component-640abf82.js → component-a50a831b.js} +3 -3
  4. package/component.js +2 -2
  5. package/components/backer/Component.js +2 -2
  6. package/components/backer/index.css +3 -3
  7. package/components/closer/Component.js +2 -2
  8. package/components/closer/index.css +3 -3
  9. package/components/footer/Component.js +1 -1
  10. package/components/footer/index.css +4 -4
  11. package/components/header/Component.js +2 -2
  12. package/components/header/index.css +17 -17
  13. package/components/swipeable-backdrop/Component.js +1 -1
  14. package/esm/{component-ccb0592e.d.ts → component-1a553fe5.d.ts} +0 -0
  15. package/esm/{component-ccb0592e.js → component-1a553fe5.js} +3 -3
  16. package/esm/component.js +2 -2
  17. package/esm/components/backer/Component.js +2 -2
  18. package/esm/components/backer/index.css +3 -3
  19. package/esm/components/closer/Component.js +2 -2
  20. package/esm/components/closer/index.css +3 -3
  21. package/esm/components/footer/Component.js +1 -1
  22. package/esm/components/footer/index.css +4 -4
  23. package/esm/components/header/Component.js +2 -2
  24. package/esm/components/header/index.css +17 -17
  25. package/esm/components/swipeable-backdrop/Component.js +1 -1
  26. package/esm/index.css +16 -16
  27. package/esm/index.d.ts +1 -1
  28. package/esm/index.js +2 -2
  29. package/esm/{tslib.es6-7bd2d41b.d.ts → tslib.es6-f0ff4ec2.d.ts} +0 -0
  30. package/esm/{tslib.es6-7bd2d41b.js → tslib.es6-f0ff4ec2.js} +0 -0
  31. package/index.css +16 -16
  32. package/index.d.ts +1 -1
  33. package/index.js +2 -2
  34. package/modern/{component-1c3da841.d.ts → component-cc142f56.d.ts} +0 -0
  35. package/modern/{component-1c3da841.js → component-cc142f56.js} +3 -3
  36. package/modern/component.js +1 -1
  37. package/modern/components/backer/Component.js +1 -1
  38. package/modern/components/backer/index.css +3 -3
  39. package/modern/components/closer/Component.js +1 -1
  40. package/modern/components/closer/index.css +3 -3
  41. package/modern/components/footer/Component.js +1 -1
  42. package/modern/components/footer/index.css +4 -4
  43. package/modern/components/header/Component.js +1 -1
  44. package/modern/components/header/index.css +17 -17
  45. package/modern/index.css +16 -16
  46. package/modern/index.d.ts +1 -1
  47. package/modern/index.js +1 -1
  48. package/package.json +8 -8
  49. /package/{tslib.es6-fd688139.d.ts → tslib.es6-7fdb05e4.d.ts} +0 -0
  50. /package/{tslib.es6-fd688139.js → tslib.es6-7fdb05e4.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.7.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.2...@alfalab/core-components-bottom-sheet@4.7.0) (2022-08-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * react 18 support ([#159](https://github.com/core-ds/core-components/issues/159)) ([2e6693c](https://github.com/core-ds/core-components/commit/2e6693c62f534e333aadb7d3fff4ffd78ac84c63))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.6.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.1...@alfalab/core-components-bottom-sheet@4.6.2) (2022-07-25)
7
18
 
8
19
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-fd688139.js');
3
+ var tslib_es6 = require('./tslib.es6-7fdb05e4.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var reactDiv100vh = require('react-div-100vh');
@@ -17,7 +17,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
19
19
 
20
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1hskz","header":"bottom-sheet__header_1hskz","sticky":"bottom-sheet__sticky_1hskz","highlighted":"bottom-sheet__highlighted_1hskz","justifyEnd":"bottom-sheet__justifyEnd_1hskz","addon":"bottom-sheet__addon_1hskz","addonFixed":"bottom-sheet__addonFixed_1hskz","addonLeft":"bottom-sheet__addonLeft_1hskz","addonRight":"bottom-sheet__addonRight_1hskz","title":"bottom-sheet__title_1hskz","titleCenter":"bottom-sheet__titleCenter_1hskz","titleLeft":"bottom-sheet__titleLeft_1hskz","trimTitle":"bottom-sheet__trimTitle_1hskz","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1hskz","titleIndentRight":"bottom-sheet__titleIndentRight_1hskz","titleIndentLeft":"bottom-sheet__titleIndentLeft_1hskz"};
20
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_la2qp","header":"bottom-sheet__header_la2qp","sticky":"bottom-sheet__sticky_la2qp","highlighted":"bottom-sheet__highlighted_la2qp","justifyEnd":"bottom-sheet__justifyEnd_la2qp","addon":"bottom-sheet__addon_la2qp","addonFixed":"bottom-sheet__addonFixed_la2qp","addonLeft":"bottom-sheet__addonLeft_la2qp","addonRight":"bottom-sheet__addonRight_la2qp","title":"bottom-sheet__title_la2qp","titleCenter":"bottom-sheet__titleCenter_la2qp","titleLeft":"bottom-sheet__titleLeft_la2qp","trimTitle":"bottom-sheet__trimTitle_la2qp","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_la2qp","titleIndentRight":"bottom-sheet__titleIndentRight_la2qp","titleIndentLeft":"bottom-sheet__titleIndentLeft_la2qp"};
21
21
  require('./components/header/index.css')
22
22
 
23
23
  var Header = function (_a) {
@@ -67,7 +67,7 @@ var Header = function (_a) {
67
67
  bottomAddons));
68
68
  };
69
69
 
70
- var styles$1 = {"modal":"bottom-sheet__modal_1dcpm","component":"bottom-sheet__component_1dcpm","withTransition":"bottom-sheet__withTransition_1dcpm","withZeroTransition":"bottom-sheet__withZeroTransition_1dcpm","scrollableContainer":"bottom-sheet__scrollableContainer_1dcpm","marker":"bottom-sheet__marker_1dcpm","content":"bottom-sheet__content_1dcpm","noHeader":"bottom-sheet__noHeader_1dcpm","noFooter":"bottom-sheet__noFooter_1dcpm","scrollLocked":"bottom-sheet__scrollLocked_1dcpm","appear":"bottom-sheet__appear_1dcpm","enter":"bottom-sheet__enter_1dcpm","appearActive":"bottom-sheet__appearActive_1dcpm","enterActive":"bottom-sheet__enterActive_1dcpm","enterDone":"bottom-sheet__enterDone_1dcpm","appearDone":"bottom-sheet__appearDone_1dcpm","exit":"bottom-sheet__exit_1dcpm","exitActive":"bottom-sheet__exitActive_1dcpm"};
70
+ var styles$1 = {"modal":"bottom-sheet__modal_16hzh","component":"bottom-sheet__component_16hzh","withTransition":"bottom-sheet__withTransition_16hzh","withZeroTransition":"bottom-sheet__withZeroTransition_16hzh","scrollableContainer":"bottom-sheet__scrollableContainer_16hzh","marker":"bottom-sheet__marker_16hzh","content":"bottom-sheet__content_16hzh","noHeader":"bottom-sheet__noHeader_16hzh","noFooter":"bottom-sheet__noFooter_16hzh","scrollLocked":"bottom-sheet__scrollLocked_16hzh","appear":"bottom-sheet__appear_16hzh","enter":"bottom-sheet__enter_16hzh","appearActive":"bottom-sheet__appearActive_16hzh","enterActive":"bottom-sheet__enterActive_16hzh","enterDone":"bottom-sheet__enterDone_16hzh","appearDone":"bottom-sheet__appearDone_16hzh","exit":"bottom-sheet__exit_16hzh","exitActive":"bottom-sheet__exitActive_16hzh"};
71
71
  require('./index.css')
72
72
 
73
73
  var TIMEOUT = 300;
package/component.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-fd688139.js');
5
+ require('./tslib.es6-7fdb05e4.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
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-640abf82.js');
17
+ var components_header_Component = require('./component-a50a831b.js');
18
18
  require('./components/footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('./components/swipeable-backdrop/Component.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-fd688139.js');
5
+ var tslib_es6 = require('../../tslib.es6-7fdb05e4.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
15
15
 
16
- var styles = {"backer":"bottom-sheet__backer_14xzk","button":"bottom-sheet__button_14xzk"};
16
+ var styles = {"backer":"bottom-sheet__backer_1r71r","button":"bottom-sheet__button_1r71r"};
17
17
  require('./index.css')
18
18
 
19
19
  var Backer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1hgxs */
1
+ /* hash: 1hvbs */
2
2
  :root {
3
3
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__backer_14xzk {
6
+ .bottom-sheet__backer_1r71r {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_14xzk {
16
+ .bottom-sheet__button_1r71r {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-fd688139.js');
5
+ var tslib_es6 = require('../../tslib.es6-7fdb05e4.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
16
16
 
17
- var styles = {"closer":"bottom-sheet__closer_1yeo9","button":"bottom-sheet__button_1yeo9"};
17
+ var styles = {"closer":"bottom-sheet__closer_1rjy4","button":"bottom-sheet__button_1rjy4"};
18
18
  require('./index.css')
19
19
 
20
20
  var Closer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1jhck */
1
+ /* hash: slp2v */
2
2
  :root {
3
3
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__closer_1yeo9 {
6
+ .bottom-sheet__closer_1rjy4 {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1yeo9 {
16
+ .bottom-sheet__button_1rjy4 {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_1fcyh","sticky":"bottom-sheet__sticky_1fcyh","highlighted":"bottom-sheet__highlighted_1fcyh"};
14
+ var styles = {"footer":"bottom-sheet__footer_iug7x","sticky":"bottom-sheet__sticky_iug7x","highlighted":"bottom-sheet__highlighted_iug7x"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1jlm4 */
1
+ /* hash: 1ijt7 */
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_1fcyh {
21
+ .bottom-sheet__footer_iug7x {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_1fcyh {
25
+ .bottom-sheet__sticky_iug7x {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_1fcyh {
29
+ .bottom-sheet__highlighted_iug7x {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../tslib.es6-fd688139.js');
5
+ require('../../tslib.es6-7fdb05e4.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
14
  require('../closer/Component.js');
15
15
  require('@alfalab/icons-glyph/ArrowBackMIcon');
16
16
  require('../backer/Component.js');
17
- var components_header_Component = require('../../component-640abf82.js');
17
+ var components_header_Component = require('../../component-a50a831b.js');
18
18
  require('../footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('../swipeable-backdrop/Component.js');
@@ -1,4 +1,4 @@
1
- /* hash: a32gl */
1
+ /* hash: f3wpb */
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_1hskz {
33
+ .bottom-sheet__headerWrapper_la2qp {
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_1hskz {
41
+ .bottom-sheet__header_la2qp {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_1hskz {
44
+ .bottom-sheet__sticky_la2qp {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_1hskz {
48
+ .bottom-sheet__highlighted_la2qp {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_1hskz {
51
+ .bottom-sheet__justifyEnd_la2qp {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_1hskz {
54
+ .bottom-sheet__addon_la2qp {
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_1hskz {
61
+ .bottom-sheet__addonFixed_la2qp {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_1hskz {
64
+ .bottom-sheet__addonLeft_la2qp {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_1hskz {
68
+ .bottom-sheet__addonRight_la2qp {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_1hskz {
72
+ .bottom-sheet__title_la2qp {
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_1hskz {
81
+ .bottom-sheet__titleCenter_la2qp {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_1hskz {
84
+ .bottom-sheet__titleLeft_la2qp {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_1hskz {
87
+ .bottom-sheet__trimTitle_la2qp {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_1hskz {
92
+ .bottom-sheet__titleBigIndentHorizontal_la2qp {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_1hskz {
95
+ .bottom-sheet__titleIndentRight_la2qp {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_1hskz {
98
+ .bottom-sheet__titleIndentLeft_la2qp {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-fd688139.js');
5
+ var tslib_es6 = require('../../tslib.es6-7fdb05e4.js');
6
6
  var React = require('react');
7
7
  var coreComponentsBackdrop = require('@alfalab/core-components-backdrop');
8
8
 
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from './tslib.es6-7bd2d41b.js';
1
+ import { _ as __assign } from './tslib.es6-f0ff4ec2.js';
2
2
  import React, { useContext, useEffect, forwardRef, useState, useRef, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { use100vh } from 'react-div-100vh';
@@ -10,7 +10,7 @@ import { Backer } from './components/backer/Component.js';
10
10
  import { Footer } from './components/footer/Component.js';
11
11
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
12
12
 
13
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1hskz","header":"bottom-sheet__header_1hskz","sticky":"bottom-sheet__sticky_1hskz","highlighted":"bottom-sheet__highlighted_1hskz","justifyEnd":"bottom-sheet__justifyEnd_1hskz","addon":"bottom-sheet__addon_1hskz","addonFixed":"bottom-sheet__addonFixed_1hskz","addonLeft":"bottom-sheet__addonLeft_1hskz","addonRight":"bottom-sheet__addonRight_1hskz","title":"bottom-sheet__title_1hskz","titleCenter":"bottom-sheet__titleCenter_1hskz","titleLeft":"bottom-sheet__titleLeft_1hskz","trimTitle":"bottom-sheet__trimTitle_1hskz","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1hskz","titleIndentRight":"bottom-sheet__titleIndentRight_1hskz","titleIndentLeft":"bottom-sheet__titleIndentLeft_1hskz"};
13
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_la2qp","header":"bottom-sheet__header_la2qp","sticky":"bottom-sheet__sticky_la2qp","highlighted":"bottom-sheet__highlighted_la2qp","justifyEnd":"bottom-sheet__justifyEnd_la2qp","addon":"bottom-sheet__addon_la2qp","addonFixed":"bottom-sheet__addonFixed_la2qp","addonLeft":"bottom-sheet__addonLeft_la2qp","addonRight":"bottom-sheet__addonRight_la2qp","title":"bottom-sheet__title_la2qp","titleCenter":"bottom-sheet__titleCenter_la2qp","titleLeft":"bottom-sheet__titleLeft_la2qp","trimTitle":"bottom-sheet__trimTitle_la2qp","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_la2qp","titleIndentRight":"bottom-sheet__titleIndentRight_la2qp","titleIndentLeft":"bottom-sheet__titleIndentLeft_la2qp"};
14
14
  require('./components/header/index.css')
15
15
 
16
16
  var Header = function (_a) {
@@ -60,7 +60,7 @@ var Header = function (_a) {
60
60
  bottomAddons));
61
61
  };
62
62
 
63
- var styles$1 = {"modal":"bottom-sheet__modal_1dcpm","component":"bottom-sheet__component_1dcpm","withTransition":"bottom-sheet__withTransition_1dcpm","withZeroTransition":"bottom-sheet__withZeroTransition_1dcpm","scrollableContainer":"bottom-sheet__scrollableContainer_1dcpm","marker":"bottom-sheet__marker_1dcpm","content":"bottom-sheet__content_1dcpm","noHeader":"bottom-sheet__noHeader_1dcpm","noFooter":"bottom-sheet__noFooter_1dcpm","scrollLocked":"bottom-sheet__scrollLocked_1dcpm","appear":"bottom-sheet__appear_1dcpm","enter":"bottom-sheet__enter_1dcpm","appearActive":"bottom-sheet__appearActive_1dcpm","enterActive":"bottom-sheet__enterActive_1dcpm","enterDone":"bottom-sheet__enterDone_1dcpm","appearDone":"bottom-sheet__appearDone_1dcpm","exit":"bottom-sheet__exit_1dcpm","exitActive":"bottom-sheet__exitActive_1dcpm"};
63
+ var styles$1 = {"modal":"bottom-sheet__modal_16hzh","component":"bottom-sheet__component_16hzh","withTransition":"bottom-sheet__withTransition_16hzh","withZeroTransition":"bottom-sheet__withZeroTransition_16hzh","scrollableContainer":"bottom-sheet__scrollableContainer_16hzh","marker":"bottom-sheet__marker_16hzh","content":"bottom-sheet__content_16hzh","noHeader":"bottom-sheet__noHeader_16hzh","noFooter":"bottom-sheet__noFooter_16hzh","scrollLocked":"bottom-sheet__scrollLocked_16hzh","appear":"bottom-sheet__appear_16hzh","enter":"bottom-sheet__enter_16hzh","appearActive":"bottom-sheet__appearActive_16hzh","enterActive":"bottom-sheet__enterActive_16hzh","enterDone":"bottom-sheet__enterDone_16hzh","appearDone":"bottom-sheet__appearDone_16hzh","exit":"bottom-sheet__exit_16hzh","exitActive":"bottom-sheet__exitActive_16hzh"};
64
64
  require('./index.css')
65
65
 
66
66
  var TIMEOUT = 300;
package/esm/component.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-7bd2d41b.js';
1
+ import './tslib.es6-f0ff4ec2.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
10
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-ccb0592e.js';
13
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-1a553fe5.js';
14
14
  import './components/footer/Component.js';
15
15
  import '@alfalab/core-components-backdrop/esm';
16
16
  import './components/swipeable-backdrop/Component.js';
@@ -1,10 +1,10 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-7bd2d41b.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-f0ff4ec2.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { IconButton } from '@alfalab/core-components-icon-button/esm';
5
5
  import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
6
6
 
7
- var styles = {"backer":"bottom-sheet__backer_14xzk","button":"bottom-sheet__button_14xzk"};
7
+ var styles = {"backer":"bottom-sheet__backer_1r71r","button":"bottom-sheet__button_1r71r"};
8
8
  require('./index.css')
9
9
 
10
10
  var Backer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1hgxs */
1
+ /* hash: 1hvbs */
2
2
  :root {
3
3
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__backer_14xzk {
6
+ .bottom-sheet__backer_1r71r {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_14xzk {
16
+ .bottom-sheet__button_1r71r {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -1,11 +1,11 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-7bd2d41b.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-f0ff4ec2.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_1yeo9","button":"bottom-sheet__button_1yeo9"};
8
+ var styles = {"closer":"bottom-sheet__closer_1rjy4","button":"bottom-sheet__button_1rjy4"};
9
9
  require('./index.css')
10
10
 
11
11
  var Closer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1jhck */
1
+ /* hash: slp2v */
2
2
  :root {
3
3
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__closer_1yeo9 {
6
+ .bottom-sheet__closer_1rjy4 {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1yeo9 {
16
+ .bottom-sheet__button_1rjy4 {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  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_1fcyh","sticky":"bottom-sheet__sticky_1fcyh","highlighted":"bottom-sheet__highlighted_1fcyh"};
5
+ var styles = {"footer":"bottom-sheet__footer_iug7x","sticky":"bottom-sheet__sticky_iug7x","highlighted":"bottom-sheet__highlighted_iug7x"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1jlm4 */
1
+ /* hash: 1ijt7 */
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_1fcyh {
21
+ .bottom-sheet__footer_iug7x {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_1fcyh {
25
+ .bottom-sheet__sticky_iug7x {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_1fcyh {
29
+ .bottom-sheet__highlighted_iug7x {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -1,4 +1,4 @@
1
- import '../../tslib.es6-7bd2d41b.js';
1
+ import '../../tslib.es6-f0ff4ec2.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
10
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-ccb0592e.js';
13
+ export { a as Header } from '../../component-1a553fe5.js';
14
14
  import '../footer/Component.js';
15
15
  import '@alfalab/core-components-backdrop/esm';
16
16
  import '../swipeable-backdrop/Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: a32gl */
1
+ /* hash: f3wpb */
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_1hskz {
33
+ .bottom-sheet__headerWrapper_la2qp {
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_1hskz {
41
+ .bottom-sheet__header_la2qp {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_1hskz {
44
+ .bottom-sheet__sticky_la2qp {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_1hskz {
48
+ .bottom-sheet__highlighted_la2qp {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_1hskz {
51
+ .bottom-sheet__justifyEnd_la2qp {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_1hskz {
54
+ .bottom-sheet__addon_la2qp {
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_1hskz {
61
+ .bottom-sheet__addonFixed_la2qp {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_1hskz {
64
+ .bottom-sheet__addonLeft_la2qp {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_1hskz {
68
+ .bottom-sheet__addonRight_la2qp {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_1hskz {
72
+ .bottom-sheet__title_la2qp {
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_1hskz {
81
+ .bottom-sheet__titleCenter_la2qp {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_1hskz {
84
+ .bottom-sheet__titleLeft_la2qp {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_1hskz {
87
+ .bottom-sheet__trimTitle_la2qp {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_1hskz {
92
+ .bottom-sheet__titleBigIndentHorizontal_la2qp {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_1hskz {
95
+ .bottom-sheet__titleIndentRight_la2qp {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_1hskz {
98
+ .bottom-sheet__titleIndentLeft_la2qp {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
@@ -1,4 +1,4 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-7bd2d41b.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-f0ff4ec2.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: 3wlzb */
1
+ /* hash: 1c22j */
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_1dcpm {
27
+ .bottom-sheet__modal_16hzh {
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_1dcpm {
34
+ .bottom-sheet__component_16hzh {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
@@ -41,20 +41,20 @@
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_1dcpm {
44
+ .bottom-sheet__withTransition_16hzh {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__withZeroTransition_1dcpm {
47
+ .bottom-sheet__withZeroTransition_16hzh {
48
48
  transition: 0s linear;
49
49
  }
50
- .bottom-sheet__scrollableContainer_1dcpm {
50
+ .bottom-sheet__scrollableContainer_16hzh {
51
51
  overflow: auto;
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  position: relative;
55
55
  height: 100%;
56
56
  }
57
- .bottom-sheet__marker_1dcpm {
57
+ .bottom-sheet__marker_16hzh {
58
58
  position: fixed;
59
59
  top: var(--gap-2xs);
60
60
  left: 50%;
@@ -65,7 +65,7 @@
65
65
  background-color: var(--color-light-graphic-quaternary);
66
66
  z-index: 1000;
67
67
  }
68
- .bottom-sheet__content_1dcpm {
68
+ .bottom-sheet__content_16hzh {
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  flex: 1;
@@ -73,29 +73,29 @@
73
73
  color: var(--color-light-text-primary);
74
74
  background-color: var(--color-light-bg-primary);
75
75
  }
76
- .bottom-sheet__noHeader_1dcpm {
76
+ .bottom-sheet__noHeader_16hzh {
77
77
  padding-top: var(--gap-xl);
78
78
  }
79
- .bottom-sheet__noFooter_1dcpm {
79
+ .bottom-sheet__noFooter_16hzh {
80
80
  padding-bottom: var(--gap-m);
81
81
  }
82
- .bottom-sheet__scrollLocked_1dcpm {
82
+ .bottom-sheet__scrollLocked_16hzh {
83
83
  overflow: hidden;
84
84
  }
85
- .bottom-sheet__appear_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enter_1dcpm .bottom-sheet__component_1dcpm {
85
+ .bottom-sheet__appear_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enter_16hzh .bottom-sheet__component_16hzh {
86
86
  transition: none;
87
87
  }
88
- .bottom-sheet__appearActive_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enterActive_1dcpm .bottom-sheet__component_1dcpm {
88
+ .bottom-sheet__appearActive_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enterActive_16hzh .bottom-sheet__component_16hzh {
89
89
  transition: var(--bottom-sheet-in-transition);
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__enterDone_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__appearDone_1dcpm .bottom-sheet__component_1dcpm {
92
+ .bottom-sheet__enterDone_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__appearDone_16hzh .bottom-sheet__component_16hzh {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exit_1dcpm .bottom-sheet__component_1dcpm {
95
+ .bottom-sheet__exit_16hzh .bottom-sheet__component_16hzh {
96
96
  transform: translateY(0);
97
97
  }
98
- .bottom-sheet__exitActive_1dcpm .bottom-sheet__component_1dcpm {
98
+ .bottom-sheet__exitActive_16hzh .bottom-sheet__component_16hzh {
99
99
  transition: var(--bottom-sheet-out-transition);
100
100
  transform: translateY(100%);
101
101
  }
package/esm/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-ccb0592e";
1
+ export * from "./component-1a553fe5";
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-7bd2d41b.js';
1
+ import './tslib.es6-f0ff4ec2.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
10
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-ccb0592e.js';
13
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-1a553fe5.js';
14
14
  import './components/footer/Component.js';
15
15
  import '@alfalab/core-components-backdrop/esm';
16
16
  import './components/swipeable-backdrop/Component.js';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 3wlzb */
1
+ /* hash: 1c22j */
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_1dcpm {
27
+ .bottom-sheet__modal_16hzh {
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_1dcpm {
34
+ .bottom-sheet__component_16hzh {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
@@ -41,20 +41,20 @@
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_1dcpm {
44
+ .bottom-sheet__withTransition_16hzh {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__withZeroTransition_1dcpm {
47
+ .bottom-sheet__withZeroTransition_16hzh {
48
48
  transition: 0s linear;
49
49
  }
50
- .bottom-sheet__scrollableContainer_1dcpm {
50
+ .bottom-sheet__scrollableContainer_16hzh {
51
51
  overflow: auto;
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  position: relative;
55
55
  height: 100%;
56
56
  }
57
- .bottom-sheet__marker_1dcpm {
57
+ .bottom-sheet__marker_16hzh {
58
58
  position: fixed;
59
59
  top: var(--gap-2xs);
60
60
  left: 50%;
@@ -65,7 +65,7 @@
65
65
  background-color: var(--color-light-graphic-quaternary);
66
66
  z-index: 1000;
67
67
  }
68
- .bottom-sheet__content_1dcpm {
68
+ .bottom-sheet__content_16hzh {
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  flex: 1;
@@ -73,29 +73,29 @@
73
73
  color: var(--color-light-text-primary);
74
74
  background-color: var(--color-light-bg-primary);
75
75
  }
76
- .bottom-sheet__noHeader_1dcpm {
76
+ .bottom-sheet__noHeader_16hzh {
77
77
  padding-top: var(--gap-xl);
78
78
  }
79
- .bottom-sheet__noFooter_1dcpm {
79
+ .bottom-sheet__noFooter_16hzh {
80
80
  padding-bottom: var(--gap-m);
81
81
  }
82
- .bottom-sheet__scrollLocked_1dcpm {
82
+ .bottom-sheet__scrollLocked_16hzh {
83
83
  overflow: hidden;
84
84
  }
85
- .bottom-sheet__appear_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enter_1dcpm .bottom-sheet__component_1dcpm {
85
+ .bottom-sheet__appear_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enter_16hzh .bottom-sheet__component_16hzh {
86
86
  transition: none;
87
87
  }
88
- .bottom-sheet__appearActive_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enterActive_1dcpm .bottom-sheet__component_1dcpm {
88
+ .bottom-sheet__appearActive_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enterActive_16hzh .bottom-sheet__component_16hzh {
89
89
  transition: var(--bottom-sheet-in-transition);
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__enterDone_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__appearDone_1dcpm .bottom-sheet__component_1dcpm {
92
+ .bottom-sheet__enterDone_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__appearDone_16hzh .bottom-sheet__component_16hzh {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exit_1dcpm .bottom-sheet__component_1dcpm {
95
+ .bottom-sheet__exit_16hzh .bottom-sheet__component_16hzh {
96
96
  transform: translateY(0);
97
97
  }
98
- .bottom-sheet__exitActive_1dcpm .bottom-sheet__component_1dcpm {
98
+ .bottom-sheet__exitActive_16hzh .bottom-sheet__component_16hzh {
99
99
  transition: var(--bottom-sheet-out-transition);
100
100
  transform: translateY(100%);
101
101
  }
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-640abf82";
1
+ export * from "./component-a50a831b";
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-fd688139.js');
5
+ require('./tslib.es6-7fdb05e4.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
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-640abf82.js');
17
+ var components_header_Component = require('./component-a50a831b.js');
18
18
  require('./components/footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('./components/swipeable-backdrop/Component.js');
@@ -9,7 +9,7 @@ import { Backer } from './components/backer/Component.js';
9
9
  import { Footer } from './components/footer/Component.js';
10
10
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
11
11
 
12
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1hskz","header":"bottom-sheet__header_1hskz","sticky":"bottom-sheet__sticky_1hskz","highlighted":"bottom-sheet__highlighted_1hskz","justifyEnd":"bottom-sheet__justifyEnd_1hskz","addon":"bottom-sheet__addon_1hskz","addonFixed":"bottom-sheet__addonFixed_1hskz","addonLeft":"bottom-sheet__addonLeft_1hskz","addonRight":"bottom-sheet__addonRight_1hskz","title":"bottom-sheet__title_1hskz","titleCenter":"bottom-sheet__titleCenter_1hskz","titleLeft":"bottom-sheet__titleLeft_1hskz","trimTitle":"bottom-sheet__trimTitle_1hskz","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1hskz","titleIndentRight":"bottom-sheet__titleIndentRight_1hskz","titleIndentLeft":"bottom-sheet__titleIndentLeft_1hskz"};
12
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_la2qp","header":"bottom-sheet__header_la2qp","sticky":"bottom-sheet__sticky_la2qp","highlighted":"bottom-sheet__highlighted_la2qp","justifyEnd":"bottom-sheet__justifyEnd_la2qp","addon":"bottom-sheet__addon_la2qp","addonFixed":"bottom-sheet__addonFixed_la2qp","addonLeft":"bottom-sheet__addonLeft_la2qp","addonRight":"bottom-sheet__addonRight_la2qp","title":"bottom-sheet__title_la2qp","titleCenter":"bottom-sheet__titleCenter_la2qp","titleLeft":"bottom-sheet__titleLeft_la2qp","trimTitle":"bottom-sheet__trimTitle_la2qp","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_la2qp","titleIndentRight":"bottom-sheet__titleIndentRight_la2qp","titleIndentLeft":"bottom-sheet__titleIndentLeft_la2qp"};
13
13
  require('./components/header/index.css')
14
14
 
15
15
  const Header = ({ title, headerClassName, addonClassName, closerClassName, backerClassName, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign, trimTitle, sticky, onBack, }) => {
@@ -56,7 +56,7 @@ const Header = ({ title, headerClassName, addonClassName, closerClassName, backe
56
56
  bottomAddons));
57
57
  };
58
58
 
59
- var styles$1 = {"modal":"bottom-sheet__modal_1dcpm","component":"bottom-sheet__component_1dcpm","withTransition":"bottom-sheet__withTransition_1dcpm","withZeroTransition":"bottom-sheet__withZeroTransition_1dcpm","scrollableContainer":"bottom-sheet__scrollableContainer_1dcpm","marker":"bottom-sheet__marker_1dcpm","content":"bottom-sheet__content_1dcpm","noHeader":"bottom-sheet__noHeader_1dcpm","noFooter":"bottom-sheet__noFooter_1dcpm","scrollLocked":"bottom-sheet__scrollLocked_1dcpm","appear":"bottom-sheet__appear_1dcpm","enter":"bottom-sheet__enter_1dcpm","appearActive":"bottom-sheet__appearActive_1dcpm","enterActive":"bottom-sheet__enterActive_1dcpm","enterDone":"bottom-sheet__enterDone_1dcpm","appearDone":"bottom-sheet__appearDone_1dcpm","exit":"bottom-sheet__exit_1dcpm","exitActive":"bottom-sheet__exitActive_1dcpm"};
59
+ var styles$1 = {"modal":"bottom-sheet__modal_16hzh","component":"bottom-sheet__component_16hzh","withTransition":"bottom-sheet__withTransition_16hzh","withZeroTransition":"bottom-sheet__withZeroTransition_16hzh","scrollableContainer":"bottom-sheet__scrollableContainer_16hzh","marker":"bottom-sheet__marker_16hzh","content":"bottom-sheet__content_16hzh","noHeader":"bottom-sheet__noHeader_16hzh","noFooter":"bottom-sheet__noFooter_16hzh","scrollLocked":"bottom-sheet__scrollLocked_16hzh","appear":"bottom-sheet__appear_16hzh","enter":"bottom-sheet__enter_16hzh","appearActive":"bottom-sheet__appearActive_16hzh","enterActive":"bottom-sheet__enterActive_16hzh","enterDone":"bottom-sheet__enterDone_16hzh","appearDone":"bottom-sheet__appearDone_16hzh","exit":"bottom-sheet__exit_16hzh","exitActive":"bottom-sheet__exitActive_16hzh"};
60
60
  require('./index.css')
61
61
 
62
62
  const TIMEOUT = 300;
@@ -186,7 +186,7 @@ const BottomSheet = forwardRef(({ open, title, actionButton, contentClassName, c
186
186
  delta: 5,
187
187
  trackMouse: swipeable,
188
188
  });
189
- const handleExited = useCallback(node => {
189
+ const handleExited = useCallback((node) => {
190
190
  setBackdropOpacity(1);
191
191
  if (transitionProps.onExited) {
192
192
  transitionProps.onExited(node);
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
9
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-1c3da841.js';
12
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-cc142f56.js';
13
13
  import './components/footer/Component.js';
14
14
  import '@alfalab/core-components-backdrop/modern';
15
15
  import './components/swipeable-backdrop/Component.js';
@@ -3,7 +3,7 @@ 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_14xzk","button":"bottom-sheet__button_14xzk"};
6
+ var styles = {"backer":"bottom-sheet__backer_1r71r","button":"bottom-sheet__button_1r71r"};
7
7
  require('./index.css')
8
8
 
9
9
  const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, onClick, ...restProps }) => {
@@ -1,9 +1,9 @@
1
- /* hash: 1hgxs */
1
+ /* hash: 1hvbs */
2
2
  :root {
3
3
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__backer_14xzk {
6
+ .bottom-sheet__backer_1r71r {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_14xzk {
16
+ .bottom-sheet__button_1r71r {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -4,7 +4,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
4
4
  import { IconButton } from '@alfalab/core-components-icon-button/modern';
5
5
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
6
6
 
7
- var styles = {"closer":"bottom-sheet__closer_1yeo9","button":"bottom-sheet__button_1yeo9"};
7
+ var styles = {"closer":"bottom-sheet__closer_1rjy4","button":"bottom-sheet__button_1rjy4"};
8
8
  require('./index.css')
9
9
 
10
10
  const Closer = ({ className, size = 'xs', icon = CrossMIcon, ...restProps }) => {
@@ -1,9 +1,9 @@
1
- /* hash: 1jhck */
1
+ /* hash: slp2v */
2
2
  :root {
3
3
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__closer_1yeo9 {
6
+ .bottom-sheet__closer_1rjy4 {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1yeo9 {
16
+ .bottom-sheet__button_1rjy4 {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  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/modern';
4
4
 
5
- var styles = {"footer":"bottom-sheet__footer_1fcyh","sticky":"bottom-sheet__sticky_1fcyh","highlighted":"bottom-sheet__highlighted_1fcyh"};
5
+ var styles = {"footer":"bottom-sheet__footer_iug7x","sticky":"bottom-sheet__sticky_iug7x","highlighted":"bottom-sheet__highlighted_iug7x"};
6
6
  require('./index.css')
7
7
 
8
8
  const Footer = ({ children, className, sticky }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1jlm4 */
1
+ /* hash: 1ijt7 */
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_1fcyh {
21
+ .bottom-sheet__footer_iug7x {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_1fcyh {
25
+ .bottom-sheet__sticky_iug7x {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_1fcyh {
29
+ .bottom-sheet__highlighted_iug7x {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
9
9
  import '../closer/Component.js';
10
10
  import '@alfalab/icons-glyph/ArrowBackMIcon';
11
11
  import '../backer/Component.js';
12
- export { a as Header } from '../../component-1c3da841.js';
12
+ export { a as Header } from '../../component-cc142f56.js';
13
13
  import '../footer/Component.js';
14
14
  import '@alfalab/core-components-backdrop/modern';
15
15
  import '../swipeable-backdrop/Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: a32gl */
1
+ /* hash: f3wpb */
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_1hskz {
33
+ .bottom-sheet__headerWrapper_la2qp {
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_1hskz {
41
+ .bottom-sheet__header_la2qp {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_1hskz {
44
+ .bottom-sheet__sticky_la2qp {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_1hskz {
48
+ .bottom-sheet__highlighted_la2qp {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_1hskz {
51
+ .bottom-sheet__justifyEnd_la2qp {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_1hskz {
54
+ .bottom-sheet__addon_la2qp {
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_1hskz {
61
+ .bottom-sheet__addonFixed_la2qp {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_1hskz {
64
+ .bottom-sheet__addonLeft_la2qp {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_1hskz {
68
+ .bottom-sheet__addonRight_la2qp {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_1hskz {
72
+ .bottom-sheet__title_la2qp {
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_1hskz {
81
+ .bottom-sheet__titleCenter_la2qp {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_1hskz {
84
+ .bottom-sheet__titleLeft_la2qp {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_1hskz {
87
+ .bottom-sheet__trimTitle_la2qp {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_1hskz {
92
+ .bottom-sheet__titleBigIndentHorizontal_la2qp {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_1hskz {
95
+ .bottom-sheet__titleIndentRight_la2qp {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_1hskz {
98
+ .bottom-sheet__titleIndentLeft_la2qp {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 3wlzb */
1
+ /* hash: 1c22j */
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_1dcpm {
27
+ .bottom-sheet__modal_16hzh {
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_1dcpm {
34
+ .bottom-sheet__component_16hzh {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
@@ -41,20 +41,20 @@
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_1dcpm {
44
+ .bottom-sheet__withTransition_16hzh {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__withZeroTransition_1dcpm {
47
+ .bottom-sheet__withZeroTransition_16hzh {
48
48
  transition: 0s linear;
49
49
  }
50
- .bottom-sheet__scrollableContainer_1dcpm {
50
+ .bottom-sheet__scrollableContainer_16hzh {
51
51
  overflow: auto;
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  position: relative;
55
55
  height: 100%;
56
56
  }
57
- .bottom-sheet__marker_1dcpm {
57
+ .bottom-sheet__marker_16hzh {
58
58
  position: fixed;
59
59
  top: var(--gap-2xs);
60
60
  left: 50%;
@@ -65,7 +65,7 @@
65
65
  background-color: var(--color-light-graphic-quaternary);
66
66
  z-index: 1000;
67
67
  }
68
- .bottom-sheet__content_1dcpm {
68
+ .bottom-sheet__content_16hzh {
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  flex: 1;
@@ -73,29 +73,29 @@
73
73
  color: var(--color-light-text-primary);
74
74
  background-color: var(--color-light-bg-primary);
75
75
  }
76
- .bottom-sheet__noHeader_1dcpm {
76
+ .bottom-sheet__noHeader_16hzh {
77
77
  padding-top: var(--gap-xl);
78
78
  }
79
- .bottom-sheet__noFooter_1dcpm {
79
+ .bottom-sheet__noFooter_16hzh {
80
80
  padding-bottom: var(--gap-m);
81
81
  }
82
- .bottom-sheet__scrollLocked_1dcpm {
82
+ .bottom-sheet__scrollLocked_16hzh {
83
83
  overflow: hidden;
84
84
  }
85
- .bottom-sheet__appear_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enter_1dcpm .bottom-sheet__component_1dcpm {
85
+ .bottom-sheet__appear_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enter_16hzh .bottom-sheet__component_16hzh {
86
86
  transition: none;
87
87
  }
88
- .bottom-sheet__appearActive_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__enterActive_1dcpm .bottom-sheet__component_1dcpm {
88
+ .bottom-sheet__appearActive_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__enterActive_16hzh .bottom-sheet__component_16hzh {
89
89
  transition: var(--bottom-sheet-in-transition);
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__enterDone_1dcpm .bottom-sheet__component_1dcpm, .bottom-sheet__appearDone_1dcpm .bottom-sheet__component_1dcpm {
92
+ .bottom-sheet__enterDone_16hzh .bottom-sheet__component_16hzh, .bottom-sheet__appearDone_16hzh .bottom-sheet__component_16hzh {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exit_1dcpm .bottom-sheet__component_1dcpm {
95
+ .bottom-sheet__exit_16hzh .bottom-sheet__component_16hzh {
96
96
  transform: translateY(0);
97
97
  }
98
- .bottom-sheet__exitActive_1dcpm .bottom-sheet__component_1dcpm {
98
+ .bottom-sheet__exitActive_16hzh .bottom-sheet__component_16hzh {
99
99
  transition: var(--bottom-sheet-out-transition);
100
100
  transform: translateY(100%);
101
101
  }
package/modern/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-1c3da841";
1
+ export * from "./component-cc142f56";
package/modern/index.js CHANGED
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/CrossMIcon';
9
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-1c3da841.js';
12
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-cc142f56.js';
13
13
  import './components/footer/Component.js';
14
14
  import '@alfalab/core-components-backdrop/modern';
15
15
  import './components/swipeable-backdrop/Component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-bottom-sheet",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "Bottom sheet mobile component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,15 +14,15 @@
14
14
  "directory": "dist"
15
15
  },
16
16
  "peerDependencies": {
17
- "react": "^16.9.0 || ^17.0.1",
18
- "react-dom": "^16.9.0 || ^17.0.1"
17
+ "react": "^16.9.0 || ^17.0.1 || ^18.0.0",
18
+ "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-backdrop": "^2.1.3",
22
- "@alfalab/core-components-base-modal": "^4.2.2",
23
- "@alfalab/core-components-icon-button": "^4.2.3",
24
- "@alfalab/core-components-typography": "^2.6.3",
25
- "classnames": "^2.2.6",
21
+ "@alfalab/core-components-backdrop": "^2.2.0",
22
+ "@alfalab/core-components-base-modal": "^4.3.0",
23
+ "@alfalab/core-components-icon-button": "^4.3.0",
24
+ "@alfalab/core-components-typography": "^2.7.0",
25
+ "classnames": "^2.3.1",
26
26
  "react-div-100vh": "^0.7.0",
27
27
  "react-swipeable": "^5.5.1",
28
28
  "react-transition-group": "^4.4.1"