@alfalab/core-components-select 13.2.11 → 13.2.12
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-0a2300e8.d.ts → Component-4af19284.d.ts} +0 -0
- package/{Component-0a2300e8.js → Component-4af19284.js} +10 -10
- package/{Component-fc2a45a0.d.ts → Component-989a84db.d.ts} +0 -0
- package/{Component-fc2a45a0.js → Component-989a84db.js} +31 -26
- package/Component.js +4 -4
- package/Component.responsive.js +7 -6
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +3 -3
- package/components/base-option/index.css +13 -13
- package/components/base-option/index.js +1 -1
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +7 -7
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -2
- package/components/base-select-mobile/Component.js +5 -4
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/index.css +11 -11
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +5 -4
- package/components/base-select-mobile/options-list/Component.js +3 -3
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/base-select-mobile/virtual-options-list/Component.d.ts +5 -0
- package/components/base-select-mobile/virtual-options-list/Component.js +112 -0
- package/components/base-select-mobile/virtual-options-list/index.css +89 -0
- package/components/base-select-mobile/virtual-options-list/index.d.ts +1 -0
- package/components/base-select-mobile/virtual-options-list/index.js +16 -0
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/field/Component.js +4 -4
- package/components/field/index.css +9 -9
- package/components/field/index.js +1 -1
- package/components/index.js +5 -4
- package/components/native-select/Component.js +4 -4
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +3 -3
- package/components/option/index.css +20 -20
- package/components/option/index.js +1 -1
- package/components/options-list/Component.js +5 -5
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +5 -4
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +5 -4
- package/components/select-modal-mobile/Component.js +5 -4
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +5 -4
- package/components/virtual-options-list/Component.js +4 -4
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/{Component-d0e84442.d.ts → Component-1481ef6b.d.ts} +0 -0
- package/cssm/{Component-d0e84442.js → Component-1481ef6b.js} +9 -9
- package/cssm/{Component-29488b22.d.ts → Component-8f0723b4.d.ts} +0 -0
- package/cssm/{Component-29488b22.js → Component-8f0723b4.js} +28 -23
- package/cssm/Component.js +4 -4
- package/cssm/Component.responsive.js +7 -5
- package/cssm/components/base-option/Component.js +2 -2
- package/cssm/components/base-option/index.js +1 -1
- package/cssm/components/base-select/Component.js +2 -2
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +2 -2
- package/cssm/components/base-select-mobile/Component.js +5 -3
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +5 -3
- package/cssm/components/base-select-mobile/options-list/Component.js +2 -2
- package/cssm/components/base-select-mobile/options-list/index.js +1 -1
- package/cssm/components/base-select-mobile/virtual-options-list/Component.d.ts +5 -0
- package/cssm/components/base-select-mobile/virtual-options-list/Component.js +112 -0
- package/cssm/components/base-select-mobile/virtual-options-list/index.d.ts +1 -0
- package/cssm/components/base-select-mobile/virtual-options-list/index.js +18 -0
- package/cssm/components/base-select-mobile/virtual-options-list/index.module.css +88 -0
- package/cssm/components/field/Component.js +3 -3
- package/cssm/components/field/index.js +1 -1
- package/cssm/components/index.js +5 -3
- package/cssm/components/native-select/Component.js +4 -4
- package/cssm/components/native-select/index.js +1 -1
- package/cssm/components/option/Component.js +2 -2
- package/cssm/components/option/index.js +1 -1
- package/cssm/components/options-list/Component.js +4 -4
- package/cssm/components/options-list/index.js +1 -1
- package/cssm/components/select-mobile/Component.js +5 -3
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +5 -3
- package/cssm/components/select-modal-mobile/Component.js +5 -3
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +5 -3
- package/cssm/components/virtual-options-list/Component.js +3 -3
- package/cssm/components/virtual-options-list/index.js +1 -1
- package/cssm/index.js +5 -3
- package/cssm/presets/index.js +5 -3
- package/cssm/presets/useLazyLoading/hook.js +9 -9
- package/cssm/presets/useSelectWithApply/hook.js +5 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +5 -3
- package/cssm/presets/useSelectWithLoading/hook.js +2 -2
- package/cssm/responsive.js +5 -3
- package/cssm/utils.js +1 -1
- package/esm/{Component-4b015ad5.d.ts → Component-a733e47f.d.ts} +0 -0
- package/esm/{Component-4b015ad5.js → Component-a733e47f.js} +2 -2
- package/esm/{Component-dd382646.d.ts → Component-b674590a.d.ts} +0 -0
- package/esm/{Component-dd382646.js → Component-b674590a.js} +15 -10
- package/esm/Component.js +2 -2
- package/esm/Component.responsive.js +5 -4
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +2 -2
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-option/index.js +1 -1
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +7 -7
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -2
- package/esm/components/base-select-mobile/Component.js +5 -4
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +6 -6
- package/esm/components/base-select-mobile/index.css +11 -11
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +5 -4
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/base-select-mobile/virtual-options-list/Component.d.ts +5 -0
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +105 -0
- package/esm/components/base-select-mobile/virtual-options-list/index.css +89 -0
- package/esm/components/base-select-mobile/virtual-options-list/index.d.ts +1 -0
- package/esm/components/base-select-mobile/virtual-options-list/index.js +10 -0
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +9 -9
- package/esm/components/field/index.js +1 -1
- package/esm/components/index.js +5 -4
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +1 -1
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +6 -6
- package/esm/components/options-list/index.js +1 -1
- package/esm/components/select-mobile/Component.js +5 -4
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +5 -4
- package/esm/components/select-modal-mobile/Component.js +5 -4
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +5 -4
- package/esm/components/virtual-options-list/Component.js +2 -2
- package/esm/components/virtual-options-list/index.css +12 -12
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index.js +5 -4
- package/esm/{intersection-observer-48ccda2c.d.ts → intersection-observer-de8255b2.d.ts} +0 -0
- package/esm/{intersection-observer-48ccda2c.js → intersection-observer-de8255b2.js} +0 -0
- package/esm/presets/index.js +5 -4
- package/esm/presets/useLazyLoading/hook.js +3 -3
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +5 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +5 -4
- package/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +5 -4
- package/esm/utils.js +1 -1
- package/index.js +5 -4
- package/{intersection-observer-404c5a30.d.ts → intersection-observer-230e176d.d.ts} +0 -0
- package/{intersection-observer-404c5a30.js → intersection-observer-230e176d.js} +0 -0
- package/modern/{Component-3b90d09b.d.ts → Component-01c0d01a.d.ts} +0 -0
- package/modern/{Component-3b90d09b.js → Component-01c0d01a.js} +14 -9
- package/modern/{Component-19b9374d.d.ts → Component-228a3435.d.ts} +0 -0
- package/modern/{Component-19b9374d.js → Component-228a3435.js} +1 -1
- package/modern/Component.js +1 -1
- package/modern/Component.responsive.js +4 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +4 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +6 -6
- package/modern/components/base-select-mobile/index.css +11 -11
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +4 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/base-select-mobile/virtual-options-list/Component.d.ts +5 -0
- package/modern/components/base-select-mobile/virtual-options-list/Component.js +99 -0
- package/modern/components/base-select-mobile/virtual-options-list/index.css +89 -0
- package/modern/components/base-select-mobile/virtual-options-list/index.d.ts +1 -0
- package/modern/components/base-select-mobile/virtual-options-list/index.js +9 -0
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +4 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/select-mobile/Component.js +4 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +4 -3
- package/modern/components/select-modal-mobile/Component.js +4 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +4 -3
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/index.js +4 -3
- package/modern/{intersection-observer-48ccda2c.d.ts → intersection-observer-de8255b2.d.ts} +0 -0
- package/modern/{intersection-observer-48ccda2c.js → intersection-observer-de8255b2.js} +0 -0
- package/modern/presets/index.js +4 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +4 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +4 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +4 -3
- package/modern/utils.js +1 -1
- package/package.json +14 -13
- package/presets/index.js +5 -4
- package/presets/useLazyLoading/hook.js +11 -11
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +5 -4
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +5 -4
- package/presets/useSelectWithLoading/hook.js +3 -3
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +5 -4
- package/utils.js +1 -1
- package/cssm/tslib.es6-0e9bf404.d.ts +0 -36
- package/cssm/tslib.es6-0e9bf404.js +0 -54
- package/esm/tslib.es6-427aef08.d.ts +0 -36
- package/esm/tslib.es6-427aef08.js +0 -51
- package/tslib.es6-a986f11c.d.ts +0 -36
- package/tslib.es6-a986f11c.js +0 -54
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../Component-
|
|
4
|
-
require('
|
|
3
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../Component-8f0723b4.js');
|
|
4
|
+
require('tslib');
|
|
5
5
|
require('react');
|
|
6
6
|
require('../../../components/arrow/Component.js');
|
|
7
7
|
require('classnames');
|
|
@@ -12,7 +12,7 @@ require('downshift');
|
|
|
12
12
|
require('@alfalab/core-components-bottom-sheet/cssm');
|
|
13
13
|
require('@alfalab/core-components-modal/cssm/mobile');
|
|
14
14
|
require('../../../Component.js');
|
|
15
|
-
require('../../../Component-
|
|
15
|
+
require('../../../Component-1481ef6b.js');
|
|
16
16
|
require('@juggle/resize-observer');
|
|
17
17
|
require('@alfalab/core-components-popover/cssm');
|
|
18
18
|
require('@alfalab/hooks');
|
|
@@ -52,6 +52,8 @@ require('./index.module.css');
|
|
|
52
52
|
require('../../../components/base-select-mobile/options-list/Component.js');
|
|
53
53
|
require('@alfalab/core-components-base-modal/cssm');
|
|
54
54
|
require('../../../components/base-select-mobile/options-list/index.module.css');
|
|
55
|
+
require('../../../components/base-select-mobile/virtual-options-list/Component.js');
|
|
56
|
+
require('../../../components/base-select-mobile/virtual-options-list/index.module.css');
|
|
55
57
|
require('../../../components/base-select-mobile/index.module.css');
|
|
56
58
|
|
|
57
59
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var coreComponentsSkeleton = require('@alfalab/core-components-skeleton/cssm');
|
|
6
6
|
var components_option_Component = require('../../components/option/Component.js');
|
|
@@ -23,7 +23,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
23
23
|
|
|
24
24
|
function useSelectWithLoading(_a) {
|
|
25
25
|
var _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.visibleOptions, visibleOptions = _c === void 0 ? 6 : _c, _d = _a.Option, Option = _d === void 0 ? components_option_Component.Option : _d;
|
|
26
|
-
var renderOption = function (props) { return (React__default.default.createElement(Option,
|
|
26
|
+
var renderOption = function (props) { return (React__default.default.createElement(Option, tslib.__assign({}, props, { Checkmark: null, highlighted: loading ? false : props.highlighted }))); };
|
|
27
27
|
var options = Array(visibleOptions)
|
|
28
28
|
.fill(0)
|
|
29
29
|
.map(function (_, key) { return ({
|
package/cssm/responsive.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Component_responsive = require('./Component.responsive.js');
|
|
4
|
-
require('
|
|
4
|
+
require('tslib');
|
|
5
5
|
require('react');
|
|
6
6
|
require('@alfalab/hooks');
|
|
7
7
|
require('./Component.js');
|
|
@@ -9,7 +9,7 @@ require('./components/arrow/Component.js');
|
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
11
11
|
require('./components/arrow/index.module.css');
|
|
12
|
-
require('./Component-
|
|
12
|
+
require('./Component-1481ef6b.js');
|
|
13
13
|
require('react-merge-refs');
|
|
14
14
|
require('@juggle/resize-observer');
|
|
15
15
|
require('downshift');
|
|
@@ -35,7 +35,7 @@ require('./components/option/index.module.css');
|
|
|
35
35
|
require('./components/options-list/Component.js');
|
|
36
36
|
require('@alfalab/core-components-scrollbar/cssm');
|
|
37
37
|
require('./components/options-list/index.module.css');
|
|
38
|
-
require('./Component-
|
|
38
|
+
require('./Component-8f0723b4.js');
|
|
39
39
|
require('@alfalab/core-components-bottom-sheet/cssm');
|
|
40
40
|
require('@alfalab/core-components-modal/cssm/mobile');
|
|
41
41
|
require('react-virtual');
|
|
@@ -53,6 +53,8 @@ require('./presets/useSelectWithApply/options-list-with-apply/index.module.css')
|
|
|
53
53
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
54
54
|
require('@alfalab/core-components-base-modal/cssm');
|
|
55
55
|
require('./components/base-select-mobile/options-list/index.module.css');
|
|
56
|
+
require('./components/base-select-mobile/virtual-options-list/Component.js');
|
|
57
|
+
require('./components/base-select-mobile/virtual-options-list/index.module.css');
|
|
56
58
|
require('./components/base-select-mobile/index.module.css');
|
|
57
59
|
|
|
58
60
|
|
package/cssm/utils.js
CHANGED
|
@@ -54,7 +54,7 @@ function useVisibleOptions(_a) {
|
|
|
54
54
|
React.useEffect(function () {
|
|
55
55
|
var list = listRef.current;
|
|
56
56
|
var styleTarget = styleTargetRef.current;
|
|
57
|
-
if (open && list && styleTarget) {
|
|
57
|
+
if (open && list && styleTarget && visibleOptions > 0) {
|
|
58
58
|
var optionsNodes = [].slice.call(list.children, 0, visibleOptions + 1);
|
|
59
59
|
var height = optionsNodes
|
|
60
60
|
.slice(0, visibleOptions)
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __assign, __spreadArray } from 'tslib';
|
|
2
2
|
import React, { forwardRef, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
@@ -14,7 +14,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
14
14
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"select__component_hj9yp","popoverInner":"select__popoverInner_hj9yp","optionsList":"select__optionsList_hj9yp","nativeSelect":"select__nativeSelect_hj9yp","block":"select__block_hj9yp"};
|
|
18
18
|
require('./components/base-select/index.css')
|
|
19
19
|
|
|
20
20
|
var BaseSelect = forwardRef(function (_a, ref) {
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign, __spreadArray } from 'tslib';
|
|
2
2
|
import React, { forwardRef, useRef, useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { Arrow } from './components/arrow/Component.js';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
@@ -7,7 +7,7 @@ import { useMultipleSelection, useCombobox } from 'downshift';
|
|
|
7
7
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/esm';
|
|
8
8
|
import { ModalMobile } from '@alfalab/core-components-modal/esm/mobile';
|
|
9
9
|
import './Component.js';
|
|
10
|
-
import { g as getDataTestId } from './Component-
|
|
10
|
+
import { g as getDataTestId } from './Component-a733e47f.js';
|
|
11
11
|
import { Field } from './components/field/Component.js';
|
|
12
12
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
13
13
|
import { Option } from './components/option/Component.js';
|
|
@@ -18,7 +18,7 @@ import '@alfalab/hooks';
|
|
|
18
18
|
import { processOptions } from './utils.js';
|
|
19
19
|
import { BaseOption } from './components/base-option/Component.js';
|
|
20
20
|
import '@alfalab/core-components-skeleton/esm';
|
|
21
|
-
import './intersection-observer-
|
|
21
|
+
import './intersection-observer-de8255b2.js';
|
|
22
22
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
24
24
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -29,8 +29,9 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
29
29
|
import { BaseCheckmark } from './components/base-checkmark/Component.js';
|
|
30
30
|
import { Checkmark } from './components/base-select-mobile/checkmark/Component.js';
|
|
31
31
|
import { OptionsList as OptionsList$1 } from './components/base-select-mobile/options-list/Component.js';
|
|
32
|
+
import { VirtualOptionsList } from './components/base-select-mobile/virtual-options-list/Component.js';
|
|
32
33
|
|
|
33
|
-
var styles$1 = {"footer":"
|
|
34
|
+
var styles$1 = {"footer":"select__footer_1mpn0","withBorder":"select__withBorder_1mpn0"};
|
|
34
35
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
35
36
|
|
|
36
37
|
var OptionsListWithApply = forwardRef(function (_a, ref) {
|
|
@@ -141,12 +142,15 @@ function useSelectWithApply(_a) {
|
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
144
|
|
|
144
|
-
var styles = {"component":"
|
|
145
|
+
var styles = {"component":"select__component_1krlp","popoverInner":"select__popoverInner_1krlp","sheet":"select__sheet_1krlp","sheetContent":"select__sheetContent_1krlp","sheetContainer":"select__sheetContainer_1krlp","block":"select__block_1krlp","option":"select__option_1krlp","optionGroup":"select__optionGroup_1krlp"};
|
|
145
146
|
require('./components/base-select-mobile/index.css')
|
|
146
147
|
|
|
148
|
+
var VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
|
147
149
|
var BaseSelectMobile = forwardRef(function (_a, ref) {
|
|
148
150
|
var _b;
|
|
149
|
-
var dataTestId = _a.dataTestId, className = _a.className, fieldClassName = _a.fieldClassName, optionsListClassName = _a.optionsListClassName, optionClassName = _a.optionClassName, optionGroupClassName = _a.optionGroupClassName, optionsListProps = _a.optionsListProps, options = _a.options, _c = _a.autocomplete, autocomplete = _c === void 0 ? false : _c, _d = _a.multiple, multiple = _d === void 0 ? false : _d, _e = _a.allowUnselect, allowUnselect = _e === void 0 ? false : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.closeOnSelect, closeOnSelect = _g === void 0 ? !multiple : _g, _h = _a.circularNavigation, circularNavigation = _h === void 0 ? false : _h, _j = _a.defaultOpen, defaultOpen = _j === void 0 ? false : _j, openProp = _a.open, name = _a.name, id = _a.id, selected = _a.selected, _k = _a.size, size = _k === void 0 ? 'm' : _k, _l = _a.optionsSize, optionsSize = _l === void 0 ? 'm' : _l, error = _a.error, hint = _a.hint, block = _a.block, label = _a.label, labelView = _a.labelView, placeholder = _a.placeholder, _m = _a.fieldProps, fieldProps = _m === void 0 ? {} : _m, _o = _a.optionProps, optionProps = _o === void 0 ? {} : _o, valueRenderer = _a.valueRenderer, onChange = _a.onChange, onOpen = _a.onOpen, onFocus = _a.onFocus, _p = _a.Arrow, Arrow$1 = _p === void 0 ? Arrow : _p, _q = _a.Field, Field$1 = _q === void 0 ? Field : _q, _r = _a.Optgroup, Optgroup$1 = _r === void 0 ? Optgroup : _r, _s = _a.Option, Option$1 = _s === void 0 ? Option : _s, _t = _a.OptionsList, OptionsList = _t === void 0 ?
|
|
151
|
+
var dataTestId = _a.dataTestId, className = _a.className, fieldClassName = _a.fieldClassName, optionsListClassName = _a.optionsListClassName, optionClassName = _a.optionClassName, optionGroupClassName = _a.optionGroupClassName, optionsListProps = _a.optionsListProps, options = _a.options, _c = _a.autocomplete, autocomplete = _c === void 0 ? false : _c, _d = _a.multiple, multiple = _d === void 0 ? false : _d, _e = _a.allowUnselect, allowUnselect = _e === void 0 ? false : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.closeOnSelect, closeOnSelect = _g === void 0 ? !multiple : _g, _h = _a.circularNavigation, circularNavigation = _h === void 0 ? false : _h, _j = _a.defaultOpen, defaultOpen = _j === void 0 ? false : _j, openProp = _a.open, name = _a.name, id = _a.id, selected = _a.selected, _k = _a.size, size = _k === void 0 ? 'm' : _k, _l = _a.optionsSize, optionsSize = _l === void 0 ? 'm' : _l, error = _a.error, hint = _a.hint, block = _a.block, label = _a.label, labelView = _a.labelView, placeholder = _a.placeholder, _m = _a.fieldProps, fieldProps = _m === void 0 ? {} : _m, _o = _a.optionProps, optionProps = _o === void 0 ? {} : _o, valueRenderer = _a.valueRenderer, onChange = _a.onChange, onOpen = _a.onOpen, onFocus = _a.onFocus, _p = _a.Arrow, Arrow$1 = _p === void 0 ? Arrow : _p, _q = _a.Field, Field$1 = _q === void 0 ? Field : _q, _r = _a.Optgroup, Optgroup$1 = _r === void 0 ? Optgroup : _r, _s = _a.Option, Option$1 = _s === void 0 ? Option : _s, _t = _a.OptionsList, OptionsList = _t === void 0 ? options.length > VIRTUAL_OPTIONS_LIST_THRESHOLD
|
|
152
|
+
? VirtualOptionsList
|
|
153
|
+
: OptionsList$1 : _t, swipeable = _a.swipeable, footer = _a.footer, isBottomSheet = _a.isBottomSheet, bottomSheetProps = _a.bottomSheetProps;
|
|
150
154
|
var rootRef = useRef(null);
|
|
151
155
|
var fieldRef = useRef(null);
|
|
152
156
|
var listRef = useRef(null);
|
|
@@ -154,6 +158,7 @@ var BaseSelectMobile = forwardRef(function (_a, ref) {
|
|
|
154
158
|
var itemToString = function (option) { return (option ? option.key : ''); };
|
|
155
159
|
var _u = useMemo(function () { return processOptions(options, selected); }, [options, selected]), flatOptions = _u.flatOptions, selectedOptions = _u.selectedOptions;
|
|
156
160
|
var selectedOptionsRef = useRef(selectedOptions);
|
|
161
|
+
var scrollableContainerRef = useRef(null);
|
|
157
162
|
var _v = useState(selectedOptions), selectedDraft = _v[0], setSelectedDraft = _v[1];
|
|
158
163
|
var useMultipleSelectionProps = {
|
|
159
164
|
itemToString: itemToString,
|
|
@@ -337,12 +342,12 @@ var BaseSelectMobile = forwardRef(function (_a, ref) {
|
|
|
337
342
|
: undefined,
|
|
338
343
|
}, dataTestId: getDataTestId(dataTestId, 'field') }, fieldProps)),
|
|
339
344
|
name && renderValue(),
|
|
340
|
-
isBottomSheet ? (React.createElement(BottomSheet, __assign({ open: open, onClose: handleClose, className: styles.sheet, contentClassName: styles.sheetContent, containerClassName: styles.sheetContainer, title: placeholder, actionButton: footer, stickyHeader: true, hasCloser: true, swipeable: swipeable }, bottomSheetProps),
|
|
345
|
+
isBottomSheet ? (React.createElement(BottomSheet, __assign({ open: open, onClose: handleClose, className: styles.sheet, contentClassName: styles.sheetContent, containerClassName: styles.sheetContainer, title: label || placeholder, actionButton: footer, stickyHeader: true, hasCloser: true, swipeable: swipeable, scrollableContainerRef: scrollableContainerRef }, bottomSheetProps),
|
|
341
346
|
React.createElement("div", __assign({}, menuProps, { className: optionsListClassName }),
|
|
342
|
-
React.createElement(OptionsListWithApply, __assign({ showFooter: multiple }, optionsListProps, { flatOptions: flatOptions, highlightedIndex: highlightedIndex, size: size, options: options, OptionsList: OptionsList, Optgroup: Optgroup$1, Option: Option$1, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, dataTestId: getDataTestId(dataTestId, 'options-list'), optionGroupClassName: cn(styles.optionGroup, optionGroupClassName), onApply: handleApply, onClear: handleClear }))))) : (React.createElement(ModalMobile, { open: open, onClose: handleClose, contentClassName: styles.sheetContent, hasCloser: true },
|
|
343
|
-
React.createElement(ModalMobile.Header, { hasCloser: true,
|
|
347
|
+
React.createElement(OptionsListWithApply, __assign({ showFooter: multiple }, optionsListProps, { flatOptions: flatOptions, highlightedIndex: highlightedIndex, size: size, options: options, OptionsList: OptionsList, Optgroup: Optgroup$1, Option: Option$1, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, dataTestId: getDataTestId(dataTestId, 'options-list'), optionGroupClassName: cn(styles.optionGroup, optionGroupClassName), onApply: handleApply, onClear: handleClear, ref: scrollableContainerRef }))))) : (React.createElement(ModalMobile, { open: open, onClose: handleClose, contentClassName: styles.sheetContent, hasCloser: true, ref: scrollableContainerRef },
|
|
348
|
+
React.createElement(ModalMobile.Header, { hasCloser: true, sticky: true }, label || placeholder),
|
|
344
349
|
React.createElement("div", __assign({}, menuProps, { className: optionsListClassName }),
|
|
345
|
-
React.createElement(OptionsListWithApply, __assign({ showFooter: multiple }, optionsListProps, { flatOptions: flatOptions, highlightedIndex: highlightedIndex, size: size, options: options, OptionsList: OptionsList, Optgroup: Optgroup$1, Option: Option$1, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, dataTestId: getDataTestId(dataTestId, 'options-list'), optionGroupClassName: cn(styles.optionGroup, optionGroupClassName), onApply: handleApply, onClear: handleClear })))))));
|
|
350
|
+
React.createElement(OptionsListWithApply, __assign({ showFooter: multiple }, optionsListProps, { flatOptions: flatOptions, highlightedIndex: highlightedIndex, size: size, options: options, OptionsList: OptionsList, Optgroup: Optgroup$1, Option: Option$1, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, dataTestId: getDataTestId(dataTestId, 'options-list'), optionGroupClassName: cn(styles.optionGroup, optionGroupClassName), onApply: handleApply, onClear: handleClear, ref: scrollableContainerRef })))))));
|
|
346
351
|
});
|
|
347
352
|
|
|
348
353
|
var SelectMobile = forwardRef(function (_a, ref) {
|
package/esm/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Arrow } from './components/arrow/Component.js';
|
|
4
|
-
import { B as BaseSelect } from './Component-
|
|
4
|
+
import { B as BaseSelect } from './Component-a733e47f.js';
|
|
5
5
|
import { Field } from './components/field/Component.js';
|
|
6
6
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
import { Option } from './components/option/Component.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { useMedia } from '@alfalab/hooks';
|
|
4
4
|
import { Select } from './Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
7
|
-
import './Component-
|
|
8
|
-
import { S as SelectMobile } from './Component-
|
|
7
|
+
import './Component-a733e47f.js';
|
|
8
|
+
import { S as SelectMobile } from './Component-b674590a.js';
|
|
9
9
|
import '@alfalab/core-components-form-control/esm';
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
11
11
|
import '@alfalab/core-components-badge/esm';
|
|
@@ -31,10 +31,11 @@ import '@alfalab/core-components-modal/esm/mobile';
|
|
|
31
31
|
import './components/base-option/Component.js';
|
|
32
32
|
import './components/base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import './intersection-observer-
|
|
34
|
+
import './intersection-observer-de8255b2.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
38
|
+
import './components/base-select-mobile/virtual-options-list/Component.js';
|
|
38
39
|
|
|
39
40
|
var SelectResponsive = forwardRef(function (_a, ref) {
|
|
40
41
|
var footer = _a.footer, swipeable = _a.swipeable, bottomSheetProps = _a.bottomSheetProps, OptionsList = _a.OptionsList, onScroll = _a.onScroll, fieldProps = _a.fieldProps, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["footer", "swipeable", "bottomSheetProps", "OptionsList", "onScroll", "fieldProps", "breakpoint"]);
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
4
4
|
|
|
5
|
-
var styles = {"arrow":"
|
|
5
|
+
var styles = {"arrow":"select__arrow_18q77","open":"select__open_18q77"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Arrow = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bk1al */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__arrow_18q77 {
|
|
30
30
|
display: block;
|
|
31
31
|
width: 24px;
|
|
32
32
|
height: 24px;
|
|
33
33
|
color: var(--select-arrow-color);
|
|
34
34
|
|
|
35
35
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
36
|
-
} .
|
|
36
|
+
} .select__open_18q77 {
|
|
37
37
|
transform: var(--arrow-transform);
|
|
38
38
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
|
|
6
|
-
var styles = {"checkmark":"
|
|
6
|
+
var styles = {"checkmark":"select__checkmark_jxpww","single":"select__single_jxpww","selected":"select__selected_jxpww"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseCheckmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m1hwe */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
/* checkmark */
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
|
-
} .
|
|
26
|
+
} .select__checkmark_jxpww {
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
} .
|
|
29
|
+
} .select__single_jxpww {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
opacity: 0
|
|
34
|
-
} .
|
|
34
|
+
} .select__single_jxpww.select__selected_jxpww {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
2
|
import React, { isValidElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
5
5
|
import '@alfalab/core-components-checkbox/esm';
|
|
6
6
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"option":"
|
|
8
|
+
var styles = {"option":"select__option_mmxfd","disabled":"select__disabled_mmxfd","checkmarkBefore":"select__checkmarkBefore_mmxfd","mobile":"select__mobile_mmxfd","checkmarkAfter":"select__checkmarkAfter_mmxfd","textContent":"select__textContent_mmxfd","selected":"select__selected_mmxfd","highlighted":"select__highlighted_mmxfd","content":"select__content_mmxfd"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var BaseOption = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: maidm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/* checkmark */
|
|
44
44
|
|
|
45
45
|
/* optgroup */
|
|
46
|
-
} .
|
|
46
|
+
} .select__option_mmxfd {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -60,32 +60,32 @@
|
|
|
60
60
|
position: relative;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
min-height: var(--size-s-height)
|
|
63
|
-
} .
|
|
63
|
+
} .select__option_mmxfd:not(.select__disabled_mmxfd):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
|
-
} .
|
|
66
|
+
} .select__option_mmxfd.select__checkmarkBefore_mmxfd {
|
|
67
67
|
padding: 0 0 0 var(--gap-s)
|
|
68
|
-
} .
|
|
68
|
+
} .select__option_mmxfd.select__checkmarkBefore_mmxfd.select__mobile_mmxfd {
|
|
69
69
|
padding-left: var(--gap-m);
|
|
70
|
-
} .
|
|
70
|
+
} .select__option_mmxfd.select__checkmarkAfter_mmxfd {
|
|
71
71
|
padding: 0 var(--gap-s) 0 0
|
|
72
|
-
} .
|
|
72
|
+
} .select__option_mmxfd.select__checkmarkAfter_mmxfd.select__mobile_mmxfd {
|
|
73
73
|
padding-right: var(--gap-l);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_mmxfd.select__textContent_mmxfd {
|
|
75
75
|
padding: var(--gap-s)
|
|
76
|
-
} .
|
|
76
|
+
} .select__option_mmxfd.select__textContent_mmxfd.select__mobile_mmxfd {
|
|
77
77
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
78
|
-
} .
|
|
78
|
+
} .select__selected_mmxfd {
|
|
79
79
|
background: var(--select-option-selected-background);
|
|
80
80
|
color: var(--select-option-selected-color);
|
|
81
81
|
cursor: default;
|
|
82
|
-
} .
|
|
82
|
+
} .select__highlighted_mmxfd {
|
|
83
83
|
background: var(--select-option-hover-background);
|
|
84
84
|
color: var(--select-option-hover-color);
|
|
85
|
-
} .
|
|
85
|
+
} .select__disabled_mmxfd {
|
|
86
86
|
cursor: var(--disabled-cursor);
|
|
87
87
|
background: var(--select-option-disabled-background);
|
|
88
88
|
color: var(--select-option-disabled-color);
|
|
89
|
-
} .
|
|
89
|
+
} .select__content_mmxfd {
|
|
90
90
|
flex: 1;
|
|
91
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import '@juggle/resize-observer';
|
|
@@ -6,6 +6,6 @@ import 'classnames';
|
|
|
6
6
|
import 'downshift';
|
|
7
7
|
import '@alfalab/core-components-popover/esm';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
export { B as BaseSelect } from '../../Component-
|
|
9
|
+
export { B as BaseSelect } from '../../Component-a733e47f.js';
|
|
10
10
|
import '../../utils.js';
|
|
11
11
|
import '../native-select/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1p2ws */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
/* checkmark */
|
|
35
35
|
|
|
36
36
|
/* optgroup */
|
|
37
|
-
} .
|
|
37
|
+
} .select__component_hj9yp {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
|
-
} .
|
|
41
|
+
} .select__popoverInner_hj9yp {
|
|
42
42
|
padding-top: var(--select-options-list-offset);
|
|
43
43
|
padding-bottom: var(--select-options-list-offset);
|
|
44
44
|
box-shadow: none;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
background: transparent;
|
|
47
47
|
border-radius: 0;
|
|
48
48
|
position: relative;
|
|
49
|
-
} .
|
|
49
|
+
} .select__optionsList_hj9yp {
|
|
50
50
|
padding-top: var(--select-options-list-top-padding);
|
|
51
51
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
52
52
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
background: var(--select-option-background);
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
will-change: transform;
|
|
57
|
-
} .
|
|
57
|
+
} .select__nativeSelect_hj9yp {
|
|
58
58
|
opacity: 0;
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
position: absolute;
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
height: 100%;
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
z-index: 1;
|
|
70
|
-
} .
|
|
70
|
+
} .select__block_hj9yp {
|
|
71
71
|
width: 100%;
|
|
72
72
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
-
.
|
|
73
|
+
.select__component_hj9yp {
|
|
74
74
|
float: left;
|
|
75
75
|
clear: left;
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-a733e47f";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelect } from '../../Component-
|
|
2
|
-
import '
|
|
1
|
+
export { B as BaseSelect } from '../../Component-a733e47f.js';
|
|
2
|
+
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-merge-refs';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
@@ -7,8 +7,8 @@ import '@alfalab/core-components-bottom-sheet/esm';
|
|
|
7
7
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
8
8
|
import '../../Component.js';
|
|
9
9
|
import '../arrow/Component.js';
|
|
10
|
-
import '../../Component-
|
|
11
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
10
|
+
import '../../Component-a733e47f.js';
|
|
11
|
+
export { B as BaseSelectMobile } from '../../Component-b674590a.js';
|
|
12
12
|
import '../field/Component.js';
|
|
13
13
|
import '../optgroup/Component.js';
|
|
14
14
|
import '../option/Component.js';
|
|
@@ -19,10 +19,11 @@ import '@alfalab/hooks';
|
|
|
19
19
|
import '../../utils.js';
|
|
20
20
|
import '../base-option/Component.js';
|
|
21
21
|
import '@alfalab/core-components-skeleton/esm';
|
|
22
|
-
import '../../intersection-observer-
|
|
22
|
+
import '../../intersection-observer-de8255b2.js';
|
|
23
23
|
import '../base-checkmark/Component.js';
|
|
24
24
|
import './checkmark/Component.js';
|
|
25
25
|
import './options-list/Component.js';
|
|
26
|
+
import './virtual-options-list/Component.js';
|
|
26
27
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
27
28
|
import '@juggle/resize-observer';
|
|
28
29
|
import '@alfalab/core-components-popover/esm';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
4
4
|
|
|
5
|
-
var styles = {"checkmark":"
|
|
5
|
+
var styles = {"checkmark":"select__checkmark_oodn8","selected":"select__selected_oodn8","displayIcon":"select__displayIcon_oodn8","displayBadge":"select__displayBadge_oodn8"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 14dxd */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_oodn8 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
opacity: 0
|
|
36
|
-
} .
|
|
36
|
+
} .select__checkmark_oodn8:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_oodn8.select__selected_oodn8 {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_oodn8 {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_oodn8 {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: o4bei */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_1krlp {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .select__popoverInner_1krlp {
|
|
36
36
|
padding-top: var(--select-options-list-offset);
|
|
37
37
|
padding-bottom: var(--select-options-list-offset);
|
|
38
38
|
box-shadow: none;
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
background: transparent;
|
|
41
41
|
border-radius: 0;
|
|
42
42
|
position: relative;
|
|
43
|
-
} .
|
|
43
|
+
} .select__sheet_1krlp {
|
|
44
44
|
overflow: hidden;
|
|
45
|
-
} .
|
|
45
|
+
} .select__sheetContent_1krlp {
|
|
46
46
|
padding: 0;
|
|
47
|
-
} .
|
|
47
|
+
} .select__sheetContainer_1krlp {
|
|
48
48
|
padding: 0;
|
|
49
|
-
} .
|
|
49
|
+
} .select__block_1krlp {
|
|
50
50
|
width: 100%;
|
|
51
51
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
52
|
-
.
|
|
52
|
+
.select__component_1krlp {
|
|
53
53
|
float: left;
|
|
54
54
|
clear: left;
|
|
55
55
|
}
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_1krlp {
|
|
57
57
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
58
|
-
} .
|
|
58
|
+
} .select__option_1krlp:before {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .select__optionGroup_1krlp {
|
|
61
61
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-b674590a";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
2
|
-
import '
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-b674590a.js';
|
|
2
|
+
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../arrow/Component.js';
|
|
5
5
|
import 'classnames';
|
|
@@ -9,7 +9,7 @@ import 'downshift';
|
|
|
9
9
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
10
10
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
11
11
|
import '../../Component.js';
|
|
12
|
-
import '../../Component-
|
|
12
|
+
import '../../Component-a733e47f.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
14
14
|
import '@alfalab/core-components-popover/esm';
|
|
15
15
|
import '@alfalab/hooks';
|
|
@@ -31,7 +31,8 @@ import 'react-virtual';
|
|
|
31
31
|
import '../base-option/Component.js';
|
|
32
32
|
import '../base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-
|
|
34
|
+
import '../../intersection-observer-de8255b2.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
38
|
+
import './virtual-options-list/Component.js';
|