@alfalab/core-components-bottom-sheet 4.4.2 → 4.5.2

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 +31 -0
  2. package/{dist/component-21be0323.d.ts → component-e5dc7971.d.ts} +4 -0
  3. package/{dist/component-21be0323.js → component-e5dc7971.js} +5 -5
  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-1a32e10b.d.ts → cssm/component-eb26b84c.d.ts} +4 -0
  21. package/{dist/cssm/component-1a32e10b.js → cssm/component-eb26b84c.js} +4 -4
  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 +0 -0
  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-2bd0a9bb.d.ts → esm/component-74f4ab96.d.ts} +4 -0
  44. package/{dist/esm/component-2bd0a9bb.js → esm/component-74f4ab96.js} +7 -7
  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 +16 -16
  62. package/esm/index.d.ts +1 -0
  63. package/{dist/esm → esm}/index.js +6 -6
  64. package/{dist/esm/tslib.es6-120afd1e.d.ts → esm/tslib.es6-d03e2565.d.ts} +0 -0
  65. package/{dist/esm/tslib.es6-120afd1e.js → esm/tslib.es6-d03e2565.js} +0 -0
  66. package/{dist/index.css → index.css} +16 -16
  67. package/index.d.ts +1 -0
  68. package/{dist/index.js → index.js} +2 -2
  69. package/{dist/modern/component-de166356.d.ts → modern/component-1e9e1e64.d.ts} +4 -0
  70. package/{dist/modern/component-de166356.js → modern/component-1e9e1e64.js} +6 -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 +16 -16
  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-6c67417e.d.ts → tslib.es6-b41d111d.d.ts} +0 -0
  93. package/{dist/tslib.es6-6c67417e.js → tslib.es6-b41d111d.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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.5.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.1...@alfalab/core-components-bottom-sheet@4.5.2) (2022-07-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.5.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.5.0...@alfalab/core-components-bottom-sheet@4.5.1) (2022-07-14)
18
+
19
+ **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
20
+
21
+
22
+
23
+
24
+
25
+ # [4.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.4.2...@alfalab/core-components-bottom-sheet@4.5.0) (2022-07-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **bottom-sheet:** add prop to set modal classname ([#133](https://github.com/core-ds/core-components/issues/133)) ([8305c0e](https://github.com/core-ds/core-components/commit/8305c0e50b4fe6ebc8bb1f532d33157c63514915))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [4.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-bottom-sheet@4.4.1...@alfalab/core-components-bottom-sheet@4.4.2) (2022-07-01)
7
37
 
8
38
  **Note:** Version bump only for package @alfalab/core-components-bottom-sheet
@@ -259,4 +289,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
259
289
 
260
290
  ### Features
261
291
 
292
+
262
293
  * **bottom-sheet:** new component (PDS-228) ([#645](https://github.com/core-ds/core-components/issues/645)) ([1f7391d](https://github.com/core-ds/core-components/commit/1f7391df16a270d8a3a28b8ebaf98d0ed0928bc8)), closes [#642](https://github.com/core-ds/core-components/issues/642) [#642](https://github.com/core-ds/core-components/issues/642) [#646](https://github.com/core-ds/core-components/issues/646) [#646](https://github.com/core-ds/core-components/issues/646) [#634](https://github.com/core-ds/core-components/issues/634) [#635](https://github.com/core-ds/core-components/issues/635) [#634](https://github.com/core-ds/core-components/issues/634) [#635](https://github.com/core-ds/core-components/issues/635) [#648](https://github.com/core-ds/core-components/issues/648) [#647](https://github.com/core-ds/core-components/issues/647) [#630](https://github.com/core-ds/core-components/issues/630) [#648](https://github.com/core-ds/core-components/issues/648) [#630](https://github.com/core-ds/core-components/issues/630) [#669](https://github.com/core-ds/core-components/issues/669)
@@ -117,6 +117,10 @@ type BottomSheetProps = {
117
117
  * Дополнительный класс для компонента стрелки назад
118
118
  */
119
119
  backerClassName?: string;
120
+ /**
121
+ * Дополнительный класс для компонента модального окна
122
+ */
123
+ modalClassName?: string;
120
124
  /**
121
125
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
122
126
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-6c67417e.js');
3
+ var tslib_es6 = require('./tslib.es6-b41d111d.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var reactDiv100vh = require('react-div-100vh');
@@ -17,7 +17,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
19
19
 
20
- var styles = {"headerWrapper":"bottom-sheet__headerWrapper_fyi7e","header":"bottom-sheet__header_fyi7e","sticky":"bottom-sheet__sticky_fyi7e","highlighted":"bottom-sheet__highlighted_fyi7e","justifyEnd":"bottom-sheet__justifyEnd_fyi7e","addon":"bottom-sheet__addon_fyi7e","addonFixed":"bottom-sheet__addonFixed_fyi7e","addonLeft":"bottom-sheet__addonLeft_fyi7e","addonRight":"bottom-sheet__addonRight_fyi7e","title":"bottom-sheet__title_fyi7e","titleCenter":"bottom-sheet__titleCenter_fyi7e","titleLeft":"bottom-sheet__titleLeft_fyi7e","trimTitle":"bottom-sheet__trimTitle_fyi7e","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_fyi7e","titleIndentRight":"bottom-sheet__titleIndentRight_fyi7e","titleIndentLeft":"bottom-sheet__titleIndentLeft_fyi7e"};
20
+ var styles = {"headerWrapper":"bottom-sheet__headerWrapper_59vve","header":"bottom-sheet__header_59vve","sticky":"bottom-sheet__sticky_59vve","highlighted":"bottom-sheet__highlighted_59vve","justifyEnd":"bottom-sheet__justifyEnd_59vve","addon":"bottom-sheet__addon_59vve","addonFixed":"bottom-sheet__addonFixed_59vve","addonLeft":"bottom-sheet__addonLeft_59vve","addonRight":"bottom-sheet__addonRight_59vve","title":"bottom-sheet__title_59vve","titleCenter":"bottom-sheet__titleCenter_59vve","titleLeft":"bottom-sheet__titleLeft_59vve","trimTitle":"bottom-sheet__trimTitle_59vve","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_59vve","titleIndentRight":"bottom-sheet__titleIndentRight_59vve","titleIndentLeft":"bottom-sheet__titleIndentLeft_59vve"};
21
21
  require('./components/header/index.css')
22
22
 
23
23
  var Header = function (_a) {
@@ -67,7 +67,7 @@ var Header = function (_a) {
67
67
  bottomAddons));
68
68
  };
69
69
 
70
- var styles$1 = {"modal":"bottom-sheet__modal_19129","component":"bottom-sheet__component_19129","withTransition":"bottom-sheet__withTransition_19129","withZeroTransition":"bottom-sheet__withZeroTransition_19129","scrollableContainer":"bottom-sheet__scrollableContainer_19129","marker":"bottom-sheet__marker_19129","content":"bottom-sheet__content_19129","noHeader":"bottom-sheet__noHeader_19129","noFooter":"bottom-sheet__noFooter_19129","scrollLocked":"bottom-sheet__scrollLocked_19129","appear":"bottom-sheet__appear_19129","enter":"bottom-sheet__enter_19129","appearActive":"bottom-sheet__appearActive_19129","enterActive":"bottom-sheet__enterActive_19129","enterDone":"bottom-sheet__enterDone_19129","appearDone":"bottom-sheet__appearDone_19129","exit":"bottom-sheet__exit_19129","exitActive":"bottom-sheet__exitActive_19129"};
70
+ var styles$1 = {"modal":"bottom-sheet__modal_s5s5k","component":"bottom-sheet__component_s5s5k","withTransition":"bottom-sheet__withTransition_s5s5k","withZeroTransition":"bottom-sheet__withZeroTransition_s5s5k","scrollableContainer":"bottom-sheet__scrollableContainer_s5s5k","marker":"bottom-sheet__marker_s5s5k","content":"bottom-sheet__content_s5s5k","noHeader":"bottom-sheet__noHeader_s5s5k","noFooter":"bottom-sheet__noFooter_s5s5k","scrollLocked":"bottom-sheet__scrollLocked_s5s5k","appear":"bottom-sheet__appear_s5s5k","enter":"bottom-sheet__enter_s5s5k","appearActive":"bottom-sheet__appearActive_s5s5k","enterActive":"bottom-sheet__enterActive_s5s5k","enterDone":"bottom-sheet__enterDone_s5s5k","appearDone":"bottom-sheet__appearDone_s5s5k","exit":"bottom-sheet__exit_s5s5k","exitActive":"bottom-sheet__exitActive_s5s5k"};
71
71
  require('./index.css')
72
72
 
73
73
  var TIMEOUT = 300;
@@ -80,7 +80,7 @@ var HEADER_OFFSET = 24;
80
80
  var CLOSE_OFFSET = 0.2;
81
81
  var BottomSheet = React.forwardRef(function (_a, ref) {
82
82
  var _b, _c, _d;
83
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
83
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, 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;
84
84
  var _l = React.useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
85
85
  var _m = React.useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
86
86
  var _o = React.useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -237,7 +237,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
237
237
  handlers: swipeable ? backdropSwipeablehandlers : false,
238
238
  opacityTimeout: TIMEOUT,
239
239
  invisible: initialHeight === 'full' ? false : hideOverlay,
240
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: styles$1.modal, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
240
+ }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles$1.modal, modalClassName), transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles$1 }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
241
241
  React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles$1.component, className, (_b = {},
242
242
  _b[transitionClassName] = !sheetOffset,
243
243
  _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-6c67417e.js');
5
+ require('./tslib.es6-b41d111d.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
14
  require('./components/closer/Component.js');
15
15
  require('@alfalab/icons-glyph/ArrowBackMIcon');
16
16
  require('./components/backer/Component.js');
17
- var components_header_Component = require('./component-21be0323.js');
17
+ var components_header_Component = require('./component-e5dc7971.js');
18
18
  require('./components/footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('./components/swipeable-backdrop/Component.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-6c67417e.js');
5
+ var tslib_es6 = require('../../tslib.es6-b41d111d.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
15
15
 
16
- var styles = {"backer":"bottom-sheet__backer_qotv9","button":"bottom-sheet__button_qotv9"};
16
+ var styles = {"backer":"bottom-sheet__backer_l509u","button":"bottom-sheet__button_l509u"};
17
17
  require('./index.css')
18
18
 
19
19
  var Backer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: 1tfgz */
1
+ /* hash: 4y4sc */
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_qotv9 {
6
+ .bottom-sheet__backer_l509u {
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_qotv9 {
16
+ .bottom-sheet__button_l509u {
17
17
  background: var(--bottom-sheet-backer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-6c67417e.js');
5
+ var tslib_es6 = require('../../tslib.es6-b41d111d.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
16
16
 
17
- var styles = {"closer":"bottom-sheet__closer_xv63n","button":"bottom-sheet__button_xv63n"};
17
+ var styles = {"closer":"bottom-sheet__closer_1d7qs","button":"bottom-sheet__button_1d7qs"};
18
18
  require('./index.css')
19
19
 
20
20
  var Closer = function (_a) {
@@ -1,9 +1,9 @@
1
- /* hash: n9ur4 */
1
+ /* hash: 19wfg */
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_xv63n {
6
+ .bottom-sheet__closer_1d7qs {
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_xv63n {
16
+ .bottom-sheet__button_1d7qs {
17
17
  background: var(--bottom-sheet-closer-bg-color);
18
18
  -webkit-backdrop-filter: blur(10px);
19
19
  backdrop-filter: blur(10px);
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_ppknk","sticky":"bottom-sheet__sticky_ppknk","highlighted":"bottom-sheet__highlighted_ppknk"};
14
+ var styles = {"footer":"bottom-sheet__footer_80ud5","sticky":"bottom-sheet__sticky_80ud5","highlighted":"bottom-sheet__highlighted_80ud5"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: tt6y0 */
1
+ /* hash: tfjtx */
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_ppknk {
21
+ .bottom-sheet__footer_80ud5 {
22
22
  padding: var(--gap-m) var(--gap-m);
23
23
  background-color: var(--color-light-bg-primary);
24
24
  }
25
- .bottom-sheet__sticky_ppknk {
25
+ .bottom-sheet__sticky_80ud5 {
26
26
  position: sticky;
27
27
  bottom: 0;
28
28
  }
29
- .bottom-sheet__highlighted_ppknk {
29
+ .bottom-sheet__highlighted_80ud5 {
30
30
  border-top: var(--bottom-sheet-footer-border-top);
31
31
  background-color: var(--bottom-sheet-footer-background-color);
32
32
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../tslib.es6-6c67417e.js');
5
+ require('../../tslib.es6-b41d111d.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('react-div-100vh');
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
14
14
  require('../closer/Component.js');
15
15
  require('@alfalab/icons-glyph/ArrowBackMIcon');
16
16
  require('../backer/Component.js');
17
- var components_header_Component = require('../../component-21be0323.js');
17
+ var components_header_Component = require('../../component-e5dc7971.js');
18
18
  require('../footer/Component.js');
19
19
  require('@alfalab/core-components-backdrop');
20
20
  require('../swipeable-backdrop/Component.js');
@@ -1,4 +1,4 @@
1
- /* hash: 3jrid */
1
+ /* hash: 1wuad */
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_fyi7e {
33
+ .bottom-sheet__headerWrapper_59vve {
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_fyi7e {
41
+ .bottom-sheet__header_59vve {
42
42
  display: flex;
43
43
  }
44
- .bottom-sheet__sticky_fyi7e {
44
+ .bottom-sheet__sticky_59vve {
45
45
  position: sticky;
46
46
  top: 0;
47
47
  }
48
- .bottom-sheet__highlighted_fyi7e {
48
+ .bottom-sheet__highlighted_59vve {
49
49
  border-bottom: var(--bottom-sheet-header-border-bottom);
50
50
  }
51
- .bottom-sheet__justifyEnd_fyi7e {
51
+ .bottom-sheet__justifyEnd_59vve {
52
52
  justify-content: flex-end;
53
53
  }
54
- .bottom-sheet__addon_fyi7e {
54
+ .bottom-sheet__addon_59vve {
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_fyi7e {
61
+ .bottom-sheet__addonFixed_59vve {
62
62
  position: fixed;
63
63
  }
64
- .bottom-sheet__addonLeft_fyi7e {
64
+ .bottom-sheet__addonLeft_59vve {
65
65
  left: 0;
66
66
  margin-left: var(--gap-xs);
67
67
  }
68
- .bottom-sheet__addonRight_fyi7e {
68
+ .bottom-sheet__addonRight_59vve {
69
69
  right: 0;
70
70
  margin-right: var(--gap-xs);
71
71
  }
72
- .bottom-sheet__title_fyi7e {
72
+ .bottom-sheet__title_59vve {
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_fyi7e {
81
+ .bottom-sheet__titleCenter_59vve {
82
82
  text-align: center;
83
83
  }
84
- .bottom-sheet__titleLeft_fyi7e {
84
+ .bottom-sheet__titleLeft_59vve {
85
85
  text-align: left;
86
86
  }
87
- .bottom-sheet__trimTitle_fyi7e {
87
+ .bottom-sheet__trimTitle_59vve {
88
88
  white-space: nowrap;
89
89
  overflow: hidden;
90
90
  text-overflow: ellipsis;
91
91
  }
92
- .bottom-sheet__titleBigIndentHorizontal_fyi7e {
92
+ .bottom-sheet__titleBigIndentHorizontal_59vve {
93
93
  margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
94
94
  }
95
- .bottom-sheet__titleIndentRight_fyi7e {
95
+ .bottom-sheet__titleIndentRight_59vve {
96
96
  margin-right: var(--gap-4xl);
97
97
  }
98
- .bottom-sheet__titleIndentLeft_fyi7e {
98
+ .bottom-sheet__titleIndentLeft_59vve {
99
99
  margin-left: var(--gap-4xl);
100
100
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../../tslib.es6-6c67417e.js');
5
+ var tslib_es6 = require('../../tslib.es6-b41d111d.js');
6
6
  var React = require('react');
7
7
  var coreComponentsBackdrop = require('@alfalab/core-components-backdrop');
8
8
 
@@ -117,6 +117,10 @@ type BottomSheetProps = {
117
117
  * Дополнительный класс для компонента стрелки назад
118
118
  */
119
119
  backerClassName?: string;
120
+ /**
121
+ * Дополнительный класс для компонента модального окна
122
+ */
123
+ modalClassName?: string;
120
124
  /**
121
125
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
122
126
  */
@@ -5,8 +5,8 @@ var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var reactDiv100vh = require('react-div-100vh');
7
7
  var reactSwipeable = require('react-swipeable');
8
- var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/dist/cssm');
9
- var coreComponentsTypography = require('@alfalab/core-components-typography/dist/cssm');
8
+ var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/cssm');
9
+ var coreComponentsTypography = require('@alfalab/core-components-typography/cssm');
10
10
  var components_closer_Component = require('./components/closer/Component.js');
11
11
  var components_backer_Component = require('./components/backer/Component.js');
12
12
  var styles = require('./components/header/index.module.css');
@@ -78,7 +78,7 @@ var HEADER_OFFSET = 24;
78
78
  var CLOSE_OFFSET = 0.2;
79
79
  var BottomSheet = React.forwardRef(function (_a, ref) {
80
80
  var _b, _c, _d;
81
- var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _e = _a.titleAlign, titleAlign = _e === void 0 ? 'left' : _e, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _f = _a.stickyFooter, stickyFooter = _f === void 0 ? true : _f, _g = _a.initialHeight, initialHeight = _g === void 0 ? 'default' : _g, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, children = _a.children, zIndex = _a.zIndex, _h = _a.transitionProps, transitionProps = _h === void 0 ? {} : _h, dataTestId = _a.dataTestId, _j = _a.swipeable, swipeable = _j === void 0 ? true : _j, _k = _a.ignoreScreenChange, ignoreScreenChange = _k === void 0 ? false : _k, onClose = _a.onClose, onBack = _a.onBack;
81
+ var open = _a.open, title = _a.title, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, 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;
82
82
  var _l = React.useState(0), sheetOffset = _l[0], setSheetOffset = _l[1];
83
83
  var _m = React.useState(1), backdropOpacity = _m[0], setBackdropOpacity = _m[1];
84
84
  var _o = React.useState(false), scrollLocked = _o[0], setScrollLocked = _o[1];
@@ -235,7 +235,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
235
235
  handlers: swipeable ? backdropSwipeablehandlers : false,
236
236
  opacityTimeout: TIMEOUT,
237
237
  invisible: initialHeight === 'full' ? false : hideOverlay,
238
- }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: styles__default$1['default'].modal, transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles__default$1['default'] }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
238
+ }, disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default['default'](styles__default$1['default'].modal, modalClassName), transitionProps: tslib_es6.__assign(tslib_es6.__assign({ appear: true, timeout: TIMEOUT, classNames: styles__default$1['default'] }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
239
239
  React__default['default'].createElement("div", tslib_es6.__assign({ className: cn__default['default'](styles__default$1['default'].component, className, (_b = {},
240
240
  _b[transitionClassName] = !sheetOffset,
241
241
  _b)), style: tslib_es6.__assign(tslib_es6.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
File without changes
@@ -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-1a32e10b.js');
20
+ var components_header_Component = require('./component-eb26b84c.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
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var tslib_es6 = require('../../tslib.es6-ce870b46.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
- var coreComponentsIconButton = require('@alfalab/core-components-icon-button/dist/cssm');
8
+ var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
9
9
  var ArrowBackMIcon = require('@alfalab/icons-glyph/ArrowBackMIcon');
10
10
  var styles = require('./index.module.css');
11
11
 
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var tslib_es6 = require('../../tslib.es6-ce870b46.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
- var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/dist/cssm');
9
- var coreComponentsIconButton = require('@alfalab/core-components-icon-button/dist/cssm');
8
+ var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/cssm');
9
+ var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
10
10
  var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
11
11
  var styles = require('./index.module.css');
12
12
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
- var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/dist/cssm');
7
+ var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/cssm');
8
8
  var styles = require('./index.module.css');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -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('../closer/index.module.css');
15
15
  require('../closer/Component.js');
@@ -17,10 +17,10 @@ require('@alfalab/icons-glyph/ArrowBackMIcon');
17
17
  require('../backer/index.module.css');
18
18
  require('../backer/Component.js');
19
19
  require('./index.module.css');
20
- var components_header_Component = require('../../component-1a32e10b.js');
20
+ var components_header_Component = require('../../component-eb26b84c.js');
21
21
  require('../footer/index.module.css');
22
22
  require('../footer/Component.js');
23
- require('@alfalab/core-components-backdrop/dist/cssm');
23
+ require('@alfalab/core-components-backdrop/cssm');
24
24
  require('../swipeable-backdrop/Component.js');
25
25
  require('../../index.module.css');
26
26
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../tslib.es6-ce870b46.js');
6
6
  var React = require('react');
7
- var coreComponentsBackdrop = require('@alfalab/core-components-backdrop/dist/cssm');
7
+ var coreComponentsBackdrop = require('@alfalab/core-components-backdrop/cssm');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -0,0 +1 @@
1
+ export * from "./component-eb26b84c";
@@ -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-1a32e10b.js');
20
+ var components_header_Component = require('./component-eb26b84c.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
 
File without changes
File without changes
File without changes
@@ -117,6 +117,10 @@ type BottomSheetProps = {
117
117
  * Дополнительный класс для компонента стрелки назад
118
118
  */
119
119
  backerClassName?: string;
120
+ /**
121
+ * Дополнительный класс для компонента модального окна
122
+ */
123
+ modalClassName?: string;
120
124
  /**
121
125
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
122
126
  */