@alfalab/core-components-select 13.2.2 → 13.2.4
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-4e5b4c78.d.ts → Component-657dc008.d.ts} +0 -0
- package/{Component-4e5b4c78.js → Component-657dc008.js} +31 -25
- package/{Component-dc8aa97a.d.ts → Component-fcb6e20d.d.ts} +0 -0
- package/{Component-dc8aa97a.js → Component-fcb6e20d.js} +16 -10
- package/Component.js +8 -4
- package/Component.responsive.js +10 -6
- package/components/arrow/Component.js +7 -2
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +8 -3
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +10 -5
- package/components/base-option/index.css +11 -11
- 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 -5
- package/components/base-select-mobile/checkmark/Component.js +10 -5
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/checkmark/index.js +1 -1
- 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 -5
- package/components/base-select-mobile/options-list/Component.js +14 -9
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +10 -5
- package/components/checkmark/index.css +8 -8
- package/components/checkmark/index.js +1 -1
- package/components/field/Component.js +14 -9
- package/components/field/index.css +9 -9
- package/components/field/index.js +1 -1
- package/components/index.js +5 -5
- package/components/native-select/Component.js +9 -5
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +9 -4
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +12 -7
- package/components/option/index.css +20 -20
- package/components/option/index.js +2 -2
- package/components/options-list/Component.js +15 -9
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +5 -5
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +5 -5
- package/components/select-modal-mobile/Component.js +5 -5
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +5 -5
- package/components/virtual-options-list/Component.js +15 -10
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/{Component-07f6200f.d.ts → Component-d0e84442.d.ts} +0 -0
- package/cssm/{Component-07f6200f.js → Component-d0e84442.js} +15 -8
- package/cssm/{Component-b5c43f14.d.ts → Component-e61bd989.d.ts} +0 -0
- package/cssm/{Component-b5c43f14.js → Component-e61bd989.js} +30 -22
- package/cssm/Component.js +7 -3
- package/cssm/Component.responsive.js +8 -4
- package/cssm/components/arrow/Component.js +7 -1
- package/cssm/components/base-checkmark/Component.js +11 -5
- package/cssm/components/base-option/Component.js +16 -10
- package/cssm/components/base-select/Component.js +1 -1
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +1 -1
- package/cssm/components/base-select-mobile/Component.js +3 -3
- package/cssm/components/base-select-mobile/checkmark/Component.js +11 -5
- package/cssm/components/base-select-mobile/checkmark/index.js +1 -1
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +3 -3
- package/cssm/components/base-select-mobile/options-list/Component.js +14 -8
- package/cssm/components/checkmark/Component.js +13 -7
- package/cssm/components/checkmark/index.js +1 -1
- package/cssm/components/field/Component.js +15 -9
- package/cssm/components/index.js +3 -3
- package/cssm/components/native-select/Component.js +8 -4
- package/cssm/components/optgroup/Component.js +9 -3
- package/cssm/components/option/Component.js +15 -9
- package/cssm/components/option/index.js +1 -1
- package/cssm/components/options-list/Component.js +14 -7
- package/cssm/components/select-mobile/Component.js +3 -3
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +3 -3
- package/cssm/components/select-modal-mobile/Component.js +3 -3
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +3 -3
- package/cssm/components/virtual-options-list/Component.js +16 -10
- package/cssm/index.js +3 -3
- package/cssm/presets/index.js +3 -3
- package/cssm/presets/useLazyLoading/hook.js +8 -3
- package/cssm/presets/useSelectWithApply/hook.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/cssm/presets/useSelectWithLoading/hook.js +8 -3
- package/cssm/responsive.js +3 -3
- package/esm/{Component-90edf135.d.ts → Component-18e9f3c6.d.ts} +0 -0
- package/esm/{Component-90edf135.js → Component-18e9f3c6.js} +6 -6
- package/esm/{Component-18490c10.d.ts → Component-6f353469.d.ts} +0 -0
- package/esm/{Component-18490c10.js → Component-6f353469.js} +2 -2
- package/esm/Component.js +3 -3
- package/esm/Component.responsive.js +5 -5
- 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 +11 -11
- 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 -5
- package/esm/components/base-select-mobile/checkmark/Component.js +2 -2
- package/esm/components/base-select-mobile/checkmark/index.css +6 -6
- package/esm/components/base-select-mobile/checkmark/index.js +1 -1
- 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 -5
- 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/checkmark/Component.js +2 -2
- package/esm/components/checkmark/index.css +8 -8
- package/esm/components/checkmark/index.js +1 -1
- 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 -5
- 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 +3 -3
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +2 -2
- 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 -5
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +5 -5
- package/esm/components/select-modal-mobile/Component.js +5 -5
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +5 -5
- 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 -5
- package/esm/{intersection-observer-f951196f.d.ts → intersection-observer-20f7d033.d.ts} +0 -0
- package/esm/{intersection-observer-f951196f.js → intersection-observer-20f7d033.js} +0 -0
- package/esm/presets/index.js +5 -5
- package/esm/presets/useLazyLoading/hook.js +4 -4
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +5 -5
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -5
- 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 -5
- package/esm/presets/useSelectWithLoading/hook.js +3 -3
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +5 -5
- package/esm/{tslib.es6-b843a0de.d.ts → tslib.es6-6afe6623.d.ts} +0 -0
- package/esm/{tslib.es6-b843a0de.js → tslib.es6-6afe6623.js} +0 -0
- package/index.js +5 -5
- package/{intersection-observer-54c021a4.d.ts → intersection-observer-7b18ccf3.d.ts} +0 -0
- package/{intersection-observer-54c021a4.js → intersection-observer-7b18ccf3.js} +0 -0
- package/modern/{Component-b4cd876c.d.ts → Component-1f9b947f.d.ts} +0 -0
- package/modern/{Component-b4cd876c.js → Component-1f9b947f.js} +5 -5
- package/modern/{Component-633cd6ec.d.ts → Component-5eb0e464.d.ts} +0 -0
- package/modern/{Component-633cd6ec.js → Component-5eb0e464.js} +1 -1
- package/modern/Component.js +2 -2
- package/modern/Component.responsive.js +4 -4
- 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 +11 -11
- 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 -4
- package/modern/components/base-select-mobile/checkmark/Component.js +2 -2
- package/modern/components/base-select-mobile/checkmark/index.css +6 -6
- package/modern/components/base-select-mobile/checkmark/index.js +1 -1
- 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 -4
- 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/checkmark/Component.js +2 -2
- package/modern/components/checkmark/index.css +8 -8
- package/modern/components/checkmark/index.js +1 -1
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +4 -4
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +2 -2
- package/modern/components/option/index.css +20 -20
- package/modern/components/option/index.js +1 -1
- 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 -4
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +4 -4
- package/modern/components/select-modal-mobile/Component.js +4 -4
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +4 -4
- 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 -4
- package/modern/{intersection-observer-f951196f.d.ts → intersection-observer-20f7d033.d.ts} +0 -0
- package/modern/{intersection-observer-f951196f.js → intersection-observer-20f7d033.js} +0 -0
- package/modern/presets/index.js +4 -4
- package/modern/presets/useLazyLoading/hook.js +3 -3
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- 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 -4
- package/modern/presets/useSelectWithLoading/hook.js +2 -2
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +4 -4
- package/package.json +12 -12
- package/presets/index.js +5 -5
- package/presets/useLazyLoading/hook.js +10 -6
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +5 -5
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -5
- 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 -5
- package/presets/useSelectWithLoading/hook.js +9 -5
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +5 -5
- /package/{tslib.es6-b8d245fd.d.ts → tslib.es6-769894f2.d.ts} +0 -0
- /package/{tslib.es6-b8d245fd.js → tslib.es6-769894f2.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-6afe6623.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
4
|
+
export { a as SelectModalMobile } from '../../Component-18e9f3c6.js';
|
|
5
5
|
import '../field/Component.js';
|
|
6
6
|
import '../optgroup/Component.js';
|
|
7
7
|
import '../option/Component.js';
|
|
@@ -12,7 +12,7 @@ import 'downshift';
|
|
|
12
12
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
13
13
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
14
14
|
import '../../Component.js';
|
|
15
|
-
import '../../Component-
|
|
15
|
+
import '../../Component-6f353469.js';
|
|
16
16
|
import '@juggle/resize-observer';
|
|
17
17
|
import '@alfalab/core-components-popover/esm';
|
|
18
18
|
import '@alfalab/hooks';
|
|
@@ -22,7 +22,7 @@ import '../options-list/Component.js';
|
|
|
22
22
|
import '@alfalab/core-components-scrollbar/esm';
|
|
23
23
|
import '@alfalab/core-components-form-control/esm';
|
|
24
24
|
import '../base-select-mobile/checkmark/Component.js';
|
|
25
|
-
import '@alfalab/core-components/
|
|
25
|
+
import '@alfalab/core-components-badge/esm';
|
|
26
26
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
27
27
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
28
28
|
import '../checkmark/Component.js';
|
|
@@ -31,7 +31,7 @@ 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-20f7d033.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import '../base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-18e9f3c6";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
2
|
-
import '../../tslib.es6-
|
|
1
|
+
export { a as SelectModalMobile } from '../../Component-18e9f3c6.js';
|
|
2
|
+
import '../../tslib.es6-6afe6623.js';
|
|
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-6f353469.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
14
14
|
import '@alfalab/core-components-popover/esm';
|
|
15
15
|
import '@alfalab/hooks';
|
|
@@ -20,7 +20,7 @@ import '@alfalab/core-components-form-control/esm';
|
|
|
20
20
|
import '../optgroup/Component.js';
|
|
21
21
|
import '../option/Component.js';
|
|
22
22
|
import '../base-select-mobile/checkmark/Component.js';
|
|
23
|
-
import '@alfalab/core-components/
|
|
23
|
+
import '@alfalab/core-components-badge/esm';
|
|
24
24
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
25
25
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
26
26
|
import '../checkmark/Component.js';
|
|
@@ -31,7 +31,7 @@ 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-20f7d033.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import '../base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-6afe6623.js';
|
|
2
2
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
3
3
|
import { useVirtual } from 'react-virtual';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
7
7
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
8
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"virtualOptionsList":"
|
|
10
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_muup0","scrollable":"select__scrollable_muup0","inner":"select__inner_muup0","virtualRow":"select__virtualRow_muup0","highlighted":"select__highlighted_muup0","emptyPlaceholder":"select__emptyPlaceholder_muup0","l":"select__l_muup0","xl":"select__xl_muup0"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12n7m */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
|
|
33
33
|
/* optgroup */
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.select__virtualOptionsList_muup0 {
|
|
36
36
|
width: 100%;
|
|
37
37
|
outline: none;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
position: relative;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.select__scrollable_muup0 {
|
|
42
42
|
overflow: auto;
|
|
43
43
|
width: 100%;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.select__inner_muup0 {
|
|
46
46
|
position: relative;
|
|
47
47
|
width: 100%;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__virtualRow_muup0 {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.select__virtualRow_muup0: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_muup0:first-child:before {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
70
|
-
.
|
|
69
|
+
.select__highlighted_muup0:before,
|
|
70
|
+
.select__highlighted_muup0 + .select__virtualRow_muup0:before {
|
|
71
71
|
display: none;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.select__emptyPlaceholder_muup0 {
|
|
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_muup0 .select__emptyPlaceholder_muup0,
|
|
78
|
+
.select__xl_muup0 .select__emptyPlaceholder_muup0 {
|
|
79
79
|
padding: var(--gap-xl) var(--gap-m);
|
|
80
80
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Select } from './Component.js';
|
|
2
2
|
export { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
export { B as BaseSelect } from './Component-
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-
|
|
3
|
+
export { B as BaseSelect } from './Component-6f353469.js';
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-18e9f3c6.js';
|
|
5
5
|
export { Field } from './components/field/Component.js';
|
|
6
6
|
export { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
export { Option } from './components/option/Component.js';
|
|
@@ -11,7 +11,7 @@ export { BaseOption } from './components/base-option/Component.js';
|
|
|
11
11
|
export { useSelectWithLoading } from './presets/useSelectWithLoading/hook.js';
|
|
12
12
|
export { useLazyLoading } from './presets/useLazyLoading/hook.js';
|
|
13
13
|
export { isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from './utils.js';
|
|
14
|
-
import './tslib.es6-
|
|
14
|
+
import './tslib.es6-6afe6623.js';
|
|
15
15
|
import 'react';
|
|
16
16
|
import 'classnames';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -23,7 +23,7 @@ import '@alfalab/hooks';
|
|
|
23
23
|
import './components/native-select/Component.js';
|
|
24
24
|
import '@alfalab/core-components-form-control/esm';
|
|
25
25
|
import './components/base-select-mobile/checkmark/Component.js';
|
|
26
|
-
import '@alfalab/core-components/
|
|
26
|
+
import '@alfalab/core-components-badge/esm';
|
|
27
27
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
28
28
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
29
29
|
import './components/checkmark/Component.js';
|
|
@@ -33,7 +33,7 @@ import '@alfalab/core-components-bottom-sheet/esm';
|
|
|
33
33
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
34
34
|
import 'react-virtual';
|
|
35
35
|
import '@alfalab/core-components-skeleton/esm';
|
|
36
|
-
import './intersection-observer-
|
|
36
|
+
import './intersection-observer-20f7d033.js';
|
|
37
37
|
import '@alfalab/core-components-button/esm';
|
|
38
38
|
import './components/base-checkmark/Component.js';
|
|
39
39
|
import './components/base-select-mobile/options-list/Component.js';
|
|
File without changes
|
|
File without changes
|
package/esm/presets/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
4
|
-
import '../tslib.es6-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-18e9f3c6.js';
|
|
4
|
+
import '../tslib.es6-6afe6623.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@alfalab/core-components-skeleton/esm';
|
|
7
7
|
import '../components/option/Component.js';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '../components/base-select-mobile/checkmark/Component.js';
|
|
10
|
-
import '@alfalab/core-components/
|
|
10
|
+
import '@alfalab/core-components-badge/esm';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
13
13
|
import '../components/checkmark/Component.js';
|
|
14
14
|
import '@alfalab/core-components-checkbox/esm';
|
|
15
|
-
import '../intersection-observer-
|
|
15
|
+
import '../intersection-observer-20f7d033.js';
|
|
16
16
|
import '../components/arrow/Component.js';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
18
18
|
import 'react-merge-refs';
|
|
@@ -20,7 +20,7 @@ import 'downshift';
|
|
|
20
20
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
21
21
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
22
22
|
import '../Component.js';
|
|
23
|
-
import '../Component-
|
|
23
|
+
import '../Component-6f353469.js';
|
|
24
24
|
import '@juggle/resize-observer';
|
|
25
25
|
import '@alfalab/core-components-popover/esm';
|
|
26
26
|
import '@alfalab/hooks';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as __spreadArray, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { b as __spreadArray, a as __assign } from '../../tslib.es6-6afe6623.js';
|
|
2
2
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
4
4
|
import { Option } from '../../components/option/Component.js';
|
|
5
|
-
import '../../intersection-observer-
|
|
5
|
+
import '../../intersection-observer-20f7d033.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
8
|
-
import '@alfalab/core-components/
|
|
8
|
+
import '@alfalab/core-components-badge/esm';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
11
11
|
import '../../components/checkmark/Component.js';
|
|
12
12
|
import '@alfalab/core-components-checkbox/esm';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_uehj8"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-6afe6623.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import '../../Component-
|
|
7
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
6
|
+
import '../../Component-6f353469.js';
|
|
7
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-18e9f3c6.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '../../utils.js';
|
|
11
|
-
import '@alfalab/core-components/
|
|
11
|
+
import '@alfalab/core-components-badge/esm';
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
13
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
14
14
|
import '@alfalab/core-components-checkbox/esm';
|
|
@@ -16,7 +16,7 @@ import '../../components/options-list/Component.js';
|
|
|
16
16
|
import 'react-virtual';
|
|
17
17
|
import '@alfalab/core-components-scrollbar/esm';
|
|
18
18
|
import '@alfalab/core-components-skeleton/esm';
|
|
19
|
-
import '../../intersection-observer-
|
|
19
|
+
import '../../intersection-observer-20f7d033.js';
|
|
20
20
|
import '../../components/arrow/Component.js';
|
|
21
21
|
import '../../components/field/Component.js';
|
|
22
22
|
import '../../components/optgroup/Component.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '../../../tslib.es6-
|
|
1
|
+
import '../../../tslib.es6-6afe6623.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-button/esm';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import '../../../Component-
|
|
7
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
6
|
+
import '../../../Component-6f353469.js';
|
|
7
|
+
export { O as OptionsListWithApply } from '../../../Component-18e9f3c6.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '@alfalab/core-components/
|
|
10
|
+
import '@alfalab/core-components-badge/esm';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
13
13
|
import '@alfalab/core-components-checkbox/esm';
|
|
@@ -32,6 +32,6 @@ import '../../../components/checkmark/Component.js';
|
|
|
32
32
|
import '../../../components/base-option/Component.js';
|
|
33
33
|
import '../../../components/base-checkmark/Component.js';
|
|
34
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
-
import '../../../intersection-observer-
|
|
35
|
+
import '../../../intersection-observer-20f7d033.js';
|
|
36
36
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19muv */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
|
|
26
26
|
/* optgroup */
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__footer_z7wrv {
|
|
29
29
|
background: var(--color-light-bg-primary);
|
|
30
30
|
padding: var(--gap-s);
|
|
31
31
|
outline: none
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.select__footer_z7wrv > * + * {
|
|
34
34
|
margin-left: var(--gap-xs);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__withBorder_z7wrv {
|
|
37
37
|
box-shadow: inset 0 1px 0 var(--color-light-border-secondary);
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-18e9f3c6";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
2
|
-
import '../../../tslib.es6-
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../Component-18e9f3c6.js';
|
|
2
|
+
import '../../../tslib.es6-6afe6623.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../../components/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-6f353469.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
14
14
|
import '@alfalab/core-components-popover/esm';
|
|
15
15
|
import '@alfalab/hooks';
|
|
@@ -20,7 +20,7 @@ import '@alfalab/core-components-form-control/esm';
|
|
|
20
20
|
import '../../../components/optgroup/Component.js';
|
|
21
21
|
import '../../../components/option/Component.js';
|
|
22
22
|
import '../../../components/base-select-mobile/checkmark/Component.js';
|
|
23
|
-
import '@alfalab/core-components/
|
|
23
|
+
import '@alfalab/core-components-badge/esm';
|
|
24
24
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
25
25
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
26
26
|
import '../../../components/checkmark/Component.js';
|
|
@@ -31,7 +31,7 @@ import 'react-virtual';
|
|
|
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-20f7d033.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';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-6afe6623.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
4
4
|
import { Option } from '../../components/option/Component.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
7
|
-
import '@alfalab/core-components/
|
|
7
|
+
import '@alfalab/core-components-badge/esm';
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
10
|
import '../../components/checkmark/Component.js';
|
|
11
11
|
import '@alfalab/core-components-checkbox/esm';
|
|
12
12
|
|
|
13
|
-
var styles = {"skeleton":"
|
|
13
|
+
var styles = {"skeleton":"select__skeleton_1db6v"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
function useSelectWithLoading(_a) {
|
package/esm/responsive.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { SelectResponsive } from './Component.responsive.js';
|
|
2
|
-
import './tslib.es6-
|
|
2
|
+
import './tslib.es6-6afe6623.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import './Component.js';
|
|
6
6
|
import './components/arrow/Component.js';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
-
import './Component-
|
|
9
|
+
import './Component-6f353469.js';
|
|
10
10
|
import 'react-merge-refs';
|
|
11
11
|
import '@juggle/resize-observer';
|
|
12
12
|
import 'downshift';
|
|
@@ -18,21 +18,21 @@ import '@alfalab/core-components-form-control/esm';
|
|
|
18
18
|
import './components/optgroup/Component.js';
|
|
19
19
|
import './components/option/Component.js';
|
|
20
20
|
import './components/base-select-mobile/checkmark/Component.js';
|
|
21
|
-
import '@alfalab/core-components/
|
|
21
|
+
import '@alfalab/core-components-badge/esm';
|
|
22
22
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
23
23
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
24
24
|
import './components/checkmark/Component.js';
|
|
25
25
|
import '@alfalab/core-components-checkbox/esm';
|
|
26
26
|
import './components/options-list/Component.js';
|
|
27
27
|
import '@alfalab/core-components-scrollbar/esm';
|
|
28
|
-
import './Component-
|
|
28
|
+
import './Component-18e9f3c6.js';
|
|
29
29
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
30
30
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
31
31
|
import 'react-virtual';
|
|
32
32
|
import './components/base-option/Component.js';
|
|
33
33
|
import './components/base-checkmark/Component.js';
|
|
34
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
-
import './intersection-observer-
|
|
35
|
+
import './intersection-observer-20f7d033.js';
|
|
36
36
|
import '@alfalab/core-components-button/esm';
|
|
37
37
|
import './components/base-select-mobile/options-list/Component.js';
|
|
38
38
|
import '@alfalab/core-components-base-modal/esm';
|
|
File without changes
|
|
File without changes
|
package/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var Component = require('./Component.js');
|
|
4
4
|
var components_arrow_Component = require('./components/arrow/Component.js');
|
|
5
|
-
var components_baseSelect_Component = require('./Component-
|
|
6
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-
|
|
5
|
+
var components_baseSelect_Component = require('./Component-fcb6e20d.js');
|
|
6
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('./Component-657dc008.js');
|
|
7
7
|
var components_field_Component = require('./components/field/Component.js');
|
|
8
8
|
var components_optgroup_Component = require('./components/optgroup/Component.js');
|
|
9
9
|
var components_option_Component = require('./components/option/Component.js');
|
|
@@ -13,7 +13,7 @@ var components_baseOption_Component = require('./components/base-option/Componen
|
|
|
13
13
|
var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
|
|
14
14
|
var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
|
|
15
15
|
var utils = require('./utils.js');
|
|
16
|
-
require('./tslib.es6-
|
|
16
|
+
require('./tslib.es6-769894f2.js');
|
|
17
17
|
require('react');
|
|
18
18
|
require('classnames');
|
|
19
19
|
require('@alfalab/icons-glyph/ChevronDownMIcon');
|
|
@@ -25,7 +25,7 @@ require('@alfalab/hooks');
|
|
|
25
25
|
require('./components/native-select/Component.js');
|
|
26
26
|
require('@alfalab/core-components-form-control');
|
|
27
27
|
require('./components/base-select-mobile/checkmark/Component.js');
|
|
28
|
-
require('@alfalab/core-components
|
|
28
|
+
require('@alfalab/core-components-badge');
|
|
29
29
|
require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
30
30
|
require('@alfalab/icons-glyph/CheckmarkMIcon');
|
|
31
31
|
require('./components/checkmark/Component.js');
|
|
@@ -35,7 +35,7 @@ require('@alfalab/core-components-bottom-sheet');
|
|
|
35
35
|
require('@alfalab/core-components-modal/mobile');
|
|
36
36
|
require('react-virtual');
|
|
37
37
|
require('@alfalab/core-components-skeleton');
|
|
38
|
-
require('./intersection-observer-
|
|
38
|
+
require('./intersection-observer-7b18ccf3.js');
|
|
39
39
|
require('@alfalab/core-components-button');
|
|
40
40
|
require('./components/base-checkmark/Component.js');
|
|
41
41
|
require('./components/base-select-mobile/options-list/Component.js');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import { useMultipleSelection, useCombobox } from 'downshift';
|
|
|
6
6
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/modern';
|
|
7
7
|
import { ModalMobile } from '@alfalab/core-components-modal/modern/mobile';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import { g as getDataTestId } from './Component-
|
|
9
|
+
import { g as getDataTestId } from './Component-5eb0e464.js';
|
|
10
10
|
import { Field } from './components/field/Component.js';
|
|
11
11
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
12
12
|
import { Option } from './components/option/Component.js';
|
|
@@ -17,11 +17,11 @@ import '@alfalab/hooks';
|
|
|
17
17
|
import { processOptions } from './utils.js';
|
|
18
18
|
import { BaseOption } from './components/base-option/Component.js';
|
|
19
19
|
import '@alfalab/core-components-skeleton/modern';
|
|
20
|
-
import './intersection-observer-
|
|
20
|
+
import './intersection-observer-20f7d033.js';
|
|
21
21
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
23
23
|
import '@alfalab/core-components-form-control/modern';
|
|
24
|
-
import '@alfalab/core-components/
|
|
24
|
+
import '@alfalab/core-components-badge/modern';
|
|
25
25
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
26
26
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
27
27
|
import '@alfalab/core-components-checkbox/modern';
|
|
@@ -29,7 +29,7 @@ import { BaseCheckmark } from './components/base-checkmark/Component.js';
|
|
|
29
29
|
import { Checkmark } from './components/base-select-mobile/checkmark/Component.js';
|
|
30
30
|
import { OptionsList as OptionsList$1 } from './components/base-select-mobile/options-list/Component.js';
|
|
31
31
|
|
|
32
|
-
const styles$1 = {"footer":"
|
|
32
|
+
const styles$1 = {"footer":"select__footer_z7wrv","withBorder":"select__withBorder_z7wrv"};
|
|
33
33
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
34
34
|
|
|
35
35
|
const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$1 = OptionsList, getOptionProps: defaultGetOptionProps, showClear = true, selectedDraft = [], flatOptions = [], onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = 5, ...restProps }, ref) => {
|
|
@@ -142,7 +142,7 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
const styles = {"component":"
|
|
145
|
+
const styles = {"component":"select__component_81oqa","popoverInner":"select__popoverInner_81oqa","sheet":"select__sheet_81oqa","sheetContent":"select__sheetContent_81oqa","sheetContainer":"select__sheetContainer_81oqa","block":"select__block_81oqa","option":"select__option_81oqa","optionGroup":"select__optionGroup_81oqa"};
|
|
146
146
|
require('./components/base-select-mobile/index.css')
|
|
147
147
|
|
|
148
148
|
const BaseSelectMobile = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, optionGroupClassName, optionsListProps, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, name, id, selected, size = 'm', optionsSize = 'm', error, hint, block, label, labelView, placeholder, fieldProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, OptionsList = OptionsList$1, swipeable, footer, isBottomSheet, bottomSheetProps, }, ref) => {
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const styles = {"component":"
|
|
16
|
+
const styles = {"component":"select__component_1t2nr","popoverInner":"select__popoverInner_1t2nr","optionsList":"select__optionsList_1t2nr","nativeSelect":"select__nativeSelect_1t2nr","block":"select__block_1t2nr"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
19
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
package/modern/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
import { B as BaseSelect } from './Component-
|
|
3
|
+
import { B as BaseSelect } from './Component-5eb0e464.js';
|
|
4
4
|
import { Field } from './components/field/Component.js';
|
|
5
5
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
6
6
|
import { Option } from './components/option/Component.js';
|
|
@@ -16,7 +16,7 @@ import './utils.js';
|
|
|
16
16
|
import './components/native-select/Component.js';
|
|
17
17
|
import '@alfalab/core-components-form-control/modern';
|
|
18
18
|
import './components/base-select-mobile/checkmark/Component.js';
|
|
19
|
-
import '@alfalab/core-components/
|
|
19
|
+
import '@alfalab/core-components-badge/modern';
|
|
20
20
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
21
21
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
22
|
import './components/checkmark/Component.js';
|
|
@@ -3,10 +3,10 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
3
3
|
import { Select } from './Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import './Component-
|
|
7
|
-
import { S as SelectMobile } from './Component-
|
|
6
|
+
import './Component-5eb0e464.js';
|
|
7
|
+
import { S as SelectMobile } from './Component-1f9b947f.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/modern';
|
|
9
|
-
import '@alfalab/core-components/
|
|
9
|
+
import '@alfalab/core-components-badge/modern';
|
|
10
10
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
12
12
|
import '@alfalab/core-components-checkbox/modern';
|
|
@@ -30,7 +30,7 @@ import '@alfalab/core-components-modal/modern/mobile';
|
|
|
30
30
|
import './components/base-option/Component.js';
|
|
31
31
|
import './components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import './intersection-observer-
|
|
33
|
+
import './intersection-observer-20f7d033.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import './components/base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -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
|
-
const styles = {"arrow":"
|
|
5
|
+
const styles = {"arrow":"select__arrow_l6uxo","open":"select__open_l6uxo"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
|