@alfalab/core-components-select 14.1.2 → 14.3.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-3885b0d7.d.ts +1 -1
- package/{Component-00c64376.d.ts → Component-3eb05f44.d.ts} +48 -1
- package/{Component-00c64376.js → Component-3eb05f44.js} +26 -20
- package/Component.js +1 -1
- package/Component.mobile-b2c0420d.d.ts +93 -0
- package/Component.responsive.js +4 -3
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +2 -2
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +8 -8
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.d.ts +24 -0
- package/components/base-select-mobile/Component.js +25 -7
- package/components/base-select-mobile/footer/Component.js +3 -3
- package/components/base-select-mobile/footer/index.css +5 -5
- package/components/base-select-mobile/index.css +10 -10
- package/components/base-select-mobile/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/field/Component.js +1 -1
- package/components/field/index.css +9 -9
- package/components/index.js +5 -4
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +2 -2
- package/components/option/index.css +20 -20
- package/components/options-list/Component.js +3 -3
- package/components/options-list/index.css +9 -9
- package/components/select-mobile/Component.js +4 -3
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +4 -3
- package/components/select-modal-mobile/Component.js +4 -3
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +4 -3
- package/components/virtual-options-list/Component.js +4 -4
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/Component-3885b0d7.d.ts +1 -1
- package/{modern/Component-0b711513.d.ts → cssm/Component-4727d474.d.ts} +48 -1
- package/cssm/{Component-f86f43e3.js → Component-4727d474.js} +25 -19
- package/cssm/Component.mobile-b2c0420d.d.ts +93 -0
- package/cssm/Component.responsive.js +3 -1
- package/cssm/components/base-option/Component.js +1 -1
- package/cssm/components/base-select-mobile/Component.d.ts +24 -0
- package/cssm/components/base-select-mobile/Component.js +23 -5
- package/cssm/components/base-select-mobile/footer/Component.js +2 -2
- package/cssm/components/index.js +4 -2
- package/cssm/components/option/Component.js +1 -1
- package/cssm/components/options-list/Component.js +2 -2
- package/cssm/components/select-mobile/Component.js +3 -1
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +3 -1
- package/cssm/components/select-modal-mobile/Component.js +3 -1
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +3 -1
- package/cssm/components/virtual-options-list/Component.js +3 -3
- package/{esm/hook-4b555174.d.ts → cssm/hook-b4e70cb0.d.ts} +15 -4
- package/cssm/index.js +4 -2
- package/cssm/mobile.d.ts +4 -0
- package/cssm/mobile.js +67 -0
- package/cssm/presets/index.d.ts +1 -1
- package/cssm/presets/index.js +3 -1
- package/cssm/presets/useSelectWithApply/hook.js +3 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +0 -9
- package/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +23 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +22 -0
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -1
- package/cssm/responsive.js +3 -1
- package/esm/Component-3885b0d7.d.ts +1 -1
- package/{cssm/Component-f86f43e3.d.ts → esm/Component-b436aedf.d.ts} +48 -1
- package/esm/{Component-2ff63ae2.js → Component-b436aedf.js} +26 -20
- package/esm/Component.js +1 -1
- package/esm/Component.mobile-b2c0420d.d.ts +93 -0
- package/esm/Component.responsive.js +4 -3
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +2 -2
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +8 -8
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.d.ts +24 -0
- package/esm/components/base-select-mobile/Component.js +26 -8
- package/esm/components/base-select-mobile/footer/Component.js +3 -3
- package/esm/components/base-select-mobile/footer/index.css +5 -5
- package/esm/components/base-select-mobile/index.css +10 -10
- package/esm/components/base-select-mobile/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +9 -9
- package/esm/components/index.js +5 -4
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +2 -2
- package/esm/components/option/index.css +20 -20
- package/esm/components/options-list/Component.js +3 -3
- package/esm/components/options-list/index.css +9 -9
- package/esm/components/select-mobile/Component.js +4 -3
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +4 -3
- package/esm/components/select-modal-mobile/Component.js +4 -3
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +4 -3
- package/esm/components/virtual-options-list/Component.js +4 -4
- package/esm/components/virtual-options-list/index.css +15 -15
- package/{cssm/hook-4b555174.d.ts → esm/hook-b4e70cb0.d.ts} +15 -4
- package/esm/index-3885b0d7.d.ts +1 -1
- package/esm/index.js +5 -4
- package/esm/mobile.d.ts +4 -0
- package/esm/mobile.js +41 -0
- package/esm/presets/index.d.ts +1 -1
- package/esm/presets/index.js +4 -3
- package/esm/presets/useLazyLoading/hook.js +2 -2
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +4 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -12
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +15 -0
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +23 -0
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +4 -3
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +4 -3
- package/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +15 -4
- package/index-3885b0d7.d.ts +1 -1
- package/index.js +5 -4
- package/mobile.d.ts +4 -0
- package/mobile.js +50 -0
- package/modern/Component-3885b0d7.d.ts +1 -1
- package/{esm/Component-2ff63ae2.d.ts → modern/Component-c22703bb.d.ts} +48 -1
- package/modern/{Component-0b711513.js → Component-c22703bb.js} +31 -17
- package/modern/Component.js +1 -1
- package/modern/Component.mobile-b2c0420d.d.ts +93 -0
- package/modern/Component.responsive.js +4 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +2 -2
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +2 -2
- package/modern/components/base-select/index.css +8 -8
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.d.ts +24 -0
- package/modern/components/base-select-mobile/Component.js +20 -7
- package/modern/components/base-select-mobile/footer/Component.js +3 -3
- package/modern/components/base-select-mobile/footer/index.css +5 -5
- package/modern/components/base-select-mobile/index.css +10 -10
- package/modern/components/base-select-mobile/index.js +1 -1
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +5 -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/options-list/Component.js +3 -3
- package/modern/components/options-list/index.css +9 -9
- package/modern/components/select-mobile/Component.js +4 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +4 -3
- package/modern/components/select-modal-mobile/Component.js +4 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +4 -3
- package/modern/components/virtual-options-list/Component.js +3 -3
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/{hook-4b555174.d.ts → hook-b4e70cb0.d.ts} +15 -4
- package/modern/index-3885b0d7.d.ts +1 -1
- package/modern/index.js +5 -4
- package/modern/mobile.d.ts +4 -0
- package/modern/mobile.js +40 -0
- package/modern/presets/index.d.ts +1 -1
- package/modern/presets/index.js +4 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +4 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -12
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +11 -0
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +23 -0
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +4 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +4 -3
- package/package.json +6 -6
- package/presets/index.d.ts +1 -1
- package/presets/index.js +4 -3
- package/presets/useLazyLoading/hook.js +2 -2
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +4 -3
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -3
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -12
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +24 -0
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +23 -0
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +4 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +4 -3
- /package/esm/{getDataTestId-d8d91b2e.d.ts → getDataTestId-416fe68c.d.ts} +0 -0
- /package/esm/{getDataTestId-d8d91b2e.js → getDataTestId-416fe68c.js} +0 -0
- /package/esm/{intersection-observer-210062db.d.ts → intersection-observer-71fc11ef.d.ts} +0 -0
- /package/esm/{intersection-observer-210062db.js → intersection-observer-71fc11ef.js} +0 -0
- /package/{getDataTestId-d8391785.d.ts → getDataTestId-e8d9eb23.d.ts} +0 -0
- /package/{getDataTestId-d8391785.js → getDataTestId-e8d9eb23.js} +0 -0
- /package/{intersection-observer-131fbe35.d.ts → intersection-observer-c227d471.d.ts} +0 -0
- /package/{intersection-observer-131fbe35.js → intersection-observer-c227d471.js} +0 -0
- /package/modern/{getDataTestId-b301a7a9.d.ts → getDataTestId-03736ddc.d.ts} +0 -0
- /package/modern/{getDataTestId-b301a7a9.js → getDataTestId-03736ddc.js} +0 -0
- /package/modern/{intersection-observer-210062db.d.ts → intersection-observer-71fc11ef.d.ts} +0 -0
- /package/modern/{intersection-observer-210062db.js → intersection-observer-71fc11ef.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1541y */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
/* checkmark */
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
|
-
} .
|
|
32
|
+
} .select__optionsList_1iyoz {
|
|
33
33
|
width: 100%;
|
|
34
34
|
outline: none;
|
|
35
35
|
box-sizing: border-box;
|
|
36
36
|
position: relative;
|
|
37
|
-
} .
|
|
37
|
+
} .select__optionsListHeader_1iyoz {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
40
|
-
} .
|
|
40
|
+
} .select__optionsListFooter_1iyoz {
|
|
41
41
|
position: sticky;
|
|
42
42
|
bottom: 0;
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
border-top: 1px solid transparent
|
|
45
|
-
} .
|
|
45
|
+
} .select__optionsListFooter_1iyoz.select__withBorder_1iyoz {
|
|
46
46
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
47
|
-
} .
|
|
47
|
+
} .select__scrollable_1iyoz {
|
|
48
48
|
overflow: auto;
|
|
49
49
|
width: 100%;
|
|
50
|
-
} .
|
|
50
|
+
} .select__emptyPlaceholder_1iyoz {
|
|
51
51
|
padding: var(--gap-m) var(--gap-s);
|
|
52
52
|
color: var(--select-options-list-empty-placeholder-color);
|
|
53
|
-
} .
|
|
54
|
-
.
|
|
53
|
+
} .select__l_1iyoz .select__emptyPlaceholder_1iyoz,
|
|
54
|
+
.select__xl_1iyoz .select__emptyPlaceholder_1iyoz {
|
|
55
55
|
padding: var(--gap-xl) var(--gap-m);
|
|
56
56
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { S as SelectMobile } from '../../Component-
|
|
3
|
+
export { S as SelectMobile } from '../../Component-b436aedf.js';
|
|
4
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
4
5
|
import '../arrow/Component.js';
|
|
5
6
|
import '../base-select-mobile/Component.js';
|
|
6
7
|
import '../base-select-mobile/footer/Component.js';
|
|
@@ -17,7 +18,7 @@ import 'classnames';
|
|
|
17
18
|
import 'downshift';
|
|
18
19
|
import '@alfalab/core-components-popover/esm';
|
|
19
20
|
import '@alfalab/hooks';
|
|
20
|
-
import '../../getDataTestId-
|
|
21
|
+
import '../../getDataTestId-416fe68c.js';
|
|
21
22
|
import '../../utils.js';
|
|
22
23
|
import '../native-select/Component.js';
|
|
23
24
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -31,7 +32,7 @@ import '../checkmark-mobile/Component.js';
|
|
|
31
32
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
33
|
import '../../consts.js';
|
|
33
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-
|
|
35
|
+
import '../../intersection-observer-71fc11ef.js';
|
|
35
36
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
36
37
|
import '@alfalab/core-components-button/esm';
|
|
37
38
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-b436aedf";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
1
|
+
export { S as SelectMobile } from '../../Component-b436aedf.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../Component.js';
|
|
@@ -11,7 +11,7 @@ import '@juggle/resize-observer';
|
|
|
11
11
|
import 'downshift';
|
|
12
12
|
import '@alfalab/core-components-popover/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import '../../getDataTestId-
|
|
14
|
+
import '../../getDataTestId-416fe68c.js';
|
|
15
15
|
import '../../utils.js';
|
|
16
16
|
import '../native-select/Component.js';
|
|
17
17
|
import '../field/Component.js';
|
|
@@ -27,6 +27,7 @@ import '../checkmark-mobile/Component.js';
|
|
|
27
27
|
import '../options-list/Component.js';
|
|
28
28
|
import '@alfalab/core-components-scrollbar/esm';
|
|
29
29
|
import '../../consts.js';
|
|
30
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
30
31
|
import '../base-select-mobile/Component.js';
|
|
31
32
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
32
33
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -36,5 +37,5 @@ import '@alfalab/core-components-button/esm';
|
|
|
36
37
|
import '../virtual-options-list/Component.js';
|
|
37
38
|
import 'react-virtual';
|
|
38
39
|
import '@alfalab/core-components-skeleton/esm';
|
|
39
|
-
import '../../intersection-observer-
|
|
40
|
+
import '../../intersection-observer-71fc11ef.js';
|
|
40
41
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
3
|
+
export { a as SelectModalMobile } from '../../Component-b436aedf.js';
|
|
4
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
4
5
|
import '../arrow/Component.js';
|
|
5
6
|
import '../base-select-mobile/Component.js';
|
|
6
7
|
import '../base-select-mobile/footer/Component.js';
|
|
@@ -17,7 +18,7 @@ import 'classnames';
|
|
|
17
18
|
import 'downshift';
|
|
18
19
|
import '@alfalab/core-components-popover/esm';
|
|
19
20
|
import '@alfalab/hooks';
|
|
20
|
-
import '../../getDataTestId-
|
|
21
|
+
import '../../getDataTestId-416fe68c.js';
|
|
21
22
|
import '../../utils.js';
|
|
22
23
|
import '../native-select/Component.js';
|
|
23
24
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -31,7 +32,7 @@ import '../checkmark-mobile/Component.js';
|
|
|
31
32
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
33
|
import '../../consts.js';
|
|
33
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-
|
|
35
|
+
import '../../intersection-observer-71fc11ef.js';
|
|
35
36
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
36
37
|
import '@alfalab/core-components-button/esm';
|
|
37
38
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-b436aedf";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
1
|
+
export { a as SelectModalMobile } from '../../Component-b436aedf.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../Component.js';
|
|
@@ -11,7 +11,7 @@ import '@juggle/resize-observer';
|
|
|
11
11
|
import 'downshift';
|
|
12
12
|
import '@alfalab/core-components-popover/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import '../../getDataTestId-
|
|
14
|
+
import '../../getDataTestId-416fe68c.js';
|
|
15
15
|
import '../../utils.js';
|
|
16
16
|
import '../native-select/Component.js';
|
|
17
17
|
import '../field/Component.js';
|
|
@@ -27,6 +27,7 @@ import '../checkmark-mobile/Component.js';
|
|
|
27
27
|
import '../options-list/Component.js';
|
|
28
28
|
import '@alfalab/core-components-scrollbar/esm';
|
|
29
29
|
import '../../consts.js';
|
|
30
|
+
import '../../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
30
31
|
import '../base-select-mobile/Component.js';
|
|
31
32
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
32
33
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -36,5 +37,5 @@ import '@alfalab/core-components-button/esm';
|
|
|
36
37
|
import '../virtual-options-list/Component.js';
|
|
37
38
|
import 'react-virtual';
|
|
38
39
|
import '@alfalab/core-components-skeleton/esm';
|
|
39
|
-
import '../../intersection-observer-
|
|
40
|
+
import '../../intersection-observer-71fc11ef.js';
|
|
40
41
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
@@ -9,16 +9,16 @@ import { DEFAULT_VISIBLE_OPTIONS } from '../../consts.js';
|
|
|
9
9
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
10
10
|
import { Optgroup } from '../optgroup/Component.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"virtualOptionsList":"
|
|
12
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_520i7","virtualOptionsListHeader":"select__virtualOptionsListHeader_520i7","virtualOptionsListFooter":"select__virtualOptionsListFooter_520i7","withBorder":"select__withBorder_520i7","scrollable":"select__scrollable_520i7","inner":"select__inner_520i7","virtualRow":"select__virtualRow_520i7","highlighted":"select__highlighted_520i7","emptyPlaceholder":"select__emptyPlaceholder_520i7","l":"select__l_520i7","xl":"select__xl_520i7"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var VirtualOptionsList = forwardRef(function (_a, ref) {
|
|
16
16
|
var _b;
|
|
17
|
-
var _c = _a.size, size = _c === void 0 ? 's' : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.highlightedIndex, highlightedIndex = _e === void 0 ? -1 : _e, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.Optgroup, Optgroup$1 = _g === void 0 ? Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? DEFAULT_VISIBLE_OPTIONS : _h, header = _a.header, footer = _a.footer, optionsListWidth = _a.optionsListWidth, onScroll = _a.onScroll, nativeScrollbarProp = _a.nativeScrollbar;
|
|
17
|
+
var _c = _a.size, size = _c === void 0 ? 's' : _c, _d = _a.flatOptions, flatOptions = _d === void 0 ? [] : _d, _e = _a.highlightedIndex, highlightedIndex = _e === void 0 ? -1 : _e, className = _a.className, getOptionProps = _a.getOptionProps, Option = _a.Option, open = _a.open, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.Optgroup, Optgroup$1 = _g === void 0 ? Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? DEFAULT_VISIBLE_OPTIONS : _h, header = _a.header, footer = _a.footer, _j = _a.showFooter, showFooter = _j === void 0 ? true : _j, optionsListWidth = _a.optionsListWidth, onScroll = _a.onScroll, nativeScrollbarProp = _a.nativeScrollbar;
|
|
18
18
|
var listRef = useRef(null);
|
|
19
19
|
var parentRef = useRef(null);
|
|
20
20
|
var scrollbarRef = useRef(null);
|
|
21
|
-
var
|
|
21
|
+
var _k = useState(0), visibleOptionsInvalidateKey = _k[0], setVisibleOptionsInvalidateKey = _k[1];
|
|
22
22
|
var prevHighlightedIndex = usePrevious(highlightedIndex) || -1;
|
|
23
23
|
var nativeScrollbar = useMedia([[true, '(max-width: 1023px)']], false)[0];
|
|
24
24
|
var rowVirtualizer = useVirtual({
|
|
@@ -122,7 +122,7 @@ var VirtualOptionsList = forwardRef(function (_a, ref) {
|
|
|
122
122
|
header && React.createElement("div", { className: styles.virtualOptionsListHeader }, header),
|
|
123
123
|
nativeScrollbar ? renderWithNativeScrollbar() : renderWithCustomScrollbar(),
|
|
124
124
|
emptyPlaceholder && options.length === 0 && (React.createElement("div", { className: styles.emptyPlaceholder }, emptyPlaceholder)),
|
|
125
|
-
footer && (React.createElement("div", { className: cn(styles.virtualOptionsListFooter, (_b = {},
|
|
125
|
+
showFooter && footer && (React.createElement("div", { className: cn(styles.virtualOptionsListFooter, (_b = {},
|
|
126
126
|
_b[styles.withBorder] = visibleOptions && flatOptions.length > visibleOptions,
|
|
127
127
|
_b)) }, footer))));
|
|
128
128
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: aezsy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -35,34 +35,34 @@
|
|
|
35
35
|
/* checkmark */
|
|
36
36
|
|
|
37
37
|
/* optgroup */
|
|
38
|
-
} .
|
|
38
|
+
} .select__virtualOptionsList_520i7 {
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: sticky;
|
|
43
|
-
} .
|
|
43
|
+
} .select__virtualOptionsListHeader_520i7 {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsListFooter_520i7 {
|
|
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_520i7.select__withBorder_520i7 {
|
|
52
52
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
53
|
-
} .
|
|
53
|
+
} .select__scrollable_520i7 {
|
|
54
54
|
position: relative;
|
|
55
55
|
overflow: auto;
|
|
56
56
|
width: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__inner_520i7 {
|
|
58
58
|
position: relative;
|
|
59
59
|
width: 100%;
|
|
60
|
-
} .
|
|
60
|
+
} .select__virtualRow_520i7 {
|
|
61
61
|
position: absolute;
|
|
62
62
|
top: 0;
|
|
63
63
|
left: 0;
|
|
64
64
|
width: 100%
|
|
65
|
-
} .
|
|
65
|
+
} .select__virtualRow_520i7: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_520i7:first-child:before {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
78
|
-
.
|
|
77
|
+
} .select__highlighted_520i7:before,
|
|
78
|
+
.select__highlighted_520i7 + .select__virtualRow_520i7:before {
|
|
79
79
|
display: none;
|
|
80
|
-
} .
|
|
80
|
+
} .select__emptyPlaceholder_520i7 {
|
|
81
81
|
padding: var(--gap-m) var(--gap-s);
|
|
82
82
|
color: var(--select-options-list-empty-placeholder-color);
|
|
83
|
-
} .
|
|
84
|
-
.
|
|
83
|
+
} .select__l_520i7 .select__emptyPlaceholder_520i7,
|
|
84
|
+
.select__xl_520i7 .select__emptyPlaceholder_520i7 {
|
|
85
85
|
padding: var(--gap-xl) var(--gap-m);
|
|
86
86
|
}
|
|
@@ -29,17 +29,22 @@ type UseSelectWithApplyProps = {
|
|
|
29
29
|
* Показывать пункт "Выбрать все"
|
|
30
30
|
*/
|
|
31
31
|
showSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
34
|
+
*/
|
|
35
|
+
showHeaderWithSelectAll?: boolean;
|
|
32
36
|
};
|
|
33
37
|
declare const SELECT_ALL_KEY = "select_all";
|
|
34
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
|
|
38
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
35
39
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index").OptionsListProps & {
|
|
36
40
|
showClear?: boolean | undefined;
|
|
37
41
|
onClose?: (() => void) | undefined;
|
|
38
42
|
selectedDraft?: OptionShape[] | undefined;
|
|
39
|
-
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
40
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
41
|
-
*/
|
|
43
|
+
OptionsList?: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
42
44
|
Footer?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/footer/Component").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./presets/useSelectWithApply/options-list-with-apply/header/Component").HeaderProps | undefined;
|
|
47
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
43
48
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
49
|
optionsListProps: {
|
|
45
50
|
OptionsList: import("react").FC<import("./index").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
@@ -48,6 +53,12 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
48
53
|
onApply: () => void;
|
|
49
54
|
onClose: () => void;
|
|
50
55
|
selectedDraft: OptionShape[];
|
|
56
|
+
showHeaderWithSelectAll: boolean;
|
|
57
|
+
headerProps: {
|
|
58
|
+
indeterminate: boolean;
|
|
59
|
+
checked: boolean;
|
|
60
|
+
onChange: () => void;
|
|
61
|
+
};
|
|
51
62
|
};
|
|
52
63
|
allowUnselect: boolean;
|
|
53
64
|
multiple: boolean;
|
package/esm/index-3885b0d7.d.ts
CHANGED
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
3
|
export { BaseSelect } from './components/base-select/Component.js';
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-b436aedf.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';
|
|
@@ -20,8 +20,10 @@ import '@juggle/resize-observer';
|
|
|
20
20
|
import 'downshift';
|
|
21
21
|
import '@alfalab/core-components-popover/esm';
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
|
-
import './getDataTestId-
|
|
23
|
+
import './getDataTestId-416fe68c.js';
|
|
24
24
|
import './components/native-select/Component.js';
|
|
25
|
+
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
26
|
+
import '@alfalab/core-components-checkbox/esm';
|
|
25
27
|
import './components/base-select-mobile/Component.js';
|
|
26
28
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
27
29
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -30,11 +32,10 @@ import '@alfalab/core-components-base-modal/esm';
|
|
|
30
32
|
import '@alfalab/core-components-button/esm';
|
|
31
33
|
import '@alfalab/core-components-form-control/esm';
|
|
32
34
|
import '@alfalab/core-components-badge/esm';
|
|
33
|
-
import '@alfalab/core-components-checkbox/esm';
|
|
34
35
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
35
36
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
36
37
|
import '@alfalab/core-components-skeleton/esm';
|
|
37
|
-
import './intersection-observer-
|
|
38
|
+
import './intersection-observer-71fc11ef.js';
|
|
38
39
|
import './consts.js';
|
|
39
40
|
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
40
41
|
import './components/checkmark/Component.js';
|
package/esm/mobile.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { SelectMobile } from "./components/select-mobile/index";
|
|
2
|
+
export { SelectModalMobile } from "./components/select-modal-mobile/index";
|
|
3
|
+
export type { SelectMobileProps } from "./components/select-mobile/index";
|
|
4
|
+
export type { SelectModalMobileProps } from "./components/select-modal-mobile/index";
|
package/esm/mobile.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { S as SelectMobile, a as SelectModalMobile } from './Component-b436aedf.js';
|
|
2
|
+
import 'tslib';
|
|
3
|
+
import 'react';
|
|
4
|
+
import './Component.js';
|
|
5
|
+
import './components/arrow/Component.js';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
8
|
+
import './components/base-select/Component.js';
|
|
9
|
+
import 'react-merge-refs';
|
|
10
|
+
import '@juggle/resize-observer';
|
|
11
|
+
import 'downshift';
|
|
12
|
+
import '@alfalab/core-components-popover/esm';
|
|
13
|
+
import '@alfalab/hooks';
|
|
14
|
+
import './getDataTestId-416fe68c.js';
|
|
15
|
+
import './utils.js';
|
|
16
|
+
import './components/native-select/Component.js';
|
|
17
|
+
import './components/field/Component.js';
|
|
18
|
+
import '@alfalab/core-components-form-control/esm';
|
|
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-scrollbar/esm';
|
|
29
|
+
import './consts.js';
|
|
30
|
+
import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
31
|
+
import './components/base-select-mobile/Component.js';
|
|
32
|
+
import '@alfalab/core-components-bottom-sheet/esm';
|
|
33
|
+
import '@alfalab/core-components-modal/esm/mobile';
|
|
34
|
+
import './components/base-select-mobile/footer/Component.js';
|
|
35
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
36
|
+
import '@alfalab/core-components-button/esm';
|
|
37
|
+
import './components/virtual-options-list/Component.js';
|
|
38
|
+
import 'react-virtual';
|
|
39
|
+
import '@alfalab/core-components-skeleton/esm';
|
|
40
|
+
import './intersection-observer-71fc11ef.js';
|
|
41
|
+
import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
package/esm/presets/index.d.ts
CHANGED
package/esm/presets/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-b436aedf.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@alfalab/core-components-skeleton/esm';
|
|
@@ -12,7 +12,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
12
12
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
13
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
14
14
|
import '../components/checkmark-mobile/Component.js';
|
|
15
|
-
import '../intersection-observer-
|
|
15
|
+
import '../intersection-observer-71fc11ef.js';
|
|
16
16
|
import '../Component.js';
|
|
17
17
|
import '../components/arrow/Component.js';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -22,7 +22,7 @@ import '@juggle/resize-observer';
|
|
|
22
22
|
import 'downshift';
|
|
23
23
|
import '@alfalab/core-components-popover/esm';
|
|
24
24
|
import '@alfalab/hooks';
|
|
25
|
-
import '../getDataTestId-
|
|
25
|
+
import '../getDataTestId-416fe68c.js';
|
|
26
26
|
import '../utils.js';
|
|
27
27
|
import '../components/native-select/Component.js';
|
|
28
28
|
import '../components/field/Component.js';
|
|
@@ -31,6 +31,7 @@ import '../components/optgroup/Component.js';
|
|
|
31
31
|
import '../components/options-list/Component.js';
|
|
32
32
|
import '@alfalab/core-components-scrollbar/esm';
|
|
33
33
|
import '../consts.js';
|
|
34
|
+
import './useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
34
35
|
import '../components/base-select-mobile/Component.js';
|
|
35
36
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
36
37
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -2,7 +2,7 @@ import { __spreadArray, __assign } from 'tslib';
|
|
|
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-71fc11ef.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../components/checkmark/Component.js';
|
|
8
8
|
import '@alfalab/core-components-badge/esm';
|
|
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
12
12
|
import '../../components/checkmark-mobile/Component.js';
|
|
13
13
|
|
|
14
|
-
var styles = {"skeleton":"
|
|
14
|
+
var styles = {"skeleton":"select__skeleton_1rzbd"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -4,7 +4,7 @@ import '../../Component.js';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
6
|
import '../../components/base-select/Component.js';
|
|
7
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
7
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-b436aedf.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
10
|
import '../../utils.js';
|
|
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
15
15
|
import '../../components/options-list/Component.js';
|
|
16
16
|
import '../../components/virtual-options-list/Component.js';
|
|
17
17
|
import '@alfalab/core-components-skeleton/esm';
|
|
18
|
-
import '../../intersection-observer-
|
|
18
|
+
import '../../intersection-observer-71fc11ef.js';
|
|
19
19
|
import '../../components/arrow/Component.js';
|
|
20
20
|
import '../../components/field/Component.js';
|
|
21
21
|
import '../../components/optgroup/Component.js';
|
|
@@ -26,10 +26,11 @@ import 'react-merge-refs';
|
|
|
26
26
|
import '@juggle/resize-observer';
|
|
27
27
|
import 'downshift';
|
|
28
28
|
import '@alfalab/core-components-popover/esm';
|
|
29
|
-
import '../../getDataTestId-
|
|
29
|
+
import '../../getDataTestId-416fe68c.js';
|
|
30
30
|
import '../../components/native-select/Component.js';
|
|
31
31
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
32
|
import '../../consts.js';
|
|
33
|
+
import './options-list-with-apply/header/Component.js';
|
|
33
34
|
import '../../components/base-select-mobile/Component.js';
|
|
34
35
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
35
36
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
@@ -2,8 +2,9 @@ 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 '../../../Component-
|
|
5
|
+
export { O as OptionsListWithApply } from '../../../Component-b436aedf.js';
|
|
6
6
|
import './footer/Component.js';
|
|
7
|
+
import './header/Component.js';
|
|
7
8
|
import 'react-merge-refs';
|
|
8
9
|
import 'classnames';
|
|
9
10
|
import '@alfalab/core-components-scrollbar/esm';
|
|
@@ -17,7 +18,7 @@ import '../../../components/base-select/Component.js';
|
|
|
17
18
|
import '@juggle/resize-observer';
|
|
18
19
|
import 'downshift';
|
|
19
20
|
import '@alfalab/core-components-popover/esm';
|
|
20
|
-
import '../../../getDataTestId-
|
|
21
|
+
import '../../../getDataTestId-416fe68c.js';
|
|
21
22
|
import '../../../components/native-select/Component.js';
|
|
22
23
|
import '../../../components/field/Component.js';
|
|
23
24
|
import '@alfalab/core-components-form-control/esm';
|
|
@@ -37,4 +38,4 @@ import '@alfalab/core-components-button/esm';
|
|
|
37
38
|
import '../../../components/virtual-options-list/Component.js';
|
|
38
39
|
import 'react-virtual';
|
|
39
40
|
import '@alfalab/core-components-skeleton/esm';
|
|
40
|
-
import '../../../intersection-observer-
|
|
41
|
+
import '../../../intersection-observer-71fc11ef.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tf4y4 */
|
|
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,19 +17,10 @@
|
|
|
17
17
|
--gap-s: 12px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* options list */
|
|
23
|
-
|
|
24
|
-
/* option */
|
|
25
|
-
|
|
26
|
-
/* checkmark */
|
|
27
|
-
|
|
28
|
-
/* optgroup */
|
|
29
|
-
} .select__footer_yh100 {
|
|
20
|
+
} .select__footer_144g5 {
|
|
30
21
|
background-color: var(--color-light-bg-primary);
|
|
31
22
|
padding: var(--gap-s);
|
|
32
23
|
outline: none
|
|
33
|
-
} .
|
|
24
|
+
} .select__footer_144g5 > * + * {
|
|
34
25
|
margin-left: var(--gap-xs);
|
|
35
26
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CheckboxProps } from "@alfalab/core-components-checkbox";
|
|
4
|
+
type HeaderProps = {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
onChange?: CheckboxProps['onChange'];
|
|
8
|
+
mobile?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Header: React.FC<HeaderProps>;
|
|
11
|
+
export { HeaderProps, Header };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
4
|
+
|
|
5
|
+
var styles = {"desktop":"select__desktop_1jjm0","mobile":"select__mobile_1jjm0"};
|
|
6
|
+
require('./index.css')
|
|
7
|
+
|
|
8
|
+
var Header = function (_a) {
|
|
9
|
+
var _b;
|
|
10
|
+
var onChange = _a.onChange, checked = _a.checked, indeterminate = _a.indeterminate, mobile = _a.mobile;
|
|
11
|
+
return (React.createElement("div", { className: cn((_b = {}, _b[styles.desktop] = !mobile, _b[styles.mobile] = mobile, _b)) },
|
|
12
|
+
React.createElement(Checkbox, { block: true, indeterminate: indeterminate, size: 'm', onChange: onChange, checked: checked, label: '\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435' })));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Header };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* hash: 1t43i */
|
|
2
|
+
:root {
|
|
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
|
+
} :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 */
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
|
|
8
|
+
/* Hard */
|
|
9
|
+
|
|
10
|
+
/* Up */
|
|
11
|
+
|
|
12
|
+
/* Hard up */
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
--gap-xs: 8px;
|
|
16
|
+
--gap-s: 12px;
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
19
|
+
} .select__desktop_1jjm0 {
|
|
20
|
+
padding: var(--gap-s);
|
|
21
|
+
} .select__mobile_1jjm0 {
|
|
22
|
+
padding: var(--gap-s) var(--gap-xs);
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../Component-
|
|
1
|
+
export * from "../../../Component-b436aedf";
|