@alfalab/core-components-select 13.2.15 → 13.2.17
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-71240601.js → Component-342bab38.js} +6 -9
- package/{Component-001db41f.js → Component-9475069a.js} +3 -2
- package/Component.js +1 -1
- package/Component.responsive.js +3 -3
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +5 -5
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +6 -6
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +15 -15
- package/components/base-select/Component.js +1 -1
- package/components/base-select/index.css +19 -8
- package/components/base-select/index.d.ts +1 -1
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.js +3 -3
- package/components/base-select-mobile/checkmark/Component.js +1 -1
- package/components/base-select-mobile/checkmark/index.css +8 -8
- package/components/base-select-mobile/index.css +13 -13
- package/components/base-select-mobile/index.d.ts +1 -1
- package/components/base-select-mobile/index.js +3 -3
- package/components/base-select-mobile/options-list/Component.js +1 -1
- package/components/base-select-mobile/options-list/index.css +11 -11
- package/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +12 -12
- package/components/field/Component.js +1 -1
- package/components/field/index.css +11 -11
- package/components/index.js +3 -3
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +8 -8
- package/components/option/Component.js +1 -1
- package/components/option/index.css +22 -22
- package/components/options-list/Component.js +7 -4
- package/components/options-list/index.css +17 -8
- package/components/select-mobile/Component.js +3 -3
- package/components/select-mobile/index.d.ts +1 -1
- package/components/select-mobile/index.js +3 -3
- package/components/select-modal-mobile/Component.js +3 -3
- package/components/select-modal-mobile/index.d.ts +1 -1
- package/components/select-modal-mobile/index.js +3 -3
- package/components/virtual-options-list/Component.js +8 -5
- package/components/virtual-options-list/index.css +23 -14
- package/cssm/{Component-aaa9f3a7.js → Component-31b4153d.js} +2 -1
- package/cssm/{Component-e9709f88.js → Component-afba64fc.js} +3 -6
- package/cssm/Component.js +1 -1
- package/cssm/Component.responsive.js +2 -2
- package/cssm/components/arrow/index.module.css +2 -2
- package/cssm/components/base-checkmark/index.module.css +2 -2
- package/cssm/components/base-option/index.module.css +2 -2
- package/cssm/components/base-select/Component.js +1 -1
- package/cssm/components/base-select/index.d.ts +1 -1
- package/cssm/components/base-select/index.js +1 -1
- package/cssm/components/base-select/index.module.css +12 -1
- package/cssm/components/base-select-mobile/Component.js +2 -2
- package/cssm/components/base-select-mobile/checkmark/index.module.css +2 -2
- package/cssm/components/base-select-mobile/index.d.ts +1 -1
- package/cssm/components/base-select-mobile/index.js +2 -2
- package/cssm/components/base-select-mobile/index.module.css +2 -2
- package/cssm/components/base-select-mobile/options-list/index.module.css +2 -2
- package/cssm/components/base-select-mobile/virtual-options-list/index.module.css +2 -2
- package/cssm/components/checkmark/index.module.css +2 -2
- package/cssm/components/field/index.module.css +2 -2
- package/cssm/components/index.js +2 -2
- package/cssm/components/optgroup/index.module.css +2 -2
- package/cssm/components/option/index.module.css +2 -2
- package/cssm/components/options-list/Component.js +6 -3
- package/cssm/components/options-list/index.module.css +12 -3
- package/cssm/components/select-mobile/Component.js +2 -2
- package/cssm/components/select-mobile/index.d.ts +1 -1
- package/cssm/components/select-mobile/index.js +2 -2
- package/cssm/components/select-modal-mobile/Component.js +2 -2
- package/cssm/components/select-modal-mobile/index.d.ts +1 -1
- package/cssm/components/select-modal-mobile/index.js +2 -2
- package/cssm/components/virtual-options-list/Component.js +7 -4
- package/cssm/components/virtual-options-list/index.module.css +12 -3
- package/cssm/index-3885b0d7.d.ts +1 -1
- package/cssm/index.js +2 -2
- package/cssm/presets/index.js +2 -2
- package/cssm/presets/useSelectWithApply/hook.js +2 -2
- 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 +2 -2
- package/cssm/presets/useSelectWithApply/options-list-with-apply/index.module.css +3 -6
- package/cssm/responsive.js +2 -2
- package/esm/{Component-0a180244.js → Component-802d1cff.js} +6 -9
- package/esm/{Component-4bb3c303.js → Component-9468a354.js} +3 -2
- package/esm/Component.js +1 -1
- package/esm/Component.responsive.js +3 -3
- package/esm/components/arrow/Component.js +1 -1
- package/esm/components/arrow/index.css +5 -5
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +6 -6
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +15 -15
- package/esm/components/base-select/Component.js +1 -1
- package/esm/components/base-select/index.css +19 -8
- package/esm/components/base-select/index.d.ts +1 -1
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.js +3 -3
- package/esm/components/base-select-mobile/checkmark/Component.js +1 -1
- package/esm/components/base-select-mobile/checkmark/index.css +8 -8
- package/esm/components/base-select-mobile/index.css +13 -13
- package/esm/components/base-select-mobile/index.d.ts +1 -1
- package/esm/components/base-select-mobile/index.js +3 -3
- package/esm/components/base-select-mobile/options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/options-list/index.css +11 -11
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +12 -12
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +11 -11
- package/esm/components/index.js +3 -3
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +8 -8
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +22 -22
- package/esm/components/options-list/Component.js +7 -4
- package/esm/components/options-list/index.css +17 -8
- package/esm/components/select-mobile/Component.js +3 -3
- package/esm/components/select-mobile/index.d.ts +1 -1
- package/esm/components/select-mobile/index.js +3 -3
- package/esm/components/select-modal-mobile/Component.js +3 -3
- package/esm/components/select-modal-mobile/index.d.ts +1 -1
- package/esm/components/select-modal-mobile/index.js +3 -3
- package/esm/components/virtual-options-list/Component.js +8 -5
- package/esm/components/virtual-options-list/index.css +23 -14
- package/esm/index-3885b0d7.d.ts +1 -1
- package/esm/index.js +3 -3
- package/esm/presets/index.js +3 -3
- package/esm/presets/useLazyLoading/hook.js +2 -2
- package/esm/presets/useLazyLoading/index.css +2 -2
- package/esm/presets/useSelectWithApply/hook.js +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +6 -9
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/esm/presets/useSelectWithLoading/hook.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +2 -2
- package/esm/responsive.js +3 -3
- package/index-3885b0d7.d.ts +1 -1
- package/index.js +3 -3
- package/modern/{Component-d9a7d67e.js → Component-7337e799.js} +5 -7
- package/modern/{Component-77e84ddc.js → Component-c73c1b2e.js} +3 -2
- package/modern/Component.js +1 -1
- package/modern/Component.responsive.js +3 -3
- package/modern/components/arrow/Component.js +1 -1
- package/modern/components/arrow/index.css +5 -5
- package/modern/components/base-checkmark/Component.js +1 -1
- package/modern/components/base-checkmark/index.css +6 -6
- package/modern/components/base-option/Component.js +1 -1
- package/modern/components/base-option/index.css +15 -15
- package/modern/components/base-select/Component.js +1 -1
- package/modern/components/base-select/index.css +19 -8
- 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 +3 -3
- package/modern/components/base-select-mobile/checkmark/Component.js +1 -1
- package/modern/components/base-select-mobile/checkmark/index.css +8 -8
- package/modern/components/base-select-mobile/index.css +13 -13
- package/modern/components/base-select-mobile/index.d.ts +1 -1
- package/modern/components/base-select-mobile/index.js +3 -3
- package/modern/components/base-select-mobile/options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/options-list/index.css +11 -11
- package/modern/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/virtual-options-list/index.css +17 -17
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +12 -12
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +11 -11
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +8 -8
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +22 -22
- package/modern/components/options-list/Component.js +6 -4
- package/modern/components/options-list/index.css +17 -8
- package/modern/components/select-mobile/Component.js +3 -3
- package/modern/components/select-mobile/index.d.ts +1 -1
- package/modern/components/select-mobile/index.js +3 -3
- package/modern/components/select-modal-mobile/Component.js +3 -3
- package/modern/components/select-modal-mobile/index.d.ts +1 -1
- package/modern/components/select-modal-mobile/index.js +3 -3
- package/modern/components/virtual-options-list/Component.js +5 -3
- package/modern/components/virtual-options-list/index.css +23 -14
- package/modern/index-3885b0d7.d.ts +1 -1
- package/modern/index.js +3 -3
- package/modern/presets/index.js +3 -3
- package/modern/presets/useLazyLoading/hook.js +2 -2
- package/modern/presets/useLazyLoading/index.css +2 -2
- package/modern/presets/useSelectWithApply/hook.js +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +6 -9
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +2 -2
- package/modern/responsive.js +3 -3
- package/package.json +4 -4
- package/presets/index.js +3 -3
- package/presets/useLazyLoading/hook.js +2 -2
- package/presets/useLazyLoading/index.css +2 -2
- package/presets/useSelectWithApply/hook.js +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/Component.js +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.css +6 -9
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +3 -3
- /package/{Component-71240601.d.ts → Component-342bab38.d.ts} +0 -0
- /package/{Component-001db41f.d.ts → Component-9475069a.d.ts} +0 -0
- /package/cssm/{Component-aaa9f3a7.d.ts → Component-31b4153d.d.ts} +0 -0
- /package/cssm/{Component-e9709f88.d.ts → Component-afba64fc.d.ts} +0 -0
- /package/esm/{Component-0a180244.d.ts → Component-802d1cff.d.ts} +0 -0
- /package/esm/{Component-4bb3c303.d.ts → Component-9468a354.d.ts} +0 -0
- /package/esm/{intersection-observer-6d12bd0a.d.ts → intersection-observer-3bb4ad40.d.ts} +0 -0
- /package/esm/{intersection-observer-6d12bd0a.js → intersection-observer-3bb4ad40.js} +0 -0
- /package/{intersection-observer-dd747820.d.ts → intersection-observer-28a79b27.d.ts} +0 -0
- /package/{intersection-observer-dd747820.js → intersection-observer-28a79b27.js} +0 -0
- /package/modern/{Component-d9a7d67e.d.ts → Component-7337e799.d.ts} +0 -0
- /package/modern/{Component-77e84ddc.d.ts → Component-c73c1b2e.d.ts} +0 -0
- /package/modern/{intersection-observer-6d12bd0a.d.ts → intersection-observer-3bb4ad40.d.ts} +0 -0
- /package/modern/{intersection-observer-6d12bd0a.js → intersection-observer-3bb4ad40.js} +0 -0
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const styles = {"component":"
|
|
16
|
+
const styles = {"component":"select__component_16vig","popoverInner":"select__popoverInner_16vig","optionsList":"select__optionsList_16vig","optionsListBorder":"select__optionsListBorder_16vig","nativeSelect":"select__nativeSelect_16vig","block":"select__block_16vig"};
|
|
17
17
|
require('./components/base-select/index.css')
|
|
18
18
|
|
|
19
19
|
const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsListClassName, optionClassName, popperClassName, options, autocomplete = false, multiple = false, allowUnselect = false, disabled = false, closeOnSelect = !multiple, circularNavigation = false, nativeSelect = false, defaultOpen = false, open: openProp, popoverPosition = 'bottom-start', preventFlip = true, optionsListWidth = 'content', name, id, selected, size = 's', optionsSize = size, error, hint, block, label, labelView, placeholder, fieldProps = {}, optionsListProps = {}, optionProps = {}, valueRenderer, onChange, onOpen, onFocus, onBlur, onScroll, Arrow, Field = () => null, OptionsList = () => null, Optgroup = () => null, Option = () => null, updatePopover, zIndexPopover, showEmptyOptionsList = false, visibleOptions, }, ref) => {
|
|
@@ -247,7 +247,8 @@ const BaseSelect = forwardRef(({ dataTestId, className, fieldClassName, optionsL
|
|
|
247
247
|
}, dataTestId: getDataTestId(dataTestId, 'field'), ...fieldProps }),
|
|
248
248
|
name && !nativeSelect && renderValue(),
|
|
249
249
|
!nativeSelect && (React.createElement(Popover, { open: open, withTransition: false, anchorElement: fieldRef.current, position: popoverPosition, preventFlip: preventFlip, popperClassName: cn(styles.popoverInner, popperClassName), update: updatePopover, zIndex: zIndexPopover }, needRenderOptionsList && (React.createElement("div", { ...menuProps, className: cn(optionsListClassName, styles.optionsList) },
|
|
250
|
-
React.createElement(OptionsList, { ...optionsListProps, optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: options, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, visibleOptions: visibleOptions, onScroll: onScroll, dataTestId: getDataTestId(dataTestId, 'options-list') })
|
|
250
|
+
React.createElement(OptionsList, { ...optionsListProps, optionsListWidth: optionsListWidth, flatOptions: flatOptions, highlightedIndex: highlightedIndex, open: open, size: size, options: options, Optgroup: Optgroup, Option: Option, selectedItems: selectedItems, setSelectedItems: setSelectedItems, toggleMenu: toggleMenu, getOptionProps: getOptionProps, visibleOptions: visibleOptions, onScroll: onScroll, dataTestId: getDataTestId(dataTestId, 'options-list') }),
|
|
251
|
+
React.createElement("div", { className: styles.optionsListBorder })))))));
|
|
251
252
|
});
|
|
252
253
|
|
|
253
254
|
export { BaseSelect as B, getDataTestId as g };
|
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-c73c1b2e.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';
|
|
@@ -3,8 +3,8 @@ 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-c73c1b2e.js';
|
|
7
|
+
import { S as SelectMobile } from './Component-7337e799.js';
|
|
8
8
|
import '@alfalab/core-components-form-control/modern';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
10
|
import '@alfalab/core-components-badge/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-3bb4ad40.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_1axlr","open":"select__open_1axlr"};
|
|
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,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: l4f8i */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-graphic-primary: #0b1f35;
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-graphic-primary: #0b1f35; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__arrow_1axlr {
|
|
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_1axlr {
|
|
37
37
|
transform: var(--arrow-transform);
|
|
38
38
|
}
|
|
@@ -3,7 +3,7 @@ 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_1tmlh","single":"select__single_1tmlh","selected":"select__selected_1tmlh"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const BaseCheckmark = ({ selected, disabled = false, className, multiple, }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: s14wn */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
} :root {
|
|
3
|
+
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
7
7
|
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
/* checkmark */
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
|
-
} .
|
|
26
|
+
} .select__checkmark_1tmlh {
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
} .
|
|
29
|
+
} .select__single_1tmlh {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
opacity: 0
|
|
34
|
-
} .
|
|
34
|
+
} .select__single_1tmlh.select__selected_1tmlh {
|
|
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_56a7f","disabled":"select__disabled_56a7f","checkmarkBefore":"select__checkmarkBefore_56a7f","mobile":"select__mobile_56a7f","checkmarkAfter":"select__checkmarkAfter_56a7f","textContent":"select__textContent_56a7f","selected":"select__selected_56a7f","highlighted":"select__highlighted_56a7f","content":"select__content_56a7f"};
|
|
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,12 +1,12 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: puk7a */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
5
|
--color-light-bg-secondary: #f3f4f5;
|
|
6
6
|
--color-light-bg-tertiary: #e7e9eb;
|
|
7
7
|
--color-light-text-primary: #0b1f35;
|
|
8
|
-
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
9
|
-
} :root {
|
|
8
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
9
|
+
} :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 */
|
|
10
10
|
} :root {
|
|
11
11
|
} :root {
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/* checkmark */
|
|
44
44
|
|
|
45
45
|
/* optgroup */
|
|
46
|
-
} .
|
|
46
|
+
} .select__option_56a7f {
|
|
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_56a7f:not(.select__disabled_56a7f):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
|
-
} .
|
|
66
|
+
} .select__option_56a7f.select__checkmarkBefore_56a7f {
|
|
67
67
|
padding: 0 0 0 var(--gap-s)
|
|
68
|
-
} .
|
|
68
|
+
} .select__option_56a7f.select__checkmarkBefore_56a7f.select__mobile_56a7f {
|
|
69
69
|
padding-left: var(--gap-m);
|
|
70
|
-
} .
|
|
70
|
+
} .select__option_56a7f.select__checkmarkAfter_56a7f {
|
|
71
71
|
padding: 0 var(--gap-s) 0 0
|
|
72
|
-
} .
|
|
72
|
+
} .select__option_56a7f.select__checkmarkAfter_56a7f.select__mobile_56a7f {
|
|
73
73
|
padding-right: var(--gap-l);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_56a7f.select__textContent_56a7f {
|
|
75
75
|
padding: var(--gap-s)
|
|
76
|
-
} .
|
|
76
|
+
} .select__option_56a7f.select__textContent_56a7f.select__mobile_56a7f {
|
|
77
77
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
78
|
-
} .
|
|
78
|
+
} .select__selected_56a7f {
|
|
79
79
|
background: var(--select-option-selected-background);
|
|
80
80
|
color: var(--select-option-selected-color);
|
|
81
81
|
cursor: default;
|
|
82
|
-
} .
|
|
82
|
+
} .select__highlighted_56a7f {
|
|
83
83
|
background: var(--select-option-hover-background);
|
|
84
84
|
color: var(--select-option-hover-color);
|
|
85
|
-
} .
|
|
85
|
+
} .select__disabled_56a7f {
|
|
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_56a7f {
|
|
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-c73c1b2e.js';
|
|
9
9
|
import '../../utils.js';
|
|
10
10
|
import '../native-select/Component.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xt60 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
|
-
|
|
5
|
+
--color-light-border-secondary: #e7e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
+
} :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 */
|
|
6
7
|
} :root {
|
|
7
8
|
} :root {
|
|
8
9
|
--shadow-m: 0 0 16px rgba(11, 31, 53, 0.08), 0 8px 16px rgba(11, 31, 53, 0.16);
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
/* checkmark */
|
|
35
36
|
|
|
36
37
|
/* optgroup */
|
|
37
|
-
} .
|
|
38
|
+
} .select__component_16vig {
|
|
38
39
|
width: max-content;
|
|
39
40
|
position: relative;
|
|
40
41
|
outline: 0;
|
|
41
|
-
} .
|
|
42
|
+
} .select__popoverInner_16vig {
|
|
42
43
|
padding-top: var(--select-options-list-offset);
|
|
43
44
|
padding-bottom: var(--select-options-list-offset);
|
|
44
45
|
box-shadow: none;
|
|
@@ -46,7 +47,8 @@
|
|
|
46
47
|
background: transparent;
|
|
47
48
|
border-radius: 0;
|
|
48
49
|
position: relative;
|
|
49
|
-
} .
|
|
50
|
+
} .select__optionsList_16vig {
|
|
51
|
+
position: relative;
|
|
50
52
|
padding-top: var(--select-options-list-top-padding);
|
|
51
53
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
52
54
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -54,7 +56,16 @@
|
|
|
54
56
|
background: var(--select-option-background);
|
|
55
57
|
overflow: hidden;
|
|
56
58
|
will-change: transform;
|
|
57
|
-
} .
|
|
59
|
+
} .select__optionsListBorder_16vig {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
box-shadow: inset 0 0 0 1px var(--color-light-border-secondary);
|
|
66
|
+
border-radius: var(--select-options-list-border-radius);
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
} .select__nativeSelect_16vig {
|
|
58
69
|
opacity: 0;
|
|
59
70
|
overflow: hidden;
|
|
60
71
|
position: absolute;
|
|
@@ -67,10 +78,10 @@
|
|
|
67
78
|
height: 100%;
|
|
68
79
|
cursor: pointer;
|
|
69
80
|
z-index: 1;
|
|
70
|
-
} .
|
|
81
|
+
} .select__block_16vig {
|
|
71
82
|
width: 100%;
|
|
72
83
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
-
.
|
|
84
|
+
.select__component_16vig {
|
|
74
85
|
float: left;
|
|
75
86
|
clear: left;
|
|
76
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-c73c1b2e";
|
|
@@ -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-c73c1b2e.js';
|
|
10
|
+
export { B as BaseSelectMobile } from '../../Component-7337e799.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-3bb4ad40.js';
|
|
22
22
|
import '../base-checkmark/Component.js';
|
|
23
23
|
import './checkmark/Component.js';
|
|
24
24
|
import './options-list/Component.js';
|
|
@@ -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_1yd97","selected":"select__selected_1yd97","displayIcon":"select__displayIcon_1yd97","displayBadge":"select__displayBadge_1yd97"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Checkmark = ({ selected, className }) => (React.createElement("div", { className: cn(styles.checkmark, className, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1dz2p */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
} :root {
|
|
3
|
+
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_1yd97 {
|
|
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_1yd97:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_1yd97.select__selected_1yd97 {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_1yd97 {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_1yd97 {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ghp5f */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
} :root {
|
|
3
|
+
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
7
7
|
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_13ayh {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .select__popoverInner_13ayh {
|
|
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_13ayh {
|
|
44
44
|
overflow: hidden;
|
|
45
|
-
} .
|
|
45
|
+
} .select__sheetContent_13ayh {
|
|
46
46
|
padding: 0;
|
|
47
|
-
} .
|
|
47
|
+
} .select__sheetContainer_13ayh {
|
|
48
48
|
padding: 0;
|
|
49
|
-
} .
|
|
49
|
+
} .select__block_13ayh {
|
|
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_13ayh {
|
|
53
53
|
float: left;
|
|
54
54
|
clear: left;
|
|
55
55
|
}
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_13ayh {
|
|
57
57
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
58
|
-
} .
|
|
58
|
+
} .select__option_13ayh:before {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .select__optionGroup_13ayh {
|
|
61
61
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-7337e799";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-7337e799.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-c73c1b2e.js';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/core-components-popover/modern';
|
|
14
14
|
import '@alfalab/hooks';
|
|
@@ -30,7 +30,7 @@ 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-3bb4ad40.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_1dk2q","emptyPlaceholder":"select__emptyPlaceholder_1dk2q","l":"select__l_1dk2q","xl":"select__xl_1dk2q","footer":"select__footer_1dk2q","footerButton":"select__footerButton_1dk2q","highlighted":"select__highlighted_1dk2q"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const createCounter = () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xqsq5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
5
|
--color-light-border-primary: #dbdee1;
|
|
6
|
-
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
7
|
-
} :root {
|
|
6
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
|
+
} :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 */
|
|
8
8
|
} :root {
|
|
9
9
|
} :root {
|
|
10
10
|
|
|
@@ -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_1dk2q {
|
|
37
37
|
width: 100%;
|
|
38
38
|
outline: none;
|
|
39
39
|
box-sizing: border-box;
|
|
40
|
-
} .
|
|
40
|
+
} .select__emptyPlaceholder_1dk2q {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
43
|
+
} .select__l_1dk2q .select__emptyPlaceholder_1dk2q,
|
|
44
|
+
.select__xl_1dk2q .select__emptyPlaceholder_1dk2q {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
|
-
} .
|
|
46
|
+
} .select__footer_1dk2q {
|
|
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_1dk2q .select__footerButton_1dk2q:first-of-type {
|
|
54
54
|
margin-right: var(--gap-m);
|
|
55
|
-
} .
|
|
55
|
+
} .select__footerButton_1dk2q {
|
|
56
56
|
width: 50%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__highlighted_1dk2q {
|
|
58
58
|
border-top: var(--select-mobile-footer-border-top);
|
|
59
59
|
background-color: var(--select-mobile-footer-background-color);
|
|
60
60
|
}
|
|
@@ -7,7 +7,7 @@ import { usePrevious } from '@alfalab/hooks';
|
|
|
7
7
|
import { lastIndexOf, isGroup } from '../../../utils.js';
|
|
8
8
|
import { Optgroup } from '../../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
const styles = {"virtualOptionsList":"
|
|
10
|
+
const styles = {"virtualOptionsList":"select__virtualOptionsList_1iewz","inner":"select__inner_1iewz","virtualRow":"select__virtualRow_1iewz","highlighted":"select__highlighted_1iewz","emptyPlaceholder":"select__emptyPlaceholder_1iewz","l":"select__l_1iewz","xl":"select__xl_1iewz","footer":"select__footer_1iewz","footerButton":"select__footerButton_1iewz","footerHighlighted":"select__footerHighlighted_1iewz"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const VirtualOptionsList = forwardRef(({ flatOptions = [], highlightedIndex = -1, size = 's', className, Option, getOptionProps, options = [], Optgroup: Optgroup$1 = Optgroup, dataTestId, emptyPlaceholder, showFooter, open, onApply = () => null, onClear = () => null, }, ref) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kpno8 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
5
|
--color-light-border-primary: #dbdee1;
|
|
6
|
-
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
7
|
-
} :root {
|
|
6
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
|
+
} :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 */
|
|
8
8
|
} :root {
|
|
9
9
|
} :root {
|
|
10
10
|
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
} :root {
|
|
39
39
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
40
40
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
41
|
-
} .
|
|
41
|
+
} .select__virtualOptionsList_1iewz {
|
|
42
42
|
width: 100%;
|
|
43
43
|
outline: none;
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
position: relative;
|
|
46
|
-
} .
|
|
46
|
+
} .select__inner_1iewz {
|
|
47
47
|
position: relative;
|
|
48
48
|
width: 100%;
|
|
49
|
-
} .
|
|
49
|
+
} .select__virtualRow_1iewz {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
|
-
} .
|
|
54
|
+
} .select__virtualRow_1iewz:before {
|
|
55
55
|
content: '';
|
|
56
56
|
position: absolute;
|
|
57
57
|
z-index: 1;
|
|
@@ -61,29 +61,29 @@
|
|
|
61
61
|
height: 1px;
|
|
62
62
|
background: var(--select-option-divider-background);
|
|
63
63
|
display: var(--select-option-divider-display);
|
|
64
|
-
} .
|
|
64
|
+
} .select__virtualRow_1iewz:first-child:before {
|
|
65
65
|
display: none;
|
|
66
|
-
} .
|
|
67
|
-
.
|
|
66
|
+
} .select__highlighted_1iewz:before,
|
|
67
|
+
.select__highlighted_1iewz + .select__virtualRow_1iewz:before {
|
|
68
68
|
display: none;
|
|
69
|
-
} .
|
|
69
|
+
} .select__emptyPlaceholder_1iewz {
|
|
70
70
|
padding: var(--gap-m) var(--gap-s);
|
|
71
71
|
color: var(--select-options-list-empty-placeholder-color);
|
|
72
|
-
} .
|
|
73
|
-
.
|
|
72
|
+
} .select__l_1iewz .select__emptyPlaceholder_1iewz,
|
|
73
|
+
.select__xl_1iewz .select__emptyPlaceholder_1iewz {
|
|
74
74
|
padding: var(--gap-xl) var(--gap-m);
|
|
75
|
-
} .
|
|
75
|
+
} .select__footer_1iewz {
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: space-between;
|
|
78
78
|
position: sticky;
|
|
79
79
|
padding: var(--gap-m) var(--gap-m);
|
|
80
80
|
background-color: var(--color-light-bg-primary);
|
|
81
81
|
bottom: 0
|
|
82
|
-
} .
|
|
82
|
+
} .select__footer_1iewz .select__footerButton_1iewz:first-of-type {
|
|
83
83
|
margin-right: var(--gap-m);
|
|
84
|
-
} .
|
|
84
|
+
} .select__footerButton_1iewz {
|
|
85
85
|
width: 50%;
|
|
86
|
-
} .
|
|
86
|
+
} .select__footerHighlighted_1iewz {
|
|
87
87
|
border-top: var(--select-mobile-footer-border-top);
|
|
88
88
|
background-color: var(--select-mobile-footer-background-color);
|
|
89
89
|
}
|