@alfalab/core-components-input-autocomplete 9.4.1 → 9.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile.js +1 -1
- 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/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-b2c0420d.d.ts → Component.mobile-e81c389f.d.ts} +5 -2
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.d.ts +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/index-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-0f496cf3.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-f85b4300.js} +1 -1
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- 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-bcf5a0ca.js} +1 -1
- package/modern/responsive.js +1 -1
- package/package.json +2 -2
- package/responsive.js +1 -1
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-f85b4300.js');
|
|
15
15
|
require('@alfalab/core-components-form-control');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
|
@@ -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-f85b4300.js');
|
|
15
15
|
require('@alfalab/core-components-form-control');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|
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-f85b4300.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_24bt3","error":"input-autocomplete__error_24bt3"};
|
|
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_nonoc","field":"input-autocomplete__field_nonoc","disabled":"input-autocomplete__disabled_nonoc","placeholder":"input-autocomplete__placeholder_nonoc","contentWrapper":"input-autocomplete__contentWrapper_nonoc","value":"input-autocomplete__value_nonoc","focusVisible":"input-autocomplete__focusVisible_nonoc"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dd24a */
|
|
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_nonoc {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_nonoc:not(.input-autocomplete__disabled_nonoc) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_nonoc {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_nonoc {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_nonoc {
|
|
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_nonoc {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_nonoc {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
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 };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
4
5
|
import { ContentProps, ModalMobileProps } from "./typings-bdb4c6b9";
|
|
6
|
+
type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
|
|
7
|
+
declare const Header: FC<HeaderProps>;
|
|
5
8
|
declare const Content: FC<ContentProps>;
|
|
6
9
|
type FooterProps = {
|
|
7
10
|
/**
|
|
@@ -28,8 +31,8 @@ type FooterProps = {
|
|
|
28
31
|
declare const Footer: FC<FooterProps>;
|
|
29
32
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
30
33
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
31
|
-
Header: React.FC<
|
|
34
|
+
Header: React.FC<HeaderProps>;
|
|
32
35
|
Footer: React.FC<FooterProps>;
|
|
33
36
|
Closer: React.FC<import("./index-e81c389f").CloserProps>;
|
|
34
37
|
};
|
|
35
|
-
export { Content, FooterProps, Footer, ModalMobile };
|
|
38
|
+
export { HeaderProps, Header, Content, FooterProps, Footer, ModalMobile };
|
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-0f496cf3.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,7 +7,7 @@ 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-0f496cf3.js';
|
|
11
11
|
import '@alfalab/core-components-form-control/esm';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
|
|
@@ -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-0f496cf3.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_24bt3","error":"input-autocomplete__error_24bt3"};
|
|
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_nonoc","field":"input-autocomplete__field_nonoc","disabled":"input-autocomplete__disabled_nonoc","placeholder":"input-autocomplete__placeholder_nonoc","contentWrapper":"input-autocomplete__contentWrapper_nonoc","value":"input-autocomplete__value_nonoc","focusVisible":"input-autocomplete__focusVisible_nonoc"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dd24a */
|
|
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_nonoc {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_nonoc:not(.input-autocomplete__disabled_nonoc) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_nonoc {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_nonoc {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_nonoc {
|
|
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_nonoc {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_nonoc {
|
|
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: 9cwx2 */
|
|
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_ynfri {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_ynfri {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_ynfri > 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-0f496cf3.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_ynfri","footer":"input-autocomplete__footer_ynfri"};
|
|
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-f85b4300.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
package/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9cwx2 */
|
|
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_ynfri {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_ynfri {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_ynfri > 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-f85b4300.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_ynfri","footer":"input-autocomplete__footer_ynfri"};
|
|
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-bcf5a0ca.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -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 { 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-bcf5a0ca.js';
|
|
10
10
|
import '@alfalab/core-components-form-control/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
@@ -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-bcf5a0ca.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_24bt3","error":"input-autocomplete__error_24bt3"};
|
|
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_nonoc","field":"input-autocomplete__field_nonoc","disabled":"input-autocomplete__disabled_nonoc","placeholder":"input-autocomplete__placeholder_nonoc","contentWrapper":"input-autocomplete__contentWrapper_nonoc","value":"input-autocomplete__value_nonoc","focusVisible":"input-autocomplete__focusVisible_nonoc"};
|
|
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: dd24a */
|
|
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_nonoc {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_nonoc:not(.input-autocomplete__disabled_nonoc) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_nonoc {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_nonoc {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_nonoc {
|
|
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_nonoc {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_nonoc {
|
|
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-bcf5a0ca.js';
|
package/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9cwx2 */
|
|
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_ynfri {
|
|
20
20
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
} .input-
|
|
22
|
+
} .input-autocomplete__footer_ynfri {
|
|
23
23
|
display: flex
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__footer_ynfri > 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-bcf5a0ca.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_ynfri","footer":"input-autocomplete__footer_ynfri"};
|
|
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-bcf5a0ca.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.2",
|
|
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-f85b4300.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|