@alfalab/core-components-input-autocomplete 10.2.2 → 10.3.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 -3
- package/Component.mobile.d.ts +2 -2
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile.d.ts +3 -3
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +6 -6
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.d.ts +1 -1
- 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 +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/cssm/Component.desktop.d.ts +3 -3
- package/cssm/Component.mobile.d.ts +2 -2
- package/cssm/Component.modal.mobile.d.ts +3 -3
- package/cssm/Component.responsive.d.ts +6 -6
- package/cssm/autocomplete-field/Component.d.ts +1 -1
- package/cssm/autocomplete-mobile-field/Component.d.ts +2 -2
- package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/cssm/{desktop.js → desktop/index.js} +3 -3
- package/{mobile.d.ts → cssm/mobile/index.d.ts} +2 -2
- package/cssm/{mobile.js → mobile/index.js} +5 -5
- package/{modern/desktop.d.ts → desktop/index.d.ts} +1 -1
- package/{desktop.js → desktop/index.js} +2 -2
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +3 -3
- package/esm/Component.mobile.d.ts +2 -2
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.d.ts +3 -3
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.d.ts +6 -6
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.d.ts +1 -1
- 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 +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/{desktop.d.ts → esm/desktop/index.d.ts} +1 -1
- package/esm/{desktop.js → desktop/index.js} +2 -2
- package/esm/index.js +1 -1
- package/{cssm/mobile.d.ts → esm/mobile/index.d.ts} +2 -2
- package/esm/{mobile.js → mobile/index.js} +4 -4
- package/esm/mobile.css +4 -4
- package/esm/{mobile.module-a36ccaa2.js → mobile.module-846d8b52.js} +1 -1
- package/index.js +1 -1
- package/{modern/mobile.d.ts → mobile/index.d.ts} +2 -2
- package/{mobile.js → mobile/index.js} +4 -4
- package/mobile/package.json +3 -0
- package/mobile.css +4 -4
- package/{mobile.module-ef956a02.js → mobile.module-7c0f2a72.js} +1 -1
- package/modern/Component.desktop.d.ts +4 -4
- package/modern/Component.mobile.d.ts +3 -3
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.d.ts +4 -4
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +9 -9
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.d.ts +1 -1
- 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 +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/{esm/desktop.d.ts → modern/desktop/index.d.ts} +1 -1
- package/modern/{desktop.js → desktop/index.js} +2 -2
- package/modern/index.js +1 -1
- package/{esm/mobile.d.ts → modern/mobile/index.d.ts} +2 -2
- package/modern/{mobile.js → mobile/index.js} +4 -4
- package/modern/mobile.css +4 -4
- package/modern/{mobile.module-ba8a299e.js → mobile.module-7bf90bfc.js} +1 -1
- package/package.json +6 -26
- package/src/{desktop.ts → desktop/index.ts} +1 -1
- package/src/desktop/package.json +3 -0
- package/src/{mobile.ts → mobile/index.ts} +2 -2
- package/src/mobile/package.json +3 -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/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/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/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/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/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/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/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/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/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/Component.desktop.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, FC, RefAttributes } from "react";
|
|
4
4
|
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
-
import { BaseSelectProps } from "
|
|
5
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент ввода значения
|
|
@@ -37,14 +37,14 @@ declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<Bas
|
|
|
37
37
|
/**
|
|
38
38
|
* Компонент ввода значения
|
|
39
39
|
*/
|
|
40
|
-
Input?: React.FC<Omit<import("
|
|
40
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
41
41
|
breakpoint?: number | undefined;
|
|
42
42
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
43
43
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* Пропсы, которые будут прокинуты в инпут
|
|
46
46
|
*/
|
|
47
|
-
inputProps?: (Omit<import("
|
|
47
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
48
48
|
breakpoint?: number | undefined;
|
|
49
49
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
50
50
|
} & Record<string, unknown>) | undefined;
|
package/Component.mobile.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Обработчик выбора
|
package/Component.mobile.js
CHANGED
|
@@ -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-
|
|
14
|
+
var mobile_module = require('./mobile.module-7c0f2a72.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/core-components-shared');
|
|
17
17
|
require('@alfalab/hooks');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { SelectModalMobileProps } from "
|
|
6
|
-
import { BaseSelectChangePayload } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { SelectModalMobileProps } from "@alfalab/core-components-select/mobile";
|
|
6
|
+
import { BaseSelectChangePayload } from "@alfalab/core-components-select/shared";
|
|
7
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
8
|
/**
|
|
9
9
|
* Обработчик выбора
|
|
@@ -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-
|
|
14
|
+
var mobile_module = require('./mobile.module-7c0f2a72.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/core-components-shared');
|
|
17
17
|
require('@alfalab/hooks');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonMobileProps } from "
|
|
4
|
-
import { BaseSelectProps } from "
|
|
3
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
4
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
5
5
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
6
6
|
import { InputAutocompleteMobileProps } from "./Component.mobile";
|
|
7
7
|
type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAutocompleteMobileProps & {
|
|
@@ -13,11 +13,11 @@ type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAut
|
|
|
13
13
|
};
|
|
14
14
|
type InputAutocompleteMedia = 'desktop' | 'mobile';
|
|
15
15
|
declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "searchProps" | "showSearch" | "Field" | "Search"> & {
|
|
16
|
-
Input?: React.FC<Omit<import("
|
|
16
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
20
|
-
inputProps?: (Omit<import("
|
|
20
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
21
21
|
breakpoint?: number | undefined;
|
|
22
22
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
23
23
|
} & Record<string, unknown>) | undefined;
|
|
@@ -27,13 +27,13 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
29
|
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
|
-
onChange: (payload: string | import("
|
|
30
|
+
onChange: (payload: string | import("@alfalab/core-components-select/shared").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
33
33
|
filter?: string | undefined;
|
|
34
34
|
onCancel?: (() => void) | undefined;
|
|
35
35
|
onClearFilter?: (() => void) | undefined;
|
|
36
|
-
bottomSheetProps?: Partial<import("
|
|
36
|
+
bottomSheetProps?: Partial<import("@alfalab/core-components-bottom-sheet").BottomSheetProps> | undefined;
|
|
37
37
|
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
38
38
|
continueButtonProps?: ButtonMobileProps | undefined;
|
|
39
39
|
cancelButtonProps?: ButtonMobileProps | undefined;
|
package/Component.responsive.js
CHANGED
|
@@ -19,7 +19,7 @@ require('@alfalab/core-components-select/mobile');
|
|
|
19
19
|
require('./autocomplete-mobile-field/Component.js');
|
|
20
20
|
require('@alfalab/core-components-form-control/mobile');
|
|
21
21
|
require('@alfalab/core-components-shared');
|
|
22
|
-
require('./mobile.module-
|
|
22
|
+
require('./mobile.module-7c0f2a72.js');
|
|
23
23
|
|
|
24
24
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FieldProps } from "
|
|
3
|
+
import { FieldProps } from "@alfalab/core-components-select/shared";
|
|
4
4
|
import { InputAutocompleteDesktopProps } from "../Component.desktop";
|
|
5
5
|
type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
|
|
6
6
|
declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
|
|
@@ -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-
|
|
17
|
+
var styles = {"arrow":"input-autocomplete__arrow_b5doo","error":"input-autocomplete__error_b5doo"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
import { FormControlMobileProps } from "
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "
|
|
4
|
+
import { FormControlMobileProps } from "@alfalab/core-components-form-control/mobile";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type FieldProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент FormControl
|
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"input-
|
|
17
|
+
var styles = {"component":"input-autocomplete__component_16kcs","field":"input-autocomplete__field_16kcs","disabled":"input-autocomplete__disabled_16kcs","placeholder":"input-autocomplete__placeholder_16kcs","contentWrapper":"input-autocomplete__contentWrapper_16kcs","value":"input-autocomplete__value_16kcs","focusVisible":"input-autocomplete__focusVisible_16kcs"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 158ng */
|
|
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-
|
|
21
|
+
} .input-autocomplete__component_16kcs {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_16kcs:not(.input-autocomplete__disabled_16kcs) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_16kcs {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_16kcs {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_16kcs {
|
|
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-
|
|
39
|
+
} .input-autocomplete__value_16kcs {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_16kcs {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, FC, RefAttributes } from "react";
|
|
4
4
|
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
-
import { BaseSelectProps } from "
|
|
5
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент ввода значения
|
|
@@ -37,14 +37,14 @@ declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<Bas
|
|
|
37
37
|
/**
|
|
38
38
|
* Компонент ввода значения
|
|
39
39
|
*/
|
|
40
|
-
Input?: React.FC<Omit<import("
|
|
40
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
41
41
|
breakpoint?: number | undefined;
|
|
42
42
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
43
43
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* Пропсы, которые будут прокинуты в инпут
|
|
46
46
|
*/
|
|
47
|
-
inputProps?: (Omit<import("
|
|
47
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
48
48
|
breakpoint?: number | undefined;
|
|
49
49
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
50
50
|
} & Record<string, unknown>) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Обработчик выбора
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { SelectModalMobileProps } from "
|
|
6
|
-
import { BaseSelectChangePayload } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { SelectModalMobileProps } from "@alfalab/core-components-select/mobile";
|
|
6
|
+
import { BaseSelectChangePayload } from "@alfalab/core-components-select/shared";
|
|
7
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
8
|
/**
|
|
9
9
|
* Обработчик выбора
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonMobileProps } from "
|
|
4
|
-
import { BaseSelectProps } from "
|
|
3
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
4
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
5
5
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
6
6
|
import { InputAutocompleteMobileProps } from "./Component.mobile";
|
|
7
7
|
type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAutocompleteMobileProps & {
|
|
@@ -13,11 +13,11 @@ type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAut
|
|
|
13
13
|
};
|
|
14
14
|
type InputAutocompleteMedia = 'desktop' | 'mobile';
|
|
15
15
|
declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "searchProps" | "showSearch" | "Field" | "Search"> & {
|
|
16
|
-
Input?: React.FC<Omit<import("
|
|
16
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
20
|
-
inputProps?: (Omit<import("
|
|
20
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
21
21
|
breakpoint?: number | undefined;
|
|
22
22
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
23
23
|
} & Record<string, unknown>) | undefined;
|
|
@@ -27,13 +27,13 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
29
|
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
|
-
onChange: (payload: string | import("
|
|
30
|
+
onChange: (payload: string | import("@alfalab/core-components-select/shared").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
33
33
|
filter?: string | undefined;
|
|
34
34
|
onCancel?: (() => void) | undefined;
|
|
35
35
|
onClearFilter?: (() => void) | undefined;
|
|
36
|
-
bottomSheetProps?: Partial<import("
|
|
36
|
+
bottomSheetProps?: Partial<import("@alfalab/core-components-bottom-sheet").BottomSheetProps> | undefined;
|
|
37
37
|
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
38
38
|
continueButtonProps?: ButtonMobileProps | undefined;
|
|
39
39
|
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FieldProps } from "
|
|
3
|
+
import { FieldProps } from "@alfalab/core-components-select/shared";
|
|
4
4
|
import { InputAutocompleteDesktopProps } from "../Component.desktop";
|
|
5
5
|
type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
|
|
6
6
|
declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
import { FormControlMobileProps } from "
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "
|
|
4
|
+
import { FormControlMobileProps } from "@alfalab/core-components-form-control/mobile";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type FieldProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент FormControl
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { InputAutocompleteDesktop, InputAutocompleteDesktopProps } from "
|
|
1
|
+
export { InputAutocompleteDesktop, InputAutocompleteDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-select/cssm/shared');
|
|
9
|
-
require('
|
|
9
|
+
require('../autocomplete-field/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('@alfalab/core-components-input/cssm/desktop');
|
|
13
|
-
require('
|
|
13
|
+
require('../autocomplete-field/index.module.css');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { InputAutocompleteMobile, InputAutocompleteMobileProps } from "
|
|
2
|
-
export { InputAutocompleteModalMobile, InputAutocompleteModalMobileProps } from "
|
|
1
|
+
export { InputAutocompleteMobile, InputAutocompleteMobileProps } from "../Component.mobile";
|
|
2
|
+
export { InputAutocompleteModalMobile, InputAutocompleteModalMobileProps } from "../Component.modal.mobile";
|
|
3
3
|
export {};
|
|
@@ -2,8 +2,8 @@
|
|
|
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');
|
|
@@ -12,12 +12,12 @@ require('lodash.throttle');
|
|
|
12
12
|
require('@alfalab/core-components-button/cssm/mobile');
|
|
13
13
|
require('@alfalab/core-components-input/cssm');
|
|
14
14
|
require('@alfalab/core-components-select/cssm/mobile');
|
|
15
|
-
require('
|
|
15
|
+
require('../autocomplete-mobile-field/Component.js');
|
|
16
16
|
require('@alfalab/core-components-form-control/cssm/mobile');
|
|
17
17
|
require('@alfalab/core-components-shared/cssm');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
|
-
require('
|
|
20
|
-
require('
|
|
19
|
+
require('../autocomplete-mobile-field/index.module.css');
|
|
20
|
+
require('../mobile.module.css');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { InputAutocompleteDesktop, InputAutocompleteDesktopProps } from "
|
|
1
|
+
export { InputAutocompleteDesktop, InputAutocompleteDesktopProps } from "../Component.desktop";
|
|
2
2
|
export {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-select/shared');
|
|
9
|
-
require('
|
|
9
|
+
require('../autocomplete-field/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('@alfalab/core-components-input/desktop');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, FC, RefAttributes } from "react";
|
|
4
4
|
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
-
import { BaseSelectProps } from "
|
|
5
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент ввода значения
|
|
@@ -37,14 +37,14 @@ declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<Bas
|
|
|
37
37
|
/**
|
|
38
38
|
* Компонент ввода значения
|
|
39
39
|
*/
|
|
40
|
-
Input?: React.FC<Omit<import("
|
|
40
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
41
41
|
breakpoint?: number | undefined;
|
|
42
42
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
43
43
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* Пропсы, которые будут прокинуты в инпут
|
|
46
46
|
*/
|
|
47
|
-
inputProps?: (Omit<import("
|
|
47
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
48
48
|
breakpoint?: number | undefined;
|
|
49
49
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
50
50
|
} & Record<string, unknown>) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Обработчик выбора
|
package/esm/Component.mobile.js
CHANGED
|
@@ -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-
|
|
10
|
+
import { s as styles } from './mobile.module-846d8b52.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/core-components-shared/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "
|
|
5
|
-
import { SelectModalMobileProps } from "
|
|
6
|
-
import { BaseSelectChangePayload } from "
|
|
4
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
5
|
+
import { SelectModalMobileProps } from "@alfalab/core-components-select/mobile";
|
|
6
|
+
import { BaseSelectChangePayload } from "@alfalab/core-components-select/shared";
|
|
7
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
8
|
/**
|
|
9
9
|
* Обработчик выбора
|
|
@@ -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-
|
|
10
|
+
import { s as styles } from './mobile.module-846d8b52.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/core-components-shared/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonMobileProps } from "
|
|
4
|
-
import { BaseSelectProps } from "
|
|
3
|
+
import { ButtonMobileProps } from "@alfalab/core-components-button/mobile";
|
|
4
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
5
5
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
6
6
|
import { InputAutocompleteMobileProps } from "./Component.mobile";
|
|
7
7
|
type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAutocompleteMobileProps & {
|
|
@@ -13,11 +13,11 @@ type InputAutocompleteResponsiveProps = InputAutocompleteDesktopProps & InputAut
|
|
|
13
13
|
};
|
|
14
14
|
type InputAutocompleteMedia = 'desktop' | 'mobile';
|
|
15
15
|
declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "searchProps" | "showSearch" | "Field" | "Search"> & {
|
|
16
|
-
Input?: React.FC<Omit<import("
|
|
16
|
+
Input?: React.FC<Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
17
17
|
breakpoint?: number | undefined;
|
|
18
18
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
19
19
|
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
20
|
-
inputProps?: (Omit<import("
|
|
20
|
+
inputProps?: (Omit<import("@alfalab/core-components-input/components/base-input").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
21
21
|
breakpoint?: number | undefined;
|
|
22
22
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
23
23
|
} & Record<string, unknown>) | undefined;
|
|
@@ -27,13 +27,13 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
29
|
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
|
-
onChange: (payload: string | import("
|
|
30
|
+
onChange: (payload: string | import("@alfalab/core-components-select/shared").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
33
33
|
filter?: string | undefined;
|
|
34
34
|
onCancel?: (() => void) | undefined;
|
|
35
35
|
onClearFilter?: (() => void) | undefined;
|
|
36
|
-
bottomSheetProps?: Partial<import("
|
|
36
|
+
bottomSheetProps?: Partial<import("@alfalab/core-components-bottom-sheet").BottomSheetProps> | undefined;
|
|
37
37
|
bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
|
|
38
38
|
continueButtonProps?: ButtonMobileProps | undefined;
|
|
39
39
|
cancelButtonProps?: ButtonMobileProps | undefined;
|
|
@@ -15,7 +15,7 @@ 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
17
|
import '@alfalab/core-components-shared/esm';
|
|
18
|
-
import './mobile.module-
|
|
18
|
+
import './mobile.module-846d8b52.js';
|
|
19
19
|
|
|
20
20
|
var InputAutocompleteResponsive = forwardRef(function (_a, ref) {
|
|
21
21
|
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FieldProps } from "
|
|
3
|
+
import { FieldProps } from "@alfalab/core-components-select/shared";
|
|
4
4
|
import { InputAutocompleteDesktopProps } from "../Component.desktop";
|
|
5
5
|
type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
|
|
6
6
|
declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
|
|
@@ -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-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_b5doo","error":"input-autocomplete__error_b5doo"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
import { FormControlMobileProps } from "
|
|
5
|
-
import { FieldProps as BaseFieldProps } from "
|
|
4
|
+
import { FormControlMobileProps } from "@alfalab/core-components-form-control/mobile";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
type FieldProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Компонент FormControl
|
|
@@ -5,7 +5,7 @@ import { FormControlMobile } from '@alfalab/core-components-form-control/esm/mob
|
|
|
5
5
|
import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
6
6
|
import { useFocus } from '@alfalab/hooks';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"input-
|
|
8
|
+
var styles = {"component":"input-autocomplete__component_16kcs","field":"input-autocomplete__field_16kcs","disabled":"input-autocomplete__disabled_16kcs","placeholder":"input-autocomplete__placeholder_16kcs","contentWrapper":"input-autocomplete__contentWrapper_16kcs","value":"input-autocomplete__value_16kcs","focusVisible":"input-autocomplete__focusVisible_16kcs"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var AutocompleteMobileField = function (_a) {
|