@alfalab/core-components-select 17.10.0 → 17.11.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 +3 -3
- 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 +26 -23
- package/components/base-select/Component.js +2 -2
- 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 +16 -14
- package/components/base-select/mobile.css +19 -15
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +14 -12
- 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 +8 -7
- package/components/field/Component.js +1 -1
- package/components/field/index.css +12 -12
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +8 -7
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +14 -11
- package/components/option/Component.js +1 -1
- package/components/option/index.css +27 -25
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +15 -12
- package/components/search/Component.js +1 -1
- package/components/search/index.css +2 -2
- package/components/virtual-options-list/Component.js +1 -1
- package/components/virtual-options-list/index.css +22 -19
- package/cssm/components/base-option/index.module.css +11 -8
- package/cssm/components/base-select/index.module.css +5 -3
- package/cssm/components/base-select/mobile.module.css +7 -3
- package/cssm/components/checkmark/index.module.css +4 -2
- package/cssm/components/clear-button/index.module.css +2 -1
- package/cssm/components/footer/index.module.css +3 -2
- package/cssm/components/optgroup/index.module.css +8 -5
- package/cssm/components/option/index.module.css +8 -6
- package/cssm/components/options-list/index.module.css +5 -2
- package/cssm/components/virtual-options-list/index.module.css +7 -4
- package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +4 -2
- package/cssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +4 -2
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +26 -23
- package/esm/components/base-select/Component.js +2 -2
- 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 +16 -14
- package/esm/components/base-select/mobile.css +19 -15
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +14 -12
- 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 +8 -7
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +12 -12
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +8 -7
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +14 -11
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +27 -25
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +15 -12
- package/esm/components/search/Component.js +1 -1
- package/esm/components/search/index.css +2 -2
- package/esm/components/virtual-options-list/Component.js +1 -1
- package/esm/components/virtual-options-list/index.css +22 -19
- package/esm/{list-popover-desktop-5d823442.js → list-popover-desktop-3b5200e4.js} +1 -1
- package/esm/mobile/Component.mobile.js +1 -1
- package/esm/mobile.module-841dbab1.js +4 -0
- 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 +7 -5
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -5
- 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/{list-popover-desktop-5bfaa60b.js → list-popover-desktop-3e8f155e.js} +1 -1
- package/mobile/Component.mobile.js +1 -1
- package/mobile.module-6a431abb.js +6 -0
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +26 -23
- package/modern/components/base-select/Component.js +2 -2
- 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 +16 -14
- package/modern/components/base-select/mobile.css +19 -15
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +14 -12
- 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 +8 -7
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +12 -12
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +8 -7
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +14 -11
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +27 -25
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +15 -12
- package/modern/components/search/Component.js +1 -1
- package/modern/components/search/index.css +2 -2
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +22 -19
- package/modern/{list-popover-desktop-e0978248.js → list-popover-desktop-387dae64.js} +1 -1
- package/modern/mobile/Component.mobile.js +1 -1
- package/modern/mobile.module-5583797d.js +4 -0
- 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 +7 -5
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -5
- 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/Component.responsive.d.ts +7 -0
- package/moderncssm/Component.responsive.js +21 -0
- package/moderncssm/components/arrow/Component.d.ts +5 -0
- package/moderncssm/components/arrow/Component.js +8 -0
- package/moderncssm/components/arrow/index.d.ts +1 -0
- package/moderncssm/components/arrow/index.js +1 -0
- package/moderncssm/components/arrow/index.module.css +23 -0
- package/moderncssm/components/base-checkmark/Component.d.ts +5 -0
- package/moderncssm/components/base-checkmark/Component.js +15 -0
- package/moderncssm/components/base-checkmark/index.d.ts +1 -0
- package/moderncssm/components/base-checkmark/index.js +1 -0
- package/moderncssm/components/base-checkmark/index.module.css +30 -0
- package/moderncssm/components/base-option/Component.d.ts +4 -0
- package/moderncssm/components/base-option/Component.js +33 -0
- package/moderncssm/components/base-option/index.d.ts +1 -0
- package/moderncssm/components/base-option/index.js +1 -0
- package/moderncssm/components/base-option/index.module.css +81 -0
- package/moderncssm/components/base-select/Component.d.ts +14 -0
- package/moderncssm/components/base-select/Component.js +408 -0
- package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +12 -0
- package/moderncssm/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.js +15 -0
- package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.d.ts +9 -0
- package/moderncssm/components/base-select/components/list-desktop/list-popover-desktop.js +13 -0
- package/moderncssm/components/base-select/components/list-desktop/types/types.d.ts +3 -0
- package/moderncssm/components/base-select/components/list-desktop/types/types.js +1 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.d.ts +16 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-bottom-sheet-mobile-props.js +19 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.d.ts +28 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/get-list-modal-mobile-props.js +18 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/index.d.ts +2 -0
- package/moderncssm/components/base-select/components/list-mobile/helpers/index.js +2 -0
- package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.d.ts +15 -0
- package/moderncssm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +24 -0
- package/moderncssm/components/base-select/components/list-mobile/list-mobile.d.ts +16 -0
- package/moderncssm/components/base-select/components/list-mobile/list-mobile.js +17 -0
- package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.d.ts +15 -0
- package/moderncssm/components/base-select/components/list-mobile/list-modal-mobile.js +32 -0
- package/moderncssm/components/base-select/components/list-mobile/types/types.d.ts +4 -0
- package/moderncssm/components/base-select/components/list-mobile/types/types.js +1 -0
- package/moderncssm/components/base-select/index.d.ts +1 -0
- package/moderncssm/components/base-select/index.js +1 -0
- package/moderncssm/components/base-select/index.module.css +81 -0
- package/moderncssm/components/base-select/mobile.module.css +48 -0
- package/moderncssm/components/base-select/types/component-types.d.ts +50 -0
- package/moderncssm/components/base-select/types/component-types.js +1 -0
- package/moderncssm/components/checkmark/Component.d.ts +5 -0
- package/moderncssm/components/checkmark/Component.js +20 -0
- package/moderncssm/components/checkmark/index.d.ts +1 -0
- package/moderncssm/components/checkmark/index.js +1 -0
- package/moderncssm/components/checkmark/index.module.css +59 -0
- package/moderncssm/components/checkmark-mobile/Component.d.ts +5 -0
- package/moderncssm/components/checkmark-mobile/Component.js +11 -0
- package/moderncssm/components/checkmark-mobile/index.d.ts +1 -0
- package/moderncssm/components/checkmark-mobile/index.js +1 -0
- package/moderncssm/components/checkmark-mobile/index.module.css +34 -0
- package/moderncssm/components/clear-button/Component.d.ts +5 -0
- package/moderncssm/components/clear-button/Component.js +9 -0
- package/moderncssm/components/clear-button/index.d.ts +1 -0
- package/moderncssm/components/clear-button/index.js +1 -0
- package/moderncssm/components/clear-button/index.module.css +47 -0
- package/moderncssm/components/field/Component.d.ts +13 -0
- package/moderncssm/components/field/Component.js +35 -0
- package/moderncssm/components/field/index.d.ts +1 -0
- package/moderncssm/components/field/index.js +1 -0
- package/moderncssm/components/field/index.module.css +74 -0
- package/moderncssm/components/footer/Component.d.ts +12 -0
- package/moderncssm/components/footer/Component.js +22 -0
- package/moderncssm/components/footer/index.d.ts +1 -0
- package/moderncssm/components/footer/index.js +1 -0
- package/moderncssm/components/footer/index.module.css +28 -0
- package/moderncssm/components/index.d.ts +9 -0
- package/moderncssm/components/index.js +9 -0
- package/moderncssm/components/native-select/Component.d.ts +25 -0
- package/moderncssm/components/native-select/Component.js +13 -0
- package/moderncssm/components/native-select/index.d.ts +1 -0
- package/moderncssm/components/native-select/index.js +1 -0
- package/moderncssm/components/optgroup/Component.d.ts +5 -0
- package/moderncssm/components/optgroup/Component.js +11 -0
- package/moderncssm/components/optgroup/index.d.ts +1 -0
- package/moderncssm/components/optgroup/index.js +1 -0
- package/moderncssm/components/optgroup/index.module.css +46 -0
- package/moderncssm/components/option/Component.d.ts +4 -0
- package/moderncssm/components/option/Component.js +23 -0
- package/moderncssm/components/option/index.d.ts +1 -0
- package/moderncssm/components/option/index.js +1 -0
- package/moderncssm/components/option/index.module.css +111 -0
- package/moderncssm/components/options-list/Component.d.ts +5 -0
- package/moderncssm/components/options-list/Component.js +88 -0
- package/moderncssm/components/options-list/index.d.ts +1 -0
- package/moderncssm/components/options-list/index.js +1 -0
- package/moderncssm/components/options-list/index.module.css +48 -0
- package/moderncssm/components/search/Component.d.ts +5 -0
- package/moderncssm/components/search/Component.js +9 -0
- package/moderncssm/components/search/index.d.ts +1 -0
- package/moderncssm/components/search/index.js +1 -0
- package/moderncssm/components/search/index.module.css +14 -0
- package/moderncssm/components/virtual-options-list/Component.d.ts +5 -0
- package/moderncssm/components/virtual-options-list/Component.js +138 -0
- package/moderncssm/components/virtual-options-list/index.d.ts +1 -0
- package/moderncssm/components/virtual-options-list/index.js +1 -0
- package/moderncssm/components/virtual-options-list/index.module.css +79 -0
- package/moderncssm/consts.d.ts +12 -0
- package/moderncssm/consts.js +13 -0
- package/moderncssm/desktop/Component.desktop.d.ts +6 -0
- package/moderncssm/desktop/Component.desktop.js +17 -0
- package/moderncssm/desktop/index.d.ts +2 -0
- package/moderncssm/desktop/index.js +1 -0
- package/moderncssm/hook-8c561f14.d.ts +115 -0
- package/moderncssm/hook-a8bc7fe8.d.ts +17 -0
- package/moderncssm/hook-a8bc7fe8.js +169 -0
- package/moderncssm/index.d.ts +2 -0
- package/moderncssm/index.js +1 -0
- package/moderncssm/mobile/Component.mobile.d.ts +5 -0
- package/moderncssm/mobile/Component.mobile.js +54 -0
- package/moderncssm/mobile/Component.modal.mobile.d.ts +4 -0
- package/moderncssm/mobile/Component.modal.mobile.js +6 -0
- package/moderncssm/mobile/index.d.ts +3 -0
- package/moderncssm/mobile/index.js +2 -0
- package/moderncssm/presets/index.d.ts +3 -0
- package/moderncssm/presets/index.js +3 -0
- package/moderncssm/presets/useLazyLoading/hook.d.ts +48 -0
- package/moderncssm/presets/useLazyLoading/hook.js +215 -0
- package/moderncssm/presets/useSelectWithApply/hook.d.ts +0 -0
- package/moderncssm/presets/useSelectWithApply/hook.js +4 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +0 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +12 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +12 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +11 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +11 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +9 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +9 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -0
- package/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -0
- package/moderncssm/presets/useSelectWithLoading/hook.d.ts +13 -0
- package/moderncssm/presets/useSelectWithLoading/hook.js +23 -0
- package/moderncssm/presets/useSelectWithLoading/index.module.css +7 -0
- package/moderncssm/shared/index.d.ts +13 -0
- package/moderncssm/shared/index.js +14 -0
- package/moderncssm/typings.d.ts +744 -0
- package/moderncssm/typings.js +1 -0
- package/moderncssm/utils.d.ts +81 -0
- package/moderncssm/utils.js +173 -0
- package/moderncssm/vars.css +10 -0
- package/package.json +14 -14
- 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 +7 -5
- package/presets/useSelectWithApply/options-list-with-apply/header/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -5
- 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/arrow/index.module.css +1 -1
- package/src/components/base-checkmark/index.module.css +1 -1
- package/src/components/base-option/index.module.css +9 -9
- package/src/components/base-select/index.module.css +3 -3
- package/src/components/base-select/mobile.module.css +4 -4
- package/src/components/checkmark/index.module.css +2 -2
- package/src/components/checkmark-mobile/index.module.css +1 -1
- package/src/components/clear-button/index.module.css +1 -1
- package/src/components/field/index.module.css +1 -1
- package/src/components/footer/index.module.css +3 -3
- package/src/components/optgroup/index.module.css +2 -2
- package/src/components/option/index.module.css +3 -3
- package/src/components/options-list/index.module.css +3 -3
- package/src/components/search/index.module.css +1 -1
- package/src/components/virtual-options-list/index.module.css +3 -3
- package/src/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +3 -3
- package/src/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +3 -3
- package/src/vars.css +10 -10
- package/esm/mobile.module-83cac113.js +0 -4
- package/mobile.module-81207a22.js +0 -6
- package/modern/mobile.module-aaa81c53.js +0 -4
- /package/esm/{hook-92fc6541.d.ts → hook-4a4a5429.d.ts} +0 -0
- /package/esm/{hook-92fc6541.js → hook-4a4a5429.js} +0 -0
- /package/esm/{list-popover-desktop-5d823442.d.ts → list-popover-desktop-3b5200e4.d.ts} +0 -0
- /package/{hook-46669d2d.d.ts → hook-06aedfaf.d.ts} +0 -0
- /package/{hook-46669d2d.js → hook-06aedfaf.js} +0 -0
- /package/{list-popover-desktop-5bfaa60b.d.ts → list-popover-desktop-3e8f155e.d.ts} +0 -0
- /package/modern/{hook-0ddabed4.d.ts → hook-07ac3ee1.d.ts} +0 -0
- /package/modern/{hook-0ddabed4.js → hook-07ac3ee1.js} +0 -0
- /package/modern/{list-popover-desktop-e0978248.d.ts → list-popover-desktop-387dae64.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
|
5
5
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
6
|
import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
const styles = {"checkmark":"
|
|
8
|
+
const styles = {"checkmark":"select__checkmark_1lu6x","after":"select__after_1lu6x","single":"select__single_1lu6x","selected":"select__selected_1lu6x","before":"select__before_1lu6x","multiple":"select__multiple_1lu6x","colorIcon":"select__colorIcon_1lu6x"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13afo */
|
|
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-translucent-1300: rgba(3, 3, 6, 0.88);
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
--gap-s: 12px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
+
--gap-8: var(--gap-xs);
|
|
25
|
+
--gap-12: var(--gap-s);
|
|
24
26
|
} :root {
|
|
25
27
|
} :root {
|
|
26
28
|
} :root {
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
|
|
32
34
|
/* checkmark */
|
|
33
35
|
|
|
34
|
-
--select-checkmark-margin: 0 var(--gap-
|
|
36
|
+
--select-checkmark-margin: 0 var(--gap-8) 0 0;
|
|
35
37
|
--select-checkmark-margin-after: var(--select-checkmark-margin);
|
|
36
38
|
--select-checkmark-size: 4px;
|
|
37
39
|
--select-checkmark-before-display: 'flex';
|
|
@@ -43,12 +45,12 @@
|
|
|
43
45
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
44
46
|
|
|
45
47
|
/* optgroup */
|
|
46
|
-
} .
|
|
48
|
+
} .select__checkmark_1lu6x {
|
|
47
49
|
flex-shrink: 0;
|
|
48
50
|
margin: var(--select-checkmark-margin)
|
|
49
|
-
} .
|
|
51
|
+
} .select__checkmark_1lu6x.select__after_1lu6x {
|
|
50
52
|
margin: var(--select-checkmark-margin-after);
|
|
51
|
-
} .
|
|
53
|
+
} .select__single_1lu6x {
|
|
52
54
|
display: flex;
|
|
53
55
|
align-items: center;
|
|
54
56
|
justify-content: center;
|
|
@@ -58,17 +60,17 @@
|
|
|
58
60
|
border-radius: var(--select-checkmark-border-radius);
|
|
59
61
|
width: var(--select-checkmark-size);
|
|
60
62
|
height: var(--select-checkmark-size)
|
|
61
|
-
} .
|
|
63
|
+
} .select__single_1lu6x.select__selected_1lu6x {
|
|
62
64
|
opacity: 1;
|
|
63
|
-
} .
|
|
65
|
+
} .select__before_1lu6x {
|
|
64
66
|
display: var(--select-checkmark-before-display)
|
|
65
|
-
} .
|
|
66
|
-
margin-right: var(--gap-
|
|
67
|
+
} .select__before_1lu6x.select__multiple_1lu6x {
|
|
68
|
+
margin-right: var(--gap-12);
|
|
67
69
|
display: var(--select-checkmark-before-display-multiple);
|
|
68
|
-
} .
|
|
70
|
+
} .select__after_1lu6x.select__after_1lu6x {
|
|
69
71
|
display: var(--select-checkmark-after-display)
|
|
70
|
-
} .
|
|
72
|
+
} .select__after_1lu6x.select__after_1lu6x.select__single_1lu6x {
|
|
71
73
|
display: var(--select-checkmark-after-display-single);
|
|
72
|
-
} .
|
|
74
|
+
} .select__colorIcon_1lu6x {
|
|
73
75
|
color: var(--color-light-status-positive);
|
|
74
76
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
4
4
|
|
|
5
|
-
const styles = {"checkmark":"
|
|
5
|
+
const styles = {"checkmark":"select__checkmark_1txbd","selected":"select__selected_1txbd","displayIcon":"select__displayIcon_1txbd","displayBadge":"select__displayBadge_1txbd"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tebr */
|
|
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 */
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
--select-mobile-checkmark-display-badge: none;
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
|
-
} .
|
|
32
|
+
} .select__checkmark_1txbd {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: center;
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
width: 24px;
|
|
38
38
|
height: 24px;
|
|
39
39
|
opacity: 0
|
|
40
|
-
} .
|
|
40
|
+
} .select__checkmark_1txbd:first-child {
|
|
41
41
|
display: none;
|
|
42
|
-
} .
|
|
42
|
+
} .select__checkmark_1txbd.select__selected_1txbd {
|
|
43
43
|
opacity: 1;
|
|
44
|
-
} .
|
|
44
|
+
} .select__displayIcon_1txbd {
|
|
45
45
|
display: var(--select-mobile-checkmark-display-icon);
|
|
46
|
-
} .
|
|
46
|
+
} .select__displayBadge_1txbd {
|
|
47
47
|
display: var(--select-mobile-checkmark-display-badge);
|
|
48
48
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
3
3
|
import { CrossCircleMIcon } from '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
4
4
|
|
|
5
|
-
const styles = {"clearIcon":"
|
|
5
|
+
const styles = {"clearIcon":"select__clearIcon_zc08m","clearButton":"select__clearButton_zc08m"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const ClearButton = ({ disabled, onClick, dataTestId }) => (React.createElement(Button, { type: 'button', view: 'text', disabled: disabled, "aria-label": '\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C', className: styles.clearButton, onClick: onClick, tabIndex: -1, dataTestId: dataTestId },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ndyl9 */
|
|
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-translucent-500: rgba(9, 12, 37, 0.28);
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
--gap-2xs: 4px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
21
|
|
|
22
22
|
/* новые значения, используйте их */
|
|
23
|
+
--gap-4: var(--gap-2xs);
|
|
23
24
|
} :root {
|
|
24
25
|
} :root {
|
|
25
26
|
} :root {
|
|
@@ -43,15 +44,15 @@
|
|
|
43
44
|
/* checkmark */
|
|
44
45
|
|
|
45
46
|
/* optgroup */
|
|
46
|
-
} .
|
|
47
|
+
} .select__clearIcon_zc08m {
|
|
47
48
|
display: block;
|
|
48
49
|
color: var(--color-light-neutral-translucent-500)
|
|
49
|
-
} .
|
|
50
|
+
} .select__clearIcon_zc08m:hover {
|
|
50
51
|
color: var(--color-light-neutral-translucent-500-hover);
|
|
51
|
-
} .
|
|
52
|
+
} .select__clearIcon_zc08m:active {
|
|
52
53
|
color: var(--color-light-neutral-translucent-500-press);
|
|
53
|
-
} .
|
|
54
|
+
} .select__clearButton_zc08m + [data-addon='error-icon'] {
|
|
54
55
|
display: var(--input-error-icon-display);
|
|
55
|
-
} .
|
|
56
|
-
margin-left: var(--gap-
|
|
56
|
+
} .select__clearButton_zc08m + * {
|
|
57
|
+
margin-left: var(--gap-4);
|
|
57
58
|
}
|
|
@@ -5,7 +5,7 @@ import { useFocus } from '@alfalab/hooks';
|
|
|
5
5
|
import { joinOptions } from '../../utils.js';
|
|
6
6
|
import { ClearButton } from '../clear-button/Component.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"
|
|
8
|
+
const styles = {"component":"select__component_170im","field":"select__field_170im","disabled":"select__disabled_170im","arrow":"select__arrow_170im","placeholder":"select__placeholder_170im","show-placeholder":"select__show-placeholder_170im","focused":"select__focused_170im","contentWrapper":"select__contentWrapper_170im","value":"select__value_170im","focusVisible":"select__focusVisible_170im"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const Field = ({ size = 56, open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, clear, onClear, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: v2gyo */
|
|
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-status-info: #2288fa;
|
|
@@ -46,22 +46,22 @@
|
|
|
46
46
|
/* checkmark */
|
|
47
47
|
|
|
48
48
|
/* optgroup */
|
|
49
|
-
} .
|
|
49
|
+
} .select__component_170im {
|
|
50
50
|
width: 100%;
|
|
51
51
|
outline: none;
|
|
52
|
-
} .
|
|
52
|
+
} .select__field_170im:not(.select__disabled_170im) {
|
|
53
53
|
cursor: pointer
|
|
54
|
-
} .
|
|
54
|
+
} .select__field_170im:not(.select__disabled_170im):hover .select__arrow_170im {
|
|
55
55
|
opacity: var(--select-arrow-hover-opacity);
|
|
56
|
-
} .
|
|
56
|
+
} .select__disabled_170im {
|
|
57
57
|
cursor: var(--disabled-cursor);
|
|
58
|
-
} .
|
|
58
|
+
} .select__placeholder_170im {
|
|
59
59
|
color: var(--input-placeholder-color);
|
|
60
60
|
transition: color 0.2s ease;
|
|
61
|
-
animation: select__show-
|
|
62
|
-
} .
|
|
61
|
+
animation: select__show-placeholder_170im 0.2s ease
|
|
62
|
+
} .select__placeholder_170im.select__focused_170im {
|
|
63
63
|
color: var(--input-focus-placeholder-color);
|
|
64
|
-
} .
|
|
64
|
+
} .select__contentWrapper_170im {
|
|
65
65
|
font-size: 16px;
|
|
66
66
|
line-height: 20px;
|
|
67
67
|
font-weight: 400;
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
text-overflow: ellipsis;
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
width: 100%;
|
|
73
|
-
} .
|
|
73
|
+
} .select__value_170im {
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
text-overflow: ellipsis;
|
|
76
76
|
text-align: left;
|
|
77
|
-
} .
|
|
77
|
+
} .select__focusVisible_170im {
|
|
78
78
|
outline: 2px solid var(--focus-color);
|
|
79
79
|
outline-offset: 2px;
|
|
80
|
-
} @keyframes select__show-
|
|
80
|
+
} @keyframes select__show-placeholder_170im {
|
|
81
81
|
from {
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
|
4
4
|
import { ButtonMobile } from '@alfalab/core-components-button/modern/mobile';
|
|
5
5
|
import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"footer":"
|
|
7
|
+
const styles = {"footer":"select__footer_hwfq1","button":"select__button_hwfq1","highlighted":"select__highlighted_hwfq1"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Footer = ({ handleApply, handleClear, showClear, clearText = 'Сбросить', applyText = 'Применить', dataTestId, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cx89 */
|
|
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;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
20
20
|
|
|
21
21
|
/* новые значения, используйте их */
|
|
22
|
+
--gap-16: var(--gap-m);
|
|
22
23
|
} :root {
|
|
23
24
|
} :root {
|
|
24
25
|
} :root {
|
|
@@ -30,17 +31,17 @@
|
|
|
30
31
|
/* checkmark */
|
|
31
32
|
|
|
32
33
|
/* optgroup */
|
|
33
|
-
} .
|
|
34
|
+
} .select__footer_hwfq1 {
|
|
34
35
|
display: flex;
|
|
35
36
|
box-sizing: border-box;
|
|
36
37
|
width: 100%;
|
|
37
|
-
padding: var(--gap-
|
|
38
|
+
padding: var(--gap-16) var(--gap-16);
|
|
38
39
|
background-color: var(--color-light-modal-bg-primary)
|
|
39
|
-
} .
|
|
40
|
-
margin-right: var(--gap-
|
|
41
|
-
} .
|
|
40
|
+
} .select__footer_hwfq1 .select__button_hwfq1:first-of-type {
|
|
41
|
+
margin-right: var(--gap-16);
|
|
42
|
+
} .select__button_hwfq1 {
|
|
42
43
|
width: 50%;
|
|
43
|
-
} .
|
|
44
|
+
} .select__highlighted_hwfq1 {
|
|
44
45
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
45
46
|
background-color: var(--color-light-modal-bg-primary);
|
|
46
47
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"optgroup":"
|
|
5
|
+
const styles = {"optgroup":"select__optgroup_1xb3v","label":"select__label_1xb3v","size-64":"select__size-64_1xb3v","size-72":"select__size-72_1xb3v"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Optgroup = ({ children, className, label, size = 48 }) => (React.createElement(React.Fragment, null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ws49 */
|
|
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;
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
+
--gap-4: var(--gap-2xs);
|
|
25
|
+
--gap-12: var(--gap-s);
|
|
26
|
+
--gap-16: var(--gap-m);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
26
29
|
} :root {
|
|
@@ -35,22 +38,22 @@
|
|
|
35
38
|
|
|
36
39
|
--select-optgroup-color: var(--color-light-text-secondary);
|
|
37
40
|
--select-optgroup-background: var(--color-light-modal-bg-primary);
|
|
38
|
-
--select-optgroup-left-padding: var(--gap-
|
|
39
|
-
--select-optgroup-right-padding: var(--gap-
|
|
40
|
-
--select-optgroup-l-left-padding: var(--gap-
|
|
41
|
-
--select-optgroup-l-right-padding: var(--gap-
|
|
42
|
-
} .
|
|
41
|
+
--select-optgroup-left-padding: var(--gap-12);
|
|
42
|
+
--select-optgroup-right-padding: var(--gap-12);
|
|
43
|
+
--select-optgroup-l-left-padding: var(--gap-16);
|
|
44
|
+
--select-optgroup-l-right-padding: var(--gap-16);
|
|
45
|
+
} .select__optgroup_1xb3v {
|
|
43
46
|
position: relative;
|
|
44
47
|
display: flex;
|
|
45
48
|
align-items: center;
|
|
46
|
-
padding: var(--gap-
|
|
49
|
+
padding: var(--gap-12) var(--select-optgroup-right-padding) var(--gap-4)
|
|
47
50
|
var(--select-optgroup-left-padding);
|
|
48
51
|
box-sizing: border-box;
|
|
49
52
|
background: var(--select-optgroup-background);
|
|
50
53
|
min-height: 40px
|
|
51
|
-
} .
|
|
54
|
+
} .select__optgroup_1xb3v + *[role='option']:before {
|
|
52
55
|
display: none;
|
|
53
|
-
} .
|
|
56
|
+
} .select__label_1xb3v {
|
|
54
57
|
font-size: 12px;
|
|
55
58
|
line-height: 16px;
|
|
56
59
|
font-weight: 500;
|
|
@@ -59,8 +62,8 @@
|
|
|
59
62
|
|
|
60
63
|
display: block;
|
|
61
64
|
color: var(--select-optgroup-color);
|
|
62
|
-
} .select__size-
|
|
63
|
-
.select__size-
|
|
65
|
+
} .select__size-64_1xb3v,
|
|
66
|
+
.select__size-72_1xb3v {
|
|
64
67
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
65
68
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
66
69
|
}
|
|
@@ -4,7 +4,7 @@ import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
|
4
4
|
import { Checkmark as Checkmark$1 } from '../checkmark/Component.js';
|
|
5
5
|
import { Checkmark } from '../checkmark-mobile/Component.js';
|
|
6
6
|
|
|
7
|
-
const styles = {"option":"
|
|
7
|
+
const styles = {"option":"select__option_188lv","disabled":"select__disabled_188lv","size-48":"select__size-48_188lv","size-56":"select__size-56_188lv","size-64":"select__size-64_188lv","size-72":"select__size-72_188lv","selected":"select__selected_188lv","highlighted":"select__highlighted_188lv","content":"select__content_188lv","textContent":"select__textContent_188lv"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Option = ({ size = 48, className, option, children, selected, highlighted, disabled, multiple, mobile, Checkmark: Checkmark$2 = mobile ? Checkmark : Checkmark$1, innerProps, dataTestId, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18rlh */
|
|
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;
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
--gap-m: 16px; /* 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
25
|
|
|
26
26
|
/* новые значения, используйте их */
|
|
27
|
+
--gap-12: var(--gap-s);
|
|
28
|
+
--gap-16: var(--gap-m);
|
|
27
29
|
} :root {
|
|
28
30
|
} :root {
|
|
29
31
|
--disabled-cursor: not-allowed;
|
|
@@ -39,10 +41,10 @@
|
|
|
39
41
|
|
|
40
42
|
/* option */
|
|
41
43
|
|
|
42
|
-
--select-option-left-padding: var(--gap-
|
|
43
|
-
--select-option-right-padding: var(--gap-
|
|
44
|
-
--select-option-l-left-padding: var(--gap-
|
|
45
|
-
--select-option-l-right-padding: var(--gap-
|
|
44
|
+
--select-option-left-padding: var(--gap-12);
|
|
45
|
+
--select-option-right-padding: var(--gap-12);
|
|
46
|
+
--select-option-l-left-padding: var(--gap-16);
|
|
47
|
+
--select-option-l-right-padding: var(--gap-16);
|
|
46
48
|
--select-option-background: var(--color-light-modal-bg-primary);
|
|
47
49
|
--select-option-selected-background: var(--color-light-modal-bg-primary);
|
|
48
50
|
--select-option-hover-background: var(--color-light-transparent-default-hover);
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
/* checkmark */
|
|
58
60
|
|
|
59
61
|
/* optgroup */
|
|
60
|
-
} .
|
|
62
|
+
} .select__option_188lv {
|
|
61
63
|
font-size: 16px;
|
|
62
64
|
line-height: 20px;
|
|
63
65
|
font-weight: 400;
|
|
@@ -72,10 +74,10 @@
|
|
|
72
74
|
box-sizing: border-box;
|
|
73
75
|
position: relative;
|
|
74
76
|
cursor: pointer
|
|
75
|
-
} .
|
|
77
|
+
} .select__option_188lv:not(.select__disabled_188lv):active {
|
|
76
78
|
background: var(--select-option-active-background);
|
|
77
79
|
color: var(--select-option-active-color);
|
|
78
|
-
} .
|
|
80
|
+
} .select__option_188lv:before {
|
|
79
81
|
content: '';
|
|
80
82
|
position: absolute;
|
|
81
83
|
left: var(--select-option-left-padding);
|
|
@@ -85,43 +87,43 @@
|
|
|
85
87
|
background: var(--select-option-divider-background);
|
|
86
88
|
display: var(--select-option-divider-display);
|
|
87
89
|
transition: opacity 0.2s ease;
|
|
88
|
-
} .
|
|
90
|
+
} .select__option_188lv:first-child:before {
|
|
89
91
|
display: none;
|
|
90
|
-
} .select__size-
|
|
92
|
+
} .select__size-48_188lv {
|
|
91
93
|
min-height: var(--size-s-height);
|
|
92
|
-
} .select__size-
|
|
94
|
+
} .select__size-56_188lv {
|
|
93
95
|
min-height: var(--size-m-height);
|
|
94
|
-
} .select__size-
|
|
96
|
+
} .select__size-64_188lv {
|
|
95
97
|
min-height: var(--size-l-height);
|
|
96
|
-
} .select__size-
|
|
98
|
+
} .select__size-72_188lv {
|
|
97
99
|
min-height: var(--size-xl-height);
|
|
98
|
-
} .select__size-
|
|
99
|
-
.select__size-
|
|
100
|
+
} .select__size-64_188lv,
|
|
101
|
+
.select__size-72_188lv {
|
|
100
102
|
padding-left: var(--select-option-l-left-padding);
|
|
101
103
|
padding-right: var(--select-option-l-right-padding)
|
|
102
|
-
} .select__size-
|
|
104
|
+
} .select__size-64_188lv:before, .select__size-72_188lv:before {
|
|
103
105
|
left: var(--select-option-l-left-padding);
|
|
104
106
|
right: var(--select-option-l-right-padding);
|
|
105
|
-
} .
|
|
107
|
+
} .select__selected_188lv {
|
|
106
108
|
background: var(--select-option-selected-background);
|
|
107
109
|
color: var(--select-option-selected-color);
|
|
108
110
|
cursor: default;
|
|
109
|
-
} .
|
|
111
|
+
} .select__highlighted_188lv {
|
|
110
112
|
background: var(--select-option-hover-background);
|
|
111
113
|
color: var(--select-option-hover-color)
|
|
112
|
-
} .
|
|
113
|
-
.
|
|
114
|
+
} .select__highlighted_188lv:before,
|
|
115
|
+
.select__highlighted_188lv + .select__option_188lv:before {
|
|
114
116
|
opacity: 0;
|
|
115
|
-
} .
|
|
117
|
+
} .select__disabled_188lv {
|
|
116
118
|
cursor: var(--disabled-cursor);
|
|
117
119
|
background: var(--select-option-disabled-background);
|
|
118
120
|
color: var(--select-option-disabled-color);
|
|
119
|
-
} .
|
|
121
|
+
} .select__content_188lv {
|
|
120
122
|
overflow: hidden;
|
|
121
123
|
flex: 1;
|
|
122
124
|
text-overflow: ellipsis;
|
|
123
125
|
white-space: nowrap;
|
|
124
|
-
} .
|
|
125
|
-
padding-top: var(--gap-
|
|
126
|
-
padding-bottom: var(--gap-
|
|
126
|
+
} .select__textContent_188lv {
|
|
127
|
+
padding-top: var(--gap-12);
|
|
128
|
+
padding-bottom: var(--gap-12);
|
|
127
129
|
}
|
|
@@ -8,7 +8,7 @@ import { SIZE_TO_CLASSNAME_MAP, DEFAULT_VISIBLE_OPTIONS } from '../../consts.js'
|
|
|
8
8
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
9
9
|
import { Optgroup } from '../optgroup/Component.js';
|
|
10
10
|
|
|
11
|
-
const styles = {"optionsList":"
|
|
11
|
+
const styles = {"optionsList":"select__optionsList_1c9jr","optionsListHeader":"select__optionsListHeader_1c9jr","headerHighlighted":"select__headerHighlighted_1c9jr","optionsListFooter":"select__optionsListFooter_1c9jr","withBorder":"select__withBorder_1c9jr","scrollable":"select__scrollable_1c9jr","emptyPlaceholder":"select__emptyPlaceholder_1c9jr","size-64":"select__size-64_1c9jr","size-72":"select__size-72_1c9jr"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const createCounter = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8988f */
|
|
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;
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
--gap-xl: 24px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
22
22
|
|
|
23
23
|
/* новые значения, используйте их */
|
|
24
|
+
--gap-12: var(--gap-s);
|
|
25
|
+
--gap-16: var(--gap-m);
|
|
26
|
+
--gap-24: var(--gap-xl);
|
|
24
27
|
} :root {
|
|
25
28
|
} :root {
|
|
26
29
|
} :root {
|
|
@@ -33,32 +36,32 @@
|
|
|
33
36
|
/* checkmark */
|
|
34
37
|
|
|
35
38
|
/* optgroup */
|
|
36
|
-
} .
|
|
39
|
+
} .select__optionsList_1c9jr {
|
|
37
40
|
width: 100%;
|
|
38
41
|
outline: none;
|
|
39
42
|
box-sizing: border-box;
|
|
40
43
|
position: relative;
|
|
41
|
-
} .
|
|
44
|
+
} .select__optionsListHeader_1c9jr {
|
|
42
45
|
box-sizing: border-box;
|
|
43
46
|
border-bottom: 1px solid transparent;
|
|
44
47
|
transition: border-color 0.2s ease
|
|
45
|
-
} .
|
|
48
|
+
} .select__optionsListHeader_1c9jr.select__headerHighlighted_1c9jr {
|
|
46
49
|
border-bottom-color: var(--color-light-neutral-300);
|
|
47
|
-
} .
|
|
50
|
+
} .select__optionsListFooter_1c9jr {
|
|
48
51
|
position: sticky;
|
|
49
52
|
bottom: 0;
|
|
50
53
|
box-sizing: border-box;
|
|
51
54
|
border-top: 1px solid transparent;
|
|
52
55
|
transition: border-color 0.2s ease
|
|
53
|
-
} .
|
|
56
|
+
} .select__optionsListFooter_1c9jr.select__withBorder_1c9jr {
|
|
54
57
|
border-top-color: var(--color-light-neutral-300);
|
|
55
|
-
} .
|
|
58
|
+
} .select__scrollable_1c9jr {
|
|
56
59
|
overflow: auto;
|
|
57
60
|
width: 100%;
|
|
58
|
-
} .
|
|
59
|
-
padding: var(--gap-
|
|
61
|
+
} .select__emptyPlaceholder_1c9jr {
|
|
62
|
+
padding: var(--gap-16) var(--gap-12);
|
|
60
63
|
color: var(--select-options-list-empty-placeholder-color);
|
|
61
|
-
} .select__size-
|
|
62
|
-
.select__size-
|
|
63
|
-
padding: var(--gap-
|
|
64
|
+
} .select__size-64_1c9jr .select__emptyPlaceholder_1c9jr,
|
|
65
|
+
.select__size-72_1c9jr .select__emptyPlaceholder_1c9jr {
|
|
66
|
+
padding: var(--gap-24) var(--gap-16);
|
|
64
67
|
}
|
|
@@ -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_17mdg"};
|
|
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 })));
|