@alfalab/core-components-select 13.2.9 → 13.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Component-15130ab3.d.ts → Component-0a2300e8.d.ts} +0 -0
- package/{Component-15130ab3.js → Component-0a2300e8.js} +2 -2
- package/{Component-f1158c0d.d.ts → Component-fc2a45a0.d.ts} +0 -0
- package/{Component-f1158c0d.js → Component-fc2a45a0.js} +7 -7
- package/Component.js +4 -4
- package/Component.responsive.js +6 -6
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +2 -3
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +2 -2
- package/components/base-option/index.css +13 -13
- package/components/base-option/index.js +1 -1
- package/components/base-select/Component.js +2 -2
- package/components/base-select/index.css +7 -7
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +2 -2
- package/components/base-select-mobile/Component.js +6 -6
- package/components/base-select-mobile/checkmark/Component.js +2 -5
- package/components/base-select-mobile/checkmark/index.css +6 -6
- package/components/base-select-mobile/checkmark/index.js +0 -2
- package/components/base-select-mobile/index.css +11 -11
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +6 -6
- package/components/base-select-mobile/options-list/Component.js +2 -2
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/options-list/index.js +1 -1
- package/components/checkmark/Component.js +5 -4
- package/components/checkmark/index.css +18 -10
- package/components/checkmark/index.js +1 -0
- package/components/field/Component.js +2 -2
- package/components/field/index.css +9 -9
- package/components/field/index.js +1 -1
- package/components/index.js +6 -6
- package/components/native-select/Component.js +1 -1
- package/components/native-select/index.js +1 -1
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +4 -4
- package/components/option/index.css +20 -20
- package/components/option/index.js +3 -3
- package/components/options-list/Component.js +2 -2
- package/components/options-list/index.css +6 -6
- package/components/options-list/index.js +1 -1
- package/components/select-mobile/Component.js +6 -6
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +6 -6
- package/components/select-modal-mobile/Component.js +6 -6
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +6 -6
- package/components/virtual-options-list/Component.js +2 -2
- package/components/virtual-options-list/index.css +12 -12
- package/components/virtual-options-list/index.js +1 -1
- package/cssm/{Component-e61bd989.d.ts → Component-29488b22.d.ts} +0 -0
- package/cssm/{Component-e61bd989.js → Component-29488b22.js} +2 -2
- package/cssm/Component.js +2 -2
- package/cssm/Component.responsive.js +3 -3
- package/cssm/components/base-checkmark/Component.js +1 -2
- package/cssm/components/base-select-mobile/Component.js +3 -3
- package/cssm/components/base-select-mobile/checkmark/Component.js +1 -4
- package/cssm/components/base-select-mobile/checkmark/index.js +0 -2
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +3 -3
- package/cssm/components/checkmark/Component.js +4 -3
- package/cssm/components/checkmark/index.js +1 -0
- package/cssm/components/checkmark/index.module.css +12 -4
- package/cssm/components/index.js +3 -3
- package/cssm/components/option/Component.js +2 -2
- package/cssm/components/option/index.js +2 -2
- package/cssm/components/select-mobile/Component.js +3 -3
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +3 -3
- package/cssm/components/select-modal-mobile/Component.js +3 -3
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +3 -3
- package/cssm/index.js +3 -3
- package/cssm/presets/index.js +3 -3
- package/cssm/presets/useLazyLoading/hook.js +2 -2
- package/cssm/presets/useSelectWithApply/hook.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/cssm/presets/useSelectWithLoading/hook.js +2 -2
- package/cssm/responsive.js +3 -3
- package/esm/{Component-45681199.d.ts → Component-4b015ad5.d.ts} +0 -0
- package/esm/{Component-45681199.js → Component-4b015ad5.js} +2 -2
- package/esm/{Component-ff31e94c.d.ts → Component-dd382646.d.ts} +0 -0
- package/esm/{Component-ff31e94c.js → Component-dd382646.js} +7 -7
- package/esm/Component.js +4 -4
- package/esm/Component.responsive.js +6 -6
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +3 -3
- package/esm/components/base-checkmark/Component.js +2 -3
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +2 -2
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-option/index.js +1 -1
- package/esm/components/base-select/Component.js +2 -2
- package/esm/components/base-select/index.css +7 -7
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +2 -2
- package/esm/components/base-select-mobile/Component.js +6 -6
- package/esm/components/base-select-mobile/checkmark/Component.js +2 -5
- package/esm/components/base-select-mobile/checkmark/index.css +6 -6
- package/esm/components/base-select-mobile/checkmark/index.js +0 -2
- package/esm/components/base-select-mobile/index.css +11 -11
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +6 -6
- package/esm/components/base-select-mobile/options-list/Component.js +2 -2
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/options-list/index.js +1 -1
- package/esm/components/checkmark/Component.js +4 -4
- package/esm/components/checkmark/index.css +18 -10
- package/esm/components/checkmark/index.js +1 -0
- package/esm/components/field/Component.js +2 -2
- package/esm/components/field/index.css +9 -9
- package/esm/components/field/index.js +1 -1
- package/esm/components/index.js +6 -6
- package/esm/components/native-select/Component.js +1 -1
- package/esm/components/native-select/index.js +1 -1
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +4 -4
- package/esm/components/option/index.css +20 -20
- package/esm/components/option/index.js +3 -3
- package/esm/components/options-list/Component.js +2 -2
- package/esm/components/options-list/index.css +6 -6
- package/esm/components/options-list/index.js +1 -1
- package/esm/components/select-mobile/Component.js +6 -6
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +6 -6
- package/esm/components/select-modal-mobile/Component.js +6 -6
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +6 -6
- package/esm/components/virtual-options-list/Component.js +2 -2
- package/esm/components/virtual-options-list/index.css +12 -12
- package/esm/components/virtual-options-list/index.js +1 -1
- package/esm/index.js +6 -6
- package/esm/{intersection-observer-ce0b7183.d.ts → intersection-observer-48ccda2c.d.ts} +0 -0
- package/esm/{intersection-observer-ce0b7183.js → intersection-observer-48ccda2c.js} +0 -0
- package/esm/presets/index.js +6 -6
- package/esm/presets/useLazyLoading/hook.js +5 -5
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +6 -6
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
- package/esm/presets/useSelectWithApply/options-list-with-apply/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 +6 -6
- package/esm/presets/useSelectWithLoading/hook.js +4 -4
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +6 -6
- package/esm/{tslib.es6-60ccbcec.d.ts → tslib.es6-427aef08.d.ts} +0 -0
- package/esm/{tslib.es6-60ccbcec.js → tslib.es6-427aef08.js} +0 -0
- package/index.js +6 -6
- package/{intersection-observer-4a8b5b51.d.ts → intersection-observer-404c5a30.d.ts} +0 -0
- package/{intersection-observer-4a8b5b51.js → intersection-observer-404c5a30.js} +0 -0
- package/modern/{Component-0998aafe.d.ts → Component-19b9374d.d.ts} +0 -0
- package/modern/{Component-0998aafe.js → Component-19b9374d.js} +1 -1
- package/modern/{Component-adf0c0e0.d.ts → Component-3b90d09b.d.ts} +0 -0
- package/modern/{Component-adf0c0e0.js → Component-3b90d09b.js} +6 -6
- package/modern/Component.js +3 -3
- package/modern/Component.responsive.js +5 -5
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +3 -3
- package/modern/components/base-checkmark/Component.js +2 -3
- package/modern/components/base-checkmark/index.css +4 -4
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +13 -13
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +5 -5
- package/modern/components/base-select-mobile/checkmark/Component.js +2 -5
- package/modern/components/base-select-mobile/checkmark/index.css +6 -6
- package/modern/components/base-select-mobile/checkmark/index.js +0 -2
- package/modern/components/base-select-mobile/index.css +11 -11
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +5 -5
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +9 -9
- package/modern/components/checkmark/Component.js +4 -4
- package/modern/components/checkmark/index.css +18 -10
- package/modern/components/checkmark/index.js +1 -0
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +5 -5
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +3 -3
- package/modern/components/option/index.css +20 -20
- package/modern/components/option/index.js +2 -2
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +6 -6
- package/modern/components/select-mobile/Component.js +5 -5
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +5 -5
- package/modern/components/select-modal-mobile/Component.js +5 -5
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +5 -5
- package/modern/components/virtual-options-list/Component.js +1 -1
- package/modern/components/virtual-options-list/index.css +12 -12
- package/modern/index.js +5 -5
- package/modern/{intersection-observer-ce0b7183.d.ts → intersection-observer-48ccda2c.d.ts} +0 -0
- package/modern/{intersection-observer-ce0b7183.js → intersection-observer-48ccda2c.js} +0 -0
- package/modern/presets/index.js +5 -5
- package/modern/presets/useLazyLoading/hook.js +4 -4
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +5 -5
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +5 -5
- package/modern/presets/useSelectWithApply/options-list-with-apply/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 +5 -5
- package/modern/presets/useSelectWithLoading/hook.js +3 -3
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +5 -5
- package/package.json +7 -7
- package/presets/index.js +6 -6
- package/presets/useLazyLoading/hook.js +5 -5
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +6 -6
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +6 -6
- package/presets/useSelectWithApply/options-list-with-apply/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 +6 -6
- package/presets/useSelectWithLoading/hook.js +4 -4
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +6 -6
- /package/{tslib.es6-dde7343f.d.ts → tslib.es6-a986f11c.d.ts} +0 -0
- /package/{tslib.es6-dde7343f.js → tslib.es6-a986f11c.js} +0 -0
|
@@ -6,7 +6,7 @@ import { useMultipleSelection, useCombobox } from 'downshift';
|
|
|
6
6
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/modern';
|
|
7
7
|
import { ModalMobile } from '@alfalab/core-components-modal/modern/mobile';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import { g as getDataTestId } from './Component-
|
|
9
|
+
import { g as getDataTestId } from './Component-19b9374d.js';
|
|
10
10
|
import { Field } from './components/field/Component.js';
|
|
11
11
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
12
12
|
import { Option } from './components/option/Component.js';
|
|
@@ -17,19 +17,19 @@ import '@alfalab/hooks';
|
|
|
17
17
|
import { processOptions } from './utils.js';
|
|
18
18
|
import { BaseOption } from './components/base-option/Component.js';
|
|
19
19
|
import '@alfalab/core-components-skeleton/modern';
|
|
20
|
-
import './intersection-observer-
|
|
20
|
+
import './intersection-observer-48ccda2c.js';
|
|
21
21
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
23
23
|
import '@alfalab/core-components-form-control/modern';
|
|
24
|
-
import '@alfalab/core-components-badge/modern';
|
|
25
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
26
24
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
25
|
+
import '@alfalab/core-components-badge/modern';
|
|
27
26
|
import '@alfalab/core-components-checkbox/modern';
|
|
27
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
28
28
|
import { BaseCheckmark } from './components/base-checkmark/Component.js';
|
|
29
29
|
import { Checkmark } from './components/base-select-mobile/checkmark/Component.js';
|
|
30
30
|
import { OptionsList as OptionsList$1 } from './components/base-select-mobile/options-list/Component.js';
|
|
31
31
|
|
|
32
|
-
const styles$1 = {"footer":"
|
|
32
|
+
const styles$1 = {"footer":"select__footer_1mgwl","withBorder":"select__withBorder_1mgwl"};
|
|
33
33
|
require('./presets/useSelectWithApply/options-list-with-apply/index.css')
|
|
34
34
|
|
|
35
35
|
const OptionsListWithApply = forwardRef(({ toggleMenu, OptionsList: OptionsList$1 = OptionsList, getOptionProps: defaultGetOptionProps, showClear = true, selectedDraft = [], flatOptions = [], onApply = () => null, onClear = () => null, onClose = () => null, visibleOptions = 5, ...restProps }, ref) => {
|
|
@@ -142,7 +142,7 @@ function useSelectWithApply({ options, selected, onChange = () => null, OptionsL
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
const styles = {"component":"
|
|
145
|
+
const styles = {"component":"select__component_1kiva","popoverInner":"select__popoverInner_1kiva","sheet":"select__sheet_1kiva","sheetContent":"select__sheetContent_1kiva","sheetContainer":"select__sheetContainer_1kiva","block":"select__block_1kiva","option":"select__option_1kiva","optionGroup":"select__optionGroup_1kiva"};
|
|
146
146
|
require('./components/base-select-mobile/index.css')
|
|
147
147
|
|
|
148
148
|
const BaseSelectMobile = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, optionGroupClassName, optionsListProps, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, defaultOpen = false, open: openProp, name, id, selected, size = 'm', optionsSize = 'm', error, hint, block, label, labelView, placeholder, fieldProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, OptionsList = OptionsList$1, swipeable, footer, isBottomSheet, bottomSheetProps, }, ref) => {
|
package/modern/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
import { B as BaseSelect } from './Component-
|
|
3
|
+
import { B as BaseSelect } from './Component-19b9374d.js';
|
|
4
4
|
import { Field } from './components/field/Component.js';
|
|
5
5
|
import { Optgroup } from './components/optgroup/Component.js';
|
|
6
6
|
import { Option } from './components/option/Component.js';
|
|
@@ -16,11 +16,11 @@ import './utils.js';
|
|
|
16
16
|
import './components/native-select/Component.js';
|
|
17
17
|
import '@alfalab/core-components-form-control/modern';
|
|
18
18
|
import './components/base-select-mobile/checkmark/Component.js';
|
|
19
|
-
import '@alfalab/core-components-badge/modern';
|
|
20
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
21
19
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
22
20
|
import './components/checkmark/Component.js';
|
|
21
|
+
import '@alfalab/core-components-badge/modern';
|
|
23
22
|
import '@alfalab/core-components-checkbox/modern';
|
|
23
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
24
24
|
import '@alfalab/core-components-scrollbar/modern';
|
|
25
25
|
|
|
26
26
|
const Select = forwardRef(({ Arrow: Arrow$1 = Arrow, Field: Field$1 = Field, OptionsList: OptionsList$1 = OptionsList, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, ...restProps }, ref) => (React.createElement(BaseSelect, { ref: ref, Option: Option$1, Field: Field$1, Optgroup: Optgroup$1, OptionsList: OptionsList$1, Arrow: Arrow$1, ...restProps })));
|
|
@@ -3,13 +3,13 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
3
3
|
import { Select } from './Component.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
6
|
-
import './Component-
|
|
7
|
-
import { S as SelectMobile } from './Component-
|
|
6
|
+
import './Component-19b9374d.js';
|
|
7
|
+
import { S as SelectMobile } from './Component-3b90d09b.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/modern';
|
|
9
|
-
import '@alfalab/core-components-badge/modern';
|
|
10
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
|
+
import '@alfalab/core-components-badge/modern';
|
|
12
11
|
import '@alfalab/core-components-checkbox/modern';
|
|
12
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
13
13
|
import './components/options-list/Component.js';
|
|
14
14
|
import 'react-virtual';
|
|
15
15
|
import '@alfalab/core-components-scrollbar/modern';
|
|
@@ -30,7 +30,7 @@ import '@alfalab/core-components-modal/modern/mobile';
|
|
|
30
30
|
import './components/base-option/Component.js';
|
|
31
31
|
import './components/base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import './intersection-observer-
|
|
33
|
+
import './intersection-observer-48ccda2c.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import './components/base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { ChevronDownMIcon } from '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
4
4
|
|
|
5
|
-
const styles = {"arrow":"
|
|
5
|
+
const styles = {"arrow":"select__arrow_10kl4","open":"select__open_10kl4"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Arrow = ({ open, className }) => (React.createElement(ChevronDownMIcon, { className: cn(styles.arrow, className, { [styles.open]: open }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1u64n */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__arrow_10kl4 {
|
|
30
30
|
display: block;
|
|
31
31
|
width: 24px;
|
|
32
32
|
height: 24px;
|
|
33
33
|
color: var(--select-arrow-color);
|
|
34
34
|
|
|
35
35
|
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
|
|
36
|
-
} .
|
|
36
|
+
} .select__open_10kl4 {
|
|
37
37
|
transform: var(--arrow-transform);
|
|
38
38
|
}
|
|
@@ -3,16 +3,15 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
|
|
6
|
-
const styles = {"checkmark":"
|
|
6
|
+
const styles = {"checkmark":"select__checkmark_mkakl","single":"select__single_mkakl","selected":"select__selected_mkakl"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const BaseCheckmark = ({ selected, disabled = false, className, multiple, }) => {
|
|
10
10
|
const checkmarkClassNames = cn(styles.checkmark, className, {
|
|
11
|
-
[styles.multiple]: multiple,
|
|
12
11
|
[styles.single]: !multiple,
|
|
13
12
|
[styles.selected]: selected,
|
|
14
13
|
});
|
|
15
|
-
return multiple ? (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm',
|
|
14
|
+
return multiple ? (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', hiddenInput: true })) : (React.createElement(CheckmarkMIcon, { className: checkmarkClassNames }));
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
export { BaseCheckmark };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 139vx */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
/* checkmark */
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
|
-
} .
|
|
26
|
+
} .select__checkmark_mkakl {
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
} .
|
|
29
|
+
} .select__single_mkakl {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
opacity: 0
|
|
34
|
-
} .
|
|
34
|
+
} .select__single_mkakl.select__selected_mkakl {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
|
4
4
|
import '@alfalab/core-components-checkbox/modern';
|
|
5
5
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
6
|
|
|
7
|
-
const styles = {"option":"
|
|
7
|
+
const styles = {"option":"select__option_bakho","disabled":"select__disabled_bakho","checkmarkBefore":"select__checkmarkBefore_bakho","mobile":"select__mobile_bakho","checkmarkAfter":"select__checkmarkAfter_bakho","textContent":"select__textContent_bakho","selected":"select__selected_bakho","highlighted":"select__highlighted_bakho","content":"select__content_bakho"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const BaseOption = ({ className, option, children, selected, highlighted, disabled, multiple, Checkmark = BaseCheckmark, checkmarkPosition = multiple ? 'before' : 'after', innerProps, dataTestId, mobile = false, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jzlj */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/* checkmark */
|
|
44
44
|
|
|
45
45
|
/* optgroup */
|
|
46
|
-
} .
|
|
46
|
+
} .select__option_bakho {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -60,32 +60,32 @@
|
|
|
60
60
|
position: relative;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
min-height: var(--size-s-height)
|
|
63
|
-
} .
|
|
63
|
+
} .select__option_bakho:not(.select__disabled_bakho):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
|
-
} .
|
|
66
|
+
} .select__option_bakho.select__checkmarkBefore_bakho {
|
|
67
67
|
padding: 0 0 0 var(--gap-s)
|
|
68
|
-
} .
|
|
68
|
+
} .select__option_bakho.select__checkmarkBefore_bakho.select__mobile_bakho {
|
|
69
69
|
padding-left: var(--gap-m);
|
|
70
|
-
} .
|
|
70
|
+
} .select__option_bakho.select__checkmarkAfter_bakho {
|
|
71
71
|
padding: 0 var(--gap-s) 0 0
|
|
72
|
-
} .
|
|
72
|
+
} .select__option_bakho.select__checkmarkAfter_bakho.select__mobile_bakho {
|
|
73
73
|
padding-right: var(--gap-l);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_bakho.select__textContent_bakho {
|
|
75
75
|
padding: var(--gap-s)
|
|
76
|
-
} .
|
|
76
|
+
} .select__option_bakho.select__textContent_bakho.select__mobile_bakho {
|
|
77
77
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
78
|
-
} .
|
|
78
|
+
} .select__selected_bakho {
|
|
79
79
|
background: var(--select-option-selected-background);
|
|
80
80
|
color: var(--select-option-selected-color);
|
|
81
81
|
cursor: default;
|
|
82
|
-
} .
|
|
82
|
+
} .select__highlighted_bakho {
|
|
83
83
|
background: var(--select-option-hover-background);
|
|
84
84
|
color: var(--select-option-hover-color);
|
|
85
|
-
} .
|
|
85
|
+
} .select__disabled_bakho {
|
|
86
86
|
cursor: var(--disabled-cursor);
|
|
87
87
|
background: var(--select-option-disabled-background);
|
|
88
88
|
color: var(--select-option-disabled-color);
|
|
89
|
-
} .
|
|
89
|
+
} .select__content_bakho {
|
|
90
90
|
flex: 1;
|
|
91
91
|
}
|
|
@@ -5,6 +5,6 @@ import 'classnames';
|
|
|
5
5
|
import 'downshift';
|
|
6
6
|
import '@alfalab/core-components-popover/modern';
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
|
-
export { B as BaseSelect } from '../../Component-
|
|
8
|
+
export { B as BaseSelect } from '../../Component-19b9374d.js';
|
|
9
9
|
import '../../utils.js';
|
|
10
10
|
import '../native-select/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17trd */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
/* checkmark */
|
|
35
35
|
|
|
36
36
|
/* optgroup */
|
|
37
|
-
} .
|
|
37
|
+
} .select__component_rdbl7 {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
|
-
} .
|
|
41
|
+
} .select__popoverInner_rdbl7 {
|
|
42
42
|
padding-top: var(--select-options-list-offset);
|
|
43
43
|
padding-bottom: var(--select-options-list-offset);
|
|
44
44
|
box-shadow: none;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
background: transparent;
|
|
47
47
|
border-radius: 0;
|
|
48
48
|
position: relative;
|
|
49
|
-
} .
|
|
49
|
+
} .select__optionsList_rdbl7 {
|
|
50
50
|
padding-top: var(--select-options-list-top-padding);
|
|
51
51
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
52
52
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
background: var(--select-option-background);
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
will-change: transform;
|
|
57
|
-
} .
|
|
57
|
+
} .select__nativeSelect_rdbl7 {
|
|
58
58
|
opacity: 0;
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
position: absolute;
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
height: 100%;
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
z-index: 1;
|
|
70
|
-
} .
|
|
70
|
+
} .select__block_rdbl7 {
|
|
71
71
|
width: 100%;
|
|
72
72
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
-
.
|
|
73
|
+
.select__component_rdbl7 {
|
|
74
74
|
float: left;
|
|
75
75
|
clear: left;
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-19b9374d";
|
|
@@ -6,8 +6,8 @@ import '@alfalab/core-components-bottom-sheet/modern';
|
|
|
6
6
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
7
7
|
import '../../Component.js';
|
|
8
8
|
import '../arrow/Component.js';
|
|
9
|
-
import '../../Component-
|
|
10
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
9
|
+
import '../../Component-19b9374d.js';
|
|
10
|
+
export { B as BaseSelectMobile } from '../../Component-3b90d09b.js';
|
|
11
11
|
import '../field/Component.js';
|
|
12
12
|
import '../optgroup/Component.js';
|
|
13
13
|
import '../option/Component.js';
|
|
@@ -18,7 +18,7 @@ import '@alfalab/hooks';
|
|
|
18
18
|
import '../../utils.js';
|
|
19
19
|
import '../base-option/Component.js';
|
|
20
20
|
import '@alfalab/core-components-skeleton/modern';
|
|
21
|
-
import '../../intersection-observer-
|
|
21
|
+
import '../../intersection-observer-48ccda2c.js';
|
|
22
22
|
import '../base-checkmark/Component.js';
|
|
23
23
|
import './checkmark/Component.js';
|
|
24
24
|
import './options-list/Component.js';
|
|
@@ -27,10 +27,10 @@ import '@juggle/resize-observer';
|
|
|
27
27
|
import '@alfalab/core-components-popover/modern';
|
|
28
28
|
import '../native-select/Component.js';
|
|
29
29
|
import '@alfalab/core-components-form-control/modern';
|
|
30
|
-
import '@alfalab/core-components-badge/modern';
|
|
31
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
32
30
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
33
31
|
import '../checkmark/Component.js';
|
|
32
|
+
import '@alfalab/core-components-badge/modern';
|
|
34
33
|
import '@alfalab/core-components-checkbox/modern';
|
|
34
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
35
35
|
import '@alfalab/core-components-button/modern';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Badge } from '@alfalab/core-components-badge/modern';
|
|
4
|
-
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
5
3
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
4
|
|
|
7
|
-
const styles = {"checkmark":"
|
|
5
|
+
const styles = {"checkmark":"select__checkmark_12ekt","selected":"select__selected_12ekt","displayIcon":"select__displayIcon_12ekt","displayBadge":"select__displayBadge_12ekt"};
|
|
8
6
|
require('./index.css')
|
|
9
7
|
|
|
10
8
|
const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
|
|
11
9
|
[styles.selected]: selected,
|
|
12
10
|
}) },
|
|
13
|
-
React.createElement(CheckmarkMIcon, { className: styles.displayIcon })
|
|
14
|
-
React.createElement(Badge, { className: styles.displayBadge, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, null) })));
|
|
11
|
+
React.createElement(CheckmarkMIcon, { className: styles.displayIcon })));
|
|
15
12
|
|
|
16
13
|
export { Checkmark };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ln2s */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_12ekt {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
opacity: 0
|
|
36
|
-
} .
|
|
36
|
+
} .select__checkmark_12ekt:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_12ekt.select__selected_12ekt {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_12ekt {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_12ekt {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1lsn6 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_1kiva {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .select__popoverInner_1kiva {
|
|
36
36
|
padding-top: var(--select-options-list-offset);
|
|
37
37
|
padding-bottom: var(--select-options-list-offset);
|
|
38
38
|
box-shadow: none;
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
background: transparent;
|
|
41
41
|
border-radius: 0;
|
|
42
42
|
position: relative;
|
|
43
|
-
} .
|
|
43
|
+
} .select__sheet_1kiva {
|
|
44
44
|
overflow: hidden;
|
|
45
|
-
} .
|
|
45
|
+
} .select__sheetContent_1kiva {
|
|
46
46
|
padding: 0;
|
|
47
|
-
} .
|
|
47
|
+
} .select__sheetContainer_1kiva {
|
|
48
48
|
padding: 0;
|
|
49
|
-
} .
|
|
49
|
+
} .select__block_1kiva {
|
|
50
50
|
width: 100%;
|
|
51
51
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
52
|
-
.
|
|
52
|
+
.select__component_1kiva {
|
|
53
53
|
float: left;
|
|
54
54
|
clear: left;
|
|
55
55
|
}
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_1kiva {
|
|
57
57
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
58
|
-
} .
|
|
58
|
+
} .select__option_1kiva:before {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .select__optionGroup_1kiva {
|
|
61
61
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-3b90d09b";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-3b90d09b.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../arrow/Component.js';
|
|
4
4
|
import 'classnames';
|
|
@@ -8,7 +8,7 @@ import 'downshift';
|
|
|
8
8
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
9
9
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
10
10
|
import '../../Component.js';
|
|
11
|
-
import '../../Component-
|
|
11
|
+
import '../../Component-19b9374d.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
@@ -19,18 +19,18 @@ import '@alfalab/core-components-form-control/modern';
|
|
|
19
19
|
import '../optgroup/Component.js';
|
|
20
20
|
import '../option/Component.js';
|
|
21
21
|
import './checkmark/Component.js';
|
|
22
|
-
import '@alfalab/core-components-badge/modern';
|
|
23
|
-
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
24
22
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
25
23
|
import '../checkmark/Component.js';
|
|
24
|
+
import '@alfalab/core-components-badge/modern';
|
|
26
25
|
import '@alfalab/core-components-checkbox/modern';
|
|
26
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
27
27
|
import '../options-list/Component.js';
|
|
28
28
|
import '@alfalab/core-components-scrollbar/modern';
|
|
29
29
|
import 'react-virtual';
|
|
30
30
|
import '../base-option/Component.js';
|
|
31
31
|
import '../base-checkmark/Component.js';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-48ccda2c.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import './options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -5,7 +5,7 @@ import { Button } from '@alfalab/core-components-button/modern';
|
|
|
5
5
|
import { isGroup } from '../../../utils.js';
|
|
6
6
|
import { Optgroup } from '../../optgroup/Component.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"optionsList":"
|
|
8
|
+
const styles = {"optionsList":"select__optionsList_1caki","emptyPlaceholder":"select__emptyPlaceholder_1caki","l":"select__l_1caki","xl":"select__xl_1caki","footer":"select__footer_1caki","footerButton":"select__footerButton_1caki","highlighted":"select__highlighted_1caki"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const createCounter = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3lrdy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
} :root {
|
|
34
34
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
35
35
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
36
|
-
} .
|
|
36
|
+
} .select__optionsList_1caki {
|
|
37
37
|
width: 100%;
|
|
38
38
|
outline: none;
|
|
39
39
|
box-sizing: border-box;
|
|
40
|
-
} .
|
|
40
|
+
} .select__emptyPlaceholder_1caki {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
43
|
+
} .select__l_1caki .select__emptyPlaceholder_1caki,
|
|
44
|
+
.select__xl_1caki .select__emptyPlaceholder_1caki {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
|
-
} .
|
|
46
|
+
} .select__footer_1caki {
|
|
47
47
|
display: flex;
|
|
48
48
|
justify-content: space-between;
|
|
49
49
|
position: sticky;
|
|
50
50
|
padding: var(--gap-m) var(--gap-m);
|
|
51
51
|
background-color: var(--color-light-bg-primary);
|
|
52
52
|
bottom: 0
|
|
53
|
-
} .
|
|
53
|
+
} .select__footer_1caki .select__footerButton_1caki:first-of-type {
|
|
54
54
|
margin-right: var(--gap-m);
|
|
55
|
-
} .
|
|
55
|
+
} .select__footerButton_1caki {
|
|
56
56
|
width: 50%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__highlighted_1caki {
|
|
58
58
|
border-top: var(--select-mobile-footer-border-top);
|
|
59
59
|
background-color: var(--select-mobile-footer-background-color);
|
|
60
60
|
}
|
|
@@ -3,20 +3,20 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Badge } from '@alfalab/core-components-badge/modern';
|
|
4
4
|
import { Checkbox } from '@alfalab/core-components-checkbox/modern';
|
|
5
5
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
|
+
import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
6
7
|
|
|
7
|
-
const styles = {"checkmark":"
|
|
8
|
+
const styles = {"checkmark":"select__checkmark_g904u","after":"select__after_g904u","single":"select__single_g904u","selected":"select__selected_g904u","before":"select__before_g904u","multiple":"select__multiple_g904u","colorIcon":"select__colorIcon_g904u"};
|
|
8
9
|
require('./index.css')
|
|
9
10
|
|
|
10
11
|
const Checkmark = ({ selected, disabled = false, className, multiple, position = 'before', }) => {
|
|
11
|
-
const single = !multiple
|
|
12
|
+
const single = !multiple;
|
|
12
13
|
const checkmarkClassNames = cn(styles.checkmark, className, styles[position], {
|
|
13
14
|
[styles.multiple]: !single,
|
|
14
15
|
[styles.single]: single,
|
|
15
16
|
[styles.selected]: selected,
|
|
16
17
|
});
|
|
17
18
|
const handleCheckboxClick = useCallback((event) => event.stopPropagation(), []);
|
|
18
|
-
return single ? (React.createElement("div", { className: checkmarkClassNames },
|
|
19
|
-
React.createElement(Badge, { className: styles.after, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, { className: styles.colorIcon }) }))) : (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
|
|
19
|
+
return single ? (React.createElement("div", { className: checkmarkClassNames }, position === 'before' ? (React.createElement(Badge, { className: styles.after, view: 'icon', size: 'm', iconColor: 'positive', content: React.createElement(CheckmarkCircleMIcon, { className: styles.colorIcon }) })) : (React.createElement(CheckmarkMIcon, { className: cn(styles.displayIcon) })))) : (React.createElement(Checkbox, { checked: selected, disabled: disabled, className: checkmarkClassNames, size: 'm', onClick: handleCheckboxClick }));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { Checkmark };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ouht */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-positive: #2fc26e;
|
|
@@ -28,18 +28,23 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
--select-checkmark-margin: 0 var(--gap-xs) 0 0;
|
|
31
|
+
--select-checkmark-margin-after: var(--select-checkmark-margin);
|
|
31
32
|
--select-checkmark-size: 4px;
|
|
32
33
|
--select-checkmark-before-display: 'flex';
|
|
33
34
|
--select-checkmark-after-display: none;
|
|
35
|
+
--select-checkmark-before-display-multiple: block;
|
|
36
|
+
--select-checkmark-after-display-single: none;
|
|
34
37
|
--select-checkmark-unselected-opacity: 0;
|
|
35
38
|
--select-checkmark-background: var(--color-light-graphic-primary);
|
|
36
39
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
37
40
|
|
|
38
41
|
/* optgroup */
|
|
39
|
-
} .
|
|
42
|
+
} .select__checkmark_g904u {
|
|
40
43
|
flex-shrink: 0;
|
|
41
|
-
margin: var(--select-checkmark-margin)
|
|
42
|
-
} .
|
|
44
|
+
margin: var(--select-checkmark-margin)
|
|
45
|
+
} .select__checkmark_g904u.select__after_g904u {
|
|
46
|
+
margin: var(--select-checkmark-margin-after);
|
|
47
|
+
} .select__single_g904u {
|
|
43
48
|
display: flex;
|
|
44
49
|
align-items: center;
|
|
45
50
|
justify-content: center;
|
|
@@ -49,14 +54,17 @@
|
|
|
49
54
|
border-radius: var(--select-checkmark-border-radius);
|
|
50
55
|
width: var(--select-checkmark-size);
|
|
51
56
|
height: var(--select-checkmark-size)
|
|
52
|
-
} .
|
|
57
|
+
} .select__single_g904u.select__selected_g904u {
|
|
53
58
|
opacity: 1;
|
|
54
|
-
} .
|
|
59
|
+
} .select__before_g904u {
|
|
55
60
|
display: var(--select-checkmark-before-display)
|
|
56
|
-
} .
|
|
61
|
+
} .select__before_g904u.select__multiple_g904u {
|
|
57
62
|
margin-right: var(--gap-s);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
display: var(--select-checkmark-before-display-multiple);
|
|
64
|
+
} .select__after_g904u {
|
|
65
|
+
display: var(--select-checkmark-after-display)
|
|
66
|
+
} .select__after_g904u.select__single_g904u {
|
|
67
|
+
display: var(--select-checkmark-after-display-single);
|
|
68
|
+
} .select__colorIcon_g904u {
|
|
61
69
|
color: var(--color-light-graphic-positive);
|
|
62
70
|
}
|