@alfalab/core-components-input-autocomplete 10.2.1 → 10.2.2
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.mobile-96988a65.d.ts → Component.mobile-f28cbba0.d.ts} +1 -1
- package/Component.mobile.d.ts +1 -1
- package/Component.mobile.js +1 -1
- package/{Component.modal.mobile-96988a65.d.ts → Component.modal.mobile-0f4b9bed.d.ts} +1 -1
- package/Component.modal.mobile.d.ts +1 -1
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +2 -2
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/cssm/Component.mobile.d.ts +2 -2
- package/cssm/Component.modal.mobile.d.ts +2 -2
- package/cssm/Component.responsive.d.ts +3 -3
- package/cssm/index-c76d6398.d.ts +1 -1
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-b845ad92.js → mobile.module-a36ccaa2.js} +1 -1
- package/index-c76d6398.d.ts +1 -1
- package/index-ebda875c.d.ts +124 -18
- package/index.js +1 -1
- package/mobile-f28cbba0.d.ts +4 -4
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-15cb0efe.js → mobile.module-ef956a02.js} +1 -1
- package/modern/Component.desktop-ebda875c.d.ts +6 -0
- package/modern/Component.mobile.d.ts +1 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.d.ts +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +2 -2
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/index-c76d6398.d.ts +1 -1
- package/modern/index-ebda875c.d.ts +124 -18
- package/modern/index.js +1 -1
- package/modern/mobile-96988a65.d.ts +6 -2
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-40321fa2.js → mobile.module-ba8a299e.js} +1 -1
- package/package.json +2 -2
- package/shared-4cd3936b.d.ts +2 -2
- package/cssm/Component-511e54fa.d.ts +0 -9
- package/modern/Component.mobile-ebda875c.d.ts +0 -6
- /package/cssm/{desktop-89f0cb07.d.ts → desktop-69921c40.d.ts} +0 -0
- /package/cssm/{mobile-511e54fa.d.ts → mobile-89f0cb07.d.ts} +0 -0
- /package/{hook-0f4b9bed.d.ts → hook-8abfea97.d.ts} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
5
|
+
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
6
6
|
import { BaseSelectProps } from "./typings-0f4b9bed";
|
|
7
7
|
type AdditionalMobileProps = {
|
|
8
8
|
/**
|
package/Component.mobile.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
49
49
|
*/
|
|
50
50
|
Input?: ElementType;
|
|
51
51
|
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Обработчик выбора
|
|
55
55
|
*/
|
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-ef956a02.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
3
|
import { ModalMobile } from "./Component.mobile-f1f15074";
|
|
4
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
4
|
+
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
5
5
|
import { BaseSelectProps } from "./typings-0f4b9bed";
|
|
6
6
|
type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
7
|
/**
|
|
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
46
46
|
*/
|
|
47
47
|
Input?: ElementType;
|
|
48
48
|
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "
|
|
49
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Обработчик выбора
|
|
52
52
|
*/
|
|
@@ -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-ef956a02.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/core-components-shared');
|
|
17
17
|
require('@alfalab/hooks');
|
|
@@ -26,7 +26,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
26
26
|
success?: boolean | undefined;
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
|
-
} & Omit<BaseSelectProps, "onScroll" | "
|
|
29
|
+
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
30
|
onChange: (payload: string | import("./shared-4cd3936b").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
@@ -44,5 +44,5 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
44
44
|
* @default 1024
|
|
45
45
|
*/
|
|
46
46
|
breakpoint?: number | undefined;
|
|
47
|
-
} & React.RefAttributes<
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement | HTMLInputElement>>;
|
|
48
48
|
export { InputAutocompleteResponsiveProps, InputAutocompleteMedia, InputAutocompleteResponsive };
|
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-ef956a02.js');
|
|
23
23
|
|
|
24
24
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
25
25
|
|
|
@@ -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_st6vv","error":"input-autocomplete__error_st6vv"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -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_btb9r","field":"input-autocomplete__field_btb9r","disabled":"input-autocomplete__disabled_btb9r","placeholder":"input-autocomplete__placeholder_btb9r","contentWrapper":"input-autocomplete__contentWrapper_btb9r","value":"input-autocomplete__value_btb9r","focusVisible":"input-autocomplete__focusVisible_btb9r"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qzst */
|
|
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_btb9r {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_btb9r:not(.input-autocomplete__disabled_btb9r) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_btb9r {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_btb9r {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_btb9r {
|
|
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_btb9r {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_btb9r {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "./mobile-
|
|
4
|
+
import { ButtonMobileProps } from "./mobile-89f0cb07";
|
|
5
5
|
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
6
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer' | 'searchProps' | 'showSearch' | 'Search'> & {
|
|
7
7
|
/**
|
|
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
49
49
|
*/
|
|
50
50
|
Input?: ElementType;
|
|
51
51
|
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Обработчик выбора
|
|
55
55
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { ButtonMobileProps } from "./mobile-
|
|
4
|
+
import { ButtonMobileProps } from "./mobile-89f0cb07";
|
|
5
5
|
import { SelectModalMobileProps } from "./mobile-f28cbba0";
|
|
6
6
|
import { BaseSelectChangePayload } from "./shared-4cd3936b";
|
|
7
7
|
type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
46
46
|
*/
|
|
47
47
|
Input?: ElementType;
|
|
48
48
|
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "
|
|
49
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Обработчик выбора
|
|
52
52
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonMobileProps } from "./mobile-
|
|
3
|
+
import { ButtonMobileProps } from "./mobile-89f0cb07";
|
|
4
4
|
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
5
5
|
import { InputAutocompleteDesktopProps } from "./Component.desktop";
|
|
6
6
|
import { InputAutocompleteMobileProps } from "./Component.mobile";
|
|
@@ -26,7 +26,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
26
26
|
success?: boolean | undefined;
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
|
-
} & Omit<BaseSelectProps, "onScroll" | "
|
|
29
|
+
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
30
|
onChange: (payload: string | import("./shared-4cd3936b").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
@@ -44,5 +44,5 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
44
44
|
* @default 1024
|
|
45
45
|
*/
|
|
46
46
|
breakpoint?: number | undefined;
|
|
47
|
-
} & React.RefAttributes<
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement | HTMLInputElement>>;
|
|
48
48
|
export { InputAutocompleteResponsiveProps, InputAutocompleteMedia, InputAutocompleteResponsive };
|
package/cssm/index-c76d6398.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
174
174
|
className?: string;
|
|
175
175
|
}> | ReactElement;
|
|
176
176
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
177
|
-
size?: "
|
|
177
|
+
size?: "s" | "xs" | "xxs" | undefined;
|
|
178
178
|
className?: string | undefined;
|
|
179
179
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
180
180
|
dataTestId?: string | undefined;
|
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-a36ccaa2.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/core-components-shared/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
@@ -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-a36ccaa2.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
12
12
|
import '@alfalab/core-components-shared/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
@@ -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-a36ccaa2.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"]);
|
|
@@ -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_st6vv","error":"input-autocomplete__error_st6vv"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
@@ -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_btb9r","field":"input-autocomplete__field_btb9r","disabled":"input-autocomplete__disabled_btb9r","placeholder":"input-autocomplete__placeholder_btb9r","contentWrapper":"input-autocomplete__contentWrapper_btb9r","value":"input-autocomplete__value_btb9r","focusVisible":"input-autocomplete__focusVisible_btb9r"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qzst */
|
|
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_btb9r {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_btb9r:not(.input-autocomplete__disabled_btb9r) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_btb9r {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_btb9r {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_btb9r {
|
|
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_btb9r {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_btb9r {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
package/esm/index.js
CHANGED
|
@@ -16,4 +16,4 @@ 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
18
|
import '@alfalab/core-components-shared/esm';
|
|
19
|
-
import './mobile.module-
|
|
19
|
+
import './mobile.module-a36ccaa2.js';
|
package/esm/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g0xmq */
|
|
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-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_1pcau {
|
|
20
20
|
padding: var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1pcau {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1pcau > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/esm/mobile.js
CHANGED
|
@@ -12,4 +12,4 @@ import './autocomplete-mobile-field/Component.js';
|
|
|
12
12
|
import '@alfalab/core-components-form-control/esm/mobile';
|
|
13
13
|
import '@alfalab/core-components-shared/esm';
|
|
14
14
|
import '@alfalab/hooks';
|
|
15
|
-
import './mobile.module-
|
|
15
|
+
import './mobile.module-a36ccaa2.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var styles = {"bottomAddonInput":"input-
|
|
1
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1pcau","footer":"input-autocomplete__footer_1pcau"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
package/index-c76d6398.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
174
174
|
className?: string;
|
|
175
175
|
}> | ReactElement;
|
|
176
176
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
177
|
-
size?: "
|
|
177
|
+
size?: "s" | "xs" | "xxs" | undefined;
|
|
178
178
|
className?: string | undefined;
|
|
179
179
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
180
180
|
dataTestId?: string | undefined;
|
package/index-ebda875c.d.ts
CHANGED
|
@@ -1,40 +1,146 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from "react";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
type StyleColors = {
|
|
6
|
+
default: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
inverted: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
/**
|
|
15
|
+
* Растягивает компонент на ширину контейнера
|
|
16
|
+
*/
|
|
17
|
+
block?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Размер компонента
|
|
20
|
+
*/
|
|
21
|
+
size?: "s" | "m" | "l" | "xl";
|
|
22
|
+
/**
|
|
23
|
+
* Набор цветов для компонента
|
|
24
|
+
*/
|
|
25
|
+
colors?: "default" | "inverted";
|
|
26
|
+
/**
|
|
27
|
+
* Заблокированное состояние
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Cостояние только для чтения
|
|
32
|
+
*/
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Заполненное состояние
|
|
36
|
+
*/
|
|
37
|
+
filled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Выбранное (фокус) состояние
|
|
40
|
+
*/
|
|
41
|
+
focused?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Отображение ошибки
|
|
44
|
+
*/
|
|
45
|
+
error?: ReactNode | boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Текст подсказки
|
|
48
|
+
*/
|
|
49
|
+
hint?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Лейбл компонента
|
|
52
|
+
*/
|
|
53
|
+
label?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Вид лейбла внутри / снаружи
|
|
56
|
+
*/
|
|
57
|
+
labelView?: "inner" | "outer";
|
|
8
58
|
/**
|
|
9
|
-
*
|
|
59
|
+
* Слот слева
|
|
10
60
|
*/
|
|
11
|
-
|
|
61
|
+
leftAddons?: ReactNode;
|
|
12
62
|
/**
|
|
13
|
-
*
|
|
63
|
+
* Слот справа
|
|
14
64
|
*/
|
|
15
|
-
|
|
65
|
+
rightAddons?: ReactNode;
|
|
16
66
|
/**
|
|
17
|
-
*
|
|
67
|
+
* Слот под полем
|
|
18
68
|
*/
|
|
19
|
-
|
|
69
|
+
bottomAddons?: ReactNode;
|
|
20
70
|
/**
|
|
21
71
|
* Дополнительный класс
|
|
22
72
|
*/
|
|
23
73
|
className?: string;
|
|
24
74
|
/**
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
75
|
+
* Дополнительный класс для поля
|
|
76
|
+
*/
|
|
77
|
+
fieldClassName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительный класс для поля
|
|
80
|
+
*/
|
|
81
|
+
inputWrapperClassName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для лейбла
|
|
84
|
+
*/
|
|
85
|
+
labelClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс для аддонов
|
|
88
|
+
*/
|
|
89
|
+
addonsClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Свойства для обертки левых аддонов
|
|
92
|
+
*/
|
|
93
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
94
|
+
/**
|
|
95
|
+
* Свойства для обертки правых аддонов
|
|
28
96
|
*/
|
|
29
|
-
|
|
97
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
30
98
|
/**
|
|
31
99
|
* Идентификатор для систем автоматизированного тестирования
|
|
32
100
|
*/
|
|
33
101
|
dataTestId?: string;
|
|
34
102
|
/**
|
|
35
|
-
*
|
|
103
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
36
104
|
*/
|
|
37
105
|
children?: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Основные стили компонента.
|
|
108
|
+
*/
|
|
109
|
+
styles: {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Стили компонента для default и inverted режима.
|
|
114
|
+
*/
|
|
115
|
+
colorStyles?: StyleColors;
|
|
38
116
|
};
|
|
39
|
-
declare const
|
|
40
|
-
|
|
117
|
+
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
118
|
+
block?: boolean | undefined;
|
|
119
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
120
|
+
colors?: "default" | "inverted" | undefined;
|
|
121
|
+
disabled?: boolean | undefined;
|
|
122
|
+
readOnly?: boolean | undefined;
|
|
123
|
+
filled?: boolean | undefined;
|
|
124
|
+
focused?: boolean | undefined;
|
|
125
|
+
error?: ReactNode | boolean;
|
|
126
|
+
hint?: ReactNode;
|
|
127
|
+
label?: ReactNode;
|
|
128
|
+
labelView?: "inner" | "outer" | undefined;
|
|
129
|
+
leftAddons?: ReactNode;
|
|
130
|
+
rightAddons?: ReactNode;
|
|
131
|
+
bottomAddons?: ReactNode;
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
fieldClassName?: string | undefined;
|
|
134
|
+
inputWrapperClassName?: string | undefined;
|
|
135
|
+
labelClassName?: string | undefined;
|
|
136
|
+
addonsClassName?: string | undefined;
|
|
137
|
+
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
138
|
+
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
139
|
+
dataTestId?: string | undefined;
|
|
140
|
+
children?: ReactNode;
|
|
141
|
+
styles: {
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
};
|
|
144
|
+
colorStyles?: StyleColors | undefined;
|
|
145
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
export { StyleColors, BaseFormControlProps, BaseFormControl };
|
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ require('@alfalab/core-components-select/mobile');
|
|
|
20
20
|
require('./autocomplete-mobile-field/Component.js');
|
|
21
21
|
require('@alfalab/core-components-form-control/mobile');
|
|
22
22
|
require('@alfalab/core-components-shared');
|
|
23
|
-
require('./mobile.module-
|
|
23
|
+
require('./mobile.module-ef956a02.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
package/mobile-f28cbba0.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { SelectMobile } from "./Component.mobile-
|
|
2
|
-
export { SelectModalMobile } from "./Component.modal.mobile-
|
|
3
|
-
export type { SelectMobileProps } from "./Component.mobile-
|
|
4
|
-
export type { SelectModalMobileProps } from "./Component.modal.mobile-
|
|
1
|
+
export { SelectMobile } from "./Component.mobile-f28cbba0";
|
|
2
|
+
export { SelectModalMobile } from "./Component.modal.mobile-0f4b9bed";
|
|
3
|
+
export type { SelectMobileProps } from "./Component.mobile-f28cbba0";
|
|
4
|
+
export type { SelectModalMobileProps } from "./Component.modal.mobile-0f4b9bed";
|
|
5
5
|
export {};
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g0xmq */
|
|
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-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_1pcau {
|
|
20
20
|
padding: var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1pcau {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1pcau > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/mobile.js
CHANGED
|
@@ -16,7 +16,7 @@ require('./autocomplete-mobile-field/Component.js');
|
|
|
16
16
|
require('@alfalab/core-components-form-control/mobile');
|
|
17
17
|
require('@alfalab/core-components-shared');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
|
-
require('./mobile.module-
|
|
19
|
+
require('./mobile.module-ef956a02.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var styles = {"bottomAddonInput":"input-
|
|
3
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1pcau","footer":"input-autocomplete__footer_1pcau"};
|
|
4
4
|
require('./mobile.css')
|
|
5
5
|
|
|
6
6
|
exports.styles = styles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
49
49
|
*/
|
|
50
50
|
Input?: ElementType;
|
|
51
51
|
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Обработчик выбора
|
|
55
55
|
*/
|
|
@@ -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-
|
|
9
|
+
import { s as styles } from './mobile.module-ba8a299e.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/core-components-shared/modern';
|
|
12
12
|
import '@alfalab/hooks';
|
|
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
46
46
|
*/
|
|
47
47
|
Input?: ElementType;
|
|
48
48
|
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "
|
|
49
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Обработчик выбора
|
|
52
52
|
*/
|
|
@@ -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-
|
|
9
|
+
import { s as styles } from './mobile.module-ba8a299e.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
11
11
|
import '@alfalab/core-components-shared/modern';
|
|
12
12
|
import '@alfalab/hooks';
|
|
@@ -26,7 +26,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
26
26
|
success?: boolean | undefined;
|
|
27
27
|
onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
28
28
|
updatePopover?: React.MutableRefObject<() => void> | undefined;
|
|
29
|
-
} & Omit<BaseSelectProps, "onScroll" | "
|
|
29
|
+
} & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "searchProps" | "showSearch" | "OptionsList" | "Search" | "Checkmark"> & {
|
|
30
30
|
onChange: (payload: string | import("./shared-4cd3936b").BaseSelectChangePayload) => void;
|
|
31
31
|
onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
value?: string | undefined;
|
|
@@ -44,5 +44,5 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
|
|
|
44
44
|
* @default 1024
|
|
45
45
|
*/
|
|
46
46
|
breakpoint?: number | undefined;
|
|
47
|
-
} & React.RefAttributes<
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement | HTMLInputElement>>;
|
|
48
48
|
export { InputAutocompleteResponsiveProps, InputAutocompleteMedia, InputAutocompleteResponsive };
|
|
@@ -14,7 +14,7 @@ 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
16
|
import '@alfalab/core-components-shared/modern';
|
|
17
|
-
import './mobile.module-
|
|
17
|
+
import './mobile.module-ba8a299e.js';
|
|
18
18
|
|
|
19
19
|
const InputAutocompleteResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
|
|
20
20
|
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-
|
|
6
|
+
const styles = {"arrow":"input-autocomplete__arrow_st6vv","error":"input-autocomplete__error_st6vv"};
|
|
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, }) => {
|
|
@@ -4,7 +4,7 @@ import { FormControlMobile } from '@alfalab/core-components-form-control/modern/
|
|
|
4
4
|
import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"input-
|
|
7
|
+
const styles = {"component":"input-autocomplete__component_btb9r","field":"input-autocomplete__field_btb9r","disabled":"input-autocomplete__disabled_btb9r","placeholder":"input-autocomplete__placeholder_btb9r","contentWrapper":"input-autocomplete__contentWrapper_btb9r","value":"input-autocomplete__value_btb9r","focusVisible":"input-autocomplete__focusVisible_btb9r"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
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:
|
|
1
|
+
/* hash: 1qzst */
|
|
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_btb9r {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_btb9r:not(.input-autocomplete__disabled_btb9r) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_btb9r {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_btb9r {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_btb9r {
|
|
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_btb9r {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_btb9r {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -174,7 +174,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
174
174
|
className?: string;
|
|
175
175
|
}> | ReactElement;
|
|
176
176
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
177
|
-
size?: "
|
|
177
|
+
size?: "s" | "xs" | "xxs" | undefined;
|
|
178
178
|
className?: string | undefined;
|
|
179
179
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
180
180
|
dataTestId?: string | undefined;
|
|
@@ -1,40 +1,146 @@
|
|
|
1
|
-
/// <reference types="react-transition-group" />
|
|
2
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from "react";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
type StyleColors = {
|
|
6
|
+
default: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
inverted: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
/**
|
|
15
|
+
* Растягивает компонент на ширину контейнера
|
|
16
|
+
*/
|
|
17
|
+
block?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Размер компонента
|
|
20
|
+
*/
|
|
21
|
+
size?: "s" | "m" | "l" | "xl";
|
|
22
|
+
/**
|
|
23
|
+
* Набор цветов для компонента
|
|
24
|
+
*/
|
|
25
|
+
colors?: "default" | "inverted";
|
|
26
|
+
/**
|
|
27
|
+
* Заблокированное состояние
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Cостояние только для чтения
|
|
32
|
+
*/
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Заполненное состояние
|
|
36
|
+
*/
|
|
37
|
+
filled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Выбранное (фокус) состояние
|
|
40
|
+
*/
|
|
41
|
+
focused?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Отображение ошибки
|
|
44
|
+
*/
|
|
45
|
+
error?: ReactNode | boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Текст подсказки
|
|
48
|
+
*/
|
|
49
|
+
hint?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Лейбл компонента
|
|
52
|
+
*/
|
|
53
|
+
label?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Вид лейбла внутри / снаружи
|
|
56
|
+
*/
|
|
57
|
+
labelView?: "inner" | "outer";
|
|
8
58
|
/**
|
|
9
|
-
*
|
|
59
|
+
* Слот слева
|
|
10
60
|
*/
|
|
11
|
-
|
|
61
|
+
leftAddons?: ReactNode;
|
|
12
62
|
/**
|
|
13
|
-
*
|
|
63
|
+
* Слот справа
|
|
14
64
|
*/
|
|
15
|
-
|
|
65
|
+
rightAddons?: ReactNode;
|
|
16
66
|
/**
|
|
17
|
-
*
|
|
67
|
+
* Слот под полем
|
|
18
68
|
*/
|
|
19
|
-
|
|
69
|
+
bottomAddons?: ReactNode;
|
|
20
70
|
/**
|
|
21
71
|
* Дополнительный класс
|
|
22
72
|
*/
|
|
23
73
|
className?: string;
|
|
24
74
|
/**
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
75
|
+
* Дополнительный класс для поля
|
|
76
|
+
*/
|
|
77
|
+
fieldClassName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительный класс для поля
|
|
80
|
+
*/
|
|
81
|
+
inputWrapperClassName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для лейбла
|
|
84
|
+
*/
|
|
85
|
+
labelClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс для аддонов
|
|
88
|
+
*/
|
|
89
|
+
addonsClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Свойства для обертки левых аддонов
|
|
92
|
+
*/
|
|
93
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
94
|
+
/**
|
|
95
|
+
* Свойства для обертки правых аддонов
|
|
28
96
|
*/
|
|
29
|
-
|
|
97
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
30
98
|
/**
|
|
31
99
|
* Идентификатор для систем автоматизированного тестирования
|
|
32
100
|
*/
|
|
33
101
|
dataTestId?: string;
|
|
34
102
|
/**
|
|
35
|
-
*
|
|
103
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
36
104
|
*/
|
|
37
105
|
children?: ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Основные стили компонента.
|
|
108
|
+
*/
|
|
109
|
+
styles: {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Стили компонента для default и inverted режима.
|
|
114
|
+
*/
|
|
115
|
+
colorStyles?: StyleColors;
|
|
38
116
|
};
|
|
39
|
-
declare const
|
|
40
|
-
|
|
117
|
+
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
118
|
+
block?: boolean | undefined;
|
|
119
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
120
|
+
colors?: "default" | "inverted" | undefined;
|
|
121
|
+
disabled?: boolean | undefined;
|
|
122
|
+
readOnly?: boolean | undefined;
|
|
123
|
+
filled?: boolean | undefined;
|
|
124
|
+
focused?: boolean | undefined;
|
|
125
|
+
error?: ReactNode | boolean;
|
|
126
|
+
hint?: ReactNode;
|
|
127
|
+
label?: ReactNode;
|
|
128
|
+
labelView?: "inner" | "outer" | undefined;
|
|
129
|
+
leftAddons?: ReactNode;
|
|
130
|
+
rightAddons?: ReactNode;
|
|
131
|
+
bottomAddons?: ReactNode;
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
fieldClassName?: string | undefined;
|
|
134
|
+
inputWrapperClassName?: string | undefined;
|
|
135
|
+
labelClassName?: string | undefined;
|
|
136
|
+
addonsClassName?: string | undefined;
|
|
137
|
+
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
138
|
+
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
139
|
+
dataTestId?: string | undefined;
|
|
140
|
+
children?: ReactNode;
|
|
141
|
+
styles: {
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
};
|
|
144
|
+
colorStyles?: StyleColors | undefined;
|
|
145
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
export { StyleColors, BaseFormControlProps, BaseFormControl };
|
package/modern/index.js
CHANGED
|
@@ -15,4 +15,4 @@ 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
17
|
import '@alfalab/core-components-shared/modern';
|
|
18
|
-
import './mobile.module-
|
|
18
|
+
import './mobile.module-ba8a299e.js';
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlMobileProps = Omit<BaseFormControlProps, "styles" | "colorStyles">;
|
|
5
|
+
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlMobileProps, FormControlMobile };
|
package/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g0xmq */
|
|
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-
|
|
19
|
+
} .input-autocomplete__bottomAddonInput_1pcau {
|
|
20
20
|
padding: var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1pcau {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1pcau > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/modern/mobile.js
CHANGED
|
@@ -11,4 +11,4 @@ import './autocomplete-mobile-field/Component.js';
|
|
|
11
11
|
import '@alfalab/core-components-form-control/modern/mobile';
|
|
12
12
|
import '@alfalab/core-components-shared/modern';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import './mobile.module-
|
|
14
|
+
import './mobile.module-ba8a299e.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const styles = {"bottomAddonInput":"input-
|
|
1
|
+
const styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1pcau","footer":"input-autocomplete__footer_1pcau"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@alfalab/core-components-button": "^9.0.6",
|
|
38
38
|
"@alfalab/core-components-form-control": "^10.1.1",
|
|
39
39
|
"@alfalab/core-components-input": "^12.2.1",
|
|
40
|
-
"@alfalab/core-components-select": "^15.2.
|
|
40
|
+
"@alfalab/core-components-select": "^15.2.2",
|
|
41
41
|
"@alfalab/core-components-shared": "^0.6.0",
|
|
42
42
|
"@alfalab/hooks": "^1.13.0",
|
|
43
43
|
"classnames": "^2.3.1",
|
package/shared-4cd3936b.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
|
|
|
59
59
|
export * from "./index-ebda875c";
|
|
60
60
|
export * from "./Component-0f4b9bed";
|
|
61
61
|
export { useSelectWithLoading, useLazyLoading };
|
|
62
|
-
export * from "./hook-
|
|
62
|
+
export * from "./hook-8abfea97";
|
|
63
63
|
export * from "./typings-0f4b9bed";
|
|
64
64
|
export * from "./utils-0f4b9bed";
|
|
65
|
-
export type { AdditionalMobileProps } from "./Component.mobile-
|
|
65
|
+
export type { AdditionalMobileProps } from "./Component.mobile-f28cbba0";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type FooterProps = {
|
|
4
|
-
handleClear?: () => void;
|
|
5
|
-
handleApply?: () => void;
|
|
6
|
-
showClear?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const Footer: ({ handleApply, handleClear, showClear }: FooterProps) => React.JSX.Element;
|
|
9
|
-
export { FooterProps, Footer };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
-
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlMobileProps, FormControlMobile };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|