@alfalab/core-components-input-autocomplete 9.4.1 → 9.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component-bdb4c6b9.d.ts +11 -7
- package/Component-f12ee135.d.ts +3 -3
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile.d.ts +1 -1
- package/Component.modal.mobile.js +3 -3
- 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.modal.mobile.js +2 -2
- package/cssm/index-f12ee135.d.ts +4 -0
- package/esm/Component-bdb4c6b9.d.ts +7 -11
- package/esm/Component-f12ee135.d.ts +3 -3
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.d.ts +1 -1
- package/esm/Component.modal.mobile.js +3 -3
- 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-f12ee135.d.ts +4 -0
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-bad1a093.js → mobile.module-0259ae5b.js} +1 -1
- package/esm/responsive.js +1 -1
- package/index-f12ee135.d.ts +4 -0
- package/index.js +1 -1
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-22ee5ba9.js → mobile.module-38e739f7.js} +1 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.js +7 -7
- 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-f12ee135.d.ts +4 -0
- package/modern/index.js +1 -1
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-32ab5262.js → mobile.module-058e010f.js} +1 -1
- package/modern/responsive.js +1 -1
- package/package.json +2 -2
- package/responsive.js +1 -1
- /package/{esm/Component.mobile-b2c0420d.d.ts → Component.mobile-b2c0420d.d.ts} +0 -0
- /package/{Component.mobile-e81c389f.d.ts → esm/Component.mobile-e81c389f.d.ts} +0 -0
package/Component-bdb4c6b9.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from "./typings-bdb4c6b9";
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
fullscreen?: boolean | undefined;
|
|
7
|
+
fixedPosition?: boolean | undefined;
|
|
8
|
+
hasCloser?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
view: View;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Modal };
|
package/Component-f12ee135.d.ts
CHANGED
|
@@ -61,11 +61,11 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
|
|
|
61
61
|
/**
|
|
62
62
|
* Дополнительные пропсы шапки модалки
|
|
63
63
|
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component.mobile
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component.modal.mobile").HeaderProps> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Дополнительные пропсы футера модалки
|
|
67
67
|
*/
|
|
68
|
-
modalFooterProps?: Partial<import("./Component.mobile-
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-b2c0420d").FooterProps> | undefined;
|
|
69
69
|
} & React.RefAttributes<unknown>>;
|
|
70
|
-
export * from "./Component.mobile-
|
|
70
|
+
export * from "./Component.mobile-b2c0420d";
|
|
71
71
|
export { SelectMobileProps, BaseSelectMobile };
|
package/Component.mobile.js
CHANGED
|
@@ -11,7 +11,7 @@ var coreComponentsButton = require('@alfalab/core-components-button');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var coreComponentsSelect = require('@alfalab/core-components-select');
|
|
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-38e739f7.js');
|
|
15
15
|
require('@alfalab/core-components-form-control');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
4
|
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
5
|
import { BaseSelectChangePayload } from "./index-3e68f8db";
|
|
6
|
-
import { ModalMobile } from "./Component.mobile-e81c389f";
|
|
7
6
|
import { UseSelectWithApplyProps } from "./hook-b4e70cb0";
|
|
8
7
|
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
8
|
+
import { ModalMobile } from "./Component.mobile-b2c0420d";
|
|
9
9
|
type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> & {
|
|
10
10
|
/**
|
|
11
11
|
* Показывать кнопку очистки
|
|
@@ -11,7 +11,7 @@ var coreComponentsButton = require('@alfalab/core-components-button');
|
|
|
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-38e739f7.js');
|
|
15
15
|
require('@alfalab/core-components-form-control');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
|
23
23
|
var throttle__default = /*#__PURE__*/_interopDefaultCompat(throttle);
|
|
24
24
|
|
|
25
25
|
var InputAutocompleteModalMobile = React__default.default.forwardRef(function (_a, ref) {
|
|
26
|
-
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input = _c === void 0 ? coreComponentsInput.Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, restProps = tslib.__rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps"]);
|
|
26
|
+
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input = _c === void 0 ? coreComponentsInput.Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, modalProps = _a.modalProps, modalHeaderProps = _a.modalHeaderProps, modalFooterProps = _a.modalFooterProps, restProps = tslib.__rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps", "modalProps", "modalHeaderProps", "modalFooterProps"]);
|
|
27
27
|
var _f = React__default.default.useState(false), open = _f[0], setOpen = _f[1];
|
|
28
28
|
var targetRef = React.useRef(null);
|
|
29
29
|
var modalScrollableRef = React.useRef(null);
|
|
@@ -71,7 +71,7 @@ var InputAutocompleteModalMobile = React__default.default.forwardRef(function (_
|
|
|
71
71
|
var renderFooter = function () { return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
72
72
|
React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({ block: true, view: 'primary', size: 's', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"),
|
|
73
73
|
React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({ block: true, view: 'secondary', size: 's', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"))); };
|
|
74
|
-
return (React__default.default.createElement(mobile.SelectModalMobile, tslib.__assign({
|
|
74
|
+
return (React__default.default.createElement(mobile.SelectModalMobile, tslib.__assign({ ref: mergeRefs__default.default([ref, targetRef]), name: name, Field: autocompleteMobileField_Component.AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, useWithApplyHook: false, modalProps: tslib.__assign(tslib.__assign({}, modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: tslib.__assign(tslib.__assign({}, modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: tslib.__assign(tslib.__assign({ sticky: true }, modalFooterProps), { children: renderFooter() }) }, restProps)));
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
exports.InputAutocompleteModalMobile = InputAutocompleteModalMobile;
|
package/Component.responsive.js
CHANGED
|
@@ -16,7 +16,7 @@ require('lodash.throttle');
|
|
|
16
16
|
require('@alfalab/core-components-button');
|
|
17
17
|
require('./autocomplete-mobile-field/Component.js');
|
|
18
18
|
require('@alfalab/core-components-form-control');
|
|
19
|
-
require('./mobile.module-
|
|
19
|
+
require('./mobile.module-38e739f7.js');
|
|
20
20
|
|
|
21
21
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
22
22
|
|
|
@@ -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_y98f7","error":"input-autocomplete__error_y98f7"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"input-
|
|
16
|
+
var styles = {"component":"input-autocomplete__component_40nj0","field":"input-autocomplete__field_40nj0","disabled":"input-autocomplete__disabled_40nj0","placeholder":"input-autocomplete__placeholder_40nj0","contentWrapper":"input-autocomplete__contentWrapper_40nj0","value":"input-autocomplete__value_40nj0","focusVisible":"input-autocomplete__focusVisible_40nj0"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1de0t */
|
|
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_40nj0 {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_40nj0:not(.input-autocomplete__disabled_40nj0) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_40nj0 {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_40nj0 {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_40nj0 {
|
|
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_40nj0 {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_40nj0 {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -25,7 +25,7 @@ var throttle__default = /*#__PURE__*/_interopDefaultCompat(throttle);
|
|
|
25
25
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
26
26
|
|
|
27
27
|
var InputAutocompleteModalMobile = React__default.default.forwardRef(function (_a, ref) {
|
|
28
|
-
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input = _c === void 0 ? coreComponentsInput.Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, restProps = tslib.__rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps"]);
|
|
28
|
+
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input = _c === void 0 ? coreComponentsInput.Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, modalProps = _a.modalProps, modalHeaderProps = _a.modalHeaderProps, modalFooterProps = _a.modalFooterProps, restProps = tslib.__rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps", "modalProps", "modalHeaderProps", "modalFooterProps"]);
|
|
29
29
|
var _f = React__default.default.useState(false), open = _f[0], setOpen = _f[1];
|
|
30
30
|
var targetRef = React.useRef(null);
|
|
31
31
|
var modalScrollableRef = React.useRef(null);
|
|
@@ -73,7 +73,7 @@ var InputAutocompleteModalMobile = React__default.default.forwardRef(function (_
|
|
|
73
73
|
var renderFooter = function () { return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
74
74
|
React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({ block: true, view: 'primary', size: 's', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"),
|
|
75
75
|
React__default.default.createElement(coreComponentsButton.Button, tslib.__assign({ block: true, view: 'secondary', size: 's', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"))); };
|
|
76
|
-
return (React__default.default.createElement(mobile.SelectModalMobile, tslib.__assign({
|
|
76
|
+
return (React__default.default.createElement(mobile.SelectModalMobile, tslib.__assign({ ref: mergeRefs__default.default([ref, targetRef]), name: name, Field: autocompleteMobileField_Component.AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, useWithApplyHook: false, modalProps: tslib.__assign(tslib.__assign({}, modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: tslib.__assign(tslib.__assign({}, modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: tslib.__assign(tslib.__assign({ sticky: true }, modalFooterProps), { children: renderFooter() }) }, restProps)));
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
exports.InputAutocompleteModalMobile = InputAutocompleteModalMobile;
|
package/cssm/index-f12ee135.d.ts
CHANGED
|
@@ -165,6 +165,10 @@ type BottomSheetProps = {
|
|
|
165
165
|
* Отключает блокировку скролла при открытии модального окна
|
|
166
166
|
*/
|
|
167
167
|
disableBlockingScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает ловушку фокуса
|
|
170
|
+
*/
|
|
171
|
+
disableFocusLock?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
170
174
|
* Не анимировать шторку при изменении размера вьюпорта
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} & {
|
|
10
|
-
view: View;
|
|
11
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { Modal };
|
|
2
|
+
type FooterProps = {
|
|
3
|
+
handleClear?: () => void;
|
|
4
|
+
handleApply?: () => void;
|
|
5
|
+
showClear?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const Footer: ({ handleApply, handleClear, showClear }: FooterProps) => JSX.Element;
|
|
8
|
+
export { FooterProps, Footer };
|
|
@@ -61,11 +61,11 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
|
|
|
61
61
|
/**
|
|
62
62
|
* Дополнительные пропсы шапки модалки
|
|
63
63
|
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component.
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component.mobile-e81c389f").HeaderProps> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Дополнительные пропсы футера модалки
|
|
67
67
|
*/
|
|
68
|
-
modalFooterProps?: Partial<import("./Component.mobile-
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-e81c389f").FooterProps> | undefined;
|
|
69
69
|
} & React.RefAttributes<unknown>>;
|
|
70
|
-
export * from "./Component.mobile-
|
|
70
|
+
export * from "./Component.mobile-e81c389f";
|
|
71
71
|
export { SelectMobileProps, BaseSelectMobile };
|
package/esm/Component.mobile.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Button } from '@alfalab/core-components-button/esm';
|
|
|
7
7
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
8
8
|
import { SelectMobile } from '@alfalab/core-components-select/esm';
|
|
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-0259ae5b.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
4
|
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
5
|
import { BaseSelectChangePayload } from "./index-3e68f8db";
|
|
6
|
+
import { ModalMobile } from "./Component.mobile-e81c389f";
|
|
6
7
|
import { UseSelectWithApplyProps } from "./hook-b4e70cb0";
|
|
7
8
|
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
8
|
-
import { ModalMobile } from "./Component.mobile-b2c0420d";
|
|
9
9
|
type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> & {
|
|
10
10
|
/**
|
|
11
11
|
* Показывать кнопку очистки
|
|
@@ -7,12 +7,12 @@ import { Button } from '@alfalab/core-components-button/esm';
|
|
|
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-0259ae5b.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
14
14
|
var InputAutocompleteModalMobile = React.forwardRef(function (_a, ref) {
|
|
15
|
-
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input$1 = _c === void 0 ? Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, restProps = __rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps"]);
|
|
15
|
+
var openProp = _a.open, onOpen = _a.onOpen, name = _a.name, _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.Input, Input$1 = _c === void 0 ? Input : _c, _d = _a.Arrow, Arrow = _d === void 0 ? null : _d, onClearFilter = _a.onClearFilter, _e = _a.filter, filter = _e === void 0 ? '' : _e, onFilter = _a.onFilter, placeholder = _a.placeholder, bottomAddonProps = _a.bottomAddonProps, multiple = _a.multiple, onChange = _a.onChange, onCancel = _a.onCancel, value = _a.value, cancelButtonProps = _a.cancelButtonProps, continueButtonProps = _a.continueButtonProps, modalProps = _a.modalProps, modalHeaderProps = _a.modalHeaderProps, modalFooterProps = _a.modalFooterProps, restProps = __rest(_a, ["open", "onOpen", "name", "size", "Input", "Arrow", "onClearFilter", "filter", "onFilter", "placeholder", "bottomAddonProps", "multiple", "onChange", "onCancel", "value", "cancelButtonProps", "continueButtonProps", "modalProps", "modalHeaderProps", "modalFooterProps"]);
|
|
16
16
|
var _f = React.useState(false), open = _f[0], setOpen = _f[1];
|
|
17
17
|
var targetRef = useRef(null);
|
|
18
18
|
var modalScrollableRef = useRef(null);
|
|
@@ -60,7 +60,7 @@ var InputAutocompleteModalMobile = React.forwardRef(function (_a, ref) {
|
|
|
60
60
|
var renderFooter = function () { return (React.createElement(React.Fragment, null,
|
|
61
61
|
React.createElement(Button, __assign({ block: true, view: 'primary', size: 's', onClick: handleApply }, continueButtonProps), "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"),
|
|
62
62
|
React.createElement(Button, __assign({ block: true, view: 'secondary', size: 's', onClick: handleCancel }, cancelButtonProps), "\u041E\u0442\u043C\u0435\u043D\u0430"))); };
|
|
63
|
-
return (React.createElement(SelectModalMobile, __assign({
|
|
63
|
+
return (React.createElement(SelectModalMobile, __assign({ ref: mergeRefs([ref, targetRef]), name: name, Field: AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp !== null && openProp !== void 0 ? openProp : open, size: size, fieldProps: { value: value }, placeholder: placeholder, useWithApplyHook: false, modalProps: __assign(__assign({}, modalProps), { componentRef: modalScrollableRef }), modalHeaderProps: __assign(__assign({}, modalHeaderProps), { bottomAddons: renderBottomAddon() }), modalFooterProps: __assign(__assign({ sticky: true }, modalFooterProps), { children: renderFooter() }) }, restProps)));
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
export { InputAutocompleteModalMobile };
|
|
@@ -12,7 +12,7 @@ import 'lodash.throttle';
|
|
|
12
12
|
import '@alfalab/core-components-button/esm';
|
|
13
13
|
import './autocomplete-mobile-field/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/esm';
|
|
15
|
-
import './mobile.module-
|
|
15
|
+
import './mobile.module-0259ae5b.js';
|
|
16
16
|
|
|
17
17
|
var InputAutocompleteResponsive = forwardRef(function (_a, ref) {
|
|
18
18
|
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 { Input } from '@alfalab/core-components-input/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"arrow":"input-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_y98f7","error":"input-autocomplete__error_y98f7"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { FormControl } from '@alfalab/core-components-form-control/esm';
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"input-
|
|
7
|
+
var styles = {"component":"input-autocomplete__component_40nj0","field":"input-autocomplete__field_40nj0","disabled":"input-autocomplete__disabled_40nj0","placeholder":"input-autocomplete__placeholder_40nj0","contentWrapper":"input-autocomplete__contentWrapper_40nj0","value":"input-autocomplete__value_40nj0","focusVisible":"input-autocomplete__focusVisible_40nj0"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1de0t */
|
|
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_40nj0 {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_40nj0:not(.input-autocomplete__disabled_40nj0) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_40nj0 {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_40nj0 {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_40nj0 {
|
|
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_40nj0 {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_40nj0 {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
package/esm/index-f12ee135.d.ts
CHANGED
|
@@ -165,6 +165,10 @@ type BottomSheetProps = {
|
|
|
165
165
|
* Отключает блокировку скролла при открытии модального окна
|
|
166
166
|
*/
|
|
167
167
|
disableBlockingScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает ловушку фокуса
|
|
170
|
+
*/
|
|
171
|
+
disableFocusLock?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
170
174
|
* Не анимировать шторку при изменении размера вьюпорта
|
package/esm/index.js
CHANGED
package/esm/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2gl3v */
|
|
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_1uscd {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1uscd {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1uscd > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/esm/mobile.js
CHANGED
|
@@ -11,5 +11,5 @@ import '@alfalab/core-components-select/esm';
|
|
|
11
11
|
import './autocomplete-mobile-field/Component.js';
|
|
12
12
|
import '@alfalab/core-components-form-control/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import './mobile.module-
|
|
14
|
+
import './mobile.module-0259ae5b.js';
|
|
15
15
|
import '@alfalab/core-components-select/esm/mobile';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var styles = {"bottomAddonInput":"input-
|
|
1
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1uscd","footer":"input-autocomplete__footer_1uscd"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
package/esm/responsive.js
CHANGED
package/index-f12ee135.d.ts
CHANGED
|
@@ -165,6 +165,10 @@ type BottomSheetProps = {
|
|
|
165
165
|
* Отключает блокировку скролла при открытии модального окна
|
|
166
166
|
*/
|
|
167
167
|
disableBlockingScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает ловушку фокуса
|
|
170
|
+
*/
|
|
171
|
+
disableFocusLock?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
170
174
|
* Не анимировать шторку при изменении размера вьюпорта
|
package/index.js
CHANGED
|
@@ -17,7 +17,7 @@ require('lodash.throttle');
|
|
|
17
17
|
require('@alfalab/core-components-button');
|
|
18
18
|
require('./autocomplete-mobile-field/Component.js');
|
|
19
19
|
require('@alfalab/core-components-form-control');
|
|
20
|
-
require('./mobile.module-
|
|
20
|
+
require('./mobile.module-38e739f7.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2gl3v */
|
|
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_1uscd {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1uscd {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1uscd > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/mobile.js
CHANGED
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-select');
|
|
|
15
15
|
require('./autocomplete-mobile-field/Component.js');
|
|
16
16
|
require('@alfalab/core-components-form-control');
|
|
17
17
|
require('@alfalab/hooks');
|
|
18
|
-
require('./mobile.module-
|
|
18
|
+
require('./mobile.module-38e739f7.js');
|
|
19
19
|
require('@alfalab/core-components-select/mobile');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var styles = {"bottomAddonInput":"input-
|
|
3
|
+
var styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1uscd","footer":"input-autocomplete__footer_1uscd"};
|
|
4
4
|
require('./mobile.css')
|
|
5
5
|
|
|
6
6
|
exports.styles = styles;
|
|
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/modern';
|
|
|
6
6
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
7
7
|
import { SelectMobile } from '@alfalab/core-components-select/modern';
|
|
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-058e010f.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -6,11 +6,11 @@ import { Button } from '@alfalab/core-components-button/modern';
|
|
|
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-058e010f.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
13
|
-
const InputAutocompleteModalMobile = React.forwardRef(({ open: openProp, onOpen, name, size = 's', Input: Input$1 = Input, Arrow = null, onClearFilter, filter = '', onFilter, placeholder, bottomAddonProps, multiple, onChange, onCancel, value, cancelButtonProps, continueButtonProps, ...restProps }, ref) => {
|
|
13
|
+
const InputAutocompleteModalMobile = React.forwardRef(({ open: openProp, onOpen, name, size = 's', Input: Input$1 = Input, Arrow = null, onClearFilter, filter = '', onFilter, placeholder, bottomAddonProps, multiple, onChange, onCancel, value, cancelButtonProps, continueButtonProps, modalProps, modalHeaderProps, modalFooterProps, ...restProps }, ref) => {
|
|
14
14
|
const [open, setOpen] = React.useState(false);
|
|
15
15
|
const targetRef = useRef(null);
|
|
16
16
|
const modalScrollableRef = useRef(null);
|
|
@@ -57,17 +57,17 @@ const InputAutocompleteModalMobile = React.forwardRef(({ open: openProp, onOpen,
|
|
|
57
57
|
const renderFooter = () => (React.createElement(React.Fragment, null,
|
|
58
58
|
React.createElement(Button, { block: true, view: 'primary', size: 's', onClick: handleApply, ...continueButtonProps }, "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"),
|
|
59
59
|
React.createElement(Button, { block: true, view: 'secondary', size: 's', onClick: handleCancel, ...cancelButtonProps }, "\u041E\u0442\u043C\u0435\u043D\u0430")));
|
|
60
|
-
return (React.createElement(SelectModalMobile, {
|
|
61
|
-
...
|
|
60
|
+
return (React.createElement(SelectModalMobile, { ref: mergeRefs([ref, targetRef]), name: name, Field: AutocompleteMobileField, Arrow: Arrow, onOpen: handleOpen, onChange: handleChange, multiple: multiple, open: openProp ?? open, size: size, fieldProps: { value }, placeholder: placeholder, useWithApplyHook: false, modalProps: {
|
|
61
|
+
...modalProps,
|
|
62
62
|
componentRef: modalScrollableRef,
|
|
63
63
|
}, modalHeaderProps: {
|
|
64
|
-
...
|
|
64
|
+
...modalHeaderProps,
|
|
65
65
|
bottomAddons: renderBottomAddon(),
|
|
66
66
|
}, modalFooterProps: {
|
|
67
67
|
sticky: true,
|
|
68
|
-
...
|
|
68
|
+
...modalFooterProps,
|
|
69
69
|
children: renderFooter(),
|
|
70
|
-
} }));
|
|
70
|
+
}, ...restProps }));
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
export { InputAutocompleteModalMobile };
|
|
@@ -11,7 +11,7 @@ import 'lodash.throttle';
|
|
|
11
11
|
import '@alfalab/core-components-button/modern';
|
|
12
12
|
import './autocomplete-mobile-field/Component.js';
|
|
13
13
|
import '@alfalab/core-components-form-control/modern';
|
|
14
|
-
import './mobile.module-
|
|
14
|
+
import './mobile.module-058e010f.js';
|
|
15
15
|
|
|
16
16
|
const InputAutocompleteResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
|
|
17
17
|
const [view] = useMedia([
|
|
@@ -3,7 +3,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"arrow":"input-
|
|
6
|
+
const styles = {"arrow":"input-autocomplete__arrow_y98f7","error":"input-autocomplete__error_y98f7"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arrow, Input: Input$1 = Input, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { FormControl } from '@alfalab/core-components-form-control/modern';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"input-
|
|
6
|
+
const styles = {"component":"input-autocomplete__component_40nj0","field":"input-autocomplete__field_40nj0","disabled":"input-autocomplete__disabled_40nj0","placeholder":"input-autocomplete__placeholder_40nj0","contentWrapper":"input-autocomplete__contentWrapper_40nj0","value":"input-autocomplete__value_40nj0","focusVisible":"input-autocomplete__focusVisible_40nj0"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteMobileField = ({ size = 'm', open, error, hint, disabled, label, labelView = 'inner', placeholder, value, innerProps, dataTestId, fieldClassName, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1de0t */
|
|
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_40nj0 {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_40nj0:not(.input-autocomplete__disabled_40nj0) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_40nj0 {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_40nj0 {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_40nj0 {
|
|
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_40nj0 {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_40nj0 {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -165,6 +165,10 @@ type BottomSheetProps = {
|
|
|
165
165
|
* Отключает блокировку скролла при открытии модального окна
|
|
166
166
|
*/
|
|
167
167
|
disableBlockingScroll?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает ловушку фокуса
|
|
170
|
+
*/
|
|
171
|
+
disableFocusLock?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
170
174
|
* Не анимировать шторку при изменении размера вьюпорта
|
package/modern/index.js
CHANGED
|
@@ -12,4 +12,4 @@ import 'lodash.throttle';
|
|
|
12
12
|
import '@alfalab/core-components-button/modern';
|
|
13
13
|
import './autocomplete-mobile-field/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/modern';
|
|
15
|
-
import './mobile.module-
|
|
15
|
+
import './mobile.module-058e010f.js';
|
package/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2gl3v */
|
|
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_1uscd {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_1uscd {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_1uscd > button + button {
|
|
25
25
|
margin-left: var(--gap-m);
|
|
26
26
|
}
|
package/modern/mobile.js
CHANGED
|
@@ -10,5 +10,5 @@ import '@alfalab/core-components-select/modern';
|
|
|
10
10
|
import './autocomplete-mobile-field/Component.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/modern';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
|
-
import './mobile.module-
|
|
13
|
+
import './mobile.module-058e010f.js';
|
|
14
14
|
import '@alfalab/core-components-select/modern/mobile';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const styles = {"bottomAddonInput":"input-
|
|
1
|
+
const styles = {"bottomAddonInput":"input-autocomplete__bottomAddonInput_1uscd","footer":"input-autocomplete__footer_1uscd"};
|
|
2
2
|
require('./mobile.css')
|
|
3
3
|
|
|
4
4
|
export { styles as s };
|
package/modern/responsive.js
CHANGED
|
@@ -12,4 +12,4 @@ import 'lodash.throttle';
|
|
|
12
12
|
import '@alfalab/core-components-button/modern';
|
|
13
13
|
import './autocomplete-mobile-field/Component.js';
|
|
14
14
|
import '@alfalab/core-components-form-control/modern';
|
|
15
|
-
import './mobile.module-
|
|
15
|
+
import './mobile.module-058e010f.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@alfalab/core-components-button": "^8.4.0",
|
|
21
21
|
"@alfalab/core-components-form-control": "^9.0.5",
|
|
22
22
|
"@alfalab/core-components-input": "^11.1.16",
|
|
23
|
-
"@alfalab/core-components-select": "^14.3.
|
|
23
|
+
"@alfalab/core-components-select": "^14.3.1",
|
|
24
24
|
"@alfalab/hooks": "^1.13.0",
|
|
25
25
|
"classnames": "^2.3.1",
|
|
26
26
|
"lodash.throttle": "^4.1.1",
|
package/responsive.js
CHANGED
|
@@ -17,7 +17,7 @@ require('lodash.throttle');
|
|
|
17
17
|
require('@alfalab/core-components-button');
|
|
18
18
|
require('./autocomplete-mobile-field/Component.js');
|
|
19
19
|
require('@alfalab/core-components-form-control');
|
|
20
|
-
require('./mobile.module-
|
|
20
|
+
require('./mobile.module-38e739f7.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
File without changes
|
|
File without changes
|