@alfalab/core-components-input-autocomplete 7.4.2 → 7.4.7
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 +44 -0
- package/{dist/Component-7ca84eff.d.ts → Component-7ca84eff.d.ts} +0 -0
- package/{dist/cssm/Component.d.ts → Component.d.ts} +0 -0
- package/{dist/Component.js → Component.js} +1 -1
- package/{dist/cssm/Component.mobile.d.ts → Component.mobile.d.ts} +0 -0
- package/{dist/Component.mobile.js → Component.mobile.js} +2 -2
- package/{dist/autocomplete-field → autocomplete-field}/Component.d.ts +0 -0
- package/{dist/autocomplete-field → autocomplete-field}/Component.js +2 -2
- package/autocomplete-field/index.css +4 -0
- package/{dist/autocomplete-field → autocomplete-field}/index.d.ts +0 -0
- package/{dist/autocomplete-field → autocomplete-field}/index.js +1 -1
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.d.ts +0 -0
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.js +2 -2
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.css +8 -8
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.d.ts +0 -0
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.js +1 -1
- package/{dist/cssm → cssm}/Component-7ca84eff.d.ts +0 -0
- package/{dist → cssm}/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.js +2 -2
- package/{dist → cssm}/Component.mobile.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.mobile.js +4 -4
- package/{dist/cssm → cssm}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/Component.js +1 -1
- package/{dist/cssm → cssm}/autocomplete-field/index.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/index.js +1 -1
- package/{dist/cssm → cssm}/autocomplete-field/index.module.css +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.js +1 -1
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.js +1 -1
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.module.css +0 -0
- package/{dist/esm → cssm}/index-7ca84eff.d.ts +13 -0
- package/{dist → cssm}/index-bdb4c6b9.d.ts +7 -1
- package/{dist/cssm → cssm}/index-ebda875c.d.ts +0 -0
- package/{dist/cssm → cssm}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/index.js +2 -2
- package/{dist/cssm → cssm}/mobile.d.ts +0 -0
- package/{dist/cssm → cssm}/mobile.js +4 -4
- package/{dist/cssm → cssm}/mobile.module.css +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist/esm → esm}/Component-7ca84eff.d.ts +0 -0
- package/{dist/esm → esm}/Component.d.ts +0 -0
- package/{dist/esm → esm}/Component.js +3 -3
- package/{dist/esm → esm}/Component.mobile.d.ts +0 -0
- package/{dist/esm → esm}/Component.mobile.js +6 -6
- package/{dist/esm → esm}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-field/Component.js +3 -3
- package/esm/autocomplete-field/index.css +4 -0
- package/{dist/esm → esm}/autocomplete-field/index.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-field/index.js +2 -2
- package/{dist/esm → esm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-mobile-field/Component.js +3 -3
- package/{dist/esm → esm}/autocomplete-mobile-field/index.css +8 -8
- package/{dist/esm → esm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-mobile-field/index.js +2 -2
- package/{dist/cssm → esm}/index-7ca84eff.d.ts +13 -0
- package/{dist/modern → esm}/index-bdb4c6b9.d.ts +7 -1
- package/{dist/esm → esm}/index-ebda875c.d.ts +0 -0
- package/{dist/esm → esm}/index.d.ts +0 -0
- package/{dist/esm → esm}/index.js +3 -3
- package/{dist/modern → esm}/mobile.css +3 -3
- package/{dist/esm → esm}/mobile.d.ts +0 -0
- package/esm/mobile.js +12 -0
- package/{dist/esm/tslib.es6-e29e91fb.d.ts → esm/tslib.es6-f3174141.d.ts} +0 -0
- package/{dist/esm/tslib.es6-e29e91fb.js → esm/tslib.es6-f3174141.js} +0 -0
- package/{dist/index-7ca84eff.d.ts → index-7ca84eff.d.ts} +13 -0
- package/{dist/esm/index-bdb4c6b9.d.ts → index-bdb4c6b9.d.ts} +7 -1
- package/{dist/index-ebda875c.d.ts → index-ebda875c.d.ts} +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +1 -1
- package/{dist/mobile.css → mobile.css} +3 -3
- package/{dist/mobile.d.ts → mobile.d.ts} +0 -0
- package/{dist/mobile.js → mobile.js} +1 -1
- package/{dist/modern → modern}/Component-7ca84eff.d.ts +0 -0
- package/{dist/modern → modern}/Component.d.ts +0 -0
- package/{dist/modern → modern}/Component.js +2 -2
- package/{dist/modern → modern}/Component.mobile.d.ts +0 -0
- package/{dist/modern → modern}/Component.mobile.js +5 -5
- package/{dist/modern → modern}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-field/Component.js +2 -2
- package/modern/autocomplete-field/index.css +4 -0
- package/{dist/modern → modern}/autocomplete-field/index.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-field/index.js +1 -1
- package/{dist/modern → modern}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-mobile-field/Component.js +2 -2
- package/{dist/modern → modern}/autocomplete-mobile-field/index.css +8 -8
- package/{dist/modern → modern}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-mobile-field/index.js +1 -1
- package/{dist/modern → modern}/index-7ca84eff.d.ts +13 -0
- package/{dist/cssm → modern}/index-bdb4c6b9.d.ts +7 -1
- package/{dist/modern → modern}/index-ebda875c.d.ts +0 -0
- package/{dist/modern → modern}/index.d.ts +0 -0
- package/{dist/modern → modern}/index.js +2 -2
- package/{dist/esm → modern}/mobile.css +3 -3
- package/{dist/modern → modern}/mobile.d.ts +0 -0
- package/{dist/modern → modern}/mobile.js +4 -4
- package/package.json +11 -14
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/tslib.es6-83e91920.d.ts → tslib.es6-383e37f1.d.ts} +0 -0
- package/{dist/tslib.es6-83e91920.js → tslib.es6-383e37f1.js} +0 -0
- package/dist/autocomplete-field/index.css +0 -4
- package/dist/esm/autocomplete-field/index.css +0 -4
- package/dist/esm/mobile.js +0 -12
- package/dist/modern/autocomplete-field/index.css +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,49 @@
|
|
|
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.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.6...@alfalab/core-components-input-autocomplete@7.4.7) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [7.4.6](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.5...@alfalab/core-components-input-autocomplete@7.4.6) (2022-07-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [7.4.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.4...@alfalab/core-components-input-autocomplete@7.4.5) (2022-07-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [7.4.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.3...@alfalab/core-components-input-autocomplete@7.4.4) (2022-07-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [7.4.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.2...@alfalab/core-components-input-autocomplete@7.4.3) (2022-07-14)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
6
49
|
## [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
50
|
|
|
8
51
|
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
@@ -746,4 +789,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
746
789
|
|
|
747
790
|
### Bug Fixes
|
|
748
791
|
|
|
792
|
+
|
|
749
793
|
* update versions ([#525](https://github.com/core-ds/core-components/issues/525)) ([31b2e4c](https://github.com/core-ds/core-components/commit/31b2e4c92fde6e2b63a3391a4e053cd328e93e70))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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-383e37f1.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_n8ovn","footer":"input-autocomplete__footer_n8ovn"};
|
|
25
25
|
require('./mobile.css')
|
|
26
26
|
|
|
27
27
|
var SELECTED = [];
|
|
File without changes
|
|
@@ -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-383e37f1.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_sy50e","error":"input-autocomplete__error_sy50e"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
File without changes
|
|
File without changes
|
|
@@ -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-383e37f1.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_hs18c","field":"input-autocomplete__field_hs18c","disabled":"input-autocomplete__disabled_hs18c","placeholder":"input-autocomplete__placeholder_hs18c","contentWrapper":"input-autocomplete__contentWrapper_hs18c","value":"input-autocomplete__value_hs18c","focusVisible":"input-autocomplete__focusVisible_hs18c"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: f810z */
|
|
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_hs18c {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_hs18c:not(.input-autocomplete__disabled_hs18c) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_hs18c {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_hs18c {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_hs18c {
|
|
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_hs18c {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_hs18c {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('./tslib.es6-ce870b46.js');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
|
-
var coreComponentsSelect = require('@alfalab/core-components-select/
|
|
10
|
-
require('@alfalab/core-components-input/
|
|
9
|
+
var coreComponentsSelect = require('@alfalab/core-components-select/cssm');
|
|
10
|
+
require('@alfalab/core-components-input/cssm');
|
|
11
11
|
require('./autocomplete-field/index.module.css');
|
|
12
12
|
var autocompleteField_Component = require('./autocomplete-field/Component.js');
|
|
13
13
|
|
|
File without changes
|
|
@@ -7,11 +7,11 @@ var cn = require('classnames');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var mergeRefs = require('react-merge-refs');
|
|
9
9
|
var throttle = require('lodash.throttle');
|
|
10
|
-
var coreComponentsSelect = require('@alfalab/core-components-select/
|
|
11
|
-
var coreComponentsButton = require('@alfalab/core-components-button/
|
|
12
|
-
var coreComponentsInput = require('@alfalab/core-components-input/
|
|
10
|
+
var coreComponentsSelect = require('@alfalab/core-components-select/cssm');
|
|
11
|
+
var coreComponentsButton = require('@alfalab/core-components-button/cssm');
|
|
12
|
+
var coreComponentsInput = require('@alfalab/core-components-input/cssm');
|
|
13
13
|
require('@alfalab/hooks');
|
|
14
|
-
require('@alfalab/core-components-form-control/
|
|
14
|
+
require('@alfalab/core-components-form-control/cssm');
|
|
15
15
|
require('./autocomplete-mobile-field/index.module.css');
|
|
16
16
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
17
17
|
var styles = require('./mobile.module.css');
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var mergeRefs = require('react-merge-refs');
|
|
9
|
-
var coreComponentsInput = require('@alfalab/core-components-input/
|
|
9
|
+
var coreComponentsInput = require('@alfalab/core-components-input/cssm');
|
|
10
10
|
var styles = require('./index.module.css');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
|
-
require('@alfalab/core-components-input/
|
|
9
|
+
require('@alfalab/core-components-input/cssm');
|
|
10
10
|
require('./index.module.css');
|
|
11
11
|
var autocompleteField_Component = require('./Component.js');
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
9
|
-
var coreComponentsFormControl = require('@alfalab/core-components-form-control/
|
|
9
|
+
var coreComponentsFormControl = require('@alfalab/core-components-form-control/cssm');
|
|
10
10
|
var styles = require('./index.module.css');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/hooks');
|
|
9
|
-
require('@alfalab/core-components-form-control/
|
|
9
|
+
require('@alfalab/core-components-form-control/cssm');
|
|
10
10
|
require('./index.module.css');
|
|
11
11
|
var autocompleteMobileField_Component = require('./Component.js');
|
|
12
12
|
|
|
File without changes
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { HTMLAttributes, ReactNode, FC } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
6
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
8
|
import { SwipeableHandlers } from "react-swipeable/types";
|
|
8
9
|
type BottomSheetTitleAlign = "center" | "left";
|
|
@@ -63,6 +64,10 @@ type BottomSheetProps = {
|
|
|
63
64
|
* Дополнительный класс для компонента модального окна
|
|
64
65
|
*/
|
|
65
66
|
modalClassName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Дополнительный класс для обертки модального окна
|
|
69
|
+
*/
|
|
70
|
+
modalWrapperClassName?: string;
|
|
66
71
|
/**
|
|
67
72
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
68
73
|
*/
|
|
@@ -132,10 +137,18 @@ type BottomSheetProps = {
|
|
|
132
137
|
* Запретить закрытие шторки кликом на оверлэй
|
|
133
138
|
*/
|
|
134
139
|
disableOverlayClick?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
142
|
+
*/
|
|
143
|
+
disableBlockingScroll?: boolean;
|
|
135
144
|
/**
|
|
136
145
|
* Не анимировать шторку при изменении размера вьюпорта
|
|
137
146
|
*/
|
|
138
147
|
ignoreScreenChange?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Свойства для Бэкдропа
|
|
150
|
+
*/
|
|
151
|
+
backdropProps?: BaseModalProps["backdropProps"];
|
|
139
152
|
/**
|
|
140
153
|
* Обработчик закрытия
|
|
141
154
|
*/
|
|
@@ -57,6 +57,11 @@ type BaseModalProps = {
|
|
|
57
57
|
* @default false
|
|
58
58
|
*/
|
|
59
59
|
disableBackdropClick?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
disableBlockingScroll?: boolean;
|
|
60
65
|
/**
|
|
61
66
|
* Содержимое модалки всегда в DOM
|
|
62
67
|
* @default false
|
|
@@ -139,6 +144,7 @@ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.
|
|
|
139
144
|
declare function isScrolledToTop(target: HTMLElement): boolean;
|
|
140
145
|
declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
141
146
|
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
147
|
+
declare const getScrollbarSize: () => number;
|
|
142
148
|
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
143
149
|
declare const handleContainer: (container?: HTMLElement | undefined) => void;
|
|
144
150
|
/**
|
|
@@ -190,4 +196,4 @@ declare class GlobalStore {
|
|
|
190
196
|
constructor();
|
|
191
197
|
getModalStore: () => ModalStore;
|
|
192
198
|
}
|
|
193
|
-
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
|
|
199
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, SavedStyle, getModalStore, GlobalStore };
|
|
File without changes
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ require('./tslib.es6-ce870b46.js');
|
|
|
6
6
|
require('classnames');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
|
-
require('@alfalab/core-components-select/
|
|
10
|
-
require('@alfalab/core-components-input/
|
|
9
|
+
require('@alfalab/core-components-select/cssm');
|
|
10
|
+
require('@alfalab/core-components-input/cssm');
|
|
11
11
|
require('./autocomplete-field/index.module.css');
|
|
12
12
|
require('./autocomplete-field/Component.js');
|
|
13
13
|
var Component = require('./Component.js');
|
|
File without changes
|
|
@@ -7,11 +7,11 @@ require('classnames');
|
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('lodash.throttle');
|
|
10
|
-
require('@alfalab/core-components-select/
|
|
11
|
-
require('@alfalab/core-components-button/
|
|
12
|
-
require('@alfalab/core-components-input/
|
|
10
|
+
require('@alfalab/core-components-select/cssm');
|
|
11
|
+
require('@alfalab/core-components-button/cssm');
|
|
12
|
+
require('@alfalab/core-components-input/cssm');
|
|
13
13
|
require('@alfalab/hooks');
|
|
14
|
-
require('@alfalab/core-components-form-control/
|
|
14
|
+
require('@alfalab/core-components-form-control/cssm');
|
|
15
15
|
require('./autocomplete-mobile-field/index.module.css');
|
|
16
16
|
require('./autocomplete-mobile-field/Component.js');
|
|
17
17
|
require('./mobile.module.css');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-f3174141.js';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
|
-
import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/
|
|
6
|
-
import '@alfalab/core-components-input/
|
|
5
|
+
import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/esm';
|
|
6
|
+
import '@alfalab/core-components-input/esm';
|
|
7
7
|
import { AutocompleteField } from './autocomplete-field/Component.js';
|
|
8
8
|
|
|
9
9
|
var InputAutocomplete = forwardRef(function (_a, ref) {
|
|
File without changes
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-f3174141.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useState, useRef, useMemo } from 'react';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import throttle from 'lodash.throttle';
|
|
6
|
-
import { SelectMobile } from '@alfalab/core-components-select/
|
|
7
|
-
import { Button } from '@alfalab/core-components-button/
|
|
8
|
-
import { Input } from '@alfalab/core-components-input/
|
|
6
|
+
import { SelectMobile } from '@alfalab/core-components-select/esm';
|
|
7
|
+
import { Button } from '@alfalab/core-components-button/esm';
|
|
8
|
+
import { Input } from '@alfalab/core-components-input/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '@alfalab/core-components-form-control/
|
|
10
|
+
import '@alfalab/core-components-form-control/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_n8ovn","footer":"input-autocomplete__footer_n8ovn"};
|
|
14
14
|
require('./mobile.css')
|
|
15
15
|
|
|
16
16
|
var SELECTED = [];
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __assign } from '../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../tslib.es6-f3174141.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useRef, useCallback } from 'react';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
|
-
import { Input } from '@alfalab/core-components-input/
|
|
5
|
+
import { Input } from '@alfalab/core-components-input/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"arrow":"input-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_sy50e","error":"input-autocomplete__error_sy50e"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-f3174141.js';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
|
-
import '@alfalab/core-components-input/
|
|
5
|
+
import '@alfalab/core-components-input/esm';
|
|
6
6
|
export { AutocompleteField } from './Component.js';
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../tslib.es6-f3174141.js';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import React, { useState, useRef } from 'react';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
|
-
import { FormControl } from '@alfalab/core-components-form-control/
|
|
5
|
+
import { FormControl } from '@alfalab/core-components-form-control/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"input-
|
|
7
|
+
var styles = {"component":"input-autocomplete__component_hs18c","field":"input-autocomplete__field_hs18c","disabled":"input-autocomplete__disabled_hs18c","placeholder":"input-autocomplete__placeholder_hs18c","contentWrapper":"input-autocomplete__contentWrapper_hs18c","value":"input-autocomplete__value_hs18c","focusVisible":"input-autocomplete__focusVisible_hs18c"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: f810z */
|
|
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_hs18c {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_hs18c:not(.input-autocomplete__disabled_hs18c) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_hs18c {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_hs18c {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_hs18c {
|
|
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_hs18c {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_hs18c {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-f3174141.js';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
|
-
import '@alfalab/core-components-form-control/
|
|
5
|
+
import '@alfalab/core-components-form-control/esm';
|
|
6
6
|
export { AutocompleteMobileField } from './Component.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { HTMLAttributes, ReactNode, FC } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
6
7
|
import { BackdropProps } from "./index-ebda875c";
|
|
7
8
|
import { SwipeableHandlers } from "react-swipeable/types";
|
|
8
9
|
type BottomSheetTitleAlign = "center" | "left";
|
|
@@ -63,6 +64,10 @@ type BottomSheetProps = {
|
|
|
63
64
|
* Дополнительный класс для компонента модального окна
|
|
64
65
|
*/
|
|
65
66
|
modalClassName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Дополнительный класс для обертки модального окна
|
|
69
|
+
*/
|
|
70
|
+
modalWrapperClassName?: string;
|
|
66
71
|
/**
|
|
67
72
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
68
73
|
*/
|
|
@@ -132,10 +137,18 @@ type BottomSheetProps = {
|
|
|
132
137
|
* Запретить закрытие шторки кликом на оверлэй
|
|
133
138
|
*/
|
|
134
139
|
disableOverlayClick?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
142
|
+
*/
|
|
143
|
+
disableBlockingScroll?: boolean;
|
|
135
144
|
/**
|
|
136
145
|
* Не анимировать шторку при изменении размера вьюпорта
|
|
137
146
|
*/
|
|
138
147
|
ignoreScreenChange?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Свойства для Бэкдропа
|
|
150
|
+
*/
|
|
151
|
+
backdropProps?: BaseModalProps["backdropProps"];
|
|
139
152
|
/**
|
|
140
153
|
* Обработчик закрытия
|
|
141
154
|
*/
|