@alfalab/core-components-select 17.1.2 → 17.2.0
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.responsive.js +0 -41
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/arrow/index.js +0 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-checkmark/index.js +0 -4
- package/components/base-option/Component.js +1 -3
- package/components/base-option/index.css +13 -13
- package/components/base-option/index.js +0 -6
- package/components/base-select/Component.js +3 -3
- package/components/base-select/index.css +11 -11
- package/components/base-select/index.js +0 -11
- package/components/base-select/mobile.css +12 -12
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark/index.js +0 -6
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/checkmark-mobile/index.js +0 -3
- package/components/field/Component.js +1 -1
- package/components/field/index.css +12 -12
- package/components/field/index.js +0 -6
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- package/components/footer/index.js +0 -5
- package/components/index.js +0 -25
- package/components/native-select/index.js +0 -3
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/optgroup/index.js +0 -2
- package/components/option/Component.js +1 -5
- package/components/option/index.css +19 -19
- package/components/option/index.js +0 -9
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +9 -9
- package/components/options-list/index.js +0 -10
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/search/index.js +0 -5
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +15 -15
- package/components/virtual-options-list/index.js +0 -11
- package/cssm/Component.responsive.js +0 -55
- package/cssm/components/arrow/index.js +0 -4
- package/cssm/components/base-checkmark/index.js +0 -5
- package/cssm/components/base-option/Component.js +0 -3
- package/cssm/components/base-option/index.js +0 -8
- package/cssm/components/base-select/Component.js +1 -1
- package/cssm/components/base-select/index.js +0 -13
- package/cssm/components/checkmark/index.js +0 -7
- package/cssm/components/checkmark-mobile/index.js +0 -4
- package/cssm/components/field/index.js +0 -7
- package/cssm/components/footer/index.js +0 -6
- package/cssm/components/index.js +0 -38
- package/cssm/components/native-select/index.js +0 -3
- package/cssm/components/optgroup/index.js +0 -3
- package/cssm/components/option/Component.js +0 -6
- package/cssm/components/option/index.js +0 -12
- package/cssm/components/options-list/Component.js +0 -1
- package/cssm/components/options-list/index.js +0 -12
- package/cssm/components/search/index.js +0 -6
- package/cssm/components/virtual-options-list/Component.js +0 -1
- package/cssm/components/virtual-options-list/index.js +0 -13
- package/cssm/desktop/Component.desktop.js +0 -31
- package/cssm/desktop/index.js +0 -42
- package/{hook-a12d8a76.js → cssm/hook-4aad7127.js} +1 -1
- package/cssm/index.js +0 -61
- package/cssm/mobile/Component.mobile.js +1 -41
- package/cssm/mobile/Component.modal.mobile.js +0 -54
- package/cssm/mobile/index.js +0 -56
- package/cssm/presets/index.js +1 -32
- package/cssm/presets/useLazyLoading/hook.js +0 -10
- package/cssm/presets/useSelectWithApply/hook.js +1 -17
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -14
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -20
- package/cssm/presets/useSelectWithLoading/hook.js +0 -10
- package/cssm/shared/index.js +2 -49
- package/cssm/utils.d.ts +27 -1
- package/cssm/utils.js +30 -0
- package/desktop/Component.desktop.js +0 -21
- package/desktop/index.js +0 -32
- package/esm/Component.responsive.js +0 -41
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/arrow/index.js +0 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-checkmark/index.js +0 -4
- package/esm/components/base-option/Component.js +1 -3
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-option/index.js +0 -6
- package/esm/components/base-select/Component.js +3 -3
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/index.js +0 -11
- package/esm/components/base-select/mobile.css +12 -12
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark/index.js +0 -6
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/checkmark-mobile/index.js +0 -3
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +12 -12
- package/esm/components/field/index.js +0 -6
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- package/esm/components/footer/index.js +0 -5
- package/esm/components/index.js +0 -25
- package/esm/components/native-select/index.js +0 -3
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/optgroup/index.js +0 -2
- package/esm/components/option/Component.js +1 -5
- package/esm/components/option/index.css +19 -19
- package/esm/components/option/index.js +0 -9
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +9 -9
- package/esm/components/options-list/index.js +0 -10
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/search/index.js +0 -5
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/components/virtual-options-list/index.js +0 -11
- package/esm/desktop/Component.desktop.js +0 -21
- package/esm/desktop/index.js +0 -32
- package/esm/{hook-0d643e3f.js → hook-b4192713.js} +1 -1
- package/esm/index.js +0 -47
- package/esm/mobile/Component.mobile.js +1 -27
- package/esm/mobile/Component.modal.mobile.js +0 -40
- package/esm/mobile/index.js +0 -42
- package/esm/presets/index.js +1 -24
- package/esm/presets/useLazyLoading/hook.js +0 -7
- package/esm/presets/useSelectWithApply/hook.js +1 -13
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -16
- package/esm/presets/useSelectWithLoading/hook.js +1 -8
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +2 -33
- package/esm/utils.d.ts +27 -1
- package/esm/utils.js +30 -1
- package/{cssm/hook-2f9ec939.js → hook-5269e0eb.js} +1 -1
- package/index.js +0 -47
- package/mobile/Component.mobile.js +1 -27
- package/mobile/Component.modal.mobile.js +0 -40
- package/mobile/index.js +0 -42
- package/modern/Component.responsive.js +0 -41
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/arrow/index.js +0 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-checkmark/index.js +0 -4
- package/modern/components/base-option/Component.js +1 -3
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-option/index.js +0 -5
- package/modern/components/base-select/Component.js +3 -3
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/index.js +0 -10
- package/modern/components/base-select/mobile.css +12 -12
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark/index.js +0 -6
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/checkmark-mobile/index.js +0 -3
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +12 -12
- package/modern/components/field/index.js +0 -5
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- package/modern/components/footer/index.js +0 -5
- package/modern/components/index.js +0 -24
- package/modern/components/native-select/index.js +0 -2
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/optgroup/index.js +0 -2
- package/modern/components/option/Component.js +1 -5
- package/modern/components/option/index.css +19 -19
- package/modern/components/option/index.js +0 -8
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +9 -9
- package/modern/components/options-list/index.js +0 -9
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/search/index.js +0 -4
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/components/virtual-options-list/index.js +0 -10
- package/modern/desktop/Component.desktop.js +0 -21
- package/modern/desktop/index.js +0 -31
- package/modern/{hook-e0ac0fb2.js → hook-328d58fb.js} +1 -1
- package/modern/index.js +0 -46
- package/modern/mobile/Component.mobile.js +1 -27
- package/modern/mobile/Component.modal.mobile.js +0 -40
- package/modern/mobile/index.js +0 -41
- package/modern/presets/index.js +1 -23
- package/modern/presets/useLazyLoading/hook.js +0 -7
- package/modern/presets/useSelectWithApply/hook.js +1 -13
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -15
- package/modern/presets/useSelectWithLoading/hook.js +1 -8
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +2 -32
- package/modern/utils.d.ts +27 -1
- package/modern/utils.js +30 -1
- package/package.json +6 -6
- package/presets/index.js +1 -24
- package/presets/useLazyLoading/hook.js +0 -7
- package/presets/useSelectWithApply/hook.js +1 -13
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -10
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +2 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -4
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -16
- package/presets/useSelectWithLoading/hook.js +1 -8
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +2 -32
- package/src/components/base-select/Component.tsx +1 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/Component.tsx +1 -0
- package/src/presets/useSelectWithApply/options-list-with-apply/footer/Component.tsx +15 -2
- package/src/utils.ts +33 -0
- package/utils.d.ts +27 -1
- package/utils.js +30 -0
- /package/cssm/{hook-2f9ec939.d.ts → hook-4aad7127.d.ts} +0 -0
- /package/esm/{hook-0d643e3f.d.ts → hook-b4192713.d.ts} +0 -0
- /package/{hook-a12d8a76.d.ts → hook-5269e0eb.d.ts} +0 -0
- /package/modern/{hook-e0ac0fb2.d.ts → hook-328d58fb.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1py7h */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #d5d6dc;
|
|
@@ -35,34 +35,34 @@
|
|
|
35
35
|
/* checkmark */
|
|
36
36
|
|
|
37
37
|
/* optgroup */
|
|
38
|
-
} .
|
|
38
|
+
} .select__virtualOptionsList_sd051 {
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: sticky;
|
|
43
|
-
} .
|
|
43
|
+
} .select__virtualOptionsListHeader_sd051 {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsListFooter_sd051 {
|
|
47
47
|
position: sticky;
|
|
48
48
|
bottom: 0;
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
border-top: 1px solid transparent
|
|
51
|
-
} .
|
|
51
|
+
} .select__virtualOptionsListFooter_sd051.select__withBorder_sd051 {
|
|
52
52
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
53
|
-
} .
|
|
53
|
+
} .select__scrollable_sd051 {
|
|
54
54
|
position: relative;
|
|
55
55
|
overflow: auto;
|
|
56
56
|
width: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__inner_sd051 {
|
|
58
58
|
position: relative;
|
|
59
59
|
width: 100%;
|
|
60
|
-
} .
|
|
60
|
+
} .select__virtualRow_sd051 {
|
|
61
61
|
position: absolute;
|
|
62
62
|
top: 0;
|
|
63
63
|
left: 0;
|
|
64
64
|
width: 100%
|
|
65
|
-
} .
|
|
65
|
+
} .select__virtualRow_sd051:before {
|
|
66
66
|
content: '';
|
|
67
67
|
position: absolute;
|
|
68
68
|
z-index: 1;
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
height: 1px;
|
|
73
73
|
background: var(--select-option-divider-background);
|
|
74
74
|
display: var(--select-option-divider-display);
|
|
75
|
-
} .
|
|
75
|
+
} .select__virtualRow_sd051:first-child:before {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
78
|
-
.
|
|
77
|
+
} .select__highlighted_sd051:before,
|
|
78
|
+
.select__highlighted_sd051 + .select__virtualRow_sd051:before {
|
|
79
79
|
display: none;
|
|
80
|
-
} .
|
|
80
|
+
} .select__emptyPlaceholder_sd051 {
|
|
81
81
|
padding: var(--gap-m) var(--gap-s);
|
|
82
82
|
color: var(--select-options-list-empty-placeholder-color);
|
|
83
|
-
} .
|
|
84
|
-
.
|
|
83
|
+
} .select__l_sd051 .select__emptyPlaceholder_sd051,
|
|
84
|
+
.select__xl_sd051 .select__emptyPlaceholder_sd051 {
|
|
85
85
|
padding: var(--gap-xl) var(--gap-m);
|
|
86
86
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
1
|
export { VirtualOptionsList } from './Component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-merge-refs';
|
|
5
|
-
import 'react-virtual';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '@alfalab/core-components-mq/esm';
|
|
8
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
9
|
-
import '@alfalab/core-components-shared/esm';
|
|
10
|
-
import '../../consts.js';
|
|
11
|
-
import '../../utils.js';
|
|
12
|
-
import '../optgroup/Component.js';
|
|
@@ -9,27 +9,6 @@ import { Optgroup } from '../components/optgroup/Component.js';
|
|
|
9
9
|
import { Option } from '../components/option/Component.js';
|
|
10
10
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
11
11
|
import { Search } from '../components/search/Component.js';
|
|
12
|
-
import 'classnames';
|
|
13
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
14
|
-
import 'react-merge-refs';
|
|
15
|
-
import '@juggle/resize-observer';
|
|
16
|
-
import 'compute-scroll-into-view';
|
|
17
|
-
import 'downshift';
|
|
18
|
-
import '@alfalab/core-components-shared/esm';
|
|
19
|
-
import '@alfalab/hooks';
|
|
20
|
-
import '../utils.js';
|
|
21
|
-
import '../components/native-select/Component.js';
|
|
22
|
-
import '../components/checkmark/Component.js';
|
|
23
|
-
import '@alfalab/core-components-badge/esm';
|
|
24
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
25
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
26
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
27
|
-
import '../components/checkmark-mobile/Component.js';
|
|
28
|
-
import '@alfalab/core-components-mq/esm';
|
|
29
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
30
|
-
import '../consts.js';
|
|
31
|
-
import '@alfalab/core-components-input/esm';
|
|
32
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
33
12
|
|
|
34
13
|
var SelectDesktop = forwardRef(function (_a, ref) {
|
|
35
14
|
var _b = _a.Arrow, Arrow$1 = _b === void 0 ? Arrow : _b, _c = _a.Field, Field$1 = _c === void 0 ? Field : _c, _d = _a.OptionsList, OptionsList$1 = _d === void 0 ? OptionsList : _d, _e = _a.Optgroup, Optgroup$1 = _e === void 0 ? Optgroup : _e, _f = _a.Option, Option$1 = _f === void 0 ? Option : _f, _g = _a.Search, Search$1 = _g === void 0 ? Search : _g, _h = _a.fieldProps, fieldProps = _h === void 0 ? {} : _h, restProps = __rest(_a, ["Arrow", "Field", "OptionsList", "Optgroup", "Option", "Search", "fieldProps"]);
|
package/esm/desktop/index.js
CHANGED
|
@@ -1,33 +1 @@
|
|
|
1
1
|
export { SelectDesktop } from './Component.desktop.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@alfalab/core-components-form-control/esm/desktop';
|
|
5
|
-
import '@alfalab/core-components-popover/esm';
|
|
6
|
-
import '../components/arrow/Component.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
9
|
-
import '../components/base-select/Component.js';
|
|
10
|
-
import 'react-merge-refs';
|
|
11
|
-
import '@juggle/resize-observer';
|
|
12
|
-
import 'compute-scroll-into-view';
|
|
13
|
-
import 'downshift';
|
|
14
|
-
import '@alfalab/core-components-shared/esm';
|
|
15
|
-
import '@alfalab/hooks';
|
|
16
|
-
import '../utils.js';
|
|
17
|
-
import '../components/native-select/Component.js';
|
|
18
|
-
import '../components/field/Component.js';
|
|
19
|
-
import '../components/optgroup/Component.js';
|
|
20
|
-
import '../components/option/Component.js';
|
|
21
|
-
import '../components/checkmark/Component.js';
|
|
22
|
-
import '@alfalab/core-components-badge/esm';
|
|
23
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
24
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
25
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
26
|
-
import '../components/checkmark-mobile/Component.js';
|
|
27
|
-
import '../components/options-list/Component.js';
|
|
28
|
-
import '@alfalab/core-components-mq/esm';
|
|
29
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
30
|
-
import '../consts.js';
|
|
31
|
-
import '../components/search/Component.js';
|
|
32
|
-
import '@alfalab/core-components-input/esm';
|
|
33
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
@@ -43,7 +43,7 @@ var OptionsListWithApply = forwardRef(function (_a, ref) {
|
|
|
43
43
|
header,
|
|
44
44
|
showHeaderWithSelectAll && React.createElement(Header$1, __assign({}, headerProps))));
|
|
45
45
|
};
|
|
46
|
-
return (React.createElement(OptionsList$1, __assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React.createElement(Footer$1, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft }) })));
|
|
46
|
+
return (React.createElement(OptionsList$1, __assign({}, restProps, { ref: ref, visibleOptions: visibleOptions, toggleMenu: toggleMenu, flatOptions: flatOptions, getOptionProps: getOptionProps, onApply: handleApply, onClear: handleClear, header: renderHeader(), footer: React.createElement(Footer$1, { handleApply: handleApply, handleClear: handleClear, showClear: showClear, selectedDraft: selectedDraft, dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }) })));
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
var SELECT_ALL_KEY = 'select_all';
|
package/esm/index.js
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
1
|
export { SelectResponsive as Select } from './Component.responsive.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@alfalab/core-components-mq/esm';
|
|
5
|
-
import './desktop/Component.desktop.js';
|
|
6
|
-
import '@alfalab/core-components-form-control/esm/desktop';
|
|
7
|
-
import '@alfalab/core-components-popover/esm';
|
|
8
|
-
import './components/arrow/Component.js';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
11
|
-
import './components/base-select/Component.js';
|
|
12
|
-
import 'react-merge-refs';
|
|
13
|
-
import '@juggle/resize-observer';
|
|
14
|
-
import 'compute-scroll-into-view';
|
|
15
|
-
import 'downshift';
|
|
16
|
-
import '@alfalab/core-components-shared/esm';
|
|
17
|
-
import '@alfalab/hooks';
|
|
18
|
-
import './utils.js';
|
|
19
|
-
import './components/native-select/Component.js';
|
|
20
|
-
import './components/field/Component.js';
|
|
21
|
-
import './components/optgroup/Component.js';
|
|
22
|
-
import './components/option/Component.js';
|
|
23
|
-
import './components/checkmark/Component.js';
|
|
24
|
-
import '@alfalab/core-components-badge/esm';
|
|
25
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
26
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
27
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
28
|
-
import './components/checkmark-mobile/Component.js';
|
|
29
|
-
import './components/options-list/Component.js';
|
|
30
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
31
|
-
import './consts.js';
|
|
32
|
-
import './components/search/Component.js';
|
|
33
|
-
import '@alfalab/core-components-input/esm';
|
|
34
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
35
|
-
import './mobile/Component.mobile.js';
|
|
36
|
-
import '@alfalab/core-components-bottom-sheet/esm';
|
|
37
|
-
import '@alfalab/core-components-form-control/esm/mobile';
|
|
38
|
-
import '@alfalab/core-components-modal/esm/mobile';
|
|
39
|
-
import './components/footer/Component.js';
|
|
40
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
41
|
-
import '@alfalab/core-components-button/esm/mobile';
|
|
42
|
-
import './components/virtual-options-list/Component.js';
|
|
43
|
-
import 'react-virtual';
|
|
44
|
-
import './hook-0d643e3f.js';
|
|
45
|
-
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
46
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
47
|
-
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
48
|
-
import './mobile/Component.modal.mobile.js';
|
|
@@ -12,34 +12,8 @@ import { Option } from '../components/option/Component.js';
|
|
|
12
12
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
13
13
|
import { Search } from '../components/search/Component.js';
|
|
14
14
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
15
|
-
import { u as useSelectWithApply } from '../hook-
|
|
15
|
+
import { u as useSelectWithApply } from '../hook-b4192713.js';
|
|
16
16
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
17
|
-
import 'classnames';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
19
|
-
import 'react-merge-refs';
|
|
20
|
-
import '@juggle/resize-observer';
|
|
21
|
-
import 'compute-scroll-into-view';
|
|
22
|
-
import 'downshift';
|
|
23
|
-
import '@alfalab/core-components-shared/esm';
|
|
24
|
-
import '@alfalab/hooks';
|
|
25
|
-
import '../utils.js';
|
|
26
|
-
import '../components/native-select/Component.js';
|
|
27
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
28
|
-
import '@alfalab/core-components-button/esm/mobile';
|
|
29
|
-
import '../components/checkmark/Component.js';
|
|
30
|
-
import '@alfalab/core-components-badge/esm';
|
|
31
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
32
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
33
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
34
|
-
import '../components/checkmark-mobile/Component.js';
|
|
35
|
-
import '@alfalab/core-components-mq/esm';
|
|
36
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
37
|
-
import '../consts.js';
|
|
38
|
-
import '@alfalab/core-components-input/esm';
|
|
39
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
40
|
-
import 'react-virtual';
|
|
41
|
-
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
42
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
43
17
|
|
|
44
18
|
var VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
|
45
19
|
var SelectMobile = forwardRef(function (_a, ref) {
|
|
@@ -1,46 +1,6 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { SelectMobile } from './Component.mobile.js';
|
|
4
|
-
import '@alfalab/core-components-bottom-sheet/esm';
|
|
5
|
-
import '@alfalab/core-components-form-control/esm/mobile';
|
|
6
|
-
import '@alfalab/core-components-modal/esm/mobile';
|
|
7
|
-
import '../components/arrow/Component.js';
|
|
8
|
-
import 'classnames';
|
|
9
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
10
|
-
import '../components/base-select/Component.js';
|
|
11
|
-
import 'react-merge-refs';
|
|
12
|
-
import '@juggle/resize-observer';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
|
-
import 'downshift';
|
|
15
|
-
import '@alfalab/core-components-shared/esm';
|
|
16
|
-
import '@alfalab/hooks';
|
|
17
|
-
import '../utils.js';
|
|
18
|
-
import '../components/native-select/Component.js';
|
|
19
|
-
import '../components/field/Component.js';
|
|
20
|
-
import '../components/footer/Component.js';
|
|
21
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
22
|
-
import '@alfalab/core-components-button/esm/mobile';
|
|
23
|
-
import '../components/optgroup/Component.js';
|
|
24
|
-
import '../components/option/Component.js';
|
|
25
|
-
import '../components/checkmark/Component.js';
|
|
26
|
-
import '@alfalab/core-components-badge/esm';
|
|
27
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
28
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
29
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
30
|
-
import '../components/checkmark-mobile/Component.js';
|
|
31
|
-
import '../components/options-list/Component.js';
|
|
32
|
-
import '@alfalab/core-components-mq/esm';
|
|
33
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
34
|
-
import '../consts.js';
|
|
35
|
-
import '../components/search/Component.js';
|
|
36
|
-
import '@alfalab/core-components-input/esm';
|
|
37
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
38
|
-
import '../components/virtual-options-list/Component.js';
|
|
39
|
-
import 'react-virtual';
|
|
40
|
-
import '../hook-0d643e3f.js';
|
|
41
|
-
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
42
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
43
|
-
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
44
4
|
|
|
45
5
|
var SelectModalMobile = forwardRef(function (props, ref) { return (React.createElement(SelectMobile, __assign({}, props, { isBottomSheet: false, ref: ref }))); });
|
|
46
6
|
|
package/esm/mobile/index.js
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
1
|
export { SelectMobile } from './Component.mobile.js';
|
|
2
2
|
export { SelectModalMobile } from './Component.modal.mobile.js';
|
|
3
|
-
import 'tslib';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '@alfalab/core-components-bottom-sheet/esm';
|
|
6
|
-
import '@alfalab/core-components-form-control/esm/mobile';
|
|
7
|
-
import '@alfalab/core-components-modal/esm/mobile';
|
|
8
|
-
import '../components/arrow/Component.js';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
11
|
-
import '../components/base-select/Component.js';
|
|
12
|
-
import 'react-merge-refs';
|
|
13
|
-
import '@juggle/resize-observer';
|
|
14
|
-
import 'compute-scroll-into-view';
|
|
15
|
-
import 'downshift';
|
|
16
|
-
import '@alfalab/core-components-shared/esm';
|
|
17
|
-
import '@alfalab/hooks';
|
|
18
|
-
import '../utils.js';
|
|
19
|
-
import '../components/native-select/Component.js';
|
|
20
|
-
import '../components/field/Component.js';
|
|
21
|
-
import '../components/footer/Component.js';
|
|
22
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
23
|
-
import '@alfalab/core-components-button/esm/mobile';
|
|
24
|
-
import '../components/optgroup/Component.js';
|
|
25
|
-
import '../components/option/Component.js';
|
|
26
|
-
import '../components/checkmark/Component.js';
|
|
27
|
-
import '@alfalab/core-components-badge/esm';
|
|
28
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
29
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
30
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
31
|
-
import '../components/checkmark-mobile/Component.js';
|
|
32
|
-
import '../components/options-list/Component.js';
|
|
33
|
-
import '@alfalab/core-components-mq/esm';
|
|
34
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
35
|
-
import '../consts.js';
|
|
36
|
-
import '../components/search/Component.js';
|
|
37
|
-
import '@alfalab/core-components-input/esm';
|
|
38
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
|
39
|
-
import '../components/virtual-options-list/Component.js';
|
|
40
|
-
import 'react-virtual';
|
|
41
|
-
import '../hook-0d643e3f.js';
|
|
42
|
-
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
43
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
44
|
-
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
package/esm/presets/index.js
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
4
|
-
import 'tslib';
|
|
5
|
-
import 'react';
|
|
6
|
-
import '@alfalab/core-components-skeleton/esm';
|
|
7
|
-
import '../components/option/Component.js';
|
|
8
|
-
import 'classnames';
|
|
9
|
-
import '../components/checkmark/Component.js';
|
|
10
|
-
import '@alfalab/core-components-badge/esm';
|
|
11
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
12
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
14
|
-
import '../components/checkmark-mobile/Component.js';
|
|
15
|
-
import 'intersection-observer';
|
|
16
|
-
import '../utils.js';
|
|
17
|
-
import '../components/options-list/Component.js';
|
|
18
|
-
import 'react-merge-refs';
|
|
19
|
-
import '@alfalab/core-components-mq/esm';
|
|
20
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
21
|
-
import '@alfalab/core-components-shared/esm';
|
|
22
|
-
import '../consts.js';
|
|
23
|
-
import '../components/optgroup/Component.js';
|
|
24
|
-
import './useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
25
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
26
|
-
import './useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-b4192713.js';
|
|
@@ -3,13 +3,6 @@ import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'reac
|
|
|
3
3
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
4
4
|
import { Option } from '../../components/option/Component.js';
|
|
5
5
|
import 'intersection-observer';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../../components/checkmark/Component.js';
|
|
8
|
-
import '@alfalab/core-components-badge/esm';
|
|
9
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
10
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
12
|
-
import '../../components/checkmark-mobile/Component.js';
|
|
13
6
|
|
|
14
7
|
var DEBOUNCE_TIMEOUT = 300;
|
|
15
8
|
var actions = {
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../utils.js';
|
|
4
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-
|
|
5
|
-
import '../../components/options-list/Component.js';
|
|
6
|
-
import 'react-merge-refs';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/core-components-mq/esm';
|
|
9
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
10
|
-
import '@alfalab/core-components-shared/esm';
|
|
11
|
-
import '../../consts.js';
|
|
12
|
-
import '../../components/optgroup/Component.js';
|
|
13
|
-
import './options-list-with-apply/footer/Component.js';
|
|
14
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
15
|
-
import './options-list-with-apply/header/Component.js';
|
|
16
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
4
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-b4192713.js';
|
|
@@ -2,15 +2,6 @@ import 'tslib';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../components/options-list/Component.js';
|
|
4
4
|
import '../../../consts.js';
|
|
5
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
5
|
+
export { O as OptionsListWithApply } from '../../../hook-b4192713.js';
|
|
6
6
|
import './footer/Component.js';
|
|
7
7
|
import './header/Component.js';
|
|
8
|
-
import 'react-merge-refs';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/core-components-mq/esm';
|
|
11
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
12
|
-
import '@alfalab/core-components-shared/esm';
|
|
13
|
-
import '../../../utils.js';
|
|
14
|
-
import '../../../components/optgroup/Component.js';
|
|
15
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
16
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
@@ -6,6 +6,7 @@ type FooterProps = {
|
|
|
6
6
|
handleApply?: () => void;
|
|
7
7
|
showClear?: boolean;
|
|
8
8
|
selectedDraft?: OptionShape[];
|
|
9
|
+
dataTestId?: string;
|
|
9
10
|
};
|
|
10
|
-
declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft, }: FooterProps) => React.JSX.Element;
|
|
11
|
+
declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft, dataTestId, }: FooterProps) => React.JSX.Element;
|
|
11
12
|
export { FooterProps, Footer };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';
|
|
3
|
+
import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
3
4
|
|
|
4
|
-
var styles = {"footer":"
|
|
5
|
+
var styles = {"footer":"select__footer_1lhq3"};
|
|
5
6
|
require('./index.css')
|
|
6
7
|
|
|
7
8
|
var Footer = function (_a) {
|
|
8
|
-
var handleApply = _a.handleApply, handleClear = _a.handleClear, showClear = _a.showClear, _b = _a.selectedDraft, selectedDraft = _b === void 0 ? [] : _b;
|
|
9
|
+
var handleApply = _a.handleApply, handleClear = _a.handleClear, showClear = _a.showClear, _b = _a.selectedDraft, selectedDraft = _b === void 0 ? [] : _b, dataTestId = _a.dataTestId;
|
|
9
10
|
return (React.createElement("div", {
|
|
10
11
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
11
12
|
tabIndex: 0, className: styles.footer },
|
|
12
|
-
React.createElement(ButtonDesktop, { size: 'xxs', view: 'primary', onClick: handleApply }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
|
|
13
|
-
showClear && selectedDraft.length > 0 && (React.createElement(ButtonDesktop, { size: 'xxs', view: 'secondary', onClick: handleClear }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))));
|
|
13
|
+
React.createElement(ButtonDesktop, { size: 'xxs', view: 'primary', onClick: handleApply, dataTestId: getDataTestId(dataTestId, 'apply') }, "\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C"),
|
|
14
|
+
showClear && selectedDraft.length > 0 && (React.createElement(ButtonDesktop, { size: 'xxs', view: 'secondary', onClick: handleClear, dataTestId: getDataTestId(dataTestId, 'clear') }, "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C"))));
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export { Footer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: k1tdv */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-s: 12px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .
|
|
20
|
+
} .select__footer_1lhq3 {
|
|
21
21
|
background-color: var(--color-light-bg-primary);
|
|
22
22
|
padding: var(--gap-s);
|
|
23
23
|
outline: none
|
|
24
|
-
} .
|
|
24
|
+
} .select__footer_1lhq3 > * + * {
|
|
25
25
|
margin-left: var(--gap-xs);
|
|
26
26
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"desktop":"
|
|
5
|
+
var styles = {"desktop":"select__desktop_boj2v","mobile":"select__mobile_boj2v"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12dlh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
--gap-s: 12px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .select__desktop_boj2v {
|
|
20
20
|
padding: var(--gap-s);
|
|
21
|
-
} .
|
|
21
|
+
} .select__mobile_boj2v {
|
|
22
22
|
padding: var(--gap-s) var(--gap-xs);
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-b4192713";
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../../utils.js';
|
|
5
|
-
import '../../../components/options-list/Component.js';
|
|
6
|
-
import 'react-merge-refs';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/core-components-mq/esm';
|
|
9
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
10
|
-
import '@alfalab/core-components-shared/esm';
|
|
11
|
-
import '../../../consts.js';
|
|
12
|
-
import '../../../components/optgroup/Component.js';
|
|
13
|
-
import './footer/Component.js';
|
|
14
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
15
|
-
import './header/Component.js';
|
|
16
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../hook-b4192713.js';
|
|
@@ -2,15 +2,8 @@ import { __assign } from 'tslib';
|
|
|
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
|
-
import 'classnames';
|
|
6
|
-
import '../../components/checkmark/Component.js';
|
|
7
|
-
import '@alfalab/core-components-badge/esm';
|
|
8
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
9
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
10
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
11
|
-
import '../../components/checkmark-mobile/Component.js';
|
|
12
5
|
|
|
13
|
-
var styles = {"skeleton":"
|
|
6
|
+
var styles = {"skeleton":"select__skeleton_afn0z"};
|
|
14
7
|
require('./index.css')
|
|
15
8
|
|
|
16
9
|
function useSelectWithLoading(_a) {
|
package/esm/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
4
|
-
export { defaultAccessor, defaultFilterFn, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-b4192713.js';
|
|
4
|
+
export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
|
|
5
5
|
export { Option } from '../components/option/Component.js';
|
|
6
6
|
export { BaseOption } from '../components/base-option/Component.js';
|
|
7
7
|
export { OptionsList } from '../components/options-list/Component.js';
|
|
@@ -12,34 +12,3 @@ export { BaseSelect } from '../components/base-select/Component.js';
|
|
|
12
12
|
export { Optgroup } from '../components/optgroup/Component.js';
|
|
13
13
|
export { Footer } from '../components/footer/Component.js';
|
|
14
14
|
export { Search } from '../components/search/Component.js';
|
|
15
|
-
import 'tslib';
|
|
16
|
-
import 'react';
|
|
17
|
-
import '@alfalab/core-components-skeleton/esm';
|
|
18
|
-
import 'intersection-observer';
|
|
19
|
-
import '../consts.js';
|
|
20
|
-
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
21
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
22
|
-
import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
23
|
-
import 'classnames';
|
|
24
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
25
|
-
import '../components/checkmark/Component.js';
|
|
26
|
-
import '@alfalab/core-components-badge/esm';
|
|
27
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
28
|
-
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
29
|
-
import '../components/checkmark-mobile/Component.js';
|
|
30
|
-
import '../components/base-checkmark/Component.js';
|
|
31
|
-
import 'react-merge-refs';
|
|
32
|
-
import '@alfalab/core-components-mq/esm';
|
|
33
|
-
import '@alfalab/core-components-scrollbar/esm';
|
|
34
|
-
import '@alfalab/core-components-shared/esm';
|
|
35
|
-
import 'react-virtual';
|
|
36
|
-
import '@alfalab/hooks';
|
|
37
|
-
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
38
|
-
import '@juggle/resize-observer';
|
|
39
|
-
import 'compute-scroll-into-view';
|
|
40
|
-
import 'downshift';
|
|
41
|
-
import '../components/native-select/Component.js';
|
|
42
|
-
import '@alfalab/core-components-base-modal/esm';
|
|
43
|
-
import '@alfalab/core-components-button/esm/mobile';
|
|
44
|
-
import '@alfalab/core-components-input/esm';
|
|
45
|
-
import '@alfalab/icons-glyph/MagnifierMIcon';
|
package/esm/utils.d.ts
CHANGED
|
@@ -38,4 +38,30 @@ declare function defaultFilterFn(optionText: string, search: string): boolean;
|
|
|
38
38
|
declare function defaultAccessor(option: OptionShape): string;
|
|
39
39
|
declare function usePrevious<T>(value: T): T | undefined;
|
|
40
40
|
declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
|
|
41
|
-
|
|
41
|
+
declare function getSelectTestIds(dataTestId: string): {
|
|
42
|
+
select: string;
|
|
43
|
+
option: string;
|
|
44
|
+
optionsList: string;
|
|
45
|
+
clearButton: string;
|
|
46
|
+
applyButton: string;
|
|
47
|
+
field: string;
|
|
48
|
+
fieldFormControl: string;
|
|
49
|
+
fieldLeftAddons: string;
|
|
50
|
+
fieldRightAddons: string;
|
|
51
|
+
fieldError: string;
|
|
52
|
+
fieldHint: string;
|
|
53
|
+
searchInput: string;
|
|
54
|
+
searchFormControl: string;
|
|
55
|
+
searchInner: string;
|
|
56
|
+
searchLeftAddons: string;
|
|
57
|
+
searchRightAddons: string;
|
|
58
|
+
searchError: string;
|
|
59
|
+
searchHint: string;
|
|
60
|
+
bottomSheet: string;
|
|
61
|
+
bottomSheetHeader: string;
|
|
62
|
+
bottomSheetContent: string;
|
|
63
|
+
modal: string;
|
|
64
|
+
modalHeader: string;
|
|
65
|
+
modalContent: string;
|
|
66
|
+
};
|
|
67
|
+
export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf, getSelectTestIds };
|