@alfalab/core-components-input-autocomplete 10.1.1 → 10.1.3

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 (58) hide show
  1. package/Component.mobile.js +1 -1
  2. package/Component.modal.mobile.js +1 -1
  3. package/Component.responsive.js +1 -1
  4. package/autocomplete-field/Component.js +1 -1
  5. package/autocomplete-field/index.css +2 -2
  6. package/autocomplete-mobile-field/Component.js +1 -1
  7. package/autocomplete-mobile-field/index.css +8 -8
  8. package/{modern/component-2abb571d.d.ts → component-1a4fbd11.d.ts} +1 -1
  9. package/{component-2abb571d.d.ts → cssm/component-1a4fbd11.d.ts} +1 -1
  10. package/cssm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  11. package/cssm/index-c76d6398.d.ts +1 -1
  12. package/cssm/index-f12ee135.d.ts +2 -2
  13. package/{esm/types-92653002.d.ts → cssm/types-e40becc7.d.ts} +9 -0
  14. package/esm/Component.mobile.js +1 -1
  15. package/esm/Component.modal.mobile.js +1 -1
  16. package/esm/Component.responsive.js +1 -1
  17. package/esm/autocomplete-field/Component.js +1 -1
  18. package/esm/autocomplete-field/index.css +2 -2
  19. package/esm/autocomplete-mobile-field/Component.js +1 -1
  20. package/esm/autocomplete-mobile-field/index.css +8 -8
  21. package/esm/{component-2abb571d.d.ts → component-1a4fbd11.d.ts} +1 -1
  22. package/esm/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  23. package/esm/index-c76d6398.d.ts +1 -1
  24. package/esm/index-f12ee135.d.ts +2 -2
  25. package/esm/index.js +1 -1
  26. package/esm/mobile.css +4 -4
  27. package/esm/mobile.js +1 -1
  28. package/esm/{mobile.module-d94bd137.js → mobile.module-03606a79.js} +1 -1
  29. package/{cssm/types-92653002.d.ts → esm/types-e40becc7.d.ts} +9 -0
  30. package/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  31. package/index-c76d6398.d.ts +1 -1
  32. package/index-f12ee135.d.ts +2 -2
  33. package/index.js +1 -1
  34. package/mobile.css +4 -4
  35. package/mobile.js +1 -1
  36. package/{mobile.module-e6e04ea3.js → mobile.module-6999b8d8.js} +1 -1
  37. package/modern/Component.mobile.js +1 -1
  38. package/modern/Component.modal.mobile.js +1 -1
  39. package/modern/Component.responsive.js +1 -1
  40. package/modern/autocomplete-field/Component.js +1 -1
  41. package/modern/autocomplete-field/index.css +2 -2
  42. package/modern/autocomplete-mobile-field/Component.js +1 -1
  43. package/modern/autocomplete-mobile-field/index.css +8 -8
  44. package/{cssm/component-2abb571d.d.ts → modern/component-1a4fbd11.d.ts} +1 -1
  45. package/modern/{index-2abb571d.d.ts → index-1a4fbd11.d.ts} +8 -1
  46. package/modern/index-c76d6398.d.ts +1 -1
  47. package/modern/index-f12ee135.d.ts +2 -2
  48. package/modern/index.js +1 -1
  49. package/modern/mobile.css +4 -4
  50. package/modern/mobile.js +1 -1
  51. package/modern/{mobile.module-698d1199.js → mobile.module-a67b7161.js} +1 -1
  52. package/modern/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
  53. package/package.json +4 -4
  54. package/{types-92653002.d.ts → types-e40becc7.d.ts} +9 -0
  55. /package/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  56. /package/cssm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  57. /package/esm/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
  58. /package/modern/{Component-2abb571d.d.ts → Component-1a4fbd11.d.ts} +0 -0
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
11
11
  var coreComponentsInput = require('@alfalab/core-components-input');
12
12
  var mobile = require('@alfalab/core-components-select/mobile');
13
13
  var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
14
- var mobile_module = require('./mobile.module-e6e04ea3.js');
14
+ var mobile_module = require('./mobile.module-6999b8d8.js');
15
15
  require('@alfalab/core-components-form-control/mobile');
16
16
  require('@alfalab/hooks');
17
17
 
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
11
11
  var coreComponentsInput = require('@alfalab/core-components-input');
12
12
  var mobile = require('@alfalab/core-components-select/mobile');
13
13
  var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
14
- var mobile_module = require('./mobile.module-e6e04ea3.js');
14
+ var mobile_module = require('./mobile.module-6999b8d8.js');
15
15
  require('@alfalab/core-components-form-control/mobile');
16
16
  require('@alfalab/hooks');
17
17
 
@@ -18,7 +18,7 @@ require('@alfalab/core-components-input');
18
18
  require('@alfalab/core-components-select/mobile');
19
19
  require('./autocomplete-mobile-field/Component.js');
20
20
  require('@alfalab/core-components-form-control/mobile');
21
- require('./mobile.module-e6e04ea3.js');
21
+ require('./mobile.module-6999b8d8.js');
22
22
 
23
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
24
 
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"arrow":"input-autocomplete__arrow_1j74k","error":"input-autocomplete__error_1j74k"};
17
+ var styles = {"arrow":"input-autocomplete__arrow_dnzfz","error":"input-autocomplete__error_dnzfz"};
18
18
  require('./index.css')
19
19
 
20
20
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1okxh */
2
- .input-autocomplete__arrow_1j74k.input-autocomplete__error_1j74k ~ * {
1
+ /* hash: 1uewe */
2
+ .input-autocomplete__arrow_dnzfz.input-autocomplete__error_dnzfz ~ * {
3
3
  display: none;
4
4
  }
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"component":"input-autocomplete__component_o9n8b","field":"input-autocomplete__field_o9n8b","disabled":"input-autocomplete__disabled_o9n8b","placeholder":"input-autocomplete__placeholder_o9n8b","contentWrapper":"input-autocomplete__contentWrapper_o9n8b","value":"input-autocomplete__value_o9n8b","focusVisible":"input-autocomplete__focusVisible_o9n8b"};
16
+ var styles = {"component":"input-autocomplete__component_1hrm5","field":"input-autocomplete__field_1hrm5","disabled":"input-autocomplete__disabled_1hrm5","placeholder":"input-autocomplete__placeholder_1hrm5","contentWrapper":"input-autocomplete__contentWrapper_1hrm5","value":"input-autocomplete__value_1hrm5","focusVisible":"input-autocomplete__focusVisible_1hrm5"};
17
17
  require('./index.css')
18
18
 
19
19
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1nf4k */
1
+ /* hash: 1t93h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_o9n8b {
21
+ } .input-autocomplete__component_1hrm5 {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_o9n8b:not(.input-autocomplete__disabled_o9n8b) {
24
+ } .input-autocomplete__field_1hrm5:not(.input-autocomplete__disabled_1hrm5) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_o9n8b {
26
+ } .input-autocomplete__disabled_1hrm5 {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_o9n8b {
28
+ } .input-autocomplete__placeholder_1hrm5 {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_o9n8b {
30
+ } .input-autocomplete__contentWrapper_1hrm5 {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_o9n8b {
39
+ } .input-autocomplete__value_1hrm5 {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_o9n8b {
43
+ } .input-autocomplete__focusVisible_1hrm5 {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-92653002";
7
+ import { BottomSheetProps } from "./types-e40becc7";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-92653002";
7
+ import { BottomSheetProps } from "./types-e40becc7";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
12
12
  declare const inputUtils: {
13
13
  disableUserInput: typeof disableUserInput;
14
14
  };
15
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils };
15
+ /**
16
+ * Возвращает true, если значение равно null или undefined
17
+ */
18
+ declare function isNil(value: unknown): boolean;
19
+ declare const fnUtils: {
20
+ isNil: typeof isNil;
21
+ };
22
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-2abb571d";
1
+ export * from "./Component-1a4fbd11";
2
2
  export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-2abb571d";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-92653002";
1
+ export * from "./component-1a4fbd11";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,13 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается в начале свайпа
269
+ */
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
266
275
  };
267
276
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectMobile } from '@alfalab/core-components-select/esm/mobile';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-d94bd137.js';
10
+ import { s as styles } from './mobile.module-03606a79.js';
11
11
  import '@alfalab/core-components-form-control/esm/mobile';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectModalMobile } from '@alfalab/core-components-select/esm/mobile';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-d94bd137.js';
10
+ import { s as styles } from './mobile.module-03606a79.js';
11
11
  import '@alfalab/core-components-form-control/esm/mobile';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -14,7 +14,7 @@ import '@alfalab/core-components-input/esm';
14
14
  import '@alfalab/core-components-select/esm/mobile';
15
15
  import './autocomplete-mobile-field/Component.js';
16
16
  import '@alfalab/core-components-form-control/esm/mobile';
17
- import './mobile.module-d94bd137.js';
17
+ import './mobile.module-03606a79.js';
18
18
 
19
19
  var InputAutocompleteResponsive = forwardRef(function (_a, ref) {
20
20
  var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
4
4
  import cn from 'classnames';
5
5
  import { InputDesktop } from '@alfalab/core-components-input/esm/desktop';
6
6
 
7
- var styles = {"arrow":"input-autocomplete__arrow_1j74k","error":"input-autocomplete__error_1j74k"};
7
+ var styles = {"arrow":"input-autocomplete__arrow_dnzfz","error":"input-autocomplete__error_dnzfz"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1okxh */
2
- .input-autocomplete__arrow_1j74k.input-autocomplete__error_1j74k ~ * {
1
+ /* hash: 1uewe */
2
+ .input-autocomplete__arrow_dnzfz.input-autocomplete__error_dnzfz ~ * {
3
3
  display: none;
4
4
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { FormControlMobile } from '@alfalab/core-components-form-control/esm/mobile';
5
5
  import { useFocus } from '@alfalab/hooks';
6
6
 
7
- var styles = {"component":"input-autocomplete__component_o9n8b","field":"input-autocomplete__field_o9n8b","disabled":"input-autocomplete__disabled_o9n8b","placeholder":"input-autocomplete__placeholder_o9n8b","contentWrapper":"input-autocomplete__contentWrapper_o9n8b","value":"input-autocomplete__value_o9n8b","focusVisible":"input-autocomplete__focusVisible_o9n8b"};
7
+ var styles = {"component":"input-autocomplete__component_1hrm5","field":"input-autocomplete__field_1hrm5","disabled":"input-autocomplete__disabled_1hrm5","placeholder":"input-autocomplete__placeholder_1hrm5","contentWrapper":"input-autocomplete__contentWrapper_1hrm5","value":"input-autocomplete__value_1hrm5","focusVisible":"input-autocomplete__focusVisible_1hrm5"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1nf4k */
1
+ /* hash: 1t93h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_o9n8b {
21
+ } .input-autocomplete__component_1hrm5 {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_o9n8b:not(.input-autocomplete__disabled_o9n8b) {
24
+ } .input-autocomplete__field_1hrm5:not(.input-autocomplete__disabled_1hrm5) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_o9n8b {
26
+ } .input-autocomplete__disabled_1hrm5 {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_o9n8b {
28
+ } .input-autocomplete__placeholder_1hrm5 {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_o9n8b {
30
+ } .input-autocomplete__contentWrapper_1hrm5 {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_o9n8b {
39
+ } .input-autocomplete__value_1hrm5 {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_o9n8b {
43
+ } .input-autocomplete__focusVisible_1hrm5 {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-92653002";
7
+ import { BottomSheetProps } from "./types-e40becc7";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
12
12
  declare const inputUtils: {
13
13
  disableUserInput: typeof disableUserInput;
14
14
  };
15
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils };
15
+ /**
16
+ * Возвращает true, если значение равно null или undefined
17
+ */
18
+ declare function isNil(value: unknown): boolean;
19
+ declare const fnUtils: {
20
+ isNil: typeof isNil;
21
+ };
22
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-2abb571d";
1
+ export * from "./Component-1a4fbd11";
2
2
  export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-2abb571d";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-92653002";
1
+ export * from "./component-1a4fbd11";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
package/esm/index.js CHANGED
@@ -15,4 +15,4 @@ import '@alfalab/core-components-input/esm';
15
15
  import '@alfalab/core-components-select/esm/mobile';
16
16
  import './autocomplete-mobile-field/Component.js';
17
17
  import '@alfalab/core-components-form-control/esm/mobile';
18
- import './mobile.module-d94bd137.js';
18
+ import './mobile.module-03606a79.js';
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1r1ln */
1
+ /* hash: 1wvkk */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,11 +16,11 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .input-autocomplete__bottomAddonInput_1lnsq {
19
+ } .input-autocomplete__bottomAddonInput_g4nm3 {
20
20
  padding: 0 var(--gap-xs) var(--gap-xs);
21
21
  box-sizing: border-box;
22
- } .input-autocomplete__footer_1lnsq {
22
+ } .input-autocomplete__footer_g4nm3 {
23
23
  display: flex
24
- } .input-autocomplete__footer_1lnsq > button + button {
24
+ } .input-autocomplete__footer_g4nm3 > button + button {
25
25
  margin-left: var(--gap-m);
26
26
  }
package/esm/mobile.js CHANGED
@@ -11,4 +11,4 @@ import '@alfalab/core-components-select/esm/mobile';
11
11
  import './autocomplete-mobile-field/Component.js';
12
12
  import '@alfalab/core-components-form-control/esm/mobile';
13
13
  import '@alfalab/hooks';
14
- import './mobile.module-d94bd137.js';
14
+ import './mobile.module-03606a79.js';
@@ -1,4 +1,4 @@
1
- var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1lnsq","footer":"input-autocomplete__footer_1lnsq"};
1
+ var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_g4nm3","footer":"input-autocomplete__footer_g4nm3"};
2
2
  require('./mobile.css')
3
3
 
4
4
  export { styles as s };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,13 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается в начале свайпа
269
+ */
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
266
275
  };
267
276
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
12
12
  declare const inputUtils: {
13
13
  disableUserInput: typeof disableUserInput;
14
14
  };
15
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils };
15
+ /**
16
+ * Возвращает true, если значение равно null или undefined
17
+ */
18
+ declare function isNil(value: unknown): boolean;
19
+ declare const fnUtils: {
20
+ isNil: typeof isNil;
21
+ };
22
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-2abb571d";
1
+ export * from "./Component-1a4fbd11";
2
2
  export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-2abb571d";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-92653002";
1
+ export * from "./component-1a4fbd11";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
package/index.js CHANGED
@@ -19,7 +19,7 @@ require('@alfalab/core-components-input');
19
19
  require('@alfalab/core-components-select/mobile');
20
20
  require('./autocomplete-mobile-field/Component.js');
21
21
  require('@alfalab/core-components-form-control/mobile');
22
- require('./mobile.module-e6e04ea3.js');
22
+ require('./mobile.module-6999b8d8.js');
23
23
 
24
24
 
25
25
 
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1r1ln */
1
+ /* hash: 1wvkk */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,11 +16,11 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .input-autocomplete__bottomAddonInput_1lnsq {
19
+ } .input-autocomplete__bottomAddonInput_g4nm3 {
20
20
  padding: 0 var(--gap-xs) var(--gap-xs);
21
21
  box-sizing: border-box;
22
- } .input-autocomplete__footer_1lnsq {
22
+ } .input-autocomplete__footer_g4nm3 {
23
23
  display: flex
24
- } .input-autocomplete__footer_1lnsq > button + button {
24
+ } .input-autocomplete__footer_g4nm3 > button + button {
25
25
  margin-left: var(--gap-m);
26
26
  }
package/mobile.js CHANGED
@@ -15,7 +15,7 @@ require('@alfalab/core-components-select/mobile');
15
15
  require('./autocomplete-mobile-field/Component.js');
16
16
  require('@alfalab/core-components-form-control/mobile');
17
17
  require('@alfalab/hooks');
18
- require('./mobile.module-e6e04ea3.js');
18
+ require('./mobile.module-6999b8d8.js');
19
19
 
20
20
 
21
21
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1lnsq","footer":"input-autocomplete__footer_1lnsq"};
3
+ var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_g4nm3","footer":"input-autocomplete__footer_g4nm3"};
4
4
  require('./mobile.css')
5
5
 
6
6
  exports.styles = styles;
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
6
6
  import { Input } from '@alfalab/core-components-input/modern';
7
7
  import { SelectMobile } from '@alfalab/core-components-select/modern/mobile';
8
8
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
9
- import { s as styles } from './mobile.module-698d1199.js';
9
+ import { s as styles } from './mobile.module-a67b7161.js';
10
10
  import '@alfalab/core-components-form-control/modern/mobile';
11
11
  import '@alfalab/hooks';
12
12
 
@@ -6,7 +6,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
6
6
  import { Input } from '@alfalab/core-components-input/modern';
7
7
  import { SelectModalMobile } from '@alfalab/core-components-select/modern/mobile';
8
8
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
9
- import { s as styles } from './mobile.module-698d1199.js';
9
+ import { s as styles } from './mobile.module-a67b7161.js';
10
10
  import '@alfalab/core-components-form-control/modern/mobile';
11
11
  import '@alfalab/hooks';
12
12
 
@@ -13,7 +13,7 @@ import '@alfalab/core-components-input/modern';
13
13
  import '@alfalab/core-components-select/modern/mobile';
14
14
  import './autocomplete-mobile-field/Component.js';
15
15
  import '@alfalab/core-components-form-control/modern/mobile';
16
- import './mobile.module-698d1199.js';
16
+ import './mobile.module-a67b7161.js';
17
17
 
18
18
  const InputAutocompleteResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
19
19
  const [view] = useMedia([
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
4
  import { InputDesktop } from '@alfalab/core-components-input/modern/desktop';
5
5
 
6
- const styles = {"arrow":"input-autocomplete__arrow_1j74k","error":"input-autocomplete__error_1j74k"};
6
+ const styles = {"arrow":"input-autocomplete__arrow_dnzfz","error":"input-autocomplete__error_dnzfz"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arrow, Input = InputDesktop, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1okxh */
2
- .input-autocomplete__arrow_1j74k.input-autocomplete__error_1j74k ~ * {
1
+ /* hash: 1uewe */
2
+ .input-autocomplete__arrow_dnzfz.input-autocomplete__error_dnzfz ~ * {
3
3
  display: none;
4
4
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { FormControlMobile } from '@alfalab/core-components-form-control/modern/mobile';
4
4
  import { useFocus } from '@alfalab/hooks';
5
5
 
6
- const styles = {"component":"input-autocomplete__component_o9n8b","field":"input-autocomplete__field_o9n8b","disabled":"input-autocomplete__disabled_o9n8b","placeholder":"input-autocomplete__placeholder_o9n8b","contentWrapper":"input-autocomplete__contentWrapper_o9n8b","value":"input-autocomplete__value_o9n8b","focusVisible":"input-autocomplete__focusVisible_o9n8b"};
6
+ const styles = {"component":"input-autocomplete__component_1hrm5","field":"input-autocomplete__field_1hrm5","disabled":"input-autocomplete__disabled_1hrm5","placeholder":"input-autocomplete__placeholder_1hrm5","contentWrapper":"input-autocomplete__contentWrapper_1hrm5","value":"input-autocomplete__value_1hrm5","focusVisible":"input-autocomplete__focusVisible_1hrm5"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteMobileField = ({ size = 'm', open, disabled, value, innerProps, dataTestId, fieldClassName, labelView = 'inner', placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, FormControlComponent, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1nf4k */
1
+ /* hash: 1t93h */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_o9n8b {
21
+ } .input-autocomplete__component_1hrm5 {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_o9n8b:not(.input-autocomplete__disabled_o9n8b) {
24
+ } .input-autocomplete__field_1hrm5:not(.input-autocomplete__disabled_1hrm5) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_o9n8b {
26
+ } .input-autocomplete__disabled_1hrm5 {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_o9n8b {
28
+ } .input-autocomplete__placeholder_1hrm5 {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_o9n8b {
30
+ } .input-autocomplete__contentWrapper_1hrm5 {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_o9n8b {
39
+ } .input-autocomplete__value_1hrm5 {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_o9n8b {
43
+ } .input-autocomplete__focusVisible_1hrm5 {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-92653002";
7
+ import { BottomSheetProps } from "./types-e40becc7";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -12,4 +12,11 @@ declare function disableUserInput<T>(disabled: boolean | undefined, event: React
12
12
  declare const inputUtils: {
13
13
  disableUserInput: typeof disableUserInput;
14
14
  };
15
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils };
15
+ /**
16
+ * Возвращает true, если значение равно null или undefined
17
+ */
18
+ declare function isNil(value: unknown): boolean;
19
+ declare const fnUtils: {
20
+ isNil: typeof isNil;
21
+ };
22
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-2abb571d";
1
+ export * from "./Component-1a4fbd11";
2
2
  export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-2abb571d";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-92653002";
1
+ export * from "./component-1a4fbd11";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
package/modern/index.js CHANGED
@@ -14,4 +14,4 @@ import '@alfalab/core-components-input/modern';
14
14
  import '@alfalab/core-components-select/modern/mobile';
15
15
  import './autocomplete-mobile-field/Component.js';
16
16
  import '@alfalab/core-components-form-control/modern/mobile';
17
- import './mobile.module-698d1199.js';
17
+ import './mobile.module-a67b7161.js';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1r1ln */
1
+ /* hash: 1wvkk */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -16,11 +16,11 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .input-autocomplete__bottomAddonInput_1lnsq {
19
+ } .input-autocomplete__bottomAddonInput_g4nm3 {
20
20
  padding: 0 var(--gap-xs) var(--gap-xs);
21
21
  box-sizing: border-box;
22
- } .input-autocomplete__footer_1lnsq {
22
+ } .input-autocomplete__footer_g4nm3 {
23
23
  display: flex
24
- } .input-autocomplete__footer_1lnsq > button + button {
24
+ } .input-autocomplete__footer_g4nm3 > button + button {
25
25
  margin-left: var(--gap-m);
26
26
  }
package/modern/mobile.js CHANGED
@@ -10,4 +10,4 @@ import '@alfalab/core-components-select/modern/mobile';
10
10
  import './autocomplete-mobile-field/Component.js';
11
11
  import '@alfalab/core-components-form-control/modern/mobile';
12
12
  import '@alfalab/hooks';
13
- import './mobile.module-698d1199.js';
13
+ import './mobile.module-a67b7161.js';
@@ -1,4 +1,4 @@
1
- const styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1lnsq","footer":"input-autocomplete__footer_1lnsq"};
1
+ const styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_g4nm3","footer":"input-autocomplete__footer_g4nm3"};
2
2
  require('./mobile.css')
3
3
 
4
4
  export { styles as s };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,13 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается в начале свайпа
269
+ */
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
266
275
  };
267
276
  export { BottomSheetTitleAlign, BottomSheetProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-input-autocomplete",
3
- "version": "10.1.1",
3
+ "version": "10.1.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@alfalab/core-components-button": "^9.0.3",
37
+ "@alfalab/core-components-button": "^9.0.4",
38
38
  "@alfalab/core-components-form-control": "^10.0.0",
39
- "@alfalab/core-components-input": "^12.1.1",
40
- "@alfalab/core-components-select": "^15.1.1",
39
+ "@alfalab/core-components-input": "^12.1.2",
40
+ "@alfalab/core-components-select": "^15.1.3",
41
41
  "@alfalab/hooks": "^1.13.0",
42
42
  "classnames": "^2.3.1",
43
43
  "lodash.throttle": "^4.1.1",
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
+ import { HandledEvents } from 'react-swipeable/es/types';
3
4
  import { TransitionProps } from 'react-transition-group/Transition';
4
5
  import { BaseModalProps } from "./index-bdb4c6b9";
5
6
  import { NavigationBarProps } from "./index-c76d6398";
@@ -263,5 +264,13 @@ type BottomSheetProps = {
263
264
  * Вызывается при изменении положения шторки
264
265
  */
265
266
  onOffsetChange?: (offset: number, percent: number) => void;
267
+ /**
268
+ * Вызывается в начале свайпа
269
+ */
270
+ onSwipeStart?: (event: HandledEvents) => void;
271
+ /**
272
+ * Вызывается после окончания свайпа
273
+ */
274
+ onSwipeEnd?: (event: HandledEvents | null) => void;
266
275
  };
267
276
  export { BottomSheetTitleAlign, BottomSheetProps };