@alfalab/core-components-bottom-sheet 4.5.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 (57) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/{component-e5dc7971.d.ts → component-a50a831b.d.ts} +13 -0
  3. package/{component-e5dc7971.js → component-a50a831b.js} +5 -10
  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-74f4ab96.d.ts → cssm/component-78755a1d.d.ts} +13 -0
  15. package/cssm/{component-eb26b84c.js → component-78755a1d.js} +2 -7
  16. package/cssm/component.js +1 -1
  17. package/cssm/components/header/Component.js +1 -1
  18. package/cssm/index.d.ts +1 -1
  19. package/cssm/index.js +1 -1
  20. package/cssm/index.module.css +3 -3
  21. package/{cssm/component-eb26b84c.d.ts → esm/component-1a553fe5.d.ts} +13 -0
  22. package/esm/{component-74f4ab96.js → component-1a553fe5.js} +5 -10
  23. package/esm/component.js +2 -2
  24. package/esm/components/backer/Component.js +2 -2
  25. package/esm/components/backer/index.css +3 -3
  26. package/esm/components/closer/Component.js +2 -2
  27. package/esm/components/closer/index.css +3 -3
  28. package/esm/components/footer/Component.js +1 -1
  29. package/esm/components/footer/index.css +4 -4
  30. package/esm/components/header/Component.js +2 -2
  31. package/esm/components/header/index.css +17 -17
  32. package/esm/components/swipeable-backdrop/Component.js +1 -1
  33. package/esm/index.css +19 -19
  34. package/esm/index.d.ts +1 -1
  35. package/esm/index.js +2 -2
  36. package/esm/{tslib.es6-d03e2565.d.ts → tslib.es6-f0ff4ec2.d.ts} +0 -0
  37. package/esm/{tslib.es6-d03e2565.js → tslib.es6-f0ff4ec2.js} +0 -0
  38. package/index.css +19 -19
  39. package/index.d.ts +1 -1
  40. package/index.js +2 -2
  41. package/modern/{component-1e9e1e64.d.ts → component-cc142f56.d.ts} +13 -0
  42. package/modern/{component-1e9e1e64.js → component-cc142f56.js} +6 -5
  43. package/modern/component.js +1 -1
  44. package/modern/components/backer/Component.js +1 -1
  45. package/modern/components/backer/index.css +3 -3
  46. package/modern/components/closer/Component.js +1 -1
  47. package/modern/components/closer/index.css +3 -3
  48. package/modern/components/footer/Component.js +1 -1
  49. package/modern/components/footer/index.css +4 -4
  50. package/modern/components/header/Component.js +1 -1
  51. package/modern/components/header/index.css +17 -17
  52. package/modern/index.css +19 -19
  53. package/modern/index.d.ts +1 -1
  54. package/modern/index.js +1 -1
  55. package/package.json +9 -9
  56. /package/{tslib.es6-b41d111d.d.ts → tslib.es6-7fdb05e4.d.ts} +0 -0
  57. /package/{tslib.es6-b41d111d.js → tslib.es6-7fdb05e4.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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
+
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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **bottom-sheet:** fix component border-radius ([#157](https://github.com/core-ds/core-components/issues/157)) ([57b767e](https://github.com/core-ds/core-components/commit/57b767e43e40e9170967e3a53481e21f92cb0190))
23
+ * **bottom-sheet:** fix doc ([#163](https://github.com/core-ds/core-components/issues/163)) ([cbf3282](https://github.com/core-ds/core-components/commit/cbf32828bc2fe472d59d52c1e5644e7934262d73))
24
+
25
+
26
+
27
+
28
+
29
+ ## [4.6.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.6.0...@alfalab/core-components-bottom-sheet@4.6.1) (2022-07-18)
30
+
31
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
32
+
33
+
34
+
35
+
36
+
37
+ # [4.6.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.2...@alfalab/core-components-bottom-sheet@4.6.0) (2022-07-15)
38
+
39
+
40
+ ### Features
41
+
42
+ * **bottom-sheet:** add props for disable blocking scroll and modal wrapper classname ([#147](https://github.com/core-ds/core-components/issues/147)) ([a873c20](https://github.com/core-ds/core-components/commit/a873c2035d4885c1b8e5ffae02ce75c4826d1e71))
43
+
44
+
45
+
46
+
47
+
6
48
  ## [4.5.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.1...@alfalab/core-components-bottom-sheet@4.5.2) (2022-07-15)
7
49
 
8
50
 
@@ -4,6 +4,7 @@ import React from "react";
4
4
  import { FC, ReactNode, HTMLAttributes } from "react";
5
5
  import { BottomSheetTitleAlign } from "./index";
6
6
  import { TransitionProps } from 'react-transition-group/Transition';
7
+ import { BaseModalProps } from "@alfalab/core-components-base-modal";
7
8
  type HeaderProps = {
8
9
  /**
9
10
  * Заголовок
@@ -121,6 +122,10 @@ type BottomSheetProps = {
121
122
  * Дополнительный класс для компонента модального окна
122
123
  */
123
124
  modalClassName?: string;
125
+ /**
126
+ * Дополнительный класс для обертки модального окна
127
+ */
128
+ modalWrapperClassName?: string;
124
129
  /**
125
130
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
126
131
  */
@@ -190,10 +195,18 @@ type BottomSheetProps = {
190
195
  * Запретить закрытие шторки кликом на оверлэй
191
196
  */
192
197
  disableOverlayClick?: boolean;
198
+ /**
199
+ * Отключает блокировку скролла при открытии модального окна
200
+ */
201
+ disableBlockingScroll?: boolean;
193
202
  /**
194
203
  * Не анимировать шторку при изменении размера вьюпорта
195
204
  */
196
205
  ignoreScreenChange?: boolean;
206
+ /**
207
+ * Свойства для Бэкдропа
208
+ */
209
+ backdropProps?: BaseModalProps['backdropProps'];
197
210
  /**
198
211
  * Обработчик закрытия
199
212
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-b41d111d.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_59vve","header":"bottom-sheet__header_59vve","sticky":"bottom-sheet__sticky_59vve","highlighted":"bottom-sheet__highlighted_59vve","justifyEnd":"bottom-sheet__justifyEnd_59vve","addon":"bottom-sheet__addon_59vve","addonFixed":"bottom-sheet__addonFixed_59vve","addonLeft":"bottom-sheet__addonLeft_59vve","addonRight":"bottom-sheet__addonRight_59vve","title":"bottom-sheet__title_59vve","titleCenter":"bottom-sheet__titleCenter_59vve","titleLeft":"bottom-sheet__titleLeft_59vve","trimTitle":"bottom-sheet__trimTitle_59vve","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_59vve","titleIndentRight":"bottom-sheet__titleIndentRight_59vve","titleIndentLeft":"bottom-sheet__titleIndentLeft_59vve"};
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_s5s5k","component":"bottom-sheet__component_s5s5k","withTransition":"bottom-sheet__withTransition_s5s5k","withZeroTransition":"bottom-sheet__withZeroTransition_s5s5k","scrollableContainer":"bottom-sheet__scrollableContainer_s5s5k","marker":"bottom-sheet__marker_s5s5k","content":"bottom-sheet__content_s5s5k","noHeader":"bottom-sheet__noHeader_s5s5k","noFooter":"bottom-sheet__noFooter_s5s5k","scrollLocked":"bottom-sheet__scrollLocked_s5s5k","appear":"bottom-sheet__appear_s5s5k","enter":"bottom-sheet__enter_s5s5k","appearActive":"bottom-sheet__appearActive_s5s5k","enterActive":"bottom-sheet__enterActive_s5s5k","enterDone":"bottom-sheet__enterDone_s5s5k","appearDone":"bottom-sheet__appearDone_s5s5k","exit":"bottom-sheet__exit_s5s5k","exitActive":"bottom-sheet__exitActive_s5s5k"};
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;
@@ -80,7 +80,7 @@ var HEADER_OFFSET = 24;
80
80
  var CLOSE_OFFSET = 0.2;
81
81
  var BottomSheet = React.forwardRef(function (_a, ref) {
82
82
  var _b, _c, _d;
83
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
83
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
84
84
  var _l = React.useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
85
85
  var _m = React.useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
86
86
  var _o = React.useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -232,12 +232,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
232
232
  height: initialHeight === 'full' ? targetHeight : 'unset',
233
233
  maxHeight: targetHeight,
234
234
  }); };
235
- return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: {
236
- opacity: backdropOpacity,
237
- handlers: swipeable ? backdropSwipeablehandlers : false,
238
- opacityTimeout: TIMEOUT,
239
- invisible: initialHeight === 'full' ? false : hideOverlay,
240
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles$1.modal, modalClassName), transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
235
+ return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib_es6.__assign(tslib_es6.__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles$1.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
241
236
  React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles$1.component, className, (_b = {},
242
237
  _b[transitionClassName] = !sheetOffset,
243
238
  _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
package/component.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-b41d111d.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-e5dc7971.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-b41d111d.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_l509u","button":"bottom-sheet__button_l509u"};
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: 4y4sc */
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_l509u {
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_l509u {
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-b41d111d.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_1d7qs","button":"bottom-sheet__button_1d7qs"};
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: 19wfg */
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_1d7qs {
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_1d7qs {
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_80ud5","sticky":"bottom-sheet__sticky_80ud5","highlighted":"bottom-sheet__highlighted_80ud5"};
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: tfjtx */
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_80ud5 {
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_80ud5 {
25
+ .bottom-sheet__sticky_iug7x {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_80ud5 {
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-b41d111d.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-e5dc7971.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: 1wuad */
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_59vve {
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_59vve {
41
+ .bottom-sheet__header_la2qp {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_59vve {
44
+ .bottom-sheet__sticky_la2qp {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_59vve {
48
+ .bottom-sheet__highlighted_la2qp {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_59vve {
51
+ .bottom-sheet__justifyEnd_la2qp {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_59vve {
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_59vve {
61
+ .bottom-sheet__addonFixed_la2qp {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_59vve {
64
+ .bottom-sheet__addonLeft_la2qp {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_59vve {
68
+ .bottom-sheet__addonRight_la2qp {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_59vve {
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_59vve {
81
+ .bottom-sheet__titleCenter_la2qp {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_59vve {
84
+ .bottom-sheet__titleLeft_la2qp {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_59vve {
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_59vve {
92
+ .bottom-sheet__titleBigIndentHorizontal_la2qp {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_59vve {
95
+ .bottom-sheet__titleIndentRight_la2qp {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_59vve {
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-b41d111d.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
 
@@ -4,6 +4,7 @@ import React from "react";
4
4
  import { FC, ReactNode, HTMLAttributes } from "react";
5
5
  import { BottomSheetTitleAlign } from "./index";
6
6
  import { TransitionProps } from 'react-transition-group/Transition';
7
+ import { BaseModalProps } from "@alfalab/core-components-base-modal";
7
8
  type HeaderProps = {
8
9
  /**
9
10
  * Заголовок
@@ -121,6 +122,10 @@ type BottomSheetProps = {
121
122
  * Дополнительный класс для компонента модального окна
122
123
  */
123
124
  modalClassName?: string;
125
+ /**
126
+ * Дополнительный класс для обертки модального окна
127
+ */
128
+ modalWrapperClassName?: string;
124
129
  /**
125
130
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
126
131
  */
@@ -190,10 +195,18 @@ type BottomSheetProps = {
190
195
  * Запретить закрытие шторки кликом на оверлэй
191
196
  */
192
197
  disableOverlayClick?: boolean;
198
+ /**
199
+ * Отключает блокировку скролла при открытии модального окна
200
+ */
201
+ disableBlockingScroll?: boolean;
193
202
  /**
194
203
  * Не анимировать шторку при изменении размера вьюпорта
195
204
  */
196
205
  ignoreScreenChange?: boolean;
206
+ /**
207
+ * Свойства для Бэкдропа
208
+ */
209
+ backdropProps?: BaseModalProps['backdropProps'];
197
210
  /**
198
211
  * Обработчик закрытия
199
212
  */
@@ -78,7 +78,7 @@ var HEADER_OFFSET = 24;
78
78
  var CLOSE_OFFSET = 0.2;
79
79
  var BottomSheet = React.forwardRef(function (_a, ref) {
80
80
  var _b, _c, _d;
81
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
81
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
82
82
  var _l = React.useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
83
83
  var _m = React.useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
84
84
  var _o = React.useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -230,12 +230,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
230
230
  height: initialHeight === 'full' ? targetHeight : 'unset',
231
231
  maxHeight: targetHeight,
232
232
  }); };
233
- return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: {
234
- opacity: backdropOpacity,
235
- handlers: swipeable ? backdropSwipeablehandlers : false,
236
- opacityTimeout: TIMEOUT,
237
- invisible: initialHeight === 'full' ? false : hideOverlay,
238
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles__default$1['default'].modal, modalClassName), transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles__default$1['default'] }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
233
+ return (React__default['default'].createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib_es6.__assign(tslib_es6.__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles__default$1['default'].modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles__default$1['default'] }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
239
234
  React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles__default$1['default'].component, className, (_b = {},
240
235
  _b[transitionClassName] = !sheetOffset,
241
236
  _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
package/cssm/component.js CHANGED
@@ -17,7 +17,7 @@ require('@alfalab/icons-glyph/ArrowBackMIcon');
17
17
  require('./components/backer/index.module.css');
18
18
  require('./components/backer/Component.js');
19
19
  require('./components/header/index.module.css');
20
- var components_header_Component = require('./component-eb26b84c.js');
20
+ var components_header_Component = require('./component-78755a1d.js');
21
21
  require('./components/footer/index.module.css');
22
22
  require('./components/footer/Component.js');
23
23
  require('@alfalab/core-components-backdrop/cssm');
@@ -17,7 +17,7 @@ require('@alfalab/icons-glyph/ArrowBackMIcon');
17
17
  require('../backer/index.module.css');
18
18
  require('../backer/Component.js');
19
19
  require('./index.module.css');
20
- var components_header_Component = require('../../component-eb26b84c.js');
20
+ var components_header_Component = require('../../component-78755a1d.js');
21
21
  require('../footer/index.module.css');
22
22
  require('../footer/Component.js');
23
23
  require('@alfalab/core-components-backdrop/cssm');
package/cssm/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./component-eb26b84c";
1
+ export * from "./component-78755a1d";
package/cssm/index.js CHANGED
@@ -17,7 +17,7 @@ require('@alfalab/icons-glyph/ArrowBackMIcon');
17
17
  require('./components/backer/index.module.css');
18
18
  require('./components/backer/Component.js');
19
19
  require('./components/header/index.module.css');
20
- var components_header_Component = require('./component-eb26b84c.js');
20
+ var components_header_Component = require('./component-78755a1d.js');
21
21
  require('./components/footer/index.module.css');
22
22
  require('./components/footer/Component.js');
23
23
  require('@alfalab/core-components-backdrop/cssm');
@@ -17,7 +17,7 @@
17
17
  --gap-xl: 24px;
18
18
  }
19
19
  :root {
20
- --border-radius-xl: 16px;
20
+ --border-radius-3xl: 24px;
21
21
  }
22
22
  :root {
23
23
  --bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
@@ -35,8 +35,8 @@
35
35
  position: relative;
36
36
  display: flex;
37
37
  flex-direction: column;
38
- border-top-right-radius: var(--border-radius-xl);
39
- border-top-left-radius: var(--border-radius-xl);
38
+ border-top-right-radius: var(--border-radius-3xl);
39
+ border-top-left-radius: var(--border-radius-3xl);
40
40
  background: var(--color-light-bg-primary);
41
41
  transform: translateY(100%);
42
42
  }
@@ -4,6 +4,7 @@ import React from "react";
4
4
  import { FC, ReactNode, HTMLAttributes } from "react";
5
5
  import { BottomSheetTitleAlign } from "./index";
6
6
  import { TransitionProps } from 'react-transition-group/Transition';
7
+ import { BaseModalProps } from "@alfalab/core-components-base-modal";
7
8
  type HeaderProps = {
8
9
  /**
9
10
  * Заголовок
@@ -121,6 +122,10 @@ type BottomSheetProps = {
121
122
  * Дополнительный класс для компонента модального окна
122
123
  */
123
124
  modalClassName?: string;
125
+ /**
126
+ * Дополнительный класс для обертки модального окна
127
+ */
128
+ modalWrapperClassName?: string;
124
129
  /**
125
130
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
126
131
  */
@@ -190,10 +195,18 @@ type BottomSheetProps = {
190
195
  * Запретить закрытие шторки кликом на оверлэй
191
196
  */
192
197
  disableOverlayClick?: boolean;
198
+ /**
199
+ * Отключает блокировку скролла при открытии модального окна
200
+ */
201
+ disableBlockingScroll?: boolean;
193
202
  /**
194
203
  * Не анимировать шторку при изменении размера вьюпорта
195
204
  */
196
205
  ignoreScreenChange?: boolean;
206
+ /**
207
+ * Свойства для Бэкдропа
208
+ */
209
+ backdropProps?: BaseModalProps['backdropProps'];
197
210
  /**
198
211
  * Обработчик закрытия
199
212
  */
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from './tslib.es6-d03e2565.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_59vve","header":"bottom-sheet__header_59vve","sticky":"bottom-sheet__sticky_59vve","highlighted":"bottom-sheet__highlighted_59vve","justifyEnd":"bottom-sheet__justifyEnd_59vve","addon":"bottom-sheet__addon_59vve","addonFixed":"bottom-sheet__addonFixed_59vve","addonLeft":"bottom-sheet__addonLeft_59vve","addonRight":"bottom-sheet__addonRight_59vve","title":"bottom-sheet__title_59vve","titleCenter":"bottom-sheet__titleCenter_59vve","titleLeft":"bottom-sheet__titleLeft_59vve","trimTitle":"bottom-sheet__trimTitle_59vve","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_59vve","titleIndentRight":"bottom-sheet__titleIndentRight_59vve","titleIndentLeft":"bottom-sheet__titleIndentLeft_59vve"};
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_s5s5k","component":"bottom-sheet__component_s5s5k","withTransition":"bottom-sheet__withTransition_s5s5k","withZeroTransition":"bottom-sheet__withZeroTransition_s5s5k","scrollableContainer":"bottom-sheet__scrollableContainer_s5s5k","marker":"bottom-sheet__marker_s5s5k","content":"bottom-sheet__content_s5s5k","noHeader":"bottom-sheet__noHeader_s5s5k","noFooter":"bottom-sheet__noFooter_s5s5k","scrollLocked":"bottom-sheet__scrollLocked_s5s5k","appear":"bottom-sheet__appear_s5s5k","enter":"bottom-sheet__enter_s5s5k","appearActive":"bottom-sheet__appearActive_s5s5k","enterActive":"bottom-sheet__enterActive_s5s5k","enterDone":"bottom-sheet__enterDone_s5s5k","appearDone":"bottom-sheet__appearDone_s5s5k","exit":"bottom-sheet__exit_s5s5k","exitActive":"bottom-sheet__exitActive_s5s5k"};
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;
@@ -73,7 +73,7 @@ var HEADER_OFFSET = 24;
73
73
  var CLOSE_OFFSET = 0.2;
74
74
  var BottomSheet = forwardRef(function (_a, ref) {
75
75
  var _b, _c, _d;
76
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
76
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
77
77
  var _l = useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
78
78
  var _m = useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
79
79
  var _o = useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -225,12 +225,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
225
225
  height: initialHeight === 'full' ? targetHeight : 'unset',
226
226
  maxHeight: targetHeight,
227
227
  }); };
228
- return (React.createElement(BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: {
229
- opacity: backdropOpacity,
230
- handlers: swipeable ? backdropSwipeablehandlers : false,
231
- opacityTimeout: TIMEOUT,
232
- invisible: initialHeight === 'full' ? false : hideOverlay,
233
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles$1.modal, modalClassName), transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
228
+ return (React.createElement(BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: __assign(__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles$1.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
234
229
  React.createElement("div", __assign({ className: cn(styles$1.component, className, (_b = {},
235
230
  _b[transitionClassName] = !sheetOffset,
236
231
  _b)), style: __assign(__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),