@alfalab/core-components-input-autocomplete 12.8.8 → 12.9.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/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 +18 -18
- package/cssm/autocomplete-mobile-field/index.module.css +1 -1
- package/cssm/mobile/Component.mobile.d.ts +1 -0
- package/cssm/mobile/Component.mobile.js +3 -3
- package/cssm/mobile/Component.modal.mobile.d.ts +1 -0
- package/cssm/mobile/mobile.module.css +1 -1
- package/cssm/types.d.ts +5 -0
- 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 +18 -18
- package/esm/mobile/Component.mobile.d.ts +1 -0
- package/esm/mobile/Component.mobile.js +4 -4
- package/esm/mobile/Component.modal.mobile.d.ts +1 -0
- package/esm/mobile/mobile.css +3 -3
- package/esm/types.d.ts +5 -0
- package/mobile/Component.mobile.d.ts +1 -0
- package/mobile/Component.mobile.js +4 -4
- package/mobile/Component.modal.mobile.d.ts +1 -0
- package/mobile/mobile.css +3 -3
- 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 +18 -18
- package/modern/mobile/Component.mobile.d.ts +1 -0
- package/modern/mobile/Component.mobile.js +3 -3
- package/modern/mobile/Component.modal.mobile.d.ts +1 -0
- package/modern/mobile/mobile.css +3 -3
- package/modern/types.d.ts +5 -0
- package/moderncssm/mobile/Component.mobile.d.ts +1 -0
- package/moderncssm/mobile/Component.mobile.js +2 -2
- package/moderncssm/mobile/Component.modal.mobile.d.ts +1 -0
- package/moderncssm/types.d.ts +5 -0
- package/package.json +3 -3
- package/src/mobile/Component.mobile.tsx +2 -1
- package/src/types.ts +6 -0
- package/types.d.ts +5 -0
|
@@ -15,7 +15,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
15
15
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"arrow":"input-
|
|
18
|
+
var styles = {"arrow":"input-autocomplete__arrow_1hlbt","error":"input-autocomplete__error_1hlbt"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var AutocompleteField = function (_a) {
|
|
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
17
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"input-
|
|
19
|
+
var styles = {"component":"input-autocomplete__component_367mt","field":"input-autocomplete__field_367mt","disabled":"input-autocomplete__disabled_367mt","errorIcon":"input-autocomplete__errorIcon_367mt","size-40":"input-autocomplete__size-40_367mt","successIcon":"input-autocomplete__successIcon_367mt","placeholder":"input-autocomplete__placeholder_367mt","contentWrapper":"input-autocomplete__contentWrapper_367mt","value":"input-autocomplete__value_367mt","focusVisible":"input-autocomplete__focusVisible_367mt"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a1k6d */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-status-info: #2288fa;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
--gap-4: var(--gap-2xs);
|
|
27
27
|
--gap-12: var(--gap-s);
|
|
28
28
|
} :root {
|
|
29
|
-
} :root {
|
|
29
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
30
30
|
--focus-color: var(--color-light-status-info);
|
|
31
31
|
--disabled-cursor: not-allowed;
|
|
32
32
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -36,34 +36,34 @@
|
|
|
36
36
|
|
|
37
37
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
38
38
|
--input-error-icon-not-alone-display: none;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__component_367mt {
|
|
40
40
|
width: 100%;
|
|
41
41
|
outline: none;
|
|
42
|
-
} .input-
|
|
42
|
+
} .input-autocomplete__field_367mt:not(.input-autocomplete__disabled_367mt) {
|
|
43
43
|
cursor: pointer;
|
|
44
|
-
} .input-
|
|
44
|
+
} .input-autocomplete__errorIcon_367mt {
|
|
45
45
|
display: var(--input-error-icon-display)
|
|
46
|
-
} .input-
|
|
46
|
+
} .input-autocomplete__errorIcon_367mt:not(:only-child) {
|
|
47
47
|
margin-left: var(--gap-4);
|
|
48
|
-
} .input-
|
|
48
|
+
} .input-autocomplete__errorIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
49
49
|
margin-left: 6px;
|
|
50
|
-
} * + .input-
|
|
50
|
+
} * + .input-autocomplete__errorIcon_367mt {
|
|
51
51
|
display: var(--input-error-icon-not-alone-display);
|
|
52
|
-
} button[class*='eye'] + .input-
|
|
52
|
+
} button[class*='eye'] + .input-autocomplete__errorIcon_367mt {
|
|
53
53
|
margin-right: var(--gap-12);
|
|
54
|
-
} .input-
|
|
54
|
+
} .input-autocomplete__successIcon_367mt {
|
|
55
55
|
display: var(--input-success-icon-display)
|
|
56
|
-
} .input-
|
|
56
|
+
} .input-autocomplete__successIcon_367mt:not(:only-child) {
|
|
57
57
|
margin-left: var(--gap-4);
|
|
58
|
-
} .input-
|
|
58
|
+
} .input-autocomplete__successIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
59
59
|
margin-left: 6px;
|
|
60
|
-
} button[class*='eye'] + .input-
|
|
60
|
+
} button[class*='eye'] + .input-autocomplete__successIcon_367mt {
|
|
61
61
|
margin-right: var(--gap-12);
|
|
62
|
-
} .input-
|
|
62
|
+
} .input-autocomplete__disabled_367mt {
|
|
63
63
|
cursor: var(--disabled-cursor);
|
|
64
|
-
} .input-
|
|
64
|
+
} .input-autocomplete__placeholder_367mt {
|
|
65
65
|
color: var(--color-light-text-secondary);
|
|
66
|
-
} .input-
|
|
66
|
+
} .input-autocomplete__contentWrapper_367mt {
|
|
67
67
|
font-size: 16px;
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 400;
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
width: 100%;
|
|
75
|
-
} .input-
|
|
75
|
+
} .input-autocomplete__value_367mt {
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
text-overflow: ellipsis;
|
|
78
78
|
text-align: left;
|
|
79
|
-
} .input-
|
|
79
|
+
} .input-autocomplete__focusVisible_367mt {
|
|
80
80
|
outline: 2px solid var(--focus-color);
|
|
81
81
|
outline-offset: 2px;
|
|
82
82
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--gap-4: var(--gap-2xs);
|
|
26
26
|
--gap-12: var(--gap-s);
|
|
27
27
|
} :root {
|
|
28
|
-
} :root {
|
|
28
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
29
29
|
--focus-color: var(--color-light-status-info);
|
|
30
30
|
--disabled-cursor: not-allowed;
|
|
31
31
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<unknown>>;
|
|
11
12
|
export { InputAutocompleteMobile };
|
|
@@ -25,8 +25,8 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
25
25
|
var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, ref) {
|
|
26
26
|
var _b;
|
|
27
27
|
var _c;
|
|
28
|
-
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, restProps = tslib.__rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success"]);
|
|
29
|
-
var
|
|
28
|
+
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, _h = _a.virtualKeyboard, virtualKeyboard = _h === void 0 ? false : _h, restProps = tslib.__rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success", "virtualKeyboard"]);
|
|
29
|
+
var _j = React.useState(false), open = _j[0], setOpen = _j[1];
|
|
30
30
|
var frozenValue = React.useRef('');
|
|
31
31
|
var searchInputRef = React.useRef(null);
|
|
32
32
|
var targetRef = React.useRef(null);
|
|
@@ -78,7 +78,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
78
78
|
_b);
|
|
79
79
|
var clear = (_c = inputProps === null || inputProps === void 0 ? void 0 : inputProps.clear) !== null && _c !== void 0 ? _c : false;
|
|
80
80
|
return (React__default.default.createElement(Component, tslib.__assign({ Field: autocompleteMobileField_Component.AutocompleteMobileField }, restProps, (isBottomSheet
|
|
81
|
-
? { bottomSheetProps: componentProps }
|
|
81
|
+
? { bottomSheetProps: tslib.__assign(tslib.__assign({}, componentProps), { virtualKeyboard: virtualKeyboard }) }
|
|
82
82
|
: {
|
|
83
83
|
modalProps: componentProps,
|
|
84
84
|
modalHeaderProps: { title: title },
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { InputAutocompleteModalMobile };
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
20
20
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
21
21
|
} :root {
|
|
22
|
-
} :root {
|
|
22
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
23
23
|
} /* сбрасывает синюю подсветку при нажатии */ .input {
|
|
24
24
|
width: auto;
|
|
25
25
|
}
|
package/cssm/types.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ type MobileProps = {
|
|
|
50
50
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
51
51
|
*/
|
|
52
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
virtualKeyboard?: boolean;
|
|
53
58
|
};
|
|
54
59
|
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
55
60
|
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|
|
@@ -5,7 +5,7 @@ import cn from 'classnames';
|
|
|
5
5
|
import { InputDesktop } from '@alfalab/core-components-input/esm/desktop';
|
|
6
6
|
import { OnInputReason } from '../enums.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"arrow":"input-
|
|
8
|
+
var styles = {"arrow":"input-autocomplete__arrow_1hlbt","error":"input-autocomplete__error_1hlbt"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var AutocompleteField = function (_a) {
|
|
@@ -7,7 +7,7 @@ import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
|
7
7
|
import { StatusBadge } from '@alfalab/core-components-status-badge/esm';
|
|
8
8
|
import { useFocus } from '@alfalab/hooks';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"input-
|
|
10
|
+
var styles = {"component":"input-autocomplete__component_367mt","field":"input-autocomplete__field_367mt","disabled":"input-autocomplete__disabled_367mt","errorIcon":"input-autocomplete__errorIcon_367mt","size-40":"input-autocomplete__size-40_367mt","successIcon":"input-autocomplete__successIcon_367mt","placeholder":"input-autocomplete__placeholder_367mt","contentWrapper":"input-autocomplete__contentWrapper_367mt","value":"input-autocomplete__value_367mt","focusVisible":"input-autocomplete__focusVisible_367mt"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a1k6d */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-status-info: #2288fa;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
--gap-4: var(--gap-2xs);
|
|
27
27
|
--gap-12: var(--gap-s);
|
|
28
28
|
} :root {
|
|
29
|
-
} :root {
|
|
29
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
30
30
|
--focus-color: var(--color-light-status-info);
|
|
31
31
|
--disabled-cursor: not-allowed;
|
|
32
32
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -36,34 +36,34 @@
|
|
|
36
36
|
|
|
37
37
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
38
38
|
--input-error-icon-not-alone-display: none;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__component_367mt {
|
|
40
40
|
width: 100%;
|
|
41
41
|
outline: none;
|
|
42
|
-
} .input-
|
|
42
|
+
} .input-autocomplete__field_367mt:not(.input-autocomplete__disabled_367mt) {
|
|
43
43
|
cursor: pointer;
|
|
44
|
-
} .input-
|
|
44
|
+
} .input-autocomplete__errorIcon_367mt {
|
|
45
45
|
display: var(--input-error-icon-display)
|
|
46
|
-
} .input-
|
|
46
|
+
} .input-autocomplete__errorIcon_367mt:not(:only-child) {
|
|
47
47
|
margin-left: var(--gap-4);
|
|
48
|
-
} .input-
|
|
48
|
+
} .input-autocomplete__errorIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
49
49
|
margin-left: 6px;
|
|
50
|
-
} * + .input-
|
|
50
|
+
} * + .input-autocomplete__errorIcon_367mt {
|
|
51
51
|
display: var(--input-error-icon-not-alone-display);
|
|
52
|
-
} button[class*='eye'] + .input-
|
|
52
|
+
} button[class*='eye'] + .input-autocomplete__errorIcon_367mt {
|
|
53
53
|
margin-right: var(--gap-12);
|
|
54
|
-
} .input-
|
|
54
|
+
} .input-autocomplete__successIcon_367mt {
|
|
55
55
|
display: var(--input-success-icon-display)
|
|
56
|
-
} .input-
|
|
56
|
+
} .input-autocomplete__successIcon_367mt:not(:only-child) {
|
|
57
57
|
margin-left: var(--gap-4);
|
|
58
|
-
} .input-
|
|
58
|
+
} .input-autocomplete__successIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
59
59
|
margin-left: 6px;
|
|
60
|
-
} button[class*='eye'] + .input-
|
|
60
|
+
} button[class*='eye'] + .input-autocomplete__successIcon_367mt {
|
|
61
61
|
margin-right: var(--gap-12);
|
|
62
|
-
} .input-
|
|
62
|
+
} .input-autocomplete__disabled_367mt {
|
|
63
63
|
cursor: var(--disabled-cursor);
|
|
64
|
-
} .input-
|
|
64
|
+
} .input-autocomplete__placeholder_367mt {
|
|
65
65
|
color: var(--color-light-text-secondary);
|
|
66
|
-
} .input-
|
|
66
|
+
} .input-autocomplete__contentWrapper_367mt {
|
|
67
67
|
font-size: 16px;
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 400;
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
width: 100%;
|
|
75
|
-
} .input-
|
|
75
|
+
} .input-autocomplete__value_367mt {
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
text-overflow: ellipsis;
|
|
78
78
|
text-align: left;
|
|
79
|
-
} .input-
|
|
79
|
+
} .input-autocomplete__focusVisible_367mt {
|
|
80
80
|
outline: 2px solid var(--focus-color);
|
|
81
81
|
outline-offset: 2px;
|
|
82
82
|
}
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<unknown>>;
|
|
11
12
|
export { InputAutocompleteMobile };
|
|
@@ -9,14 +9,14 @@ import { AutocompleteMobileField } from '../autocomplete-mobile-field/Component.
|
|
|
9
9
|
import { OnInputReason } from '../enums.js';
|
|
10
10
|
import { searchFilterStub } from '../utils.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"input":"input-
|
|
12
|
+
var styles = {"input":"input-autocomplete__input_14h50"};
|
|
13
13
|
require('./mobile.css')
|
|
14
14
|
|
|
15
15
|
var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
|
|
16
16
|
var _b;
|
|
17
17
|
var _c;
|
|
18
|
-
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, restProps = __rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success"]);
|
|
19
|
-
var
|
|
18
|
+
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, _h = _a.virtualKeyboard, virtualKeyboard = _h === void 0 ? false : _h, restProps = __rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success", "virtualKeyboard"]);
|
|
19
|
+
var _j = useState(false), open = _j[0], setOpen = _j[1];
|
|
20
20
|
var frozenValue = useRef('');
|
|
21
21
|
var searchInputRef = useRef(null);
|
|
22
22
|
var targetRef = useRef(null);
|
|
@@ -68,7 +68,7 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
|
|
|
68
68
|
_b);
|
|
69
69
|
var clear = (_c = inputProps === null || inputProps === void 0 ? void 0 : inputProps.clear) !== null && _c !== void 0 ? _c : false;
|
|
70
70
|
return (React.createElement(Component, __assign({ Field: AutocompleteMobileField }, restProps, (isBottomSheet
|
|
71
|
-
? { bottomSheetProps: componentProps }
|
|
71
|
+
? { bottomSheetProps: __assign(__assign({}, componentProps), { virtualKeyboard: virtualKeyboard }) }
|
|
72
72
|
: {
|
|
73
73
|
modalProps: componentProps,
|
|
74
74
|
modalHeaderProps: { title: title },
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { InputAutocompleteModalMobile };
|
package/esm/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7fpgs */
|
|
2
2
|
: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 */ /* 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 */
|
|
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
21
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
22
|
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .input-
|
|
23
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
24
|
+
} /* сбрасывает синюю подсветку при нажатии */ .input-autocomplete__input_14h50 {
|
|
25
25
|
width: auto;
|
|
26
26
|
}
|
package/esm/types.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ type MobileProps = {
|
|
|
50
50
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
51
51
|
*/
|
|
52
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
virtualKeyboard?: boolean;
|
|
53
58
|
};
|
|
54
59
|
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
55
60
|
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<unknown>>;
|
|
11
12
|
export { InputAutocompleteMobile };
|
|
@@ -20,14 +20,14 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
20
20
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
21
21
|
var throttle__default = /*#__PURE__*/_interopDefaultCompat(throttle);
|
|
22
22
|
|
|
23
|
-
var styles = {"input":"input-
|
|
23
|
+
var styles = {"input":"input-autocomplete__input_14h50"};
|
|
24
24
|
require('./mobile.css')
|
|
25
25
|
|
|
26
26
|
var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, ref) {
|
|
27
27
|
var _b;
|
|
28
28
|
var _c;
|
|
29
|
-
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, restProps = tslib.__rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success"]);
|
|
30
|
-
var
|
|
29
|
+
var Input = _a.Input, value = _a.value, name = _a.name, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, label = _a.label, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.size, size = _f === void 0 ? 48 : _f, openProp = _a.open, onInput = _a.onInput, onOpen = _a.onOpen, multiple = _a.multiple, inputProps = _a.inputProps, _g = _a.isBottomSheet, isBottomSheet = _g === void 0 ? true : _g, dataTestId = _a.dataTestId, transitionProps = _a.transitionProps, onCancel = _a.onCancel, onApply = _a.onApply, title = _a.title, success = _a.success, _h = _a.virtualKeyboard, virtualKeyboard = _h === void 0 ? false : _h, restProps = tslib.__rest(_a, ["Input", "value", "name", "Arrow", "label", "placeholder", "size", "open", "onInput", "onOpen", "multiple", "inputProps", "isBottomSheet", "dataTestId", "transitionProps", "onCancel", "onApply", "title", "success", "virtualKeyboard"]);
|
|
30
|
+
var _j = React.useState(false), open = _j[0], setOpen = _j[1];
|
|
31
31
|
var frozenValue = React.useRef('');
|
|
32
32
|
var searchInputRef = React.useRef(null);
|
|
33
33
|
var targetRef = React.useRef(null);
|
|
@@ -79,7 +79,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
79
79
|
_b);
|
|
80
80
|
var clear = (_c = inputProps === null || inputProps === void 0 ? void 0 : inputProps.clear) !== null && _c !== void 0 ? _c : false;
|
|
81
81
|
return (React__default.default.createElement(Component, tslib.__assign({ Field: autocompleteMobileField_Component.AutocompleteMobileField }, restProps, (isBottomSheet
|
|
82
|
-
? { bottomSheetProps: componentProps }
|
|
82
|
+
? { bottomSheetProps: tslib.__assign(tslib.__assign({}, componentProps), { virtualKeyboard: virtualKeyboard }) }
|
|
83
83
|
: {
|
|
84
84
|
modalProps: componentProps,
|
|
85
85
|
modalHeaderProps: { title: title },
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { InputAutocompleteModalMobile };
|
package/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7fpgs */
|
|
2
2
|
: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 */ /* 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 */
|
|
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
21
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
22
|
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .input-
|
|
23
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
24
|
+
} /* сбрасывает синюю подсветку при нажатии */ .input-autocomplete__input_14h50 {
|
|
25
25
|
width: auto;
|
|
26
26
|
}
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { InputDesktop } from '@alfalab/core-components-input/modern/desktop';
|
|
5
5
|
import { OnInputReason } from '../enums.js';
|
|
6
6
|
|
|
7
|
-
const styles = {"arrow":"input-
|
|
7
|
+
const styles = {"arrow":"input-autocomplete__arrow_1hlbt","error":"input-autocomplete__error_1hlbt"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arrow, Input = InputDesktop, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, dataTestId, }) => {
|
|
@@ -6,7 +6,7 @@ import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
|
6
6
|
import { StatusBadge } from '@alfalab/core-components-status-badge/modern';
|
|
7
7
|
import { useFocus } from '@alfalab/hooks';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"input-
|
|
9
|
+
const styles = {"component":"input-autocomplete__component_367mt","field":"input-autocomplete__field_367mt","disabled":"input-autocomplete__disabled_367mt","errorIcon":"input-autocomplete__errorIcon_367mt","size-40":"input-autocomplete__size-40_367mt","successIcon":"input-autocomplete__successIcon_367mt","placeholder":"input-autocomplete__placeholder_367mt","contentWrapper":"input-autocomplete__contentWrapper_367mt","value":"input-autocomplete__value_367mt","focusVisible":"input-autocomplete__focusVisible_367mt"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const AutocompleteMobileField = ({ size = 56, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView = 'inner', placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, FormControlComponent, rightAddons, error, readOnly, clear, success, onClear, onInput, colors = 'default', ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a1k6d */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-status-info: #2288fa;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
--gap-4: var(--gap-2xs);
|
|
27
27
|
--gap-12: var(--gap-s);
|
|
28
28
|
} :root {
|
|
29
|
-
} :root {
|
|
29
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
30
30
|
--focus-color: var(--color-light-status-info);
|
|
31
31
|
--disabled-cursor: not-allowed;
|
|
32
32
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
@@ -36,34 +36,34 @@
|
|
|
36
36
|
|
|
37
37
|
/* управляет видимостью иконки ошибки, если она стоит рядом с другой иконкой */
|
|
38
38
|
--input-error-icon-not-alone-display: none;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__component_367mt {
|
|
40
40
|
width: 100%;
|
|
41
41
|
outline: none;
|
|
42
|
-
} .input-
|
|
42
|
+
} .input-autocomplete__field_367mt:not(.input-autocomplete__disabled_367mt) {
|
|
43
43
|
cursor: pointer;
|
|
44
|
-
} .input-
|
|
44
|
+
} .input-autocomplete__errorIcon_367mt {
|
|
45
45
|
display: var(--input-error-icon-display)
|
|
46
|
-
} .input-
|
|
46
|
+
} .input-autocomplete__errorIcon_367mt:not(:only-child) {
|
|
47
47
|
margin-left: var(--gap-4);
|
|
48
|
-
} .input-
|
|
48
|
+
} .input-autocomplete__errorIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
49
49
|
margin-left: 6px;
|
|
50
|
-
} * + .input-
|
|
50
|
+
} * + .input-autocomplete__errorIcon_367mt {
|
|
51
51
|
display: var(--input-error-icon-not-alone-display);
|
|
52
|
-
} button[class*='eye'] + .input-
|
|
52
|
+
} button[class*='eye'] + .input-autocomplete__errorIcon_367mt {
|
|
53
53
|
margin-right: var(--gap-12);
|
|
54
|
-
} .input-
|
|
54
|
+
} .input-autocomplete__successIcon_367mt {
|
|
55
55
|
display: var(--input-success-icon-display)
|
|
56
|
-
} .input-
|
|
56
|
+
} .input-autocomplete__successIcon_367mt:not(:only-child) {
|
|
57
57
|
margin-left: var(--gap-4);
|
|
58
|
-
} .input-
|
|
58
|
+
} .input-autocomplete__successIcon_367mt.input-autocomplete__size-40_367mt:not(:only-child) {
|
|
59
59
|
margin-left: 6px;
|
|
60
|
-
} button[class*='eye'] + .input-
|
|
60
|
+
} button[class*='eye'] + .input-autocomplete__successIcon_367mt {
|
|
61
61
|
margin-right: var(--gap-12);
|
|
62
|
-
} .input-
|
|
62
|
+
} .input-autocomplete__disabled_367mt {
|
|
63
63
|
cursor: var(--disabled-cursor);
|
|
64
|
-
} .input-
|
|
64
|
+
} .input-autocomplete__placeholder_367mt {
|
|
65
65
|
color: var(--color-light-text-secondary);
|
|
66
|
-
} .input-
|
|
66
|
+
} .input-autocomplete__contentWrapper_367mt {
|
|
67
67
|
font-size: 16px;
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 400;
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
text-overflow: ellipsis;
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
width: 100%;
|
|
75
|
-
} .input-
|
|
75
|
+
} .input-autocomplete__value_367mt {
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
text-overflow: ellipsis;
|
|
78
78
|
text-align: left;
|
|
79
|
-
} .input-
|
|
79
|
+
} .input-autocomplete__focusVisible_367mt {
|
|
80
80
|
outline: 2px solid var(--focus-color);
|
|
81
81
|
outline-offset: 2px;
|
|
82
82
|
}
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<unknown>>;
|
|
11
12
|
export { InputAutocompleteMobile };
|
|
@@ -8,10 +8,10 @@ import { AutocompleteMobileField } from '../autocomplete-mobile-field/Component.
|
|
|
8
8
|
import { OnInputReason } from '../enums.js';
|
|
9
9
|
import { searchFilterStub } from '../utils.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"input":"input-
|
|
11
|
+
const styles = {"input":"input-autocomplete__input_14h50"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
|
-
const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow = null, label, placeholder = '', size = 48, open: openProp, onInput, onOpen, multiple, inputProps, isBottomSheet = true, dataTestId, transitionProps, onCancel, onApply, title, success, ...restProps }, ref) => {
|
|
14
|
+
const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow = null, label, placeholder = '', size = 48, open: openProp, onInput, onOpen, multiple, inputProps, isBottomSheet = true, dataTestId, transitionProps, onCancel, onApply, title, success, virtualKeyboard = false, ...restProps }, ref) => {
|
|
15
15
|
const [open, setOpen] = useState(false);
|
|
16
16
|
const frozenValue = useRef('');
|
|
17
17
|
const searchInputRef = useRef(null);
|
|
@@ -63,7 +63,7 @@ const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow =
|
|
|
63
63
|
};
|
|
64
64
|
const clear = inputProps?.clear ?? false;
|
|
65
65
|
return (React.createElement(Component, { Field: AutocompleteMobileField, ...restProps, ...(isBottomSheet
|
|
66
|
-
? { bottomSheetProps: componentProps }
|
|
66
|
+
? { bottomSheetProps: { ...componentProps, virtualKeyboard } }
|
|
67
67
|
: {
|
|
68
68
|
modalProps: componentProps,
|
|
69
69
|
modalHeaderProps: { title },
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { InputAutocompleteModalMobile };
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7fpgs */
|
|
2
2
|
: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 */ /* 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 */
|
|
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
21
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
22
|
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .input-
|
|
23
|
+
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
24
|
+
} /* сбрасывает синюю подсветку при нажатии */ .input-autocomplete__input_14h50 {
|
|
25
25
|
width: auto;
|
|
26
26
|
}
|
package/modern/types.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ type MobileProps = {
|
|
|
50
50
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
51
51
|
*/
|
|
52
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
virtualKeyboard?: boolean;
|
|
53
58
|
};
|
|
54
59
|
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
55
60
|
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<unknown>>;
|
|
11
12
|
export { InputAutocompleteMobile };
|
|
@@ -9,7 +9,7 @@ import { OnInputReason } from '../enums.js';
|
|
|
9
9
|
import { searchFilterStub } from '../utils.js';
|
|
10
10
|
import styles from './mobile.module.css';
|
|
11
11
|
|
|
12
|
-
const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow = null, label, placeholder = '', size = 48, open: openProp, onInput, onOpen, multiple, inputProps, isBottomSheet = true, dataTestId, transitionProps, onCancel, onApply, title, success, ...restProps }, ref) => {
|
|
12
|
+
const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow = null, label, placeholder = '', size = 48, open: openProp, onInput, onOpen, multiple, inputProps, isBottomSheet = true, dataTestId, transitionProps, onCancel, onApply, title, success, virtualKeyboard = false, ...restProps }, ref) => {
|
|
13
13
|
const [open, setOpen] = useState(false);
|
|
14
14
|
const frozenValue = useRef('');
|
|
15
15
|
const searchInputRef = useRef(null);
|
|
@@ -61,7 +61,7 @@ const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow =
|
|
|
61
61
|
};
|
|
62
62
|
const clear = inputProps?.clear ?? false;
|
|
63
63
|
return (React.createElement(Component, { Field: AutocompleteMobileField, ...restProps, ...(isBottomSheet
|
|
64
|
-
? { bottomSheetProps: componentProps }
|
|
64
|
+
? { bottomSheetProps: { ...componentProps, virtualKeyboard } }
|
|
65
65
|
: {
|
|
66
66
|
modalProps: componentProps,
|
|
67
67
|
modalHeaderProps: { title },
|
|
@@ -7,5 +7,6 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
|
|
|
7
7
|
onApply?: (() => void) | undefined;
|
|
8
8
|
onCancel?: (() => void) | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
+
virtualKeyboard?: boolean | undefined;
|
|
10
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
export { InputAutocompleteModalMobile };
|
package/moderncssm/types.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ type MobileProps = {
|
|
|
50
50
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
51
51
|
*/
|
|
52
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
virtualKeyboard?: boolean;
|
|
53
58
|
};
|
|
54
59
|
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
55
60
|
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@alfalab/core-components-form-control": "^12.8.2",
|
|
19
19
|
"@alfalab/core-components-input": "^15.5.4",
|
|
20
20
|
"@alfalab/core-components-popover": "^6.3.8",
|
|
21
|
-
"@alfalab/core-components-select": "^17.20.
|
|
21
|
+
"@alfalab/core-components-select": "^17.20.13",
|
|
22
22
|
"@alfalab/core-components-status-badge": "^1.2.3",
|
|
23
23
|
"@alfalab/core-components-shared": "^0.16.0",
|
|
24
24
|
"@alfalab/core-components-mq": "^4.4.1",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@types/lodash": "^4.17.13"
|
|
33
33
|
},
|
|
34
34
|
"themesVersion": "13.7.2",
|
|
35
|
-
"varsVersion": "9.
|
|
35
|
+
"varsVersion": "9.20.0"
|
|
36
36
|
}
|
|
@@ -44,6 +44,7 @@ export const InputAutocompleteMobile = React.forwardRef(
|
|
|
44
44
|
onApply,
|
|
45
45
|
title,
|
|
46
46
|
success,
|
|
47
|
+
virtualKeyboard = false,
|
|
47
48
|
...restProps
|
|
48
49
|
}: InputAutocompleteMobileProps,
|
|
49
50
|
ref,
|
|
@@ -124,7 +125,7 @@ export const InputAutocompleteMobile = React.forwardRef(
|
|
|
124
125
|
Field={AutocompleteMobileField}
|
|
125
126
|
{...restProps}
|
|
126
127
|
{...(isBottomSheet
|
|
127
|
-
? { bottomSheetProps: componentProps }
|
|
128
|
+
? { bottomSheetProps: { ...componentProps, virtualKeyboard } }
|
|
128
129
|
: {
|
|
129
130
|
modalProps: componentProps,
|
|
130
131
|
modalHeaderProps: { title },
|
package/src/types.ts
CHANGED
|
@@ -78,6 +78,12 @@ type MobileProps = {
|
|
|
78
78
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
79
79
|
*/
|
|
80
80
|
title?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
virtualKeyboard?: boolean;
|
|
81
87
|
};
|
|
82
88
|
|
|
83
89
|
export type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
package/types.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ type MobileProps = {
|
|
|
50
50
|
* Если не передан, то заголовок будет совпадать с label. Если не передан и label, то заголовок будет равен placeholder
|
|
51
51
|
*/
|
|
52
52
|
title?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Учитывать высоту виртуальной клавиатуры в BottomSheet
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
virtualKeyboard?: boolean;
|
|
53
58
|
};
|
|
54
59
|
type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
|
|
55
60
|
interface InputAutocompleteProps extends InputAutocompleteCommonProps {
|