@alfalab/core-components-select 19.1.7 → 19.1.8
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/components/arrow/index.css +4 -4
- package/components/arrow/index.module.css.js +1 -1
- package/components/base-checkmark/Component.js +5 -12
- package/components/base-checkmark/Component.js.map +1 -1
- package/components/base-checkmark/index.css +13 -26
- package/components/base-checkmark/index.module.css.js +1 -1
- package/components/base-checkmark/index.module.css.js.map +1 -1
- package/components/base-option/Component.js +7 -1
- package/components/base-option/Component.js.map +1 -1
- package/components/base-option/index.css +14 -14
- package/components/base-option/index.module.css.js +1 -1
- package/components/base-select/index.css +11 -11
- package/components/base-select/index.module.css.js +1 -1
- package/components/base-select/mobile.css +11 -11
- package/components/base-select/mobile.module.css.js +1 -1
- package/components/checkmark/index.css +11 -11
- package/components/checkmark/index.module.css.js +1 -1
- package/components/checkmark-mobile/index.css +6 -6
- package/components/checkmark-mobile/index.module.css.js +1 -1
- package/components/clear-button/index.css +4 -4
- package/components/clear-button/index.module.css.js +1 -1
- package/components/field/index.css +13 -13
- package/components/field/index.module.css.js +1 -1
- package/components/footer/index.css +4 -4
- package/components/footer/index.module.css.js +1 -1
- package/components/optgroup/index.css +4 -4
- package/components/optgroup/index.module.css.js +1 -1
- package/components/option/desktop/index.css +19 -19
- package/components/option/desktop/index.module.css.js +1 -1
- package/components/option/mobile/index.css +16 -16
- package/components/option/mobile/index.module.css.js +1 -1
- package/components/options-list/index.css +13 -13
- package/components/options-list/index.module.css.js +1 -1
- package/components/search/index.css +1 -1
- package/components/search/index.module.css.js +1 -1
- package/components/virtual-options-list/index.css +13 -13
- package/components/virtual-options-list/index.module.css.js +1 -1
- package/cssm/components/base-checkmark/Component.js +5 -12
- package/cssm/components/base-checkmark/Component.js.map +1 -1
- package/cssm/components/base-checkmark/index.module.css +6 -19
- package/cssm/components/base-option/Component.js +7 -1
- package/cssm/components/base-option/Component.js.map +1 -1
- package/esm/components/arrow/index.css +4 -4
- package/esm/components/arrow/index.module.css.js +1 -1
- package/esm/components/base-checkmark/Component.js +5 -12
- package/esm/components/base-checkmark/Component.js.map +1 -1
- package/esm/components/base-checkmark/index.css +13 -26
- package/esm/components/base-checkmark/index.module.css.js +1 -1
- package/esm/components/base-checkmark/index.module.css.js.map +1 -1
- package/esm/components/base-option/Component.js +7 -1
- package/esm/components/base-option/Component.js.map +1 -1
- package/esm/components/base-option/index.css +14 -14
- package/esm/components/base-option/index.module.css.js +1 -1
- package/esm/components/base-select/index.css +11 -11
- package/esm/components/base-select/index.module.css.js +1 -1
- package/esm/components/base-select/mobile.css +11 -11
- package/esm/components/base-select/mobile.module.css.js +1 -1
- package/esm/components/checkmark/index.css +11 -11
- package/esm/components/checkmark/index.module.css.js +1 -1
- package/esm/components/checkmark-mobile/index.css +6 -6
- package/esm/components/checkmark-mobile/index.module.css.js +1 -1
- package/esm/components/clear-button/index.css +4 -4
- package/esm/components/clear-button/index.module.css.js +1 -1
- package/esm/components/field/index.css +13 -13
- package/esm/components/field/index.module.css.js +1 -1
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/index.module.css.js +1 -1
- package/esm/components/optgroup/index.css +4 -4
- package/esm/components/optgroup/index.module.css.js +1 -1
- package/esm/components/option/desktop/index.css +19 -19
- package/esm/components/option/desktop/index.module.css.js +1 -1
- package/esm/components/option/mobile/index.css +16 -16
- package/esm/components/option/mobile/index.module.css.js +1 -1
- package/esm/components/options-list/index.css +13 -13
- package/esm/components/options-list/index.module.css.js +1 -1
- package/esm/components/search/index.css +1 -1
- package/esm/components/search/index.module.css.js +1 -1
- package/esm/components/virtual-options-list/index.css +13 -13
- package/esm/components/virtual-options-list/index.module.css.js +1 -1
- package/esm/mobile/modal.mobile.css +1 -1
- package/esm/mobile/modal.mobile.module.css.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/esm/presets/useSelectWithLoading/index.css +1 -1
- package/esm/presets/useSelectWithLoading/index.module.css.js +1 -1
- package/mobile/modal.mobile.css +1 -1
- package/mobile/modal.mobile.module.css.js +1 -1
- package/modern/components/arrow/index.css +4 -4
- package/modern/components/arrow/index.module.css.js +1 -1
- package/modern/components/base-checkmark/Component.js +5 -11
- package/modern/components/base-checkmark/Component.js.map +1 -1
- package/modern/components/base-checkmark/index.css +13 -26
- package/modern/components/base-checkmark/index.module.css.js +1 -1
- package/modern/components/base-checkmark/index.module.css.js.map +1 -1
- package/modern/components/base-option/Component.js +5 -1
- package/modern/components/base-option/Component.js.map +1 -1
- package/modern/components/base-option/index.css +14 -14
- package/modern/components/base-option/index.module.css.js +1 -1
- package/modern/components/base-select/index.css +11 -11
- package/modern/components/base-select/index.module.css.js +1 -1
- package/modern/components/base-select/mobile.css +11 -11
- package/modern/components/base-select/mobile.module.css.js +1 -1
- package/modern/components/checkmark/index.css +11 -11
- package/modern/components/checkmark/index.module.css.js +1 -1
- package/modern/components/checkmark-mobile/index.css +6 -6
- package/modern/components/checkmark-mobile/index.module.css.js +1 -1
- package/modern/components/clear-button/index.css +4 -4
- package/modern/components/clear-button/index.module.css.js +1 -1
- package/modern/components/field/index.css +13 -13
- package/modern/components/field/index.module.css.js +1 -1
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/index.module.css.js +1 -1
- package/modern/components/optgroup/index.css +4 -4
- package/modern/components/optgroup/index.module.css.js +1 -1
- package/modern/components/option/desktop/index.css +19 -19
- package/modern/components/option/desktop/index.module.css.js +1 -1
- package/modern/components/option/mobile/index.css +16 -16
- package/modern/components/option/mobile/index.module.css.js +1 -1
- package/modern/components/options-list/index.css +13 -13
- package/modern/components/options-list/index.module.css.js +1 -1
- package/modern/components/search/index.css +1 -1
- package/modern/components/search/index.module.css.js +1 -1
- package/modern/components/virtual-options-list/index.css +13 -13
- package/modern/components/virtual-options-list/index.module.css.js +1 -1
- package/modern/mobile/modal.mobile.css +1 -1
- package/modern/mobile/modal.mobile.module.css.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/modern/presets/useSelectWithLoading/index.css +1 -1
- package/modern/presets/useSelectWithLoading/index.module.css.js +1 -1
- package/moderncssm/components/base-checkmark/Component.js +5 -11
- package/moderncssm/components/base-checkmark/Component.js.map +1 -1
- package/moderncssm/components/base-checkmark/index.module.css +8 -24
- package/moderncssm/components/base-option/Component.js +5 -1
- package/moderncssm/components/base-option/Component.js.map +1 -1
- package/package.json +5 -5
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
- package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
- package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
- package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
- package/presets/useSelectWithLoading/index.css +1 -1
- package/presets/useSelectWithLoading/index.module.css.js +1 -1
- package/src/components/base-checkmark/Component.tsx +8 -24
- package/src/components/base-checkmark/index.module.css +6 -21
- package/src/components/base-option/Component.tsx +16 -12
|
@@ -18,28 +18,28 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--select-arrow-hover-opacity: 0.7;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.select__component_b9j99 {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.select__field_b9j99:not(.select__disabled_b9j99) {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__field_b9j99:not(.select__disabled_b9j99):hover .select__arrow_b9j99 {
|
|
29
29
|
opacity: var(--select-arrow-hover-opacity);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.select__disabled_b9j99 {
|
|
32
32
|
cursor: var(--disabled-cursor);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__placeholder_b9j99 {
|
|
35
35
|
color: var(--input-placeholder-color);
|
|
36
36
|
transition: color 0.2s ease;
|
|
37
|
-
animation: select__show-
|
|
37
|
+
animation: select__show-placeholder_b9j99 0.2s ease;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__placeholder_b9j99.select__focused_b9j99 {
|
|
40
40
|
color: var(--input-focus-placeholder-color);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.select__contentWrapper_b9j99 {
|
|
43
43
|
font-size: 16px;
|
|
44
44
|
line-height: 20px;
|
|
45
45
|
font-weight: 400;
|
|
@@ -50,28 +50,28 @@
|
|
|
50
50
|
overflow: hidden;
|
|
51
51
|
width: 100%;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.select__contentWrapper_b9j99.select__size-40_b9j99 {
|
|
54
54
|
font-size: 14px;
|
|
55
55
|
line-height: 18px;
|
|
56
56
|
font-weight: 400;
|
|
57
57
|
font-family: var(--font-family-system);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__value_b9j99 {
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
text-overflow: ellipsis;
|
|
62
62
|
text-align: left;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.select__value_b9j99.select__size-40_b9j99 {
|
|
65
65
|
font-size: 14px;
|
|
66
66
|
line-height: 18px;
|
|
67
67
|
font-weight: 400;
|
|
68
68
|
font-family: var(--font-family-system);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.select__focusVisible_b9j99 {
|
|
71
71
|
outline: 2px solid var(--focus-color);
|
|
72
72
|
outline-offset: 2px;
|
|
73
73
|
}
|
|
74
|
-
@keyframes select__show-
|
|
74
|
+
@keyframes select__show-placeholder_b9j99 {
|
|
75
75
|
from {
|
|
76
76
|
opacity: 0;
|
|
77
77
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"select__component_b9j99","field":"select__field_b9j99","disabled":"select__disabled_b9j99","arrow":"select__arrow_b9j99","placeholder":"select__placeholder_b9j99","show-placeholder":"select__show-placeholder_b9j99","focused":"select__focused_b9j99","contentWrapper":"select__contentWrapper_b9j99","size-40":"select__size-40_b9j99","value":"select__value_b9j99","focusVisible":"select__focusVisible_b9j99"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
--gap-m: 16px;
|
|
7
7
|
--gap-16: var(--gap-m);
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.select__footer_ym748 {
|
|
10
10
|
display: flex;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
width: 100%;
|
|
13
13
|
padding: var(--gap-16) var(--gap-16);
|
|
14
14
|
background-color: var(--color-light-modal-bg-primary);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.select__footer_ym748 .select__button_ym748:first-of-type {
|
|
17
17
|
margin-right: var(--gap-16);
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.select__button_ym748 {
|
|
20
20
|
width: 50%;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.select__highlighted_ym748 {
|
|
23
23
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
24
24
|
background-color: var(--color-light-modal-bg-primary);
|
|
25
25
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"footer":"
|
|
5
|
+
var styles = {"footer":"select__footer_ym748","button":"select__button_ym748","highlighted":"select__highlighted_ym748"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--select-optgroup-l-left-padding: var(--gap-16);
|
|
24
24
|
--select-optgroup-l-right-padding: var(--gap-16);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.select__optgroup_kfg00 {
|
|
27
27
|
position: relative;
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
background: var(--select-optgroup-background);
|
|
34
34
|
min-height: 40px;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__optgroup_kfg00 + *[role='option']:before {
|
|
37
37
|
display: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.select__label_kfg00 {
|
|
40
40
|
font-size: 12px;
|
|
41
41
|
line-height: 16px;
|
|
42
42
|
font-weight: 400;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
display: block;
|
|
48
48
|
color: var(--select-optgroup-color);
|
|
49
49
|
}
|
|
50
|
-
.select__size-
|
|
50
|
+
.select__size-72_kfg00 {
|
|
51
51
|
padding-left: var(--select-optgroup-l-left-padding);
|
|
52
52
|
padding-right: var(--select-optgroup-l-right-padding);
|
|
53
53
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"optgroup":"
|
|
5
|
+
var styles = {"optgroup":"select__optgroup_kfg00","label":"select__label_kfg00","size-72":"select__size-72_kfg00"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--select-option-active-color: var(--color-light-text-primary);
|
|
44
44
|
--select-option-disabled-color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.select__option_3dduy {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
position: relative;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_3dduy:not(.select__disabled_3dduy):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.select__option_3dduy:before {
|
|
68
68
|
content: '';
|
|
69
69
|
position: absolute;
|
|
70
70
|
left: var(--select-option-left-padding);
|
|
@@ -75,59 +75,59 @@
|
|
|
75
75
|
display: var(--select-option-divider-display);
|
|
76
76
|
transition: opacity 0.2s ease;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
.select__option_3dduy:first-child:before {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
.select__size-
|
|
81
|
+
.select__size-48_3dduy {
|
|
82
82
|
min-height: var(--size-s-height);
|
|
83
83
|
}
|
|
84
|
-
.select__size-
|
|
84
|
+
.select__size-56_3dduy {
|
|
85
85
|
min-height: var(--size-m-height);
|
|
86
86
|
}
|
|
87
|
-
.select__size-
|
|
87
|
+
.select__size-64_3dduy {
|
|
88
88
|
min-height: var(--size-l-height);
|
|
89
89
|
}
|
|
90
|
-
.select__size-
|
|
90
|
+
.select__size-72_3dduy {
|
|
91
91
|
min-height: var(--size-xl-height);
|
|
92
92
|
padding-left: var(--select-option-l-left-padding);
|
|
93
93
|
padding-right: var(--select-option-l-right-padding);
|
|
94
94
|
}
|
|
95
|
-
.select__size-
|
|
95
|
+
.select__size-72_3dduy:before {
|
|
96
96
|
left: var(--select-option-l-left-padding);
|
|
97
97
|
right: var(--select-option-l-right-padding);
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.select__selected_3dduy {
|
|
100
100
|
background: var(--select-option-selected-background);
|
|
101
101
|
color: var(--select-option-selected-color);
|
|
102
102
|
cursor: default;
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.select__highlighted_3dduy {
|
|
105
105
|
background: var(--select-option-hover-background);
|
|
106
106
|
color: var(--select-option-hover-color);
|
|
107
107
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
108
|
+
.select__highlighted_3dduy:before,
|
|
109
|
+
.select__highlighted_3dduy + .select__option_3dduy:before {
|
|
110
110
|
opacity: 0;
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.select__disabled_3dduy {
|
|
113
113
|
cursor: var(--disabled-cursor);
|
|
114
114
|
background: var(--select-option-disabled-background);
|
|
115
115
|
color: var(--select-option-disabled-color);
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.select__content_3dduy {
|
|
118
118
|
overflow: hidden;
|
|
119
119
|
flex: 1;
|
|
120
120
|
text-overflow: ellipsis;
|
|
121
121
|
}
|
|
122
|
-
.
|
|
122
|
+
.select__textContent_3dduy {
|
|
123
123
|
padding-top: var(--gap-12);
|
|
124
124
|
padding-bottom: var(--gap-12);
|
|
125
125
|
}
|
|
126
|
-
.
|
|
126
|
+
.select__highlighted_3dduy {
|
|
127
127
|
background: var(--select-option-hover-background);
|
|
128
128
|
color: var(--select-option-hover-color);
|
|
129
129
|
}
|
|
130
|
-
.
|
|
131
|
-
.
|
|
130
|
+
.select__highlighted_3dduy:before,
|
|
131
|
+
.select__highlighted_3dduy + .select__option_3dduy:before {
|
|
132
132
|
opacity: 0;
|
|
133
133
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"option":"
|
|
5
|
+
var styles = {"option":"select__option_3dduy","disabled":"select__disabled_3dduy","size-48":"select__size-48_3dduy","size-56":"select__size-56_3dduy","size-64":"select__size-64_3dduy","size-72":"select__size-72_3dduy","selected":"select__selected_3dduy","highlighted":"select__highlighted_3dduy","content":"select__content_3dduy","textContent":"select__textContent_3dduy"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--select-option-active-color: var(--color-light-text-primary);
|
|
44
44
|
--select-option-disabled-color: var(--color-light-text-secondary);
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.select__option_c7iim {
|
|
47
47
|
font-size: 16px;
|
|
48
48
|
line-height: 20px;
|
|
49
49
|
font-weight: 400;
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
position: relative;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.select__option_c7iim:not(.select__disabled_c7iim):active {
|
|
64
64
|
background: var(--select-option-active-background);
|
|
65
65
|
color: var(--select-option-active-color);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.select__option_c7iim:before {
|
|
68
68
|
content: '';
|
|
69
69
|
position: absolute;
|
|
70
70
|
left: var(--select-option-left-padding);
|
|
@@ -75,51 +75,51 @@
|
|
|
75
75
|
display: var(--select-option-divider-display);
|
|
76
76
|
transition: opacity 0.2s ease;
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
.select__option_c7iim:first-child:before {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
|
-
.select__size-
|
|
81
|
+
.select__size-48_c7iim {
|
|
82
82
|
min-height: var(--size-s-height);
|
|
83
83
|
}
|
|
84
|
-
.select__size-
|
|
84
|
+
.select__size-56_c7iim {
|
|
85
85
|
min-height: var(--size-m-height);
|
|
86
86
|
}
|
|
87
|
-
.select__size-
|
|
87
|
+
.select__size-64_c7iim {
|
|
88
88
|
min-height: var(--size-l-height);
|
|
89
89
|
}
|
|
90
|
-
.select__size-
|
|
90
|
+
.select__size-72_c7iim {
|
|
91
91
|
min-height: var(--size-xl-height);
|
|
92
92
|
padding-left: var(--select-option-l-left-padding);
|
|
93
93
|
padding-right: var(--select-option-l-right-padding);
|
|
94
94
|
}
|
|
95
|
-
.select__size-
|
|
95
|
+
.select__size-72_c7iim:before {
|
|
96
96
|
left: var(--select-option-l-left-padding);
|
|
97
97
|
right: var(--select-option-l-right-padding);
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.select__selected_c7iim {
|
|
100
100
|
background: var(--select-option-selected-background);
|
|
101
101
|
color: var(--select-option-selected-color);
|
|
102
102
|
cursor: default;
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.select__highlighted_c7iim {
|
|
105
105
|
background: var(--select-option-hover-background);
|
|
106
106
|
color: var(--select-option-hover-color);
|
|
107
107
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
108
|
+
.select__highlighted_c7iim:before,
|
|
109
|
+
.select__highlighted_c7iim + .select__option_c7iim:before {
|
|
110
110
|
opacity: 0;
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.select__disabled_c7iim {
|
|
113
113
|
cursor: var(--disabled-cursor);
|
|
114
114
|
background: var(--select-option-disabled-background);
|
|
115
115
|
color: var(--select-option-disabled-color);
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.select__content_c7iim {
|
|
118
118
|
overflow: hidden;
|
|
119
119
|
flex: 1;
|
|
120
120
|
text-overflow: ellipsis;
|
|
121
121
|
}
|
|
122
|
-
.
|
|
122
|
+
.select__textContent_c7iim {
|
|
123
123
|
padding-top: var(--gap-12);
|
|
124
124
|
padding-bottom: var(--gap-12);
|
|
125
125
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"option":"
|
|
5
|
+
var styles = {"option":"select__option_c7iim","disabled":"select__disabled_c7iim","size-48":"select__size-48_c7iim","size-56":"select__size-56_c7iim","size-64":"select__size-64_c7iim","size-72":"select__size-72_c7iim","selected":"select__selected_c7iim","highlighted":"select__highlighted_c7iim","content":"select__content_c7iim","textContent":"select__textContent_c7iim"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -15,57 +15,57 @@
|
|
|
15
15
|
--select-options-list-scrollbar-gap: var(--gap-12);
|
|
16
16
|
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.select__optionsList_qgihn {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
position: relative;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.select__optionsList_qgihn .select__scrollable_qgihn {
|
|
25
25
|
overflow: auto;
|
|
26
26
|
width: 100%;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.select__optionsList_qgihn .select__scrollable_qgihn .select__verticalBar_qgihn.select__verticalBar_qgihn {
|
|
29
29
|
top: var(--select-options-list-scrollbar-gap);
|
|
30
30
|
height: calc(100% - 2 * var(--select-options-list-scrollbar-gap));
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.select__optionsList_qgihn .select__scrollable_qgihn .select__verticalBar_qgihn.select__verticalBar_qgihn.select__verticalBarWithHeader_qgihn {
|
|
33
33
|
top: 0;
|
|
34
34
|
height: calc(100% - var(--select-options-list-scrollbar-gap));
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.select__optionsList_qgihn .select__scrollable_qgihn .select__verticalBar_qgihn.select__verticalBar_qgihn.select__verticalBarWithFooter_qgihn {
|
|
37
37
|
top: var(--select-options-list-scrollbar-gap);
|
|
38
38
|
height: calc(100% - var(--select-options-list-scrollbar-gap));
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__optionsList_qgihn .select__scrollable_qgihn .select__verticalBar_qgihn.select__verticalBar_qgihn.select__verticalBarWithHeader_qgihn.select__verticalBarWithFooter_qgihn {
|
|
41
41
|
top: 0;
|
|
42
42
|
height: 100%;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.select__optionsListHeader_qgihn {
|
|
45
45
|
box-sizing: border-box;
|
|
46
46
|
border-bottom: 1px solid transparent;
|
|
47
47
|
transition: border-color 0.2s ease;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.select__optionsListHeader_qgihn.select__headerHighlighted_qgihn {
|
|
50
50
|
border-bottom-color: var(--color-light-neutral-300);
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__optionsListFooter_qgihn {
|
|
53
53
|
position: sticky;
|
|
54
54
|
bottom: var(--gap-0);
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
border-top: 1px solid transparent;
|
|
57
57
|
transition: border-color 0.2s ease;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.select__optionsListFooter_qgihn.select__withBorder_qgihn {
|
|
60
60
|
border-top-color: var(--color-light-neutral-300);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.select__mask_qgihn {
|
|
63
63
|
min-width: 4000px;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.select__emptyPlaceholder_qgihn {
|
|
66
66
|
padding: var(--gap-16) var(--gap-12);
|
|
67
67
|
color: var(--select-options-list-empty-placeholder-color);
|
|
68
68
|
}
|
|
69
|
-
.select__size-
|
|
69
|
+
.select__size-72_qgihn .select__emptyPlaceholder_qgihn {
|
|
70
70
|
padding: var(--gap-24) var(--gap-16);
|
|
71
71
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"optionsList":"
|
|
5
|
+
var styles = {"optionsList":"select__optionsList_qgihn","scrollable":"select__scrollable_qgihn","verticalBar":"select__verticalBar_qgihn","verticalBarWithHeader":"select__verticalBarWithHeader_qgihn","verticalBarWithFooter":"select__verticalBarWithFooter_qgihn","optionsListHeader":"select__optionsListHeader_qgihn","headerHighlighted":"select__headerHighlighted_qgihn","optionsListFooter":"select__optionsListFooter_qgihn","withBorder":"select__withBorder_qgihn","mask":"select__mask_qgihn","emptyPlaceholder":"select__emptyPlaceholder_qgihn","size-72":"select__size-72_qgihn"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
--select-option-left-padding: var(--gap-12);
|
|
21
21
|
--select-option-right-padding: var(--gap-12);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.select__virtualOptionsList_119uf {
|
|
24
24
|
width: 100%;
|
|
25
25
|
outline: none;
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
position: sticky;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.select__virtualOptionsListHeader_119uf {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
border-bottom: 1px solid var(--color-light-neutral-300);
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.select__virtualOptionsListFooter_119uf {
|
|
35
35
|
position: sticky;
|
|
36
36
|
bottom: var(--gap-0);
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
border-top: 1px solid transparent;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.select__virtualOptionsListFooter_119uf.select__withBorder_119uf {
|
|
41
41
|
border-top: 1px solid var(--color-light-neutral-300);
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.select__scrollable_119uf {
|
|
44
44
|
position: relative;
|
|
45
45
|
overflow: auto;
|
|
46
46
|
width: 100%;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.select__inner_119uf {
|
|
49
49
|
position: relative;
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.select__virtualRow_119uf {
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: var(--gap-0);
|
|
55
55
|
left: var(--gap-0);
|
|
56
56
|
width: 100%;
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.select__virtualRow_119uf:before {
|
|
59
59
|
content: '';
|
|
60
60
|
position: absolute;
|
|
61
61
|
z-index: 1;
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
background: var(--select-option-divider-background);
|
|
67
67
|
display: var(--select-option-divider-display);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.select__virtualRow_119uf:first-child:before {
|
|
70
70
|
display: none;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
73
|
-
.
|
|
72
|
+
.select__highlighted_119uf:before,
|
|
73
|
+
.select__highlighted_119uf + .select__virtualRow_119uf:before {
|
|
74
74
|
display: none;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.select__emptyPlaceholder_119uf {
|
|
77
77
|
padding: var(--gap-16) var(--gap-12);
|
|
78
78
|
color: var(--select-options-list-empty-placeholder-color);
|
|
79
79
|
flex: 1;
|
|
80
80
|
}
|
|
81
|
-
.select__size-
|
|
81
|
+
.select__size-72_119uf .select__emptyPlaceholder_119uf {
|
|
82
82
|
padding: var(--gap-24) var(--gap-16);
|
|
83
83
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"virtualOptionsList":"
|
|
5
|
+
var styles = {"virtualOptionsList":"select__virtualOptionsList_119uf","virtualOptionsListHeader":"select__virtualOptionsListHeader_119uf","virtualOptionsListFooter":"select__virtualOptionsListFooter_119uf","withBorder":"select__withBorder_119uf","scrollable":"select__scrollable_119uf","inner":"select__inner_119uf","virtualRow":"select__virtualRow_119uf","highlighted":"select__highlighted_119uf","emptyPlaceholder":"select__emptyPlaceholder_119uf","size-72":"select__size-72_119uf"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -16,19 +16,12 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
16
16
|
|
|
17
17
|
var BaseCheckmark = function (_a) {
|
|
18
18
|
var _b, _c;
|
|
19
|
-
var selected = _a.selected, _d = _a.disabled, disabled = _d === void 0 ? false : _d, className = _a.className, multiple = _a.multiple, _e = _a.align, align = _e === void 0 ? 'center' : _e, _f = _a.position, position = _f === void 0 ? 'before' : _f
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
_a[styles__default.default.selected] = selected,
|
|
24
|
-
_a)) }));
|
|
25
|
-
};
|
|
26
|
-
return multiple ? (React__default.default.createElement(cssm.Checkbox, { block: true, checked: selected, disabled: disabled, contentClassName: cn__default.default((_b = {}, _b[styles__default.default.positionAfter] = position === 'after', _b)), className: cn__default.default(styles__default.default.checkmark, styles__default.default[align], className, (_c = {},
|
|
19
|
+
var selected = _a.selected, _d = _a.disabled, disabled = _d === void 0 ? false : _d, className = _a.className, multiple = _a.multiple, _e = _a.align, align = _e === void 0 ? 'center' : _e, _f = _a.position, position = _f === void 0 ? 'before' : _f;
|
|
20
|
+
return multiple ? (React__default.default.createElement(cssm.Checkbox, { checked: selected, disabled: disabled, className: cn__default.default(styles__default.default.checkmark, styles__default.default[position], styles__default.default[align], className, (_b = {},
|
|
21
|
+
_b[styles__default.default.selected] = selected,
|
|
22
|
+
_b)), size: 24, hiddenInput: true })) : (React__default.default.createElement(CheckmarkMIcon.CheckmarkMIcon, { className: cn__default.default(styles__default.default.singleIcon, styles__default.default[position], styles__default.default[align], className, (_c = {},
|
|
27
23
|
_c[styles__default.default.selected] = selected,
|
|
28
|
-
_c))
|
|
29
|
-
position === 'before' && renderCheckmarkIcon(),
|
|
30
|
-
React__default.default.createElement("div", { className: styles__default.default.content }, content),
|
|
31
|
-
position === 'after' && renderCheckmarkIcon()));
|
|
24
|
+
_c)) }));
|
|
32
25
|
};
|
|
33
26
|
|
|
34
27
|
exports.BaseCheckmark = BaseCheckmark;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../src/components/base-checkmark/Component.tsx"],"sourcesContent":["import React, { type FC } from 'react';\nimport cn from 'classnames';\n\nimport { Checkbox } from '@alfalab/core-components-checkbox';\nimport { CheckmarkMIcon } from '@alfalab/icons-glyph/CheckmarkMIcon';\n\nimport { type CheckmarkProps } from '../../typings';\n\nimport styles from './index.module.css';\n\nexport const BaseCheckmark: FC<CheckmarkProps> = ({\n selected,\n disabled = false,\n className,\n multiple,\n align = 'center',\n position = 'before',\n}) =>\n multiple ? (\n <Checkbox\n checked={selected}\n disabled={disabled}\n className={cn(styles.checkmark, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n size={24}\n hiddenInput={true}\n />\n ) : (\n <CheckmarkMIcon\n className={cn(styles.singleIcon, styles[position], styles[align], className, {\n [styles.selected]: selected,\n })}\n />\n );\n"],"names":["React","Checkbox","cn","styles","CheckmarkMIcon"],"mappings":";;;;;;;;;;;;;;;;AAUO,IAAM,aAAa,GAAuB,UAAC,EAOjD,EAAA;;QANG,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,EAAA,GAAA,EAAA,CAAA,QAAgB,EAAhB,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,GAAA,EAAA,EAChB,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,EAAgB,GAAA,EAAA,CAAA,KAAA,EAAhB,KAAK,GAAA,EAAA,KAAA,MAAA,GAAG,QAAQ,GAAA,EAAA,EAChB,EAAA,GAAA,EAAA,CAAA,QAAmB,EAAnB,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,QAAQ,GAAA,EAAA;AAEnB,IAAA,OAAA,QAAQ,IACJA,sBAAC,CAAA,aAAA,CAAAC,aAAQ,EACL,EAAA,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAEC,mBAAE,CAACC,uBAAM,CAAC,SAAS,EAAEA,uBAAM,CAAC,QAAQ,CAAC,EAAEA,uBAAM,CAAC,KAAK,CAAC,EAAE,SAAS,GAAA,EAAA,GAAA,EAAA;AACtE,YAAA,EAAA,CAACA,uBAAM,CAAC,QAAQ,CAAA,GAAG,QAAQ;AAC7B,YAAA,EAAA,EAAA,EACF,IAAI,EAAE,EAAE,EACR,WAAW,EAAE,IAAI,EACnB,CAAA,KAEFH,sBAAA,CAAA,aAAA,CAACI,6BAAc,EACX,EAAA,SAAS,EAAEF,mBAAE,CAACC,uBAAM,CAAC,UAAU,EAAEA,uBAAM,CAAC,QAAQ,CAAC,EAAEA,uBAAM,CAAC,KAAK,CAAC,EAAE,SAAS,GAAA,EAAA,GAAA,EAAA;AACvE,YAAA,EAAA,CAACA,uBAAM,CAAC,QAAQ,CAAA,GAAG,QAAQ;AAC7B,YAAA,EAAA,EAAA,EAAA,CACJ,CACL;AAhBD;;;;"}
|
|
@@ -6,28 +6,18 @@
|
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
9
|
+
.checkmark.before {
|
|
10
|
+
margin-right: var(--gap-12);
|
|
11
|
+
}
|
|
12
|
+
.checkmark.after {
|
|
13
|
+
margin-left: var(--gap-12);
|
|
14
|
+
}
|
|
9
15
|
.checkmark.start {
|
|
10
16
|
align-self: start;
|
|
11
17
|
}
|
|
12
18
|
.checkmark.center {
|
|
13
19
|
align-self: center;
|
|
14
20
|
}
|
|
15
|
-
.positionAfter {
|
|
16
|
-
margin-left: 0;
|
|
17
|
-
margin-left: initial;
|
|
18
|
-
}
|
|
19
|
-
.container {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
.container.start {
|
|
26
|
-
align-items: flex-start;
|
|
27
|
-
}
|
|
28
|
-
.container.center {
|
|
29
|
-
align-items: center;
|
|
30
|
-
}
|
|
31
21
|
.singleIcon {
|
|
32
22
|
flex-shrink: 0;
|
|
33
23
|
opacity: 0;
|
|
@@ -41,6 +31,3 @@
|
|
|
41
31
|
.singleIcon.selected {
|
|
42
32
|
opacity: 1;
|
|
43
33
|
}
|
|
44
|
-
.content {
|
|
45
|
-
flex: 1;
|
|
46
|
-
}
|