@alfalab/core-components-input-autocomplete 7.6.0 → 7.6.1
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 +858 -0
- package/{Component-7ca84eff.d.ts → dist/Component-7ca84eff.d.ts} +0 -0
- package/{Component.d.ts → dist/Component.d.ts} +0 -0
- package/{Component.js → dist/Component.js} +1 -1
- package/{Component.mobile.d.ts → dist/Component.mobile.d.ts} +0 -0
- package/{Component.mobile.js → dist/Component.mobile.js} +2 -2
- package/{autocomplete-field → dist/autocomplete-field}/Component.d.ts +0 -0
- package/{autocomplete-field → dist/autocomplete-field}/Component.js +2 -2
- package/dist/autocomplete-field/index.css +4 -0
- package/{autocomplete-field → dist/autocomplete-field}/index.d.ts +0 -0
- package/{autocomplete-field → dist/autocomplete-field}/index.js +1 -1
- package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/Component.d.ts +0 -0
- package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/Component.js +2 -2
- package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.css +8 -8
- package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.d.ts +0 -0
- package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.js +1 -1
- package/{cssm → dist/cssm}/Component-7ca84eff.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.js +2 -2
- package/{cssm → dist/cssm}/Component.mobile.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.mobile.js +4 -4
- package/{cssm → dist/cssm}/autocomplete-field/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/autocomplete-field/Component.js +1 -1
- package/{cssm → dist/cssm}/autocomplete-field/index.d.ts +0 -0
- package/{cssm → dist/cssm}/autocomplete-field/index.js +1 -1
- package/{cssm → dist/cssm}/autocomplete-field/index.module.css +0 -0
- package/{cssm → dist/cssm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/autocomplete-mobile-field/Component.js +1 -1
- package/{cssm → dist/cssm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{cssm → dist/cssm}/autocomplete-mobile-field/index.js +1 -1
- package/{cssm → dist/cssm}/autocomplete-mobile-field/index.module.css +0 -0
- package/{cssm → dist/cssm}/getDataTestId-3fe0d3e6.d.ts +0 -0
- package/{cssm → dist/cssm}/index-7ca84eff.d.ts +0 -0
- package/{cssm → dist/cssm}/index-bdb4c6b9.d.ts +0 -0
- package/{cssm → dist/cssm}/index-ebda875c.d.ts +0 -0
- package/{cssm → dist/cssm}/index.d.ts +0 -0
- package/{cssm → dist/cssm}/index.js +2 -2
- package/{cssm → dist/cssm}/mobile.d.ts +0 -0
- package/{cssm → dist/cssm}/mobile.js +4 -4
- package/{cssm → dist/cssm}/mobile.module.css +0 -0
- package/{cssm → dist/cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{cssm → dist/cssm}/tslib.es6-ce870b46.js +0 -0
- package/{esm → dist/esm}/Component-7ca84eff.d.ts +0 -0
- package/{esm → dist/esm}/Component.d.ts +0 -0
- package/{esm → dist/esm}/Component.js +3 -3
- package/{esm → dist/esm}/Component.mobile.d.ts +0 -0
- package/{esm → dist/esm}/Component.mobile.js +6 -6
- package/{esm → dist/esm}/autocomplete-field/Component.d.ts +0 -0
- package/{esm → dist/esm}/autocomplete-field/Component.js +3 -3
- package/dist/esm/autocomplete-field/index.css +4 -0
- package/{esm → dist/esm}/autocomplete-field/index.d.ts +0 -0
- package/{esm → dist/esm}/autocomplete-field/index.js +2 -2
- package/{esm → dist/esm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{esm → dist/esm}/autocomplete-mobile-field/Component.js +3 -3
- package/{esm → dist/esm}/autocomplete-mobile-field/index.css +8 -8
- package/{esm → dist/esm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{esm → dist/esm}/autocomplete-mobile-field/index.js +2 -2
- package/{esm → dist/esm}/getDataTestId-3fe0d3e6.d.ts +0 -0
- package/{esm → dist/esm}/index-7ca84eff.d.ts +0 -0
- package/{esm → dist/esm}/index-bdb4c6b9.d.ts +0 -0
- package/{esm → dist/esm}/index-ebda875c.d.ts +0 -0
- package/{esm → dist/esm}/index.d.ts +0 -0
- package/{esm → dist/esm}/index.js +3 -3
- package/{modern → dist/esm}/mobile.css +4 -4
- package/{esm → dist/esm}/mobile.d.ts +0 -0
- package/dist/esm/mobile.js +12 -0
- package/{esm/tslib.es6-7efeb408.d.ts → dist/esm/tslib.es6-2e0e5b56.d.ts} +0 -0
- package/{esm/tslib.es6-7efeb408.js → dist/esm/tslib.es6-2e0e5b56.js} +0 -0
- package/{getDataTestId-3fe0d3e6.d.ts → dist/getDataTestId-3fe0d3e6.d.ts} +0 -0
- package/{index-7ca84eff.d.ts → dist/index-7ca84eff.d.ts} +0 -0
- package/{index-bdb4c6b9.d.ts → dist/index-bdb4c6b9.d.ts} +0 -0
- package/{index-ebda875c.d.ts → dist/index-ebda875c.d.ts} +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +1 -1
- package/{mobile.css → dist/mobile.css} +4 -4
- package/{mobile.d.ts → dist/mobile.d.ts} +0 -0
- package/{mobile.js → dist/mobile.js} +1 -1
- package/{modern → dist/modern}/Component-7ca84eff.d.ts +0 -0
- package/{modern → dist/modern}/Component.d.ts +0 -0
- package/{modern → dist/modern}/Component.js +2 -2
- package/{modern → dist/modern}/Component.mobile.d.ts +0 -0
- package/{modern → dist/modern}/Component.mobile.js +5 -5
- package/{modern → dist/modern}/autocomplete-field/Component.d.ts +0 -0
- package/{modern → dist/modern}/autocomplete-field/Component.js +2 -2
- package/dist/modern/autocomplete-field/index.css +4 -0
- package/{modern → dist/modern}/autocomplete-field/index.d.ts +0 -0
- package/{modern → dist/modern}/autocomplete-field/index.js +1 -1
- package/{modern → dist/modern}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{modern → dist/modern}/autocomplete-mobile-field/Component.js +2 -2
- package/{modern → dist/modern}/autocomplete-mobile-field/index.css +8 -8
- package/{modern → dist/modern}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{modern → dist/modern}/autocomplete-mobile-field/index.js +1 -1
- package/{modern → dist/modern}/getDataTestId-3fe0d3e6.d.ts +0 -0
- package/{modern → dist/modern}/index-7ca84eff.d.ts +0 -0
- package/{modern → dist/modern}/index-bdb4c6b9.d.ts +0 -0
- package/{modern → dist/modern}/index-ebda875c.d.ts +0 -0
- package/{modern → dist/modern}/index.d.ts +0 -0
- package/{modern → dist/modern}/index.js +2 -2
- package/{esm → dist/modern}/mobile.css +4 -4
- package/{modern → dist/modern}/mobile.d.ts +0 -0
- package/{modern → dist/modern}/mobile.js +4 -4
- package/{send-stats.js → dist/send-stats.js} +0 -0
- package/{tslib.es6-ab4dd6e6.d.ts → dist/tslib.es6-6f98cd1b.d.ts} +0 -0
- package/{tslib.es6-ab4dd6e6.js → dist/tslib.es6-6f98cd1b.js} +0 -0
- package/package.json +14 -11
- package/autocomplete-field/index.css +0 -4
- package/esm/autocomplete-field/index.css +0 -4
- package/esm/mobile.js +0 -12
- package/modern/autocomplete-field/index.css +0 -4
|
@@ -2,14 +2,14 @@ import cn from 'classnames';
|
|
|
2
2
|
import React, { useState, useRef, useMemo } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import throttle from 'lodash.throttle';
|
|
5
|
-
import { SelectMobile } from '@alfalab/core-components-select/modern';
|
|
6
|
-
import { Button } from '@alfalab/core-components-button/modern';
|
|
7
|
-
import { Input } from '@alfalab/core-components-input/modern';
|
|
5
|
+
import { SelectMobile } from '@alfalab/core-components-select/dist/modern';
|
|
6
|
+
import { Button } from '@alfalab/core-components-button/dist/modern';
|
|
7
|
+
import { Input } from '@alfalab/core-components-input/dist/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '@alfalab/core-components-form-control/modern';
|
|
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_xconq","footer":"input-autocomplete__footer_xconq"};
|
|
13
13
|
require('./mobile.css')
|
|
14
14
|
|
|
15
15
|
const SELECTED = [];
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import React, { useRef, useCallback } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
|
-
import { Input } from '@alfalab/core-components-input/modern';
|
|
4
|
+
import { Input } from '@alfalab/core-components-input/dist/modern';
|
|
5
5
|
|
|
6
|
-
var styles = {"arrow":"input-
|
|
6
|
+
var styles = {"arrow":"input-autocomplete__arrow_1324s","error":"input-autocomplete__error_1324s"};
|
|
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, }) => {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
3
|
import { useFocus } from '@alfalab/hooks';
|
|
4
|
-
import { FormControl } from '@alfalab/core-components-form-control/modern';
|
|
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_s4wro","field":"input-autocomplete__field_s4wro","disabled":"input-autocomplete__disabled_s4wro","placeholder":"input-autocomplete__placeholder_s4wro","contentWrapper":"input-autocomplete__contentWrapper_s4wro","value":"input-autocomplete__value_s4wro","focusVisible":"input-autocomplete__focusVisible_s4wro"};
|
|
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: 19y7e */
|
|
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_s4wro {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_s4wro:not(.input-autocomplete__disabled_s4wro) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_s4wro {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_s4wro {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_s4wro {
|
|
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_s4wro {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_s4wro {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'classnames';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
|
-
import '@alfalab/core-components-select/modern';
|
|
5
|
-
import '@alfalab/core-components-input/modern';
|
|
4
|
+
import '@alfalab/core-components-select/dist/modern';
|
|
5
|
+
import '@alfalab/core-components-input/dist/modern';
|
|
6
6
|
import './autocomplete-field/Component.js';
|
|
7
7
|
export { InputAutocomplete } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1emtx */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
--gap-m: 16px;
|
|
13
13
|
}
|
|
14
|
-
.input-
|
|
14
|
+
.input-autocomplete__bottomSheetInput_xconq {
|
|
15
15
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
18
|
-
.input-
|
|
18
|
+
.input-autocomplete__footer_xconq {
|
|
19
19
|
display: flex
|
|
20
20
|
}
|
|
21
|
-
.input-
|
|
21
|
+
.input-autocomplete__footer_xconq > button + button {
|
|
22
22
|
margin-left: var(--gap-m);
|
|
23
23
|
}
|
|
File without changes
|
|
@@ -2,10 +2,10 @@ import 'classnames';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'lodash.throttle';
|
|
5
|
-
import '@alfalab/core-components-select/modern';
|
|
6
|
-
import '@alfalab/core-components-button/modern';
|
|
7
|
-
import '@alfalab/core-components-input/modern';
|
|
5
|
+
import '@alfalab/core-components-select/dist/modern';
|
|
6
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
7
|
+
import '@alfalab/core-components-input/dist/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
import '@alfalab/core-components-form-control/modern';
|
|
9
|
+
import '@alfalab/core-components-form-control/dist/modern';
|
|
10
10
|
import './autocomplete-mobile-field/Component.js';
|
|
11
11
|
export { InputAutocompleteMobile } from './Component.mobile.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"module": "./esm/index.js",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
13
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./dist/send-stats.js')){require('./dist/send-stats.js')} \""
|
|
11
14
|
},
|
|
12
15
|
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
"directory": "dist"
|
|
16
|
+
"access": "public"
|
|
15
17
|
},
|
|
16
18
|
"peerDependencies": {
|
|
17
19
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
20
|
},
|
|
19
21
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-button": "^5.3.
|
|
21
|
-
"@alfalab/core-components-form-control": "^7.6.
|
|
22
|
-
"@alfalab/core-components-input": "^9.1.
|
|
23
|
-
"@alfalab/core-components-select": "^11.1.
|
|
22
|
+
"@alfalab/core-components-button": "^5.3.2",
|
|
23
|
+
"@alfalab/core-components-form-control": "^7.6.1",
|
|
24
|
+
"@alfalab/core-components-input": "^9.1.2",
|
|
25
|
+
"@alfalab/core-components-select": "^11.1.4",
|
|
24
26
|
"@alfalab/hooks": "^1.4.1",
|
|
25
27
|
"classnames": "^2.3.1",
|
|
26
28
|
"lodash.throttle": "^4.1.1",
|
|
@@ -28,5 +30,6 @@
|
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|
|
30
32
|
"@types/lodash.throttle": "^4.1.7"
|
|
31
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
|
|
32
35
|
}
|
package/esm/mobile.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './tslib.es6-7efeb408.js';
|
|
2
|
-
import 'classnames';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-merge-refs';
|
|
5
|
-
import 'lodash.throttle';
|
|
6
|
-
import '@alfalab/core-components-select/esm';
|
|
7
|
-
import '@alfalab/core-components-button/esm';
|
|
8
|
-
import '@alfalab/core-components-input/esm';
|
|
9
|
-
import '@alfalab/hooks';
|
|
10
|
-
import '@alfalab/core-components-form-control/esm';
|
|
11
|
-
import './autocomplete-mobile-field/Component.js';
|
|
12
|
-
export { InputAutocompleteMobile } from './Component.mobile.js';
|