@alfalab/core-components-bottom-sheet 6.2.7 → 6.4.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_8nffl","wrapper":"bottom-sheet__wrapper_8nffl","component":"bottom-sheet__component_8nffl","withTransition":"bottom-sheet__withTransition_8nffl","scrollableContainer":"bottom-sheet__scrollableContainer_8nffl","marker":"bottom-sheet__marker_8nffl","content":"bottom-sheet__content_8nffl","noHeader":"bottom-sheet__noHeader_8nffl","noFooter":"bottom-sheet__noFooter_8nffl","scrollLocked":"bottom-sheet__scrollLocked_8nffl","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_8nffl","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_8nffl","appear":"bottom-sheet__appear_8nffl","enter":"bottom-sheet__enter_8nffl","appearActive":"bottom-sheet__appearActive_8nffl","enterActive":"bottom-sheet__enterActive_8nffl","enterDone":"bottom-sheet__enterDone_8nffl","appearDone":"bottom-sheet__appearDone_8nffl","exit":"bottom-sheet__exit_8nffl","exitActive":"bottom-sheet__exitActive_8nffl","background-accent":"bottom-sheet__background-accent_8nffl","background-info":"bottom-sheet__background-info_8nffl","background-attention-muted":"bottom-sheet__background-attention-muted_8nffl","background-positive-muted":"bottom-sheet__background-positive-muted_8nffl","background-negative-muted":"bottom-sheet__background-negative-muted_8nffl","background-primary":"bottom-sheet__background-primary_8nffl","background-primary-inverted":"bottom-sheet__background-primary-inverted_8nffl","background-secondary":"bottom-sheet__background-secondary_8nffl","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_8nffl","background-tertiary":"bottom-sheet__background-tertiary_8nffl","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_8nffl","background-quaternary":"bottom-sheet__background-quaternary_8nffl","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_8nffl","background-specialbg-component":"bottom-sheet__background-specialbg-component_8nffl","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_8nffl","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_8nffl","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_8nffl","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_8nffl","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_8nffl","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_8nffl","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_8nffl","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_8nffl"};
30
+ var styles = {"modal":"bottom-sheet__modal_1pjhk","wrapper":"bottom-sheet__wrapper_1pjhk","component":"bottom-sheet__component_1pjhk","withTransition":"bottom-sheet__withTransition_1pjhk","scrollableContainer":"bottom-sheet__scrollableContainer_1pjhk","marker":"bottom-sheet__marker_1pjhk","content":"bottom-sheet__content_1pjhk","noHeader":"bottom-sheet__noHeader_1pjhk","noFooter":"bottom-sheet__noFooter_1pjhk","scrollLocked":"bottom-sheet__scrollLocked_1pjhk","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1pjhk","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1pjhk","appear":"bottom-sheet__appear_1pjhk","enter":"bottom-sheet__enter_1pjhk","appearActive":"bottom-sheet__appearActive_1pjhk","enterActive":"bottom-sheet__enterActive_1pjhk","enterDone":"bottom-sheet__enterDone_1pjhk","appearDone":"bottom-sheet__appearDone_1pjhk","exit":"bottom-sheet__exit_1pjhk","exitActive":"bottom-sheet__exitActive_1pjhk","background-accent":"bottom-sheet__background-accent_1pjhk","background-info":"bottom-sheet__background-info_1pjhk","background-attention-muted":"bottom-sheet__background-attention-muted_1pjhk","background-positive-muted":"bottom-sheet__background-positive-muted_1pjhk","background-negative-muted":"bottom-sheet__background-negative-muted_1pjhk","background-primary":"bottom-sheet__background-primary_1pjhk","background-primary-inverted":"bottom-sheet__background-primary-inverted_1pjhk","background-secondary":"bottom-sheet__background-secondary_1pjhk","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1pjhk","background-tertiary":"bottom-sheet__background-tertiary_1pjhk","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1pjhk","background-quaternary":"bottom-sheet__background-quaternary_1pjhk","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1pjhk","background-specialbg-component":"bottom-sheet__background-specialbg-component_1pjhk","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1pjhk","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1pjhk","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1pjhk","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1pjhk","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1pjhk","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1pjhk","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1pjhk","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1pjhk"};
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, 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;
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, 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 }) },
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_10jlm","sticky":"bottom-sheet__sticky_10jlm","highlighted":"bottom-sheet__highlighted_10jlm","background-accent":"bottom-sheet__background-accent_10jlm","background-info":"bottom-sheet__background-info_10jlm","background-attention-muted":"bottom-sheet__background-attention-muted_10jlm","background-positive-muted":"bottom-sheet__background-positive-muted_10jlm","background-negative-muted":"bottom-sheet__background-negative-muted_10jlm","background-primary":"bottom-sheet__background-primary_10jlm","background-primary-inverted":"bottom-sheet__background-primary-inverted_10jlm","background-secondary":"bottom-sheet__background-secondary_10jlm","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_10jlm","background-tertiary":"bottom-sheet__background-tertiary_10jlm","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_10jlm","background-quaternary":"bottom-sheet__background-quaternary_10jlm","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_10jlm","background-specialbg-component":"bottom-sheet__background-specialbg-component_10jlm","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_10jlm","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_10jlm","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_10jlm","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_10jlm","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_10jlm","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_10jlm","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_10jlm","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_10jlm"};
14
+ var styles = {"footer":"bottom-sheet__footer_156xb","sticky":"bottom-sheet__sticky_156xb","highlighted":"bottom-sheet__highlighted_156xb","background-accent":"bottom-sheet__background-accent_156xb","background-info":"bottom-sheet__background-info_156xb","background-attention-muted":"bottom-sheet__background-attention-muted_156xb","background-positive-muted":"bottom-sheet__background-positive-muted_156xb","background-negative-muted":"bottom-sheet__background-negative-muted_156xb","background-primary":"bottom-sheet__background-primary_156xb","background-primary-inverted":"bottom-sheet__background-primary-inverted_156xb","background-secondary":"bottom-sheet__background-secondary_156xb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_156xb","background-tertiary":"bottom-sheet__background-tertiary_156xb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_156xb","background-quaternary":"bottom-sheet__background-quaternary_156xb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_156xb","background-specialbg-component":"bottom-sheet__background-specialbg-component_156xb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_156xb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_156xb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_156xb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_156xb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_156xb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_156xb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_156xb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_156xb"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: tzrpt */
1
+ /* hash: e03di */
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_10jlm {
44
+ } .bottom-sheet__footer_156xb {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_10jlm {
47
+ } .bottom-sheet__sticky_156xb {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_10jlm {
51
+ } .bottom-sheet__highlighted_156xb {
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_10jlm {
54
+ } .bottom-sheet__background-accent_156xb {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_10jlm {
56
+ } .bottom-sheet__background-info_156xb {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_10jlm {
58
+ } .bottom-sheet__background-attention-muted_156xb {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_10jlm {
60
+ } .bottom-sheet__background-positive-muted_156xb {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_10jlm {
62
+ } .bottom-sheet__background-negative-muted_156xb {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_10jlm {
64
+ } .bottom-sheet__background-primary_156xb {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_10jlm {
66
+ } .bottom-sheet__background-primary-inverted_156xb {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_10jlm {
68
+ } .bottom-sheet__background-secondary_156xb {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_10jlm {
70
+ } .bottom-sheet__background-secondary-inverted_156xb {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_10jlm {
72
+ } .bottom-sheet__background-tertiary_156xb {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_10jlm {
74
+ } .bottom-sheet__background-tertiary-inverted_156xb {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_10jlm {
76
+ } .bottom-sheet__background-quaternary_156xb {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_10jlm {
78
+ } .bottom-sheet__background-quaternary-inverted_156xb {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_10jlm {
80
+ } .bottom-sheet__background-specialbg-component_156xb {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_10jlm {
82
+ } .bottom-sheet__background-specialbg-component-inverted_156xb {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_10jlm {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_156xb {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_10jlm {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_156xb {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_10jlm {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_156xb {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_10jlm {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_156xb {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_10jlm {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_156xb {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_10jlm {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_156xb {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_10jlm {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_156xb {
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_1srvx","hasContent":"bottom-sheet__hasContent_1srvx","header":"bottom-sheet__header_1srvx","sticky":"bottom-sheet__sticky_1srvx","highlighted":"bottom-sheet__highlighted_1srvx","justifyEnd":"bottom-sheet__justifyEnd_1srvx","addon":"bottom-sheet__addon_1srvx","addonFixed":"bottom-sheet__addonFixed_1srvx","title":"bottom-sheet__title_1srvx","titleCenter":"bottom-sheet__titleCenter_1srvx","titleLeft":"bottom-sheet__titleLeft_1srvx","trimTitle":"bottom-sheet__trimTitle_1srvx"};
17
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_desbc","hasContent":"bottom-sheet__hasContent_desbc","header":"bottom-sheet__header_desbc","sticky":"bottom-sheet__sticky_desbc","highlighted":"bottom-sheet__highlighted_desbc","justifyEnd":"bottom-sheet__justifyEnd_desbc","addon":"bottom-sheet__addon_desbc","addonFixed":"bottom-sheet__addonFixed_desbc","title":"bottom-sheet__title_desbc","titleCenter":"bottom-sheet__titleCenter_desbc","titleLeft":"bottom-sheet__titleLeft_desbc","trimTitle":"bottom-sheet__trimTitle_desbc"};
18
18
  require('./index.css')
19
19
 
20
20
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xuqdm */
1
+ /* hash: 10k7j */
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_1srvx {
30
+ } .bottom-sheet__headerWrapper_desbc {
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_1srvx {
35
+ } .bottom-sheet__hasContent_desbc {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_1srvx {
37
+ } .bottom-sheet__header_desbc {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_1srvx {
39
+ } .bottom-sheet__sticky_desbc {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_1srvx {
42
+ } .bottom-sheet__highlighted_desbc {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_1srvx {
44
+ } .bottom-sheet__justifyEnd_desbc {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_1srvx {
46
+ } .bottom-sheet__addon_desbc {
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_1srvx {
52
+ } .bottom-sheet__addonFixed_desbc {
53
53
  position: fixed;
54
- } .bottom-sheet__title_1srvx {
54
+ } .bottom-sheet__title_desbc {
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_1srvx {
61
+ } .bottom-sheet__titleCenter_desbc {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_1srvx {
63
+ } .bottom-sheet__titleLeft_desbc {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_1srvx {
65
+ } .bottom-sheet__trimTitle_desbc {
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, 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;
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, 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 }) },
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
@@ -161,6 +161,10 @@ type BottomSheetProps = {
161
161
  * Отключает блокировку скролла при открытии модального окна
162
162
  */
163
163
  disableBlockingScroll?: boolean;
164
+ /**
165
+ * Отключает ловушку фокуса
166
+ */
167
+ disableFocusLock?: boolean;
164
168
  /**
165
169
  * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
166
170
  * Не анимировать шторку при изменении размера вьюпорта
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_8nffl","wrapper":"bottom-sheet__wrapper_8nffl","component":"bottom-sheet__component_8nffl","withTransition":"bottom-sheet__withTransition_8nffl","scrollableContainer":"bottom-sheet__scrollableContainer_8nffl","marker":"bottom-sheet__marker_8nffl","content":"bottom-sheet__content_8nffl","noHeader":"bottom-sheet__noHeader_8nffl","noFooter":"bottom-sheet__noFooter_8nffl","scrollLocked":"bottom-sheet__scrollLocked_8nffl","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_8nffl","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_8nffl","appear":"bottom-sheet__appear_8nffl","enter":"bottom-sheet__enter_8nffl","appearActive":"bottom-sheet__appearActive_8nffl","enterActive":"bottom-sheet__enterActive_8nffl","enterDone":"bottom-sheet__enterDone_8nffl","appearDone":"bottom-sheet__appearDone_8nffl","exit":"bottom-sheet__exit_8nffl","exitActive":"bottom-sheet__exitActive_8nffl","background-accent":"bottom-sheet__background-accent_8nffl","background-info":"bottom-sheet__background-info_8nffl","background-attention-muted":"bottom-sheet__background-attention-muted_8nffl","background-positive-muted":"bottom-sheet__background-positive-muted_8nffl","background-negative-muted":"bottom-sheet__background-negative-muted_8nffl","background-primary":"bottom-sheet__background-primary_8nffl","background-primary-inverted":"bottom-sheet__background-primary-inverted_8nffl","background-secondary":"bottom-sheet__background-secondary_8nffl","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_8nffl","background-tertiary":"bottom-sheet__background-tertiary_8nffl","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_8nffl","background-quaternary":"bottom-sheet__background-quaternary_8nffl","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_8nffl","background-specialbg-component":"bottom-sheet__background-specialbg-component_8nffl","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_8nffl","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_8nffl","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_8nffl","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_8nffl","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_8nffl","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_8nffl","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_8nffl","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_8nffl"};
20
+ var styles = {"modal":"bottom-sheet__modal_1pjhk","wrapper":"bottom-sheet__wrapper_1pjhk","component":"bottom-sheet__component_1pjhk","withTransition":"bottom-sheet__withTransition_1pjhk","scrollableContainer":"bottom-sheet__scrollableContainer_1pjhk","marker":"bottom-sheet__marker_1pjhk","content":"bottom-sheet__content_1pjhk","noHeader":"bottom-sheet__noHeader_1pjhk","noFooter":"bottom-sheet__noFooter_1pjhk","scrollLocked":"bottom-sheet__scrollLocked_1pjhk","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1pjhk","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1pjhk","appear":"bottom-sheet__appear_1pjhk","enter":"bottom-sheet__enter_1pjhk","appearActive":"bottom-sheet__appearActive_1pjhk","enterActive":"bottom-sheet__enterActive_1pjhk","enterDone":"bottom-sheet__enterDone_1pjhk","appearDone":"bottom-sheet__appearDone_1pjhk","exit":"bottom-sheet__exit_1pjhk","exitActive":"bottom-sheet__exitActive_1pjhk","background-accent":"bottom-sheet__background-accent_1pjhk","background-info":"bottom-sheet__background-info_1pjhk","background-attention-muted":"bottom-sheet__background-attention-muted_1pjhk","background-positive-muted":"bottom-sheet__background-positive-muted_1pjhk","background-negative-muted":"bottom-sheet__background-negative-muted_1pjhk","background-primary":"bottom-sheet__background-primary_1pjhk","background-primary-inverted":"bottom-sheet__background-primary-inverted_1pjhk","background-secondary":"bottom-sheet__background-secondary_1pjhk","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1pjhk","background-tertiary":"bottom-sheet__background-tertiary_1pjhk","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1pjhk","background-quaternary":"bottom-sheet__background-quaternary_1pjhk","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1pjhk","background-specialbg-component":"bottom-sheet__background-specialbg-component_1pjhk","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1pjhk","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1pjhk","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1pjhk","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1pjhk","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1pjhk","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1pjhk","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1pjhk","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1pjhk"};
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, 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;
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, 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 }) },
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_10jlm","sticky":"bottom-sheet__sticky_10jlm","highlighted":"bottom-sheet__highlighted_10jlm","background-accent":"bottom-sheet__background-accent_10jlm","background-info":"bottom-sheet__background-info_10jlm","background-attention-muted":"bottom-sheet__background-attention-muted_10jlm","background-positive-muted":"bottom-sheet__background-positive-muted_10jlm","background-negative-muted":"bottom-sheet__background-negative-muted_10jlm","background-primary":"bottom-sheet__background-primary_10jlm","background-primary-inverted":"bottom-sheet__background-primary-inverted_10jlm","background-secondary":"bottom-sheet__background-secondary_10jlm","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_10jlm","background-tertiary":"bottom-sheet__background-tertiary_10jlm","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_10jlm","background-quaternary":"bottom-sheet__background-quaternary_10jlm","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_10jlm","background-specialbg-component":"bottom-sheet__background-specialbg-component_10jlm","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_10jlm","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_10jlm","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_10jlm","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_10jlm","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_10jlm","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_10jlm","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_10jlm","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_10jlm"};
5
+ var styles = {"footer":"bottom-sheet__footer_156xb","sticky":"bottom-sheet__sticky_156xb","highlighted":"bottom-sheet__highlighted_156xb","background-accent":"bottom-sheet__background-accent_156xb","background-info":"bottom-sheet__background-info_156xb","background-attention-muted":"bottom-sheet__background-attention-muted_156xb","background-positive-muted":"bottom-sheet__background-positive-muted_156xb","background-negative-muted":"bottom-sheet__background-negative-muted_156xb","background-primary":"bottom-sheet__background-primary_156xb","background-primary-inverted":"bottom-sheet__background-primary-inverted_156xb","background-secondary":"bottom-sheet__background-secondary_156xb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_156xb","background-tertiary":"bottom-sheet__background-tertiary_156xb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_156xb","background-quaternary":"bottom-sheet__background-quaternary_156xb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_156xb","background-specialbg-component":"bottom-sheet__background-specialbg-component_156xb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_156xb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_156xb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_156xb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_156xb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_156xb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_156xb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_156xb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_156xb"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: tzrpt */
1
+ /* hash: e03di */
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_10jlm {
44
+ } .bottom-sheet__footer_156xb {
45
45
  padding: var(--gap-m) var(--gap-m);
46
46
  background-color: var(--color-light-bg-primary);
47
- } .bottom-sheet__sticky_10jlm {
47
+ } .bottom-sheet__sticky_156xb {
48
48
  position: sticky;
49
49
  bottom: 0;
50
50
  z-index: 1;
51
- } .bottom-sheet__highlighted_10jlm {
51
+ } .bottom-sheet__highlighted_156xb {
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_10jlm {
54
+ } .bottom-sheet__background-accent_156xb {
55
55
  background-color: var(--color-light-bg-accent);
56
- } .bottom-sheet__background-info_10jlm {
56
+ } .bottom-sheet__background-info_156xb {
57
57
  background-color: var(--color-light-bg-info);
58
- } .bottom-sheet__background-attention-muted_10jlm {
58
+ } .bottom-sheet__background-attention-muted_156xb {
59
59
  background-color: var(--color-light-bg-attention-muted);
60
- } .bottom-sheet__background-positive-muted_10jlm {
60
+ } .bottom-sheet__background-positive-muted_156xb {
61
61
  background-color: var(--color-light-bg-positive-muted);
62
- } .bottom-sheet__background-negative-muted_10jlm {
62
+ } .bottom-sheet__background-negative-muted_156xb {
63
63
  background-color: var(--color-light-bg-negative-muted);
64
- } .bottom-sheet__background-primary_10jlm {
64
+ } .bottom-sheet__background-primary_156xb {
65
65
  background-color: var(--color-light-bg-primary);
66
- } .bottom-sheet__background-primary-inverted_10jlm {
66
+ } .bottom-sheet__background-primary-inverted_156xb {
67
67
  background-color: var(--color-light-bg-primary-inverted);
68
- } .bottom-sheet__background-secondary_10jlm {
68
+ } .bottom-sheet__background-secondary_156xb {
69
69
  background-color: var(--color-light-bg-secondary);
70
- } .bottom-sheet__background-secondary-inverted_10jlm {
70
+ } .bottom-sheet__background-secondary-inverted_156xb {
71
71
  background-color: var(--color-light-bg-secondary-inverted);
72
- } .bottom-sheet__background-tertiary_10jlm {
72
+ } .bottom-sheet__background-tertiary_156xb {
73
73
  background-color: var(--color-light-bg-tertiary);
74
- } .bottom-sheet__background-tertiary-inverted_10jlm {
74
+ } .bottom-sheet__background-tertiary-inverted_156xb {
75
75
  background-color: var(--color-light-bg-tertiary-inverted);
76
- } .bottom-sheet__background-quaternary_10jlm {
76
+ } .bottom-sheet__background-quaternary_156xb {
77
77
  background-color: var(--color-light-bg-quaternary);
78
- } .bottom-sheet__background-quaternary-inverted_10jlm {
78
+ } .bottom-sheet__background-quaternary-inverted_156xb {
79
79
  background-color: var(--color-light-bg-quaternary-inverted);
80
- } .bottom-sheet__background-specialbg-component_10jlm {
80
+ } .bottom-sheet__background-specialbg-component_156xb {
81
81
  background-color: var(--color-light-specialbg-component);
82
- } .bottom-sheet__background-specialbg-component-inverted_10jlm {
82
+ } .bottom-sheet__background-specialbg-component-inverted_156xb {
83
83
  background-color: var(--color-light-specialbg-component-inverted);
84
- } .bottom-sheet__background-specialbg-primary-grouped_10jlm {
84
+ } .bottom-sheet__background-specialbg-primary-grouped_156xb {
85
85
  background-color: var(--color-light-specialbg-primary-grouped);
86
- } .bottom-sheet__background-specialbg-secondary-grouped_10jlm {
86
+ } .bottom-sheet__background-specialbg-secondary-grouped_156xb {
87
87
  background-color: var(--color-light-specialbg-secondary-grouped);
88
- } .bottom-sheet__background-specialbg-tertiary-grouped_10jlm {
88
+ } .bottom-sheet__background-specialbg-tertiary-grouped_156xb {
89
89
  background-color: var(--color-light-specialbg-tertiary-grouped);
90
- } .bottom-sheet__background-specialbg-secondary-transparent_10jlm {
90
+ } .bottom-sheet__background-specialbg-secondary-transparent_156xb {
91
91
  background-color: var(--color-light-specialbg-secondary-transparent);
92
- } .bottom-sheet__background-specialbg-secondary-transparent-inverted_10jlm {
92
+ } .bottom-sheet__background-specialbg-secondary-transparent-inverted_156xb {
93
93
  background-color: var(--color-light-specialbg-secondary-transparent-inverted);
94
- } .bottom-sheet__background-specialbg-tertiary-transparent_10jlm {
94
+ } .bottom-sheet__background-specialbg-tertiary-transparent_156xb {
95
95
  background-color: var(--color-light-specialbg-tertiary-transparent);
96
- } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_10jlm {
96
+ } .bottom-sheet__background-specialbg-tertiary-transparent-inverted_156xb {
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_1srvx","hasContent":"bottom-sheet__hasContent_1srvx","header":"bottom-sheet__header_1srvx","sticky":"bottom-sheet__sticky_1srvx","highlighted":"bottom-sheet__highlighted_1srvx","justifyEnd":"bottom-sheet__justifyEnd_1srvx","addon":"bottom-sheet__addon_1srvx","addonFixed":"bottom-sheet__addonFixed_1srvx","title":"bottom-sheet__title_1srvx","titleCenter":"bottom-sheet__titleCenter_1srvx","titleLeft":"bottom-sheet__titleLeft_1srvx","trimTitle":"bottom-sheet__trimTitle_1srvx"};
8
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_desbc","hasContent":"bottom-sheet__hasContent_desbc","header":"bottom-sheet__header_desbc","sticky":"bottom-sheet__sticky_desbc","highlighted":"bottom-sheet__highlighted_desbc","justifyEnd":"bottom-sheet__justifyEnd_desbc","addon":"bottom-sheet__addon_desbc","addonFixed":"bottom-sheet__addonFixed_desbc","title":"bottom-sheet__title_desbc","titleCenter":"bottom-sheet__titleCenter_desbc","titleLeft":"bottom-sheet__titleLeft_desbc","trimTitle":"bottom-sheet__trimTitle_desbc"};
9
9
  require('./index.css')
10
10
 
11
11
  var Header = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xuqdm */
1
+ /* hash: 10k7j */
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_1srvx {
30
+ } .bottom-sheet__headerWrapper_desbc {
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_1srvx {
35
+ } .bottom-sheet__hasContent_desbc {
36
36
  background-color: inherit;
37
- } .bottom-sheet__header_1srvx {
37
+ } .bottom-sheet__header_desbc {
38
38
  display: flex;
39
- } .bottom-sheet__sticky_1srvx {
39
+ } .bottom-sheet__sticky_desbc {
40
40
  position: sticky;
41
41
  top: 0;
42
- } .bottom-sheet__highlighted_1srvx {
42
+ } .bottom-sheet__highlighted_desbc {
43
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
44
- } .bottom-sheet__justifyEnd_1srvx {
44
+ } .bottom-sheet__justifyEnd_desbc {
45
45
  justify-content: flex-end;
46
- } .bottom-sheet__addon_1srvx {
46
+ } .bottom-sheet__addon_desbc {
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_1srvx {
52
+ } .bottom-sheet__addonFixed_desbc {
53
53
  position: fixed;
54
- } .bottom-sheet__title_1srvx {
54
+ } .bottom-sheet__title_desbc {
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_1srvx {
61
+ } .bottom-sheet__titleCenter_desbc {
62
62
  text-align: center;
63
- } .bottom-sheet__titleLeft_1srvx {
63
+ } .bottom-sheet__titleLeft_desbc {
64
64
  text-align: left;
65
- } .bottom-sheet__trimTitle_1srvx {
65
+ } .bottom-sheet__trimTitle_desbc {
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;