@alfalab/core-components-select 14.0.0 → 14.0.2
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-f1a1856f.js → Component-dd926cf7.js} +1 -1
- package/Component.d.ts +4 -0
- 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 +2 -2
- package/components/base-select/index.css +8 -8
- package/components/base-select/index.js +1 -1
- package/components/base-select-mobile/Component.js +2 -2
- package/components/base-select-mobile/footer/Component.js +1 -1
- package/components/base-select-mobile/footer/index.css +5 -5
- package/components/base-select-mobile/index.css +10 -10
- package/components/base-select-mobile/index.js +1 -1
- package/components/checkmark/Component.js +1 -1
- package/components/checkmark/index.css +10 -10
- package/components/checkmark-mobile/Component.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/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/Component.d.ts +4 -0
- package/cssm/index-ebda875c.d.ts +1 -1
- package/esm/{Component-b5248298.js → Component-d6246282.js} +1 -1
- package/esm/Component.d.ts +4 -0
- 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 +2 -2
- package/esm/components/base-select/index.css +8 -8
- package/esm/components/base-select/index.js +1 -1
- package/esm/components/base-select-mobile/Component.js +2 -2
- package/esm/components/base-select-mobile/footer/Component.js +1 -1
- package/esm/components/base-select-mobile/footer/index.css +5 -5
- package/esm/components/base-select-mobile/index.css +10 -10
- package/esm/components/base-select-mobile/index.js +1 -1
- package/esm/components/checkmark/Component.js +1 -1
- package/esm/components/checkmark/index.css +10 -10
- package/esm/components/checkmark-mobile/Component.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/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-ebda875c.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/footer/Component.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/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-ebda875c.d.ts +1 -1
- package/index.js +3 -3
- package/modern/{Component-29d24a9b.js → Component-55395944.js} +1 -1
- package/modern/Component.d.ts +4 -0
- 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 +2 -2
- package/modern/components/base-select/index.css +8 -8
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +2 -2
- package/modern/components/base-select-mobile/footer/Component.js +1 -1
- package/modern/components/base-select-mobile/footer/index.css +5 -5
- package/modern/components/base-select-mobile/index.css +10 -10
- package/modern/components/base-select-mobile/index.js +1 -1
- package/modern/components/checkmark/Component.js +1 -1
- package/modern/components/checkmark/index.css +10 -10
- package/modern/components/checkmark-mobile/Component.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/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-ebda875c.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/footer/Component.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/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 +6 -6
- 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/footer/Component.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/footer/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-f1a1856f.d.ts → Component-dd926cf7.d.ts} +0 -0
- /package/esm/{Component-b5248298.d.ts → Component-d6246282.d.ts} +0 -0
- /package/esm/{getDataTestId-015e89f1.d.ts → getDataTestId-78e42ffe.d.ts} +0 -0
- /package/esm/{getDataTestId-015e89f1.js → getDataTestId-78e42ffe.js} +0 -0
- /package/esm/{intersection-observer-961b54c8.d.ts → intersection-observer-6ef082f5.d.ts} +0 -0
- /package/esm/{intersection-observer-961b54c8.js → intersection-observer-6ef082f5.js} +0 -0
- /package/{getDataTestId-3deaae20.d.ts → getDataTestId-305ed968.d.ts} +0 -0
- /package/{getDataTestId-3deaae20.js → getDataTestId-305ed968.js} +0 -0
- /package/{intersection-observer-d5f3e178.d.ts → intersection-observer-95e396cc.d.ts} +0 -0
- /package/{intersection-observer-d5f3e178.js → intersection-observer-95e396cc.js} +0 -0
- /package/modern/{Component-29d24a9b.d.ts → Component-55395944.d.ts} +0 -0
- /package/modern/{getDataTestId-b257b571.d.ts → getDataTestId-f5aec7f0.d.ts} +0 -0
- /package/modern/{getDataTestId-b257b571.js → getDataTestId-f5aec7f0.js} +0 -0
- /package/modern/{intersection-observer-961b54c8.d.ts → intersection-observer-6ef082f5.d.ts} +0 -0
- /package/modern/{intersection-observer-961b54c8.js → intersection-observer-6ef082f5.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wd6d9 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
/* checkmark */
|
|
37
37
|
|
|
38
38
|
/* optgroup */
|
|
39
|
-
} .
|
|
39
|
+
} .select__component_1wmka {
|
|
40
40
|
width: max-content;
|
|
41
41
|
position: relative;
|
|
42
42
|
outline: 0;
|
|
43
|
-
} .
|
|
43
|
+
} .select__popoverInner_1wmka {
|
|
44
44
|
padding-top: var(--select-options-list-offset);
|
|
45
45
|
padding-bottom: var(--select-options-list-offset);
|
|
46
46
|
box-shadow: none;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
background: transparent;
|
|
49
49
|
border-radius: 0;
|
|
50
50
|
position: relative;
|
|
51
|
-
} .
|
|
51
|
+
} .select__optionsList_1wmka {
|
|
52
52
|
position: relative;
|
|
53
53
|
padding-top: var(--select-options-list-top-padding);
|
|
54
54
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
background: var(--select-option-background);
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
will-change: transform;
|
|
60
|
-
} .
|
|
60
|
+
} .select__optionsListBorder_1wmka {
|
|
61
61
|
position: absolute;
|
|
62
62
|
top: 0;
|
|
63
63
|
right: 0;
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
box-shadow: inset 0 0 0 1px var(--color-light-border-secondary);
|
|
67
67
|
border-radius: inherit;
|
|
68
68
|
pointer-events: none;
|
|
69
|
-
} .
|
|
69
|
+
} .select__nativeSelect_1wmka {
|
|
70
70
|
opacity: 0;
|
|
71
71
|
overflow: hidden;
|
|
72
72
|
position: absolute;
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
height: 100%;
|
|
80
80
|
cursor: pointer;
|
|
81
81
|
z-index: 1;
|
|
82
|
-
} .
|
|
82
|
+
} .select__block_1wmka {
|
|
83
83
|
width: 100%;
|
|
84
84
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
85
|
-
.
|
|
85
|
+
.select__component_1wmka {
|
|
86
86
|
float: left;
|
|
87
87
|
clear: left;
|
|
88
88
|
}
|
|
@@ -7,6 +7,6 @@ import 'classnames';
|
|
|
7
7
|
import 'downshift';
|
|
8
8
|
import '@alfalab/core-components-popover/esm';
|
|
9
9
|
import '@alfalab/hooks';
|
|
10
|
-
import '../../getDataTestId-
|
|
10
|
+
import '../../getDataTestId-78e42ffe.js';
|
|
11
11
|
import '../../utils.js';
|
|
12
12
|
import '../native-select/Component.js';
|
|
@@ -5,7 +5,7 @@ import cn from 'classnames';
|
|
|
5
5
|
import { useMultipleSelection, useCombobox } from 'downshift';
|
|
6
6
|
import { BottomSheet } from '@alfalab/core-components-bottom-sheet/esm';
|
|
7
7
|
import { ModalMobile } from '@alfalab/core-components-modal/esm/mobile';
|
|
8
|
-
import { g as getDataTestId } from '../../getDataTestId-
|
|
8
|
+
import { g as getDataTestId } from '../../getDataTestId-78e42ffe.js';
|
|
9
9
|
import { processOptions } from '../../utils.js';
|
|
10
10
|
import { Arrow } from '../arrow/Component.js';
|
|
11
11
|
import { Field } from '../field/Component.js';
|
|
@@ -23,7 +23,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
23
23
|
import '../checkmark-mobile/Component.js';
|
|
24
24
|
import '@alfalab/core-components-scrollbar/esm';
|
|
25
25
|
|
|
26
|
-
var styles = {"component":"
|
|
26
|
+
var styles = {"component":"select__component_1kud4","sheet":"select__sheet_1kud4","sheetContent":"select__sheetContent_1kud4","sheetContainer":"select__sheetContainer_1kud4","block":"select__block_1kud4","option":"select__option_1kud4","optionGroup":"select__optionGroup_1kud4"};
|
|
27
27
|
require('./index.css')
|
|
28
28
|
|
|
29
29
|
var BaseSelectMobile = forwardRef(function (_a, ref) {
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
4
4
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"footer":"
|
|
6
|
+
var styles = {"footer":"select__footer_1hyp1","button":"select__button_1hyp1","highlighted":"select__highlighted_1hyp1"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4ostk */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
/* checkmark */
|
|
27
27
|
|
|
28
28
|
/* optgroup */
|
|
29
|
-
} .
|
|
29
|
+
} .select__footer_1hyp1 {
|
|
30
30
|
display: flex;
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
width: 100%;
|
|
33
33
|
padding: var(--gap-m) var(--gap-m);
|
|
34
34
|
background-color: var(--color-light-bg-primary)
|
|
35
|
-
} .
|
|
35
|
+
} .select__footer_1hyp1 .select__button_1hyp1:first-of-type {
|
|
36
36
|
margin-right: var(--gap-m);
|
|
37
|
-
} .
|
|
37
|
+
} .select__button_1hyp1 {
|
|
38
38
|
width: 50%;
|
|
39
|
-
} .
|
|
39
|
+
} .select__highlighted_1hyp1 {
|
|
40
40
|
border-top: 1px solid var(--color-light-border-primary);
|
|
41
41
|
background-color: var(--color-light-bg-primary);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: t2elb */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -27,27 +27,27 @@
|
|
|
27
27
|
/* checkmark */
|
|
28
28
|
|
|
29
29
|
/* optgroup */
|
|
30
|
-
} .
|
|
30
|
+
} .select__component_1kud4 {
|
|
31
31
|
width: max-content;
|
|
32
32
|
position: relative;
|
|
33
33
|
outline: 0;
|
|
34
|
-
} .
|
|
34
|
+
} .select__sheet_1kud4 {
|
|
35
35
|
overflow: hidden;
|
|
36
|
-
} .
|
|
36
|
+
} .select__sheetContent_1kud4 {
|
|
37
37
|
padding: 0;
|
|
38
|
-
} .
|
|
38
|
+
} .select__sheetContainer_1kud4 {
|
|
39
39
|
padding: 0;
|
|
40
|
-
} .
|
|
40
|
+
} .select__block_1kud4 {
|
|
41
41
|
width: 100%;
|
|
42
42
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
43
|
-
.
|
|
43
|
+
.select__component_1kud4 {
|
|
44
44
|
float: left;
|
|
45
45
|
clear: left;
|
|
46
46
|
}
|
|
47
|
-
} .
|
|
47
|
+
} .select__option_1kud4 {
|
|
48
48
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
49
|
-
} .
|
|
49
|
+
} .select__option_1kud4:before {
|
|
50
50
|
display: none;
|
|
51
|
-
} .
|
|
51
|
+
} .select__optionGroup_1kud4 {
|
|
52
52
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
53
53
|
}
|
|
@@ -6,7 +6,7 @@ import 'classnames';
|
|
|
6
6
|
import 'downshift';
|
|
7
7
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
8
8
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
9
|
-
import '../../getDataTestId-
|
|
9
|
+
import '../../getDataTestId-78e42ffe.js';
|
|
10
10
|
import '../../utils.js';
|
|
11
11
|
import '../arrow/Component.js';
|
|
12
12
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -5,7 +5,7 @@ import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
|
5
5
|
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
6
6
|
import CheckmarkMIcon from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"checkmark":"
|
|
8
|
+
var styles = {"checkmark":"select__checkmark_1d791","after":"select__after_1d791","single":"select__single_1d791","selected":"select__selected_1d791","before":"select__before_1d791","multiple":"select__multiple_1d791","colorIcon":"select__colorIcon_1d791"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jsls */
|
|
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_1d791 {
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
margin: var(--select-checkmark-margin)
|
|
45
|
-
} .
|
|
45
|
+
} .select__checkmark_1d791.select__after_1d791 {
|
|
46
46
|
margin: var(--select-checkmark-margin-after);
|
|
47
|
-
} .
|
|
47
|
+
} .select__single_1d791 {
|
|
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_1d791.select__selected_1d791 {
|
|
58
58
|
opacity: 1;
|
|
59
|
-
} .
|
|
59
|
+
} .select__before_1d791 {
|
|
60
60
|
display: var(--select-checkmark-before-display)
|
|
61
|
-
} .
|
|
61
|
+
} .select__before_1d791.select__multiple_1d791 {
|
|
62
62
|
margin-right: var(--gap-s);
|
|
63
63
|
display: var(--select-checkmark-before-display-multiple);
|
|
64
|
-
} .
|
|
64
|
+
} .select__after_1d791 {
|
|
65
65
|
display: var(--select-checkmark-after-display)
|
|
66
|
-
} .
|
|
66
|
+
} .select__after_1d791.select__single_1d791 {
|
|
67
67
|
display: var(--select-checkmark-after-display-single);
|
|
68
|
-
} .
|
|
68
|
+
} .select__colorIcon_1d791 {
|
|
69
69
|
color: var(--color-light-graphic-positive);
|
|
70
70
|
}
|
|
@@ -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
|
-
var styles = {"checkmark":"
|
|
5
|
+
var styles = {"checkmark":"select__checkmark_730mj","selected":"select__selected_730mj","displayIcon":"select__displayIcon_730mj","displayBadge":"select__displayBadge_730mj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7hfg3 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_730mj {
|
|
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_730mj:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_730mj.select__selected_730mj {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_730mj {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_730mj {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -5,7 +5,7 @@ import { FormControl } from '@alfalab/core-components-form-control/esm';
|
|
|
5
5
|
import { useFocus } from '@alfalab/hooks';
|
|
6
6
|
import { joinOptions } from '../../utils.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"select__component_13rlp","field":"select__field_13rlp","disabled":"select__disabled_13rlp","arrow":"select__arrow_13rlp","placeholder":"select__placeholder_13rlp","contentWrapper":"select__contentWrapper_13rlp","value":"select__value_13rlp","focusVisible":"select__focusVisible_13rlp"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Field = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 137kq */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #0072ef;
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_13rlp {
|
|
32
32
|
width: 100%;
|
|
33
33
|
outline: none;
|
|
34
|
-
} .
|
|
34
|
+
} .select__field_13rlp:not(.select__disabled_13rlp) {
|
|
35
35
|
cursor: pointer
|
|
36
|
-
} .
|
|
36
|
+
} .select__field_13rlp:not(.select__disabled_13rlp):hover .select__arrow_13rlp {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
|
-
} .
|
|
38
|
+
} .select__disabled_13rlp {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} /* TODO: Заюзать переменные из инпута */ .
|
|
40
|
+
} /* TODO: Заюзать переменные из инпута */ .select__placeholder_13rlp {
|
|
41
41
|
color: var(--color-light-text-secondary);
|
|
42
|
-
} .
|
|
42
|
+
} .select__contentWrapper_13rlp {
|
|
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_13rlp {
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
text-overflow: ellipsis;
|
|
54
54
|
text-align: left;
|
|
55
|
-
} .
|
|
55
|
+
} .select__focusVisible_13rlp {
|
|
56
56
|
outline: 2px solid var(--focus-color);
|
|
57
57
|
outline-offset: 2px;
|
|
58
58
|
}
|
package/esm/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Arrow } from './arrow/Component.js';
|
|
2
2
|
export { BaseSelect } from './base-select/Component.js';
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-d6246282.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';
|
|
@@ -16,7 +16,7 @@ import '@juggle/resize-observer';
|
|
|
16
16
|
import 'downshift';
|
|
17
17
|
import '@alfalab/core-components-popover/esm';
|
|
18
18
|
import '@alfalab/hooks';
|
|
19
|
-
import '../getDataTestId-
|
|
19
|
+
import '../getDataTestId-78e42ffe.js';
|
|
20
20
|
import '../utils.js';
|
|
21
21
|
import './native-select/Component.js';
|
|
22
22
|
import '../Component.js';
|
|
@@ -32,7 +32,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
32
32
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
33
33
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
34
34
|
import '@alfalab/core-components-skeleton/esm';
|
|
35
|
-
import '../intersection-observer-
|
|
35
|
+
import '../intersection-observer-6ef082f5.js';
|
|
36
36
|
import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
37
37
|
import './checkmark/Component.js';
|
|
38
38
|
import './checkmark-mobile/Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"optgroup":"
|
|
4
|
+
var styles = {"optgroup":"select__optgroup_1w4d8","label":"select__label_1w4d8","l":"select__l_1w4d8","xl":"select__xl_1w4d8"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Optgroup = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gdyb3 */
|
|
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_1w4d8 {
|
|
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_1w4d8 + *[role='option']:before {
|
|
48
48
|
display: none;
|
|
49
|
-
} .
|
|
49
|
+
} .select__label_1w4d8 {
|
|
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_1w4d8,
|
|
59
|
+
.select__xl_1w4d8 {
|
|
60
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
62
62
|
}
|
|
@@ -8,7 +8,7 @@ import '@alfalab/core-components-checkbox/esm';
|
|
|
8
8
|
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
9
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
10
10
|
|
|
11
|
-
var styles = {"option":"
|
|
11
|
+
var styles = {"option":"select__option_soqre","disabled":"select__disabled_soqre","s":"select__s_soqre","m":"select__m_soqre","l":"select__l_soqre","xl":"select__xl_soqre","selected":"select__selected_soqre","highlighted":"select__highlighted_soqre","content":"select__content_soqre","textContent":"select__textContent_soqre"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Option = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1na65 */
|
|
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_soqre {
|
|
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_soqre:not(.select__disabled_soqre):active {
|
|
72
72
|
background: var(--select-option-active-background);
|
|
73
73
|
color: var(--select-option-active-color);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_soqre: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_soqre:first-child:before {
|
|
85
85
|
display: none;
|
|
86
|
-
} .
|
|
86
|
+
} .select__s_soqre {
|
|
87
87
|
min-height: var(--size-s-height);
|
|
88
|
-
} .
|
|
88
|
+
} .select__m_soqre {
|
|
89
89
|
min-height: var(--size-m-height);
|
|
90
|
-
} .
|
|
90
|
+
} .select__l_soqre {
|
|
91
91
|
min-height: var(--size-l-height);
|
|
92
|
-
} .
|
|
92
|
+
} .select__xl_soqre {
|
|
93
93
|
min-height: var(--size-xl-height);
|
|
94
|
-
} .
|
|
95
|
-
.
|
|
94
|
+
} .select__l_soqre,
|
|
95
|
+
.select__xl_soqre {
|
|
96
96
|
padding-left: var(--select-option-l-left-padding);
|
|
97
97
|
padding-right: var(--select-option-l-right-padding)
|
|
98
|
-
} .
|
|
98
|
+
} .select__l_soqre:before, .select__xl_soqre:before {
|
|
99
99
|
left: var(--select-option-l-left-padding);
|
|
100
100
|
right: var(--select-option-l-right-padding);
|
|
101
|
-
} .
|
|
101
|
+
} .select__selected_soqre {
|
|
102
102
|
background: var(--select-option-selected-background);
|
|
103
103
|
color: var(--select-option-selected-color);
|
|
104
104
|
cursor: default;
|
|
105
|
-
} .
|
|
105
|
+
} .select__highlighted_soqre {
|
|
106
106
|
background: var(--select-option-hover-background);
|
|
107
107
|
color: var(--select-option-hover-color)
|
|
108
|
-
} .
|
|
109
|
-
.
|
|
108
|
+
} .select__highlighted_soqre:before,
|
|
109
|
+
.select__highlighted_soqre + .select__option_soqre:before {
|
|
110
110
|
opacity: 0;
|
|
111
|
-
} .
|
|
111
|
+
} .select__disabled_soqre {
|
|
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_soqre {
|
|
116
116
|
overflow: hidden;
|
|
117
117
|
flex: 1;
|
|
118
118
|
text-overflow: ellipsis;
|
|
119
|
-
} .
|
|
119
|
+
} .select__textContent_soqre {
|
|
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_soqre:after {
|
|
124
124
|
min-height: inherit;
|
|
125
125
|
font-size: 0;
|
|
126
126
|
content: '';
|
|
@@ -7,7 +7,7 @@ import { useMedia } from '@alfalab/hooks';
|
|
|
7
7
|
import { useVisibleOptions, isGroup } from '../../utils.js';
|
|
8
8
|
import { Optgroup } from '../optgroup/Component.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"optionsList":"
|
|
10
|
+
var styles = {"optionsList":"select__optionsList_1wysp","optionsListHeader":"select__optionsListHeader_1wysp","optionsListFooter":"select__optionsListFooter_1wysp","withBorder":"select__withBorder_1wysp","scrollable":"select__scrollable_1wysp","emptyPlaceholder":"select__emptyPlaceholder_1wysp","l":"select__l_1wysp","xl":"select__xl_1wysp"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: vk9ft */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -29,28 +29,28 @@
|
|
|
29
29
|
/* checkmark */
|
|
30
30
|
|
|
31
31
|
/* optgroup */
|
|
32
|
-
} .
|
|
32
|
+
} .select__optionsList_1wysp {
|
|
33
33
|
width: 100%;
|
|
34
34
|
outline: none;
|
|
35
35
|
box-sizing: border-box;
|
|
36
36
|
position: relative;
|
|
37
|
-
} .
|
|
37
|
+
} .select__optionsListHeader_1wysp {
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
border-bottom: 1px solid var(--color-light-border-secondary);
|
|
40
|
-
} .
|
|
40
|
+
} .select__optionsListFooter_1wysp {
|
|
41
41
|
position: sticky;
|
|
42
42
|
bottom: 0;
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
border-top: 1px solid transparent
|
|
45
|
-
} .
|
|
45
|
+
} .select__optionsListFooter_1wysp.select__withBorder_1wysp {
|
|
46
46
|
border-top: 1px solid var(--color-light-border-secondary);
|
|
47
|
-
} .
|
|
47
|
+
} .select__scrollable_1wysp {
|
|
48
48
|
overflow: auto;
|
|
49
49
|
width: 100%;
|
|
50
|
-
} .
|
|
50
|
+
} .select__emptyPlaceholder_1wysp {
|
|
51
51
|
padding: var(--gap-m) var(--gap-s);
|
|
52
52
|
color: var(--select-options-list-empty-placeholder-color);
|
|
53
|
-
} .
|
|
54
|
-
.
|
|
53
|
+
} .select__l_1wysp .select__emptyPlaceholder_1wysp,
|
|
54
|
+
.select__xl_1wysp .select__emptyPlaceholder_1wysp {
|
|
55
55
|
padding: var(--gap-xl) var(--gap-m);
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { S as SelectMobile } from '../../Component-
|
|
3
|
+
export { S as SelectMobile } from '../../Component-d6246282.js';
|
|
4
4
|
import '../arrow/Component.js';
|
|
5
5
|
import '../base-select-mobile/Component.js';
|
|
6
6
|
import '../base-select-mobile/footer/Component.js';
|
|
@@ -17,7 +17,7 @@ import 'classnames';
|
|
|
17
17
|
import 'downshift';
|
|
18
18
|
import '@alfalab/core-components-popover/esm';
|
|
19
19
|
import '@alfalab/hooks';
|
|
20
|
-
import '../../getDataTestId-
|
|
20
|
+
import '../../getDataTestId-78e42ffe.js';
|
|
21
21
|
import '../../utils.js';
|
|
22
22
|
import '../native-select/Component.js';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronDownMIcon';
|
|
@@ -30,7 +30,7 @@ import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
|
30
30
|
import '../checkmark-mobile/Component.js';
|
|
31
31
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
32
|
import '@alfalab/core-components-skeleton/esm';
|
|
33
|
-
import '../../intersection-observer-
|
|
33
|
+
import '../../intersection-observer-6ef082f5.js';
|
|
34
34
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-d6246282";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SelectMobile } from '../../Component-
|
|
1
|
+
export { S as SelectMobile } from '../../Component-d6246282.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../Component.js';
|
|
@@ -11,7 +11,7 @@ import '@juggle/resize-observer';
|
|
|
11
11
|
import 'downshift';
|
|
12
12
|
import '@alfalab/core-components-popover/esm';
|
|
13
13
|
import '@alfalab/hooks';
|
|
14
|
-
import '../../getDataTestId-
|
|
14
|
+
import '../../getDataTestId-78e42ffe.js';
|
|
15
15
|
import '../../utils.js';
|
|
16
16
|
import '../native-select/Component.js';
|
|
17
17
|
import '../field/Component.js';
|
|
@@ -35,5 +35,5 @@ import '@alfalab/core-components-button/esm';
|
|
|
35
35
|
import '../virtual-options-list/Component.js';
|
|
36
36
|
import 'react-virtual';
|
|
37
37
|
import '@alfalab/core-components-skeleton/esm';
|
|
38
|
-
import '../../intersection-observer-
|
|
38
|
+
import '../../intersection-observer-6ef082f5.js';
|
|
39
39
|
import '../../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
|