@alfalab/core-components-select 13.2.17 → 13.2.18
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-9475069a.js → Component-622a0fca.js} +1 -1
- package/{Component-342bab38.js → Component-93388611.js} +4 -4
- package/Component.js +1 -1
- package/Component.responsive.js +3 -3
- package/components/arrow/Component.js +1 -1
- package/components/arrow/index.css +3 -3
- package/components/base-checkmark/Component.js +1 -1
- package/components/base-checkmark/index.css +4 -4
- package/components/base-option/Component.js +1 -1
- package/components/base-option/index.css +13 -13
- package/components/base-select/Component.js +1 -1
- package/components/base-select/index.css +9 -9
- 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 +6 -6
- 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 +3 -3
- package/components/base-select-mobile/options-list/Component.js +1 -1
- package/components/base-select-mobile/options-list/index.css +9 -9
- package/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/field/Component.js +1 -1
- package/components/field/index.css +9 -9
- package/components/index.js +3 -3
- package/components/optgroup/Component.js +1 -1
- package/components/optgroup/index.css +6 -6
- package/components/option/Component.js +1 -1
- package/components/option/index.css +20 -20
- package/components/options-list/Component.js +1 -1
- package/components/options-list/index.css +9 -9
- 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 +1 -1
- package/components/virtual-options-list/index.css +15 -15
- package/cssm/components/base-select/index.module.css +1 -1
- package/esm/{Component-9468a354.js → Component-657977aa.js} +1 -1
- package/esm/{Component-802d1cff.js → Component-e283e558.js} +4 -4
- 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 +3 -3
- package/esm/components/base-checkmark/Component.js +1 -1
- package/esm/components/base-checkmark/index.css +4 -4
- package/esm/components/base-option/Component.js +1 -1
- package/esm/components/base-option/index.css +13 -13
- package/esm/components/base-select/Component.js +1 -1
- package/esm/components/base-select/index.css +9 -9
- 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 +6 -6
- 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 +3 -3
- package/esm/components/base-select-mobile/options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/options-list/index.css +9 -9
- package/esm/components/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/esm/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/field/Component.js +1 -1
- package/esm/components/field/index.css +9 -9
- package/esm/components/index.js +3 -3
- package/esm/components/optgroup/Component.js +1 -1
- package/esm/components/optgroup/index.css +6 -6
- package/esm/components/option/Component.js +1 -1
- package/esm/components/option/index.css +20 -20
- package/esm/components/options-list/Component.js +1 -1
- package/esm/components/options-list/index.css +9 -9
- 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 +1 -1
- package/esm/components/virtual-options-list/index.css +15 -15
- 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 +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +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-c73c1b2e.js → Component-322fd90d.js} +1 -1
- package/modern/{Component-7337e799.js → Component-72ef5116.js} +4 -4
- 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 +3 -3
- package/modern/components/base-checkmark/Component.js +1 -1
- 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 +9 -9
- 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 +6 -6
- 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 +3 -3
- 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/base-select-mobile/virtual-options-list/Component.js +1 -1
- package/modern/components/base-select-mobile/virtual-options-list/index.css +15 -15
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/field/Component.js +1 -1
- package/modern/components/field/index.css +9 -9
- package/modern/components/index.js +3 -3
- package/modern/components/optgroup/Component.js +1 -1
- package/modern/components/optgroup/index.css +6 -6
- package/modern/components/option/Component.js +1 -1
- package/modern/components/option/index.css +20 -20
- package/modern/components/options-list/Component.js +1 -1
- package/modern/components/options-list/index.css +9 -9
- 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 +1 -1
- package/modern/components/virtual-options-list/index.css +15 -15
- 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 +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +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 +2 -2
- 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 +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +3 -3
- /package/{Component-9475069a.d.ts → Component-622a0fca.d.ts} +0 -0
- /package/{Component-342bab38.d.ts → Component-93388611.d.ts} +0 -0
- /package/esm/{Component-9468a354.d.ts → Component-657977aa.d.ts} +0 -0
- /package/esm/{Component-802d1cff.d.ts → Component-e283e558.d.ts} +0 -0
- /package/esm/{intersection-observer-3bb4ad40.d.ts → intersection-observer-9544c9e7.d.ts} +0 -0
- /package/esm/{intersection-observer-3bb4ad40.js → intersection-observer-9544c9e7.js} +0 -0
- /package/{intersection-observer-28a79b27.d.ts → intersection-observer-023c126a.d.ts} +0 -0
- /package/{intersection-observer-28a79b27.js → intersection-observer-023c126a.js} +0 -0
- /package/modern/{Component-c73c1b2e.d.ts → Component-322fd90d.d.ts} +0 -0
- /package/modern/{Component-7337e799.d.ts → Component-72ef5116.d.ts} +0 -0
- /package/modern/{intersection-observer-3bb4ad40.d.ts → intersection-observer-9544c9e7.d.ts} +0 -0
- /package/modern/{intersection-observer-3bb4ad40.js → intersection-observer-9544c9e7.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1w1hd */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-positive: #2fc26e;
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
--select-checkmark-border-radius: var(--border-radius-circle);
|
|
40
40
|
|
|
41
41
|
/* optgroup */
|
|
42
|
-
} .
|
|
42
|
+
} .select__checkmark_1tsbx {
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
margin: var(--select-checkmark-margin)
|
|
45
|
-
} .
|
|
45
|
+
} .select__checkmark_1tsbx.select__after_1tsbx {
|
|
46
46
|
margin: var(--select-checkmark-margin-after);
|
|
47
|
-
} .
|
|
47
|
+
} .select__single_1tsbx {
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
border-radius: var(--select-checkmark-border-radius);
|
|
55
55
|
width: var(--select-checkmark-size);
|
|
56
56
|
height: var(--select-checkmark-size)
|
|
57
|
-
} .
|
|
57
|
+
} .select__single_1tsbx.select__selected_1tsbx {
|
|
58
58
|
opacity: 1;
|
|
59
|
-
} .
|
|
59
|
+
} .select__before_1tsbx {
|
|
60
60
|
display: var(--select-checkmark-before-display)
|
|
61
|
-
} .
|
|
61
|
+
} .select__before_1tsbx.select__multiple_1tsbx {
|
|
62
62
|
margin-right: var(--gap-s);
|
|
63
63
|
display: var(--select-checkmark-before-display-multiple);
|
|
64
|
-
} .
|
|
64
|
+
} .select__after_1tsbx {
|
|
65
65
|
display: var(--select-checkmark-after-display)
|
|
66
|
-
} .
|
|
66
|
+
} .select__after_1tsbx.select__single_1tsbx {
|
|
67
67
|
display: var(--select-checkmark-after-display-single);
|
|
68
|
-
} .
|
|
68
|
+
} .select__colorIcon_1tsbx {
|
|
69
69
|
color: var(--color-light-graphic-positive);
|
|
70
70
|
}
|
|
@@ -4,7 +4,7 @@ import { FormControl } from '@alfalab/core-components-form-control/modern';
|
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import { joinOptions } from '../../utils.js';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"
|
|
7
|
+
const styles = {"component":"select__component_18re4","field":"select__field_18re4","disabled":"select__disabled_18re4","arrow":"select__arrow_18re4","placeholder":"select__placeholder_18re4","contentWrapper":"select__contentWrapper_18re4","value":"select__value_18re4","focusVisible":"select__focusVisible_18re4"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Field = ({ size = 'm', open, multiple, error, hint, disabled, label, labelView = 'inner', placeholder, selectedMultiple = [], selected, rightAddons, valueRenderer = joinOptions, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hbvyg */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_18re4 {
|
|
32
32
|
width: 100%;
|
|
33
33
|
outline: none;
|
|
34
|
-
} .
|
|
34
|
+
} .select__field_18re4:not(.select__disabled_18re4) {
|
|
35
35
|
cursor: pointer
|
|
36
|
-
} .
|
|
36
|
+
} .select__field_18re4:not(.select__disabled_18re4):hover .select__arrow_18re4 {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
|
-
} .
|
|
38
|
+
} .select__disabled_18re4 {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} /* TODO: Заюзать переменные из инпута */ .
|
|
40
|
+
} /* TODO: Заюзать переменные из инпута */ .select__placeholder_18re4 {
|
|
41
41
|
color: var(--color-light-text-secondary);
|
|
42
|
-
} .
|
|
42
|
+
} .select__contentWrapper_18re4 {
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
line-height: 20px;
|
|
45
45
|
font-weight: 400;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
text-overflow: ellipsis;
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
width: 100%;
|
|
51
|
-
} .
|
|
51
|
+
} .select__value_18re4 {
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
text-overflow: ellipsis;
|
|
54
54
|
text-align: left;
|
|
55
|
-
} .
|
|
55
|
+
} .select__focusVisible_18re4 {
|
|
56
56
|
outline: 2px solid var(--focus-color);
|
|
57
57
|
outline-offset: 2px;
|
|
58
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Arrow } from './arrow/Component.js';
|
|
2
|
-
export { B as BaseSelect } from '../Component-
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
2
|
+
export { B as BaseSelect } from '../Component-322fd90d.js';
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-72ef5116.js';
|
|
4
4
|
export { Field } from './field/Component.js';
|
|
5
5
|
export { Optgroup } from './optgroup/Component.js';
|
|
6
6
|
export { Option } from './option/Component.js';
|
|
@@ -30,7 +30,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
30
30
|
import '@alfalab/core-components-scrollbar/modern';
|
|
31
31
|
import 'react-virtual';
|
|
32
32
|
import '@alfalab/core-components-skeleton/modern';
|
|
33
|
-
import '../intersection-observer-
|
|
33
|
+
import '../intersection-observer-9544c9e7.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import './base-checkmark/Component.js';
|
|
36
36
|
import './base-select-mobile/options-list/Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"optgroup":"
|
|
4
|
+
const styles = {"optgroup":"select__optgroup_939yh","label":"select__label_939yh","l":"select__l_939yh","xl":"select__xl_939yh"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Optgroup = ({ children, className, label, size = 's' }) => (React.createElement(React.Fragment, null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ka6xz */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--select-optgroup-right-padding: var(--gap-s);
|
|
36
36
|
--select-optgroup-l-left-padding: var(--gap-m);
|
|
37
37
|
--select-optgroup-l-right-padding: var(--gap-m);
|
|
38
|
-
} .
|
|
38
|
+
} .select__optgroup_939yh {
|
|
39
39
|
position: relative;
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
background: var(--select-optgroup-background);
|
|
46
46
|
min-height: 40px
|
|
47
|
-
} .
|
|
47
|
+
} .select__optgroup_939yh + *[role='option']:before {
|
|
48
48
|
display: none;
|
|
49
|
-
} .
|
|
49
|
+
} .select__label_939yh {
|
|
50
50
|
font-size: 12px;
|
|
51
51
|
line-height: 16px;
|
|
52
52
|
font-weight: 500;
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
display: block;
|
|
57
57
|
color: var(--select-optgroup-color);
|
|
58
|
-
} .
|
|
59
|
-
.
|
|
58
|
+
} .select__l_939yh,
|
|
59
|
+
.select__xl_939yh {
|
|
60
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
62
62
|
}
|
|
@@ -7,7 +7,7 @@ import '@alfalab/core-components-badge/modern';
|
|
|
7
7
|
import '@alfalab/core-components-checkbox/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
9
|
|
|
10
|
-
const styles = {"option":"
|
|
10
|
+
const styles = {"option":"select__option_81k5j","disabled":"select__disabled_81k5j","s":"select__s_81k5j","m":"select__m_81k5j","l":"select__l_81k5j","xl":"select__xl_81k5j","selected":"select__selected_81k5j","highlighted":"select__highlighted_81k5j","content":"select__content_81k5j","textContent":"select__textContent_81k5j"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Option = ({ size = 's', className, option, children, selected, highlighted, disabled, multiple, mobile, Checkmark: Checkmark$2 = mobile ? Checkmark : Checkmark$1, innerProps, dataTestId, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vrhlc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* checkmark */
|
|
54
54
|
|
|
55
55
|
/* optgroup */
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_81k5j {
|
|
57
57
|
font-size: 16px;
|
|
58
58
|
line-height: 20px;
|
|
59
59
|
font-weight: 400;
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
box-sizing: border-box;
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer
|
|
71
|
-
} .
|
|
71
|
+
} .select__option_81k5j:not(.select__disabled_81k5j):active {
|
|
72
72
|
background: var(--select-option-active-background);
|
|
73
73
|
color: var(--select-option-active-color);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_81k5j:before {
|
|
75
75
|
content: '';
|
|
76
76
|
position: absolute;
|
|
77
77
|
left: var(--select-option-left-padding);
|
|
@@ -81,46 +81,46 @@
|
|
|
81
81
|
background: var(--select-option-divider-background);
|
|
82
82
|
display: var(--select-option-divider-display);
|
|
83
83
|
transition: opacity 0.2s ease;
|
|
84
|
-
} .
|
|
84
|
+
} .select__option_81k5j:first-child:before {
|
|
85
85
|
display: none;
|
|
86
|
-
} .
|
|
86
|
+
} .select__s_81k5j {
|
|
87
87
|
min-height: var(--size-s-height);
|
|
88
|
-
} .
|
|
88
|
+
} .select__m_81k5j {
|
|
89
89
|
min-height: var(--size-m-height);
|
|
90
|
-
} .
|
|
90
|
+
} .select__l_81k5j {
|
|
91
91
|
min-height: var(--size-l-height);
|
|
92
|
-
} .
|
|
92
|
+
} .select__xl_81k5j {
|
|
93
93
|
min-height: var(--size-xl-height);
|
|
94
|
-
} .
|
|
95
|
-
.
|
|
94
|
+
} .select__l_81k5j,
|
|
95
|
+
.select__xl_81k5j {
|
|
96
96
|
padding-left: var(--select-option-l-left-padding);
|
|
97
97
|
padding-right: var(--select-option-l-right-padding)
|
|
98
|
-
} .
|
|
98
|
+
} .select__l_81k5j:before, .select__xl_81k5j:before {
|
|
99
99
|
left: var(--select-option-l-left-padding);
|
|
100
100
|
right: var(--select-option-l-right-padding);
|
|
101
|
-
} .
|
|
101
|
+
} .select__selected_81k5j {
|
|
102
102
|
background: var(--select-option-selected-background);
|
|
103
103
|
color: var(--select-option-selected-color);
|
|
104
104
|
cursor: default;
|
|
105
|
-
} .
|
|
105
|
+
} .select__highlighted_81k5j {
|
|
106
106
|
background: var(--select-option-hover-background);
|
|
107
107
|
color: var(--select-option-hover-color)
|
|
108
|
-
} .
|
|
109
|
-
.
|
|
108
|
+
} .select__highlighted_81k5j:before,
|
|
109
|
+
.select__highlighted_81k5j + .select__option_81k5j:before {
|
|
110
110
|
opacity: 0;
|
|
111
|
-
} .
|
|
111
|
+
} .select__disabled_81k5j {
|
|
112
112
|
cursor: var(--disabled-cursor);
|
|
113
113
|
background: var(--select-option-disabled-background);
|
|
114
114
|
color: var(--select-option-disabled-color);
|
|
115
|
-
} .
|
|
115
|
+
} .select__content_81k5j {
|
|
116
116
|
overflow: hidden;
|
|
117
117
|
flex: 1;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
|
-
} .
|
|
119
|
+
} .select__textContent_81k5j {
|
|
120
120
|
padding-top: var(--gap-s);
|
|
121
121
|
padding-bottom: var(--gap-s);
|
|
122
122
|
} /* IE min-height fix */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
123
|
-
.
|
|
123
|
+
.select__option_81k5j:after {
|
|
124
124
|
min-height: inherit;
|
|
125
125
|
font-size: 0;
|
|
126
126
|
content: '';
|
|
@@ -6,7 +6,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
6
6
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
7
7
|
import { Optgroup } from '../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"optionsList":"
|
|
9
|
+
const styles = {"optionsList":"select__optionsList_iwe7t","optionsListHeader":"select__optionsListHeader_iwe7t","optionsListFooter":"select__optionsListFooter_iwe7t","withBorder":"select__withBorder_iwe7t","scrollable":"select__scrollable_iwe7t","emptyPlaceholder":"select__emptyPlaceholder_iwe7t","l":"select__l_iwe7t","xl":"select__xl_iwe7t"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const createCounter = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: boa7f */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e7e9eb;
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
/* checkmark */
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
|
-
} .
|
|
32
|
+
} .select__optionsList_iwe7t {
|
|
33
33
|
overflow: auto;
|
|
34
34
|
width: 100%;
|
|
35
35
|
outline: none;
|
|
36
36
|
box-sizing: border-box;
|
|
37
|
-
} .
|
|
37
|
+
} .select__optionsListHeader_iwe7t {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
40
|
-
} .
|
|
40
|
+
} .select__optionsListFooter_iwe7t {
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
border-top: 1px solid transparent
|
|
43
|
-
} .
|
|
43
|
+
} .select__optionsListFooter_iwe7t.select__withBorder_iwe7t {
|
|
44
44
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
45
|
-
} .
|
|
45
|
+
} .select__scrollable_iwe7t {
|
|
46
46
|
overflow: auto;
|
|
47
47
|
width: 100%;
|
|
48
|
-
} .
|
|
48
|
+
} .select__emptyPlaceholder_iwe7t {
|
|
49
49
|
padding: var(--gap-m) var(--gap-s);
|
|
50
50
|
color: var(--select-options-list-empty-placeholder-color);
|
|
51
|
-
} .
|
|
52
|
-
.
|
|
51
|
+
} .select__l_iwe7t .select__emptyPlaceholder_iwe7t,
|
|
52
|
+
.select__xl_iwe7t .select__emptyPlaceholder_iwe7t {
|
|
53
53
|
padding: var(--gap-xl) var(--gap-m);
|
|
54
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../arrow/Component.js';
|
|
3
|
-
export { S as SelectMobile } from '../../Component-
|
|
3
|
+
export { S as SelectMobile } from '../../Component-72ef5116.js';
|
|
4
4
|
import '../field/Component.js';
|
|
5
5
|
import '../optgroup/Component.js';
|
|
6
6
|
import '../option/Component.js';
|
|
@@ -11,7 +11,7 @@ import 'downshift';
|
|
|
11
11
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
12
12
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
13
13
|
import '../../Component.js';
|
|
14
|
-
import '../../Component-
|
|
14
|
+
import '../../Component-322fd90d.js';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import '@alfalab/core-components-popover/modern';
|
|
17
17
|
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-9544c9e7.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-72ef5116";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
1
|
+
export { S as SelectMobile } from '../../Component-72ef5116.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-322fd90d.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-9544c9e7.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../arrow/Component.js';
|
|
3
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
3
|
+
export { a as SelectModalMobile } from '../../Component-72ef5116.js';
|
|
4
4
|
import '../field/Component.js';
|
|
5
5
|
import '../optgroup/Component.js';
|
|
6
6
|
import '../option/Component.js';
|
|
@@ -11,7 +11,7 @@ import 'downshift';
|
|
|
11
11
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
12
12
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
13
13
|
import '../../Component.js';
|
|
14
|
-
import '../../Component-
|
|
14
|
+
import '../../Component-322fd90d.js';
|
|
15
15
|
import '@juggle/resize-observer';
|
|
16
16
|
import '@alfalab/core-components-popover/modern';
|
|
17
17
|
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-9544c9e7.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-72ef5116";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as SelectModalMobile } from '../../Component-
|
|
1
|
+
export { a as SelectModalMobile } from '../../Component-72ef5116.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-322fd90d.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-9544c9e7.js';
|
|
34
34
|
import '@alfalab/core-components-button/modern';
|
|
35
35
|
import '../base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
@@ -6,7 +6,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
6
6
|
import { usePrevious, lastIndexOf, useVisibleOptions, isGroup } from '../../utils.js';
|
|
7
7
|
import { Optgroup } from '../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"virtualOptionsList":"
|
|
9
|
+
const styles = {"virtualOptionsList":"select__virtualOptionsList_cbwl3","virtualOptionsListHeader":"select__virtualOptionsListHeader_cbwl3","virtualOptionsListFooter":"select__virtualOptionsListFooter_cbwl3","withBorder":"select__withBorder_cbwl3","scrollable":"select__scrollable_cbwl3","inner":"select__inner_cbwl3","virtualRow":"select__virtualRow_cbwl3","highlighted":"select__highlighted_cbwl3","emptyPlaceholder":"select__emptyPlaceholder_cbwl3","l":"select__l_cbwl3","xl":"select__xl_cbwl3"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8q429 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -35,31 +35,31 @@
|
|
|
35
35
|
/* checkmark */
|
|
36
36
|
|
|
37
37
|
/* optgroup */
|
|
38
|
-
} .
|
|
38
|
+
} .select__virtualOptionsList_cbwl3 {
|
|
39
39
|
width: 100%;
|
|
40
40
|
outline: none;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: relative;
|
|
43
|
-
} .
|
|
43
|
+
} .select__virtualOptionsListHeader_cbwl3 {
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
46
|
-
} .
|
|
46
|
+
} .select__virtualOptionsListFooter_cbwl3 {
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
border-top: 1px solid transparent
|
|
49
|
-
} .
|
|
49
|
+
} .select__virtualOptionsListFooter_cbwl3.select__withBorder_cbwl3 {
|
|
50
50
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
51
|
-
} .
|
|
51
|
+
} .select__scrollable_cbwl3 {
|
|
52
52
|
overflow: auto;
|
|
53
53
|
width: 100%;
|
|
54
|
-
} .
|
|
54
|
+
} .select__inner_cbwl3 {
|
|
55
55
|
position: relative;
|
|
56
56
|
width: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__virtualRow_cbwl3 {
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 0;
|
|
60
60
|
left: 0;
|
|
61
61
|
width: 100%
|
|
62
|
-
} .
|
|
62
|
+
} .select__virtualRow_cbwl3:before {
|
|
63
63
|
content: '';
|
|
64
64
|
position: absolute;
|
|
65
65
|
z-index: 1;
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
height: 1px;
|
|
70
70
|
background: var(--select-option-divider-background);
|
|
71
71
|
display: var(--select-option-divider-display);
|
|
72
|
-
} .
|
|
72
|
+
} .select__virtualRow_cbwl3:first-child:before {
|
|
73
73
|
display: none;
|
|
74
|
-
} .
|
|
75
|
-
.
|
|
74
|
+
} .select__highlighted_cbwl3:before,
|
|
75
|
+
.select__highlighted_cbwl3 + .select__virtualRow_cbwl3:before {
|
|
76
76
|
display: none;
|
|
77
|
-
} .
|
|
77
|
+
} .select__emptyPlaceholder_cbwl3 {
|
|
78
78
|
padding: var(--gap-m) var(--gap-s);
|
|
79
79
|
color: var(--select-options-list-empty-placeholder-color);
|
|
80
|
-
} .
|
|
81
|
-
.
|
|
80
|
+
} .select__l_cbwl3 .select__emptyPlaceholder_cbwl3,
|
|
81
|
+
.select__xl_cbwl3 .select__emptyPlaceholder_cbwl3 {
|
|
82
82
|
padding: var(--gap-xl) var(--gap-m);
|
|
83
83
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Select } from './Component.js';
|
|
2
2
|
export { Arrow } from './components/arrow/Component.js';
|
|
3
|
-
export { B as BaseSelect } from './Component-
|
|
4
|
-
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-
|
|
3
|
+
export { B as BaseSelect } from './Component-322fd90d.js';
|
|
4
|
+
export { b as SELECT_ALL_KEY, S as SelectMobile, a as SelectModalMobile, u as useSelectWithApply } from './Component-72ef5116.js';
|
|
5
5
|
export { Field } from './components/field/Component.js';
|
|
6
6
|
export { Optgroup } from './components/optgroup/Component.js';
|
|
7
7
|
export { Option } from './components/option/Component.js';
|
|
@@ -32,7 +32,7 @@ import '@alfalab/core-components-bottom-sheet/modern';
|
|
|
32
32
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
33
33
|
import 'react-virtual';
|
|
34
34
|
import '@alfalab/core-components-skeleton/modern';
|
|
35
|
-
import './intersection-observer-
|
|
35
|
+
import './intersection-observer-9544c9e7.js';
|
|
36
36
|
import '@alfalab/core-components-button/modern';
|
|
37
37
|
import './components/base-checkmark/Component.js';
|
|
38
38
|
import './components/base-select-mobile/options-list/Component.js';
|
package/modern/presets/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
|
|
2
2
|
export { useLazyLoading } from './useLazyLoading/hook.js';
|
|
3
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-
|
|
3
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../Component-72ef5116.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@alfalab/core-components-skeleton/modern';
|
|
6
6
|
import '../components/option/Component.js';
|
|
@@ -11,7 +11,7 @@ import '../components/checkmark/Component.js';
|
|
|
11
11
|
import '@alfalab/core-components-badge/modern';
|
|
12
12
|
import '@alfalab/core-components-checkbox/modern';
|
|
13
13
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
14
|
-
import '../intersection-observer-
|
|
14
|
+
import '../intersection-observer-9544c9e7.js';
|
|
15
15
|
import '../components/arrow/Component.js';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
17
17
|
import 'react-merge-refs';
|
|
@@ -19,7 +19,7 @@ import 'downshift';
|
|
|
19
19
|
import '@alfalab/core-components-bottom-sheet/modern';
|
|
20
20
|
import '@alfalab/core-components-modal/modern/mobile';
|
|
21
21
|
import '../Component.js';
|
|
22
|
-
import '../Component-
|
|
22
|
+
import '../Component-322fd90d.js';
|
|
23
23
|
import '@juggle/resize-observer';
|
|
24
24
|
import '@alfalab/core-components-popover/modern';
|
|
25
25
|
import '@alfalab/hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
2
2
|
import { Skeleton } from '@alfalab/core-components-skeleton/modern';
|
|
3
3
|
import { Option } from '../../components/option/Component.js';
|
|
4
|
-
import '../../intersection-observer-
|
|
4
|
+
import '../../intersection-observer-9544c9e7.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../components/base-select-mobile/checkmark/Component.js';
|
|
7
7
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-badge/modern';
|
|
|
10
10
|
import '@alfalab/core-components-checkbox/modern';
|
|
11
11
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
12
|
|
|
13
|
-
const styles = {"skeleton":"
|
|
13
|
+
const styles = {"skeleton":"select__skeleton_qtbgz"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
const DEBOUNCE_TIMEOUT = 300;
|
|
@@ -2,8 +2,8 @@ import 'react';
|
|
|
2
2
|
import '../../Component.js';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
5
|
-
import '../../Component-
|
|
6
|
-
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-
|
|
5
|
+
import '../../Component-322fd90d.js';
|
|
6
|
+
export { b as SELECT_ALL_KEY, u as useSelectWithApply } from '../../Component-72ef5116.js';
|
|
7
7
|
import '@alfalab/core-components-form-control/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
9
|
import '../../utils.js';
|
|
@@ -15,7 +15,7 @@ import '../../components/options-list/Component.js';
|
|
|
15
15
|
import 'react-virtual';
|
|
16
16
|
import '@alfalab/core-components-scrollbar/modern';
|
|
17
17
|
import '@alfalab/core-components-skeleton/modern';
|
|
18
|
-
import '../../intersection-observer-
|
|
18
|
+
import '../../intersection-observer-9544c9e7.js';
|
|
19
19
|
import '../../components/arrow/Component.js';
|
|
20
20
|
import '../../components/field/Component.js';
|
|
21
21
|
import '../../components/optgroup/Component.js';
|
|
@@ -2,8 +2,8 @@ import 'react';
|
|
|
2
2
|
import '@alfalab/core-components-button/modern';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
5
|
-
import '../../../Component-
|
|
6
|
-
export { O as OptionsListWithApply } from '../../../Component-
|
|
5
|
+
import '../../../Component-322fd90d.js';
|
|
6
|
+
export { O as OptionsListWithApply } from '../../../Component-72ef5116.js';
|
|
7
7
|
import '@alfalab/core-components-form-control/modern';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
@@ -31,7 +31,7 @@ import '../../../components/checkmark/Component.js';
|
|
|
31
31
|
import '../../../components/base-option/Component.js';
|
|
32
32
|
import '../../../components/base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/modern';
|
|
34
|
-
import '../../../intersection-observer-
|
|
34
|
+
import '../../../intersection-observer-9544c9e7.js';
|
|
35
35
|
import '../../../components/base-select-mobile/options-list/Component.js';
|
|
36
36
|
import '@alfalab/core-components-base-modal/modern';
|
|
37
37
|
import '../../../components/base-select-mobile/virtual-options-list/Component.js';
|