@alfalab/core-components-input-autocomplete 7.4.1 → 7.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/CHANGELOG.md +8 -0
- package/dist/Component.js +1 -1
- package/dist/Component.mobile.js +2 -2
- package/dist/autocomplete-field/Component.js +2 -2
- package/dist/autocomplete-field/index.css +2 -2
- package/dist/autocomplete-field/index.js +1 -1
- package/dist/autocomplete-mobile-field/Component.js +2 -2
- package/dist/autocomplete-mobile-field/index.css +8 -8
- package/dist/autocomplete-mobile-field/index.js +1 -1
- package/dist/esm/Component.js +1 -1
- package/dist/esm/Component.mobile.js +2 -2
- package/dist/esm/autocomplete-field/Component.js +2 -2
- package/dist/esm/autocomplete-field/index.css +2 -2
- package/dist/esm/autocomplete-field/index.js +1 -1
- package/dist/esm/autocomplete-mobile-field/Component.js +2 -2
- package/dist/esm/autocomplete-mobile-field/index.css +8 -8
- package/dist/esm/autocomplete-mobile-field/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/mobile.css +3 -3
- package/dist/esm/mobile.js +1 -1
- package/dist/esm/{tslib.es6-de0ca3d1.d.ts → tslib.es6-e29e91fb.d.ts} +0 -0
- package/dist/esm/{tslib.es6-de0ca3d1.js → tslib.es6-e29e91fb.js} +0 -0
- package/dist/index.js +1 -1
- package/dist/mobile.css +3 -3
- package/dist/mobile.js +1 -1
- package/dist/modern/Component.mobile.js +1 -1
- package/dist/modern/autocomplete-field/Component.js +1 -1
- package/dist/modern/autocomplete-field/index.css +2 -2
- package/dist/modern/autocomplete-mobile-field/Component.js +1 -1
- package/dist/modern/autocomplete-mobile-field/index.css +8 -8
- package/dist/modern/mobile.css +3 -3
- package/dist/{tslib.es6-4269b38b.d.ts → tslib.es6-83e91920.d.ts} +0 -0
- package/dist/{tslib.es6-4269b38b.js → tslib.es6-83e91920.js} +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.1...@alfalab/core-components-input-autocomplete@7.4.2) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [7.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.0...@alfalab/core-components-input-autocomplete@7.4.1) (2022-07-11)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
package/dist/Component.js
CHANGED
package/dist/Component.mobile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-83e91920.js');
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
|
|
22
22
|
var throttle__default = /*#__PURE__*/_interopDefaultLegacy(throttle);
|
|
23
23
|
|
|
24
|
-
var styles = {"bottomSheetInput":"input-
|
|
24
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_59w6m","footer":"input-autocomplete__footer_59w6m"};
|
|
25
25
|
require('./mobile.css')
|
|
26
26
|
|
|
27
27
|
var SELECTED = [];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-83e91920.js');
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -14,7 +14,7 @@ var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
|
|
16
16
|
|
|
17
|
-
var styles = {"arrow":"input-
|
|
17
|
+
var styles = {"arrow":"input-autocomplete__arrow_azcbd","error":"input-autocomplete__error_azcbd"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-83e91920.js');
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"input-
|
|
16
|
+
var styles = {"component":"input-autocomplete__component_14ait","field":"input-autocomplete__field_14ait","disabled":"input-autocomplete__disabled_14ait","placeholder":"input-autocomplete__placeholder_14ait","contentWrapper":"input-autocomplete__contentWrapper_14ait","value":"input-autocomplete__value_14ait","focusVisible":"input-autocomplete__focusVisible_14ait"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: b3wld */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
--focus-color: var(--color-light-border-link);
|
|
16
16
|
--disabled-cursor: not-allowed;
|
|
17
17
|
}
|
|
18
|
-
.input-
|
|
18
|
+
.input-autocomplete__component_14ait {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_14ait:not(.input-autocomplete__disabled_14ait) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_14ait {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_14ait {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_14ait {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
width: 100%;
|
|
40
40
|
}
|
|
41
|
-
.input-
|
|
41
|
+
.input-autocomplete__value_14ait {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_14ait {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
package/dist/esm/Component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-e29e91fb.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useState, useRef, useMemo } from 'react';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/hooks';
|
|
|
10
10
|
import '@alfalab/core-components-form-control/dist/esm';
|
|
11
11
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
12
12
|
|
|
13
|
-
var styles = {"bottomSheetInput":"input-
|
|
13
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_59w6m","footer":"input-autocomplete__footer_59w6m"};
|
|
14
14
|
require('./mobile.css')
|
|
15
15
|
|
|
16
16
|
var SELECTED = [];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __assign } from '../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../tslib.es6-e29e91fb.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useRef, useCallback } from 'react';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import { Input } from '@alfalab/core-components-input/dist/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"arrow":"input-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_azcbd","error":"input-autocomplete__error_azcbd"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../tslib.es6-e29e91fb.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useState, useRef } from 'react';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import { FormControl } from '@alfalab/core-components-form-control/dist/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"input-
|
|
7
|
+
var styles = {"component":"input-autocomplete__component_14ait","field":"input-autocomplete__field_14ait","disabled":"input-autocomplete__disabled_14ait","placeholder":"input-autocomplete__placeholder_14ait","contentWrapper":"input-autocomplete__contentWrapper_14ait","value":"input-autocomplete__value_14ait","focusVisible":"input-autocomplete__focusVisible_14ait"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: b3wld */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
--focus-color: var(--color-light-border-link);
|
|
16
16
|
--disabled-cursor: not-allowed;
|
|
17
17
|
}
|
|
18
|
-
.input-
|
|
18
|
+
.input-autocomplete__component_14ait {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_14ait:not(.input-autocomplete__disabled_14ait) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_14ait {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_14ait {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_14ait {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
width: 100%;
|
|
40
40
|
}
|
|
41
|
-
.input-
|
|
41
|
+
.input-autocomplete__value_14ait {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_14ait {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mptm */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_59w6m {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_59w6m {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
package/dist/esm/mobile.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/index.js
CHANGED
package/dist/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mptm */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_59w6m {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_59w6m {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
package/dist/mobile.js
CHANGED
|
@@ -9,7 +9,7 @@ import '@alfalab/hooks';
|
|
|
9
9
|
import '@alfalab/core-components-form-control/dist/modern';
|
|
10
10
|
import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"bottomSheetInput":"input-
|
|
12
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_59w6m","footer":"input-autocomplete__footer_59w6m"};
|
|
13
13
|
require('./mobile.css')
|
|
14
14
|
|
|
15
15
|
const SELECTED = [];
|
|
@@ -3,7 +3,7 @@ import React, { useRef, useCallback } from 'react';
|
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import { Input } from '@alfalab/core-components-input/dist/modern';
|
|
5
5
|
|
|
6
|
-
var styles = {"arrow":"input-
|
|
6
|
+
var styles = {"arrow":"input-autocomplete__arrow_azcbd","error":"input-autocomplete__error_azcbd"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteField = ({ label, placeholder, size, Arrow, Input: Input$1 = Input, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
|
|
@@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
|
|
|
3
3
|
import { useFocus } from '@alfalab/hooks';
|
|
4
4
|
import { FormControl } from '@alfalab/core-components-form-control/dist/modern';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"input-
|
|
6
|
+
var styles = {"component":"input-autocomplete__component_14ait","field":"input-autocomplete__field_14ait","disabled":"input-autocomplete__disabled_14ait","placeholder":"input-autocomplete__placeholder_14ait","contentWrapper":"input-autocomplete__contentWrapper_14ait","value":"input-autocomplete__value_14ait","focusVisible":"input-autocomplete__focusVisible_14ait"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const AutocompleteMobileField = ({ size = 'm', open, error, hint, disabled, label, placeholder, value, innerProps, dataTestId, fieldClassName, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: b3wld */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-link: #007aff;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
--focus-color: var(--color-light-border-link);
|
|
16
16
|
--disabled-cursor: not-allowed;
|
|
17
17
|
}
|
|
18
|
-
.input-
|
|
18
|
+
.input-autocomplete__component_14ait {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_14ait:not(.input-autocomplete__disabled_14ait) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_14ait {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_14ait {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_14ait {
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 20px;
|
|
34
34
|
font-weight: 400;
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
width: 100%;
|
|
40
40
|
}
|
|
41
|
-
.input-
|
|
41
|
+
.input-autocomplete__value_14ait {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_14ait {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
package/dist/modern/mobile.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mptm */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_59w6m {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_59w6m {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@alfalab/core-components-button": "^5.2.0",
|
|
23
23
|
"@alfalab/core-components-form-control": "^7.5.0",
|
|
24
24
|
"@alfalab/core-components-input": "^8.2.0",
|
|
25
|
-
"@alfalab/core-components-select": "^10.12.
|
|
25
|
+
"@alfalab/core-components-select": "^10.12.2",
|
|
26
26
|
"@alfalab/hooks": "^1.4.1",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"lodash.throttle": "^4.1.1",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash.throttle": "^4.1.7"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "5e9a6d31c954aeb2548cecfebc88c1bcab1313a0"
|
|
35
35
|
}
|