@alfalab/core-components-input-autocomplete 7.4.2 → 7.4.7

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 (105) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/Component-7ca84eff.d.ts → Component-7ca84eff.d.ts} +0 -0
  3. package/{dist/cssm/Component.d.ts → Component.d.ts} +0 -0
  4. package/{dist/Component.js → Component.js} +1 -1
  5. package/{dist/cssm/Component.mobile.d.ts → Component.mobile.d.ts} +0 -0
  6. package/{dist/Component.mobile.js → Component.mobile.js} +2 -2
  7. package/{dist/autocomplete-field → autocomplete-field}/Component.d.ts +0 -0
  8. package/{dist/autocomplete-field → autocomplete-field}/Component.js +2 -2
  9. package/autocomplete-field/index.css +4 -0
  10. package/{dist/autocomplete-field → autocomplete-field}/index.d.ts +0 -0
  11. package/{dist/autocomplete-field → autocomplete-field}/index.js +1 -1
  12. package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.d.ts +0 -0
  13. package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.js +2 -2
  14. package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.css +8 -8
  15. package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.d.ts +0 -0
  16. package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.js +1 -1
  17. package/{dist/cssm → cssm}/Component-7ca84eff.d.ts +0 -0
  18. package/{dist → cssm}/Component.d.ts +0 -0
  19. package/{dist/cssm → cssm}/Component.js +2 -2
  20. package/{dist → cssm}/Component.mobile.d.ts +0 -0
  21. package/{dist/cssm → cssm}/Component.mobile.js +4 -4
  22. package/{dist/cssm → cssm}/autocomplete-field/Component.d.ts +0 -0
  23. package/{dist/cssm → cssm}/autocomplete-field/Component.js +1 -1
  24. package/{dist/cssm → cssm}/autocomplete-field/index.d.ts +0 -0
  25. package/{dist/cssm → cssm}/autocomplete-field/index.js +1 -1
  26. package/{dist/cssm → cssm}/autocomplete-field/index.module.css +0 -0
  27. package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.d.ts +0 -0
  28. package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.js +1 -1
  29. package/{dist/cssm → cssm}/autocomplete-mobile-field/index.d.ts +0 -0
  30. package/{dist/cssm → cssm}/autocomplete-mobile-field/index.js +1 -1
  31. package/{dist/cssm → cssm}/autocomplete-mobile-field/index.module.css +0 -0
  32. package/{dist/esm → cssm}/index-7ca84eff.d.ts +13 -0
  33. package/{dist → cssm}/index-bdb4c6b9.d.ts +7 -1
  34. package/{dist/cssm → cssm}/index-ebda875c.d.ts +0 -0
  35. package/{dist/cssm → cssm}/index.d.ts +0 -0
  36. package/{dist/cssm → cssm}/index.js +2 -2
  37. package/{dist/cssm → cssm}/mobile.d.ts +0 -0
  38. package/{dist/cssm → cssm}/mobile.js +4 -4
  39. package/{dist/cssm → cssm}/mobile.module.css +0 -0
  40. package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
  41. package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
  42. package/{dist/esm → esm}/Component-7ca84eff.d.ts +0 -0
  43. package/{dist/esm → esm}/Component.d.ts +0 -0
  44. package/{dist/esm → esm}/Component.js +3 -3
  45. package/{dist/esm → esm}/Component.mobile.d.ts +0 -0
  46. package/{dist/esm → esm}/Component.mobile.js +6 -6
  47. package/{dist/esm → esm}/autocomplete-field/Component.d.ts +0 -0
  48. package/{dist/esm → esm}/autocomplete-field/Component.js +3 -3
  49. package/esm/autocomplete-field/index.css +4 -0
  50. package/{dist/esm → esm}/autocomplete-field/index.d.ts +0 -0
  51. package/{dist/esm → esm}/autocomplete-field/index.js +2 -2
  52. package/{dist/esm → esm}/autocomplete-mobile-field/Component.d.ts +0 -0
  53. package/{dist/esm → esm}/autocomplete-mobile-field/Component.js +3 -3
  54. package/{dist/esm → esm}/autocomplete-mobile-field/index.css +8 -8
  55. package/{dist/esm → esm}/autocomplete-mobile-field/index.d.ts +0 -0
  56. package/{dist/esm → esm}/autocomplete-mobile-field/index.js +2 -2
  57. package/{dist/cssm → esm}/index-7ca84eff.d.ts +13 -0
  58. package/{dist/modern → esm}/index-bdb4c6b9.d.ts +7 -1
  59. package/{dist/esm → esm}/index-ebda875c.d.ts +0 -0
  60. package/{dist/esm → esm}/index.d.ts +0 -0
  61. package/{dist/esm → esm}/index.js +3 -3
  62. package/{dist/modern → esm}/mobile.css +3 -3
  63. package/{dist/esm → esm}/mobile.d.ts +0 -0
  64. package/esm/mobile.js +12 -0
  65. package/{dist/esm/tslib.es6-e29e91fb.d.ts → esm/tslib.es6-f3174141.d.ts} +0 -0
  66. package/{dist/esm/tslib.es6-e29e91fb.js → esm/tslib.es6-f3174141.js} +0 -0
  67. package/{dist/index-7ca84eff.d.ts → index-7ca84eff.d.ts} +13 -0
  68. package/{dist/esm/index-bdb4c6b9.d.ts → index-bdb4c6b9.d.ts} +7 -1
  69. package/{dist/index-ebda875c.d.ts → index-ebda875c.d.ts} +0 -0
  70. package/{dist/index.d.ts → index.d.ts} +0 -0
  71. package/{dist/index.js → index.js} +1 -1
  72. package/{dist/mobile.css → mobile.css} +3 -3
  73. package/{dist/mobile.d.ts → mobile.d.ts} +0 -0
  74. package/{dist/mobile.js → mobile.js} +1 -1
  75. package/{dist/modern → modern}/Component-7ca84eff.d.ts +0 -0
  76. package/{dist/modern → modern}/Component.d.ts +0 -0
  77. package/{dist/modern → modern}/Component.js +2 -2
  78. package/{dist/modern → modern}/Component.mobile.d.ts +0 -0
  79. package/{dist/modern → modern}/Component.mobile.js +5 -5
  80. package/{dist/modern → modern}/autocomplete-field/Component.d.ts +0 -0
  81. package/{dist/modern → modern}/autocomplete-field/Component.js +2 -2
  82. package/modern/autocomplete-field/index.css +4 -0
  83. package/{dist/modern → modern}/autocomplete-field/index.d.ts +0 -0
  84. package/{dist/modern → modern}/autocomplete-field/index.js +1 -1
  85. package/{dist/modern → modern}/autocomplete-mobile-field/Component.d.ts +0 -0
  86. package/{dist/modern → modern}/autocomplete-mobile-field/Component.js +2 -2
  87. package/{dist/modern → modern}/autocomplete-mobile-field/index.css +8 -8
  88. package/{dist/modern → modern}/autocomplete-mobile-field/index.d.ts +0 -0
  89. package/{dist/modern → modern}/autocomplete-mobile-field/index.js +1 -1
  90. package/{dist/modern → modern}/index-7ca84eff.d.ts +13 -0
  91. package/{dist/cssm → modern}/index-bdb4c6b9.d.ts +7 -1
  92. package/{dist/modern → modern}/index-ebda875c.d.ts +0 -0
  93. package/{dist/modern → modern}/index.d.ts +0 -0
  94. package/{dist/modern → modern}/index.js +2 -2
  95. package/{dist/esm → modern}/mobile.css +3 -3
  96. package/{dist/modern → modern}/mobile.d.ts +0 -0
  97. package/{dist/modern → modern}/mobile.js +4 -4
  98. package/package.json +11 -14
  99. package/{dist/send-stats.js → send-stats.js} +0 -0
  100. package/{dist/tslib.es6-83e91920.d.ts → tslib.es6-383e37f1.d.ts} +0 -0
  101. package/{dist/tslib.es6-83e91920.js → tslib.es6-383e37f1.js} +0 -0
  102. package/dist/autocomplete-field/index.css +0 -4
  103. package/dist/esm/autocomplete-field/index.css +0 -4
  104. package/dist/esm/mobile.js +0 -12
  105. package/dist/modern/autocomplete-field/index.css +0 -4
@@ -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 };
File without changes
File without changes
@@ -1,8 +1,8 @@
1
- import './tslib.es6-e29e91fb.js';
1
+ import './tslib.es6-f3174141.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
- import '@alfalab/core-components-select/dist/esm';
6
- import '@alfalab/core-components-input/dist/esm';
5
+ import '@alfalab/core-components-select/esm';
6
+ import '@alfalab/core-components-input/esm';
7
7
  import './autocomplete-field/Component.js';
8
8
  export { InputAutocomplete } from './Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1mptm */
1
+ /* hash: 11tvh */
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_59w6m {
13
+ .input-autocomplete__bottomSheetInput_n8ovn {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_59w6m {
17
+ .input-autocomplete__footer_n8ovn {
18
18
  display: flex
19
19
  }
File without changes
package/esm/mobile.js ADDED
@@ -0,0 +1,12 @@
1
+ import './tslib.es6-f3174141.js';
2
+ import 'classnames';
3
+ import 'react';
4
+ import 'react-merge-refs';
5
+ import 'lodash.throttle';
6
+ import '@alfalab/core-components-select/esm';
7
+ import '@alfalab/core-components-button/esm';
8
+ import '@alfalab/core-components-input/esm';
9
+ import '@alfalab/hooks';
10
+ import '@alfalab/core-components-form-control/esm';
11
+ import './autocomplete-mobile-field/Component.js';
12
+ export { InputAutocompleteMobile } from './Component.mobile.js';
@@ -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 };
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-83e91920.js');
5
+ require('./tslib.es6-383e37f1.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
@@ -1,4 +1,4 @@
1
- /* hash: 1mptm */
1
+ /* hash: 11tvh */
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_59w6m {
13
+ .input-autocomplete__bottomSheetInput_n8ovn {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_59w6m {
17
+ .input-autocomplete__footer_n8ovn {
18
18
  display: flex
19
19
  }
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-83e91920.js');
5
+ require('./tslib.es6-383e37f1.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
File without changes
File without changes
@@ -1,8 +1,8 @@
1
1
  import 'classnames';
2
2
  import React, { forwardRef } from 'react';
3
3
  import 'react-merge-refs';
4
- import { OptionsList, Optgroup, Option, BaseSelect } from '@alfalab/core-components-select/dist/modern';
5
- import '@alfalab/core-components-input/dist/modern';
4
+ import { OptionsList, Optgroup, Option, BaseSelect } from '@alfalab/core-components-select/modern';
5
+ import '@alfalab/core-components-input/modern';
6
6
  import { AutocompleteField } from './autocomplete-field/Component.js';
7
7
 
8
8
  const InputAutocomplete = forwardRef(({ OptionsList: OptionsList$1 = OptionsList, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, Input, inputProps = {}, onInput, value, success, readOnly, closeOnSelect = false, options, ...restProps }, ref) => (React.createElement(BaseSelect, Object.assign({ ref: ref, autocomplete: true, options: options, closeOnSelect: closeOnSelect, Option: Option$1, Field: AutocompleteField, fieldProps: {
File without changes
@@ -2,14 +2,14 @@ import cn from 'classnames';
2
2
  import React, { useState, useRef, useMemo } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import throttle from 'lodash.throttle';
5
- import { SelectMobile } from '@alfalab/core-components-select/dist/modern';
6
- import { Button } from '@alfalab/core-components-button/dist/modern';
7
- import { Input } from '@alfalab/core-components-input/dist/modern';
5
+ import { SelectMobile } from '@alfalab/core-components-select/modern';
6
+ import { Button } from '@alfalab/core-components-button/modern';
7
+ import { Input } from '@alfalab/core-components-input/modern';
8
8
  import '@alfalab/hooks';
9
- import '@alfalab/core-components-form-control/dist/modern';
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_59w6m","footer":"input-autocomplete__footer_59w6m"};
12
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_n8ovn","footer":"input-autocomplete__footer_n8ovn"};
13
13
  require('./mobile.css')
14
14
 
15
15
  const SELECTED = [];
@@ -1,9 +1,9 @@
1
1
  import cn from 'classnames';
2
2
  import React, { useRef, useCallback } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
- import { Input } from '@alfalab/core-components-input/dist/modern';
4
+ import { Input } from '@alfalab/core-components-input/modern';
5
5
 
6
- var styles = {"arrow":"input-autocomplete__arrow_azcbd","error":"input-autocomplete__error_azcbd"};
6
+ var styles = {"arrow":"input-autocomplete__arrow_sy50e","error":"input-autocomplete__error_sy50e"};
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, }) => {
@@ -0,0 +1,4 @@
1
+ /* hash: 12wdo */
2
+ .input-autocomplete__arrow_sy50e.input-autocomplete__error_sy50e ~ * {
3
+ display: none;
4
+ }
@@ -1,5 +1,5 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
- import '@alfalab/core-components-input/dist/modern';
4
+ import '@alfalab/core-components-input/modern';
5
5
  export { AutocompleteField } from './Component.js';
@@ -1,9 +1,9 @@
1
1
  import cn from 'classnames';
2
2
  import React, { useState, useRef } from 'react';
3
3
  import { useFocus } from '@alfalab/hooks';
4
- import { FormControl } from '@alfalab/core-components-form-control/dist/modern';
4
+ import { FormControl } from '@alfalab/core-components-form-control/modern';
5
5
 
6
- var styles = {"component":"input-autocomplete__component_14ait","field":"input-autocomplete__field_14ait","disabled":"input-autocomplete__disabled_14ait","placeholder":"input-autocomplete__placeholder_14ait","contentWrapper":"input-autocomplete__contentWrapper_14ait","value":"input-autocomplete__value_14ait","focusVisible":"input-autocomplete__focusVisible_14ait"};
6
+ var styles = {"component":"input-autocomplete__component_hs18c","field":"input-autocomplete__field_hs18c","disabled":"input-autocomplete__disabled_hs18c","placeholder":"input-autocomplete__placeholder_hs18c","contentWrapper":"input-autocomplete__contentWrapper_hs18c","value":"input-autocomplete__value_hs18c","focusVisible":"input-autocomplete__focusVisible_hs18c"};
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: b3wld */
1
+ /* hash: f810z */
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_14ait {
18
+ .input-autocomplete__component_hs18c {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_14ait:not(.input-autocomplete__disabled_14ait) {
22
+ .input-autocomplete__field_hs18c:not(.input-autocomplete__disabled_hs18c) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_14ait {
25
+ .input-autocomplete__disabled_hs18c {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_14ait {
28
+ .input-autocomplete__placeholder_hs18c {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_14ait {
31
+ .input-autocomplete__contentWrapper_hs18c {
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_14ait {
41
+ .input-autocomplete__value_hs18c {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_14ait {
46
+ .input-autocomplete__focusVisible_hs18c {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -1,5 +1,5 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import '@alfalab/hooks';
4
- import '@alfalab/core-components-form-control/dist/modern';
4
+ import '@alfalab/core-components-form-control/modern';
5
5
  export { AutocompleteMobileField } from './Component.js';
@@ -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 };
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
- import '@alfalab/core-components-select/dist/modern';
5
- import '@alfalab/core-components-input/dist/modern';
4
+ import '@alfalab/core-components-select/modern';
5
+ import '@alfalab/core-components-input/modern';
6
6
  import './autocomplete-field/Component.js';
7
7
  export { InputAutocomplete } from './Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1mptm */
1
+ /* hash: 11tvh */
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_59w6m {
13
+ .input-autocomplete__bottomSheetInput_n8ovn {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_59w6m {
17
+ .input-autocomplete__footer_n8ovn {
18
18
  display: flex
19
19
  }
File without changes
@@ -2,10 +2,10 @@ import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'lodash.throttle';
5
- import '@alfalab/core-components-select/dist/modern';
6
- import '@alfalab/core-components-button/dist/modern';
7
- import '@alfalab/core-components-input/dist/modern';
5
+ import '@alfalab/core-components-select/modern';
6
+ import '@alfalab/core-components-button/modern';
7
+ import '@alfalab/core-components-input/modern';
8
8
  import '@alfalab/hooks';
9
- import '@alfalab/core-components-form-control/dist/modern';
9
+ import '@alfalab/core-components-form-control/modern';
10
10
  import './autocomplete-mobile-field/Component.js';
11
11
  export { InputAutocompleteMobile } from './Component.mobile.js';
package/package.json CHANGED
@@ -1,28 +1,26 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-input-autocomplete",
3
- "version": "7.4.2",
3
+ "version": "7.4.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
- "main": "dist/index.js",
8
- "module": "./dist/esm/index.js",
9
- "files": [
10
- "dist"
11
- ],
7
+ "main": "index.js",
8
+ "module": "./esm/index.js",
12
9
  "scripts": {
13
- "postinstall": "node ./dist/send-stats.js > /dev/null 2>&1 || exit 0"
10
+ "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
14
11
  },
15
12
  "publishConfig": {
16
- "access": "public"
13
+ "access": "public",
14
+ "directory": "dist"
17
15
  },
18
16
  "peerDependencies": {
19
17
  "react": "^16.9.0 || ^17.0.1"
20
18
  },
21
19
  "dependencies": {
22
- "@alfalab/core-components-button": "^5.2.0",
23
- "@alfalab/core-components-form-control": "^7.5.0",
24
- "@alfalab/core-components-input": "^8.2.0",
25
- "@alfalab/core-components-select": "^10.12.2",
20
+ "@alfalab/core-components-button": "^5.2.3",
21
+ "@alfalab/core-components-form-control": "^7.5.3",
22
+ "@alfalab/core-components-input": "^8.2.3",
23
+ "@alfalab/core-components-select": "^10.12.7",
26
24
  "@alfalab/hooks": "^1.4.1",
27
25
  "classnames": "^2.2.6",
28
26
  "lodash.throttle": "^4.1.1",
@@ -30,6 +28,5 @@
30
28
  },
31
29
  "devDependencies": {
32
30
  "@types/lodash.throttle": "^4.1.7"
33
- },
34
- "gitHead": "5e9a6d31c954aeb2548cecfebc88c1bcab1313a0"
31
+ }
35
32
  }
File without changes
@@ -1,4 +0,0 @@
1
- /* hash: 1nsbt */
2
- .input-autocomplete__arrow_azcbd.input-autocomplete__error_azcbd ~ * {
3
- display: none;
4
- }
@@ -1,4 +0,0 @@
1
- /* hash: 1nsbt */
2
- .input-autocomplete__arrow_azcbd.input-autocomplete__error_azcbd ~ * {
3
- display: none;
4
- }
@@ -1,12 +0,0 @@
1
- import './tslib.es6-e29e91fb.js';
2
- import 'classnames';
3
- import 'react';
4
- import 'react-merge-refs';
5
- import 'lodash.throttle';
6
- import '@alfalab/core-components-select/dist/esm';
7
- import '@alfalab/core-components-button/dist/esm';
8
- import '@alfalab/core-components-input/dist/esm';
9
- import '@alfalab/hooks';
10
- import '@alfalab/core-components-form-control/dist/esm';
11
- import './autocomplete-mobile-field/Component.js';
12
- export { InputAutocompleteMobile } from './Component.mobile.js';
@@ -1,4 +0,0 @@
1
- /* hash: 1nsbt */
2
- .input-autocomplete__arrow_azcbd.input-autocomplete__error_azcbd ~ * {
3
- display: none;
4
- }