@alfalab/core-components-select 10.7.3 → 10.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/{cssm/Component-25917959.d.ts → Component-4d827af4.d.ts} +1 -1
- package/dist/{Component-f0271ef8.js → Component-4d827af4.js} +6 -5
- package/dist/{Component-091e9ade.d.ts → Component-a8813866.d.ts} +0 -0
- package/dist/{Component-091e9ade.js → Component-a8813866.js} +3 -3
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +3 -2
- package/dist/components/arrow/Component.js +1 -1
- package/dist/components/arrow/index.css +3 -3
- package/dist/components/base-select/Component.js +2 -2
- package/dist/components/base-select/index.css +7 -7
- package/dist/components/base-select/index.d.ts +1 -1
- package/dist/components/base-select/index.js +2 -2
- package/dist/components/checkmark/Component.js +1 -1
- package/dist/components/checkmark/index.css +7 -7
- package/dist/components/field/Component.js +2 -2
- package/dist/components/field/index.css +9 -9
- package/dist/components/field/index.js +1 -1
- package/dist/components/index.js +5 -4
- package/dist/components/native-select/Component.js +1 -1
- package/dist/components/native-select/index.js +1 -1
- package/dist/components/optgroup/Component.js +1 -1
- package/dist/components/optgroup/index.css +6 -6
- package/dist/components/option/Component.js +2 -2
- package/dist/components/option/index.css +20 -20
- package/dist/components/option/index.js +1 -1
- package/dist/components/options-list/Component.js +28 -12
- package/dist/components/options-list/index.css +6 -6
- package/dist/components/options-list/index.js +3 -1
- package/dist/components/select-mobile/Component.js +5 -4
- package/dist/components/select-mobile/checkmark/Component.js +1 -1
- package/dist/components/select-mobile/checkmark/index.css +4 -4
- package/dist/components/select-mobile/index.css +11 -11
- package/dist/components/select-mobile/index.d.ts +1 -1
- package/dist/components/select-mobile/index.js +5 -4
- package/dist/components/select-mobile/options-list/Component.js +2 -2
- package/dist/components/select-mobile/options-list/index.css +9 -9
- package/dist/components/select-mobile/options-list/index.js +1 -1
- package/dist/components/virtual-options-list/Component.d.ts +2 -2
- package/dist/components/virtual-options-list/Component.js +36 -19
- package/dist/components/virtual-options-list/index.css +12 -12
- package/dist/components/virtual-options-list/index.js +3 -1
- package/dist/{esm/Component-228962a7.d.ts → cssm/Component-ab46cfa1.d.ts} +1 -1
- package/dist/cssm/{Component-25917959.js → Component-ab46cfa1.js} +2 -1
- package/dist/cssm/{Component-9bc41b6c.d.ts → Component-e3a61749.d.ts} +0 -0
- package/dist/cssm/{Component-9bc41b6c.js → Component-e3a61749.js} +1 -1
- package/dist/cssm/Component.d.ts +1 -1
- package/dist/cssm/Component.js +2 -1
- package/dist/cssm/components/base-select/Component.js +1 -1
- package/dist/cssm/components/base-select/index.d.ts +1 -1
- package/dist/cssm/components/base-select/index.js +1 -1
- package/dist/cssm/components/index.js +3 -2
- package/dist/cssm/components/options-list/Component.js +26 -10
- package/dist/cssm/components/options-list/index.js +2 -0
- package/dist/cssm/components/select-mobile/Component.js +3 -2
- package/dist/cssm/components/select-mobile/index.d.ts +1 -1
- package/dist/cssm/components/select-mobile/index.js +3 -2
- package/dist/cssm/components/virtual-options-list/Component.d.ts +2 -2
- package/dist/cssm/components/virtual-options-list/Component.js +34 -17
- package/dist/cssm/components/virtual-options-list/index.js +2 -0
- package/dist/cssm/index.js +3 -2
- package/dist/cssm/presets/index.js +3 -2
- package/dist/cssm/presets/useSelectWithApply/hook.js +3 -2
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -2
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -2
- package/dist/cssm/typings.d.ts +9 -0
- package/dist/esm/{Component-27b649b7.d.ts → Component-148e2816.d.ts} +0 -0
- package/dist/esm/{Component-27b649b7.js → Component-148e2816.js} +3 -3
- package/dist/{Component-f0271ef8.d.ts → esm/Component-6975d6d5.d.ts} +1 -1
- package/dist/esm/{Component-228962a7.js → Component-6975d6d5.js} +6 -5
- package/dist/esm/Component.d.ts +1 -1
- package/dist/esm/Component.js +3 -2
- package/dist/esm/components/arrow/Component.js +1 -1
- package/dist/esm/components/arrow/index.css +3 -3
- package/dist/esm/components/base-select/Component.js +2 -2
- package/dist/esm/components/base-select/index.css +7 -7
- package/dist/esm/components/base-select/index.d.ts +1 -1
- package/dist/esm/components/base-select/index.js +2 -2
- package/dist/esm/components/checkmark/Component.js +1 -1
- package/dist/esm/components/checkmark/index.css +7 -7
- package/dist/esm/components/field/Component.js +2 -2
- package/dist/esm/components/field/index.css +9 -9
- package/dist/esm/components/field/index.js +1 -1
- package/dist/esm/components/index.js +5 -4
- package/dist/esm/components/native-select/Component.js +1 -1
- package/dist/esm/components/native-select/index.js +1 -1
- package/dist/esm/components/optgroup/Component.js +1 -1
- package/dist/esm/components/optgroup/index.css +6 -6
- package/dist/esm/components/option/Component.js +2 -2
- package/dist/esm/components/option/index.css +20 -20
- package/dist/esm/components/option/index.js +1 -1
- package/dist/esm/components/options-list/Component.js +28 -12
- package/dist/esm/components/options-list/index.css +6 -6
- package/dist/esm/components/options-list/index.js +3 -1
- package/dist/esm/components/select-mobile/Component.js +5 -4
- package/dist/esm/components/select-mobile/checkmark/Component.js +1 -1
- package/dist/esm/components/select-mobile/checkmark/index.css +4 -4
- package/dist/esm/components/select-mobile/index.css +11 -11
- package/dist/esm/components/select-mobile/index.d.ts +1 -1
- package/dist/esm/components/select-mobile/index.js +5 -4
- package/dist/esm/components/select-mobile/options-list/Component.js +2 -2
- package/dist/esm/components/select-mobile/options-list/index.css +9 -9
- package/dist/esm/components/select-mobile/options-list/index.js +1 -1
- package/dist/esm/components/virtual-options-list/Component.d.ts +2 -2
- package/dist/esm/components/virtual-options-list/Component.js +36 -19
- package/dist/esm/components/virtual-options-list/index.css +12 -12
- package/dist/esm/components/virtual-options-list/index.js +3 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/{intersection-observer-ff7c25ff.d.ts → intersection-observer-ebdfdb11.d.ts} +0 -0
- package/dist/esm/{intersection-observer-ff7c25ff.js → intersection-observer-ebdfdb11.js} +0 -0
- package/dist/esm/presets/index.js +5 -4
- package/dist/esm/presets/useLazyLoading/hook.js +3 -3
- package/dist/esm/presets/useLazyLoading/index.css +2 -2
- package/dist/esm/presets/useSelectWithApply/hook.js +5 -4
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -4
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/index.js +5 -4
- package/dist/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
- package/dist/esm/{tslib.es6-8dcf5700.d.ts → tslib.es6-0082a09a.d.ts} +0 -0
- package/dist/esm/{tslib.es6-8dcf5700.js → tslib.es6-0082a09a.js} +0 -0
- package/dist/esm/typings.d.ts +9 -0
- package/dist/index.js +5 -4
- package/dist/{intersection-observer-b658c897.d.ts → intersection-observer-f51db423.d.ts} +0 -0
- package/dist/{intersection-observer-b658c897.js → intersection-observer-f51db423.js} +0 -0
- package/dist/modern/{Component-4cfaa286.d.ts → Component-cd8eced8.d.ts} +0 -0
- package/dist/modern/{Component-4cfaa286.js → Component-cd8eced8.js} +2 -2
- package/dist/modern/{Component-45ff0715.d.ts → Component-e3661da1.d.ts} +1 -1
- package/dist/modern/{Component-45ff0715.js → Component-e3661da1.js} +5 -4
- package/dist/modern/Component.d.ts +1 -1
- package/dist/modern/Component.js +2 -1
- package/dist/modern/components/arrow/Component.js +1 -1
- package/dist/modern/components/arrow/index.css +3 -3
- package/dist/modern/components/base-select/Component.js +1 -1
- package/dist/modern/components/base-select/index.css +7 -7
- package/dist/modern/components/base-select/index.d.ts +1 -1
- package/dist/modern/components/base-select/index.js +1 -1
- package/dist/modern/components/checkmark/Component.js +1 -1
- package/dist/modern/components/checkmark/index.css +7 -7
- package/dist/modern/components/field/Component.js +1 -1
- package/dist/modern/components/field/index.css +9 -9
- package/dist/modern/components/index.js +4 -3
- package/dist/modern/components/optgroup/Component.js +1 -1
- package/dist/modern/components/optgroup/index.css +6 -6
- package/dist/modern/components/option/Component.js +1 -1
- package/dist/modern/components/option/index.css +20 -20
- package/dist/modern/components/options-list/Component.js +26 -6
- package/dist/modern/components/options-list/index.css +6 -6
- package/dist/modern/components/options-list/index.js +2 -0
- package/dist/modern/components/select-mobile/Component.js +4 -3
- package/dist/modern/components/select-mobile/checkmark/Component.js +1 -1
- package/dist/modern/components/select-mobile/checkmark/index.css +4 -4
- package/dist/modern/components/select-mobile/index.css +11 -11
- package/dist/modern/components/select-mobile/index.d.ts +1 -1
- package/dist/modern/components/select-mobile/index.js +4 -3
- package/dist/modern/components/select-mobile/options-list/Component.js +1 -1
- package/dist/modern/components/select-mobile/options-list/index.css +9 -9
- package/dist/modern/components/virtual-options-list/Component.d.ts +2 -2
- package/dist/modern/components/virtual-options-list/Component.js +34 -17
- package/dist/modern/components/virtual-options-list/index.css +12 -12
- package/dist/modern/components/virtual-options-list/index.js +2 -0
- package/dist/modern/index.js +4 -3
- package/dist/modern/{intersection-observer-ff7c25ff.d.ts → intersection-observer-ebdfdb11.d.ts} +0 -0
- package/dist/modern/{intersection-observer-ff7c25ff.js → intersection-observer-ebdfdb11.js} +0 -0
- package/dist/modern/presets/index.js +4 -3
- package/dist/modern/presets/useLazyLoading/hook.js +2 -2
- package/dist/modern/presets/useLazyLoading/index.css +2 -2
- package/dist/modern/presets/useSelectWithApply/hook.js +4 -3
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -3
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/index.js +4 -3
- package/dist/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
- package/dist/modern/typings.d.ts +9 -0
- package/dist/presets/index.js +5 -4
- package/dist/presets/useLazyLoading/hook.js +3 -3
- package/dist/presets/useLazyLoading/index.css +2 -2
- package/dist/presets/useSelectWithApply/hook.js +5 -4
- package/dist/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -4
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.css +4 -4
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/dist/presets/useSelectWithApply/options-list-with-apply/index.js +5 -4
- package/dist/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/presets/useSelectWithLoading/index.css +2 -2
- package/dist/{tslib.es6-b07d064f.d.ts → tslib.es6-42d27d11.d.ts} +0 -0
- package/dist/{tslib.es6-b07d064f.js → tslib.es6-42d27d11.js} +0 -0
- package/dist/typings.d.ts +9 -0
- package/package.json +6 -5
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import React, { forwardRef, useCallback, useRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { useMedia } from '@alfalab/hooks';
|
|
4
5
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
5
6
|
import mergeRefs from 'react-merge-refs';
|
|
7
|
+
import { Scrollbar } from '@alfalab/core-components-scrollbar/dist/esm';
|
|
6
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
7
9
|
|
|
8
|
-
var styles = {"optionsList":"
|
|
10
|
+
var styles = {"optionsList":"select__optionsList_doe4n","scrollable":"select__scrollable_doe4n","emptyPlaceholder":"select__emptyPlaceholder_doe4n","l":"select__l_doe4n","xl":"select__xl_doe4n"};
|
|
9
11
|
require('./index.css')
|
|
10
12
|
|
|
11
13
|
var createCounter = function () {
|
|
@@ -14,27 +16,41 @@ var createCounter = function () {
|
|
|
14
16
|
return function () { return count++; };
|
|
15
17
|
};
|
|
16
18
|
var OptionsList = forwardRef(function (_a, ref) {
|
|
17
|
-
var _b = _a.size, size = _b === void 0 ? 's' : _b, className = _a.className, optionGroupClassName = _a.optionGroupClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.Optgroup, Optgroup$1 = _d === void 0 ? Optgroup : _d, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _e = _a.visibleOptions, visibleOptions = _e === void 0 ? 5 : _e, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer;
|
|
19
|
+
var _b = _a.size, size = _b === void 0 ? 's' : _b, className = _a.className, optionGroupClassName = _a.optionGroupClassName, Option = _a.Option, getOptionProps = _a.getOptionProps, _c = _a.options, options = _c === void 0 ? [] : _c, _d = _a.Optgroup, Optgroup$1 = _d === void 0 ? Optgroup : _d, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _e = _a.visibleOptions, visibleOptions = _e === void 0 ? 5 : _e, onScroll = _a.onScroll, open = _a.open, header = _a.header, footer = _a.footer, optionsListWidth = _a.optionsListWidth, nativeScrollbarProp = _a.nativeScrollbar;
|
|
20
|
+
var nativeScrollbar = useMedia([[true, '(max-width: 1023px)']], false)[0];
|
|
21
|
+
nativeScrollbar = Boolean(nativeScrollbarProp !== null && nativeScrollbarProp !== void 0 ? nativeScrollbarProp : nativeScrollbar);
|
|
18
22
|
var renderOption = useCallback(function (option, index) { return (React.createElement(Option, __assign({ key: option.key }, getOptionProps(option, index)))); }, [getOptionProps]);
|
|
19
23
|
var listRef = useRef(null);
|
|
24
|
+
var scrollbarRef = useRef(null);
|
|
20
25
|
var counter = createCounter();
|
|
21
26
|
var renderGroup = useCallback(function (group) { return (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(function (option) { return renderOption(option, counter()); }))); }, [optionGroupClassName, counter, renderOption, size]);
|
|
22
|
-
useVisibleOptions({
|
|
23
|
-
visibleOptions: visibleOptions,
|
|
27
|
+
useVisibleOptions(__assign(__assign({}, (!nativeScrollbar && { styleTargetRef: scrollbarRef })), { visibleOptions: visibleOptions,
|
|
24
28
|
listRef: listRef,
|
|
25
|
-
open: open,
|
|
26
|
-
invalidate: options,
|
|
27
|
-
});
|
|
29
|
+
open: open, invalidate: options }));
|
|
28
30
|
if (options.length === 0 && !emptyPlaceholder) {
|
|
29
31
|
return null;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
React.createElement("div", { className: styles.scrollable, ref: mergeRefs([listRef, ref]), onScroll: onScroll },
|
|
33
|
+
var renderListItems = function () {
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
34
35
|
options.map(function (option) {
|
|
35
36
|
return isGroup(option) ? renderGroup(option) : renderOption(option, counter());
|
|
36
37
|
}),
|
|
37
|
-
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)))
|
|
38
|
+
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder))));
|
|
39
|
+
};
|
|
40
|
+
var renderWithCustomScrollbar = function () {
|
|
41
|
+
var scrollableNodeProps = {
|
|
42
|
+
onScroll: onScroll,
|
|
43
|
+
'data-test-id': dataTestId,
|
|
44
|
+
ref: ref,
|
|
45
|
+
};
|
|
46
|
+
return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: scrollableNodeProps, contentNodeProps: { ref: listRef } }, renderListItems()));
|
|
47
|
+
};
|
|
48
|
+
var renderWithNativeScrollbar = function () {
|
|
49
|
+
return (React.createElement("div", { className: styles.scrollable, ref: mergeRefs([listRef, ref]), onScroll: onScroll }, renderListItems()));
|
|
50
|
+
};
|
|
51
|
+
return (React.createElement("div", __assign({}, (nativeScrollbar && { 'data-test-id': dataTestId }), { className: cn(styles.optionsList, styles[size], className) }),
|
|
52
|
+
header,
|
|
53
|
+
nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar(),
|
|
38
54
|
footer));
|
|
39
55
|
});
|
|
40
56
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bo9ns */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__optionsList_doe4n {
|
|
30
30
|
overflow: auto;
|
|
31
31
|
width: 100%;
|
|
32
32
|
outline: none;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__scrollable_doe4n {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__emptyPlaceholder_doe4n {
|
|
40
40
|
padding: var(--gap-m) var(--gap-s);
|
|
41
41
|
color: var(--select-options-list-empty-placeholder-color);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
44
|
-
.
|
|
43
|
+
.select__l_doe4n .select__emptyPlaceholder_doe4n,
|
|
44
|
+
.select__xl_doe4n .select__emptyPlaceholder_doe4n {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
46
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
4
5
|
import '../../utils.js';
|
|
5
6
|
import 'react-merge-refs';
|
|
7
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
6
8
|
import '../optgroup/Component.js';
|
|
7
9
|
export { OptionsList } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -8,6 +8,7 @@ import '../field/Component.js';
|
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
9
|
import '../arrow/Component.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
11
12
|
import '../optgroup/Component.js';
|
|
12
13
|
import '../options-list/Component.js';
|
|
13
14
|
import '@alfalab/core-components-checkbox/dist/esm';
|
|
@@ -17,14 +18,14 @@ import 'resize-observer';
|
|
|
17
18
|
import '@alfalab/core-components-popover/dist/esm';
|
|
18
19
|
import 'downshift';
|
|
19
20
|
import '../native-select/Component.js';
|
|
20
|
-
import '../../Component-
|
|
21
|
+
import '../../Component-148e2816.js';
|
|
21
22
|
import '../../Component.js';
|
|
22
23
|
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
24
|
import '@alfalab/core-components-button/dist/esm';
|
|
24
25
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
26
|
import './options-list/Component.js';
|
|
26
27
|
import './checkmark/Component.js';
|
|
27
|
-
export { S as SelectMobile } from '../../Component-
|
|
28
|
+
export { S as SelectMobile } from '../../Component-6975d6d5.js';
|
|
28
29
|
import 'react-virtual';
|
|
29
30
|
import '@alfalab/core-components-skeleton/dist/esm';
|
|
30
|
-
import '../../intersection-observer-
|
|
31
|
+
import '../../intersection-observer-ebdfdb11.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"checkmark":"
|
|
4
|
+
var styles = {"checkmark":"select__checkmark_1re1u","selected":"select__selected_1re1u"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xq335 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* optgroup */
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.select__checkmark_1re1u {
|
|
22
22
|
flex-shrink: 0;
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
height: 24px;
|
|
30
30
|
opacity: 0
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__checkmark_1re1u:first-child {
|
|
33
33
|
display: none;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__checkmark_1re1u.select__selected_1re1u {
|
|
36
36
|
opacity: 1;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 172k0 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.select__component_q32z9 {
|
|
28
28
|
width: max-content;
|
|
29
29
|
position: relative;
|
|
30
30
|
outline: 0;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__popoverInner_q32z9 {
|
|
33
33
|
padding-top: var(--select-options-list-offset);
|
|
34
34
|
padding-bottom: var(--select-options-list-offset);
|
|
35
35
|
box-shadow: none;
|
|
@@ -38,31 +38,31 @@
|
|
|
38
38
|
border-radius: 0;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__sheet_q32z9 {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__sheetContent_q32z9 {
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.select__sheetContainer_q32z9 {
|
|
48
48
|
padding: 0;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.select__block_q32z9 {
|
|
51
51
|
width: 100%;
|
|
52
52
|
}
|
|
53
53
|
/* width: max-content; fix for IE */
|
|
54
54
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
-
.
|
|
55
|
+
.select__component_q32z9 {
|
|
56
56
|
float: left;
|
|
57
57
|
clear: left;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.select__option_q32z9 {
|
|
61
61
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_q32z9:before {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.select__optionGroup_q32z9 {
|
|
67
67
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-6975d6d5";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -8,6 +8,7 @@ import '../field/Component.js';
|
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
9
|
import '../arrow/Component.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
11
12
|
import '../optgroup/Component.js';
|
|
12
13
|
import '../options-list/Component.js';
|
|
13
14
|
import '@alfalab/core-components-checkbox/dist/esm';
|
|
@@ -17,14 +18,14 @@ import 'resize-observer';
|
|
|
17
18
|
import '@alfalab/core-components-popover/dist/esm';
|
|
18
19
|
import 'downshift';
|
|
19
20
|
import '../native-select/Component.js';
|
|
20
|
-
import '../../Component-
|
|
21
|
+
import '../../Component-148e2816.js';
|
|
21
22
|
import '../../Component.js';
|
|
22
23
|
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
24
|
import '@alfalab/core-components-button/dist/esm';
|
|
24
25
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
26
|
import './options-list/Component.js';
|
|
26
27
|
import './checkmark/Component.js';
|
|
27
|
-
export { S as SelectMobile } from '../../Component-
|
|
28
|
+
export { S as SelectMobile } from '../../Component-6975d6d5.js';
|
|
28
29
|
import 'react-virtual';
|
|
29
30
|
import '@alfalab/core-components-skeleton/dist/esm';
|
|
30
|
-
import '../../intersection-observer-
|
|
31
|
+
import '../../intersection-observer-ebdfdb11.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../../tslib.es6-0082a09a.js';
|
|
2
2
|
import React, { useContext, useEffect, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { isGroup } from '../../../utils.js';
|
|
@@ -6,7 +6,7 @@ import { Optgroup } from '../../optgroup/Component.js';
|
|
|
6
6
|
import { Button } from '@alfalab/core-components-button/dist/esm';
|
|
7
7
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/esm';
|
|
8
8
|
|
|
9
|
-
var styles = {"optionsList":"
|
|
9
|
+
var styles = {"optionsList":"select__optionsList_1l6lb","emptyPlaceholder":"select__emptyPlaceholder_1l6lb","l":"select__l_1l6lb","xl":"select__xl_1l6lb","footer":"select__footer_1l6lb","footerButton":"select__footerButton_1l6lb","highlighted":"select__highlighted_1l6lb"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: y3qz2 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
33
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__optionsList_1l6lb {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__emptyPlaceholder_1l6lb {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
45
|
-
.
|
|
44
|
+
.select__l_1l6lb .select__emptyPlaceholder_1l6lb,
|
|
45
|
+
.select__xl_1l6lb .select__emptyPlaceholder_1l6lb {
|
|
46
46
|
padding: var(--gap-xl) var(--gap-m);
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__footer_1l6lb {
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: space-between;
|
|
51
51
|
position: sticky;
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
background-color: var(--color-light-bg-primary);
|
|
54
54
|
bottom: 0
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.select__footer_1l6lb .select__footerButton_1l6lb:first-of-type {
|
|
57
57
|
margin-right: var(--gap-m);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__footerButton_1l6lb {
|
|
60
60
|
width: 50%;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__highlighted_1l6lb {
|
|
63
63
|
border-top: var(--select-mobile-footer-border-top);
|
|
64
64
|
background-color: var(--select-mobile-footer-background-color);
|
|
65
65
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OptionsListProps } from "../../typings";
|
|
3
|
-
type VirtualOptionsList = OptionsListProps & {
|
|
3
|
+
type VirtualOptionsList = Omit<OptionsListProps, 'optionsListWidth'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Число отрисованных пунктов до\после видимого окна
|
|
6
6
|
*/
|
|
7
7
|
overscan?: number;
|
|
8
8
|
};
|
|
9
|
-
declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, getOptionProps, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, header, footer, }: VirtualOptionsList) => JSX.Element;
|
|
9
|
+
declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, getOptionProps, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, header, footer, nativeScrollbar: nativeScrollbarProp, }: VirtualOptionsList) => JSX.Element;
|
|
10
10
|
export { VirtualOptionsList };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { useMedia } from '@alfalab/hooks';
|
|
4
5
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
6
|
+
import { Scrollbar } from '@alfalab/core-components-scrollbar/dist/esm';
|
|
5
7
|
import { Optgroup } from '../optgroup/Component.js';
|
|
6
8
|
import { useVirtual } from 'react-virtual';
|
|
7
9
|
|
|
8
|
-
var styles = {"virtualOptionsList":"
|
|
10
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_of2jd","scrollable":"select__scrollable_of2jd","inner":"select__inner_of2jd","virtualRow":"select__virtualRow_of2jd","highlighted":"select__highlighted_of2jd","emptyPlaceholder":"select__emptyPlaceholder_of2jd","l":"select__l_of2jd","xl":"select__xl_of2jd"};
|
|
9
11
|
require('./index.css')
|
|
10
12
|
|
|
11
13
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
12
14
|
var VirtualOptionsList = function (_a) {
|
|
13
|
-
var _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.flatOptions, flatOptions = _c === void 0 ? [] : _c, _d = _a.highlightedIndex, highlightedIndex = _d === void 0 ? -1 : _d, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.overscan, overscan = _f === void 0 ? 10 : _f, _g = _a.Optgroup, Optgroup$1 = _g === void 0 ? Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? 5 : _h, onScroll = _a.onScroll, header = _a.header, footer = _a.footer;
|
|
15
|
+
var _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.flatOptions, flatOptions = _c === void 0 ? [] : _c, _d = _a.highlightedIndex, highlightedIndex = _d === void 0 ? -1 : _d, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.overscan, overscan = _f === void 0 ? 10 : _f, _g = _a.Optgroup, Optgroup$1 = _g === void 0 ? Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? 5 : _h, onScroll = _a.onScroll, header = _a.header, footer = _a.footer, nativeScrollbarProp = _a.nativeScrollbar;
|
|
14
16
|
var listRef = useRef(null);
|
|
15
17
|
var parentRef = useRef(null);
|
|
18
|
+
var scrollbarRef = useRef(null);
|
|
16
19
|
var _j = useState(0), visibleOptionsInvalidateKey = _j[0], setVisibleOptionsInvalidateKey = _j[1];
|
|
17
20
|
var prevHighlightedIndex = usePrevious(highlightedIndex) || -1;
|
|
18
21
|
var rowVirtualizer = useVirtual({
|
|
@@ -20,6 +23,8 @@ var VirtualOptionsList = function (_a) {
|
|
|
20
23
|
parentRef: parentRef,
|
|
21
24
|
overscan: overscan,
|
|
22
25
|
});
|
|
26
|
+
var nativeScrollbar = useMedia([[true, '(max-width: 1023px)']], false)[0];
|
|
27
|
+
nativeScrollbar = Boolean(nativeScrollbarProp !== null && nativeScrollbarProp !== void 0 ? nativeScrollbarProp : nativeScrollbar);
|
|
23
28
|
// Сколл к выбранному пункту при открытии меню
|
|
24
29
|
useEffect(function () {
|
|
25
30
|
if (open) {
|
|
@@ -60,7 +65,7 @@ var VirtualOptionsList = function (_a) {
|
|
|
60
65
|
visibleOptions: visibleOptions,
|
|
61
66
|
invalidate: visibleOptionsInvalidateKey,
|
|
62
67
|
listRef: listRef,
|
|
63
|
-
styleTargetRef: parentRef,
|
|
68
|
+
styleTargetRef: nativeScrollbar ? parentRef : scrollbarRef,
|
|
64
69
|
open: open,
|
|
65
70
|
});
|
|
66
71
|
// Т.к. рендерится плоский список, необходимо знать индекс, когда начинается новая группа
|
|
@@ -77,23 +82,35 @@ var VirtualOptionsList = function (_a) {
|
|
|
77
82
|
return acc;
|
|
78
83
|
}, {});
|
|
79
84
|
}, [options]);
|
|
85
|
+
var contentNodeProps = {
|
|
86
|
+
className: styles.inner,
|
|
87
|
+
style: { height: rowVirtualizer.totalSize + "px" },
|
|
88
|
+
ref: listRef,
|
|
89
|
+
};
|
|
90
|
+
var renderList = function () {
|
|
91
|
+
return rowVirtualizer.virtualItems.map(function (virtualRow) {
|
|
92
|
+
var _a;
|
|
93
|
+
var option = flatOptions[virtualRow.index];
|
|
94
|
+
var group = options[groupStartIndexes[virtualRow.index]];
|
|
95
|
+
return (React.createElement("div", { key: virtualRow.index, ref: virtualRow.measureRef, className: cn(styles.virtualRow, (_a = {},
|
|
96
|
+
_a[styles.highlighted] = highlightedIndex === virtualRow.index,
|
|
97
|
+
_a)), style: {
|
|
98
|
+
transform: "translateY(" + virtualRow.start + "px)",
|
|
99
|
+
} },
|
|
100
|
+
group && React.createElement(Optgroup$1, { label: group.label }),
|
|
101
|
+
!isGroup(option) && React.createElement(Option, __assign({}, getOptionProps(option, virtualRow.index)))));
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
var renderWithCustomScrollbar = function () {
|
|
105
|
+
return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, scrollableNodeProps: { onScroll: onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
106
|
+
};
|
|
107
|
+
var renderWithNativeScrollbar = function () {
|
|
108
|
+
return (React.createElement("div", { className: styles.scrollable, ref: parentRef, onScroll: onScroll },
|
|
109
|
+
React.createElement("div", __assign({}, contentNodeProps), renderList())));
|
|
110
|
+
};
|
|
80
111
|
return (React.createElement("div", { className: cn(styles.virtualOptionsList, styles[size], className), "data-test-id": dataTestId },
|
|
81
112
|
header,
|
|
82
|
-
|
|
83
|
-
React.createElement("div", { className: styles.inner, style: {
|
|
84
|
-
height: rowVirtualizer.totalSize + "px",
|
|
85
|
-
}, ref: listRef }, rowVirtualizer.virtualItems.map(function (virtualRow) {
|
|
86
|
-
var _a;
|
|
87
|
-
var option = flatOptions[virtualRow.index];
|
|
88
|
-
var group = options[groupStartIndexes[virtualRow.index]];
|
|
89
|
-
return (React.createElement("div", { key: virtualRow.index, ref: virtualRow.measureRef, className: cn(styles.virtualRow, (_a = {},
|
|
90
|
-
_a[styles.highlighted] = highlightedIndex === virtualRow.index,
|
|
91
|
-
_a)), style: {
|
|
92
|
-
transform: "translateY(" + virtualRow.start + "px)",
|
|
93
|
-
} },
|
|
94
|
-
group && React.createElement(Optgroup$1, { label: group.label }),
|
|
95
|
-
!isGroup(option) && (React.createElement(Option, __assign({}, getOptionProps(option, virtualRow.index))))));
|
|
96
|
-
}))),
|
|
113
|
+
nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar(),
|
|
97
114
|
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)),
|
|
98
115
|
footer));
|
|
99
116
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m867o */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
|
|
33
33
|
/* optgroup */
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__virtualOptionsList_of2jd {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__scrollable_of2jd {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
width: 100%;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__inner_of2jd {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__virtualRow_of2jd {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.select__virtualRow_of2jd:before {
|
|
56
56
|
content: '';
|
|
57
57
|
position: absolute;
|
|
58
58
|
z-index: 1;
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
background: var(--select-option-divider-background);
|
|
64
64
|
display: var(--select-option-divider-display);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.select__virtualRow_of2jd:first-child:before {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
70
|
-
.
|
|
69
|
+
.select__highlighted_of2jd:before,
|
|
70
|
+
.select__highlighted_of2jd + .select__virtualRow_of2jd:before {
|
|
71
71
|
display: none;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.select__emptyPlaceholder_of2jd {
|
|
74
74
|
padding: var(--gap-m) var(--gap-s);
|
|
75
75
|
color: var(--select-options-list-empty-placeholder-color);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
78
|
-
.
|
|
77
|
+
.select__l_of2jd .select__emptyPlaceholder_of2jd,
|
|
78
|
+
.select__xl_of2jd .select__emptyPlaceholder_of2jd {
|
|
79
79
|
padding: var(--gap-xl) var(--gap-m);
|
|
80
80
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
4
5
|
import '../../utils.js';
|
|
6
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
5
7
|
import '../optgroup/Component.js';
|
|
6
8
|
import 'react-virtual';
|
|
7
9
|
export { VirtualOptionsList } from './Component.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -8,6 +8,7 @@ export { Field } from './components/field/Component.js';
|
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
9
|
export { Arrow } from './components/arrow/Component.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
11
12
|
export { Optgroup } from './components/optgroup/Component.js';
|
|
12
13
|
export { OptionsList } from './components/options-list/Component.js';
|
|
13
14
|
import '@alfalab/core-components-checkbox/dist/esm';
|
|
@@ -17,17 +18,17 @@ import 'resize-observer';
|
|
|
17
18
|
import '@alfalab/core-components-popover/dist/esm';
|
|
18
19
|
import 'downshift';
|
|
19
20
|
import './components/native-select/Component.js';
|
|
20
|
-
export { B as BaseSelect } from './Component-
|
|
21
|
+
export { B as BaseSelect } from './Component-148e2816.js';
|
|
21
22
|
export { Select } from './Component.js';
|
|
22
23
|
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
24
|
import '@alfalab/core-components-button/dist/esm';
|
|
24
25
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
26
|
import './components/select-mobile/options-list/Component.js';
|
|
26
27
|
import './components/select-mobile/checkmark/Component.js';
|
|
27
|
-
export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-
|
|
28
|
+
export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-6975d6d5.js';
|
|
28
29
|
import 'react-virtual';
|
|
29
30
|
export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
|
|
30
31
|
import '@alfalab/core-components-skeleton/dist/esm';
|
|
31
32
|
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
32
|
-
import './intersection-observer-
|
|
33
|
+
import './intersection-observer-ebdfdb11.js';
|
|
33
34
|
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
package/dist/esm/{intersection-observer-ff7c25ff.d.ts → intersection-observer-ebdfdb11.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-0082a09a.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
@@ -8,6 +8,7 @@ import '../components/field/Component.js';
|
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
9
|
import '../components/arrow/Component.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
|
+
import '@alfalab/core-components-scrollbar/dist/esm';
|
|
11
12
|
import '../components/optgroup/Component.js';
|
|
12
13
|
import '../components/options-list/Component.js';
|
|
13
14
|
import '@alfalab/core-components-checkbox/dist/esm';
|
|
@@ -17,16 +18,16 @@ import 'resize-observer';
|
|
|
17
18
|
import '@alfalab/core-components-popover/dist/esm';
|
|
18
19
|
import 'downshift';
|
|
19
20
|
import '../components/native-select/Component.js';
|
|
20
|
-
import '../Component-
|
|
21
|
+
import '../Component-148e2816.js';
|
|
21
22
|
import '../Component.js';
|
|
22
23
|
import '@alfalab/core-components-bottom-sheet/dist/esm';
|
|
23
24
|
import '@alfalab/core-components-button/dist/esm';
|
|
24
25
|
import '@alfalab/core-components-base-modal/dist/esm';
|
|
25
26
|
import '../components/select-mobile/options-list/Component.js';
|
|
26
27
|
import '../components/select-mobile/checkmark/Component.js';
|
|
27
|
-
export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
28
|
+
export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-6975d6d5.js';
|
|
28
29
|
import 'react-virtual';
|
|
29
30
|
import '@alfalab/core-components-skeleton/dist/esm';
|
|
30
31
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
31
|
-
import '../intersection-observer-
|
|
32
|
+
import '../intersection-observer-ebdfdb11.js';
|
|
32
33
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as __assign, b as __spreadArrays } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, b as __spreadArrays } from '../../tslib.es6-0082a09a.js';
|
|
2
2
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-checkbox/dist/esm';
|
|
5
5
|
import '../../components/checkmark/Component.js';
|
|
6
6
|
import { Option } from '../../components/option/Component.js';
|
|
7
7
|
import { Skeleton } from '@alfalab/core-components-skeleton/dist/esm';
|
|
8
|
-
import '../../intersection-observer-
|
|
8
|
+
import '../../intersection-observer-ebdfdb11.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"skeleton":"
|
|
10
|
+
var styles = {"skeleton":"select__skeleton_iorvr"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var DEBOUNCE_TIMEOUT = 300;
|