@alfalab/core-components-input-autocomplete 7.4.4 → 7.4.9

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 (44) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/Component.js +1 -1
  3. package/Component.mobile.js +2 -2
  4. package/autocomplete-field/Component.js +2 -2
  5. package/autocomplete-field/index.css +2 -2
  6. package/autocomplete-field/index.js +1 -1
  7. package/autocomplete-mobile-field/Component.js +2 -2
  8. package/autocomplete-mobile-field/index.css +8 -8
  9. package/autocomplete-mobile-field/index.js +1 -1
  10. package/cssm/index-7ca84eff.d.ts +13 -0
  11. package/cssm/index-bdb4c6b9.d.ts +7 -1
  12. package/esm/Component.js +1 -1
  13. package/esm/Component.mobile.js +2 -2
  14. package/esm/autocomplete-field/Component.js +2 -2
  15. package/esm/autocomplete-field/index.css +2 -2
  16. package/esm/autocomplete-field/index.js +1 -1
  17. package/esm/autocomplete-mobile-field/Component.js +2 -2
  18. package/esm/autocomplete-mobile-field/index.css +8 -8
  19. package/esm/autocomplete-mobile-field/index.js +1 -1
  20. package/esm/index-7ca84eff.d.ts +13 -0
  21. package/esm/index-bdb4c6b9.d.ts +7 -1
  22. package/esm/index.js +1 -1
  23. package/esm/mobile.css +3 -3
  24. package/esm/mobile.js +1 -1
  25. package/esm/{tslib.es6-df2fe8c5.d.ts → tslib.es6-1e722f4f.d.ts} +0 -0
  26. package/esm/{tslib.es6-df2fe8c5.js → tslib.es6-1e722f4f.js} +0 -0
  27. package/index-7ca84eff.d.ts +13 -0
  28. package/index-bdb4c6b9.d.ts +7 -1
  29. package/index.js +1 -1
  30. package/mobile.css +3 -3
  31. package/mobile.js +1 -1
  32. package/modern/Component.d.ts +3 -3
  33. package/modern/Component.mobile.d.ts +1 -1
  34. package/modern/Component.mobile.js +1 -1
  35. package/modern/autocomplete-field/Component.js +1 -1
  36. package/modern/autocomplete-field/index.css +2 -2
  37. package/modern/autocomplete-mobile-field/Component.js +1 -1
  38. package/modern/autocomplete-mobile-field/index.css +8 -8
  39. package/modern/index-7ca84eff.d.ts +13 -0
  40. package/modern/index-bdb4c6b9.d.ts +7 -1
  41. package/modern/mobile.css +3 -3
  42. package/package.json +6 -6
  43. /package/{tslib.es6-2c304994.d.ts → tslib.es6-ed57512c.d.ts} +0 -0
  44. /package/{tslib.es6-2c304994.js → tslib.es6-ed57512c.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
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
+ ## [7.4.9](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.8...@alfalab/core-components-input-autocomplete@7.4.9) (2022-07-25)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
9
+
10
+
11
+
12
+
13
+
14
+ ## [7.4.8](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.7...@alfalab/core-components-input-autocomplete@7.4.8) (2022-07-25)
15
+
16
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
17
+
18
+
19
+
20
+
21
+
22
+ ## [7.4.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.6...@alfalab/core-components-input-autocomplete@7.4.7) (2022-07-18)
23
+
24
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
25
+
26
+
27
+
28
+
29
+
30
+ ## [7.4.6](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.5...@alfalab/core-components-input-autocomplete@7.4.6) (2022-07-18)
31
+
32
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
33
+
34
+
35
+
36
+
37
+
38
+ ## [7.4.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.4...@alfalab/core-components-input-autocomplete@7.4.5) (2022-07-15)
39
+
40
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
41
+
42
+
43
+
44
+
45
+
6
46
  ## [7.4.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.3...@alfalab/core-components-input-autocomplete@7.4.4) (2022-07-15)
7
47
 
8
48
 
package/Component.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-2c304994.js');
5
+ var tslib_es6 = require('./tslib.es6-ed57512c.js');
6
6
  require('classnames');
7
7
  var React = require('react');
8
8
  require('react-merge-refs');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-2c304994.js');
5
+ var tslib_es6 = require('./tslib.es6-ed57512c.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var mergeRefs = require('react-merge-refs');
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
21
21
  var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
22
22
  var throttle__default = /*#__PURE__*/_interopDefaultLegacy(throttle);
23
23
 
24
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_9lcwe","footer":"input-autocomplete__footer_9lcwe"};
24
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_d41in","footer":"input-autocomplete__footer_d41in"};
25
25
  require('./mobile.css')
26
26
 
27
27
  var SELECTED = [];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-2c304994.js');
5
+ var tslib_es6 = require('../tslib.es6-ed57512c.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var mergeRefs = require('react-merge-refs');
@@ -14,7 +14,7 @@ var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
16
16
 
17
- var styles = {"arrow":"input-autocomplete__arrow_fat15","error":"input-autocomplete__error_fat15"};
17
+ var styles = {"arrow":"input-autocomplete__arrow_ithne","error":"input-autocomplete__error_ithne"};
18
18
  require('./index.css')
19
19
 
20
20
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1pc7a */
2
- .input-autocomplete__arrow_fat15.input-autocomplete__error_fat15 ~ * {
1
+ /* hash: 15r03 */
2
+ .input-autocomplete__arrow_ithne.input-autocomplete__error_ithne ~ * {
3
3
  display: none;
4
4
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-2c304994.js');
5
+ require('../tslib.es6-ed57512c.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-2c304994.js');
5
+ var tslib_es6 = require('../tslib.es6-ed57512c.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var hooks = require('@alfalab/hooks');
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
 
16
- var styles = {"component":"input-autocomplete__component_zz23p","field":"input-autocomplete__field_zz23p","disabled":"input-autocomplete__disabled_zz23p","placeholder":"input-autocomplete__placeholder_zz23p","contentWrapper":"input-autocomplete__contentWrapper_zz23p","value":"input-autocomplete__value_zz23p","focusVisible":"input-autocomplete__focusVisible_zz23p"};
16
+ var styles = {"component":"input-autocomplete__component_1cdjw","field":"input-autocomplete__field_1cdjw","disabled":"input-autocomplete__disabled_1cdjw","placeholder":"input-autocomplete__placeholder_1cdjw","contentWrapper":"input-autocomplete__contentWrapper_1cdjw","value":"input-autocomplete__value_1cdjw","focusVisible":"input-autocomplete__focusVisible_1cdjw"};
17
17
  require('./index.css')
18
18
 
19
19
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 9k141 */
1
+ /* hash: t58bw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_zz23p {
18
+ .input-autocomplete__component_1cdjw {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_zz23p:not(.input-autocomplete__disabled_zz23p) {
22
+ .input-autocomplete__field_1cdjw:not(.input-autocomplete__disabled_1cdjw) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_zz23p {
25
+ .input-autocomplete__disabled_1cdjw {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_zz23p {
28
+ .input-autocomplete__placeholder_1cdjw {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_zz23p {
31
+ .input-autocomplete__contentWrapper_1cdjw {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_zz23p {
41
+ .input-autocomplete__value_1cdjw {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_zz23p {
46
+ .input-autocomplete__focusVisible_1cdjw {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-2c304994.js');
5
+ require('../tslib.es6-ed57512c.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('@alfalab/hooks');
@@ -3,6 +3,7 @@
3
3
  import React from "react";
4
4
  import { HTMLAttributes, ReactNode, FC } from "react";
5
5
  import { TransitionProps } from "react-transition-group/Transition";
6
+ import { BaseModalProps } from "./index-bdb4c6b9";
6
7
  import { BackdropProps } from "./index-ebda875c";
7
8
  import { SwipeableHandlers } from "react-swipeable/types";
8
9
  type BottomSheetTitleAlign = "center" | "left";
@@ -63,6 +64,10 @@ type BottomSheetProps = {
63
64
  * Дополнительный класс для компонента модального окна
64
65
  */
65
66
  modalClassName?: string;
67
+ /**
68
+ * Дополнительный класс для обертки модального окна
69
+ */
70
+ modalWrapperClassName?: string;
66
71
  /**
67
72
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
68
73
  */
@@ -132,10 +137,18 @@ type BottomSheetProps = {
132
137
  * Запретить закрытие шторки кликом на оверлэй
133
138
  */
134
139
  disableOverlayClick?: boolean;
140
+ /**
141
+ * Отключает блокировку скролла при открытии модального окна
142
+ */
143
+ disableBlockingScroll?: boolean;
135
144
  /**
136
145
  * Не анимировать шторку при изменении размера вьюпорта
137
146
  */
138
147
  ignoreScreenChange?: boolean;
148
+ /**
149
+ * Свойства для Бэкдропа
150
+ */
151
+ backdropProps?: BaseModalProps["backdropProps"];
139
152
  /**
140
153
  * Обработчик закрытия
141
154
  */
@@ -57,6 +57,11 @@ type BaseModalProps = {
57
57
  * @default false
58
58
  */
59
59
  disableBackdropClick?: boolean;
60
+ /**
61
+ * Отключает блокировку скролла при открытии модального окна
62
+ * @default false
63
+ */
64
+ disableBlockingScroll?: boolean;
60
65
  /**
61
66
  * Содержимое модалки всегда в DOM
62
67
  * @default false
@@ -139,6 +144,7 @@ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.
139
144
  declare function isScrolledToTop(target: HTMLElement): boolean;
140
145
  declare function isScrolledToBottom(target: HTMLElement): boolean;
141
146
  declare function hasScrollbar(target: HTMLElement): boolean;
147
+ declare const getScrollbarSize: () => number;
142
148
  declare const restoreContainerStyles: (container: HTMLElement) => void;
143
149
  declare const handleContainer: (container?: HTMLElement | undefined) => void;
144
150
  /**
@@ -190,4 +196,4 @@ declare class GlobalStore {
190
196
  constructor();
191
197
  getModalStore: () => ModalStore;
192
198
  }
193
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
199
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
package/esm/Component.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-df2fe8c5.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-1e722f4f.js';
2
2
  import 'classnames';
3
3
  import React, { forwardRef } from 'react';
4
4
  import 'react-merge-refs';
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-df2fe8c5.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-1e722f4f.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useState, useRef, useMemo } from 'react';
4
4
  import mergeRefs from 'react-merge-refs';
@@ -10,7 +10,7 @@ import '@alfalab/hooks';
10
10
  import '@alfalab/core-components-form-control/esm';
11
11
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
12
12
 
13
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_9lcwe","footer":"input-autocomplete__footer_9lcwe"};
13
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_d41in","footer":"input-autocomplete__footer_d41in"};
14
14
  require('./mobile.css')
15
15
 
16
16
  var SELECTED = [];
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../tslib.es6-df2fe8c5.js';
1
+ import { a as __assign } from '../tslib.es6-1e722f4f.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useRef, useCallback } from 'react';
4
4
  import mergeRefs from 'react-merge-refs';
5
5
  import { Input } from '@alfalab/core-components-input/esm';
6
6
 
7
- var styles = {"arrow":"input-autocomplete__arrow_fat15","error":"input-autocomplete__error_fat15"};
7
+ var styles = {"arrow":"input-autocomplete__arrow_ithne","error":"input-autocomplete__error_ithne"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1pc7a */
2
- .input-autocomplete__arrow_fat15.input-autocomplete__error_fat15 ~ * {
1
+ /* hash: 15r03 */
2
+ .input-autocomplete__arrow_ithne.input-autocomplete__error_ithne ~ * {
3
3
  display: none;
4
4
  }
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-df2fe8c5.js';
1
+ import '../tslib.es6-1e722f4f.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
@@ -1,10 +1,10 @@
1
- import { _ as __rest, a as __assign } from '../tslib.es6-df2fe8c5.js';
1
+ import { _ as __rest, a as __assign } from '../tslib.es6-1e722f4f.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useState, useRef } from 'react';
4
4
  import { useFocus } from '@alfalab/hooks';
5
5
  import { FormControl } from '@alfalab/core-components-form-control/esm';
6
6
 
7
- var styles = {"component":"input-autocomplete__component_zz23p","field":"input-autocomplete__field_zz23p","disabled":"input-autocomplete__disabled_zz23p","placeholder":"input-autocomplete__placeholder_zz23p","contentWrapper":"input-autocomplete__contentWrapper_zz23p","value":"input-autocomplete__value_zz23p","focusVisible":"input-autocomplete__focusVisible_zz23p"};
7
+ var styles = {"component":"input-autocomplete__component_1cdjw","field":"input-autocomplete__field_1cdjw","disabled":"input-autocomplete__disabled_1cdjw","placeholder":"input-autocomplete__placeholder_1cdjw","contentWrapper":"input-autocomplete__contentWrapper_1cdjw","value":"input-autocomplete__value_1cdjw","focusVisible":"input-autocomplete__focusVisible_1cdjw"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 9k141 */
1
+ /* hash: t58bw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_zz23p {
18
+ .input-autocomplete__component_1cdjw {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_zz23p:not(.input-autocomplete__disabled_zz23p) {
22
+ .input-autocomplete__field_1cdjw:not(.input-autocomplete__disabled_1cdjw) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_zz23p {
25
+ .input-autocomplete__disabled_1cdjw {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_zz23p {
28
+ .input-autocomplete__placeholder_1cdjw {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_zz23p {
31
+ .input-autocomplete__contentWrapper_1cdjw {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_zz23p {
41
+ .input-autocomplete__value_1cdjw {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_zz23p {
46
+ .input-autocomplete__focusVisible_1cdjw {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-df2fe8c5.js';
1
+ import '../tslib.es6-1e722f4f.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import '@alfalab/hooks';
@@ -3,6 +3,7 @@
3
3
  import React from "react";
4
4
  import { HTMLAttributes, ReactNode, FC } from "react";
5
5
  import { TransitionProps } from "react-transition-group/Transition";
6
+ import { BaseModalProps } from "./index-bdb4c6b9";
6
7
  import { BackdropProps } from "./index-ebda875c";
7
8
  import { SwipeableHandlers } from "react-swipeable/types";
8
9
  type BottomSheetTitleAlign = "center" | "left";
@@ -63,6 +64,10 @@ type BottomSheetProps = {
63
64
  * Дополнительный класс для компонента модального окна
64
65
  */
65
66
  modalClassName?: string;
67
+ /**
68
+ * Дополнительный класс для обертки модального окна
69
+ */
70
+ modalWrapperClassName?: string;
66
71
  /**
67
72
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
68
73
  */
@@ -132,10 +137,18 @@ type BottomSheetProps = {
132
137
  * Запретить закрытие шторки кликом на оверлэй
133
138
  */
134
139
  disableOverlayClick?: boolean;
140
+ /**
141
+ * Отключает блокировку скролла при открытии модального окна
142
+ */
143
+ disableBlockingScroll?: boolean;
135
144
  /**
136
145
  * Не анимировать шторку при изменении размера вьюпорта
137
146
  */
138
147
  ignoreScreenChange?: boolean;
148
+ /**
149
+ * Свойства для Бэкдропа
150
+ */
151
+ backdropProps?: BaseModalProps["backdropProps"];
139
152
  /**
140
153
  * Обработчик закрытия
141
154
  */
@@ -57,6 +57,11 @@ type BaseModalProps = {
57
57
  * @default false
58
58
  */
59
59
  disableBackdropClick?: boolean;
60
+ /**
61
+ * Отключает блокировку скролла при открытии модального окна
62
+ * @default false
63
+ */
64
+ disableBlockingScroll?: boolean;
60
65
  /**
61
66
  * Содержимое модалки всегда в DOM
62
67
  * @default false
@@ -139,6 +144,7 @@ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.
139
144
  declare function isScrolledToTop(target: HTMLElement): boolean;
140
145
  declare function isScrolledToBottom(target: HTMLElement): boolean;
141
146
  declare function hasScrollbar(target: HTMLElement): boolean;
147
+ declare const getScrollbarSize: () => number;
142
148
  declare const restoreContainerStyles: (container: HTMLElement) => void;
143
149
  declare const handleContainer: (container?: HTMLElement | undefined) => void;
144
150
  /**
@@ -190,4 +196,4 @@ declare class GlobalStore {
190
196
  constructor();
191
197
  getModalStore: () => ModalStore;
192
198
  }
193
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
199
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-df2fe8c5.js';
1
+ import './tslib.es6-1e722f4f.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1o9p4 */
1
+ /* hash: 5q1bh */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_9lcwe {
13
+ .input-autocomplete__bottomSheetInput_d41in {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_9lcwe {
17
+ .input-autocomplete__footer_d41in {
18
18
  display: flex
19
19
  }
package/esm/mobile.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-df2fe8c5.js';
1
+ import './tslib.es6-1e722f4f.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
@@ -3,6 +3,7 @@
3
3
  import React from "react";
4
4
  import { HTMLAttributes, ReactNode, FC } from "react";
5
5
  import { TransitionProps } from "react-transition-group/Transition";
6
+ import { BaseModalProps } from "./index-bdb4c6b9";
6
7
  import { BackdropProps } from "./index-ebda875c";
7
8
  import { SwipeableHandlers } from "react-swipeable/types";
8
9
  type BottomSheetTitleAlign = "center" | "left";
@@ -63,6 +64,10 @@ type BottomSheetProps = {
63
64
  * Дополнительный класс для компонента модального окна
64
65
  */
65
66
  modalClassName?: string;
67
+ /**
68
+ * Дополнительный класс для обертки модального окна
69
+ */
70
+ modalWrapperClassName?: string;
66
71
  /**
67
72
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
68
73
  */
@@ -132,10 +137,18 @@ type BottomSheetProps = {
132
137
  * Запретить закрытие шторки кликом на оверлэй
133
138
  */
134
139
  disableOverlayClick?: boolean;
140
+ /**
141
+ * Отключает блокировку скролла при открытии модального окна
142
+ */
143
+ disableBlockingScroll?: boolean;
135
144
  /**
136
145
  * Не анимировать шторку при изменении размера вьюпорта
137
146
  */
138
147
  ignoreScreenChange?: boolean;
148
+ /**
149
+ * Свойства для Бэкдропа
150
+ */
151
+ backdropProps?: BaseModalProps["backdropProps"];
139
152
  /**
140
153
  * Обработчик закрытия
141
154
  */
@@ -57,6 +57,11 @@ type BaseModalProps = {
57
57
  * @default false
58
58
  */
59
59
  disableBackdropClick?: boolean;
60
+ /**
61
+ * Отключает блокировку скролла при открытии модального окна
62
+ * @default false
63
+ */
64
+ disableBlockingScroll?: boolean;
60
65
  /**
61
66
  * Содержимое модалки всегда в DOM
62
67
  * @default false
@@ -139,6 +144,7 @@ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.
139
144
  declare function isScrolledToTop(target: HTMLElement): boolean;
140
145
  declare function isScrolledToBottom(target: HTMLElement): boolean;
141
146
  declare function hasScrollbar(target: HTMLElement): boolean;
147
+ declare const getScrollbarSize: () => number;
142
148
  declare const restoreContainerStyles: (container: HTMLElement) => void;
143
149
  declare const handleContainer: (container?: HTMLElement | undefined) => void;
144
150
  /**
@@ -190,4 +196,4 @@ declare class GlobalStore {
190
196
  constructor();
191
197
  getModalStore: () => ModalStore;
192
198
  }
193
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
199
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-2c304994.js');
5
+ require('./tslib.es6-ed57512c.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1o9p4 */
1
+ /* hash: 5q1bh */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_9lcwe {
13
+ .input-autocomplete__bottomSheetInput_d41in {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_9lcwe {
17
+ .input-autocomplete__footer_d41in {
18
18
  display: flex
19
19
  }
package/mobile.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-2c304994.js');
5
+ require('./tslib.es6-ed57512c.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
@@ -33,11 +33,11 @@ type InputAutocompleteProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> &
33
33
  */
34
34
  updatePopover?: BaseSelectProps['updatePopover'];
35
35
  };
36
- declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "disabled" | "name" | "fieldClassName" | "error" | "hint" | "multiple" | "preventFlip" | "popperClassName" | "open" | "options" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
36
+ declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "multiple" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
37
37
  /**
38
38
  * Компонент ввода значения
39
39
  */
40
- Input?: React.FC<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width"> & {
40
+ Input?: React.FC<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "disabled" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "height" | "name" | "width" | "multiple" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
41
41
  value?: string | undefined;
42
42
  defaultValue?: string | undefined;
43
43
  block?: boolean | undefined;
@@ -72,7 +72,7 @@ declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelect
72
72
  /**
73
73
  * Пропсы, которые будут прокинуты в инпут
74
74
  */
75
- inputProps?: (Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width"> & {
75
+ inputProps?: (Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "disabled" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "height" | "name" | "width" | "multiple" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
76
76
  value?: string | undefined;
77
77
  defaultValue?: string | undefined;
78
78
  block?: boolean | undefined;
@@ -46,7 +46,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
46
46
  */
47
47
  cancelButtonProps?: ButtonProps;
48
48
  };
49
- declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "disabled" | "name" | "fieldClassName" | "error" | "hint" | "preventFlip" | "popperClassName" | "open" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
49
+ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
50
50
  /**
51
51
  * Обработчик выбора
52
52
  */
@@ -9,7 +9,7 @@ import '@alfalab/hooks';
9
9
  import '@alfalab/core-components-form-control/modern';
10
10
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
11
11
 
12
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_9lcwe","footer":"input-autocomplete__footer_9lcwe"};
12
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_d41in","footer":"input-autocomplete__footer_d41in"};
13
13
  require('./mobile.css')
14
14
 
15
15
  const SELECTED = [];
@@ -3,7 +3,7 @@ import React, { useRef, useCallback } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import { Input } from '@alfalab/core-components-input/modern';
5
5
 
6
- var styles = {"arrow":"input-autocomplete__arrow_fat15","error":"input-autocomplete__error_fat15"};
6
+ var styles = {"arrow":"input-autocomplete__arrow_ithne","error":"input-autocomplete__error_ithne"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteField = ({ label, placeholder, size, Arrow, Input: Input$1 = Input, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1pc7a */
2
- .input-autocomplete__arrow_fat15.input-autocomplete__error_fat15 ~ * {
1
+ /* hash: 15r03 */
2
+ .input-autocomplete__arrow_ithne.input-autocomplete__error_ithne ~ * {
3
3
  display: none;
4
4
  }
@@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
3
3
  import { useFocus } from '@alfalab/hooks';
4
4
  import { FormControl } from '@alfalab/core-components-form-control/modern';
5
5
 
6
- var styles = {"component":"input-autocomplete__component_zz23p","field":"input-autocomplete__field_zz23p","disabled":"input-autocomplete__disabled_zz23p","placeholder":"input-autocomplete__placeholder_zz23p","contentWrapper":"input-autocomplete__contentWrapper_zz23p","value":"input-autocomplete__value_zz23p","focusVisible":"input-autocomplete__focusVisible_zz23p"};
6
+ var styles = {"component":"input-autocomplete__component_1cdjw","field":"input-autocomplete__field_1cdjw","disabled":"input-autocomplete__disabled_1cdjw","placeholder":"input-autocomplete__placeholder_1cdjw","contentWrapper":"input-autocomplete__contentWrapper_1cdjw","value":"input-autocomplete__value_1cdjw","focusVisible":"input-autocomplete__focusVisible_1cdjw"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteMobileField = ({ size = 'm', open, error, hint, disabled, label, placeholder, value, innerProps, dataTestId, fieldClassName, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 9k141 */
1
+ /* hash: t58bw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_zz23p {
18
+ .input-autocomplete__component_1cdjw {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_zz23p:not(.input-autocomplete__disabled_zz23p) {
22
+ .input-autocomplete__field_1cdjw:not(.input-autocomplete__disabled_1cdjw) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_zz23p {
25
+ .input-autocomplete__disabled_1cdjw {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_zz23p {
28
+ .input-autocomplete__placeholder_1cdjw {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_zz23p {
31
+ .input-autocomplete__contentWrapper_1cdjw {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_zz23p {
41
+ .input-autocomplete__value_1cdjw {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_zz23p {
46
+ .input-autocomplete__focusVisible_1cdjw {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -3,6 +3,7 @@
3
3
  import React from "react";
4
4
  import { HTMLAttributes, ReactNode, FC } from "react";
5
5
  import { TransitionProps } from "react-transition-group/Transition";
6
+ import { BaseModalProps } from "./index-bdb4c6b9";
6
7
  import { BackdropProps } from "./index-ebda875c";
7
8
  import { SwipeableHandlers } from "react-swipeable/types";
8
9
  type BottomSheetTitleAlign = "center" | "left";
@@ -63,6 +64,10 @@ type BottomSheetProps = {
63
64
  * Дополнительный класс для компонента модального окна
64
65
  */
65
66
  modalClassName?: string;
67
+ /**
68
+ * Дополнительный класс для обертки модального окна
69
+ */
70
+ modalWrapperClassName?: string;
66
71
  /**
67
72
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
68
73
  */
@@ -132,10 +137,18 @@ type BottomSheetProps = {
132
137
  * Запретить закрытие шторки кликом на оверлэй
133
138
  */
134
139
  disableOverlayClick?: boolean;
140
+ /**
141
+ * Отключает блокировку скролла при открытии модального окна
142
+ */
143
+ disableBlockingScroll?: boolean;
135
144
  /**
136
145
  * Не анимировать шторку при изменении размера вьюпорта
137
146
  */
138
147
  ignoreScreenChange?: boolean;
148
+ /**
149
+ * Свойства для Бэкдропа
150
+ */
151
+ backdropProps?: BaseModalProps["backdropProps"];
139
152
  /**
140
153
  * Обработчик закрытия
141
154
  */
@@ -57,6 +57,11 @@ type BaseModalProps = {
57
57
  * @default false
58
58
  */
59
59
  disableBackdropClick?: boolean;
60
+ /**
61
+ * Отключает блокировку скролла при открытии модального окна
62
+ * @default false
63
+ */
64
+ disableBlockingScroll?: boolean;
60
65
  /**
61
66
  * Содержимое модалки всегда в DOM
62
67
  * @default false
@@ -139,6 +144,7 @@ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.
139
144
  declare function isScrolledToTop(target: HTMLElement): boolean;
140
145
  declare function isScrolledToBottom(target: HTMLElement): boolean;
141
146
  declare function hasScrollbar(target: HTMLElement): boolean;
147
+ declare const getScrollbarSize: () => number;
142
148
  declare const restoreContainerStyles: (container: HTMLElement) => void;
143
149
  declare const handleContainer: (container?: HTMLElement | undefined) => void;
144
150
  /**
@@ -190,4 +196,4 @@ declare class GlobalStore {
190
196
  constructor();
191
197
  getModalStore: () => ModalStore;
192
198
  }
193
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
199
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1o9p4 */
1
+ /* hash: 5q1bh */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_9lcwe {
13
+ .input-autocomplete__bottomSheetInput_d41in {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_9lcwe {
17
+ .input-autocomplete__footer_d41in {
18
18
  display: flex
19
19
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-input-autocomplete",
3
- "version": "7.4.4",
3
+ "version": "7.4.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "module": "./esm/index.js",
9
9
  "scripts": {
10
- "postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
10
+ "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
11
11
  },
12
12
  "publishConfig": {
13
13
  "access": "public",
@@ -17,10 +17,10 @@
17
17
  "react": "^16.9.0 || ^17.0.1"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-button": "^5.2.2",
21
- "@alfalab/core-components-form-control": "^7.5.2",
22
- "@alfalab/core-components-input": "^8.2.2",
23
- "@alfalab/core-components-select": "^10.12.4",
20
+ "@alfalab/core-components-button": "^5.2.3",
21
+ "@alfalab/core-components-form-control": "^7.5.3",
22
+ "@alfalab/core-components-input": "^9.0.0",
23
+ "@alfalab/core-components-select": "^11.0.0",
24
24
  "@alfalab/hooks": "^1.4.1",
25
25
  "classnames": "^2.2.6",
26
26
  "lodash.throttle": "^4.1.1",