@alfalab/core-components-bottom-sheet 6.4.2 → 6.5.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.
package/component.js CHANGED
@@ -27,12 +27,12 @@ var getDataTestId = function (dataTestId, element) {
27
27
  return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
28
28
  };
29
29
 
30
- var styles = {"modal":"bottom-sheet__modal_7sflj","wrapper":"bottom-sheet__wrapper_7sflj","component":"bottom-sheet__component_7sflj","withTransition":"bottom-sheet__withTransition_7sflj","scrollableContainer":"bottom-sheet__scrollableContainer_7sflj","marker":"bottom-sheet__marker_7sflj","content":"bottom-sheet__content_7sflj","noHeader":"bottom-sheet__noHeader_7sflj","noFooter":"bottom-sheet__noFooter_7sflj","scrollLocked":"bottom-sheet__scrollLocked_7sflj","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_7sflj","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_7sflj","appear":"bottom-sheet__appear_7sflj","enter":"bottom-sheet__enter_7sflj","appearActive":"bottom-sheet__appearActive_7sflj","enterActive":"bottom-sheet__enterActive_7sflj","enterDone":"bottom-sheet__enterDone_7sflj","appearDone":"bottom-sheet__appearDone_7sflj","exit":"bottom-sheet__exit_7sflj","exitActive":"bottom-sheet__exitActive_7sflj","background-accent":"bottom-sheet__background-accent_7sflj","background-info":"bottom-sheet__background-info_7sflj","background-attention-muted":"bottom-sheet__background-attention-muted_7sflj","background-positive-muted":"bottom-sheet__background-positive-muted_7sflj","background-negative-muted":"bottom-sheet__background-negative-muted_7sflj","background-primary":"bottom-sheet__background-primary_7sflj","background-primary-inverted":"bottom-sheet__background-primary-inverted_7sflj","background-secondary":"bottom-sheet__background-secondary_7sflj","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7sflj","background-tertiary":"bottom-sheet__background-tertiary_7sflj","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7sflj","background-quaternary":"bottom-sheet__background-quaternary_7sflj","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7sflj","background-specialbg-component":"bottom-sheet__background-specialbg-component_7sflj","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7sflj","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7sflj","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7sflj","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7sflj","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7sflj","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7sflj","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7sflj","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7sflj"};
30
+ var styles = {"modal":"bottom-sheet__modal_1ttf0","wrapper":"bottom-sheet__wrapper_1ttf0","component":"bottom-sheet__component_1ttf0","withTransition":"bottom-sheet__withTransition_1ttf0","scrollableContainer":"bottom-sheet__scrollableContainer_1ttf0","marker":"bottom-sheet__marker_1ttf0","content":"bottom-sheet__content_1ttf0","noHeader":"bottom-sheet__noHeader_1ttf0","noFooter":"bottom-sheet__noFooter_1ttf0","scrollLocked":"bottom-sheet__scrollLocked_1ttf0","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1ttf0","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1ttf0","appear":"bottom-sheet__appear_1ttf0","enter":"bottom-sheet__enter_1ttf0","appearActive":"bottom-sheet__appearActive_1ttf0","enterActive":"bottom-sheet__enterActive_1ttf0","enterDone":"bottom-sheet__enterDone_1ttf0","appearDone":"bottom-sheet__appearDone_1ttf0","exit":"bottom-sheet__exit_1ttf0","exitActive":"bottom-sheet__exitActive_1ttf0","background-accent":"bottom-sheet__background-accent_1ttf0","background-info":"bottom-sheet__background-info_1ttf0","background-attention-muted":"bottom-sheet__background-attention-muted_1ttf0","background-positive-muted":"bottom-sheet__background-positive-muted_1ttf0","background-negative-muted":"bottom-sheet__background-negative-muted_1ttf0","background-primary":"bottom-sheet__background-primary_1ttf0","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ttf0","background-secondary":"bottom-sheet__background-secondary_1ttf0","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ttf0","background-tertiary":"bottom-sheet__background-tertiary_1ttf0","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ttf0","background-quaternary":"bottom-sheet__background-quaternary_1ttf0","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ttf0","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ttf0","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ttf0","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ttf0","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ttf0","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ttf0","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ttf0","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ttf0","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ttf0","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ttf0"};
31
31
  require('./index.css')
32
32
 
33
33
  var BottomSheet = React.forwardRef(function (_a, ref) {
34
34
  var _b, _c, _d, _e;
35
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize;
35
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted;
36
36
  var hasInitialIdx = initialActiveAreaIndex !== undefined;
37
37
  var fullHeight = reactDiv100vh.use100vh() || 0;
38
38
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
@@ -253,7 +253,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
253
253
  var bgClassName = backgroundColor && styles["background-".concat(backgroundColor)];
254
254
  return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
255
255
  _b[styles.disabledPointerEvents] = hideOverlay,
256
- _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
256
+ _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
257
257
  React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: styles.wrapper, onTransitionEnd: setSheetHeight },
258
258
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_c = {},
259
259
  _c[styles.withTransition] = swipingInProgress.current === false,
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_1boh7","sticky":"bottom-sheet__sticky_1boh7","highlighted":"bottom-sheet__highlighted_1boh7","background-accent":"bottom-sheet__background-accent_1boh7","background-info":"bottom-sheet__background-info_1boh7","background-attention-muted":"bottom-sheet__background-attention-muted_1boh7","background-positive-muted":"bottom-sheet__background-positive-muted_1boh7","background-negative-muted":"bottom-sheet__background-negative-muted_1boh7","background-primary":"bottom-sheet__background-primary_1boh7","background-primary-inverted":"bottom-sheet__background-primary-inverted_1boh7","background-secondary":"bottom-sheet__background-secondary_1boh7","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1boh7","background-tertiary":"bottom-sheet__background-tertiary_1boh7","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1boh7","background-quaternary":"bottom-sheet__background-quaternary_1boh7","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1boh7","background-specialbg-component":"bottom-sheet__background-specialbg-component_1boh7","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1boh7","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1boh7","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1boh7","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1boh7","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1boh7","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1boh7","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1boh7","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1boh7"};
14
+ var styles = {"footer":"bottom-sheet__footer_lxt3v","sticky":"bottom-sheet__sticky_lxt3v","highlighted":"bottom-sheet__highlighted_lxt3v","background-accent":"bottom-sheet__background-accent_lxt3v","background-info":"bottom-sheet__background-info_lxt3v","background-attention-muted":"bottom-sheet__background-attention-muted_lxt3v","background-positive-muted":"bottom-sheet__background-positive-muted_lxt3v","background-negative-muted":"bottom-sheet__background-negative-muted_lxt3v","background-primary":"bottom-sheet__background-primary_lxt3v","background-primary-inverted":"bottom-sheet__background-primary-inverted_lxt3v","background-secondary":"bottom-sheet__background-secondary_lxt3v","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_lxt3v","background-tertiary":"bottom-sheet__background-tertiary_lxt3v","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_lxt3v","background-quaternary":"bottom-sheet__background-quaternary_lxt3v","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_lxt3v","background-specialbg-component":"bottom-sheet__background-specialbg-component_lxt3v","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_lxt3v","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_lxt3v","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_lxt3v","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_lxt3v","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_lxt3v","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_lxt3v","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pan92 */
1
+ /* hash: v6ubm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -41,58 +41,58 @@
41
41
  } :root {
42
42
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
43
43
  --bottom-sheet-footer-background-color: var(--color-light-bg-primary);
44
- } .bottom-sheet__footer_1boh7 {
44
+ } .bottom-sheet__footer_lxt3v {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_1boh7 {
47
+ } .bottom-sheet__sticky_lxt3v {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_1boh7 {
51
+ } .bottom-sheet__highlighted_lxt3v {
52
52
  border-top: var(--bottom-sheet-footer-border-top);
53
53
  background-color: var(--bottom-sheet-footer-background-color);
54
- } .bottom-sheet__background-accent_1boh7 {
54
+ } .bottom-sheet__background-accent_lxt3v {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_1boh7 {
56
+ } .bottom-sheet__background-info_lxt3v {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_1boh7 {
58
+ } .bottom-sheet__background-attention-muted_lxt3v {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_1boh7 {
60
+ } .bottom-sheet__background-positive-muted_lxt3v {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_1boh7 {
62
+ } .bottom-sheet__background-negative-muted_lxt3v {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_1boh7 {
64
+ } .bottom-sheet__background-primary_lxt3v {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_1boh7 {
66
+ } .bottom-sheet__background-primary-inverted_lxt3v {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_1boh7 {
68
+ } .bottom-sheet__background-secondary_lxt3v {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_1boh7 {
70
+ } .bottom-sheet__background-secondary-inverted_lxt3v {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_1boh7 {
72
+ } .bottom-sheet__background-tertiary_lxt3v {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_1boh7 {
74
+ } .bottom-sheet__background-tertiary-inverted_lxt3v {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_1boh7 {
76
+ } .bottom-sheet__background-quaternary_lxt3v {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_1boh7 {
78
+ } .bottom-sheet__background-quaternary-inverted_lxt3v {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_1boh7 {
80
+ } .bottom-sheet__background-specialbg-component_lxt3v {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_1boh7 {
82
+ } .bottom-sheet__background-specialbg-component-inverted_lxt3v {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_1boh7 {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_lxt3v {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_1boh7 {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_lxt3v {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_1boh7 {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_lxt3v {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_1boh7 {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_lxt3v {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1boh7 {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_1boh7 {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_lxt3v {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1boh7 {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v {
97
97
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
98
98
  }
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_131bw","hasContent":"bottom-sheet__hasContent_131bw","header":"bottom-sheet__header_131bw","sticky":"bottom-sheet__sticky_131bw","highlighted":"bottom-sheet__highlighted_131bw","justifyEnd":"bottom-sheet__justifyEnd_131bw","addon":"bottom-sheet__addon_131bw","addonFixed":"bottom-sheet__addonFixed_131bw","title":"bottom-sheet__title_131bw","titleCenter":"bottom-sheet__titleCenter_131bw","titleLeft":"bottom-sheet__titleLeft_131bw","trimTitle":"bottom-sheet__trimTitle_131bw"};
17
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_sn0d0","hasContent":"bottom-sheet__hasContent_sn0d0","header":"bottom-sheet__header_sn0d0","sticky":"bottom-sheet__sticky_sn0d0","highlighted":"bottom-sheet__highlighted_sn0d0","justifyEnd":"bottom-sheet__justifyEnd_sn0d0","addon":"bottom-sheet__addon_sn0d0","addonFixed":"bottom-sheet__addonFixed_sn0d0","title":"bottom-sheet__title_sn0d0","titleCenter":"bottom-sheet__titleCenter_sn0d0","titleLeft":"bottom-sheet__titleLeft_sn0d0","trimTitle":"bottom-sheet__trimTitle_sn0d0"};
18
18
  require('./index.css')
19
19
 
20
20
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 82b7b */
1
+ /* hash: yhu9a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,42 +27,42 @@
27
27
  --bottom-sheet-title-font-weight: 700;
28
28
  --bottom-sheet-title-line-height: 24px;
29
29
  --bottom-sheet-title-font-family: var(--font-family-system);
30
- } .bottom-sheet__headerWrapper_131bw {
30
+ } .bottom-sheet__headerWrapper_sn0d0 {
31
31
  padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
32
32
  border-top-right-radius: var(--border-radius-xl);
33
33
  border-top-left-radius: var(--border-radius-xl);
34
34
  z-index: 1;
35
- } .bottom-sheet__hasContent_131bw {
35
+ } .bottom-sheet__hasContent_sn0d0 {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_131bw {
37
+ } .bottom-sheet__header_sn0d0 {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_131bw {
39
+ } .bottom-sheet__sticky_sn0d0 {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_131bw {
42
+ } .bottom-sheet__highlighted_sn0d0 {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_131bw {
44
+ } .bottom-sheet__justifyEnd_sn0d0 {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_131bw {
46
+ } .bottom-sheet__addon_sn0d0 {
47
47
  display: flex;
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  min-width: 48px;
51
51
  height: 48px;
52
- } .bottom-sheet__addonFixed_131bw {
52
+ } .bottom-sheet__addonFixed_sn0d0 {
53
53
  position: fixed;
54
- } .bottom-sheet__title_131bw {
54
+ } .bottom-sheet__title_sn0d0 {
55
55
  padding: var(--gap-s) var(--gap-xs);
56
56
  width: 100%;
57
57
  font-size: var(--bottom-sheet-title-font-size);
58
58
  font-weight: var(--bottom-sheet-title-font-weight);
59
59
  line-height: var(--bottom-sheet-title-line-height);
60
60
  font-family: var(--bottom-sheet-title-font-family);
61
- } .bottom-sheet__titleCenter_131bw {
61
+ } .bottom-sheet__titleCenter_sn0d0 {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_131bw {
63
+ } .bottom-sheet__titleLeft_sn0d0 {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_131bw {
65
+ } .bottom-sheet__trimTitle_sn0d0 {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;
package/cssm/component.js CHANGED
@@ -33,7 +33,7 @@ var getDataTestId = function (dataTestId, element) {
33
33
 
34
34
  var BottomSheet = React.forwardRef(function (_a, ref) {
35
35
  var _b, _c, _d, _e;
36
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize;
36
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted;
37
37
  var hasInitialIdx = initialActiveAreaIndex !== undefined;
38
38
  var fullHeight = reactDiv100vh.use100vh() || 0;
39
39
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
@@ -254,7 +254,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
254
254
  var bgClassName = backgroundColor && styles__default.default["background-".concat(backgroundColor)];
255
255
  return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles__default.default.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles__default.default.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
256
256
  _b[styles__default.default.disabledPointerEvents] = hideOverlay,
257
- _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles__default.default }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
257
+ _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles__default.default }, transitionProps), { onExited: handleExited, onEntered: handleEntered }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
258
258
  React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: styles__default.default.wrapper, onTransitionEnd: setSheetHeight },
259
259
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, bgClassName, className, (_c = {},
260
260
  _c[styles__default.default.withTransition] = swipingInProgress.current === false,
package/cssm/types.d.ts CHANGED
@@ -219,5 +219,21 @@ type BottomSheetProps = {
219
219
  * Вызывается после притягивания к одной из `magneticAreas`
220
220
  */
221
221
  onMagnetize?: (index: number) => void;
222
+ /**
223
+ * Содержимое bottom-sheet всегда в DOM
224
+ */
225
+ keepMounted?: boolean;
226
+ /**
227
+ * Отключает автоматический перевод фокуса на bottom-sheet при открытии
228
+ */
229
+ disableAutoFocus?: boolean;
230
+ /**
231
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
232
+ */
233
+ disableRestoreFocus?: boolean;
234
+ /**
235
+ * Отключает вызов `onClose` при нажатии Escape
236
+ */
237
+ disableEscapeKeyDown?: boolean;
222
238
  };
223
239
  export { BottomSheetTitleAlign, BottomSheetProps };
package/esm/component.js CHANGED
@@ -17,12 +17,12 @@ var getDataTestId = function (dataTestId, element) {
17
17
  return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
18
18
  };
19
19
 
20
- var styles = {"modal":"bottom-sheet__modal_7sflj","wrapper":"bottom-sheet__wrapper_7sflj","component":"bottom-sheet__component_7sflj","withTransition":"bottom-sheet__withTransition_7sflj","scrollableContainer":"bottom-sheet__scrollableContainer_7sflj","marker":"bottom-sheet__marker_7sflj","content":"bottom-sheet__content_7sflj","noHeader":"bottom-sheet__noHeader_7sflj","noFooter":"bottom-sheet__noFooter_7sflj","scrollLocked":"bottom-sheet__scrollLocked_7sflj","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_7sflj","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_7sflj","appear":"bottom-sheet__appear_7sflj","enter":"bottom-sheet__enter_7sflj","appearActive":"bottom-sheet__appearActive_7sflj","enterActive":"bottom-sheet__enterActive_7sflj","enterDone":"bottom-sheet__enterDone_7sflj","appearDone":"bottom-sheet__appearDone_7sflj","exit":"bottom-sheet__exit_7sflj","exitActive":"bottom-sheet__exitActive_7sflj","background-accent":"bottom-sheet__background-accent_7sflj","background-info":"bottom-sheet__background-info_7sflj","background-attention-muted":"bottom-sheet__background-attention-muted_7sflj","background-positive-muted":"bottom-sheet__background-positive-muted_7sflj","background-negative-muted":"bottom-sheet__background-negative-muted_7sflj","background-primary":"bottom-sheet__background-primary_7sflj","background-primary-inverted":"bottom-sheet__background-primary-inverted_7sflj","background-secondary":"bottom-sheet__background-secondary_7sflj","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7sflj","background-tertiary":"bottom-sheet__background-tertiary_7sflj","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7sflj","background-quaternary":"bottom-sheet__background-quaternary_7sflj","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7sflj","background-specialbg-component":"bottom-sheet__background-specialbg-component_7sflj","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7sflj","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7sflj","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7sflj","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7sflj","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7sflj","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7sflj","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7sflj","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7sflj"};
20
+ var styles = {"modal":"bottom-sheet__modal_1ttf0","wrapper":"bottom-sheet__wrapper_1ttf0","component":"bottom-sheet__component_1ttf0","withTransition":"bottom-sheet__withTransition_1ttf0","scrollableContainer":"bottom-sheet__scrollableContainer_1ttf0","marker":"bottom-sheet__marker_1ttf0","content":"bottom-sheet__content_1ttf0","noHeader":"bottom-sheet__noHeader_1ttf0","noFooter":"bottom-sheet__noFooter_1ttf0","scrollLocked":"bottom-sheet__scrollLocked_1ttf0","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1ttf0","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1ttf0","appear":"bottom-sheet__appear_1ttf0","enter":"bottom-sheet__enter_1ttf0","appearActive":"bottom-sheet__appearActive_1ttf0","enterActive":"bottom-sheet__enterActive_1ttf0","enterDone":"bottom-sheet__enterDone_1ttf0","appearDone":"bottom-sheet__appearDone_1ttf0","exit":"bottom-sheet__exit_1ttf0","exitActive":"bottom-sheet__exitActive_1ttf0","background-accent":"bottom-sheet__background-accent_1ttf0","background-info":"bottom-sheet__background-info_1ttf0","background-attention-muted":"bottom-sheet__background-attention-muted_1ttf0","background-positive-muted":"bottom-sheet__background-positive-muted_1ttf0","background-negative-muted":"bottom-sheet__background-negative-muted_1ttf0","background-primary":"bottom-sheet__background-primary_1ttf0","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ttf0","background-secondary":"bottom-sheet__background-secondary_1ttf0","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ttf0","background-tertiary":"bottom-sheet__background-tertiary_1ttf0","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ttf0","background-quaternary":"bottom-sheet__background-quaternary_1ttf0","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ttf0","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ttf0","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ttf0","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ttf0","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ttf0","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ttf0","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ttf0","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ttf0","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ttf0","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ttf0"};
21
21
  require('./index.css')
22
22
 
23
23
  var BottomSheet = forwardRef(function (_a, ref) {
24
24
  var _b, _c, _d, _e;
25
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize;
25
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, subtitle = _a.subtitle, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted;
26
26
  var hasInitialIdx = initialActiveAreaIndex !== undefined;
27
27
  var fullHeight = use100vh() || 0;
28
28
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
@@ -243,7 +243,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
243
243
  var bgClassName = backgroundColor && styles["background-".concat(backgroundColor)];
244
244
  return (React.createElement(BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: __assign(__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles.modal, modalClassName), wrapperClassName: cn(modalWrapperClassName, (_b = {},
245
245
  _b[styles.disabledPointerEvents] = hideOverlay,
246
- _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
246
+ _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }), disableAutoFocus: disableAutoFocus, disableEscapeKeyDown: disableEscapeKeyDown, disableRestoreFocus: disableRestoreFocus, keepMounted: keepMounted },
247
247
  React.createElement("div", { style: __assign({}, getHeightStyles()), className: styles.wrapper, onTransitionEnd: setSheetHeight },
248
248
  React.createElement("div", __assign({ className: cn(styles.component, bgClassName, className, (_c = {},
249
249
  _c[styles.withTransition] = swipingInProgress.current === false,
@@ -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_1boh7","sticky":"bottom-sheet__sticky_1boh7","highlighted":"bottom-sheet__highlighted_1boh7","background-accent":"bottom-sheet__background-accent_1boh7","background-info":"bottom-sheet__background-info_1boh7","background-attention-muted":"bottom-sheet__background-attention-muted_1boh7","background-positive-muted":"bottom-sheet__background-positive-muted_1boh7","background-negative-muted":"bottom-sheet__background-negative-muted_1boh7","background-primary":"bottom-sheet__background-primary_1boh7","background-primary-inverted":"bottom-sheet__background-primary-inverted_1boh7","background-secondary":"bottom-sheet__background-secondary_1boh7","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1boh7","background-tertiary":"bottom-sheet__background-tertiary_1boh7","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1boh7","background-quaternary":"bottom-sheet__background-quaternary_1boh7","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1boh7","background-specialbg-component":"bottom-sheet__background-specialbg-component_1boh7","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1boh7","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1boh7","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1boh7","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1boh7","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1boh7","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1boh7","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1boh7","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1boh7"};
5
+ var styles = {"footer":"bottom-sheet__footer_lxt3v","sticky":"bottom-sheet__sticky_lxt3v","highlighted":"bottom-sheet__highlighted_lxt3v","background-accent":"bottom-sheet__background-accent_lxt3v","background-info":"bottom-sheet__background-info_lxt3v","background-attention-muted":"bottom-sheet__background-attention-muted_lxt3v","background-positive-muted":"bottom-sheet__background-positive-muted_lxt3v","background-negative-muted":"bottom-sheet__background-negative-muted_lxt3v","background-primary":"bottom-sheet__background-primary_lxt3v","background-primary-inverted":"bottom-sheet__background-primary-inverted_lxt3v","background-secondary":"bottom-sheet__background-secondary_lxt3v","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_lxt3v","background-tertiary":"bottom-sheet__background-tertiary_lxt3v","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_lxt3v","background-quaternary":"bottom-sheet__background-quaternary_lxt3v","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_lxt3v","background-specialbg-component":"bottom-sheet__background-specialbg-component_lxt3v","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_lxt3v","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_lxt3v","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_lxt3v","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_lxt3v","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_lxt3v","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_lxt3v","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pan92 */
1
+ /* hash: v6ubm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-accent: #ef3124;
@@ -41,58 +41,58 @@
41
41
  } :root {
42
42
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
43
43
  --bottom-sheet-footer-background-color: var(--color-light-bg-primary);
44
- } .bottom-sheet__footer_1boh7 {
44
+ } .bottom-sheet__footer_lxt3v {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_1boh7 {
47
+ } .bottom-sheet__sticky_lxt3v {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_1boh7 {
51
+ } .bottom-sheet__highlighted_lxt3v {
52
52
  border-top: var(--bottom-sheet-footer-border-top);
53
53
  background-color: var(--bottom-sheet-footer-background-color);
54
- } .bottom-sheet__background-accent_1boh7 {
54
+ } .bottom-sheet__background-accent_lxt3v {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_1boh7 {
56
+ } .bottom-sheet__background-info_lxt3v {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_1boh7 {
58
+ } .bottom-sheet__background-attention-muted_lxt3v {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_1boh7 {
60
+ } .bottom-sheet__background-positive-muted_lxt3v {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_1boh7 {
62
+ } .bottom-sheet__background-negative-muted_lxt3v {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_1boh7 {
64
+ } .bottom-sheet__background-primary_lxt3v {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_1boh7 {
66
+ } .bottom-sheet__background-primary-inverted_lxt3v {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_1boh7 {
68
+ } .bottom-sheet__background-secondary_lxt3v {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_1boh7 {
70
+ } .bottom-sheet__background-secondary-inverted_lxt3v {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_1boh7 {
72
+ } .bottom-sheet__background-tertiary_lxt3v {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_1boh7 {
74
+ } .bottom-sheet__background-tertiary-inverted_lxt3v {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_1boh7 {
76
+ } .bottom-sheet__background-quaternary_lxt3v {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_1boh7 {
78
+ } .bottom-sheet__background-quaternary-inverted_lxt3v {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_1boh7 {
80
+ } .bottom-sheet__background-specialbg-component_lxt3v {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_1boh7 {
82
+ } .bottom-sheet__background-specialbg-component-inverted_lxt3v {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_1boh7 {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_lxt3v {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_1boh7 {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_lxt3v {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_1boh7 {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_lxt3v {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_1boh7 {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_lxt3v {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1boh7 {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_lxt3v {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_1boh7 {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_lxt3v {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1boh7 {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_lxt3v {
97
97
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
98
98
  }
@@ -5,7 +5,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
5
  import { NavigationBar } from '@alfalab/core-components-navigation-bar/esm';
6
6
  import { HEADER_OFFSET } from '../../utils.js';
7
7
 
8
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_131bw","hasContent":"bottom-sheet__hasContent_131bw","header":"bottom-sheet__header_131bw","sticky":"bottom-sheet__sticky_131bw","highlighted":"bottom-sheet__highlighted_131bw","justifyEnd":"bottom-sheet__justifyEnd_131bw","addon":"bottom-sheet__addon_131bw","addonFixed":"bottom-sheet__addonFixed_131bw","title":"bottom-sheet__title_131bw","titleCenter":"bottom-sheet__titleCenter_131bw","titleLeft":"bottom-sheet__titleLeft_131bw","trimTitle":"bottom-sheet__trimTitle_131bw"};
8
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_sn0d0","hasContent":"bottom-sheet__hasContent_sn0d0","header":"bottom-sheet__header_sn0d0","sticky":"bottom-sheet__sticky_sn0d0","highlighted":"bottom-sheet__highlighted_sn0d0","justifyEnd":"bottom-sheet__justifyEnd_sn0d0","addon":"bottom-sheet__addon_sn0d0","addonFixed":"bottom-sheet__addonFixed_sn0d0","title":"bottom-sheet__title_sn0d0","titleCenter":"bottom-sheet__titleCenter_sn0d0","titleLeft":"bottom-sheet__titleLeft_sn0d0","trimTitle":"bottom-sheet__trimTitle_sn0d0"};
9
9
  require('./index.css')
10
10
 
11
11
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 82b7b */
1
+ /* hash: yhu9a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,42 +27,42 @@
27
27
  --bottom-sheet-title-font-weight: 700;
28
28
  --bottom-sheet-title-line-height: 24px;
29
29
  --bottom-sheet-title-font-family: var(--font-family-system);
30
- } .bottom-sheet__headerWrapper_131bw {
30
+ } .bottom-sheet__headerWrapper_sn0d0 {
31
31
  padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
32
32
  border-top-right-radius: var(--border-radius-xl);
33
33
  border-top-left-radius: var(--border-radius-xl);
34
34
  z-index: 1;
35
- } .bottom-sheet__hasContent_131bw {
35
+ } .bottom-sheet__hasContent_sn0d0 {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_131bw {
37
+ } .bottom-sheet__header_sn0d0 {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_131bw {
39
+ } .bottom-sheet__sticky_sn0d0 {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_131bw {
42
+ } .bottom-sheet__highlighted_sn0d0 {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_131bw {
44
+ } .bottom-sheet__justifyEnd_sn0d0 {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_131bw {
46
+ } .bottom-sheet__addon_sn0d0 {
47
47
  display: flex;
48
48
  justify-content: center;
49
49
  align-items: center;
50
50
  min-width: 48px;
51
51
  height: 48px;
52
- } .bottom-sheet__addonFixed_131bw {
52
+ } .bottom-sheet__addonFixed_sn0d0 {
53
53
  position: fixed;
54
- } .bottom-sheet__title_131bw {
54
+ } .bottom-sheet__title_sn0d0 {
55
55
  padding: var(--gap-s) var(--gap-xs);
56
56
  width: 100%;
57
57
  font-size: var(--bottom-sheet-title-font-size);
58
58
  font-weight: var(--bottom-sheet-title-font-weight);
59
59
  line-height: var(--bottom-sheet-title-line-height);
60
60
  font-family: var(--bottom-sheet-title-font-family);
61
- } .bottom-sheet__titleCenter_131bw {
61
+ } .bottom-sheet__titleCenter_sn0d0 {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_131bw {
63
+ } .bottom-sheet__titleLeft_sn0d0 {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_131bw {
65
+ } .bottom-sheet__trimTitle_sn0d0 {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;