@alfalab/core-components-input-autocomplete 10.2.3 → 11.0.0
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.
- package/Component.desktop.d.ts +3 -70
- package/Component.desktop.js +2 -1
- package/Component.mobile.d.ts +5 -95
- package/Component.mobile.js +42 -45
- package/Component.modal.mobile.d.ts +5 -88
- package/Component.modal.mobile.js +9 -62
- package/Component.responsive.d.ts +3 -46
- package/Component.responsive.js +9 -12
- package/autocomplete-field/Component.d.ts +3 -3
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.d.ts +2 -2
- package/autocomplete-mobile-field/Component.js +6 -3
- package/autocomplete-mobile-field/index.css +10 -10
- package/cssm/Component.desktop.d.ts +3 -70
- package/cssm/Component.desktop.js +2 -1
- package/cssm/Component.mobile.d.ts +5 -95
- package/cssm/Component.mobile.js +39 -44
- package/cssm/Component.modal.mobile.d.ts +5 -88
- package/cssm/Component.modal.mobile.js +10 -63
- package/cssm/Component.responsive.d.ts +3 -46
- package/cssm/Component.responsive.js +9 -11
- package/cssm/autocomplete-field/Component.d.ts +3 -3
- package/cssm/autocomplete-mobile-field/Component.d.ts +2 -2
- package/cssm/autocomplete-mobile-field/Component.js +5 -2
- package/cssm/autocomplete-mobile-field/index.module.css +2 -2
- package/cssm/desktop/index.d.ts +2 -0
- package/cssm/{desktop.js → desktop/index.js} +4 -3
- package/cssm/index.d.ts +2 -2
- package/cssm/index.js +5 -4
- package/cssm/mobile/index.d.ts +3 -0
- package/cssm/{mobile.js → mobile/index.js} +7 -7
- package/cssm/mobile.module.css +3 -10
- package/cssm/types.d.ts +58 -0
- package/cssm/types.js +2 -0
- package/cssm/utils.d.ts +2 -0
- package/cssm/utils.js +9 -0
- package/desktop/index.d.ts +2 -0
- package/{desktop.js → desktop/index.js} +3 -2
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +3 -70
- package/esm/Component.desktop.js +2 -1
- package/esm/Component.mobile.d.ts +5 -95
- package/esm/Component.mobile.js +43 -46
- package/esm/Component.modal.mobile.d.ts +5 -88
- package/esm/Component.modal.mobile.js +11 -61
- package/esm/Component.responsive.d.ts +3 -46
- package/esm/Component.responsive.js +9 -12
- package/esm/autocomplete-field/Component.d.ts +3 -3
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.d.ts +2 -2
- package/esm/autocomplete-mobile-field/Component.js +6 -3
- package/esm/autocomplete-mobile-field/index.css +10 -10
- package/esm/desktop/index.d.ts +2 -0
- package/esm/{desktop.js → desktop/index.js} +3 -2
- package/esm/index.d.ts +2 -2
- package/esm/index.js +5 -5
- package/esm/mobile/index.d.ts +3 -0
- package/esm/mobile/index.js +14 -0
- package/esm/mobile.css +4 -11
- package/esm/types.d.ts +58 -0
- package/esm/types.js +1 -0
- package/esm/utils.d.ts +2 -0
- package/esm/utils.js +5 -0
- package/index.d.ts +2 -2
- package/index.js +5 -5
- package/mobile/index.d.ts +3 -0
- package/{mobile.js → mobile/index.js} +5 -6
- package/mobile/package.json +3 -0
- package/mobile.css +4 -11
- package/modern/Component.desktop.d.ts +3 -70
- package/modern/Component.desktop.js +2 -1
- package/modern/Component.mobile.d.ts +5 -95
- package/modern/Component.mobile.js +54 -56
- package/modern/Component.modal.mobile.d.ts +5 -88
- package/modern/Component.modal.mobile.js +10 -68
- package/modern/Component.responsive.d.ts +3 -46
- package/modern/Component.responsive.js +8 -11
- package/modern/autocomplete-field/Component.d.ts +3 -3
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.d.ts +2 -2
- package/modern/autocomplete-mobile-field/Component.js +5 -2
- package/modern/autocomplete-mobile-field/index.css +10 -10
- package/modern/desktop/index.d.ts +2 -0
- package/modern/{desktop.js → desktop/index.js} +3 -2
- package/modern/index.d.ts +2 -2
- package/modern/index.js +5 -5
- package/modern/mobile/index.d.ts +3 -0
- package/modern/mobile/index.js +13 -0
- package/modern/mobile.css +4 -11
- package/modern/types.d.ts +58 -0
- package/modern/types.js +1 -0
- package/modern/utils.d.ts +2 -0
- package/modern/utils.js +5 -0
- package/package.json +7 -6
- package/src/Component.desktop.tsx +6 -44
- package/src/Component.mobile.tsx +90 -188
- package/src/Component.modal.mobile.tsx +5 -223
- package/src/Component.responsive.tsx +10 -30
- package/src/autocomplete-field/Component.tsx +2 -2
- package/src/autocomplete-mobile-field/Component.tsx +5 -1
- package/src/desktop/index.ts +2 -0
- package/src/desktop/package.json +3 -0
- package/src/index.ts +2 -4
- package/src/mobile/index.ts +4 -0
- package/src/mobile/package.json +3 -0
- package/src/mobile.module.css +2 -11
- package/src/types.ts +77 -0
- package/src/utils.ts +3 -0
- package/types.d.ts +58 -0
- package/types.js +2 -0
- package/utils.d.ts +2 -0
- package/utils.js +9 -0
- package/Component-0f4b9bed.d.ts +0 -72
- package/Component-69921c40.d.ts +0 -184
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-ebda875c.d.ts +0 -6
- package/Component.mobile-f1f15074.d.ts +0 -34
- package/Component.mobile-f28cbba0.d.ts +0 -41
- package/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -72
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-ebda875c.d.ts +0 -6
- package/cssm/Component.mobile-f1f15074.d.ts +0 -34
- package/cssm/Component.mobile-f28cbba0.d.ts +0 -41
- package/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-69921c40.d.ts +0 -6
- package/cssm/desktop.d.ts +0 -2
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c76d6398.d.ts +0 -185
- package/cssm/index-ebda875c.d.ts +0 -146
- package/cssm/index-f12ee135.d.ts +0 -52
- package/cssm/mobile-89f0cb07.d.ts +0 -6
- package/cssm/mobile-96988a65.d.ts +0 -6
- package/cssm/mobile-f28cbba0.d.ts +0 -5
- package/cssm/mobile.d.ts +0 -3
- package/cssm/shared-4cd3936b.d.ts +0 -65
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-72dda473.d.ts +0 -276
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/desktop-69921c40.d.ts +0 -6
- package/desktop.d.ts +0 -2
- package/esm/Component-0f4b9bed.d.ts +0 -72
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-ebda875c.d.ts +0 -6
- package/esm/Component.mobile-f1f15074.d.ts +0 -34
- package/esm/Component.mobile-f28cbba0.d.ts +0 -41
- package/esm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-69921c40.d.ts +0 -6
- package/esm/desktop.d.ts +0 -2
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c76d6398.d.ts +0 -185
- package/esm/index-ebda875c.d.ts +0 -146
- package/esm/index-f12ee135.d.ts +0 -52
- package/esm/mobile-89f0cb07.d.ts +0 -6
- package/esm/mobile-96988a65.d.ts +0 -6
- package/esm/mobile-f28cbba0.d.ts +0 -5
- package/esm/mobile.d.ts +0 -3
- package/esm/mobile.js +0 -15
- package/esm/mobile.module-c5b1b036.js +0 -4
- package/esm/shared-4cd3936b.d.ts +0 -65
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-72dda473.d.ts +0 -276
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-72dda473.d.ts +0 -12
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c76d6398.d.ts +0 -185
- package/index-ebda875c.d.ts +0 -146
- package/index-f12ee135.d.ts +0 -52
- package/mobile-89f0cb07.d.ts +0 -6
- package/mobile-96988a65.d.ts +0 -6
- package/mobile-f28cbba0.d.ts +0 -5
- package/mobile.d.ts +0 -3
- package/mobile.module-c08975ff.js +0 -6
- package/modern/Component-0f4b9bed.d.ts +0 -72
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-ebda875c.d.ts +0 -6
- package/modern/Component.mobile-f1f15074.d.ts +0 -34
- package/modern/Component.mobile-f28cbba0.d.ts +0 -41
- package/modern/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-69921c40.d.ts +0 -6
- package/modern/desktop.d.ts +0 -2
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c76d6398.d.ts +0 -185
- package/modern/index-ebda875c.d.ts +0 -146
- package/modern/index-f12ee135.d.ts +0 -52
- package/modern/mobile-89f0cb07.d.ts +0 -6
- package/modern/mobile-96988a65.d.ts +0 -6
- package/modern/mobile-f28cbba0.d.ts +0 -5
- package/modern/mobile.d.ts +0 -3
- package/modern/mobile.js +0 -14
- package/modern/mobile.module-1bc0502b.js +0 -4
- package/modern/shared-4cd3936b.d.ts +0 -65
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-72dda473.d.ts +0 -276
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/shared-4cd3936b.d.ts +0 -65
- package/src/desktop.ts +0 -1
- package/src/mobile.ts +0 -5
- package/types-1b036d4b.d.ts +0 -13
- package/types-72dda473.d.ts +0 -276
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-ebda875c.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
- package/utils-1574ad8b.d.ts +0 -29
package/esm/types.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ChangeEvent, FC, RefAttributes } from 'react';
|
|
2
|
+
import { InputProps } from "@alfalab/core-components-input";
|
|
3
|
+
import { BaseSelectProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
+
interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> {
|
|
5
|
+
/**
|
|
6
|
+
* Компонент ввода значения
|
|
7
|
+
*/
|
|
8
|
+
Input?: FC<InputProps & RefAttributes<HTMLInputElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* Пропсы, которые будут прокинуты в инпут
|
|
11
|
+
*/
|
|
12
|
+
inputProps?: InputProps & Record<string, unknown>;
|
|
13
|
+
/**
|
|
14
|
+
* Значение поля ввода
|
|
15
|
+
*/
|
|
16
|
+
value?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Поле доступно только для чтения
|
|
19
|
+
*/
|
|
20
|
+
readOnly?: InputProps['readOnly'];
|
|
21
|
+
/**
|
|
22
|
+
* Отображение иконки успеха
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Обработчик ввода
|
|
27
|
+
*/
|
|
28
|
+
onInput?: (event: ChangeEvent<HTMLInputElement> | null, payload: {
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
}
|
|
32
|
+
type MobileProps = {
|
|
33
|
+
/**
|
|
34
|
+
* Открывать в bottom-sheet
|
|
35
|
+
*/
|
|
36
|
+
isBottomSheet?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Пропсы анимации контента (CSSTransition)
|
|
39
|
+
*/
|
|
40
|
+
transitionProps?: NonNullable<BottomSheetSelectMobileProps['bottomSheetProps']>['transitionProps'];
|
|
41
|
+
};
|
|
42
|
+
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
43
|
+
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|
|
44
|
+
/**
|
|
45
|
+
* Пропсы для мобильного компонента
|
|
46
|
+
*/
|
|
47
|
+
mobileProps?: MobileProps;
|
|
48
|
+
/**
|
|
49
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
50
|
+
* @default 1024
|
|
51
|
+
*/
|
|
52
|
+
breakpoint?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
55
|
+
*/
|
|
56
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
57
|
+
}
|
|
58
|
+
export { InputAutocompleteCommonProps, InputAutocompleteMobileProps, InputAutocompleteProps };
|
package/esm/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/esm/utils.d.ts
ADDED
package/esm/utils.js
ADDED
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {};
|
|
1
|
+
export { InputAutocomplete } from "./Component.responsive";
|
|
2
|
+
export type { InputAutocompleteProps } from "./types";
|
package/index.js
CHANGED
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var Component_responsive = require('./Component.responsive.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
|
-
require('@alfalab/
|
|
8
|
+
require('@alfalab/core-components-mq');
|
|
9
9
|
require('./Component.desktop.js');
|
|
10
|
+
require('@alfalab/core-components-popover');
|
|
10
11
|
require('@alfalab/core-components-select/shared');
|
|
11
12
|
require('./autocomplete-field/Component.js');
|
|
12
13
|
require('react-merge-refs');
|
|
@@ -14,14 +15,13 @@ require('classnames');
|
|
|
14
15
|
require('@alfalab/core-components-input/desktop');
|
|
15
16
|
require('./Component.mobile.js');
|
|
16
17
|
require('lodash.throttle');
|
|
17
|
-
require('@alfalab/core-components-button/mobile');
|
|
18
|
-
require('@alfalab/core-components-input');
|
|
19
18
|
require('@alfalab/core-components-select/mobile');
|
|
20
19
|
require('./autocomplete-mobile-field/Component.js');
|
|
21
20
|
require('@alfalab/core-components-form-control/mobile');
|
|
22
21
|
require('@alfalab/core-components-shared');
|
|
23
|
-
require('
|
|
22
|
+
require('@alfalab/hooks');
|
|
23
|
+
require('./utils.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.InputAutocomplete = Component_responsive.
|
|
27
|
+
exports.InputAutocomplete = Component_responsive.InputAutocomplete;
|
|
@@ -2,21 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
6
|
-
var Component_modal_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
|
+
var Component_modal_mobile = require('../Component.modal.mobile.js');
|
|
7
7
|
require('tslib');
|
|
8
8
|
require('react');
|
|
9
9
|
require('react-merge-refs');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('lodash.throttle');
|
|
12
|
-
require('@alfalab/core-components-button/mobile');
|
|
13
|
-
require('@alfalab/core-components-input');
|
|
14
12
|
require('@alfalab/core-components-select/mobile');
|
|
15
|
-
require('
|
|
13
|
+
require('@alfalab/core-components-select/shared');
|
|
14
|
+
require('../autocomplete-mobile-field/Component.js');
|
|
16
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
17
16
|
require('@alfalab/core-components-shared');
|
|
18
17
|
require('@alfalab/hooks');
|
|
19
|
-
require('
|
|
18
|
+
require('../utils.js');
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15blr */
|
|
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 */
|
|
@@ -12,15 +12,8 @@
|
|
|
12
12
|
/* Hard up */
|
|
13
13
|
} :root {
|
|
14
14
|
} :root {
|
|
15
|
-
--gap-xs: 8px;
|
|
16
|
-
--gap-m: 16px;
|
|
17
15
|
} :root {
|
|
18
16
|
} :root {
|
|
19
|
-
} .input-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} .input-autocomplete__footer_a4rod {
|
|
23
|
-
display: flex
|
|
24
|
-
} .input-autocomplete__footer_a4rod > button + button {
|
|
25
|
-
margin-left: var(--gap-m);
|
|
26
|
-
}
|
|
17
|
+
} .input-autocomplete__input_q39f3 {
|
|
18
|
+
width: auto;
|
|
19
|
+
}
|
|
@@ -1,72 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
|
-
/**
|
|
8
|
-
* Компонент ввода значения
|
|
9
|
-
*/
|
|
10
|
-
Input?: FC<InputProps & RefAttributes<HTMLInputElement>>;
|
|
11
|
-
/**
|
|
12
|
-
* Пропсы, которые будут прокинуты в инпут
|
|
13
|
-
*/
|
|
14
|
-
inputProps?: InputProps & Record<string, unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* Значение поля ввода
|
|
17
|
-
*/
|
|
18
|
-
value?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Поле доступно только для чтения
|
|
21
|
-
*/
|
|
22
|
-
readOnly?: InputProps['readOnly'];
|
|
23
|
-
/**
|
|
24
|
-
* Отображение иконки успеха
|
|
25
|
-
*/
|
|
26
|
-
success?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Обработчик ввода
|
|
29
|
-
*/
|
|
30
|
-
onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Хранит функцию, с помощью которой можно обновить положение поповера
|
|
33
|
-
*/
|
|
34
|
-
updatePopover?: BaseSelectProps['updatePopover'];
|
|
35
|
-
};
|
|
36
|
-
declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "searchProps" | "showSearch" | "Field" | "Search"> & {
|
|
37
|
-
/**
|
|
38
|
-
* Компонент ввода значения
|
|
39
|
-
*/
|
|
40
|
-
Input?: React.FC<Omit<import("./autocomplete-field/Component").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
41
|
-
breakpoint?: number | undefined;
|
|
42
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
43
|
-
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Пропсы, которые будут прокинуты в инпут
|
|
46
|
-
*/
|
|
47
|
-
inputProps?: (Omit<import("./autocomplete-field/Component").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
48
|
-
breakpoint?: number | undefined;
|
|
49
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
50
|
-
} & Record<string, unknown>) | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Значение поля ввода
|
|
53
|
-
*/
|
|
54
|
-
value?: string | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Поле доступно только для чтения
|
|
57
|
-
*/
|
|
58
|
-
readOnly?: InputProps['readOnly'];
|
|
59
|
-
/**
|
|
60
|
-
* Отображение иконки успеха
|
|
61
|
-
*/
|
|
62
|
-
success?: boolean | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Обработчик ввода
|
|
65
|
-
*/
|
|
66
|
-
onInput?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Хранит функцию, с помощью которой можно обновить положение поповера
|
|
69
|
-
*/
|
|
70
|
-
updatePopover?: BaseSelectProps['updatePopover'];
|
|
71
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
72
|
-
export { InputAutocompleteDesktopProps, InputAutocompleteDesktop };
|
|
3
|
+
import { InputAutocompleteCommonProps } from "./types";
|
|
4
|
+
declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<InputAutocompleteCommonProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { InputAutocompleteDesktop };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Popover } from '@alfalab/core-components-popover/modern';
|
|
2
3
|
import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/modern/shared';
|
|
3
4
|
import { AutocompleteField } from './autocomplete-field/Component.js';
|
|
4
5
|
import 'react-merge-refs';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import '@alfalab/core-components-input/modern/desktop';
|
|
7
8
|
|
|
8
|
-
const InputAutocompleteDesktop = 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, { ref: ref, autocomplete: true, options: options, closeOnSelect: closeOnSelect, Option: Option$1, Field: AutocompleteField, Optgroup: Optgroup$1, OptionsList: OptionsList$1, ...restProps, fieldProps: {
|
|
9
|
+
const InputAutocompleteDesktop = 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, { view: 'desktop', Popover: Popover, ref: ref, autocomplete: true, options: options, closeOnSelect: closeOnSelect, Option: Option$1, Field: AutocompleteField, Optgroup: Optgroup$1, OptionsList: OptionsList$1, ...restProps, fieldProps: {
|
|
9
10
|
...restProps.fieldProps,
|
|
10
11
|
Input,
|
|
11
12
|
onInput,
|
|
@@ -1,98 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
2
3
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
|
-
/**
|
|
8
|
-
* Обработчик выбора
|
|
9
|
-
*/
|
|
10
|
-
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Обработчик ввода фильтра.
|
|
13
|
-
*/
|
|
14
|
-
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Значение поля ввода
|
|
17
|
-
*/
|
|
18
|
-
value?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Значение фильтра.
|
|
21
|
-
*/
|
|
22
|
-
filter?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Обработчик нажатия на кнопку "Отмена".
|
|
25
|
-
*/
|
|
26
|
-
onCancel?: () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
29
|
-
*/
|
|
30
|
-
onClearFilter?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Дополнительные пропсы компонента BottomSheet
|
|
33
|
-
*/
|
|
34
|
-
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
35
|
-
/**
|
|
36
|
-
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
37
|
-
*/
|
|
38
|
-
bottomSheetHeaderAddonsProps?: Record<string, unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* Дополнительные пропсы на кнопку "продолжить"
|
|
41
|
-
*/
|
|
42
|
-
continueButtonProps?: ButtonMobileProps;
|
|
43
|
-
/**
|
|
44
|
-
* Дополнительные пропсы на кнопку "отмена"
|
|
45
|
-
*/
|
|
46
|
-
cancelButtonProps?: ButtonMobileProps;
|
|
47
|
-
/**
|
|
48
|
-
* Кастомный инпут
|
|
49
|
-
*/
|
|
50
|
-
Input?: ElementType;
|
|
51
|
-
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
53
|
-
/**
|
|
54
|
-
* Обработчик выбора
|
|
55
|
-
*/
|
|
56
|
-
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
57
|
-
/**
|
|
58
|
-
* Обработчик ввода фильтра.
|
|
59
|
-
*/
|
|
60
|
-
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
61
|
-
/**
|
|
62
|
-
* Значение поля ввода
|
|
63
|
-
*/
|
|
64
|
-
value?: string | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Значение фильтра.
|
|
67
|
-
*/
|
|
68
|
-
filter?: string | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Обработчик нажатия на кнопку "Отмена".
|
|
71
|
-
*/
|
|
72
|
-
onCancel?: (() => void) | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
75
|
-
*/
|
|
76
|
-
onClearFilter?: (() => void) | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Дополнительные пропсы компонента BottomSheet
|
|
79
|
-
*/
|
|
80
|
-
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
81
|
-
/**
|
|
82
|
-
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
83
|
-
*/
|
|
84
|
-
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Дополнительные пропсы на кнопку "продолжить"
|
|
87
|
-
*/
|
|
88
|
-
continueButtonProps?: ButtonMobileProps | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Дополнительные пропсы на кнопку "отмена"
|
|
91
|
-
*/
|
|
92
|
-
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Кастомный инпут
|
|
95
|
-
*/
|
|
96
|
-
Input?: React.ElementType<any> | undefined;
|
|
4
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import("./types").InputAutocompleteCommonProps & {
|
|
5
|
+
isBottomSheet?: boolean | undefined;
|
|
6
|
+
transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
|
|
97
7
|
} & React.RefAttributes<unknown>>;
|
|
98
|
-
export {
|
|
8
|
+
export { InputAutocompleteMobile };
|
|
@@ -2,86 +2,84 @@ import React, { useState, useRef, useMemo } from 'react';
|
|
|
2
2
|
import mergeRefs from 'react-merge-refs';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import throttle from 'lodash.throttle';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SelectMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
5
|
+
import { SelectMobile, SelectModalMobile } from '@alfalab/core-components-select/modern/mobile';
|
|
6
|
+
import { Footer } from '@alfalab/core-components-select/modern/shared';
|
|
8
7
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
9
|
-
import {
|
|
8
|
+
import { searchFilterStub } from './utils.js';
|
|
10
9
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
10
|
import '@alfalab/core-components-shared/modern';
|
|
12
11
|
import '@alfalab/hooks';
|
|
13
12
|
|
|
14
|
-
const
|
|
15
|
-
|
|
13
|
+
const styles = {"input":"input-autocomplete__input_q39f3"};
|
|
14
|
+
require('./mobile.css')
|
|
15
|
+
|
|
16
|
+
const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow = null, label, placeholder = '', size = 's', open: openProp, onInput, onOpen, multiple, inputProps, isBottomSheet = true, dataTestId, transitionProps, ...restProps }, ref) => {
|
|
16
17
|
const [open, setOpen] = useState(false);
|
|
17
|
-
const
|
|
18
|
+
const frozenValue = useRef('');
|
|
19
|
+
const searchInputRef = useRef(null);
|
|
18
20
|
const targetRef = useRef(null);
|
|
19
|
-
const
|
|
21
|
+
const restorePrevValue = () => onInput?.(null, { value: frozenValue.current });
|
|
22
|
+
const setModalVisibility = (isOpen) => {
|
|
20
23
|
if (openProp === undefined) {
|
|
21
24
|
setOpen(isOpen);
|
|
22
25
|
}
|
|
23
|
-
if (
|
|
24
|
-
|
|
26
|
+
if (isOpen) {
|
|
27
|
+
frozenValue.current = value || '';
|
|
25
28
|
}
|
|
29
|
+
onOpen?.({ open: isOpen, name });
|
|
26
30
|
};
|
|
27
31
|
const handleOpen = (payload) => {
|
|
28
|
-
|
|
32
|
+
setModalVisibility(Boolean(payload.open));
|
|
29
33
|
};
|
|
30
34
|
const handleOptionsListTouchMove = useMemo(() => throttle(() => {
|
|
31
|
-
const input =
|
|
35
|
+
const input = searchInputRef.current;
|
|
32
36
|
if (input && document.activeElement === input) {
|
|
33
37
|
input.blur();
|
|
34
38
|
}
|
|
35
39
|
}, 300), []);
|
|
36
|
-
const handleApply = () =>
|
|
37
|
-
setBottomSheetVisibility(false);
|
|
38
|
-
onChange(filter);
|
|
39
|
-
};
|
|
40
|
-
const handleChange = (payload) => {
|
|
41
|
-
onChange(payload);
|
|
42
|
-
if (multiple) {
|
|
43
|
-
// После выбора опции возвращаем фокус в поле ввода.
|
|
44
|
-
bottomSheetInputRef.current?.focus();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
40
|
+
const handleApply = () => setModalVisibility(false);
|
|
47
41
|
const handleCancel = () => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onCancel();
|
|
51
|
-
}
|
|
42
|
+
setModalVisibility(false);
|
|
43
|
+
restorePrevValue();
|
|
52
44
|
};
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (event.relatedTarget === targetRef.current &&
|
|
57
|
-
input &&
|
|
58
|
-
input === document.activeElement) {
|
|
59
|
-
input.blur();
|
|
60
|
-
}
|
|
45
|
+
const handleExiting = (node) => {
|
|
46
|
+
targetRef.current?.focus();
|
|
47
|
+
transitionProps?.onExiting?.(node);
|
|
61
48
|
};
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
...bottomSheetProps,
|
|
75
|
-
containerProps: {
|
|
76
|
-
onTouchMove: handleOptionsListTouchMove,
|
|
77
|
-
...bottomSheetProps.containerProps,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
49
|
+
const isOpen = Boolean(open || openProp);
|
|
50
|
+
const Component = isBottomSheet ? SelectMobile : SelectModalMobile;
|
|
51
|
+
const componentProps = {
|
|
52
|
+
title: label || placeholder,
|
|
53
|
+
onClose: restorePrevValue,
|
|
54
|
+
transitionProps: {
|
|
55
|
+
...transitionProps,
|
|
56
|
+
onExiting: handleExiting,
|
|
57
|
+
},
|
|
58
|
+
[isBottomSheet ? 'containerProps' : 'componentDivProps']: {
|
|
59
|
+
onTouchMove: handleOptionsListTouchMove,
|
|
60
|
+
},
|
|
80
61
|
};
|
|
81
|
-
return (React.createElement(
|
|
82
|
-
|
|
62
|
+
return (React.createElement(Component, { Field: AutocompleteMobileField, ...restProps, ...(isBottomSheet
|
|
63
|
+
? { bottomSheetProps: componentProps }
|
|
64
|
+
: { modalProps: componentProps }), dataTestId: dataTestId, useWithApplyHook: false, showSearch: true, searchProps: {
|
|
65
|
+
value,
|
|
66
|
+
filterFn: searchFilterStub,
|
|
67
|
+
componentProps: {
|
|
68
|
+
leftAddons: null,
|
|
69
|
+
placeholder,
|
|
70
|
+
...inputProps,
|
|
71
|
+
className: cn(styles.input, inputProps?.className),
|
|
72
|
+
clear: inputProps?.clear ?? false,
|
|
73
|
+
ref: mergeRefs([searchInputRef, inputProps?.ref]),
|
|
74
|
+
onChange: onInput,
|
|
75
|
+
},
|
|
76
|
+
}, Search: Input, ref: mergeRefs([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: {
|
|
77
|
+
footer: (React.createElement(Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })),
|
|
83
78
|
...restProps.optionsListProps,
|
|
84
|
-
}, fieldProps: {
|
|
79
|
+
}, fieldProps: {
|
|
80
|
+
value: isOpen ? frozenValue.current : value,
|
|
81
|
+
...restProps.fieldProps,
|
|
82
|
+
} }));
|
|
85
83
|
});
|
|
86
84
|
|
|
87
85
|
export { InputAutocompleteMobile };
|
|
@@ -1,91 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
2
3
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import { BaseSelectChangePayload } from "./shared-4cd3936b";
|
|
7
|
-
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
|
-
/**
|
|
9
|
-
* Обработчик выбора
|
|
10
|
-
*/
|
|
11
|
-
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
12
|
-
/**
|
|
13
|
-
* Обработчик ввода фильтра.
|
|
14
|
-
*/
|
|
15
|
-
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Значение поля ввода
|
|
18
|
-
*/
|
|
19
|
-
value?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Значение фильтра.
|
|
22
|
-
*/
|
|
23
|
-
filter?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Обработчик нажатия на кнопку "Отмена".
|
|
26
|
-
*/
|
|
27
|
-
onCancel?: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
30
|
-
*/
|
|
31
|
-
onClearFilter?: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* Дополнительные пропсы на слот под заголовком
|
|
34
|
-
*/
|
|
35
|
-
bottomAddonProps?: Record<string, unknown>;
|
|
36
|
-
/**
|
|
37
|
-
* Дополнительные пропсы на кнопку "продолжить"
|
|
38
|
-
*/
|
|
39
|
-
continueButtonProps?: ButtonMobileProps;
|
|
40
|
-
/**
|
|
41
|
-
* Дополнительные пропсы на кнопку "отмена"
|
|
42
|
-
*/
|
|
43
|
-
cancelButtonProps?: ButtonMobileProps;
|
|
44
|
-
/**
|
|
45
|
-
* Кастомный инпут
|
|
46
|
-
*/
|
|
47
|
-
Input?: ElementType;
|
|
48
|
-
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
|
-
/**
|
|
51
|
-
* Обработчик выбора
|
|
52
|
-
*/
|
|
53
|
-
onChange: (payload: string | BaseSelectChangePayload) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Обработчик ввода фильтра.
|
|
56
|
-
*/
|
|
57
|
-
onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Значение поля ввода
|
|
60
|
-
*/
|
|
61
|
-
value?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Значение фильтра.
|
|
64
|
-
*/
|
|
65
|
-
filter?: string | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Обработчик нажатия на кнопку "Отмена".
|
|
68
|
-
*/
|
|
69
|
-
onCancel?: (() => void) | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Обработчик нажатия на крестик в инпуте фильтра.
|
|
72
|
-
*/
|
|
73
|
-
onClearFilter?: (() => void) | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Дополнительные пропсы на слот под заголовком
|
|
76
|
-
*/
|
|
77
|
-
bottomAddonProps?: Record<string, unknown> | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Дополнительные пропсы на кнопку "продолжить"
|
|
80
|
-
*/
|
|
81
|
-
continueButtonProps?: ButtonMobileProps | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Дополнительные пропсы на кнопку "отмена"
|
|
84
|
-
*/
|
|
85
|
-
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Кастомный инпут
|
|
88
|
-
*/
|
|
89
|
-
Input?: React.ElementType<any> | undefined;
|
|
4
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<import("./types").InputAutocompleteCommonProps & {
|
|
5
|
+
isBottomSheet?: boolean | undefined;
|
|
6
|
+
transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
|
|
90
7
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
export {
|
|
8
|
+
export { InputAutocompleteModalMobile };
|