@alfalab/core-components-bottom-sheet 6.17.17 → 6.18.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
@@ -23,19 +23,21 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
23
23
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
24
24
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
25
25
 
26
- var styles = {"modal":"bottom-sheet__modal_tyvw6","wrapper":"bottom-sheet__wrapper_tyvw6","fullscreen":"bottom-sheet__fullscreen_tyvw6","component":"bottom-sheet__component_tyvw6","withTransition":"bottom-sheet__withTransition_tyvw6","scrollableContainer":"bottom-sheet__scrollableContainer_tyvw6","marker":"bottom-sheet__marker_tyvw6","defaultMarker":"bottom-sheet__defaultMarker_tyvw6","content":"bottom-sheet__content_tyvw6","noHeader":"bottom-sheet__noHeader_tyvw6","noFooter":"bottom-sheet__noFooter_tyvw6","scrollLocked":"bottom-sheet__scrollLocked_tyvw6","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tyvw6","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tyvw6","appear":"bottom-sheet__appear_tyvw6","enter":"bottom-sheet__enter_tyvw6","appearActive":"bottom-sheet__appearActive_tyvw6","enterActive":"bottom-sheet__enterActive_tyvw6","enterDone":"bottom-sheet__enterDone_tyvw6","appearDone":"bottom-sheet__appearDone_tyvw6","exit":"bottom-sheet__exit_tyvw6","exitActive":"bottom-sheet__exitActive_tyvw6","safeAreaBottom":"bottom-sheet__safeAreaBottom_tyvw6","background-accent":"bottom-sheet__background-accent_tyvw6","background-info":"bottom-sheet__background-info_tyvw6","background-attention-muted":"bottom-sheet__background-attention-muted_tyvw6","background-positive-muted":"bottom-sheet__background-positive-muted_tyvw6","background-negative-muted":"bottom-sheet__background-negative-muted_tyvw6","background-primary":"bottom-sheet__background-primary_tyvw6","background-primary-inverted":"bottom-sheet__background-primary-inverted_tyvw6","background-secondary":"bottom-sheet__background-secondary_tyvw6","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tyvw6","background-tertiary":"bottom-sheet__background-tertiary_tyvw6","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tyvw6","background-quaternary":"bottom-sheet__background-quaternary_tyvw6","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tyvw6","background-specialbg-component":"bottom-sheet__background-specialbg-component_tyvw6","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tyvw6","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tyvw6","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tyvw6","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tyvw6","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tyvw6","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tyvw6","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tyvw6","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tyvw6"};
26
+ var styles = {"modal":"bottom-sheet__modal_1w9iq","wrapper":"bottom-sheet__wrapper_1w9iq","fullscreen":"bottom-sheet__fullscreen_1w9iq","component":"bottom-sheet__component_1w9iq","withTransition":"bottom-sheet__withTransition_1w9iq","scrollableContainer":"bottom-sheet__scrollableContainer_1w9iq","marker":"bottom-sheet__marker_1w9iq","defaultMarker":"bottom-sheet__defaultMarker_1w9iq","content":"bottom-sheet__content_1w9iq","noHeader":"bottom-sheet__noHeader_1w9iq","noFooter":"bottom-sheet__noFooter_1w9iq","scrollLocked":"bottom-sheet__scrollLocked_1w9iq","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1w9iq","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1w9iq","appear":"bottom-sheet__appear_1w9iq","enter":"bottom-sheet__enter_1w9iq","appearActive":"bottom-sheet__appearActive_1w9iq","enterActive":"bottom-sheet__enterActive_1w9iq","enterDone":"bottom-sheet__enterDone_1w9iq","appearDone":"bottom-sheet__appearDone_1w9iq","exit":"bottom-sheet__exit_1w9iq","exitActive":"bottom-sheet__exitActive_1w9iq","safeAreaBottom":"bottom-sheet__safeAreaBottom_1w9iq","background-accent":"bottom-sheet__background-accent_1w9iq","background-info":"bottom-sheet__background-info_1w9iq","background-attention-muted":"bottom-sheet__background-attention-muted_1w9iq","background-positive-muted":"bottom-sheet__background-positive-muted_1w9iq","background-negative-muted":"bottom-sheet__background-negative-muted_1w9iq","background-primary":"bottom-sheet__background-primary_1w9iq","background-primary-inverted":"bottom-sheet__background-primary-inverted_1w9iq","background-secondary":"bottom-sheet__background-secondary_1w9iq","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1w9iq","background-tertiary":"bottom-sheet__background-tertiary_1w9iq","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1w9iq","background-quaternary":"bottom-sheet__background-quaternary_1w9iq","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1w9iq","background-specialbg-component":"bottom-sheet__background-specialbg-component_1w9iq","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1w9iq","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1w9iq","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1w9iq","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1w9iq","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1w9iq","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1w9iq","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1w9iq","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1w9iq"};
27
27
  require('./index.css')
28
28
 
29
29
  var isNil = coreComponentsShared.fnUtils.isNil;
30
+ var adjustContainerHeightDefault = function (value) { return value; };
30
31
  var BottomSheet = React.forwardRef(function (_a, ref) {
31
32
  var _b, _c, _d, _e, _f;
32
33
  var _g, _h;
33
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
34
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, _v = _a.adjustContainerHeight, adjustContainerHeight = _v === void 0 ? adjustContainerHeightDefault : _v, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
34
35
  var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
35
36
  var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
36
37
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
37
38
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
38
39
  var isFirstRender = fullHeight === 0;
40
+ fullHeight = adjustContainerHeight(fullHeight);
39
41
  var initialIndexRef = React.useRef(initialActiveAreaIndex);
40
42
  var magneticAreas = React.useMemo(function () {
41
43
  var _a;
@@ -44,17 +46,23 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
44
46
  return utils.convertPercentToNumber(area, fullHeight, headerOffset);
45
47
  });
46
48
  }
47
- var iOSViewHeight = coreComponentsShared.isClient()
48
- ? ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight)
49
- : 0;
49
+ var iOSViewHeight = 0;
50
+ if (coreComponentsShared.isClient()) {
51
+ if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
52
+ iOSViewHeight = adjustContainerHeight(document.documentElement.clientHeight);
53
+ }
54
+ else {
55
+ iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
56
+ }
57
+ }
50
58
  var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
51
59
  return [0, viewHeight - headerOffset];
52
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard]);
60
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
53
61
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
54
- var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
55
- var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
56
- var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
57
- var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
62
+ var _y = React.useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
63
+ var _z = React.useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
64
+ var _0 = React.useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
65
+ var _1 = React.useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
58
66
  var scrollOccurred = React.useRef(false);
59
67
  var headerRef = React.useRef(null);
60
68
  var contentRef = React.useRef(null);
@@ -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_gws6o","sticky":"bottom-sheet__sticky_gws6o","highlighted":"bottom-sheet__highlighted_gws6o","background-accent":"bottom-sheet__background-accent_gws6o","background-info":"bottom-sheet__background-info_gws6o","background-attention-muted":"bottom-sheet__background-attention-muted_gws6o","background-positive-muted":"bottom-sheet__background-positive-muted_gws6o","background-negative-muted":"bottom-sheet__background-negative-muted_gws6o","background-primary":"bottom-sheet__background-primary_gws6o","background-primary-inverted":"bottom-sheet__background-primary-inverted_gws6o","background-secondary":"bottom-sheet__background-secondary_gws6o","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_gws6o","background-tertiary":"bottom-sheet__background-tertiary_gws6o","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_gws6o","background-quaternary":"bottom-sheet__background-quaternary_gws6o","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_gws6o","background-specialbg-component":"bottom-sheet__background-specialbg-component_gws6o","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_gws6o","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_gws6o","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_gws6o","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_gws6o","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_gws6o","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_gws6o","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_gws6o","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_gws6o"};
14
+ var styles = {"footer":"bottom-sheet__footer_1577p","sticky":"bottom-sheet__sticky_1577p","highlighted":"bottom-sheet__highlighted_1577p","background-accent":"bottom-sheet__background-accent_1577p","background-info":"bottom-sheet__background-info_1577p","background-attention-muted":"bottom-sheet__background-attention-muted_1577p","background-positive-muted":"bottom-sheet__background-positive-muted_1577p","background-negative-muted":"bottom-sheet__background-negative-muted_1577p","background-primary":"bottom-sheet__background-primary_1577p","background-primary-inverted":"bottom-sheet__background-primary-inverted_1577p","background-secondary":"bottom-sheet__background-secondary_1577p","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1577p","background-tertiary":"bottom-sheet__background-tertiary_1577p","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1577p","background-quaternary":"bottom-sheet__background-quaternary_1577p","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1577p","background-specialbg-component":"bottom-sheet__background-specialbg-component_1577p","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1577p","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1577p","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1577p","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1577p","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1577p","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1577p","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1577p","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1577p"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1j1yz */
1
+ /* hash: 1hs8c */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -55,58 +55,58 @@
55
55
  /* footer */
56
56
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
57
57
  --bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
58
- } .bottom-sheet__footer_gws6o {
58
+ } .bottom-sheet__footer_1577p {
59
59
  padding: var(--gap-16) var(--gap-16);
60
60
  background-color: var(--color-light-modal-bg-primary);
61
- } .bottom-sheet__sticky_gws6o {
61
+ } .bottom-sheet__sticky_1577p {
62
62
  position: sticky;
63
63
  bottom: var(--gap-0);
64
64
  z-index: 1;
65
- } .bottom-sheet__highlighted_gws6o {
65
+ } .bottom-sheet__highlighted_1577p {
66
66
  border-top: var(--bottom-sheet-footer-border-top);
67
67
  background-color: var(--bottom-sheet-footer-background-color);
68
- } .bottom-sheet__background-accent_gws6o {
68
+ } .bottom-sheet__background-accent_1577p {
69
69
  background-color: var(--color-light-bg-accent);
70
- } .bottom-sheet__background-info_gws6o {
70
+ } .bottom-sheet__background-info_1577p {
71
71
  background-color: var(--color-light-bg-info);
72
- } .bottom-sheet__background-attention-muted_gws6o {
72
+ } .bottom-sheet__background-attention-muted_1577p {
73
73
  background-color: var(--color-light-bg-attention-muted);
74
- } .bottom-sheet__background-positive-muted_gws6o {
74
+ } .bottom-sheet__background-positive-muted_1577p {
75
75
  background-color: var(--color-light-bg-positive-muted);
76
- } .bottom-sheet__background-negative-muted_gws6o {
76
+ } .bottom-sheet__background-negative-muted_1577p {
77
77
  background-color: var(--color-light-bg-negative-muted);
78
- } .bottom-sheet__background-primary_gws6o {
78
+ } .bottom-sheet__background-primary_1577p {
79
79
  background-color: var(--color-light-bg-primary);
80
- } .bottom-sheet__background-primary-inverted_gws6o {
80
+ } .bottom-sheet__background-primary-inverted_1577p {
81
81
  background-color: var(--color-light-bg-primary-inverted);
82
- } .bottom-sheet__background-secondary_gws6o {
82
+ } .bottom-sheet__background-secondary_1577p {
83
83
  background-color: var(--color-light-bg-secondary);
84
- } .bottom-sheet__background-secondary-inverted_gws6o {
84
+ } .bottom-sheet__background-secondary-inverted_1577p {
85
85
  background-color: var(--color-light-bg-secondary-inverted);
86
- } .bottom-sheet__background-tertiary_gws6o {
86
+ } .bottom-sheet__background-tertiary_1577p {
87
87
  background-color: var(--color-light-bg-tertiary);
88
- } .bottom-sheet__background-tertiary-inverted_gws6o {
88
+ } .bottom-sheet__background-tertiary-inverted_1577p {
89
89
  background-color: var(--color-light-bg-tertiary-inverted);
90
- } .bottom-sheet__background-quaternary_gws6o {
90
+ } .bottom-sheet__background-quaternary_1577p {
91
91
  background-color: var(--color-light-bg-quaternary);
92
- } .bottom-sheet__background-quaternary-inverted_gws6o {
92
+ } .bottom-sheet__background-quaternary-inverted_1577p {
93
93
  background-color: var(--color-light-bg-quaternary-inverted);
94
- } .bottom-sheet__background-specialbg-component_gws6o {
94
+ } .bottom-sheet__background-specialbg-component_1577p {
95
95
  background-color: var(--color-light-specialbg-component);
96
- } .bottom-sheet__background-specialbg-component-inverted_gws6o {
96
+ } .bottom-sheet__background-specialbg-component-inverted_1577p {
97
97
  background-color: var(--color-light-specialbg-component-inverted);
98
- } .bottom-sheet__background-specialbg-primary-grouped_gws6o {
98
+ } .bottom-sheet__background-specialbg-primary-grouped_1577p {
99
99
  background-color: var(--color-light-specialbg-primary-grouped);
100
- } .bottom-sheet__background-specialbg-secondary-grouped_gws6o {
100
+ } .bottom-sheet__background-specialbg-secondary-grouped_1577p {
101
101
  background-color: var(--color-light-specialbg-secondary-grouped);
102
- } .bottom-sheet__background-specialbg-tertiary-grouped_gws6o {
102
+ } .bottom-sheet__background-specialbg-tertiary-grouped_1577p {
103
103
  background-color: var(--color-light-specialbg-tertiary-grouped);
104
- } .bottom-sheet__background-specialbg-secondary-transparent_gws6o {
104
+ } .bottom-sheet__background-specialbg-secondary-transparent_1577p {
105
105
  background-color: var(--color-light-specialbg-secondary-transparent);
106
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_gws6o {
106
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1577p {
107
107
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
108
- } .bottom-sheet__background-specialbg-tertiary-transparent_gws6o {
108
+ } .bottom-sheet__background-specialbg-tertiary-transparent_1577p {
109
109
  background-color: var(--color-light-specialbg-tertiary-transparent);
110
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_gws6o {
110
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1577p {
111
111
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
112
112
  }
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1ejwk","hasContent":"bottom-sheet__hasContent_1ejwk","header":"bottom-sheet__header_1ejwk","sticky":"bottom-sheet__sticky_1ejwk","highlighted":"bottom-sheet__highlighted_1ejwk","justifyEnd":"bottom-sheet__justifyEnd_1ejwk","addon":"bottom-sheet__addon_1ejwk","addonFixed":"bottom-sheet__addonFixed_1ejwk","title":"bottom-sheet__title_1ejwk","titleCenter":"bottom-sheet__titleCenter_1ejwk","titleLeft":"bottom-sheet__titleLeft_1ejwk","trimTitle":"bottom-sheet__trimTitle_1ejwk"};
16
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_znpxe","hasContent":"bottom-sheet__hasContent_znpxe","header":"bottom-sheet__header_znpxe","sticky":"bottom-sheet__sticky_znpxe","highlighted":"bottom-sheet__highlighted_znpxe","justifyEnd":"bottom-sheet__justifyEnd_znpxe","addon":"bottom-sheet__addon_znpxe","addonFixed":"bottom-sheet__addonFixed_znpxe","title":"bottom-sheet__title_znpxe","titleCenter":"bottom-sheet__titleCenter_znpxe","titleLeft":"bottom-sheet__titleLeft_znpxe","trimTitle":"bottom-sheet__trimTitle_znpxe"};
17
17
  require('./index.css')
18
18
 
19
19
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: t9eth */
1
+ /* hash: cnbm9 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb; /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
@@ -41,42 +41,42 @@
41
41
  --bottom-sheet-title-font-family: var(--font-family-system);
42
42
 
43
43
  /* footer */
44
- } .bottom-sheet__headerWrapper_1ejwk {
44
+ } .bottom-sheet__headerWrapper_znpxe {
45
45
  padding: var(--gap-12) var(--gap-8) var(--gap-4);
46
46
  border-top-left-radius: inherit;
47
47
  border-top-right-radius: inherit;
48
48
  z-index: 1;
49
- } .bottom-sheet__hasContent_1ejwk {
49
+ } .bottom-sheet__hasContent_znpxe {
50
50
  background-color: inherit;
51
- } .bottom-sheet__header_1ejwk {
51
+ } .bottom-sheet__header_znpxe {
52
52
  display: flex;
53
- } .bottom-sheet__sticky_1ejwk {
53
+ } .bottom-sheet__sticky_znpxe {
54
54
  position: sticky;
55
55
  top: var(--gap-0);
56
- } .bottom-sheet__highlighted_1ejwk {
56
+ } .bottom-sheet__highlighted_znpxe {
57
57
  border-bottom: var(--bottom-sheet-header-border-bottom);
58
- } .bottom-sheet__justifyEnd_1ejwk {
58
+ } .bottom-sheet__justifyEnd_znpxe {
59
59
  justify-content: flex-end;
60
- } .bottom-sheet__addon_1ejwk {
60
+ } .bottom-sheet__addon_znpxe {
61
61
  display: flex;
62
62
  justify-content: center;
63
63
  align-items: center;
64
64
  min-width: 48px;
65
65
  height: 48px;
66
- } .bottom-sheet__addonFixed_1ejwk {
66
+ } .bottom-sheet__addonFixed_znpxe {
67
67
  position: fixed;
68
- } .bottom-sheet__title_1ejwk {
68
+ } .bottom-sheet__title_znpxe {
69
69
  padding: 10px var(--gap-8);
70
70
  width: 100%;
71
71
  font-size: var(--bottom-sheet-title-font-size);
72
72
  font-weight: var(--bottom-sheet-title-font-weight);
73
73
  line-height: var(--bottom-sheet-title-line-height);
74
74
  font-family: var(--bottom-sheet-title-font-family);
75
- } .bottom-sheet__titleCenter_1ejwk {
75
+ } .bottom-sheet__titleCenter_znpxe {
76
76
  text-align: center;
77
- } .bottom-sheet__titleLeft_1ejwk {
77
+ } .bottom-sheet__titleLeft_znpxe {
78
78
  text-align: left;
79
- } .bottom-sheet__trimTitle_1ejwk {
79
+ } .bottom-sheet__trimTitle_znpxe {
80
80
  white-space: nowrap;
81
81
  overflow: hidden;
82
82
  text-overflow: ellipsis;
package/cssm/component.js CHANGED
@@ -26,15 +26,17 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
26
26
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
27
27
 
28
28
  var isNil = coreComponentsShared.fnUtils.isNil;
29
+ var adjustContainerHeightDefault = function (value) { return value; };
29
30
  var BottomSheet = React.forwardRef(function (_a, ref) {
30
31
  var _b, _c, _d, _e, _f;
31
32
  var _g, _h;
32
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
33
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, _v = _a.adjustContainerHeight, adjustContainerHeight = _v === void 0 ? adjustContainerHeightDefault : _v, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
33
34
  var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
34
35
  var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
35
36
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
36
37
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
37
38
  var isFirstRender = fullHeight === 0;
39
+ fullHeight = adjustContainerHeight(fullHeight);
38
40
  var initialIndexRef = React.useRef(initialActiveAreaIndex);
39
41
  var magneticAreas = React.useMemo(function () {
40
42
  var _a;
@@ -43,17 +45,23 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
43
45
  return utils.convertPercentToNumber(area, fullHeight, headerOffset);
44
46
  });
45
47
  }
46
- var iOSViewHeight = coreComponentsShared.isClient()
47
- ? ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight)
48
- : 0;
48
+ var iOSViewHeight = 0;
49
+ if (coreComponentsShared.isClient()) {
50
+ if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
51
+ iOSViewHeight = adjustContainerHeight(document.documentElement.clientHeight);
52
+ }
53
+ else {
54
+ iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
55
+ }
56
+ }
49
57
  var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
50
58
  return [0, viewHeight - headerOffset];
51
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard]);
59
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
52
60
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
53
- var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
54
- var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
55
- var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
56
- var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
61
+ var _y = React.useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
62
+ var _z = React.useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
63
+ var _0 = React.useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
64
+ var _1 = React.useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
57
65
  var scrollOccurred = React.useRef(false);
58
66
  var headerRef = React.useRef(null);
59
67
  var contentRef = React.useRef(null);
package/cssm/types.d.ts CHANGED
@@ -7,6 +7,10 @@ import { NavigationBarPrivateProps as NavigationBarProps } from "@alfalab/core-c
7
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
8
8
  type BottomSheetTitleAlign = 'center' | 'left';
9
9
  type BottomSheetProps = {
10
+ /**
11
+ * Метод, позволяющий донастраивать высоту контейнера для BottomSheet, например с учётом safe-area
12
+ */
13
+ adjustContainerHeight?: (height: number) => number;
10
14
  /**
11
15
  * Контент
12
16
  */
package/esm/component.js CHANGED
@@ -13,19 +13,21 @@ import { horizontalDirections } from './consts/swipeConsts.js';
13
13
  import { useVisibleViewportSize } from './hooks/use-visualviewport-size.js';
14
14
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
15
15
 
16
- var styles = {"modal":"bottom-sheet__modal_tyvw6","wrapper":"bottom-sheet__wrapper_tyvw6","fullscreen":"bottom-sheet__fullscreen_tyvw6","component":"bottom-sheet__component_tyvw6","withTransition":"bottom-sheet__withTransition_tyvw6","scrollableContainer":"bottom-sheet__scrollableContainer_tyvw6","marker":"bottom-sheet__marker_tyvw6","defaultMarker":"bottom-sheet__defaultMarker_tyvw6","content":"bottom-sheet__content_tyvw6","noHeader":"bottom-sheet__noHeader_tyvw6","noFooter":"bottom-sheet__noFooter_tyvw6","scrollLocked":"bottom-sheet__scrollLocked_tyvw6","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tyvw6","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tyvw6","appear":"bottom-sheet__appear_tyvw6","enter":"bottom-sheet__enter_tyvw6","appearActive":"bottom-sheet__appearActive_tyvw6","enterActive":"bottom-sheet__enterActive_tyvw6","enterDone":"bottom-sheet__enterDone_tyvw6","appearDone":"bottom-sheet__appearDone_tyvw6","exit":"bottom-sheet__exit_tyvw6","exitActive":"bottom-sheet__exitActive_tyvw6","safeAreaBottom":"bottom-sheet__safeAreaBottom_tyvw6","background-accent":"bottom-sheet__background-accent_tyvw6","background-info":"bottom-sheet__background-info_tyvw6","background-attention-muted":"bottom-sheet__background-attention-muted_tyvw6","background-positive-muted":"bottom-sheet__background-positive-muted_tyvw6","background-negative-muted":"bottom-sheet__background-negative-muted_tyvw6","background-primary":"bottom-sheet__background-primary_tyvw6","background-primary-inverted":"bottom-sheet__background-primary-inverted_tyvw6","background-secondary":"bottom-sheet__background-secondary_tyvw6","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tyvw6","background-tertiary":"bottom-sheet__background-tertiary_tyvw6","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tyvw6","background-quaternary":"bottom-sheet__background-quaternary_tyvw6","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tyvw6","background-specialbg-component":"bottom-sheet__background-specialbg-component_tyvw6","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tyvw6","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tyvw6","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tyvw6","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tyvw6","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tyvw6","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tyvw6","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tyvw6","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tyvw6"};
16
+ var styles = {"modal":"bottom-sheet__modal_1w9iq","wrapper":"bottom-sheet__wrapper_1w9iq","fullscreen":"bottom-sheet__fullscreen_1w9iq","component":"bottom-sheet__component_1w9iq","withTransition":"bottom-sheet__withTransition_1w9iq","scrollableContainer":"bottom-sheet__scrollableContainer_1w9iq","marker":"bottom-sheet__marker_1w9iq","defaultMarker":"bottom-sheet__defaultMarker_1w9iq","content":"bottom-sheet__content_1w9iq","noHeader":"bottom-sheet__noHeader_1w9iq","noFooter":"bottom-sheet__noFooter_1w9iq","scrollLocked":"bottom-sheet__scrollLocked_1w9iq","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1w9iq","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1w9iq","appear":"bottom-sheet__appear_1w9iq","enter":"bottom-sheet__enter_1w9iq","appearActive":"bottom-sheet__appearActive_1w9iq","enterActive":"bottom-sheet__enterActive_1w9iq","enterDone":"bottom-sheet__enterDone_1w9iq","appearDone":"bottom-sheet__appearDone_1w9iq","exit":"bottom-sheet__exit_1w9iq","exitActive":"bottom-sheet__exitActive_1w9iq","safeAreaBottom":"bottom-sheet__safeAreaBottom_1w9iq","background-accent":"bottom-sheet__background-accent_1w9iq","background-info":"bottom-sheet__background-info_1w9iq","background-attention-muted":"bottom-sheet__background-attention-muted_1w9iq","background-positive-muted":"bottom-sheet__background-positive-muted_1w9iq","background-negative-muted":"bottom-sheet__background-negative-muted_1w9iq","background-primary":"bottom-sheet__background-primary_1w9iq","background-primary-inverted":"bottom-sheet__background-primary-inverted_1w9iq","background-secondary":"bottom-sheet__background-secondary_1w9iq","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1w9iq","background-tertiary":"bottom-sheet__background-tertiary_1w9iq","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1w9iq","background-quaternary":"bottom-sheet__background-quaternary_1w9iq","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1w9iq","background-specialbg-component":"bottom-sheet__background-specialbg-component_1w9iq","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1w9iq","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1w9iq","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1w9iq","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1w9iq","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1w9iq","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1w9iq","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1w9iq","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1w9iq"};
17
17
  require('./index.css')
18
18
 
19
19
  var isNil = fnUtils.isNil;
20
+ var adjustContainerHeightDefault = function (value) { return value; };
20
21
  var BottomSheet = forwardRef(function (_a, ref) {
21
22
  var _b, _c, _d, _e, _f;
22
23
  var _g, _h;
23
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
24
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, 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, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, _v = _a.adjustContainerHeight, adjustContainerHeight = _v === void 0 ? adjustContainerHeightDefault : _v, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
24
25
  var windowHeight = (_g = use100vh()) !== null && _g !== void 0 ? _g : 0;
25
26
  var visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
26
27
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
27
28
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
28
29
  var isFirstRender = fullHeight === 0;
30
+ fullHeight = adjustContainerHeight(fullHeight);
29
31
  var initialIndexRef = useRef(initialActiveAreaIndex);
30
32
  var magneticAreas = useMemo(function () {
31
33
  var _a;
@@ -34,17 +36,23 @@ var BottomSheet = forwardRef(function (_a, ref) {
34
36
  return convertPercentToNumber(area, fullHeight, headerOffset);
35
37
  });
36
38
  }
37
- var iOSViewHeight = isClient()
38
- ? ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight)
39
- : 0;
39
+ var iOSViewHeight = 0;
40
+ if (isClient()) {
41
+ if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
42
+ iOSViewHeight = adjustContainerHeight(document.documentElement.clientHeight);
43
+ }
44
+ else {
45
+ iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
46
+ }
47
+ }
40
48
  var viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
41
49
  return [0, viewHeight - headerOffset];
42
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard]);
50
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
43
51
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
44
- var _x = useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
45
- var _y = useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
46
- var _z = useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
47
- var _0 = useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
52
+ var _y = useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
53
+ var _z = useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
54
+ var _0 = useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
55
+ var _1 = useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
48
56
  var scrollOccurred = useRef(false);
49
57
  var headerRef = useRef(null);
50
58
  var contentRef = useRef(null);
@@ -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_gws6o","sticky":"bottom-sheet__sticky_gws6o","highlighted":"bottom-sheet__highlighted_gws6o","background-accent":"bottom-sheet__background-accent_gws6o","background-info":"bottom-sheet__background-info_gws6o","background-attention-muted":"bottom-sheet__background-attention-muted_gws6o","background-positive-muted":"bottom-sheet__background-positive-muted_gws6o","background-negative-muted":"bottom-sheet__background-negative-muted_gws6o","background-primary":"bottom-sheet__background-primary_gws6o","background-primary-inverted":"bottom-sheet__background-primary-inverted_gws6o","background-secondary":"bottom-sheet__background-secondary_gws6o","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_gws6o","background-tertiary":"bottom-sheet__background-tertiary_gws6o","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_gws6o","background-quaternary":"bottom-sheet__background-quaternary_gws6o","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_gws6o","background-specialbg-component":"bottom-sheet__background-specialbg-component_gws6o","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_gws6o","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_gws6o","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_gws6o","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_gws6o","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_gws6o","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_gws6o","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_gws6o","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_gws6o"};
5
+ var styles = {"footer":"bottom-sheet__footer_1577p","sticky":"bottom-sheet__sticky_1577p","highlighted":"bottom-sheet__highlighted_1577p","background-accent":"bottom-sheet__background-accent_1577p","background-info":"bottom-sheet__background-info_1577p","background-attention-muted":"bottom-sheet__background-attention-muted_1577p","background-positive-muted":"bottom-sheet__background-positive-muted_1577p","background-negative-muted":"bottom-sheet__background-negative-muted_1577p","background-primary":"bottom-sheet__background-primary_1577p","background-primary-inverted":"bottom-sheet__background-primary-inverted_1577p","background-secondary":"bottom-sheet__background-secondary_1577p","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1577p","background-tertiary":"bottom-sheet__background-tertiary_1577p","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1577p","background-quaternary":"bottom-sheet__background-quaternary_1577p","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1577p","background-specialbg-component":"bottom-sheet__background-specialbg-component_1577p","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1577p","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1577p","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1577p","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1577p","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1577p","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1577p","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1577p","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1577p"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1j1yz */
1
+ /* hash: 1hs8c */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -55,58 +55,58 @@
55
55
  /* footer */
56
56
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
57
57
  --bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
58
- } .bottom-sheet__footer_gws6o {
58
+ } .bottom-sheet__footer_1577p {
59
59
  padding: var(--gap-16) var(--gap-16);
60
60
  background-color: var(--color-light-modal-bg-primary);
61
- } .bottom-sheet__sticky_gws6o {
61
+ } .bottom-sheet__sticky_1577p {
62
62
  position: sticky;
63
63
  bottom: var(--gap-0);
64
64
  z-index: 1;
65
- } .bottom-sheet__highlighted_gws6o {
65
+ } .bottom-sheet__highlighted_1577p {
66
66
  border-top: var(--bottom-sheet-footer-border-top);
67
67
  background-color: var(--bottom-sheet-footer-background-color);
68
- } .bottom-sheet__background-accent_gws6o {
68
+ } .bottom-sheet__background-accent_1577p {
69
69
  background-color: var(--color-light-bg-accent);
70
- } .bottom-sheet__background-info_gws6o {
70
+ } .bottom-sheet__background-info_1577p {
71
71
  background-color: var(--color-light-bg-info);
72
- } .bottom-sheet__background-attention-muted_gws6o {
72
+ } .bottom-sheet__background-attention-muted_1577p {
73
73
  background-color: var(--color-light-bg-attention-muted);
74
- } .bottom-sheet__background-positive-muted_gws6o {
74
+ } .bottom-sheet__background-positive-muted_1577p {
75
75
  background-color: var(--color-light-bg-positive-muted);
76
- } .bottom-sheet__background-negative-muted_gws6o {
76
+ } .bottom-sheet__background-negative-muted_1577p {
77
77
  background-color: var(--color-light-bg-negative-muted);
78
- } .bottom-sheet__background-primary_gws6o {
78
+ } .bottom-sheet__background-primary_1577p {
79
79
  background-color: var(--color-light-bg-primary);
80
- } .bottom-sheet__background-primary-inverted_gws6o {
80
+ } .bottom-sheet__background-primary-inverted_1577p {
81
81
  background-color: var(--color-light-bg-primary-inverted);
82
- } .bottom-sheet__background-secondary_gws6o {
82
+ } .bottom-sheet__background-secondary_1577p {
83
83
  background-color: var(--color-light-bg-secondary);
84
- } .bottom-sheet__background-secondary-inverted_gws6o {
84
+ } .bottom-sheet__background-secondary-inverted_1577p {
85
85
  background-color: var(--color-light-bg-secondary-inverted);
86
- } .bottom-sheet__background-tertiary_gws6o {
86
+ } .bottom-sheet__background-tertiary_1577p {
87
87
  background-color: var(--color-light-bg-tertiary);
88
- } .bottom-sheet__background-tertiary-inverted_gws6o {
88
+ } .bottom-sheet__background-tertiary-inverted_1577p {
89
89
  background-color: var(--color-light-bg-tertiary-inverted);
90
- } .bottom-sheet__background-quaternary_gws6o {
90
+ } .bottom-sheet__background-quaternary_1577p {
91
91
  background-color: var(--color-light-bg-quaternary);
92
- } .bottom-sheet__background-quaternary-inverted_gws6o {
92
+ } .bottom-sheet__background-quaternary-inverted_1577p {
93
93
  background-color: var(--color-light-bg-quaternary-inverted);
94
- } .bottom-sheet__background-specialbg-component_gws6o {
94
+ } .bottom-sheet__background-specialbg-component_1577p {
95
95
  background-color: var(--color-light-specialbg-component);
96
- } .bottom-sheet__background-specialbg-component-inverted_gws6o {
96
+ } .bottom-sheet__background-specialbg-component-inverted_1577p {
97
97
  background-color: var(--color-light-specialbg-component-inverted);
98
- } .bottom-sheet__background-specialbg-primary-grouped_gws6o {
98
+ } .bottom-sheet__background-specialbg-primary-grouped_1577p {
99
99
  background-color: var(--color-light-specialbg-primary-grouped);
100
- } .bottom-sheet__background-specialbg-secondary-grouped_gws6o {
100
+ } .bottom-sheet__background-specialbg-secondary-grouped_1577p {
101
101
  background-color: var(--color-light-specialbg-secondary-grouped);
102
- } .bottom-sheet__background-specialbg-tertiary-grouped_gws6o {
102
+ } .bottom-sheet__background-specialbg-tertiary-grouped_1577p {
103
103
  background-color: var(--color-light-specialbg-tertiary-grouped);
104
- } .bottom-sheet__background-specialbg-secondary-transparent_gws6o {
104
+ } .bottom-sheet__background-specialbg-secondary-transparent_1577p {
105
105
  background-color: var(--color-light-specialbg-secondary-transparent);
106
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_gws6o {
106
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_1577p {
107
107
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
108
- } .bottom-sheet__background-specialbg-tertiary-transparent_gws6o {
108
+ } .bottom-sheet__background-specialbg-tertiary-transparent_1577p {
109
109
  background-color: var(--color-light-specialbg-tertiary-transparent);
110
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_gws6o {
110
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1577p {
111
111
  background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
112
112
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
5
  import { NavigationBarPrivate } from '@alfalab/core-components-navigation-bar-private/esm';
6
6
 
7
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1ejwk","hasContent":"bottom-sheet__hasContent_1ejwk","header":"bottom-sheet__header_1ejwk","sticky":"bottom-sheet__sticky_1ejwk","highlighted":"bottom-sheet__highlighted_1ejwk","justifyEnd":"bottom-sheet__justifyEnd_1ejwk","addon":"bottom-sheet__addon_1ejwk","addonFixed":"bottom-sheet__addonFixed_1ejwk","title":"bottom-sheet__title_1ejwk","titleCenter":"bottom-sheet__titleCenter_1ejwk","titleLeft":"bottom-sheet__titleLeft_1ejwk","trimTitle":"bottom-sheet__trimTitle_1ejwk"};
7
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_znpxe","hasContent":"bottom-sheet__hasContent_znpxe","header":"bottom-sheet__header_znpxe","sticky":"bottom-sheet__sticky_znpxe","highlighted":"bottom-sheet__highlighted_znpxe","justifyEnd":"bottom-sheet__justifyEnd_znpxe","addon":"bottom-sheet__addon_znpxe","addonFixed":"bottom-sheet__addonFixed_znpxe","title":"bottom-sheet__title_znpxe","titleCenter":"bottom-sheet__titleCenter_znpxe","titleLeft":"bottom-sheet__titleLeft_znpxe","trimTitle":"bottom-sheet__trimTitle_znpxe"};
8
8
  require('./index.css')
9
9
 
10
10
  var Header = function (_a) {