@alfalab/core-components-select 13.2.13 → 13.2.14
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-088caba2.d.ts → Component-56295912.d.ts} +2 -2
- package/{Component-088caba2.js → Component-56295912.js} +4 -4
- package/{Component-ca307b80.js → Component-5eb2f57b.js} +1 -1
- 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 +7 -7
- 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 +6 -6
- 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 +12 -12
- package/cssm/Component-8f0723b4.d.ts +2 -2
- package/esm/{Component-82c9c6a4.js → Component-105eafca.js} +1 -1
- package/esm/{Component-23df669b.d.ts → Component-3d9b84ce.d.ts} +2 -2
- package/esm/{Component-23df669b.js → Component-3d9b84ce.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 +7 -7
- 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 +6 -6
- 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 +12 -12
- 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 +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/index.js +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.js +3 -3
- package/modern/{Component-629f202b.d.ts → Component-20680737.d.ts} +2 -2
- package/modern/{Component-629f202b.js → Component-20680737.js} +4 -4
- package/modern/{Component-c2743e76.js → Component-a6757057.js} +1 -1
- 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 +7 -7
- package/modern/components/base-select/index.d.ts +1 -1
- package/modern/components/base-select/index.js +1 -1
- package/modern/components/base-select-mobile/Component.js +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 +6 -6
- 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 +12 -12
- 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 +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/index.js +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/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
- package/presets/useSelectWithLoading/hook.js +1 -1
- package/presets/useSelectWithLoading/index.css +2 -2
- package/responsive.js +3 -3
- /package/{Component-ca307b80.d.ts → Component-5eb2f57b.d.ts} +0 -0
- /package/esm/{Component-82c9c6a4.d.ts → Component-105eafca.d.ts} +0 -0
- /package/esm/{intersection-observer-12c920c6.d.ts → intersection-observer-9c4df9c1.d.ts} +0 -0
- /package/esm/{intersection-observer-12c920c6.js → intersection-observer-9c4df9c1.js} +0 -0
- /package/{intersection-observer-31caed5c.d.ts → intersection-observer-562b226a.d.ts} +0 -0
- /package/{intersection-observer-31caed5c.js → intersection-observer-562b226a.js} +0 -0
- /package/modern/{Component-c2743e76.d.ts → Component-a6757057.d.ts} +0 -0
- /package/modern/{intersection-observer-12c920c6.d.ts → intersection-observer-9c4df9c1.d.ts} +0 -0
- /package/modern/{intersection-observer-12c920c6.js → intersection-observer-9c4df9c1.js} +0 -0
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Checkbox } from '@alfalab/core-components-checkbox/esm';
|
|
4
4
|
import { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
5
5
|
|
|
6
|
-
var styles = {"checkmark":"
|
|
6
|
+
var styles = {"checkmark":"select__checkmark_dreaz","single":"select__single_dreaz","selected":"select__selected_dreaz"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var BaseCheckmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 112ts */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
/* checkmark */
|
|
24
24
|
|
|
25
25
|
/* optgroup */
|
|
26
|
-
} .
|
|
26
|
+
} .select__checkmark_dreaz {
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
-
} .
|
|
29
|
+
} .select__single_dreaz {
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
opacity: 0
|
|
34
|
-
} .
|
|
34
|
+
} .select__single_dreaz.select__selected_dreaz {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -5,7 +5,7 @@ import { BaseCheckmark } from '../base-checkmark/Component.js';
|
|
|
5
5
|
import '@alfalab/core-components-checkbox/esm';
|
|
6
6
|
import '@alfalab/icons-glyph/CheckmarkMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"option":"
|
|
8
|
+
var styles = {"option":"select__option_1seih","disabled":"select__disabled_1seih","checkmarkBefore":"select__checkmarkBefore_1seih","mobile":"select__mobile_1seih","checkmarkAfter":"select__checkmarkAfter_1seih","textContent":"select__textContent_1seih","selected":"select__selected_1seih","highlighted":"select__highlighted_1seih","content":"select__content_1seih"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var BaseOption = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jt9a */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
/* checkmark */
|
|
44
44
|
|
|
45
45
|
/* optgroup */
|
|
46
|
-
} .
|
|
46
|
+
} .select__option_1seih {
|
|
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_1seih:not(.select__disabled_1seih):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
|
-
} .
|
|
66
|
+
} .select__option_1seih.select__checkmarkBefore_1seih {
|
|
67
67
|
padding: 0 0 0 var(--gap-s)
|
|
68
|
-
} .
|
|
68
|
+
} .select__option_1seih.select__checkmarkBefore_1seih.select__mobile_1seih {
|
|
69
69
|
padding-left: var(--gap-m);
|
|
70
|
-
} .
|
|
70
|
+
} .select__option_1seih.select__checkmarkAfter_1seih {
|
|
71
71
|
padding: 0 var(--gap-s) 0 0
|
|
72
|
-
} .
|
|
72
|
+
} .select__option_1seih.select__checkmarkAfter_1seih.select__mobile_1seih {
|
|
73
73
|
padding-right: var(--gap-l);
|
|
74
|
-
} .
|
|
74
|
+
} .select__option_1seih.select__textContent_1seih {
|
|
75
75
|
padding: var(--gap-s)
|
|
76
|
-
} .
|
|
76
|
+
} .select__option_1seih.select__textContent_1seih.select__mobile_1seih {
|
|
77
77
|
padding: var(--gap-m) var(--gap-l) var(--gap-m) var(--gap-m);
|
|
78
|
-
} .
|
|
78
|
+
} .select__selected_1seih {
|
|
79
79
|
background: var(--select-option-selected-background);
|
|
80
80
|
color: var(--select-option-selected-color);
|
|
81
81
|
cursor: default;
|
|
82
|
-
} .
|
|
82
|
+
} .select__highlighted_1seih {
|
|
83
83
|
background: var(--select-option-hover-background);
|
|
84
84
|
color: var(--select-option-hover-color);
|
|
85
|
-
} .
|
|
85
|
+
} .select__disabled_1seih {
|
|
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_1seih {
|
|
90
90
|
flex: 1;
|
|
91
91
|
}
|
|
@@ -6,6 +6,6 @@ import 'classnames';
|
|
|
6
6
|
import 'downshift';
|
|
7
7
|
import '@alfalab/core-components-popover/esm';
|
|
8
8
|
import '@alfalab/hooks';
|
|
9
|
-
export { B as BaseSelect } from '../../Component-
|
|
9
|
+
export { B as BaseSelect } from '../../Component-105eafca.js';
|
|
10
10
|
import '../../utils.js';
|
|
11
11
|
import '../native-select/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1a1kv */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
/* checkmark */
|
|
35
35
|
|
|
36
36
|
/* optgroup */
|
|
37
|
-
} .
|
|
37
|
+
} .select__component_1inmu {
|
|
38
38
|
width: max-content;
|
|
39
39
|
position: relative;
|
|
40
40
|
outline: 0;
|
|
41
|
-
} .
|
|
41
|
+
} .select__popoverInner_1inmu {
|
|
42
42
|
padding-top: var(--select-options-list-offset);
|
|
43
43
|
padding-bottom: var(--select-options-list-offset);
|
|
44
44
|
box-shadow: none;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
background: transparent;
|
|
47
47
|
border-radius: 0;
|
|
48
48
|
position: relative;
|
|
49
|
-
} .
|
|
49
|
+
} .select__optionsList_1inmu {
|
|
50
50
|
padding-top: var(--select-options-list-top-padding);
|
|
51
51
|
padding-bottom: var(--select-options-list-bottom-padding);
|
|
52
52
|
box-shadow: var(--select-options-list-box-shadow);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
background: var(--select-option-background);
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
will-change: transform;
|
|
57
|
-
} .
|
|
57
|
+
} .select__nativeSelect_1inmu {
|
|
58
58
|
opacity: 0;
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
position: absolute;
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
height: 100%;
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
z-index: 1;
|
|
70
|
-
} .
|
|
70
|
+
} .select__block_1inmu {
|
|
71
71
|
width: 100%;
|
|
72
72
|
} /* width: max-content; fix for IE */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
73
|
-
.
|
|
73
|
+
.select__component_1inmu {
|
|
74
74
|
float: left;
|
|
75
75
|
clear: left;
|
|
76
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-105eafca";
|
|
@@ -7,8 +7,8 @@ import '@alfalab/core-components-bottom-sheet/esm';
|
|
|
7
7
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
8
8
|
import '../../Component.js';
|
|
9
9
|
import '../arrow/Component.js';
|
|
10
|
-
import '../../Component-
|
|
11
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
10
|
+
import '../../Component-105eafca.js';
|
|
11
|
+
export { B as BaseSelectMobile } from '../../Component-3d9b84ce.js';
|
|
12
12
|
import '../field/Component.js';
|
|
13
13
|
import '../optgroup/Component.js';
|
|
14
14
|
import '../option/Component.js';
|
|
@@ -19,7 +19,7 @@ import '@alfalab/hooks';
|
|
|
19
19
|
import '../../utils.js';
|
|
20
20
|
import '../base-option/Component.js';
|
|
21
21
|
import '@alfalab/core-components-skeleton/esm';
|
|
22
|
-
import '../../intersection-observer-
|
|
22
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
23
23
|
import '../base-checkmark/Component.js';
|
|
24
24
|
import './checkmark/Component.js';
|
|
25
25
|
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
|
-
var styles = {"checkmark":"
|
|
5
|
+
var styles = {"checkmark":"select__checkmark_b49jm","selected":"select__selected_b49jm","displayIcon":"select__displayIcon_b49jm","displayBadge":"select__displayBadge_b49jm"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1n008 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
--select-mobile-checkmark-display-badge: none;
|
|
26
26
|
|
|
27
27
|
/* optgroup */
|
|
28
|
-
} .
|
|
28
|
+
} .select__checkmark_b49jm {
|
|
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_b49jm:first-child {
|
|
37
37
|
display: none;
|
|
38
|
-
} .
|
|
38
|
+
} .select__checkmark_b49jm.select__selected_b49jm {
|
|
39
39
|
opacity: 1;
|
|
40
|
-
} .
|
|
40
|
+
} .select__displayIcon_b49jm {
|
|
41
41
|
display: var(--select-mobile-checkmark-display-icon);
|
|
42
|
-
} .
|
|
42
|
+
} .select__displayBadge_b49jm {
|
|
43
43
|
display: var(--select-mobile-checkmark-display-badge);
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1p7t8 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
/* checkmark */
|
|
29
29
|
|
|
30
30
|
/* optgroup */
|
|
31
|
-
} .
|
|
31
|
+
} .select__component_k4a7o {
|
|
32
32
|
width: max-content;
|
|
33
33
|
position: relative;
|
|
34
34
|
outline: 0;
|
|
35
|
-
} .
|
|
35
|
+
} .select__popoverInner_k4a7o {
|
|
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_k4a7o {
|
|
44
44
|
overflow: hidden;
|
|
45
|
-
} .
|
|
45
|
+
} .select__sheetContent_k4a7o {
|
|
46
46
|
padding: 0;
|
|
47
|
-
} .
|
|
47
|
+
} .select__sheetContainer_k4a7o {
|
|
48
48
|
padding: 0;
|
|
49
|
-
} .
|
|
49
|
+
} .select__block_k4a7o {
|
|
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_k4a7o {
|
|
53
53
|
float: left;
|
|
54
54
|
clear: left;
|
|
55
55
|
}
|
|
56
|
-
} .
|
|
56
|
+
} .select__option_k4a7o {
|
|
57
57
|
padding: var(--gap-2xs) var(--gap-l) var(--gap-2xs) var(--gap-m)
|
|
58
|
-
} .
|
|
58
|
+
} .select__option_k4a7o:before {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .select__optionGroup_k4a7o {
|
|
61
61
|
padding: var(--gap-m) var(--gap-m) var(--gap-xs);
|
|
62
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-3d9b84ce";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BaseSelectMobile } from '../../Component-
|
|
1
|
+
export { B as BaseSelectMobile } from '../../Component-3d9b84ce.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../arrow/Component.js';
|
|
@@ -9,7 +9,7 @@ import 'downshift';
|
|
|
9
9
|
import '@alfalab/core-components-bottom-sheet/esm';
|
|
10
10
|
import '@alfalab/core-components-modal/esm/mobile';
|
|
11
11
|
import '../../Component.js';
|
|
12
|
-
import '../../Component-
|
|
12
|
+
import '../../Component-105eafca.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
14
14
|
import '@alfalab/core-components-popover/esm';
|
|
15
15
|
import '@alfalab/hooks';
|
|
@@ -31,7 +31,7 @@ import 'react-virtual';
|
|
|
31
31
|
import '../base-option/Component.js';
|
|
32
32
|
import '../base-checkmark/Component.js';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../../intersection-observer-
|
|
34
|
+
import '../../intersection-observer-9c4df9c1.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './options-list/Component.js';
|
|
37
37
|
import '@alfalab/core-components-base-modal/esm';
|
|
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/esm';
|
|
|
6
6
|
import { isGroup } from '../../../utils.js';
|
|
7
7
|
import { Optgroup } from '../../optgroup/Component.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"optionsList":"
|
|
9
|
+
var styles = {"optionsList":"select__optionsList_1pcyi","emptyPlaceholder":"select__emptyPlaceholder_1pcyi","l":"select__l_1pcyi","xl":"select__xl_1pcyi","footer":"select__footer_1pcyi","footerButton":"select__footerButton_1pcyi","highlighted":"select__highlighted_1pcyi"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var createCounter = function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7f1dk */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
} :root {
|
|
34
34
|
--select-mobile-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
35
35
|
--select-mobile-footer-background-color: var(--color-light-bg-primary);
|
|
36
|
-
} .
|
|
36
|
+
} .select__optionsList_1pcyi {
|
|
37
37
|
width: 100%;
|
|
38
38
|
outline: none;
|
|
39
39
|
box-sizing: border-box;
|
|
40
|
-
} .
|
|
40
|
+
} .select__emptyPlaceholder_1pcyi {
|
|
41
41
|
padding: var(--gap-m) var(--gap-s);
|
|
42
42
|
color: var(--select-options-list-empty-placeholder-color);
|
|
43
|
-
} .
|
|
44
|
-
.
|
|
43
|
+
} .select__l_1pcyi .select__emptyPlaceholder_1pcyi,
|
|
44
|
+
.select__xl_1pcyi .select__emptyPlaceholder_1pcyi {
|
|
45
45
|
padding: var(--gap-xl) var(--gap-m);
|
|
46
|
-
} .
|
|
46
|
+
} .select__footer_1pcyi {
|
|
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_1pcyi .select__footerButton_1pcyi:first-of-type {
|
|
54
54
|
margin-right: var(--gap-m);
|
|
55
|
-
} .
|
|
55
|
+
} .select__footerButton_1pcyi {
|
|
56
56
|
width: 50%;
|
|
57
|
-
} .
|
|
57
|
+
} .select__highlighted_1pcyi {
|
|
58
58
|
border-top: var(--select-mobile-footer-border-top);
|
|
59
59
|
background-color: var(--select-mobile-footer-background-color);
|
|
60
60
|
}
|
|
@@ -8,7 +8,7 @@ import { usePrevious } from '@alfalab/hooks';
|
|
|
8
8
|
import { lastIndexOf, isGroup } from '../../../utils.js';
|
|
9
9
|
import { Optgroup } from '../../optgroup/Component.js';
|
|
10
10
|
|
|
11
|
-
var styles = {"virtualOptionsList":"
|
|
11
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_1u71d","inner":"select__inner_1u71d","virtualRow":"select__virtualRow_1u71d","highlighted":"select__highlighted_1u71d","emptyPlaceholder":"select__emptyPlaceholder_1u71d","l":"select__l_1u71d","xl":"select__xl_1u71d","footer":"select__footer_1u71d","footerButton":"select__footerButton_1u71d","footerHighlighted":"select__footerHighlighted_1u71d"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var VirtualOptionsList = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tql6k */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -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_1u71d {
|
|
42
42
|
width: 100%;
|
|
43
43
|
outline: none;
|
|
44
44
|
box-sizing: border-box;
|
|
45
45
|
position: relative;
|
|
46
|
-
} .
|
|
46
|
+
} .select__inner_1u71d {
|
|
47
47
|
position: relative;
|
|
48
48
|
width: 100%;
|
|
49
|
-
} .
|
|
49
|
+
} .select__virtualRow_1u71d {
|
|
50
50
|
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
52
|
left: 0;
|
|
53
53
|
width: 100%
|
|
54
|
-
} .
|
|
54
|
+
} .select__virtualRow_1u71d: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_1u71d:first-child:before {
|
|
65
65
|
display: none;
|
|
66
|
-
} .
|
|
67
|
-
.
|
|
66
|
+
} .select__highlighted_1u71d:before,
|
|
67
|
+
.select__highlighted_1u71d + .select__virtualRow_1u71d:before {
|
|
68
68
|
display: none;
|
|
69
|
-
} .
|
|
69
|
+
} .select__emptyPlaceholder_1u71d {
|
|
70
70
|
padding: var(--gap-m) var(--gap-s);
|
|
71
71
|
color: var(--select-options-list-empty-placeholder-color);
|
|
72
|
-
} .
|
|
73
|
-
.
|
|
72
|
+
} .select__l_1u71d .select__emptyPlaceholder_1u71d,
|
|
73
|
+
.select__xl_1u71d .select__emptyPlaceholder_1u71d {
|
|
74
74
|
padding: var(--gap-xl) var(--gap-m);
|
|
75
|
-
} .
|
|
75
|
+
} .select__footer_1u71d {
|
|
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_1u71d .select__footerButton_1u71d:first-of-type {
|
|
83
83
|
margin-right: var(--gap-m);
|
|
84
|
-
} .
|
|
84
|
+
} .select__footerButton_1u71d {
|
|
85
85
|
width: 50%;
|
|
86
|
-
} .
|
|
86
|
+
} .select__footerHighlighted_1u71d {
|
|
87
87
|
border-top: var(--select-mobile-footer-border-top);
|
|
88
88
|
background-color: var(--select-mobile-footer-background-color);
|
|
89
89
|
}
|
|
@@ -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_1xcy4","after":"select__after_1xcy4","single":"select__single_1xcy4","selected":"select__selected_1xcy4","before":"select__before_1xcy4","multiple":"select__multiple_1xcy4","colorIcon":"select__colorIcon_1xcy4"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Checkmark = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1oo5k */
|
|
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_1xcy4 {
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
margin: var(--select-checkmark-margin)
|
|
45
|
-
} .
|
|
45
|
+
} .select__checkmark_1xcy4.select__after_1xcy4 {
|
|
46
46
|
margin: var(--select-checkmark-margin-after);
|
|
47
|
-
} .
|
|
47
|
+
} .select__single_1xcy4 {
|
|
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_1xcy4.select__selected_1xcy4 {
|
|
58
58
|
opacity: 1;
|
|
59
|
-
} .
|
|
59
|
+
} .select__before_1xcy4 {
|
|
60
60
|
display: var(--select-checkmark-before-display)
|
|
61
|
-
} .
|
|
61
|
+
} .select__before_1xcy4.select__multiple_1xcy4 {
|
|
62
62
|
margin-right: var(--gap-s);
|
|
63
63
|
display: var(--select-checkmark-before-display-multiple);
|
|
64
|
-
} .
|
|
64
|
+
} .select__after_1xcy4 {
|
|
65
65
|
display: var(--select-checkmark-after-display)
|
|
66
|
-
} .
|
|
66
|
+
} .select__after_1xcy4.select__single_1xcy4 {
|
|
67
67
|
display: var(--select-checkmark-after-display-single);
|
|
68
|
-
} .
|
|
68
|
+
} .select__colorIcon_1xcy4 {
|
|
69
69
|
color: var(--color-light-graphic-positive);
|
|
70
70
|
}
|
|
@@ -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_1v1zf","field":"select__field_1v1zf","disabled":"select__disabled_1v1zf","arrow":"select__arrow_1v1zf","placeholder":"select__placeholder_1v1zf","contentWrapper":"select__contentWrapper_1v1zf","value":"select__value_1v1zf","focusVisible":"select__focusVisible_1v1zf"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Field = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9yk55 */
|
|
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_1v1zf {
|
|
32
32
|
width: 100%;
|
|
33
33
|
outline: none;
|
|
34
|
-
} .
|
|
34
|
+
} .select__field_1v1zf:not(.select__disabled_1v1zf) {
|
|
35
35
|
cursor: pointer
|
|
36
|
-
} .
|
|
36
|
+
} .select__field_1v1zf:not(.select__disabled_1v1zf):hover .select__arrow_1v1zf {
|
|
37
37
|
opacity: var(--select-arrow-hover-opacity);
|
|
38
|
-
} .
|
|
38
|
+
} .select__disabled_1v1zf {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} /* TODO: Заюзать переменные из инпута */ .
|
|
40
|
+
} /* TODO: Заюзать переменные из инпута */ .select__placeholder_1v1zf {
|
|
41
41
|
color: var(--color-light-text-secondary);
|
|
42
|
-
} .
|
|
42
|
+
} .select__contentWrapper_1v1zf {
|
|
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_1v1zf {
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
text-overflow: ellipsis;
|
|
54
54
|
text-align: left;
|
|
55
|
-
} .
|
|
55
|
+
} .select__focusVisible_1v1zf {
|
|
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
|
-
export { B as BaseSelect } from '../Component-
|
|
3
|
-
export { S as SelectMobile, a as SelectModalMobile } from '../Component-
|
|
2
|
+
export { B as BaseSelect } from '../Component-105eafca.js';
|
|
3
|
+
export { S as SelectMobile, a as SelectModalMobile } from '../Component-3d9b84ce.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';
|
|
@@ -31,7 +31,7 @@ import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
|
31
31
|
import '@alfalab/core-components-scrollbar/esm';
|
|
32
32
|
import 'react-virtual';
|
|
33
33
|
import '@alfalab/core-components-skeleton/esm';
|
|
34
|
-
import '../intersection-observer-
|
|
34
|
+
import '../intersection-observer-9c4df9c1.js';
|
|
35
35
|
import '@alfalab/core-components-button/esm';
|
|
36
36
|
import './base-checkmark/Component.js';
|
|
37
37
|
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
|
-
var styles = {"optgroup":"
|
|
4
|
+
var styles = {"optgroup":"select__optgroup_11m5j","label":"select__label_11m5j","l":"select__l_11m5j","xl":"select__xl_11m5j"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Optgroup = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rnir9 */
|
|
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_11m5j {
|
|
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_11m5j + *[role='option']:before {
|
|
48
48
|
display: none;
|
|
49
|
-
} .
|
|
49
|
+
} .select__label_11m5j {
|
|
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_11m5j,
|
|
59
|
+
.select__xl_11m5j {
|
|
60
60
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
61
61
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
62
62
|
}
|