@alfalab/core-components-select 17.22.0 → 17.23.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.js +1 -1
- package/components/arrow/index.css +5 -5
- 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 +17 -17
- package/components/base-select/Component.js +77 -32
- package/components/base-select/index.css +12 -12
- 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.js +1 -1
- package/components/clear-button/index.css +5 -5
- package/components/field/Component.js +1 -1
- package/components/field/index.css +14 -14
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +5 -5
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +5 -5
- package/components/option/desktop/Component.js +1 -1
- package/components/option/desktop/index.css +21 -21
- package/components/option/mobile/Component.js +1 -1
- package/components/option/mobile/index.css +18 -18
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +10 -10
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +4 -4
- package/components/virtual-options-list/index.css +14 -14
- package/cssm/components/base-select/Component.js +61 -21
- package/cssm/components/virtual-options-list/Component.js +3 -3
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +5 -5
- 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 +17 -17
- package/esm/components/base-select/Component.js +67 -22
- package/esm/components/base-select/index.css +12 -12
- 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.js +1 -1
- package/esm/components/clear-button/index.css +5 -5
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +14 -14
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +5 -5
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +5 -5
- package/esm/components/option/desktop/Component.js +1 -1
- package/esm/components/option/desktop/index.css +21 -21
- package/esm/components/option/mobile/Component.js +1 -1
- package/esm/components/option/mobile/index.css +18 -18
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +10 -10
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +4 -4
- package/esm/components/virtual-options-list/index.css +14 -14
- package/esm/mobile/Component.mobile.js +1 -1
- package/esm/presets/index.js +1 -1
- 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 +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/shared/index.js +1 -1
- package/mobile/Component.mobile.js +1 -1
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +5 -5
- 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 +17 -17
- package/modern/components/base-select/Component.js +63 -12
- package/modern/components/base-select/index.css +12 -12
- 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.js +1 -1
- package/modern/components/clear-button/index.css +5 -5
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +14 -14
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +5 -5
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +5 -5
- package/modern/components/option/desktop/Component.js +1 -1
- package/modern/components/option/desktop/index.css +21 -21
- package/modern/components/option/mobile/Component.js +1 -1
- package/modern/components/option/mobile/index.css +18 -18
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +10 -10
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +4 -4
- package/modern/components/virtual-options-list/index.css +14 -14
- package/modern/mobile/Component.mobile.js +1 -1
- package/modern/presets/index.js +1 -1
- 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 +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/shared/index.js +1 -1
- package/moderncssm/components/base-select/Component.js +57 -11
- package/moderncssm/components/virtual-options-list/Component.js +3 -3
- package/package.json +2 -2
- package/presets/index.js +1 -1
- 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 +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/shared/index.js +1 -1
- package/src/components/base-select/Component.tsx +156 -35
- package/src/components/virtual-options-list/Component.tsx +3 -2
- package/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +0 -12
- package/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +0 -19
- package/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
- package/components/base-select/components/list-desktop/list-popover-desktop.js +0 -12
- package/components/base-select/components/list-desktop/types/types.d.ts +0 -3
- package/components/base-select/components/list-desktop/types/types.js +0 -2
- package/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +0 -18
- package/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +0 -23
- package/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +0 -31
- package/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +0 -22
- package/components/base-select/components/list-mobile/helpers/index.d.ts +0 -2
- package/components/base-select/components/list-mobile/helpers/index.js +0 -11
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +0 -15
- package/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +0 -31
- package/components/base-select/components/list-mobile/list-mobile.d.ts +0 -16
- package/components/base-select/components/list-mobile/list-mobile.js +0 -26
- package/components/base-select/components/list-mobile/list-modal-mobile.d.ts +0 -15
- package/components/base-select/components/list-mobile/list-modal-mobile.js +0 -45
- package/components/base-select/components/list-mobile/types/types.d.ts +0 -4
- package/components/base-select/components/list-mobile/types/types.js +0 -2
- package/cssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +0 -12
- package/cssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +0 -19
- package/cssm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -9
- package/cssm/components/base-select/components/list-desktop/list-popover-desktop.js +0 -24
- package/cssm/components/base-select/components/list-desktop/types/types.d.ts +0 -3
- package/cssm/components/base-select/components/list-desktop/types/types.js +0 -2
- package/cssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +0 -18
- package/cssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +0 -23
- package/cssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +0 -31
- package/cssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +0 -22
- package/cssm/components/base-select/components/list-mobile/helpers/index.d.ts +0 -2
- package/cssm/components/base-select/components/list-mobile/helpers/index.js +0 -11
- package/cssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +0 -15
- package/cssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +0 -32
- package/cssm/components/base-select/components/list-mobile/list-mobile.d.ts +0 -16
- package/cssm/components/base-select/components/list-mobile/list-mobile.js +0 -26
- package/cssm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +0 -15
- package/cssm/components/base-select/components/list-mobile/list-modal-mobile.js +0 -46
- package/cssm/components/base-select/components/list-mobile/types/types.d.ts +0 -4
- package/cssm/components/base-select/components/list-mobile/types/types.js +0 -2
- package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +0 -12
- package/esm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +0 -15
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
- package/esm/components/base-select/components/list-desktop/list-popover-desktop.js +0 -4
- package/esm/components/base-select/components/list-desktop/types/types.d.ts +0 -3
- package/esm/components/base-select/components/list-desktop/types/types.js +0 -1
- package/esm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +0 -18
- package/esm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +0 -19
- package/esm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +0 -31
- package/esm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +0 -18
- package/esm/components/base-select/components/list-mobile/helpers/index.d.ts +0 -2
- package/esm/components/base-select/components/list-mobile/helpers/index.js +0 -2
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +0 -15
- package/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +0 -23
- package/esm/components/base-select/components/list-mobile/list-mobile.d.ts +0 -16
- package/esm/components/base-select/components/list-mobile/list-mobile.js +0 -18
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +0 -15
- package/esm/components/base-select/components/list-mobile/list-modal-mobile.js +0 -35
- package/esm/components/base-select/components/list-mobile/types/types.d.ts +0 -4
- package/esm/components/base-select/components/list-mobile/types/types.js +0 -1
- package/esm/list-popover-desktop-ce7230ff.d.ts +0 -9
- package/esm/list-popover-desktop-ce7230ff.js +0 -16
- package/esm/mobile.module-4cb6e76e.js +0 -4
- package/list-popover-desktop-c264abbb.d.ts +0 -9
- package/list-popover-desktop-c264abbb.js +0 -24
- package/mobile.module-16f2c15a.js +0 -6
- package/modern/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +0 -12
- package/modern/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +0 -15
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -0
- package/modern/components/base-select/components/list-desktop/list-popover-desktop.js +0 -3
- package/modern/components/base-select/components/list-desktop/types/types.d.ts +0 -3
- package/modern/components/base-select/components/list-desktop/types/types.js +0 -1
- package/modern/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +0 -18
- package/modern/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +0 -19
- package/modern/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +0 -31
- package/modern/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +0 -18
- package/modern/components/base-select/components/list-mobile/helpers/index.d.ts +0 -2
- package/modern/components/base-select/components/list-mobile/helpers/index.js +0 -2
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +0 -15
- package/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +0 -27
- package/modern/components/base-select/components/list-mobile/list-mobile.d.ts +0 -16
- package/modern/components/base-select/components/list-mobile/list-mobile.js +0 -17
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.d.ts +0 -15
- package/modern/components/base-select/components/list-mobile/list-modal-mobile.js +0 -35
- package/modern/components/base-select/components/list-mobile/types/types.d.ts +0 -4
- package/modern/components/base-select/components/list-mobile/types/types.js +0 -1
- package/modern/list-popover-desktop-ef23ef00.d.ts +0 -9
- package/modern/list-popover-desktop-ef23ef00.js +0 -15
- package/modern/mobile.module-4725bcd2.js +0 -4
- package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +0 -12
- package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +0 -15
- package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +0 -9
- package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.js +0 -13
- package/moderncssm/components/base-select/components/list-desktop/types/types.d.ts +0 -3
- package/moderncssm/components/base-select/components/list-desktop/types/types.js +0 -1
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +0 -18
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +0 -19
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +0 -31
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +0 -18
- package/moderncssm/components/base-select/components/list-mobile/helpers/index.d.ts +0 -2
- package/moderncssm/components/base-select/components/list-mobile/helpers/index.js +0 -2
- package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +0 -15
- package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +0 -27
- package/moderncssm/components/base-select/components/list-mobile/list-mobile.d.ts +0 -16
- package/moderncssm/components/base-select/components/list-mobile/list-mobile.js +0 -17
- package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +0 -15
- package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.js +0 -35
- package/moderncssm/components/base-select/components/list-mobile/types/types.d.ts +0 -4
- package/moderncssm/components/base-select/components/list-mobile/types/types.js +0 -1
- package/src/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.tsx +0 -24
- package/src/components/base-select/components/list-desktop/list-popover-desktop.tsx +0 -47
- package/src/components/base-select/components/list-desktop/types/types.ts +0 -3
- package/src/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.tsx +0 -32
- package/src/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.tsx +0 -30
- package/src/components/base-select/components/list-mobile/helpers/index.ts +0 -2
- package/src/components/base-select/components/list-mobile/list-bottom-sheet-mobile.tsx +0 -88
- package/src/components/base-select/components/list-mobile/list-mobile.tsx +0 -39
- package/src/components/base-select/components/list-mobile/list-modal-mobile.tsx +0 -98
- package/src/components/base-select/components/list-mobile/types/types.ts +0 -4
- /package/esm/{hook-032fca92.d.ts → hook-c407521c.d.ts} +0 -0
- /package/esm/{hook-032fca92.js → hook-c407521c.js} +0 -0
- /package/{hook-8e994d7b.d.ts → hook-f40ac6c9.d.ts} +0 -0
- /package/{hook-8e994d7b.js → hook-f40ac6c9.js} +0 -0
- /package/modern/{hook-827e015d.d.ts → hook-2f97598a.d.ts} +0 -0
- /package/modern/{hook-827e015d.js → hook-2f97598a.js} +0 -0
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Input } from '@alfalab/core-components-input/modern';
|
|
4
4
|
import { MagnifierMIcon } from '@alfalab/icons-glyph/MagnifierMIcon';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"
|
|
6
|
+
const styles = {"component":"select__component_1eqek"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Search = forwardRef(({ clear = true, placeholder = 'Поиск', className, leftAddons = React.createElement(MagnifierMIcon, { color: '#86868A' }), ...restProps }, ref) => (React.createElement(Input, { ref: ref, className: cn(styles.component, className), placeholder: placeholder, leftAddons: leftAddons, clear: clear, ...restProps })));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 144du */
|
|
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 */
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
/* checkmark */
|
|
31
31
|
|
|
32
32
|
/* optgroup */
|
|
33
|
-
} .
|
|
33
|
+
} .select__component_1eqek.select__component_1eqek {
|
|
34
34
|
width: auto;
|
|
35
35
|
}
|
|
@@ -9,10 +9,10 @@ import { SIZE_TO_CLASSNAME_MAP, DEFAULT_VISIBLE_OPTIONS } from '../../consts.js'
|
|
|
9
9
|
import { usePrevious, lastIndexOf, useVirtualVisibleOptions, isGroup } from '../../utils.js';
|
|
10
10
|
import { Optgroup } from '../optgroup/Component.js';
|
|
11
11
|
|
|
12
|
-
const styles = {"virtualOptionsList":"
|
|
12
|
+
const styles = {"virtualOptionsList":"select__virtualOptionsList_13euj","virtualOptionsListHeader":"select__virtualOptionsListHeader_13euj","virtualOptionsListFooter":"select__virtualOptionsListFooter_13euj","withBorder":"select__withBorder_13euj","scrollable":"select__scrollable_13euj","inner":"select__inner_13euj","virtualRow":"select__virtualRow_13euj","highlighted":"select__highlighted_13euj","emptyPlaceholder":"select__emptyPlaceholder_13euj","size-72":"select__size-72_13euj"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
|
-
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, groupOptionProps = {}, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex, selectedItems, setSelectedItems, search, multiple, }, ref) => {
|
|
15
|
+
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, groupOptionProps = {}, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex, selectedItems, setSelectedItems, search, multiple, scrollbarClassName, }, ref) => {
|
|
16
16
|
const listRef = useRef(null);
|
|
17
17
|
const parentRef = useRef(null);
|
|
18
18
|
const scrollbarRef = useRef(null);
|
|
@@ -116,10 +116,10 @@ const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlighte
|
|
|
116
116
|
style: { height: `${rowVirtualizer.totalSize}px` },
|
|
117
117
|
ref: listRef,
|
|
118
118
|
};
|
|
119
|
-
const renderWithCustomScrollbar = () => (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
119
|
+
const renderWithCustomScrollbar = () => (React.createElement(Scrollbar, { className: cn(styles.scrollable, scrollbarClassName), ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
120
120
|
const renderWithNativeScrollbar = () => {
|
|
121
121
|
if (visibleOptions) {
|
|
122
|
-
return (React.createElement("div", { className: styles.scrollable, ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
|
|
122
|
+
return (React.createElement("div", { className: cn(styles.scrollable, scrollbarClassName), ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
|
|
123
123
|
React.createElement("div", { ...contentNodeProps }, renderList())));
|
|
124
124
|
}
|
|
125
125
|
return React.createElement("div", { ...contentNodeProps }, renderList());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rffvd */
|
|
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;
|
|
@@ -46,35 +46,35 @@
|
|
|
46
46
|
/* checkmark */
|
|
47
47
|
|
|
48
48
|
/* optgroup */
|
|
49
|
-
} .
|
|
49
|
+
} .select__virtualOptionsList_13euj {
|
|
50
50
|
width: 100%;
|
|
51
51
|
outline: none;
|
|
52
52
|
box-sizing: border-box;
|
|
53
53
|
position: sticky;
|
|
54
54
|
justify-content: space-between;
|
|
55
|
-
} .
|
|
55
|
+
} .select__virtualOptionsListHeader_13euj {
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
58
|
-
} .
|
|
58
|
+
} .select__virtualOptionsListFooter_13euj {
|
|
59
59
|
position: sticky;
|
|
60
60
|
bottom: var(--gap-0);
|
|
61
61
|
box-sizing: border-box;
|
|
62
62
|
border-top: 1px solid transparent
|
|
63
|
-
} .
|
|
63
|
+
} .select__virtualOptionsListFooter_13euj.select__withBorder_13euj {
|
|
64
64
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
65
|
-
} .
|
|
65
|
+
} .select__scrollable_13euj {
|
|
66
66
|
position: relative;
|
|
67
67
|
overflow: auto;
|
|
68
68
|
width: 100%;
|
|
69
|
-
} .
|
|
69
|
+
} .select__inner_13euj {
|
|
70
70
|
position: relative;
|
|
71
71
|
width: 100%;
|
|
72
|
-
} .
|
|
72
|
+
} .select__virtualRow_13euj {
|
|
73
73
|
position: absolute;
|
|
74
74
|
top: var(--gap-0);
|
|
75
75
|
left: var(--gap-0);
|
|
76
76
|
width: 100%
|
|
77
|
-
} .
|
|
77
|
+
} .select__virtualRow_13euj:before {
|
|
78
78
|
content: '';
|
|
79
79
|
position: absolute;
|
|
80
80
|
z-index: 1;
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
height: 1px;
|
|
85
85
|
background: var(--select-option-divider-background);
|
|
86
86
|
display: var(--select-option-divider-display);
|
|
87
|
-
} .
|
|
87
|
+
} .select__virtualRow_13euj:first-child:before {
|
|
88
88
|
display: none;
|
|
89
|
-
} .
|
|
90
|
-
.
|
|
89
|
+
} .select__highlighted_13euj:before,
|
|
90
|
+
.select__highlighted_13euj + .select__virtualRow_13euj:before {
|
|
91
91
|
display: none;
|
|
92
|
-
} .
|
|
92
|
+
} .select__emptyPlaceholder_13euj {
|
|
93
93
|
padding: var(--gap-16) var(--gap-12);
|
|
94
94
|
color: var(--select-options-list-empty-placeholder-color);
|
|
95
95
|
flex: 1;
|
|
96
|
-
} .select__size-
|
|
96
|
+
} .select__size-72_13euj .select__emptyPlaceholder_13euj {
|
|
97
97
|
padding: var(--gap-24) var(--gap-16);
|
|
98
98
|
}
|
|
@@ -16,7 +16,7 @@ import { OptionResponsive } from '../components/option/Component.responsive.js';
|
|
|
16
16
|
import { OptionsList } from '../components/options-list/Component.js';
|
|
17
17
|
import { Search } from '../components/search/Component.js';
|
|
18
18
|
import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
|
|
19
|
-
import { u as useSelectWithApply } from '../hook-
|
|
19
|
+
import { u as useSelectWithApply } from '../hook-2f97598a.js';
|
|
20
20
|
import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
|
|
21
21
|
|
|
22
22
|
const VIRTUAL_OPTIONS_LIST_THRESHOLD = 30;
|
package/modern/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-2f97598a.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../../components/options-list/Component.js';
|
|
3
3
|
import '../../../consts.js';
|
|
4
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
4
|
+
export { O as OptionsListWithApply } from '../../../hook-2f97598a.js';
|
|
5
5
|
import './footer/Component.js';
|
|
6
6
|
import './header/Component.js';
|
|
@@ -4,7 +4,7 @@ import { ButtonDesktop } from '@alfalab/core-components-button/modern/desktop';
|
|
|
4
4
|
import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
5
5
|
import { SIZE_TO_CLASSNAME_MAP } from '../../../../consts.js';
|
|
6
6
|
|
|
7
|
-
const styles = {"footer":"
|
|
7
|
+
const styles = {"footer":"select__footer_v1f74","size-72":"select__size-72_v1f74","button":"select__button_v1f74"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Footer = ({ handleApply, handleClear, showClear, selectedDraft = [], dataTestId, size, }) => (React.createElement("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qhvi */
|
|
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 */
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
31
31
|
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
32
32
|
--select-option-list-footer-button-gap: var(--gap-8);
|
|
33
|
-
} .
|
|
33
|
+
} .select__footer_v1f74 {
|
|
34
34
|
background-color: var(--color-light-base-bg-primary);
|
|
35
35
|
padding: var(--gap-12);
|
|
36
36
|
outline: none
|
|
37
|
-
} .
|
|
37
|
+
} .select__footer_v1f74.select__size-72_v1f74 {
|
|
38
38
|
padding: var(--gap-12) var(--gap-16);
|
|
39
|
-
} .
|
|
39
|
+
} .select__footer_v1f74 > .select__button_v1f74 + .select__button_v1f74 {
|
|
40
40
|
margin-left: var(--select-option-list-footer-button-gap);
|
|
41
41
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
4
4
|
import { SIZE_TO_CLASSNAME_MAP } from '../../../../consts.js';
|
|
5
5
|
|
|
6
|
-
const styles = {"desktop":"
|
|
6
|
+
const styles = {"desktop":"select__desktop_1eiel","size-72":"select__size-72_1eiel","mobile":"select__mobile_1eiel"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Header = ({ onChange, checked, indeterminate, mobile, dataTestId, size, }) => (React.createElement("div", { className: cn(size && styles[SIZE_TO_CLASSNAME_MAP[size]], {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: d6imi */
|
|
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,10 +27,10 @@
|
|
|
27
27
|
--gap-16: var(--gap-m);
|
|
28
28
|
} :root {
|
|
29
29
|
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
30
|
-
} /* сбрасывает синюю подсветку при нажатии */ .
|
|
30
|
+
} /* сбрасывает синюю подсветку при нажатии */ .select__desktop_1eiel {
|
|
31
31
|
padding: var(--gap-12)
|
|
32
|
-
} .
|
|
32
|
+
} .select__desktop_1eiel.select__size-72_1eiel {
|
|
33
33
|
padding-left: var(--gap-16);
|
|
34
|
-
} .
|
|
34
|
+
} .select__mobile_1eiel {
|
|
35
35
|
padding: var(--gap-12) var(--gap-8);
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../../hook-
|
|
1
|
+
export * from "../../../hook-2f97598a";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { O as OptionsListWithApply } from '../../../hook-
|
|
1
|
+
export { O as OptionsListWithApply } from '../../../hook-2f97598a.js';
|
|
@@ -7,7 +7,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
7
7
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
8
8
|
import { OptionResponsive } from '../../components/option/Component.responsive.js';
|
|
9
9
|
|
|
10
|
-
const styles = {"skeleton":"
|
|
10
|
+
const styles = {"skeleton":"select__skeleton_2gd2s"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
function useSelectWithLoading({ loading = false, visibleOptions = 6, Option = OptionResponsive, }) {
|
package/modern/shared/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
|
|
3
|
-
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-
|
|
3
|
+
export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-2f97598a.js';
|
|
4
4
|
export { defaultAccessor, defaultFilterFn, defaultGroupAccessor, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVirtualVisibleOptions, useVisibleOptions } from '../utils.js';
|
|
5
5
|
export { OptionDesktop } from '../components/option/desktop/Component.js';
|
|
6
6
|
export { OptionMobile } from '../components/option/mobile/Component.js';
|
|
@@ -9,11 +9,6 @@ import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
|
9
9
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
10
10
|
import { defaultAccessor, defaultFilterFn, defaultGroupAccessor, processOptions, isGroup } from '../../utils.js';
|
|
11
11
|
import { NativeSelect } from '../native-select/Component.js';
|
|
12
|
-
import { getListPopoverDesktopProps } from './components/list-desktop/helpers/get-list-popover-desktop-props.js';
|
|
13
|
-
import { ListPopoverDesktop } from './components/list-desktop/list-popover-desktop.js';
|
|
14
|
-
import { getListModalMobileProps } from './components/list-mobile/helpers/get-list-modal-mobile-props.js';
|
|
15
|
-
import { getListBottomSheetMobileProps } from './components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js';
|
|
16
|
-
import { ListMobile } from './components/list-mobile/list-mobile.js';
|
|
17
12
|
import styles from './index.module.css';
|
|
18
13
|
import mobileStyles from './mobile.module.css';
|
|
19
14
|
|
|
@@ -24,7 +19,7 @@ const BaseSelect = forwardRef(
|
|
|
24
19
|
// TODO: 😭
|
|
25
20
|
// eslint-disable-next-line complexity
|
|
26
21
|
(props, ref) => {
|
|
27
|
-
const { dataTestId, className, fieldClassName, optionGroupClassName, optionsListClassName, optionClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, optionsListWidth = 'content', name, id, selected, size = 48, optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, groupOptionProps = {}, searchProps = {}, showSearch = false, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, onClear, clear, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, Search = () => null, showEmptyOptionsList = false, visibleOptions, view, isBottomSheet = true, modalProps, bottomSheetProps, limitDynamicOptionGroupSize, } = props;
|
|
22
|
+
const { dataTestId, className, fieldClassName, optionGroupClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 48, optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, groupOptionProps = {}, searchProps = {}, showSearch = false, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, onClear, clear, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, Search = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, view, isBottomSheet = true, footer, swipeable, modalProps, popoverProps, modalFooterProps, modalHeaderProps, bottomSheetProps, Popover, ModalMobile, BottomSheet, limitDynamicOptionGroupSize, } = props;
|
|
28
23
|
const shouldSearchBlurRef = useRef(true);
|
|
29
24
|
const rootRef = useRef(null);
|
|
30
25
|
const fieldRef = useRef(null);
|
|
@@ -381,11 +376,63 @@ const BaseSelect = forwardRef(
|
|
|
381
376
|
return null;
|
|
382
377
|
const listProps = optionsListProps;
|
|
383
378
|
return (React.createElement("div", { ...menuProps, ref: view === 'desktop' ? menuRef : undefined, className: cn(optionsListClassName, view === 'mobile' && mobileStyles.optionsListWrapper, view === 'desktop' && styles.optionsListWrapper) },
|
|
384
|
-
React.createElement(OptionsList, { ...listProps, ref: view === 'desktop' ? listProps.ref : scrollableContainerRef, setHighlightedIndex: view === 'desktop' ? setHighlightedIndex : undefined, className: cn({ [mobileStyles.optionsList]: view === 'mobile' }), scrollbarClassName: cn({ [mobileStyles.scrollbar]: view === 'mobile' }), optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: filteredOptions, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, groupOptionProps: groupOptionProps, getOptionProps: getOptionProps, visibleOptions: view === 'desktop' ? visibleOptions : 0, dataTestId: getDataTestId(dataTestId, 'options-list'), header: renderOptionsListHeader(), optionGroupClassName: cn(optionGroupClassName, {
|
|
379
|
+
React.createElement(OptionsList, { ...listProps, ref: view === 'desktop' ? listProps.ref : scrollableContainerRef, setHighlightedIndex: view === 'desktop' ? setHighlightedIndex : undefined, className: cn({ [mobileStyles.optionsList]: view === 'mobile' }, listProps.className), scrollbarClassName: cn({ [mobileStyles.scrollbar]: view === 'mobile' }, listProps.scrollbarClassName), optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: filteredOptions, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, groupOptionProps: groupOptionProps, getOptionProps: getOptionProps, visibleOptions: view === 'desktop' ? visibleOptions : 0, dataTestId: getDataTestId(dataTestId, 'options-list'), header: renderOptionsListHeader(), optionGroupClassName: cn(optionGroupClassName, {
|
|
385
380
|
[mobileStyles.optionGroup]: view === 'mobile',
|
|
386
381
|
}), emptyPlaceholder: renderEmptyPlaceholder(), onScroll: onScroll, search: search, multiple: multiple, limitDynamicOptionGroupSize: limitDynamicOptionGroupSize }),
|
|
387
382
|
view === 'desktop' && React.createElement("div", { className: styles.optionsListBorder })));
|
|
388
383
|
};
|
|
384
|
+
const renderInPopover = () => {
|
|
385
|
+
if (!nativeSelect && Popover) {
|
|
386
|
+
return (React.createElement(Popover, { ...popoverProps, open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }, renderOptionsList()));
|
|
387
|
+
}
|
|
388
|
+
return null;
|
|
389
|
+
};
|
|
390
|
+
const renderInBottomSheet = () => {
|
|
391
|
+
if (!nativeSelect && BottomSheet) {
|
|
392
|
+
const bottomAddons = bottomSheetProps?.bottomAddons;
|
|
393
|
+
return (React.createElement(BottomSheet, { dataTestId: getDataTestId(dataTestId, 'bottom-sheet'), open: open, className: mobileStyles.sheet, contentClassName: mobileStyles.sheetContent, containerClassName: mobileStyles.sheetContainer, title: label || placeholder, actionButton: footer, stickyHeader: true, hasCloser: true, swipeable: swipeable, initialHeight: showSearch ? 'full' : 'default', ...bottomSheetProps, sheetContainerRef: menuRef, scrollableContainerRef: scrollableContainerRef, onClose: () => {
|
|
394
|
+
closeMenu();
|
|
395
|
+
bottomSheetProps?.onClose?.();
|
|
396
|
+
}, transitionProps: {
|
|
397
|
+
...bottomSheetProps?.transitionProps,
|
|
398
|
+
onEntered: handleEntered,
|
|
399
|
+
}, bottomAddons: React.createElement(React.Fragment, null,
|
|
400
|
+
renderSearch(),
|
|
401
|
+
typeof bottomAddons === 'function'
|
|
402
|
+
? bottomAddons(flatOptions)
|
|
403
|
+
: bottomAddons), containerProps: {
|
|
404
|
+
...bottomSheetProps?.containerProps,
|
|
405
|
+
onScroll,
|
|
406
|
+
} }, renderOptionsList()));
|
|
407
|
+
}
|
|
408
|
+
return null;
|
|
409
|
+
};
|
|
410
|
+
const renderInModalMobile = () => {
|
|
411
|
+
if (!nativeSelect && ModalMobile) {
|
|
412
|
+
const bottomAddons = modalHeaderProps?.bottomAddons;
|
|
413
|
+
return (React.createElement(ModalMobile, { dataTestId: getDataTestId(dataTestId, 'modal'), open: open, hasCloser: true, ...modalProps, componentRef: menuRef, onClose: (...args) => {
|
|
414
|
+
closeMenu();
|
|
415
|
+
modalProps?.onClose?.(...args);
|
|
416
|
+
}, contentClassName: cn(mobileStyles.sheetContent, modalProps?.contentClassName), ref: mergeRefs([
|
|
417
|
+
scrollableContainerRef,
|
|
418
|
+
modalProps?.ref,
|
|
419
|
+
]), wrapperProps: {
|
|
420
|
+
...modalProps?.wrapperProps,
|
|
421
|
+
onScroll,
|
|
422
|
+
}, transitionProps: {
|
|
423
|
+
...modalProps?.transitionProps,
|
|
424
|
+
onEntered: handleEntered,
|
|
425
|
+
} },
|
|
426
|
+
React.createElement(ModalMobile.Header, { hasCloser: true, sticky: true, ...modalHeaderProps, title: undefined, bottomAddons: React.createElement(React.Fragment, null,
|
|
427
|
+
renderSearch(),
|
|
428
|
+
typeof bottomAddons === 'function'
|
|
429
|
+
? bottomAddons(flatOptions)
|
|
430
|
+
: bottomAddons) }, modalHeaderProps?.title || label || placeholder),
|
|
431
|
+
React.createElement(ModalMobile.Content, { flex: true, className: mobileStyles.modalContent }, renderOptionsList()),
|
|
432
|
+
modalFooterProps?.children && React.createElement(ModalMobile.Footer, { ...modalFooterProps })));
|
|
433
|
+
}
|
|
434
|
+
return null;
|
|
435
|
+
};
|
|
389
436
|
return (React.createElement("div", { ...(disabled && { 'aria-disabled': true }), "aria-expanded": inputProps['aria-expanded'], "aria-haspopup": 'listbox', role: inputProps.role, className: cn(styles.component, { [styles.block]: block }, className), ref: rootRef, onKeyDown: disabled ? undefined : handleFieldKeyDown, tabIndex: -1, "data-test-id": getDataTestId(dataTestId) },
|
|
390
437
|
nativeSelect && renderNativeSelect(),
|
|
391
438
|
React.createElement(Field, { selectedMultiple: selectedItems, selected: selectedItems[0], setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, multiple: multiple, open: open, disabled: disabled, size: size, placeholder: placeholder, label: label && React.createElement("span", { ...getLabelProps() }, label), labelView: labelView, Arrow: Arrow && React.createElement(Arrow, { open: open, size: size, disabled: disabled }), error: error, hint: hint, valueRenderer: valueRenderer, className: fieldClassName, clear: clear, onClear: handleFieldClear, innerProps: {
|
|
@@ -402,10 +449,9 @@ const BaseSelect = forwardRef(
|
|
|
402
449
|
: undefined,
|
|
403
450
|
}, dataTestId: getDataTestId(dataTestId, 'field'), ...fieldProps }),
|
|
404
451
|
name && !nativeSelect && renderValue(),
|
|
405
|
-
view === 'desktop' &&
|
|
406
|
-
view === 'mobile' &&
|
|
407
|
-
|
|
408
|
-
: getListModalMobileProps(props), open: open, menuRef: menuRef, scrollableContainerRef: scrollableContainerRef, flatOptions: flatOptions, renderOptionsList: renderOptionsList, renderSearch: renderSearch, closeMenu: closeMenu, handleEntered: handleEntered }))));
|
|
452
|
+
view === 'desktop' && renderInPopover(),
|
|
453
|
+
view === 'mobile' &&
|
|
454
|
+
(isBottomSheet ? renderInBottomSheet() : renderInModalMobile())));
|
|
409
455
|
});
|
|
410
456
|
|
|
411
457
|
export { BaseSelect };
|
|
@@ -10,7 +10,7 @@ import { usePrevious, lastIndexOf, useVirtualVisibleOptions, isGroup } from '../
|
|
|
10
10
|
import { Optgroup } from '../optgroup/Component.js';
|
|
11
11
|
import styles from './index.module.css';
|
|
12
12
|
|
|
13
|
-
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, groupOptionProps = {}, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex, selectedItems, setSelectedItems, search, multiple, }, ref) => {
|
|
13
|
+
const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlightedIndex = -1, optionGroupClassName, className, getOptionProps, groupOptionProps = {}, Option, open, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, visibleOptions = DEFAULT_VISIBLE_OPTIONS, header, footer, showFooter = true, optionsListWidth, onScroll, nativeScrollbar: nativeScrollbarProp, setHighlightedIndex, selectedItems, setSelectedItems, search, multiple, scrollbarClassName, }, ref) => {
|
|
14
14
|
const listRef = useRef(null);
|
|
15
15
|
const parentRef = useRef(null);
|
|
16
16
|
const scrollbarRef = useRef(null);
|
|
@@ -114,10 +114,10 @@ const VirtualOptionsList = forwardRef(({ size = 48, flatOptions = [], highlighte
|
|
|
114
114
|
style: { height: `${rowVirtualizer.totalSize}px` },
|
|
115
115
|
ref: listRef,
|
|
116
116
|
};
|
|
117
|
-
const renderWithCustomScrollbar = () => (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
117
|
+
const renderWithCustomScrollbar = () => (React.createElement(Scrollbar, { className: cn(styles.scrollable, scrollbarClassName), ref: scrollbarRef, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: { onScroll, ref: parentRef }, contentNodeProps: contentNodeProps }, renderList()));
|
|
118
118
|
const renderWithNativeScrollbar = () => {
|
|
119
119
|
if (visibleOptions) {
|
|
120
|
-
return (React.createElement("div", { className: styles.scrollable, ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
|
|
120
|
+
return (React.createElement("div", { className: cn(styles.scrollable, scrollbarClassName), ref: mergeRefs([parentRef, ref]), onScroll: onScroll },
|
|
121
121
|
React.createElement("div", { ...contentNodeProps }, renderList())));
|
|
122
122
|
}
|
|
123
123
|
return React.createElement("div", { ...contentNodeProps }, renderList());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-select",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.23.0",
|
|
4
4
|
"description": "Select component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@alfalab/core-components-input": "^15.6.2",
|
|
26
26
|
"@alfalab/core-components-modal": "^9.9.20",
|
|
27
27
|
"@alfalab/core-components-mq": "^4.4.1",
|
|
28
|
-
"@alfalab/core-components-popover": "^6.
|
|
28
|
+
"@alfalab/core-components-popover": "^6.4.0",
|
|
29
29
|
"@alfalab/core-components-scrollbar": "^3.4.0",
|
|
30
30
|
"@alfalab/core-components-skeleton": "^5.4.0",
|
|
31
31
|
"@alfalab/core-components-shared": "^0.18.0",
|
package/presets/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
6
6
|
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
7
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-
|
|
7
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-f40ac6c9.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ require('tslib');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-fast-compare');
|
|
8
8
|
require('../../utils.js');
|
|
9
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-
|
|
9
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-f40ac6c9.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ require('tslib');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('../../../components/options-list/Component.js');
|
|
8
8
|
require('../../../consts.js');
|
|
9
|
-
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-
|
|
9
|
+
var presets_useSelectWithApply_optionsListWithApply_Component = require('../../../hook-f40ac6c9.js');
|
|
10
10
|
require('./footer/Component.js');
|
|
11
11
|
require('./header/Component.js');
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"footer":"
|
|
16
|
+
var styles = {"footer":"select__footer_v1f74","size-72":"select__size-72_v1f74","button":"select__button_v1f74"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var Footer = function (_a) {
|