@alfalab/core-components-select 10.6.3 → 10.6.6
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 +137 -129
- package/dist/Component-ed0d36ed.d.ts +33 -0
- package/dist/Component-ed0d36ed.js +359 -0
- package/dist/Component-f9672486.d.ts +5 -0
- package/dist/Component-f9672486.js +247 -0
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +2 -2
- package/dist/components/arrow/Component.js +1 -1
- package/dist/components/arrow/index.css +3 -3
- package/dist/components/base-select/Component.d.ts +0 -5
- package/dist/components/base-select/Component.js +11 -241
- 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.d.ts +1 -0
- package/dist/components/index.js +12 -2
- package/dist/components/native-select/Component.js +1 -1
- package/dist/components/native-select/index.js +1 -1
- package/dist/components/optgroup/Component.d.ts +1 -1
- package/dist/components/optgroup/Component.js +3 -3
- 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 +4 -4
- package/dist/components/options-list/index.css +6 -6
- package/dist/components/options-list/index.js +1 -1
- package/dist/components/select-mobile/Component.d.ts +0 -0
- package/dist/components/select-mobile/Component.js +38 -0
- package/dist/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/components/select-mobile/checkmark/Component.js +24 -0
- package/dist/components/select-mobile/checkmark/index.css +37 -0
- package/dist/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/components/select-mobile/checkmark/index.js +11 -0
- package/dist/components/select-mobile/index.css +68 -0
- package/dist/components/select-mobile/index.d.ts +1 -0
- package/dist/components/select-mobile/index.js +38 -0
- package/dist/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/components/select-mobile/options-list/Component.js +51 -0
- package/dist/components/select-mobile/options-list/index.css +65 -0
- package/dist/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/components/select-mobile/options-list/index.js +16 -0
- package/dist/components/virtual-options-list/Component.js +2 -2
- package/dist/components/virtual-options-list/index.css +12 -12
- package/dist/components/virtual-options-list/index.js +1 -1
- package/dist/cssm/Component-9bc41b6c.d.ts +5 -0
- package/dist/cssm/Component-9bc41b6c.js +246 -0
- package/dist/cssm/Component-d45c0e41.d.ts +33 -0
- package/dist/cssm/Component-d45c0e41.js +365 -0
- package/dist/cssm/Component.d.ts +1 -1
- package/dist/cssm/Component.js +1 -1
- package/dist/cssm/components/base-select/Component.d.ts +0 -5
- package/dist/cssm/components/base-select/Component.js +12 -240
- 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.d.ts +1 -0
- package/dist/cssm/components/index.js +17 -1
- package/dist/cssm/components/optgroup/Component.d.ts +1 -1
- package/dist/cssm/components/optgroup/Component.js +2 -2
- package/dist/cssm/components/options-list/Component.js +2 -2
- package/dist/cssm/components/select-mobile/Component.d.ts +0 -0
- package/dist/cssm/components/select-mobile/Component.js +52 -0
- package/dist/cssm/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/cssm/components/select-mobile/checkmark/Component.js +23 -0
- package/dist/cssm/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/checkmark/index.js +12 -0
- package/dist/cssm/components/select-mobile/checkmark/index.module.css +36 -0
- package/dist/cssm/components/select-mobile/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/index.js +52 -0
- package/dist/cssm/components/select-mobile/index.module.css +67 -0
- package/dist/cssm/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/cssm/components/select-mobile/options-list/Component.js +51 -0
- package/dist/cssm/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/cssm/components/select-mobile/options-list/index.js +18 -0
- package/dist/cssm/components/select-mobile/options-list/index.module.css +64 -0
- package/dist/cssm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/cssm/hook-f5b8fe4f.d.ts +3 -3
- package/dist/cssm/index.js +14 -6
- package/dist/cssm/presets/index.js +13 -6
- package/dist/cssm/presets/useSelectWithApply/hook.js +13 -6
- package/dist/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +12 -5
- 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 +12 -5
- package/dist/cssm/typings.d.ts +29 -0
- package/dist/esm/Component-9afbfef2.d.ts +5 -0
- package/dist/esm/Component-9afbfef2.js +238 -0
- package/dist/esm/Component-e16d77bb.d.ts +33 -0
- package/dist/esm/Component-e16d77bb.js +348 -0
- package/dist/esm/Component.d.ts +1 -1
- package/dist/esm/Component.js +2 -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.d.ts +0 -5
- package/dist/esm/components/base-select/Component.js +10 -238
- 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.d.ts +1 -0
- package/dist/esm/components/index.js +11 -2
- 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.d.ts +1 -1
- package/dist/esm/components/optgroup/Component.js +3 -3
- 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 +4 -4
- package/dist/esm/components/options-list/index.css +6 -6
- package/dist/esm/components/options-list/index.js +1 -1
- package/dist/esm/components/select-mobile/Component.d.ts +0 -0
- package/dist/esm/components/select-mobile/Component.js +30 -0
- package/dist/esm/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/esm/components/select-mobile/checkmark/Component.js +15 -0
- package/dist/esm/components/select-mobile/checkmark/index.css +37 -0
- package/dist/esm/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/checkmark/index.js +3 -0
- package/dist/esm/components/select-mobile/index.css +68 -0
- package/dist/esm/components/select-mobile/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/index.js +30 -0
- package/dist/esm/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/esm/components/select-mobile/options-list/Component.js +42 -0
- package/dist/esm/components/select-mobile/options-list/index.css +65 -0
- package/dist/esm/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/esm/components/select-mobile/options-list/index.js +8 -0
- package/dist/esm/components/virtual-options-list/Component.js +2 -2
- package/dist/esm/components/virtual-options-list/index.css +12 -12
- package/dist/esm/components/virtual-options-list/index.js +1 -1
- package/dist/esm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/esm/hook-f5b8fe4f.d.ts +3 -3
- package/dist/esm/index.js +9 -5
- package/dist/esm/{intersection-observer-d3bb47ca.d.ts → intersection-observer-004c512b.d.ts} +0 -0
- package/dist/esm/{intersection-observer-d3bb47ca.js → intersection-observer-004c512b.js} +0 -0
- package/dist/esm/presets/index.js +9 -5
- 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 +9 -5
- package/dist/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +9 -5
- 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 +9 -5
- package/dist/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/esm/presets/useSelectWithLoading/index.css +2 -2
- package/dist/esm/{tslib.es6-16f12dd5.d.ts → tslib.es6-1fd989ad.d.ts} +0 -0
- package/dist/esm/{tslib.es6-16f12dd5.js → tslib.es6-1fd989ad.js} +0 -0
- package/dist/esm/typings.d.ts +29 -0
- package/dist/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/hook-f5b8fe4f.d.ts +3 -3
- package/dist/index.js +12 -7
- package/dist/{intersection-observer-a7fa2c77.d.ts → intersection-observer-e6739adc.d.ts} +0 -0
- package/dist/{intersection-observer-a7fa2c77.js → intersection-observer-e6739adc.js} +0 -0
- package/dist/modern/Component-25d26613.d.ts +5 -0
- package/dist/modern/Component-25d26613.js +247 -0
- package/dist/modern/Component-54c400c0.d.ts +33 -0
- package/dist/modern/Component-54c400c0.js +363 -0
- package/dist/modern/Component.d.ts +1 -1
- package/dist/modern/Component.js +1 -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.d.ts +0 -5
- package/dist/modern/components/base-select/Component.js +9 -247
- 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.d.ts +1 -0
- package/dist/modern/components/index.js +10 -1
- package/dist/modern/components/optgroup/Component.d.ts +1 -1
- package/dist/modern/components/optgroup/Component.js +3 -3
- 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 +3 -3
- package/dist/modern/components/options-list/index.css +6 -6
- package/dist/modern/components/select-mobile/Component.d.ts +0 -0
- package/dist/modern/components/select-mobile/Component.js +29 -0
- package/dist/modern/components/select-mobile/checkmark/Component.d.ts +4 -0
- package/dist/modern/components/select-mobile/checkmark/Component.js +11 -0
- package/dist/modern/components/select-mobile/checkmark/index.css +37 -0
- package/dist/modern/components/select-mobile/checkmark/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/checkmark/index.js +3 -0
- package/dist/modern/components/select-mobile/index.css +68 -0
- package/dist/modern/components/select-mobile/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/index.js +29 -0
- package/dist/modern/components/select-mobile/options-list/Component.d.ts +4 -0
- package/dist/modern/components/select-mobile/options-list/Component.js +37 -0
- package/dist/modern/components/select-mobile/options-list/index.css +65 -0
- package/dist/modern/components/select-mobile/options-list/index.d.ts +1 -0
- package/dist/modern/components/select-mobile/options-list/index.js +7 -0
- package/dist/modern/components/virtual-options-list/Component.js +1 -1
- package/dist/modern/components/virtual-options-list/index.css +12 -12
- package/dist/modern/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/dist/modern/hook-f5b8fe4f.d.ts +3 -3
- package/dist/modern/index.js +8 -4
- package/dist/modern/{intersection-observer-d3bb47ca.d.ts → intersection-observer-004c512b.d.ts} +0 -0
- package/dist/modern/{intersection-observer-d3bb47ca.js → intersection-observer-004c512b.js} +0 -0
- package/dist/modern/presets/index.js +8 -4
- 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 +8 -4
- package/dist/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +8 -4
- 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 +8 -4
- package/dist/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/dist/modern/presets/useSelectWithLoading/index.css +2 -2
- package/dist/modern/typings.d.ts +29 -0
- package/dist/presets/index.js +11 -7
- package/dist/presets/useLazyLoading/hook.js +3 -3
- package/dist/presets/useLazyLoading/index.css +2 -2
- package/dist/presets/useSelectWithApply/hook.js +11 -7
- package/dist/presets/useSelectWithApply/options-list-with-apply/Component.js +10 -6
- 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 +10 -6
- package/dist/presets/useSelectWithLoading/hook.js +2 -2
- package/dist/presets/useSelectWithLoading/index.css +2 -2
- package/dist/{tslib.es6-e3c7094c.d.ts → tslib.es6-efd670d0.d.ts} +0 -0
- package/dist/{tslib.es6-e3c7094c.js → tslib.es6-efd670d0.js} +0 -0
- package/dist/typings.d.ts +29 -0
- package/package.json +14 -12
- package/dist/cssm/hook-3b9bd559.d.ts +0 -12
- package/dist/cssm/hook-3b9bd559.js +0 -147
- package/dist/esm/hook-25ca47e0.d.ts +0 -12
- package/dist/esm/hook-25ca47e0.js +0 -131
- package/dist/hook-86df020f.d.ts +0 -12
- package/dist/hook-86df020f.js +0 -140
- package/dist/modern/hook-722e061a.d.ts +0 -12
- package/dist/modern/hook-722e061a.js +0 -132
|
@@ -4,7 +4,7 @@ import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import { Optgroup } from '../optgroup/Component.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"optionsList":"
|
|
7
|
+
var styles = {"optionsList":"select__optionsList_2f7tt","scrollable":"select__scrollable_2f7tt","emptyPlaceholder":"select__emptyPlaceholder_2f7tt","l":"select__l_2f7tt","xl":"select__xl_2f7tt"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const createCounter = () => {
|
|
@@ -12,11 +12,11 @@ const createCounter = () => {
|
|
|
12
12
|
// eslint-disable-next-line no-plusplus
|
|
13
13
|
return () => count++;
|
|
14
14
|
};
|
|
15
|
-
const OptionsList = forwardRef(({ size = 's', className, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = 5, onScroll, open, header, footer, }, ref) => {
|
|
15
|
+
const OptionsList = forwardRef(({ size = 's', className, optionGroupClassName, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = 5, onScroll, open, header, footer, }, ref) => {
|
|
16
16
|
const renderOption = useCallback((option, index) => (React.createElement(Option, Object.assign({ key: option.key }, getOptionProps(option, index)))), [getOptionProps]);
|
|
17
17
|
const listRef = useRef(null);
|
|
18
18
|
const counter = createCounter();
|
|
19
|
-
const renderGroup = useCallback((group) => (React.createElement(Optgroup$1, { label: group.label, key: group.label, size: size }, group.options.map(option => renderOption(option, counter())))), [counter, renderOption, size]);
|
|
19
|
+
const renderGroup = useCallback((group) => (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(option => renderOption(option, counter())))), [optionGroupClassName, counter, renderOption, size]);
|
|
20
20
|
useVisibleOptions({
|
|
21
21
|
visibleOptions,
|
|
22
22
|
listRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1acms */
|
|
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_2f7tt {
|
|
30
30
|
overflow: auto;
|
|
31
31
|
width: 100%;
|
|
32
32
|
outline: none;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__scrollable_2f7tt {
|
|
36
36
|
overflow: auto;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__emptyPlaceholder_2f7tt {
|
|
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_2f7tt .select__emptyPlaceholder_2f7tt,
|
|
44
|
+
.select__xl_2f7tt .select__emptyPlaceholder_2f7tt {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
46
|
}
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
import '@alfalab/core-components-form-control/dist/modern';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
import '../field/Component.js';
|
|
7
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
8
|
+
import '../arrow/Component.js';
|
|
9
|
+
import 'react-merge-refs';
|
|
10
|
+
import '../optgroup/Component.js';
|
|
11
|
+
import '../options-list/Component.js';
|
|
12
|
+
import '@alfalab/core-components-checkbox/dist/modern';
|
|
13
|
+
import '../checkmark/Component.js';
|
|
14
|
+
import '../option/Component.js';
|
|
15
|
+
import 'resize-observer';
|
|
16
|
+
import '@alfalab/core-components-popover/dist/modern';
|
|
17
|
+
import 'downshift';
|
|
18
|
+
import '../native-select/Component.js';
|
|
19
|
+
import '../../Component-25d26613.js';
|
|
20
|
+
import '../../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import './options-list/Component.js';
|
|
25
|
+
import './checkmark/Component.js';
|
|
26
|
+
export { S as SelectMobile } from '../../Component-54c400c0.js';
|
|
27
|
+
import 'react-virtual';
|
|
28
|
+
import '@alfalab/core-components-skeleton/dist/modern';
|
|
29
|
+
import '../../intersection-observer-004c512b.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
|
|
4
|
+
var styles = {"checkmark":"select__checkmark_h5gy6","selected":"select__selected_h5gy6"};
|
|
5
|
+
require('./index.css')
|
|
6
|
+
|
|
7
|
+
const Checkmark = ({ selected, className }) => (React.createElement("span", { className: cn(styles.checkmark, className, {
|
|
8
|
+
[styles.selected]: selected,
|
|
9
|
+
}) }));
|
|
10
|
+
|
|
11
|
+
export { Checkmark };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* hash: 1su1l */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
|
|
12
|
+
/* options list */
|
|
13
|
+
|
|
14
|
+
/* option */
|
|
15
|
+
|
|
16
|
+
/* checkmark */
|
|
17
|
+
--select-mobile-checkmark-background: url('https://alfabank.gcdn.co/icons/glyph_checkmark_m.svg');
|
|
18
|
+
|
|
19
|
+
/* optgroup */
|
|
20
|
+
}
|
|
21
|
+
.select__checkmark_h5gy6 {
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
background: var(--select-mobile-checkmark-background);
|
|
27
|
+
background-size: cover;
|
|
28
|
+
width: 24px;
|
|
29
|
+
height: 24px;
|
|
30
|
+
opacity: 0
|
|
31
|
+
}
|
|
32
|
+
.select__checkmark_h5gy6:first-child {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
.select__checkmark_h5gy6.select__selected_h5gy6 {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* hash: 1dgp3 */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--gap-2xs: 4px;
|
|
12
|
+
--gap-xs: 8px;
|
|
13
|
+
--gap-m: 16px;
|
|
14
|
+
--gap-l: 20px;
|
|
15
|
+
}
|
|
16
|
+
:root {
|
|
17
|
+
|
|
18
|
+
/* options list */
|
|
19
|
+
--select-options-list-offset: 0;
|
|
20
|
+
|
|
21
|
+
/* option */
|
|
22
|
+
|
|
23
|
+
/* checkmark */
|
|
24
|
+
|
|
25
|
+
/* optgroup */
|
|
26
|
+
}
|
|
27
|
+
.select__component_15s3q {
|
|
28
|
+
width: max-content;
|
|
29
|
+
position: relative;
|
|
30
|
+
outline: 0;
|
|
31
|
+
}
|
|
32
|
+
.select__popoverInner_15s3q {
|
|
33
|
+
padding-top: var(--select-options-list-offset);
|
|
34
|
+
padding-bottom: var(--select-options-list-offset);
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
border: none;
|
|
37
|
+
background: transparent;
|
|
38
|
+
border-radius: 0;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.select__sheet_15s3q {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
44
|
+
.select__sheetContent_15s3q {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
.select__sheetContainer_15s3q {
|
|
48
|
+
padding: 0;
|
|
49
|
+
}
|
|
50
|
+
.select__block_15s3q {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
/* width: max-content; fix for IE */
|
|
54
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
55
|
+
.select__component_15s3q {
|
|
56
|
+
float: left;
|
|
57
|
+
clear: left;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.select__option_15s3q {
|
|
61
|
+
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
62
|
+
}
|
|
63
|
+
.select__option_15s3q:before {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
.select__optionGroup_15s3q {
|
|
67
|
+
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../Component-54c400c0";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
import '@alfalab/core-components-form-control/dist/modern';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
import '../field/Component.js';
|
|
7
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
8
|
+
import '../arrow/Component.js';
|
|
9
|
+
import 'react-merge-refs';
|
|
10
|
+
import '../optgroup/Component.js';
|
|
11
|
+
import '../options-list/Component.js';
|
|
12
|
+
import '@alfalab/core-components-checkbox/dist/modern';
|
|
13
|
+
import '../checkmark/Component.js';
|
|
14
|
+
import '../option/Component.js';
|
|
15
|
+
import 'resize-observer';
|
|
16
|
+
import '@alfalab/core-components-popover/dist/modern';
|
|
17
|
+
import 'downshift';
|
|
18
|
+
import '../native-select/Component.js';
|
|
19
|
+
import '../../Component-25d26613.js';
|
|
20
|
+
import '../../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import './options-list/Component.js';
|
|
25
|
+
import './checkmark/Component.js';
|
|
26
|
+
export { S as SelectMobile } from '../../Component-54c400c0.js';
|
|
27
|
+
import 'react-virtual';
|
|
28
|
+
import '@alfalab/core-components-skeleton/dist/modern';
|
|
29
|
+
import '../../intersection-observer-004c512b.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OptionsListProps } from "../../../typings";
|
|
3
|
+
declare const OptionsList: ({ size, className, optionGroupClassName, Option, getOptionProps, options, Optgroup, dataTestId, emptyPlaceholder, showFooter, onApply, onClear, }: OptionsListProps) => JSX.Element | null;
|
|
4
|
+
export { OptionsList };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { useContext, useEffect, useCallback } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { isGroup } from '../../../utils.js';
|
|
4
|
+
import { Optgroup } from '../../optgroup/Component.js';
|
|
5
|
+
import { Button } from '@alfalab/core-components-button/dist/modern';
|
|
6
|
+
import { BaseModalContext } from '@alfalab/core-components-base-modal/dist/modern';
|
|
7
|
+
|
|
8
|
+
var styles = {"optionsList":"select__optionsList_1hzbr","emptyPlaceholder":"select__emptyPlaceholder_1hzbr","l":"select__l_1hzbr","xl":"select__xl_1hzbr","footer":"select__footer_1hzbr","footerButton":"select__footerButton_1hzbr","highlighted":"select__highlighted_1hzbr"};
|
|
9
|
+
require('./index.css')
|
|
10
|
+
|
|
11
|
+
const createCounter = () => {
|
|
12
|
+
let count = 0;
|
|
13
|
+
// eslint-disable-next-line no-plusplus
|
|
14
|
+
return () => count++;
|
|
15
|
+
};
|
|
16
|
+
const OptionsList = ({ size = 's', className, optionGroupClassName, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, showFooter, onApply = () => null, onClear = () => null, }) => {
|
|
17
|
+
const { footerHighlighted, setHasFooter } = useContext(BaseModalContext);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setHasFooter(true);
|
|
20
|
+
}, [setHasFooter]);
|
|
21
|
+
const renderOption = useCallback((option, index) => (React.createElement(Option, Object.assign({ key: option.key }, getOptionProps(option, index)))), [getOptionProps]);
|
|
22
|
+
const counter = createCounter();
|
|
23
|
+
const renderGroup = useCallback((group) => (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size }, group.options.map(option => renderOption(option, counter())))), [optionGroupClassName, counter, renderOption, size]);
|
|
24
|
+
if (options.length === 0 && !emptyPlaceholder) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return (React.createElement("div", { className: cn(styles.optionsList, styles[size], className), "data-test-id": dataTestId },
|
|
28
|
+
options.map(option => isGroup(option) ? renderGroup(option) : renderOption(option, counter())),
|
|
29
|
+
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)),
|
|
30
|
+
showFooter && (React.createElement("div", { className: cn(styles.footer, className, {
|
|
31
|
+
[styles.highlighted]: footerHighlighted,
|
|
32
|
+
}) },
|
|
33
|
+
React.createElement(Button, { size: 's', view: 'primary', onClick: onApply, className: styles.footerButton }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
|
|
34
|
+
React.createElement(Button, { size: 's', view: 'secondary', onClick: onClear, className: styles.footerButton }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C")))));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { OptionsList };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* hash: m0h28 */
|
|
2
|
+
:root {
|
|
3
|
+
--color-light-bg-primary: #fff;
|
|
4
|
+
--color-light-border-primary: #dbdee1;
|
|
5
|
+
--color-light-text-secondary: #546272;
|
|
6
|
+
}
|
|
7
|
+
:root {
|
|
8
|
+
|
|
9
|
+
/* Hard */
|
|
10
|
+
|
|
11
|
+
/* Up */
|
|
12
|
+
|
|
13
|
+
/* Hard up */
|
|
14
|
+
}
|
|
15
|
+
:root {
|
|
16
|
+
--gap-s: 12px;
|
|
17
|
+
--gap-m: 16px;
|
|
18
|
+
--gap-xl: 24px;
|
|
19
|
+
}
|
|
20
|
+
:root {
|
|
21
|
+
|
|
22
|
+
/* options list */
|
|
23
|
+
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
24
|
+
|
|
25
|
+
/* option */
|
|
26
|
+
|
|
27
|
+
/* checkmark */
|
|
28
|
+
|
|
29
|
+
/* optgroup */
|
|
30
|
+
}
|
|
31
|
+
:root {
|
|
32
|
+
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
33
|
+
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
34
|
+
}
|
|
35
|
+
.select__optionsList_1hzbr {
|
|
36
|
+
width: 100%;
|
|
37
|
+
outline: none;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
}
|
|
40
|
+
.select__emptyPlaceholder_1hzbr {
|
|
41
|
+
padding: var(--gap-m) var(--gap-s);
|
|
42
|
+
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
+
}
|
|
44
|
+
.select__l_1hzbr .select__emptyPlaceholder_1hzbr,
|
|
45
|
+
.select__xl_1hzbr .select__emptyPlaceholder_1hzbr {
|
|
46
|
+
padding: var(--gap-xl) var(--gap-m);
|
|
47
|
+
}
|
|
48
|
+
.select__footer_1hzbr {
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
position: sticky;
|
|
52
|
+
padding: var(--gap-m) var(--gap-m);
|
|
53
|
+
background-color: var(--color-light-bg-primary);
|
|
54
|
+
bottom: 0
|
|
55
|
+
}
|
|
56
|
+
.select__footer_1hzbr .select__footerButton_1hzbr:first-of-type {
|
|
57
|
+
margin-right: var(--gap-m);
|
|
58
|
+
}
|
|
59
|
+
.select__footerButton_1hzbr {
|
|
60
|
+
width: 50%;
|
|
61
|
+
}
|
|
62
|
+
.select__highlighted_1hzbr {
|
|
63
|
+
border-top: var(--select-mobile-footer-border-top);
|
|
64
|
+
background-color: var(--select-mobile-footer-background-color);
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '../../../utils.js';
|
|
4
|
+
import '../../optgroup/Component.js';
|
|
5
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
6
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
7
|
+
export { OptionsList } from './Component.js';
|
|
@@ -4,7 +4,7 @@ import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../util
|
|
|
4
4
|
import { Optgroup } from '../optgroup/Component.js';
|
|
5
5
|
import { useVirtual } from 'react-virtual';
|
|
6
6
|
|
|
7
|
-
var styles = {"virtualOptionsList":"
|
|
7
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_a7nol","scrollable":"select__scrollable_a7nol","inner":"select__inner_a7nol","virtualRow":"select__virtualRow_a7nol","highlighted":"select__highlighted_a7nol","emptyPlaceholder":"select__emptyPlaceholder_a7nol","l":"select__l_a7nol","xl":"select__xl_a7nol"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hnv7 */
|
|
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_a7nol {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__scrollable_a7nol {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
width: 100%;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__inner_a7nol {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__virtualRow_a7nol {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.select__virtualRow_a7nol: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_a7nol:first-child:before {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
70
|
-
.
|
|
69
|
+
.select__highlighted_a7nol:before,
|
|
70
|
+
.select__highlighted_a7nol + .select__virtualRow_a7nol:before {
|
|
71
71
|
display: none;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.select__emptyPlaceholder_a7nol {
|
|
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_a7nol .select__emptyPlaceholder_a7nol,
|
|
78
|
+
.select__xl_a7nol .select__emptyPlaceholder_a7nol {
|
|
79
79
|
padding: var(--gap-xl) var(--gap-m);
|
|
80
80
|
}
|
|
@@ -30,11 +30,11 @@ declare const SELECT_ALL_KEY = "select_all";
|
|
|
30
30
|
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
|
|
31
31
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index").OptionsListProps & {
|
|
32
32
|
showClear?: boolean | undefined;
|
|
33
|
-
onApply?: (() => void) | undefined;
|
|
34
|
-
onClear?: (() => void) | undefined;
|
|
35
33
|
onClose?: (() => void) | undefined;
|
|
36
34
|
selectedDraft?: OptionShape[] | undefined;
|
|
37
|
-
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
35
|
+
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<unknown>> | undefined; /**
|
|
36
|
+
* Показывать кнопку очистки
|
|
37
|
+
*/
|
|
38
38
|
} & import("react").RefAttributes<unknown>>;
|
|
39
39
|
optionsListProps: {
|
|
40
40
|
OptionsList: import("react").FC<import("./index").OptionsListProps> | undefined;
|
package/dist/modern/index.js
CHANGED
|
@@ -16,13 +16,17 @@ import 'resize-observer';
|
|
|
16
16
|
import '@alfalab/core-components-popover/dist/modern';
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import './components/native-select/Component.js';
|
|
19
|
-
export { BaseSelect } from './
|
|
19
|
+
export { B as BaseSelect } from './Component-25d26613.js';
|
|
20
20
|
export { Select } from './Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import './components/select-mobile/options-list/Component.js';
|
|
25
|
+
import './components/select-mobile/checkmark/Component.js';
|
|
26
|
+
export { a as SELECT_ALL_KEY, S as SelectMobile, u as useSelectWithApply } from './Component-54c400c0.js';
|
|
21
27
|
import 'react-virtual';
|
|
22
28
|
export { VirtualOptionsList } from './components/virtual-options-list/Component.js';
|
|
23
29
|
import '@alfalab/core-components-skeleton/dist/modern';
|
|
24
30
|
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
25
|
-
import './intersection-observer-
|
|
31
|
+
import './intersection-observer-004c512b.js';
|
|
26
32
|
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
|
27
|
-
import '@alfalab/core-components-button/dist/modern';
|
|
28
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from './hook-722e061a.js';
|
package/dist/modern/{intersection-observer-d3bb47ca.d.ts → intersection-observer-004c512b.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -16,12 +16,16 @@ import 'resize-observer';
|
|
|
16
16
|
import '@alfalab/core-components-popover/dist/modern';
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import '../components/native-select/Component.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Component-25d26613.js';
|
|
20
20
|
import '../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import '../components/select-mobile/options-list/Component.js';
|
|
25
|
+
import '../components/select-mobile/checkmark/Component.js';
|
|
26
|
+
export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-54c400c0.js';
|
|
21
27
|
import 'react-virtual';
|
|
22
28
|
import '@alfalab/core-components-skeleton/dist/modern';
|
|
23
29
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
24
|
-
import '../intersection-observer-
|
|
30
|
+
import '../intersection-observer-004c512b.js';
|
|
25
31
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
26
|
-
import '@alfalab/core-components-button/dist/modern';
|
|
27
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-722e061a.js';
|
|
@@ -4,9 +4,9 @@ import '@alfalab/core-components-checkbox/dist/modern';
|
|
|
4
4
|
import '../../components/checkmark/Component.js';
|
|
5
5
|
import { Option } from '../../components/option/Component.js';
|
|
6
6
|
import { Skeleton } from '@alfalab/core-components-skeleton/dist/modern';
|
|
7
|
-
import '../../intersection-observer-
|
|
7
|
+
import '../../intersection-observer-004c512b.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"skeleton":"
|
|
9
|
+
var styles = {"skeleton":"select__skeleton_ydsmy"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const DEBOUNCE_TIMEOUT = 300;
|
|
@@ -16,10 +16,14 @@ import 'resize-observer';
|
|
|
16
16
|
import '@alfalab/core-components-popover/dist/modern';
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import '../../components/native-select/Component.js';
|
|
19
|
-
import '../../
|
|
19
|
+
import '../../Component-25d26613.js';
|
|
20
20
|
import '../../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import '../../components/select-mobile/options-list/Component.js';
|
|
25
|
+
import '../../components/select-mobile/checkmark/Component.js';
|
|
26
|
+
export { a as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-54c400c0.js';
|
|
21
27
|
import 'react-virtual';
|
|
22
28
|
import '@alfalab/core-components-skeleton/dist/modern';
|
|
23
|
-
import '../../intersection-observer-
|
|
24
|
-
import '@alfalab/core-components-button/dist/modern';
|
|
25
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-722e061a.js';
|
|
29
|
+
import '../../intersection-observer-004c512b.js';
|
|
@@ -16,10 +16,14 @@ import 'resize-observer';
|
|
|
16
16
|
import '@alfalab/core-components-popover/dist/modern';
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import '../../../components/native-select/Component.js';
|
|
19
|
-
import '../../../
|
|
19
|
+
import '../../../Component-25d26613.js';
|
|
20
20
|
import '../../../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import '../../../components/select-mobile/options-list/Component.js';
|
|
25
|
+
import '../../../components/select-mobile/checkmark/Component.js';
|
|
26
|
+
export { O as OptionsListWithApply } from '../../../Component-54c400c0.js';
|
|
21
27
|
import 'react-virtual';
|
|
22
28
|
import '@alfalab/core-components-skeleton/dist/modern';
|
|
23
|
-
import '../../../intersection-observer-
|
|
24
|
-
import '@alfalab/core-components-button/dist/modern';
|
|
25
|
-
export { O as OptionsListWithApply } from '../../../hook-722e061a.js';
|
|
29
|
+
import '../../../intersection-observer-004c512b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: baopl */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.select__footer_3ofg3 {
|
|
30
30
|
background: var(--color-light-bg-primary);
|
|
31
31
|
padding: var(--gap-s) var(--gap-s) var(--gap-m);
|
|
32
32
|
outline: none
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__footer_3ofg3 > * + * {
|
|
35
35
|
margin-left: var(--gap-xs);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.select__withBorder_3ofg3 {
|
|
38
38
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../
|
|
1
|
+
export * from "../../../Component-54c400c0";
|
|
@@ -16,10 +16,14 @@ import 'resize-observer';
|
|
|
16
16
|
import '@alfalab/core-components-popover/dist/modern';
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import '../../../components/native-select/Component.js';
|
|
19
|
-
import '../../../
|
|
19
|
+
import '../../../Component-25d26613.js';
|
|
20
20
|
import '../../../Component.js';
|
|
21
|
+
import '@alfalab/core-components-bottom-sheet/dist/modern';
|
|
22
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
23
|
+
import '@alfalab/core-components-base-modal/dist/modern';
|
|
24
|
+
import '../../../components/select-mobile/options-list/Component.js';
|
|
25
|
+
import '../../../components/select-mobile/checkmark/Component.js';
|
|
26
|
+
export { O as OptionsListWithApply } from '../../../Component-54c400c0.js';
|
|
21
27
|
import 'react-virtual';
|
|
22
28
|
import '@alfalab/core-components-skeleton/dist/modern';
|
|
23
|
-
import '../../../intersection-observer-
|
|
24
|
-
import '@alfalab/core-components-button/dist/modern';
|
|
25
|
-
export { O as OptionsListWithApply } from '../../../hook-722e061a.js';
|
|
29
|
+
import '../../../intersection-observer-004c512b.js';
|