@alfalab/core-components-select 17.18.1 → 17.20.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/components/arrow/Component.d.ts +1 -1
- package/components/arrow/Component.js +5 -3
- package/components/arrow/index.css +7 -4
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +6 -6
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +15 -15
- package/components/base-select/Component.js +3 -3
- package/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
- package/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/components/base-select/index.css +11 -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-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/clear-button/Component.d.ts +1 -1
- package/components/clear-button/Component.js +8 -4
- package/components/clear-button/index.css +9 -7
- package/components/field/Component.js +4 -4
- package/components/field/index.css +22 -14
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- package/components/index.js +6 -2
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.d.ts +16 -3
- package/components/option/Component.js +4 -9
- package/components/option/Component.responsive.d.ts +5 -0
- package/components/option/Component.responsive.js +19 -0
- package/components/option/desktop/Component.d.ts +5 -0
- package/components/option/desktop/Component.js +22 -0
- package/components/option/desktop/index.css +135 -0
- package/components/option/index.d.ts +3 -1
- package/components/option/index.js +6 -2
- package/components/option/mobile/Component.d.ts +5 -0
- package/components/option/mobile/Component.js +22 -0
- package/{modern/components/option → components/option/mobile}/index.css +19 -19
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +11 -11
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +8 -4
- package/components/virtual-options-list/index.css +15 -15
- package/consts.d.ts +1 -0
- package/consts.js +1 -0
- package/cssm/components/arrow/Component.d.ts +1 -1
- package/cssm/components/arrow/Component.js +4 -2
- package/cssm/components/arrow/index.module.css +3 -0
- package/cssm/components/base-select/Component.js +1 -1
- package/cssm/components/clear-button/Component.d.ts +1 -1
- package/cssm/components/clear-button/Component.js +7 -3
- package/cssm/components/clear-button/index.module.css +3 -1
- package/cssm/components/field/Component.js +3 -3
- package/cssm/components/field/index.module.css +12 -4
- package/cssm/components/index.js +6 -2
- package/cssm/components/option/Component.d.ts +16 -3
- package/cssm/components/option/Component.js +10 -14
- package/cssm/components/option/Component.responsive.d.ts +5 -0
- package/cssm/components/option/Component.responsive.js +19 -0
- package/cssm/components/option/desktop/Component.d.ts +5 -0
- package/cssm/components/option/desktop/Component.js +21 -0
- package/cssm/components/option/desktop/index.module.css +134 -0
- package/cssm/components/option/index.d.ts +3 -1
- package/cssm/components/option/index.js +6 -2
- package/cssm/components/option/mobile/Component.d.ts +5 -0
- package/cssm/components/option/mobile/Component.js +21 -0
- package/cssm/components/option/mobile/index.module.css +128 -0
- package/cssm/components/virtual-options-list/Component.js +7 -3
- package/cssm/consts.d.ts +1 -0
- package/cssm/consts.js +1 -0
- package/cssm/desktop/Component.desktop.js +11 -2
- package/cssm/mobile/Component.mobile.js +11 -2
- package/cssm/presets/useLazyLoading/hook.js +11 -2
- package/cssm/presets/useSelectWithLoading/hook.js +11 -2
- package/cssm/shared/index.js +6 -2
- package/cssm/typings.d.ts +20 -8
- package/desktop/Component.desktop.js +7 -2
- package/esm/components/arrow/Component.d.ts +1 -1
- package/esm/components/arrow/Component.js +5 -3
- package/esm/components/arrow/index.css +7 -4
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +15 -15
- package/esm/components/base-select/Component.js +3 -3
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/esm/components/base-select/index.css +11 -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-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/clear-button/Component.d.ts +1 -1
- package/esm/components/clear-button/Component.js +7 -4
- package/esm/components/clear-button/index.css +9 -7
- package/esm/components/field/Component.js +4 -4
- package/esm/components/field/index.css +22 -14
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- package/esm/components/index.js +3 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.d.ts +16 -3
- package/esm/components/option/Component.js +6 -11
- package/esm/components/option/Component.responsive.d.ts +5 -0
- package/esm/components/option/Component.responsive.js +11 -0
- package/esm/components/option/desktop/Component.d.ts +5 -0
- package/esm/components/option/desktop/Component.js +14 -0
- package/esm/components/option/desktop/index.css +135 -0
- package/esm/components/option/index.d.ts +3 -1
- package/esm/components/option/index.js +3 -1
- package/esm/components/option/mobile/Component.d.ts +5 -0
- package/esm/components/option/mobile/Component.js +14 -0
- package/{components/option → esm/components/option/mobile}/index.css +19 -19
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +11 -11
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +8 -4
- package/esm/components/virtual-options-list/index.css +15 -15
- package/esm/consts.d.ts +1 -0
- package/esm/consts.js +1 -0
- package/esm/desktop/Component.desktop.js +8 -3
- package/esm/{list-popover-desktop-7752b0d6.js → list-popover-desktop-e50a493c.js} +1 -1
- package/esm/mobile/Component.mobile.js +9 -4
- package/esm/mobile.module-3e93ab18.js +4 -0
- package/esm/presets/index.js +1 -1
- package/esm/presets/useLazyLoading/hook.js +8 -3
- package/esm/presets/useSelectWithApply/hook.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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 -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 -1
- package/esm/presets/useSelectWithLoading/hook.js +9 -4
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +4 -2
- package/esm/typings.d.ts +20 -8
- package/{list-popover-desktop-0112e158.js → list-popover-desktop-65455002.js} +1 -1
- package/mobile/Component.mobile.js +8 -3
- package/mobile.module-f81e94c5.js +6 -0
- package/modern/components/arrow/Component.d.ts +1 -1
- package/modern/components/arrow/Component.js +9 -5
- package/modern/components/arrow/index.css +7 -4
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +15 -15
- package/modern/components/base-select/Component.js +3 -3
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- 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-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/clear-button/Component.d.ts +1 -1
- package/modern/components/clear-button/Component.js +8 -3
- package/modern/components/clear-button/index.css +9 -7
- package/modern/components/field/Component.js +4 -4
- package/modern/components/field/index.css +22 -14
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- package/modern/components/index.js +3 -1
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.d.ts +16 -3
- package/modern/components/option/Component.js +4 -9
- package/modern/components/option/Component.responsive.d.ts +5 -0
- package/modern/components/option/Component.responsive.js +7 -0
- package/modern/components/option/desktop/Component.d.ts +5 -0
- package/modern/components/option/desktop/Component.js +10 -0
- package/modern/components/option/desktop/index.css +135 -0
- package/modern/components/option/index.d.ts +3 -1
- package/modern/components/option/index.js +3 -1
- package/modern/components/option/mobile/Component.d.ts +5 -0
- package/modern/components/option/mobile/Component.js +10 -0
- package/{esm/components/option → modern/components/option/mobile}/index.css +19 -19
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +11 -11
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +3 -3
- package/modern/components/virtual-options-list/index.css +15 -15
- package/modern/consts.d.ts +1 -0
- package/modern/consts.js +1 -0
- package/modern/desktop/Component.desktop.js +7 -2
- package/modern/{list-popover-desktop-dd9395b6.js → list-popover-desktop-39136773.js} +1 -1
- package/modern/mobile/Component.mobile.js +9 -4
- package/modern/mobile.module-7061a16e.js +4 -0
- package/modern/presets/index.js +1 -1
- package/modern/presets/useLazyLoading/hook.js +8 -3
- package/modern/presets/useSelectWithApply/hook.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- 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 -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 -1
- package/modern/presets/useSelectWithLoading/hook.js +9 -4
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +4 -2
- package/modern/typings.d.ts +20 -8
- package/moderncssm/components/arrow/Component.d.ts +1 -1
- package/moderncssm/components/arrow/Component.js +8 -4
- package/moderncssm/components/arrow/index.module.css +4 -0
- package/moderncssm/components/base-select/Component.js +1 -1
- package/moderncssm/components/clear-button/Component.d.ts +1 -1
- package/moderncssm/components/clear-button/Component.js +7 -2
- package/moderncssm/components/clear-button/index.module.css +4 -0
- package/moderncssm/components/field/Component.js +3 -3
- package/moderncssm/components/field/index.module.css +12 -2
- package/moderncssm/components/index.js +3 -1
- package/moderncssm/components/option/Component.d.ts +16 -3
- package/moderncssm/components/option/Component.js +4 -7
- package/moderncssm/components/option/Component.responsive.d.ts +5 -0
- package/moderncssm/components/option/Component.responsive.js +7 -0
- package/moderncssm/components/option/desktop/Component.d.ts +5 -0
- package/moderncssm/components/option/desktop/Component.js +8 -0
- package/moderncssm/components/option/desktop/index.module.css +118 -0
- package/moderncssm/components/option/index.d.ts +3 -1
- package/moderncssm/components/option/index.js +3 -1
- package/moderncssm/components/option/mobile/Component.d.ts +5 -0
- package/moderncssm/components/option/mobile/Component.js +8 -0
- package/moderncssm/components/option/mobile/index.module.css +110 -0
- package/moderncssm/components/virtual-options-list/Component.js +2 -2
- package/moderncssm/consts.d.ts +1 -0
- package/moderncssm/consts.js +1 -0
- package/moderncssm/desktop/Component.desktop.js +11 -2
- package/moderncssm/mobile/Component.mobile.js +12 -3
- package/moderncssm/presets/useLazyLoading/hook.js +12 -3
- package/moderncssm/presets/useSelectWithLoading/hook.js +12 -3
- package/moderncssm/shared/index.js +3 -1
- package/moderncssm/typings.d.ts +20 -8
- package/package.json +14 -14
- package/presets/index.js +1 -1
- package/presets/useLazyLoading/hook.js +7 -2
- package/presets/useSelectWithApply/hook.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +1 -1
- 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 -1
- package/presets/useSelectWithLoading/hook.js +8 -3
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +7 -3
- package/src/components/arrow/Component.tsx +13 -8
- package/src/components/arrow/index.module.css +5 -0
- package/src/components/base-select/Component.tsx +1 -1
- package/src/components/clear-button/Component.tsx +20 -14
- package/src/components/clear-button/index.module.css +8 -0
- package/src/components/field/Component.tsx +5 -2
- package/src/components/field/index.module.css +8 -0
- package/src/components/option/Component.responsive.tsx +9 -0
- package/src/components/option/Component.tsx +17 -6
- package/src/components/option/desktop/Component.tsx +11 -0
- package/src/components/option/desktop/index.module.css +13 -0
- package/src/components/option/index.ts +3 -1
- package/src/components/option/mobile/Component.tsx +11 -0
- package/src/components/option/mobile/index.module.css +3 -0
- package/src/components/virtual-options-list/Component.tsx +6 -3
- package/src/consts.ts +1 -0
- package/src/typings.ts +21 -7
- package/typings.d.ts +20 -8
- package/@alfalab/icons-glyph/package.json +0 -14
- package/esm/mobile.module-cea6059d.js +0 -4
- package/mobile.module-c0872fa7.js +0 -6
- package/modern/mobile.module-64428fbc.js +0 -4
- /package/esm/{hook-aaef0610.d.ts → hook-754422a7.d.ts} +0 -0
- /package/esm/{hook-aaef0610.js → hook-754422a7.js} +0 -0
- /package/esm/{list-popover-desktop-7752b0d6.d.ts → list-popover-desktop-e50a493c.d.ts} +0 -0
- /package/{hook-d32fd6d1.d.ts → hook-e07a6d8c.d.ts} +0 -0
- /package/{hook-d32fd6d1.js → hook-e07a6d8c.js} +0 -0
- /package/{list-popover-desktop-0112e158.d.ts → list-popover-desktop-65455002.d.ts} +0 -0
- /package/modern/{hook-07c71261.d.ts → hook-80b83b8e.d.ts} +0 -0
- /package/modern/{hook-07c71261.js → hook-80b83b8e.js} +0 -0
- /package/modern/{list-popover-desktop-dd9395b6.d.ts → list-popover-desktop-39136773.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Checkmark } from '../../checkmark-mobile/Component.js';
|
|
4
|
+
import { OptionBase } from '../Component.js';
|
|
5
|
+
|
|
6
|
+
var styles = {"option":"select__option_1a9r9","disabled":"select__disabled_1a9r9","size-48":"select__size-48_1a9r9","size-56":"select__size-56_1a9r9","size-64":"select__size-64_1a9r9","size-72":"select__size-72_1a9r9","selected":"select__selected_1a9r9","highlighted":"select__highlighted_1a9r9","content":"select__content_1a9r9","textContent":"select__textContent_1a9r9"};
|
|
7
|
+
require('./index.css')
|
|
8
|
+
|
|
9
|
+
var OptionMobile = function (_a) {
|
|
10
|
+
var _b = _a.Checkmark, Checkmark$1 = _b === void 0 ? Checkmark : _b, props = __rest(_a, ["Checkmark"]);
|
|
11
|
+
return (React.createElement(OptionBase, __assign({}, props, { mobile: true, Checkmark: Checkmark$1, styles: styles })));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { OptionMobile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: pl84w */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-modal-bg-primary: #fff;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
/* checkmark */
|
|
61
61
|
|
|
62
62
|
/* optgroup */
|
|
63
|
-
} .
|
|
63
|
+
} .select__option_1a9r9 {
|
|
64
64
|
font-size: 16px;
|
|
65
65
|
line-height: 20px;
|
|
66
66
|
font-weight: 400;
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
position: relative;
|
|
77
77
|
cursor: pointer
|
|
78
|
-
} .
|
|
78
|
+
} .select__option_1a9r9:not(.select__disabled_1a9r9):active {
|
|
79
79
|
background: var(--select-option-active-background);
|
|
80
80
|
color: var(--select-option-active-color);
|
|
81
|
-
} .
|
|
81
|
+
} .select__option_1a9r9:before {
|
|
82
82
|
content: '';
|
|
83
83
|
position: absolute;
|
|
84
84
|
left: var(--select-option-left-padding);
|
|
@@ -88,42 +88,42 @@
|
|
|
88
88
|
background: var(--select-option-divider-background);
|
|
89
89
|
display: var(--select-option-divider-display);
|
|
90
90
|
transition: opacity 0.2s ease;
|
|
91
|
-
} .
|
|
91
|
+
} .select__option_1a9r9:first-child:before {
|
|
92
92
|
display: none;
|
|
93
|
-
} .select__size-
|
|
93
|
+
} .select__size-48_1a9r9 {
|
|
94
94
|
min-height: var(--size-s-height);
|
|
95
|
-
} .select__size-
|
|
95
|
+
} .select__size-56_1a9r9 {
|
|
96
96
|
min-height: var(--size-m-height);
|
|
97
|
-
} .select__size-
|
|
97
|
+
} .select__size-64_1a9r9 {
|
|
98
98
|
min-height: var(--size-l-height);
|
|
99
|
-
} .select__size-
|
|
99
|
+
} .select__size-72_1a9r9 {
|
|
100
100
|
min-height: var(--size-xl-height);
|
|
101
|
-
} .select__size-
|
|
102
|
-
.select__size-
|
|
101
|
+
} .select__size-64_1a9r9,
|
|
102
|
+
.select__size-72_1a9r9 {
|
|
103
103
|
padding-left: var(--select-option-l-left-padding);
|
|
104
104
|
padding-right: var(--select-option-l-right-padding)
|
|
105
|
-
} .select__size-
|
|
105
|
+
} .select__size-64_1a9r9:before, .select__size-72_1a9r9:before {
|
|
106
106
|
left: var(--select-option-l-left-padding);
|
|
107
107
|
right: var(--select-option-l-right-padding);
|
|
108
|
-
} .
|
|
108
|
+
} .select__selected_1a9r9 {
|
|
109
109
|
background: var(--select-option-selected-background);
|
|
110
110
|
color: var(--select-option-selected-color);
|
|
111
111
|
cursor: default;
|
|
112
|
-
} .
|
|
112
|
+
} .select__highlighted_1a9r9 {
|
|
113
113
|
background: var(--select-option-hover-background);
|
|
114
114
|
color: var(--select-option-hover-color)
|
|
115
|
-
} .
|
|
116
|
-
.
|
|
115
|
+
} .select__highlighted_1a9r9:before,
|
|
116
|
+
.select__highlighted_1a9r9 + .select__option_1a9r9:before {
|
|
117
117
|
opacity: 0;
|
|
118
|
-
} .
|
|
118
|
+
} .select__disabled_1a9r9 {
|
|
119
119
|
cursor: var(--disabled-cursor);
|
|
120
120
|
background: var(--select-option-disabled-background);
|
|
121
121
|
color: var(--select-option-disabled-color);
|
|
122
|
-
} .
|
|
122
|
+
} .select__content_1a9r9 {
|
|
123
123
|
overflow: hidden;
|
|
124
124
|
flex: 1;
|
|
125
125
|
text-overflow: ellipsis;
|
|
126
|
-
} .
|
|
126
|
+
} .select__textContent_1a9r9 {
|
|
127
127
|
padding-top: var(--gap-12);
|
|
128
128
|
padding-bottom: var(--gap-12);
|
|
129
129
|
}
|
|
@@ -9,7 +9,7 @@ import { SIZE_TO_CLASSNAME_MAP, DEFAULT_VISIBLE_OPTIONS } from '../../consts.js'
|
|
|
9
9
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
10
10
|
import { Optgroup } from '../optgroup/Component.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"optionsList":"
|
|
12
|
+
var styles = {"optionsList":"select__optionsList_a3tys","optionsListHeader":"select__optionsListHeader_a3tys","headerHighlighted":"select__headerHighlighted_a3tys","optionsListFooter":"select__optionsListFooter_a3tys","withBorder":"select__withBorder_a3tys","scrollable":"select__scrollable_a3tys","-webkit-mask":"select__mask_a3tys","mask":"select__mask_a3tys","emptyPlaceholder":"select__emptyPlaceholder_a3tys","size-64":"select__size-64_a3tys","size-72":"select__size-72_a3tys"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nqf3f */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-300: #e7e8eb;
|
|
@@ -37,34 +37,34 @@
|
|
|
37
37
|
/* checkmark */
|
|
38
38
|
|
|
39
39
|
/* optgroup */
|
|
40
|
-
} .
|
|
40
|
+
} .select__optionsList_a3tys {
|
|
41
41
|
width: 100%;
|
|
42
42
|
outline: none;
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
position: relative;
|
|
45
|
-
} .
|
|
45
|
+
} .select__optionsListHeader_a3tys {
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
border-bottom: 1px solid transparent;
|
|
48
48
|
transition: border-color 0.2s ease
|
|
49
|
-
} .
|
|
49
|
+
} .select__optionsListHeader_a3tys.select__headerHighlighted_a3tys {
|
|
50
50
|
border-bottom-color: var(--color-light-neutral-300);
|
|
51
|
-
} .
|
|
51
|
+
} .select__optionsListFooter_a3tys {
|
|
52
52
|
position: sticky;
|
|
53
53
|
bottom: var(--gap-0);
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-top: 1px solid transparent;
|
|
56
56
|
transition: border-color 0.2s ease
|
|
57
|
-
} .
|
|
57
|
+
} .select__optionsListFooter_a3tys.select__withBorder_a3tys {
|
|
58
58
|
border-top-color: var(--color-light-neutral-300);
|
|
59
|
-
} .
|
|
59
|
+
} .select__scrollable_a3tys {
|
|
60
60
|
overflow: auto;
|
|
61
61
|
width: 100%;
|
|
62
|
-
} .
|
|
62
|
+
} .select__mask_a3tys {
|
|
63
63
|
min-width: 4000px;
|
|
64
|
-
} .
|
|
64
|
+
} .select__emptyPlaceholder_a3tys {
|
|
65
65
|
padding: var(--gap-16) var(--gap-12);
|
|
66
66
|
color: var(--select-options-list-empty-placeholder-color);
|
|
67
|
-
} .select__size-
|
|
68
|
-
.select__size-
|
|
67
|
+
} .select__size-64_a3tys .select__emptyPlaceholder_a3tys,
|
|
68
|
+
.select__size-72_a3tys .select__emptyPlaceholder_a3tys {
|
|
69
69
|
padding: var(--gap-24) var(--gap-16);
|
|
70
70
|
}
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Input } from '@alfalab/core-components-input/esm';
|
|
5
5
|
import { MagnifierMIcon } from '@alfalab/icons-glyph/MagnifierMIcon';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"select__component_1fgbk"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Search = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gu0aa */
|
|
2
2
|
: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 */ /* 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 */
|
|
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
/* checkmark */
|
|
28
28
|
|
|
29
29
|
/* optgroup */
|
|
30
|
-
} .
|
|
30
|
+
} .select__component_1fgbk.select__component_1fgbk {
|
|
31
31
|
width: auto;
|
|
32
32
|
}
|
|
@@ -10,7 +10,7 @@ import { SIZE_TO_CLASSNAME_MAP, DEFAULT_VISIBLE_OPTIONS } from '../../consts.js'
|
|
|
10
10
|
import { usePrevious, lastIndexOf, useVirtualVisibleOptions, isGroup } from '../../utils.js';
|
|
11
11
|
import { Optgroup } from '../optgroup/Component.js';
|
|
12
12
|
|
|
13
|
-
var styles = {"virtualOptionsList":"
|
|
13
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_r6gyv","virtualOptionsListHeader":"select__virtualOptionsListHeader_r6gyv","virtualOptionsListFooter":"select__virtualOptionsListFooter_r6gyv","withBorder":"select__withBorder_r6gyv","scrollable":"select__scrollable_r6gyv","inner":"select__inner_r6gyv","virtualRow":"select__virtualRow_r6gyv","highlighted":"select__highlighted_r6gyv","emptyPlaceholder":"select__emptyPlaceholder_r6gyv","size-64":"select__size-64_r6gyv","size-72":"select__size-72_r6gyv"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var VirtualOptionsList = forwardRef(function (_a, ref) {
|
|
@@ -104,12 +104,16 @@ var VirtualOptionsList = forwardRef(function (_a, ref) {
|
|
|
104
104
|
var group = options[groupStartIndexes[virtualRow.index]];
|
|
105
105
|
if (!group)
|
|
106
106
|
return null;
|
|
107
|
-
var groupSelectedItems = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (
|
|
108
|
-
|
|
107
|
+
var groupSelectedItems = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (_a) {
|
|
108
|
+
var selectedItemKey = _a.key;
|
|
109
|
+
return group.options.some(function (opt) { return opt.key === selectedItemKey; });
|
|
109
110
|
});
|
|
110
111
|
var handleSelectedItems = function (items) {
|
|
111
112
|
var _a;
|
|
112
|
-
setSelectedItems(((_a = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (
|
|
113
|
+
setSelectedItems(((_a = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(function (_a) {
|
|
114
|
+
var selectedItemKey = _a.key;
|
|
115
|
+
return !group.options.some(function (opt) { return opt.key === selectedItemKey; });
|
|
116
|
+
})) !== null && _a !== void 0 ? _a : []).concat(items));
|
|
113
117
|
};
|
|
114
118
|
return (React.createElement(Optgroup$1, __assign({ label: group.label, size: size, className: optionGroupClassName, options: group.options, selectedItems: groupSelectedItems, setSelectedItems: handleSelectedItems, search: search, multiple: multiple }, groupOptionProps)));
|
|
115
119
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: pb6sm */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-300: #e7e8eb;
|
|
@@ -43,35 +43,35 @@
|
|
|
43
43
|
/* checkmark */
|
|
44
44
|
|
|
45
45
|
/* optgroup */
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsList_r6gyv {
|
|
47
47
|
width: 100%;
|
|
48
48
|
outline: none;
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
position: sticky;
|
|
51
51
|
justify-content: space-between;
|
|
52
|
-
} .
|
|
52
|
+
} .select__virtualOptionsListHeader_r6gyv {
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
55
|
-
} .
|
|
55
|
+
} .select__virtualOptionsListFooter_r6gyv {
|
|
56
56
|
position: sticky;
|
|
57
57
|
bottom: var(--gap-0);
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
border-top: 1px solid transparent
|
|
60
|
-
} .
|
|
60
|
+
} .select__virtualOptionsListFooter_r6gyv.select__withBorder_r6gyv {
|
|
61
61
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
62
|
-
} .
|
|
62
|
+
} .select__scrollable_r6gyv {
|
|
63
63
|
position: relative;
|
|
64
64
|
overflow: auto;
|
|
65
65
|
width: 100%;
|
|
66
|
-
} .
|
|
66
|
+
} .select__inner_r6gyv {
|
|
67
67
|
position: relative;
|
|
68
68
|
width: 100%;
|
|
69
|
-
} .
|
|
69
|
+
} .select__virtualRow_r6gyv {
|
|
70
70
|
position: absolute;
|
|
71
71
|
top: var(--gap-0);
|
|
72
72
|
left: var(--gap-0);
|
|
73
73
|
width: 100%
|
|
74
|
-
} .
|
|
74
|
+
} .select__virtualRow_r6gyv:before {
|
|
75
75
|
content: '';
|
|
76
76
|
position: absolute;
|
|
77
77
|
z-index: 1;
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
height: 1px;
|
|
82
82
|
background: var(--select-option-divider-background);
|
|
83
83
|
display: var(--select-option-divider-display);
|
|
84
|
-
} .
|
|
84
|
+
} .select__virtualRow_r6gyv:first-child:before {
|
|
85
85
|
display: none;
|
|
86
|
-
} .
|
|
87
|
-
.
|
|
86
|
+
} .select__highlighted_r6gyv:before,
|
|
87
|
+
.select__highlighted_r6gyv + .select__virtualRow_r6gyv:before {
|
|
88
88
|
display: none;
|
|
89
|
-
} .
|
|
89
|
+
} .select__emptyPlaceholder_r6gyv {
|
|
90
90
|
padding: var(--gap-16) var(--gap-12);
|
|
91
91
|
color: var(--select-options-list-empty-placeholder-color);
|
|
92
92
|
flex: 1;
|
|
93
|
-
} .select__size-
|
|
94
|
-
.select__size-
|
|
93
|
+
} .select__size-64_r6gyv .select__emptyPlaceholder_r6gyv,
|
|
94
|
+
.select__size-72_r6gyv .select__emptyPlaceholder_r6gyv {
|
|
95
95
|
padding: var(--gap-24) var(--gap-16);
|
|
96
96
|
}
|
package/esm/consts.d.ts
CHANGED
package/esm/consts.js
CHANGED
|
@@ -6,13 +6,18 @@ import { Arrow } from '../components/arrow/Component.js';
|
|
|
6
6
|
import { BaseSelect } from '../components/base-select/Component.js';
|
|
7
7
|
import { Field } from '../components/field/Component.js';
|
|
8
8
|
import { Optgroup } from '../components/optgroup/Component.js';
|
|
9
|
-
import
|
|
9
|
+
import 'classnames';
|
|
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 { OptionResponsive } from '../components/option/Component.responsive.js';
|
|
10
15
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
11
16
|
import { Search } from '../components/search/Component.js';
|
|
12
17
|
|
|
13
18
|
var SelectDesktop = forwardRef(function (_a, ref) {
|
|
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
|
|
15
|
-
return (React.createElement(BaseSelect, __assign({ ref: ref, view: 'desktop', Option: Option
|
|
19
|
+
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 = _f === void 0 ? OptionResponsive : _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"]);
|
|
20
|
+
return (React.createElement(BaseSelect, __assign({ ref: ref, view: 'desktop', Option: Option, Field: Field$1, fieldProps: __assign({ FormControlComponent: FormControlDesktop }, fieldProps), Search: Search$1, Optgroup: Optgroup$1, OptionsList: OptionsList$1, Arrow: Arrow$1, Popover: Popover }, restProps)));
|
|
16
21
|
});
|
|
17
22
|
|
|
18
23
|
export { SelectDesktop };
|
|
@@ -2,7 +2,7 @@ import { __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"select__component_1kgez","popoverInner":"select__popoverInner_1kgez","optionsListWrapper":"select__optionsListWrapper_1kgez","optionsListBorder":"select__optionsListBorder_1kgez","nativeSelect":"select__nativeSelect_1kgez","block":"select__block_1kgez","emptySearchPlaceholder":"select__emptySearchPlaceholder_1kgez","search":"select__search_1kgez"};
|
|
6
6
|
require('./components/base-select/index.css')
|
|
7
7
|
|
|
8
8
|
var ListPopoverDesktop = function (props) {
|
|
@@ -8,16 +8,21 @@ import { BaseSelect } from '../components/base-select/Component.js';
|
|
|
8
8
|
import { Field } from '../components/field/Component.js';
|
|
9
9
|
import { Footer } from '../components/footer/Component.js';
|
|
10
10
|
import { Optgroup } from '../components/optgroup/Component.js';
|
|
11
|
-
import
|
|
11
|
+
import 'classnames';
|
|
12
|
+
import '@alfalab/core-components-badge/esm';
|
|
13
|
+
import '@alfalab/core-components-checkbox/esm';
|
|
14
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
15
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
16
|
+
import { OptionResponsive } from '../components/option/Component.responsive.js';
|
|
12
17
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
13
18
|
import { Search } from '../components/search/Component.js';
|
|
14
19
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
15
|
-
import { u as useSelectWithApply } from '../hook-
|
|
20
|
+
import { u as useSelectWithApply } from '../hook-754422a7.js';
|
|
16
21
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
17
22
|
|
|
18
23
|
var VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
|
19
24
|
var SelectMobile = forwardRef(function (_a, ref) {
|
|
20
|
-
var _b = _a.autocomplete, autocomplete = _b === void 0 ? false : _b, _c = _a.multiple, multiple = _c === void 0 ? false : _c, _d = _a.allowUnselect, allowUnselect = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.closeOnSelect, closeOnSelect = _f === void 0 ? !multiple : _f, _g = _a.circularNavigation, circularNavigation = _g === void 0 ? false : _g, _h = _a.defaultOpen, defaultOpen = _h === void 0 ? false : _h, openProp = _a.open, _j = _a.size, size = _j === void 0 ? 56 : _j, _k = _a.optionsSize, optionsSize = _k === void 0 ? 56 : _k, _l = _a.fieldProps, fieldProps = _l === void 0 ? {} : _l, _m = _a.optionProps, optionProps = _m === void 0 ? {} : _m, _o = _a.optionsListProps, optionsListProps = _o === void 0 ? {} : _o, _p = _a.Arrow, Arrow$1 = _p === void 0 ? Arrow : _p, _q = _a.Field, Field$1 = _q === void 0 ? Field : _q, _r = _a.Optgroup, Optgroup$1 = _r === void 0 ? Optgroup : _r, _s = _a.Option, Option
|
|
25
|
+
var _b = _a.autocomplete, autocomplete = _b === void 0 ? false : _b, _c = _a.multiple, multiple = _c === void 0 ? false : _c, _d = _a.allowUnselect, allowUnselect = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.closeOnSelect, closeOnSelect = _f === void 0 ? !multiple : _f, _g = _a.circularNavigation, circularNavigation = _g === void 0 ? false : _g, _h = _a.defaultOpen, defaultOpen = _h === void 0 ? false : _h, openProp = _a.open, _j = _a.size, size = _j === void 0 ? 56 : _j, _k = _a.optionsSize, optionsSize = _k === void 0 ? 56 : _k, _l = _a.fieldProps, fieldProps = _l === void 0 ? {} : _l, _m = _a.optionProps, optionProps = _m === void 0 ? {} : _m, _o = _a.optionsListProps, optionsListProps = _o === void 0 ? {} : _o, _p = _a.Arrow, Arrow$1 = _p === void 0 ? Arrow : _p, _q = _a.Field, Field$1 = _q === void 0 ? Field : _q, _r = _a.Optgroup, Optgroup$1 = _r === void 0 ? Optgroup : _r, _s = _a.Option, Option = _s === void 0 ? OptionResponsive : _s, _t = _a.Search, Search$1 = _t === void 0 ? Search : _t, selected = _a.selected, options = _a.options, _u = _a.OptionsList, OptionsList$1 = _u === void 0 ? options.length > VIRTUAL_OPTIONS_LIST_THRESHOLD
|
|
21
26
|
? VirtualOptionsList
|
|
22
27
|
: OptionsList : _u, onChange = _a.onChange, _v = _a.showClear, showClear = _v === void 0 ? true : _v, showSelectAll = _a.showSelectAll, showHeaderWithSelectAll = _a.showHeaderWithSelectAll, _w = _a.useWithApplyHook, useWithApplyHook = _w === void 0 ? multiple : _w, showSearch = _a.showSearch, searchProps = _a.searchProps, restProps = __rest(_a, ["autocomplete", "multiple", "allowUnselect", "disabled", "closeOnSelect", "circularNavigation", "defaultOpen", "open", "size", "optionsSize", "fieldProps", "optionProps", "optionsListProps", "Arrow", "Field", "Optgroup", "Option", "Search", "selected", "options", "OptionsList", "onChange", "showClear", "showSelectAll", "showHeaderWithSelectAll", "useWithApplyHook", "showSearch", "searchProps"]);
|
|
23
28
|
var applyProps = useSelectWithApply({
|
|
@@ -36,7 +41,7 @@ var SelectMobile = forwardRef(function (_a, ref) {
|
|
|
36
41
|
useWithApplyHook &&
|
|
37
42
|
showHeaderWithSelectAll && (React.createElement(Header, __assign({}, applyProps.optionsListProps.headerProps, { mobile: true })));
|
|
38
43
|
};
|
|
39
|
-
return (React.createElement(BaseSelect, __assign({ ref: ref, view: 'mobile', autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: __assign({ FormControlComponent: FormControlMobile }, fieldProps), optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option
|
|
44
|
+
return (React.createElement(BaseSelect, __assign({ ref: ref, view: 'mobile', autocomplete: autocomplete, multiple: multiple, allowUnselect: allowUnselect, disabled: disabled, closeOnSelect: closeOnSelect, circularNavigation: circularNavigation, defaultOpen: defaultOpen, open: openProp, size: size, optionsSize: optionsSize, fieldProps: __assign({ FormControlComponent: FormControlMobile }, fieldProps), optionProps: optionProps, Arrow: Arrow$1, Field: Field$1, Optgroup: Optgroup$1, Option: Option, Search: Search$1, options: options, selected: selected, onChange: onChange, OptionsList: OptionsList$1, showSearch: showSearch, searchProps: searchProps, BottomSheet: BottomSheet, ModalMobile: ModalMobile, optionsListProps: optionsListProps }, restProps, (restProps.isBottomSheet === false
|
|
40
45
|
? {
|
|
41
46
|
modalHeaderProps: __assign({ bottomAddons: bottomAddons }, restProps.modalHeaderProps),
|
|
42
47
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var mobileStyles = {"sheet":"select__sheet_1pg0v","sheetContent":"select__sheetContent_1pg0v","modalContent":"select__modalContent_1pg0v","sheetContainer":"select__sheetContainer_1pg0v","optionsListWrapper":"select__optionsListWrapper_1pg0v","optionsList":"select__optionsList_1pg0v","scrollbar":"select__scrollbar_1pg0v","search":"select__search_1pg0v","option":"select__option_1pg0v","optionGroup":"select__optionGroup_1pg0v"};
|
|
2
|
+
require('./components/base-select/mobile.css')
|
|
3
|
+
|
|
4
|
+
export { mobileStyles as m };
|
package/esm/presets/index.js
CHANGED
|
@@ -1,3 +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-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-754422a7.js';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
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
|
-
import
|
|
4
|
+
import 'classnames';
|
|
5
|
+
import '@alfalab/core-components-badge/esm';
|
|
6
|
+
import '@alfalab/core-components-checkbox/esm';
|
|
7
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
9
|
+
import { OptionResponsive } from '../../components/option/Component.responsive.js';
|
|
5
10
|
import 'intersection-observer';
|
|
6
11
|
|
|
7
12
|
var DEBOUNCE_TIMEOUT = 300;
|
|
@@ -33,7 +38,7 @@ var skeletonStyle = {
|
|
|
33
38
|
width: '50%',
|
|
34
39
|
};
|
|
35
40
|
function useLazyLoading(_a) {
|
|
36
|
-
var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React.createElement(Skeleton, { style: skeletonStyle, visible: true }) : _d, _e = _a.Option, Option
|
|
41
|
+
var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React.createElement(Skeleton, { style: skeletonStyle, visible: true }) : _d, _e = _a.Option, Option = _e === void 0 ? OptionResponsive : _e;
|
|
37
42
|
var initialOptions = [];
|
|
38
43
|
var initialLoading = false;
|
|
39
44
|
var lazyLoadingInitialState = {
|
|
@@ -169,7 +174,7 @@ function useLazyLoading(_a) {
|
|
|
169
174
|
}, DEBOUNCE_TIMEOUT);
|
|
170
175
|
/* eslint-enable */
|
|
171
176
|
}, []);
|
|
172
|
-
var renderOption = function (props) { return (React.createElement(Option
|
|
177
|
+
var renderOption = function (props) { return (React.createElement(Option, __assign({}, props, { highlighted: loading ? false : props.highlighted }))); };
|
|
173
178
|
var skeletonOptions = useMemo(function () {
|
|
174
179
|
return Array(loading ? limit : 0)
|
|
175
180
|
.fill(0)
|
|
@@ -2,6 +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-754422a7.js';
|
|
6
6
|
import './footer/Component.js';
|
|
7
7
|
import './header/Component.js';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';
|
|
3
3
|
import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"footer":"
|
|
5
|
+
var styles = {"footer":"select__footer_1p1bl","button":"select__button_1p1bl"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1v2br */
|
|
2
2
|
: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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-base-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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
} :root {
|
|
26
26
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
27
27
|
--select-option-list-footer-button-gap: var(--gap-8);
|
|
28
|
-
} .
|
|
28
|
+
} .select__footer_1p1bl {
|
|
29
29
|
background-color: var(--color-light-base-bg-primary);
|
|
30
30
|
padding: var(--gap-12);
|
|
31
31
|
outline: none
|
|
32
|
-
} .
|
|
32
|
+
} .select__footer_1p1bl > .select__button_1p1bl + .select__button_1p1bl {
|
|
33
33
|
margin-left: var(--select-option-list-footer-button-gap);
|
|
34
34
|
}
|
|
@@ -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_ahzwp","mobile":"select__mobile_ahzwp"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Header = function (_a) {
|