@alfalab/core-components-bottom-sheet 4.5.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/component-581baeb0.d.ts → component-3b421fa8.d.ts} +13 -0
  3. package/{dist/component-581baeb0.js → component-3b421fa8.js} +5 -10
  4. package/{dist/component.d.ts → component.d.ts} +0 -0
  5. package/{dist/component.js → component.js} +2 -2
  6. package/{dist/components → components}/backer/Component.d.ts +0 -0
  7. package/{dist/components → components}/backer/Component.js +2 -2
  8. package/{dist/components → components}/backer/index.css +3 -3
  9. package/{dist/components → components}/closer/Component.d.ts +0 -0
  10. package/{dist/components → components}/closer/Component.js +2 -2
  11. package/{dist/esm/components → components}/closer/index.css +3 -3
  12. package/{dist/components → components}/footer/Component.d.ts +0 -0
  13. package/{dist/components → components}/footer/Component.js +1 -1
  14. package/{dist/components → components}/footer/index.css +4 -4
  15. package/{dist/components → components}/header/Component.d.ts +0 -0
  16. package/{dist/components → components}/header/Component.js +2 -2
  17. package/{dist/modern/components → components}/header/index.css +17 -17
  18. package/{dist/components → components}/swipeable-backdrop/Component.d.ts +0 -0
  19. package/{dist/components → components}/swipeable-backdrop/Component.js +1 -1
  20. package/{dist/cssm/component-eb26b84c.d.ts → cssm/component-78755a1d.d.ts} +13 -0
  21. package/{dist/cssm/component-eb26b84c.js → cssm/component-78755a1d.js} +4 -9
  22. package/{dist/cssm → cssm}/component.d.ts +0 -0
  23. package/{dist/cssm → cssm}/component.js +5 -5
  24. package/{dist/cssm → cssm}/components/backer/Component.d.ts +0 -0
  25. package/{dist/cssm → cssm}/components/backer/Component.js +1 -1
  26. package/{dist/cssm → cssm}/components/backer/index.module.css +0 -0
  27. package/{dist/cssm → cssm}/components/closer/Component.d.ts +0 -0
  28. package/{dist/cssm → cssm}/components/closer/Component.js +2 -2
  29. package/{dist/cssm → cssm}/components/closer/index.module.css +0 -0
  30. package/{dist/cssm → cssm}/components/footer/Component.d.ts +0 -0
  31. package/{dist/cssm → cssm}/components/footer/Component.js +1 -1
  32. package/{dist/cssm → cssm}/components/footer/index.module.css +0 -0
  33. package/{dist/cssm → cssm}/components/header/Component.d.ts +0 -0
  34. package/{dist/cssm → cssm}/components/header/Component.js +5 -5
  35. package/{dist/cssm → cssm}/components/header/index.module.css +0 -0
  36. package/{dist/cssm → cssm}/components/swipeable-backdrop/Component.d.ts +0 -0
  37. package/{dist/cssm → cssm}/components/swipeable-backdrop/Component.js +1 -1
  38. package/cssm/index.d.ts +1 -0
  39. package/{dist/cssm → cssm}/index.js +5 -5
  40. package/{dist/cssm → cssm}/index.module.css +3 -3
  41. package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
  42. package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
  43. package/{dist/esm/component-454f3d35.d.ts → esm/component-1f99b3a3.d.ts} +13 -0
  44. package/{dist/esm/component-454f3d35.js → esm/component-1f99b3a3.js} +7 -12
  45. package/{dist/esm → esm}/component.d.ts +0 -0
  46. package/{dist/esm → esm}/component.js +6 -6
  47. package/{dist/esm → esm}/components/backer/Component.d.ts +0 -0
  48. package/{dist/esm → esm}/components/backer/Component.js +3 -3
  49. package/{dist/modern → esm}/components/backer/index.css +3 -3
  50. package/{dist/esm → esm}/components/closer/Component.d.ts +0 -0
  51. package/{dist/esm → esm}/components/closer/Component.js +4 -4
  52. package/{dist → esm}/components/closer/index.css +3 -3
  53. package/{dist/esm → esm}/components/footer/Component.d.ts +0 -0
  54. package/{dist/esm → esm}/components/footer/Component.js +2 -2
  55. package/{dist/esm → esm}/components/footer/index.css +4 -4
  56. package/{dist/esm → esm}/components/header/Component.d.ts +0 -0
  57. package/{dist/esm → esm}/components/header/Component.js +6 -6
  58. package/{dist/esm → esm}/components/header/index.css +17 -17
  59. package/{dist/esm → esm}/components/swipeable-backdrop/Component.d.ts +0 -0
  60. package/{dist/esm → esm}/components/swipeable-backdrop/Component.js +2 -2
  61. package/{dist/esm → esm}/index.css +19 -19
  62. package/esm/index.d.ts +1 -0
  63. package/{dist/esm → esm}/index.js +6 -6
  64. package/{dist/esm/tslib.es6-5475692a.d.ts → esm/tslib.es6-439cec54.d.ts} +0 -0
  65. package/{dist/esm/tslib.es6-5475692a.js → esm/tslib.es6-439cec54.js} +0 -0
  66. package/{dist/index.css → index.css} +19 -19
  67. package/index.d.ts +1 -0
  68. package/{dist/index.js → index.js} +2 -2
  69. package/{dist/modern/component-721db0aa.d.ts → modern/component-51dbdaef.d.ts} +13 -0
  70. package/{dist/modern/component-721db0aa.js → modern/component-51dbdaef.js} +7 -6
  71. package/{dist/modern → modern}/component.d.ts +0 -0
  72. package/{dist/modern → modern}/component.js +5 -5
  73. package/{dist/modern → modern}/components/backer/Component.d.ts +0 -0
  74. package/{dist/modern → modern}/components/backer/Component.js +2 -2
  75. package/{dist/esm → modern}/components/backer/index.css +3 -3
  76. package/{dist/modern → modern}/components/closer/Component.d.ts +0 -0
  77. package/{dist/modern → modern}/components/closer/Component.js +3 -3
  78. package/{dist/modern → modern}/components/closer/index.css +3 -3
  79. package/{dist/modern → modern}/components/footer/Component.d.ts +0 -0
  80. package/{dist/modern → modern}/components/footer/Component.js +2 -2
  81. package/{dist/modern → modern}/components/footer/index.css +4 -4
  82. package/{dist/modern → modern}/components/header/Component.d.ts +0 -0
  83. package/{dist/modern → modern}/components/header/Component.js +5 -5
  84. package/{dist → modern}/components/header/index.css +17 -17
  85. package/{dist/modern → modern}/components/swipeable-backdrop/Component.d.ts +0 -0
  86. package/{dist/modern → modern}/components/swipeable-backdrop/Component.js +1 -1
  87. package/{dist/modern → modern}/index.css +19 -19
  88. package/modern/index.d.ts +1 -0
  89. package/{dist/modern → modern}/index.js +5 -5
  90. package/package.json +11 -14
  91. package/{dist/send-stats.js → send-stats.js} +0 -0
  92. package/{dist/tslib.es6-2a5a9bdd.d.ts → tslib.es6-9171dbde.d.ts} +0 -0
  93. package/{dist/tslib.es6-2a5a9bdd.js → tslib.es6-9171dbde.js} +0 -0
  94. package/dist/cssm/index.d.ts +0 -1
  95. package/dist/esm/index.d.ts +0 -1
  96. package/dist/index.d.ts +0 -1
  97. package/dist/modern/index.d.ts +0 -1
@@ -7,9 +7,9 @@ require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
9
9
  require('react-swipeable');
10
- require('@alfalab/core-components-base-modal/dist/cssm');
11
- require('@alfalab/core-components-typography/dist/cssm');
12
- require('@alfalab/core-components-icon-button/dist/cssm');
10
+ require('@alfalab/core-components-base-modal/cssm');
11
+ require('@alfalab/core-components-typography/cssm');
12
+ require('@alfalab/core-components-icon-button/cssm');
13
13
  require('@alfalab/icons-glyph/CrossMIcon');
14
14
  require('./components/closer/index.module.css');
15
15
  require('./components/closer/Component.js');
@@ -17,10 +17,10 @@ require('@alfalab/icons-glyph/ArrowBackMIcon');
17
17
  require('./components/backer/index.module.css');
18
18
  require('./components/backer/Component.js');
19
19
  require('./components/header/index.module.css');
20
- var components_header_Component = require('./component-eb26b84c.js');
20
+ var components_header_Component = require('./component-78755a1d.js');
21
21
  require('./components/footer/index.module.css');
22
22
  require('./components/footer/Component.js');
23
- require('@alfalab/core-components-backdrop/dist/cssm');
23
+ require('@alfalab/core-components-backdrop/cssm');
24
24
  require('./components/swipeable-backdrop/Component.js');
25
25
  require('./index.module.css');
26
26
 
@@ -17,7 +17,7 @@
17
17
  --gap-xl: 24px;
18
18
  }
19
19
  :root {
20
- --border-radius-xl: 16px;
20
+ --border-radius-3xl: 24px;
21
21
  }
22
22
  :root {
23
23
  --bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
@@ -35,8 +35,8 @@
35
35
  position: relative;
36
36
  display: flex;
37
37
  flex-direction: column;
38
- border-top-right-radius: var(--border-radius-xl);
39
- border-top-left-radius: var(--border-radius-xl);
38
+ border-top-right-radius: var(--border-radius-3xl);
39
+ border-top-left-radius: var(--border-radius-3xl);
40
40
  background: var(--color-light-bg-primary);
41
41
  transform: translateY(100%);
42
42
  }
File without changes
File without changes
@@ -4,6 +4,7 @@ import React from "react";
4
4
  import { FC, ReactNode, HTMLAttributes } from "react";
5
5
  import { BottomSheetTitleAlign } from "./index";
6
6
  import { TransitionProps } from 'react-transition-group/Transition';
7
+ import { BaseModalProps } from "@alfalab/core-components-base-modal";
7
8
  type HeaderProps = {
8
9
  /**
9
10
  * Заголовок
@@ -121,6 +122,10 @@ type BottomSheetProps = {
121
122
  * Дополнительный класс для компонента модального окна
122
123
  */
123
124
  modalClassName?: string;
125
+ /**
126
+ * Дополнительный класс для обертки модального окна
127
+ */
128
+ modalWrapperClassName?: string;
124
129
  /**
125
130
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
126
131
  */
@@ -190,10 +195,18 @@ type BottomSheetProps = {
190
195
  * Запретить закрытие шторки кликом на оверлэй
191
196
  */
192
197
  disableOverlayClick?: boolean;
198
+ /**
199
+ * Отключает блокировку скролла при открытии модального окна
200
+ */
201
+ disableBlockingScroll?: boolean;
193
202
  /**
194
203
  * Не анимировать шторку при изменении размера вьюпорта
195
204
  */
196
205
  ignoreScreenChange?: boolean;
206
+ /**
207
+ * Свойства для Бэкдропа
208
+ */
209
+ backdropProps?: BaseModalProps['backdropProps'];
197
210
  /**
198
211
  * Обработчик закрытия
199
212
  */
@@ -1,16 +1,16 @@
1
- import { _ as __assign } from './tslib.es6-5475692a.js';
1
+ import { _ as __assign } from './tslib.es6-439cec54.js';
2
2
  import React, { useContext, useEffect, forwardRef, useState, useRef, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { use100vh } from 'react-div-100vh';
5
5
  import { useSwipeable } from 'react-swipeable';
6
- import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/dist/esm';
7
- import { Typography } from '@alfalab/core-components-typography/dist/esm';
6
+ import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/esm';
7
+ import { Typography } from '@alfalab/core-components-typography/esm';
8
8
  import { Closer } from './components/closer/Component.js';
9
9
  import { Backer } from './components/backer/Component.js';
10
10
  import { Footer } from './components/footer/Component.js';
11
11
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
12
12
 
13
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1r271","header":"bottom-sheet__header_1r271","sticky":"bottom-sheet__sticky_1r271","highlighted":"bottom-sheet__highlighted_1r271","justifyEnd":"bottom-sheet__justifyEnd_1r271","addon":"bottom-sheet__addon_1r271","addonFixed":"bottom-sheet__addonFixed_1r271","addonLeft":"bottom-sheet__addonLeft_1r271","addonRight":"bottom-sheet__addonRight_1r271","title":"bottom-sheet__title_1r271","titleCenter":"bottom-sheet__titleCenter_1r271","titleLeft":"bottom-sheet__titleLeft_1r271","trimTitle":"bottom-sheet__trimTitle_1r271","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1r271","titleIndentRight":"bottom-sheet__titleIndentRight_1r271","titleIndentLeft":"bottom-sheet__titleIndentLeft_1r271"};
13
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1sd1v","header":"bottom-sheet__header_1sd1v","sticky":"bottom-sheet__sticky_1sd1v","highlighted":"bottom-sheet__highlighted_1sd1v","justifyEnd":"bottom-sheet__justifyEnd_1sd1v","addon":"bottom-sheet__addon_1sd1v","addonFixed":"bottom-sheet__addonFixed_1sd1v","addonLeft":"bottom-sheet__addonLeft_1sd1v","addonRight":"bottom-sheet__addonRight_1sd1v","title":"bottom-sheet__title_1sd1v","titleCenter":"bottom-sheet__titleCenter_1sd1v","titleLeft":"bottom-sheet__titleLeft_1sd1v","trimTitle":"bottom-sheet__trimTitle_1sd1v","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1sd1v","titleIndentRight":"bottom-sheet__titleIndentRight_1sd1v","titleIndentLeft":"bottom-sheet__titleIndentLeft_1sd1v"};
14
14
  require('./components/header/index.css')
15
15
 
16
16
  var Header = function (_a) {
@@ -60,7 +60,7 @@ var Header = function (_a) {
60
60
  bottomAddons));
61
61
  };
62
62
 
63
- var styles$1 = {"modal":"bottom-sheet__modal_xuxkz","component":"bottom-sheet__component_xuxkz","withTransition":"bottom-sheet__withTransition_xuxkz","withZeroTransition":"bottom-sheet__withZeroTransition_xuxkz","scrollableContainer":"bottom-sheet__scrollableContainer_xuxkz","marker":"bottom-sheet__marker_xuxkz","content":"bottom-sheet__content_xuxkz","noHeader":"bottom-sheet__noHeader_xuxkz","noFooter":"bottom-sheet__noFooter_xuxkz","scrollLocked":"bottom-sheet__scrollLocked_xuxkz","appear":"bottom-sheet__appear_xuxkz","enter":"bottom-sheet__enter_xuxkz","appearActive":"bottom-sheet__appearActive_xuxkz","enterActive":"bottom-sheet__enterActive_xuxkz","enterDone":"bottom-sheet__enterDone_xuxkz","appearDone":"bottom-sheet__appearDone_xuxkz","exit":"bottom-sheet__exit_xuxkz","exitActive":"bottom-sheet__exitActive_xuxkz"};
63
+ var styles$1 = {"modal":"bottom-sheet__modal_z5set","component":"bottom-sheet__component_z5set","withTransition":"bottom-sheet__withTransition_z5set","withZeroTransition":"bottom-sheet__withZeroTransition_z5set","scrollableContainer":"bottom-sheet__scrollableContainer_z5set","marker":"bottom-sheet__marker_z5set","content":"bottom-sheet__content_z5set","noHeader":"bottom-sheet__noHeader_z5set","noFooter":"bottom-sheet__noFooter_z5set","scrollLocked":"bottom-sheet__scrollLocked_z5set","appear":"bottom-sheet__appear_z5set","enter":"bottom-sheet__enter_z5set","appearActive":"bottom-sheet__appearActive_z5set","enterActive":"bottom-sheet__enterActive_z5set","enterDone":"bottom-sheet__enterDone_z5set","appearDone":"bottom-sheet__appearDone_z5set","exit":"bottom-sheet__exit_z5set","exitActive":"bottom-sheet__exitActive_z5set"};
64
64
  require('./index.css')
65
65
 
66
66
  var TIMEOUT = 300;
@@ -73,7 +73,7 @@ var HEADER_OFFSET = 24;
73
73
  var CLOSE_OFFSET = 0.2;
74
74
  var BottomSheet = forwardRef(function (_a, ref) {
75
75
  var _b, _c, _d;
76
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
76
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, backdropProps = _a.backdropProps, onClose = _a.onClose, onBack = _a.onBack;
77
77
  var _l = useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
78
78
  var _m = useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
79
79
  var _o = useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -225,12 +225,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
225
225
  height: initialHeight === 'full' ? targetHeight : 'unset',
226
226
  maxHeight: targetHeight,
227
227
  }); };
228
- return (React.createElement(BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: {
229
- opacity: backdropOpacity,
230
- handlers: swipeable ? backdropSwipeablehandlers : false,
231
- opacityTimeout: TIMEOUT,
232
- invisible: initialHeight === 'full' ? false : hideOverlay,
233
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles$1.modal, modalClassName), transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
228
+ return (React.createElement(BaseModal, { open: open, ref: ref, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: __assign(__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles$1.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: __assign(__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
234
229
  React.createElement("div", __assign({ className: cn(styles$1.component, className, (_b = {},
235
230
  _b[transitionClassName] = !sheetOffset,
236
231
  _b)), style: __assign(__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
File without changes
@@ -1,16 +1,16 @@
1
- import './tslib.es6-5475692a.js';
1
+ import './tslib.es6-439cec54.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
5
5
  import 'react-swipeable';
6
- import '@alfalab/core-components-base-modal/dist/esm';
7
- import '@alfalab/core-components-typography/dist/esm';
8
- import '@alfalab/core-components-icon-button/dist/esm';
6
+ import '@alfalab/core-components-base-modal/esm';
7
+ import '@alfalab/core-components-typography/esm';
8
+ import '@alfalab/core-components-icon-button/esm';
9
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
10
  import './components/closer/Component.js';
11
11
  import '@alfalab/icons-glyph/ArrowBackMIcon';
12
12
  import './components/backer/Component.js';
13
- export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-454f3d35.js';
13
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-1f99b3a3.js';
14
14
  import './components/footer/Component.js';
15
- import '@alfalab/core-components-backdrop/dist/esm';
15
+ import '@alfalab/core-components-backdrop/esm';
16
16
  import './components/swipeable-backdrop/Component.js';
@@ -1,10 +1,10 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-5475692a.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-439cec54.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
- import { IconButton } from '@alfalab/core-components-icon-button/dist/esm';
4
+ import { IconButton } from '@alfalab/core-components-icon-button/esm';
5
5
  import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
6
6
 
7
- var styles = {"backer":"bottom-sheet__backer_kjx3x","button":"bottom-sheet__button_kjx3x"};
7
+ var styles = {"backer":"bottom-sheet__backer_lurxr","button":"bottom-sheet__button_lurxr"};
8
8
  require('./index.css')
9
9
 
10
10
  var Backer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 13vyv */
1
+ /* hash: 10i5h */
2
2
  :root {
3
3
  --bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__backer_kjx3x {
6
+ .bottom-sheet__backer_lurxr {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_kjx3x {
16
+ .bottom-sheet__button_lurxr {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -1,11 +1,11 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-5475692a.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-439cec54.js';
2
2
  import React, { useContext, useCallback } from 'react';
3
3
  import cn from 'classnames';
4
- import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/esm';
5
- import { IconButton } from '@alfalab/core-components-icon-button/dist/esm';
4
+ import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
5
+ import { IconButton } from '@alfalab/core-components-icon-button/esm';
6
6
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
7
7
 
8
- var styles = {"closer":"bottom-sheet__closer_1iww8","button":"bottom-sheet__button_1iww8"};
8
+ var styles = {"closer":"bottom-sheet__closer_1k7r2","button":"bottom-sheet__button_1k7r2"};
9
9
  require('./index.css')
10
10
 
11
11
  var Closer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1g5to */
1
+ /* hash: jybvt */
2
2
  :root {
3
3
  --bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
4
4
  }
5
5
 
6
- .bottom-sheet__closer_1iww8 {
6
+ .bottom-sheet__closer_1k7r2 {
7
7
  width: 32px;
8
8
  height: 32px;
9
9
  display: flex;
@@ -13,7 +13,7 @@
13
13
  color: var(--color-light-graphic-primary);
14
14
  }
15
15
 
16
- .bottom-sheet__button_1iww8 {
16
+ .bottom-sheet__button_1k7r2 {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -1,8 +1,8 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/esm';
3
+ import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
4
4
 
5
- var styles = {"footer":"bottom-sheet__footer_8arjv","sticky":"bottom-sheet__sticky_8arjv","highlighted":"bottom-sheet__highlighted_8arjv"};
5
+ var styles = {"footer":"bottom-sheet__footer_9lmdp","sticky":"bottom-sheet__sticky_9lmdp","highlighted":"bottom-sheet__highlighted_9lmdp"};
6
6
  require('./index.css')
7
7
 
8
8
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 160n6 */
1
+ /* hash: vvgdh */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -18,15 +18,15 @@
18
18
  --bottom-sheet-footer-border-top: 1px solid var(--color-light-border-primary);
19
19
  --bottom-sheet-footer-background-color: var(--color-light-bg-primary);
20
20
  }
21
- .bottom-sheet__footer_8arjv {
21
+ .bottom-sheet__footer_9lmdp {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_8arjv {
25
+ .bottom-sheet__sticky_9lmdp {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_8arjv {
29
+ .bottom-sheet__highlighted_9lmdp {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -1,16 +1,16 @@
1
- import '../../tslib.es6-5475692a.js';
1
+ import '../../tslib.es6-439cec54.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
5
5
  import 'react-swipeable';
6
- import '@alfalab/core-components-base-modal/dist/esm';
7
- import '@alfalab/core-components-typography/dist/esm';
8
- import '@alfalab/core-components-icon-button/dist/esm';
6
+ import '@alfalab/core-components-base-modal/esm';
7
+ import '@alfalab/core-components-typography/esm';
8
+ import '@alfalab/core-components-icon-button/esm';
9
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
10
  import '../closer/Component.js';
11
11
  import '@alfalab/icons-glyph/ArrowBackMIcon';
12
12
  import '../backer/Component.js';
13
- export { a as Header } from '../../component-454f3d35.js';
13
+ export { a as Header } from '../../component-1f99b3a3.js';
14
14
  import '../footer/Component.js';
15
- import '@alfalab/core-components-backdrop/dist/esm';
15
+ import '@alfalab/core-components-backdrop/esm';
16
16
  import '../swipeable-backdrop/Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: no1e2 */
1
+ /* hash: wh2zz */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -30,7 +30,7 @@
30
30
  --bottom-sheet-title-font-family: var(--font-family-system);
31
31
  --bottom-sheet-title-margin-vertical: var(--gap-2xs);
32
32
  }
33
- .bottom-sheet__headerWrapper_1r271 {
33
+ .bottom-sheet__headerWrapper_1sd1v {
34
34
  padding: var(--gap-xs);
35
35
  padding-bottom: 0;
36
36
  background-color: var(--color-light-bg-primary);
@@ -38,38 +38,38 @@
38
38
  border-top-left-radius: var(--border-radius-xl);
39
39
  z-index: 1;
40
40
  }
41
- .bottom-sheet__header_1r271 {
41
+ .bottom-sheet__header_1sd1v {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_1r271 {
44
+ .bottom-sheet__sticky_1sd1v {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_1r271 {
48
+ .bottom-sheet__highlighted_1sd1v {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_1r271 {
51
+ .bottom-sheet__justifyEnd_1sd1v {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_1r271 {
54
+ .bottom-sheet__addon_1sd1v {
55
55
  display: flex;
56
56
  justify-content: center;
57
57
  align-items: center;
58
58
  min-width: 48px;
59
59
  height: 48px;
60
60
  }
61
- .bottom-sheet__addonFixed_1r271 {
61
+ .bottom-sheet__addonFixed_1sd1v {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_1r271 {
64
+ .bottom-sheet__addonLeft_1sd1v {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_1r271 {
68
+ .bottom-sheet__addonRight_1sd1v {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_1r271 {
72
+ .bottom-sheet__title_1sd1v {
73
73
  padding: var(--gap-xs) var(--gap-xs);
74
74
  margin: var(--bottom-sheet-title-margin-vertical) 0;
75
75
  width: 100%;
@@ -78,23 +78,23 @@
78
78
  line-height: var(--bottom-sheet-title-line-height);
79
79
  font-family: var(--bottom-sheet-title-font-family);
80
80
  }
81
- .bottom-sheet__titleCenter_1r271 {
81
+ .bottom-sheet__titleCenter_1sd1v {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_1r271 {
84
+ .bottom-sheet__titleLeft_1sd1v {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_1r271 {
87
+ .bottom-sheet__trimTitle_1sd1v {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_1r271 {
92
+ .bottom-sheet__titleBigIndentHorizontal_1sd1v {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_1r271 {
95
+ .bottom-sheet__titleIndentRight_1sd1v {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_1r271 {
98
+ .bottom-sheet__titleIndentLeft_1sd1v {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
@@ -1,6 +1,6 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-5475692a.js';
1
+ import { a as __rest, _ as __assign } from '../../tslib.es6-439cec54.js';
2
2
  import React from 'react';
3
- import { Backdrop } from '@alfalab/core-components-backdrop/dist/esm';
3
+ import { Backdrop } from '@alfalab/core-components-backdrop/esm';
4
4
 
5
5
  var SwipeableBackdrop = function (_a) {
6
6
  var opacity = _a.opacity, handlers = _a.handlers, opacityTimeout = _a.opacityTimeout, style = _a.style, backdropProps = __rest(_a, ["opacity", "handlers", "opacityTimeout", "style"]);
@@ -1,4 +1,4 @@
1
- /* hash: l340t */
1
+ /* hash: 13epc */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-graphic-quaternary: #dbdee1;
@@ -18,43 +18,43 @@
18
18
  --gap-xl: 24px;
19
19
  }
20
20
  :root {
21
- --border-radius-xl: 16px;
21
+ --border-radius-3xl: 24px;
22
22
  }
23
23
  :root {
24
24
  --bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
25
25
  --bottom-sheet-out-transition: 0.3s ease;
26
26
  }
27
- .bottom-sheet__modal_xuxkz {
27
+ .bottom-sheet__modal_z5set {
28
28
  background-color: transparent;
29
29
  position: fixed;
30
30
  bottom: 0;
31
31
  width: 100%;
32
32
  max-width: 600px;
33
33
  }
34
- .bottom-sheet__component_xuxkz {
34
+ .bottom-sheet__component_z5set {
35
35
  overflow: hidden;
36
36
  position: relative;
37
37
  display: flex;
38
38
  flex-direction: column;
39
- border-top-right-radius: var(--border-radius-xl);
40
- border-top-left-radius: var(--border-radius-xl);
39
+ border-top-right-radius: var(--border-radius-3xl);
40
+ border-top-left-radius: var(--border-radius-3xl);
41
41
  background: var(--color-light-bg-primary);
42
42
  transform: translateY(100%);
43
43
  }
44
- .bottom-sheet__withTransition_xuxkz {
44
+ .bottom-sheet__withTransition_z5set {
45
45
  transition: var(--bottom-sheet-out-transition);
46
46
  }
47
- .bottom-sheet__withZeroTransition_xuxkz {
47
+ .bottom-sheet__withZeroTransition_z5set {
48
48
  transition: 0s linear;
49
49
  }
50
- .bottom-sheet__scrollableContainer_xuxkz {
50
+ .bottom-sheet__scrollableContainer_z5set {
51
51
  overflow: auto;
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  position: relative;
55
55
  height: 100%;
56
56
  }
57
- .bottom-sheet__marker_xuxkz {
57
+ .bottom-sheet__marker_z5set {
58
58
  position: fixed;
59
59
  top: var(--gap-2xs);
60
60
  left: 50%;
@@ -65,7 +65,7 @@
65
65
  background-color: var(--color-light-graphic-quaternary);
66
66
  z-index: 1000;
67
67
  }
68
- .bottom-sheet__content_xuxkz {
68
+ .bottom-sheet__content_z5set {
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  flex: 1;
@@ -73,29 +73,29 @@
73
73
  color: var(--color-light-text-primary);
74
74
  background-color: var(--color-light-bg-primary);
75
75
  }
76
- .bottom-sheet__noHeader_xuxkz {
76
+ .bottom-sheet__noHeader_z5set {
77
77
  padding-top: var(--gap-xl);
78
78
  }
79
- .bottom-sheet__noFooter_xuxkz {
79
+ .bottom-sheet__noFooter_z5set {
80
80
  padding-bottom: var(--gap-m);
81
81
  }
82
- .bottom-sheet__scrollLocked_xuxkz {
82
+ .bottom-sheet__scrollLocked_z5set {
83
83
  overflow: hidden;
84
84
  }
85
- .bottom-sheet__appear_xuxkz .bottom-sheet__component_xuxkz, .bottom-sheet__enter_xuxkz .bottom-sheet__component_xuxkz {
85
+ .bottom-sheet__appear_z5set .bottom-sheet__component_z5set, .bottom-sheet__enter_z5set .bottom-sheet__component_z5set {
86
86
  transition: none;
87
87
  }
88
- .bottom-sheet__appearActive_xuxkz .bottom-sheet__component_xuxkz, .bottom-sheet__enterActive_xuxkz .bottom-sheet__component_xuxkz {
88
+ .bottom-sheet__appearActive_z5set .bottom-sheet__component_z5set, .bottom-sheet__enterActive_z5set .bottom-sheet__component_z5set {
89
89
  transition: var(--bottom-sheet-in-transition);
90
90
  transform: translateY(0);
91
91
  }
92
- .bottom-sheet__enterDone_xuxkz .bottom-sheet__component_xuxkz, .bottom-sheet__appearDone_xuxkz .bottom-sheet__component_xuxkz {
92
+ .bottom-sheet__enterDone_z5set .bottom-sheet__component_z5set, .bottom-sheet__appearDone_z5set .bottom-sheet__component_z5set {
93
93
  transform: translateY(0);
94
94
  }
95
- .bottom-sheet__exit_xuxkz .bottom-sheet__component_xuxkz {
95
+ .bottom-sheet__exit_z5set .bottom-sheet__component_z5set {
96
96
  transform: translateY(0);
97
97
  }
98
- .bottom-sheet__exitActive_xuxkz .bottom-sheet__component_xuxkz {
98
+ .bottom-sheet__exitActive_z5set .bottom-sheet__component_z5set {
99
99
  transition: var(--bottom-sheet-out-transition);
100
100
  transform: translateY(100%);
101
101
  }
package/esm/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./component-1f99b3a3";
@@ -1,16 +1,16 @@
1
- import './tslib.es6-5475692a.js';
1
+ import './tslib.es6-439cec54.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'react-div-100vh';
5
5
  import 'react-swipeable';
6
- import '@alfalab/core-components-base-modal/dist/esm';
7
- import '@alfalab/core-components-typography/dist/esm';
8
- import '@alfalab/core-components-icon-button/dist/esm';
6
+ import '@alfalab/core-components-base-modal/esm';
7
+ import '@alfalab/core-components-typography/esm';
8
+ import '@alfalab/core-components-icon-button/esm';
9
9
  import '@alfalab/icons-glyph/CrossMIcon';
10
10
  import './components/closer/Component.js';
11
11
  import '@alfalab/icons-glyph/ArrowBackMIcon';
12
12
  import './components/backer/Component.js';
13
- export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-454f3d35.js';
13
+ export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-1f99b3a3.js';
14
14
  import './components/footer/Component.js';
15
- import '@alfalab/core-components-backdrop/dist/esm';
15
+ import '@alfalab/core-components-backdrop/esm';
16
16
  import './components/swipeable-backdrop/Component.js';